provider

package
v1.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

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 ethcmn.Address) (uint64, error)
	PendingCodeAt(ctx context.Context, account ethcmn.Address) ([]byte, error)
	EstimateGas(ctx context.Context, msg ethereum.CallMsg) (uint64, error)
	SuggestGasPrice(ctx context.Context) (*big.Int, error)
	TransactionByHash(ctx context.Context, hash ethcmn.Hash) (tx *types.Transaction, isPending bool, err error)
	TransactionReceipt(ctx context.Context, txHash ethcmn.Hash) (*types.Receipt, error)
	SendTransaction(ctx context.Context, tx *types.Transaction) error
	HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
	SuggestGasTipCap(ctx context.Context) (*big.Int, error)
}

type EVMProviderWithRet

type EVMProviderWithRet interface {
	EVMProvider

	SendTransactionWithRet(ctx context.Context, tx *types.Transaction) (txHash ethcmn.Hash, err error)
}

func NewEVMProvider

func NewEVMProvider(rc *rpc.Client) EVMProviderWithRet

type TransactFunc

type TransactFunc func(opts *bind.TransactOpts, contract *ethcmn.Address, input []byte) (*types.Transaction, error)

func TransactFn

func TransactFn(p EVMProviderWithRet, contractAddress ethcmn.Address, txHashOut *ethcmn.Hash) TransactFunc

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL