Documentation ¶
Index ¶
- type Wallet
- func (w Wallet) Address() common.Address
- func (w Wallet) Balance(ctx context.Context) (*big.Int, error)
- func (w Wallet) BroadcastTransaction(ctx context.Context, tx *types.Transaction) error
- func (w Wallet) Call(ctx context.Context, contractAddress gethCommon.Address, callData []byte) ([]byte, error)
- func (w Wallet) ChainId() int64
- func (w Wallet) GetContractDetailsForPermit(ctx context.Context, token gethCommon.Address, spender gethCommon.Address, ...) (*common.ContractPermitData, error)
- func (w Wallet) GetContractDetailsForPermitDaiLike(ctx context.Context, token gethCommon.Address, spender gethCommon.Address, ...) (*common.ContractPermitDataDaiLike, error)
- func (w Wallet) GetGasPrice(ctx context.Context) (*big.Int, error)
- func (w Wallet) GetGasTipCap(ctx context.Context) (*big.Int, error)
- func (w Wallet) IsEIP1559Applicable() bool
- func (w Wallet) Nonce(ctx context.Context) (uint64, error)
- func (w Wallet) Sign(tx *types.Transaction) (*types.Transaction, error)
- func (w Wallet) TokenPermit(cd common.ContractPermitData) (string, error)
- func (w Wallet) TokenPermitDaiLike(cd common.ContractPermitDataDaiLike) (string, error)
- func (w Wallet) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Wallet ¶
type Wallet struct {
// contains filtered or unexported fields
}
func DefaultWalletProvider ¶
func (Wallet) BroadcastTransaction ¶
func (Wallet) GetContractDetailsForPermit ¶
func (w Wallet) GetContractDetailsForPermit(ctx context.Context, token gethCommon.Address, spender gethCommon.Address, amount *big.Int, deadline int64) (*common.ContractPermitData, error)
func (Wallet) GetContractDetailsForPermitDaiLike ¶
func (w Wallet) GetContractDetailsForPermitDaiLike(ctx context.Context, token gethCommon.Address, spender gethCommon.Address, deadline int64) (*common.ContractPermitDataDaiLike, error)
func (Wallet) IsEIP1559Applicable ¶
func (Wallet) Sign ¶
func (w Wallet) Sign(tx *types.Transaction) (*types.Transaction, error)
func (Wallet) TokenPermit ¶
func (w Wallet) TokenPermit(cd common.ContractPermitData) (string, error)
TokenPermit Will return an erc2612 string struct if possible
func (Wallet) TokenPermitDaiLike ¶
func (w Wallet) TokenPermitDaiLike(cd common.ContractPermitDataDaiLike) (string, error)
TokenPermit Will return an erc2612 string struct if possible
Source Files ¶
Click to show internal directories.
Click to hide internal directories.