Documentation ¶
Index ¶
- type EVM
- func (_m *EVM) BalanceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (*big.Int, error)
- func (_m *EVM) BatchCallContext(ctx context.Context, b []rpc.BatchElem) error
- func (_m *EVM) BatchWithContext(ctx context.Context, calls ...w3types.Caller) error
- func (_m *EVM) BlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error)
- func (_m *EVM) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error)
- func (_m *EVM) BlockNumber(ctx context.Context) (uint64, error)
- func (_m *EVM) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error
- func (_m *EVM) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
- func (_m *EVM) ChainID(ctx context.Context) (*big.Int, error)
- func (_m *EVM) CodeAt(ctx context.Context, contract common.Address, blockNumber *big.Int) ([]byte, error)
- func (_m *EVM) EstimateGas(ctx context.Context, call ethereum.CallMsg) (uint64, error)
- func (_m *EVM) FeeHistory(ctx context.Context, blockCount uint64, lastBlock *big.Int, ...) (*ethereum.FeeHistory, error)
- func (_m *EVM) FilterLogs(ctx context.Context, query ethereum.FilterQuery) ([]types.Log, error)
- func (_m *EVM) HeaderByHash(ctx context.Context, hash common.Hash) (*types.Header, error)
- func (_m *EVM) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
- func (_m *EVM) NetworkID(ctx context.Context) (*big.Int, error)
- func (_m *EVM) NonceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (uint64, error)
- func (_m *EVM) PendingBalanceAt(ctx context.Context, account common.Address) (*big.Int, error)
- func (_m *EVM) PendingCallContract(ctx context.Context, call ethereum.CallMsg) ([]byte, error)
- func (_m *EVM) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error)
- func (_m *EVM) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)
- func (_m *EVM) PendingStorageAt(ctx context.Context, account common.Address, key common.Hash) ([]byte, error)
- func (_m *EVM) PendingTransactionCount(ctx context.Context) (uint, error)
- func (_m *EVM) SendTransaction(ctx context.Context, tx *types.Transaction) error
- func (_m *EVM) StorageAt(ctx context.Context, account common.Address, key common.Hash, ...) ([]byte, error)
- func (_m *EVM) SubscribeFilterLogs(ctx context.Context, query ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)
- func (_m *EVM) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error)
- func (_m *EVM) SuggestGasPrice(ctx context.Context) (*big.Int, error)
- func (_m *EVM) SuggestGasTipCap(ctx context.Context) (*big.Int, error)
- func (_m *EVM) SyncProgress(ctx context.Context) (*ethereum.SyncProgress, error)
- func (_m *EVM) TransactionByHash(ctx context.Context, txHash common.Hash) (*types.Transaction, bool, error)
- func (_m *EVM) TransactionCount(ctx context.Context, blockHash common.Hash) (uint, error)
- func (_m *EVM) TransactionInBlock(ctx context.Context, blockHash common.Hash, index uint) (*types.Transaction, error)
- func (_m *EVM) 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 EVM ¶
EVM is an autogenerated mock type for the EVM type
func NewEVM ¶
func NewEVM(t mockConstructorTestingTNewEVM) *EVM
NewEVM creates a new instance of EVM. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*EVM) BalanceAt ¶
func (_m *EVM) BalanceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (*big.Int, error)
BalanceAt provides a mock function with given fields: ctx, account, blockNumber
func (*EVM) BatchCallContext ¶
BatchCallContext provides a mock function with given fields: ctx, b
func (*EVM) BatchWithContext ¶
BatchWithContext provides a mock function with given fields: ctx, calls
func (*EVM) BlockByHash ¶
BlockByHash provides a mock function with given fields: ctx, hash
func (*EVM) BlockByNumber ¶
BlockByNumber provides a mock function with given fields: ctx, number
func (*EVM) BlockNumber ¶
BlockNumber provides a mock function with given fields: ctx
func (*EVM) CallContext ¶
func (_m *EVM) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error
CallContext provides a mock function with given fields: ctx, result, method, args
func (*EVM) CallContract ¶
func (_m *EVM) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
CallContract provides a mock function with given fields: ctx, call, blockNumber
func (*EVM) CodeAt ¶
func (_m *EVM) CodeAt(ctx context.Context, contract common.Address, blockNumber *big.Int) ([]byte, error)
CodeAt provides a mock function with given fields: ctx, contract, blockNumber
func (*EVM) EstimateGas ¶
EstimateGas provides a mock function with given fields: ctx, call
func (*EVM) FeeHistory ¶
func (_m *EVM) FeeHistory(ctx context.Context, blockCount uint64, lastBlock *big.Int, rewardPercentiles []float64) (*ethereum.FeeHistory, error)
FeeHistory provides a mock function with given fields: ctx, blockCount, lastBlock, rewardPercentiles
func (*EVM) FilterLogs ¶
FilterLogs provides a mock function with given fields: ctx, query
func (*EVM) HeaderByHash ¶
HeaderByHash provides a mock function with given fields: ctx, hash
func (*EVM) HeaderByNumber ¶
HeaderByNumber provides a mock function with given fields: ctx, number
func (*EVM) NonceAt ¶
func (_m *EVM) NonceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (uint64, error)
NonceAt provides a mock function with given fields: ctx, account, blockNumber
func (*EVM) PendingBalanceAt ¶
PendingBalanceAt provides a mock function with given fields: ctx, account
func (*EVM) PendingCallContract ¶
PendingCallContract provides a mock function with given fields: ctx, call
func (*EVM) PendingCodeAt ¶
PendingCodeAt provides a mock function with given fields: ctx, account
func (*EVM) PendingNonceAt ¶
PendingNonceAt provides a mock function with given fields: ctx, account
func (*EVM) PendingStorageAt ¶
func (_m *EVM) PendingStorageAt(ctx context.Context, account common.Address, key common.Hash) ([]byte, error)
PendingStorageAt provides a mock function with given fields: ctx, account, key
func (*EVM) PendingTransactionCount ¶
PendingTransactionCount provides a mock function with given fields: ctx
func (*EVM) SendTransaction ¶
SendTransaction provides a mock function with given fields: ctx, tx
func (*EVM) StorageAt ¶
func (_m *EVM) StorageAt(ctx context.Context, account common.Address, key common.Hash, blockNumber *big.Int) ([]byte, error)
StorageAt provides a mock function with given fields: ctx, account, key, blockNumber
func (*EVM) SubscribeFilterLogs ¶
func (_m *EVM) SubscribeFilterLogs(ctx context.Context, query ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)
SubscribeFilterLogs provides a mock function with given fields: ctx, query, ch
func (*EVM) SubscribeNewHead ¶
func (_m *EVM) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error)
SubscribeNewHead provides a mock function with given fields: ctx, ch
func (*EVM) SuggestGasPrice ¶
SuggestGasPrice provides a mock function with given fields: ctx
func (*EVM) SuggestGasTipCap ¶
SuggestGasTipCap provides a mock function with given fields: ctx
func (*EVM) SyncProgress ¶
SyncProgress provides a mock function with given fields: ctx
func (*EVM) TransactionByHash ¶
func (_m *EVM) TransactionByHash(ctx context.Context, txHash common.Hash) (*types.Transaction, bool, error)
TransactionByHash provides a mock function with given fields: ctx, txHash
func (*EVM) TransactionCount ¶
TransactionCount provides a mock function with given fields: ctx, blockHash