feat: explorer API, wallet, CCIP scripts, and config refresh
- Backend REST/gateway/track routes, analytics, Blockscout proxy paths. - Frontend wallet and liquidity surfaces; MetaMask token list alignment. - Deployment docs, verification scripts, address inventory updates. Check: go build ./... under backend/ (pass). Made-with: Cursor
This commit is contained in:
17
backend/api/track4/request_ip.go
Normal file
17
backend/api/track4/request_ip.go
Normal file
@@ -0,0 +1,17 @@
|
||||
package track4
|
||||
|
||||
import (
|
||||
"context"
|
||||
"net/http"
|
||||
|
||||
httpmiddleware "github.com/explorer/backend/libs/go-http-middleware"
|
||||
)
|
||||
|
||||
type roleManager interface {
|
||||
IsIPWhitelisted(ctx context.Context, operatorAddress string, ipAddress string) (bool, error)
|
||||
LogOperatorEvent(ctx context.Context, eventType string, chainID *int, operatorAddress string, targetResource string, action string, details map[string]interface{}, ipAddress string, userAgent string) error
|
||||
}
|
||||
|
||||
func clientIPAddress(r *http.Request) string {
|
||||
return httpmiddleware.ClientIP(r)
|
||||
}
|
||||
Reference in New Issue
Block a user