Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EVMProvider ¶
type EVMProvider interface { bind.ContractCaller bind.ContractFilterer PendingNonceAt(ctx context.Context, account common.Address) (uint64, error) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error) EstimateGas(ctx context.Context, msg ethereum.CallMsg) (uint64, error) SuggestGasTipCap(ctx context.Context) (*big.Int, error) SuggestGasPrice(ctx context.Context) (*big.Int, error) TransactionByHash(ctx context.Context, hash common.Hash) (tx *types.Transaction, isPending bool, err error) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error) SendTransaction(ctx context.Context, tx *types.Transaction) error HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error) }
type EVMProviderWithRet ¶
type EVMProviderWithRet interface { EVMProvider SendTransactionWithRet(ctx context.Context, tx *types.Transaction) (txHash common.Hash, err error) }
func NewEVMProvider ¶
func NewEVMProvider(rc *rpc.Client) EVMProviderWithRet
type TransactFunc ¶
type TransactFunc func(opts *bind.TransactOpts, contract *common.Address, input []byte) (*types.Transaction, error)
func TransactFn ¶
func TransactFn(p EVMProviderWithRet, contractAddress common.Address, txHashOut *common.Hash) TransactFunc
Click to show internal directories.
Click to hide internal directories.