async_airdrop

package
v0.0.0-...-c6effd4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2025 License: MIT Imports: 23 Imported by: 0

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL