Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FunctionsHandlerConfig ¶
type FunctionsHandlerConfig struct { AllowlistCheckEnabled bool `json:"allowlistCheckEnabled"` AllowlistChainID int64 `json:"allowlistChainID"` AllowlistContractAddress string `json:"allowlistContractAddress"` AllowlistBlockConfirmations int64 `json:"allowlistBlockConfirmations"` AllowlistUpdateFrequencySec int `json:"allowlistUpdateFrequencySec"` AllowlistUpdateTimeoutSec int `json:"allowlistUpdateTimeoutSec"` }
func ParseConfig ¶
func ParseConfig(handlerConfig json.RawMessage) (*FunctionsHandlerConfig, error)
type OnchainAllowlist ¶
type OnchainAllowlist interface { Allow(common.Address) bool UpdateFromContract(ctx context.Context) error UpdatePeriodically(ctx context.Context, updateFrequency time.Duration, updateTimeout time.Duration) }
OnchainAllowlist maintains an allowlist of addresses fetched from the blockchain (EVM-only). Use UpdateFromContract() for a one-time update or UpdatePeriodically() for periodic updates. All methods are thread-safe.
Click to show internal directories.
Click to hide internal directories.