Documentation ¶
Index ¶
- type Manager
- type Wallet
- func (wallet *Wallet) AwaitReady(ctx context.Context) error
- func (wallet *Wallet) AwaitTransaction(ctx context.Context, tx *types.Transaction) (*types.Receipt, error)
- func (wallet *Wallet) BuildTransaction(ctx context.Context, ...) (*types.Transaction, error)
- func (wallet *Wallet) GetAddress() common.Address
- func (wallet *Wallet) GetBalance() *big.Int
- func (wallet *Wallet) GetNonce() uint64
- func (wallet *Wallet) GetPendingBalance() *big.Int
- func (wallet *Wallet) GetPrivateKey() *ecdsa.PrivateKey
- func (wallet *Wallet) GetReadableBalance(unitDigits, maxPreCommaDigitsBeforeTrim, digits int, ...) string
- func (wallet *Wallet) ResyncState()
- type WalletPool
- func (pool *WalletPool) EnsureFunding(ctx context.Context, minBalance, refillAmount, gasFeeCap, gasTipCap *big.Int, ...) error
- func (pool *WalletPool) GetChildWallet(index uint64) *Wallet
- func (pool *WalletPool) GetChildWallets() []*Wallet
- func (pool *WalletPool) GetNextChildWallet() *Wallet
- func (pool *WalletPool) GetRootWallet() *Wallet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager(clientPool *execution.Pool, logger logrus.FieldLogger) *Manager
func (*Manager) GetWalletByAddress ¶
func (*Manager) GetWalletByPrivkey ¶
func (manager *Manager) GetWalletByPrivkey(privkey *ecdsa.PrivateKey) (*Wallet, error)
func (*Manager) GetWalletPoolByPrivkey ¶
func (manager *Manager) GetWalletPoolByPrivkey(privkey *ecdsa.PrivateKey, walletCount uint64, childSeed string) (*WalletPool, error)
type Wallet ¶
type Wallet struct {
// contains filtered or unexported fields
}
func (*Wallet) AwaitTransaction ¶
func (*Wallet) BuildTransaction ¶
func (*Wallet) GetAddress ¶
func (*Wallet) GetBalance ¶
func (*Wallet) GetPendingBalance ¶
func (*Wallet) GetPrivateKey ¶
func (wallet *Wallet) GetPrivateKey() *ecdsa.PrivateKey
func (*Wallet) GetReadableBalance ¶
func (*Wallet) ResyncState ¶
func (wallet *Wallet) ResyncState()
type WalletPool ¶
type WalletPool struct {
// contains filtered or unexported fields
}
func (*WalletPool) EnsureFunding ¶
func (*WalletPool) GetChildWallet ¶
func (pool *WalletPool) GetChildWallet(index uint64) *Wallet
func (*WalletPool) GetChildWallets ¶
func (pool *WalletPool) GetChildWallets() []*Wallet
func (*WalletPool) GetNextChildWallet ¶
func (pool *WalletPool) GetNextChildWallet() *Wallet
func (*WalletPool) GetRootWallet ¶
func (pool *WalletPool) GetRootWallet() *Wallet
Click to show internal directories.
Click to hide internal directories.