Files
explorer-monorepo/backend/api/track4/request_ip.go
defiQUG bdae5a9f6e 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
2026-04-07 23:22:12 -07:00

18 lines
539 B
Go

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)
}