Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContractPermitData ¶
type HttpExecutor ¶
type HttpExecutor interface {
ExecuteRequest(ctx context.Context, payload RequestPayload, v interface{}) error
}
type RequestPayload ¶
type TransactionBuilder ¶
type TransactionBuilder interface { SetData(d []byte) TransactionBuilder SetNonce(uint64) TransactionBuilder SetGasPrice(*big.Int) TransactionBuilder SetGas(uint64) TransactionBuilder SetValue(*big.Int) TransactionBuilder SetTo(*gethCommon.Address) TransactionBuilder SetGasTipCap(*big.Int) TransactionBuilder SetGasFeeCap(*big.Int) TransactionBuilder BuildLegacyTx(context.Context) (*types.Transaction, error) BuildDynamicTx(context.Context) (*types.Transaction, error) Build(context.Context) (*types.Transaction, error) }
type TransactionBuilderFactory ¶
type TransactionBuilderFactory interface {
New() TransactionBuilder
}
type Wallet ¶
type Wallet interface { Call(ctx context.Context, contractAddress gethCommon.Address, callData []byte) ([]byte, error) Nonce(ctx context.Context) (uint64, error) Address() gethCommon.Address Balance(ctx context.Context) (*big.Int, error) GetGasTipCap(ctx context.Context) (*big.Int, error) GetGasPrice(ctx context.Context) (*big.Int, error) Sign(tx *types.Transaction) (*types.Transaction, error) SignBytes(data []byte) ([]byte, error) BroadcastTransaction(ctx context.Context, tx *types.Transaction) error TransactionReceipt(ctx context.Context, txHash gethCommon.Hash) (*types.Receipt, error) GetContractDetailsForPermit(ctx context.Context, token gethCommon.Address, spender gethCommon.Address, amount *big.Int, deadline int64) (*ContractPermitData, error) GetContractDetailsForPermitDaiLike(ctx context.Context, token gethCommon.Address, spender gethCommon.Address, deadline int64) (*ContractPermitDataDaiLike, error) TokenPermit(cd ContractPermitData) (string, error) TokenPermitDaiLike(cd ContractPermitDataDaiLike) (string, error) IsEIP1559Applicable() bool ChainId() int64 }
Click to show internal directories.
Click to hide internal directories.