Documentation
¶
Index ¶
Constants ¶
View Source
const ( DisableAirdropsConfigEnvName = envConfigPrefix + "DISABLE_AIRDROPS" AirdropperOwnerConfigEnvName = envConfigPrefix + "AIRDROPPER_OWNER" NonceMemoryAccountConfigEnvName = envConfigPrefix + "NONCE_MEMORY_ACCOUNT" )
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(data code_data.Provider, vmIndexerClient indexerpb.IndexerClient, integration Integration, configProvider ConfigProvider) (async.Service, error)
Types ¶
type ConfigProvider ¶
type ConfigProvider func() *conf
ConfigProvider defines how config values are pulled
func WithEnvConfigs ¶
func WithEnvConfigs() ConfigProvider
WithEnvConfigs returns configuration pulled from environment variables
type Integration ¶
type Integration interface { // GetOwnersToAirdropNow gets a set of owner accounts to airdrop right now, // and the amount that should be airdropped. GetOwnersToAirdropNow(ctx context.Context) ([]*common.Account, uint64, error) // OnSuccess is called when an airdrop completes OnSuccess(ctx context.Context, owners ...*common.Account) error }
Click to show internal directories.
Click to hide internal directories.