Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( StatusFail Status = "fail" StatusSuccess Status = "success" StatusPending Status = "pending" StatusSkip Status = "skip" NonceProviderTypeFixed NonceProviderType = "fixed" NonceProviderTypeNetwork NonceProviderType = "network" )
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector interface { Collect(ctx context.Context, collectionAcount DestinationAccount, accounts []SourceAccount) []Result GetChainId(ctx context.Context) *big.Int }
Collector provides method to collect ERC-20 tokens in a specific account from other given accounts
func NewEVMCollector ¶
func NewEVMCollector(config EVMCollectorConfig) (Collector, error)
NewEVMCollector utility method to create a EVM collector using the provided EVMCollectorConfig
type DestinationAccount ¶
DestinationAccount which provides the gas for the collection and receives the ERC-20 tokens
type EVMCollectorConfig ¶
type EVMCollectorConfig struct { BlockchainUrl string GasTrackerUrl string NonceProviderType NonceProviderType LoggerKind string LoggerLevel string }
EVMCollectorConfig contains network configuration
type NonceProviderType ¶
type NonceProviderType string
type Result ¶
type Result struct { Status Status SourceAccount SourceAccount }
Result the outcome of the ERC-20 collection for a SourceAccount
type SourceAccount ¶
SourceAccount keeps the details of the account from which the tokens are collected
Click to show internal directories.
Click to hide internal directories.