Documentation ¶
Index ¶
- Variables
- func DeployWallet(opts *ConstructOpts, eth bind.ContractBackend, owner common.Address, ...) (common.Address, *types.Transaction, error)
- type ConstructOpts
- type Event
- type SignTransaction
- type Wallet
- func (w *Wallet) AddedToWhitelistEvents(ctx context.Context, block *big.Int) ([]*Event, error)
- func (w *Wallet) Balance(ctx context.Context, block *big.Int, asset common.Address) (*big.Int, error)
- func (w *Wallet) CancelSpendLimit(opts *ConstructOpts) (*types.Transaction, error)
- func (w *Wallet) CancelTopUpLimit(opts *ConstructOpts) (*types.Transaction, error)
- func (w *Wallet) CancelWhitelistAddition(opts *ConstructOpts) (*types.Transaction, error)
- func (w *Wallet) CancelWhitelistRemoval(opts *ConstructOpts) (*types.Transaction, error)
- func (w *Wallet) ConfirmSpendLimit(opts *ConstructOpts) (*types.Transaction, error)
- func (w *Wallet) ConfirmTopUpLimit(opts *ConstructOpts) (*types.Transaction, error)
- func (w *Wallet) ConfirmWhitelistAddition(opts *ConstructOpts) (*types.Transaction, error)
- func (w *Wallet) ConfirmWhitelistRemoval(opts *ConstructOpts) (*types.Transaction, error)
- func (w *Wallet) InitializeSpendLimit(opts *ConstructOpts, amount *big.Int) (*types.Transaction, error)
- func (w *Wallet) InitializeTopUpLimit(opts *ConstructOpts, amount *big.Int) (*types.Transaction, error)
- func (w *Wallet) InitializeWhitelist(opts *ConstructOpts, addresses []common.Address) (*types.Transaction, error)
- func (w *Wallet) InitializedSpendLimit(ctx context.Context, block *big.Int) (bool, error)
- func (w *Wallet) InitializedTopUpLimit(ctx context.Context, block *big.Int) (bool, error)
- func (w *Wallet) InitializedWhitelist(ctx context.Context, block *big.Int) (bool, error)
- func (w *Wallet) IsWhitelisted(ctx context.Context, block *big.Int, address common.Address) (bool, error)
- func (w *Wallet) Owner(ctx context.Context, block *big.Int) (common.Address, error)
- func (w *Wallet) PendingSpendLimit(ctx context.Context, block *big.Int) (*big.Int, error)
- func (w *Wallet) PendingTopUpLimit(ctx context.Context, block *big.Int) (*big.Int, error)
- func (w *Wallet) PendingWhitelistAddition(ctx context.Context, block *big.Int) ([]common.Address, error)
- func (w *Wallet) PendingWhitelistRemoval(ctx context.Context, block *big.Int) ([]common.Address, error)
- func (w *Wallet) ReceivedEvents(ctx context.Context, block *big.Int) ([]*Event, error)
- func (w *Wallet) RemovedFromWhitelistEvents(ctx context.Context, block *big.Int) ([]*Event, error)
- func (w *Wallet) SetSpendLimitEvents(ctx context.Context, block *big.Int) ([]*Event, error)
- func (w *Wallet) SetTopUpLimitEvents(ctx context.Context, block *big.Int) ([]*Event, error)
- func (w *Wallet) SpendAvailable(ctx context.Context, block *big.Int) (*big.Int, error)
- func (w *Wallet) SpendLimit(ctx context.Context, block *big.Int) (*big.Int, error)
- func (w *Wallet) SubmitSpendLimit(opts *ConstructOpts, amount *big.Int) (*types.Transaction, error)
- func (w *Wallet) SubmitTopUpLimit(opts *ConstructOpts, amount *big.Int) (*types.Transaction, error)
- func (w *Wallet) SubmitWhitelistAddition(opts *ConstructOpts, addresses []common.Address) (*types.Transaction, error)
- func (w *Wallet) SubmitWhitelistRemoval(opts *ConstructOpts, addresses []common.Address) (*types.Transaction, error)
- func (w *Wallet) SubmittedWhitelistAdditionEvents(ctx context.Context, block *big.Int) ([]*Event, error)
- func (w *Wallet) SubmittedWhitelistRemovalEvents(ctx context.Context, block *big.Int) ([]*Event, error)
- func (w *Wallet) TopUpAvailable(ctx context.Context, block *big.Int) (*big.Int, error)
- func (w *Wallet) TopUpGas(opts *ConstructOpts, amount *big.Int) (*types.Transaction, error)
- func (w *Wallet) TopUpLimit(ctx context.Context, block *big.Int) (*big.Int, error)
- func (w *Wallet) ToppedUpGasEvents(ctx context.Context, block *big.Int) ([]*Event, error)
- func (w *Wallet) Transfer(opts *ConstructOpts, to common.Address, asset common.Address, amount *big.Int) (*types.Transaction, error)
- func (w *Wallet) TransferredEvents(ctx context.Context, block *big.Int) ([]*Event, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func DeployWallet ¶
Types ¶
type ConstructOpts ¶
type ConstructOpts struct { From common.Address // Ethereum account to send the transaction from Nonce uint64 // Nonce to use for the transaction execution Value *big.Int // Funds to transfer along along the transaction (nil = 0 = no funds) GasPrice *big.Int // Gas price to use for the transaction execution (nil = gas price oracle) GasLimit uint64 // Gas limit to set for the transaction execution (0 = estimate) Sign SignTransaction // Method to use for signing the transaction (nil = return unsigned transaction) Context context.Context // Network context to support cancellation and timeouts }
type SignTransaction ¶
type SignTransaction func(context.Context, *types.Transaction) (*types.Transaction, error)
type Wallet ¶
type Wallet struct {
// contains filtered or unexported fields
}
func (*Wallet) AddedToWhitelistEvents ¶
func (*Wallet) CancelSpendLimit ¶
func (w *Wallet) CancelSpendLimit(opts *ConstructOpts) (*types.Transaction, error)
func (*Wallet) CancelTopUpLimit ¶
func (w *Wallet) CancelTopUpLimit(opts *ConstructOpts) (*types.Transaction, error)
func (*Wallet) CancelWhitelistAddition ¶
func (w *Wallet) CancelWhitelistAddition(opts *ConstructOpts) (*types.Transaction, error)
func (*Wallet) CancelWhitelistRemoval ¶
func (w *Wallet) CancelWhitelistRemoval(opts *ConstructOpts) (*types.Transaction, error)
func (*Wallet) ConfirmSpendLimit ¶
func (w *Wallet) ConfirmSpendLimit(opts *ConstructOpts) (*types.Transaction, error)
func (*Wallet) ConfirmTopUpLimit ¶
func (w *Wallet) ConfirmTopUpLimit(opts *ConstructOpts) (*types.Transaction, error)
func (*Wallet) ConfirmWhitelistAddition ¶
func (w *Wallet) ConfirmWhitelistAddition(opts *ConstructOpts) (*types.Transaction, error)
func (*Wallet) ConfirmWhitelistRemoval ¶
func (w *Wallet) ConfirmWhitelistRemoval(opts *ConstructOpts) (*types.Transaction, error)
func (*Wallet) InitializeSpendLimit ¶
func (w *Wallet) InitializeSpendLimit(opts *ConstructOpts, amount *big.Int) (*types.Transaction, error)
func (*Wallet) InitializeTopUpLimit ¶
func (w *Wallet) InitializeTopUpLimit(opts *ConstructOpts, amount *big.Int) (*types.Transaction, error)
func (*Wallet) InitializeWhitelist ¶
func (w *Wallet) InitializeWhitelist(opts *ConstructOpts, addresses []common.Address) (*types.Transaction, error)
func (*Wallet) InitializedSpendLimit ¶
func (*Wallet) InitializedTopUpLimit ¶
func (*Wallet) InitializedWhitelist ¶
func (*Wallet) IsWhitelisted ¶
func (*Wallet) PendingSpendLimit ¶
func (*Wallet) PendingTopUpLimit ¶
func (*Wallet) PendingWhitelistAddition ¶
func (*Wallet) PendingWhitelistRemoval ¶
func (*Wallet) ReceivedEvents ¶
func (*Wallet) RemovedFromWhitelistEvents ¶
func (*Wallet) SetSpendLimitEvents ¶
func (*Wallet) SetTopUpLimitEvents ¶
func (*Wallet) SpendAvailable ¶
func (*Wallet) SpendLimit ¶
func (*Wallet) SubmitSpendLimit ¶
func (w *Wallet) SubmitSpendLimit(opts *ConstructOpts, amount *big.Int) (*types.Transaction, error)
func (*Wallet) SubmitTopUpLimit ¶
func (w *Wallet) SubmitTopUpLimit(opts *ConstructOpts, amount *big.Int) (*types.Transaction, error)
func (*Wallet) SubmitWhitelistAddition ¶
func (w *Wallet) SubmitWhitelistAddition(opts *ConstructOpts, addresses []common.Address) (*types.Transaction, error)
func (*Wallet) SubmitWhitelistRemoval ¶
func (w *Wallet) SubmitWhitelistRemoval(opts *ConstructOpts, addresses []common.Address) (*types.Transaction, error)
func (*Wallet) SubmittedWhitelistAdditionEvents ¶
func (*Wallet) SubmittedWhitelistRemovalEvents ¶
func (*Wallet) TopUpAvailable ¶
func (*Wallet) TopUpGas ¶
func (w *Wallet) TopUpGas(opts *ConstructOpts, amount *big.Int) (*types.Transaction, error)
func (*Wallet) TopUpLimit ¶
func (*Wallet) ToppedUpGasEvents ¶
Click to show internal directories.
Click to hide internal directories.