mocks

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EVM

type EVM struct {
	mock.Mock
}

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

func (_m *EVM) BatchCallContext(ctx context.Context, b []rpc.BatchElem) error

BatchCallContext provides a mock function with given fields: ctx, b

func (*EVM) BatchWithContext

func (_m *EVM) BatchWithContext(ctx context.Context, calls ...w3types.Caller) error

BatchWithContext provides a mock function with given fields: ctx, calls

func (*EVM) BlockByHash

func (_m *EVM) BlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error)

BlockByHash provides a mock function with given fields: ctx, hash

func (*EVM) BlockByNumber

func (_m *EVM) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error)

BlockByNumber provides a mock function with given fields: ctx, number

func (*EVM) BlockNumber

func (_m *EVM) BlockNumber(ctx context.Context) (uint64, error)

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) ChainID

func (_m *EVM) ChainID(ctx context.Context) (*big.Int, error)

ChainID provides a mock function with given fields: ctx

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

func (_m *EVM) EstimateGas(ctx context.Context, call ethereum.CallMsg) (uint64, error)

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

func (_m *EVM) FilterLogs(ctx context.Context, query ethereum.FilterQuery) ([]types.Log, error)

FilterLogs provides a mock function with given fields: ctx, query

func (*EVM) HeaderByHash

func (_m *EVM) HeaderByHash(ctx context.Context, hash common.Hash) (*types.Header, error)

HeaderByHash provides a mock function with given fields: ctx, hash

func (*EVM) HeaderByNumber

func (_m *EVM) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)

HeaderByNumber provides a mock function with given fields: ctx, number

func (*EVM) NetworkID

func (_m *EVM) NetworkID(ctx context.Context) (*big.Int, error)

NetworkID provides a mock function with given fields: ctx

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

func (_m *EVM) PendingBalanceAt(ctx context.Context, account common.Address) (*big.Int, error)

PendingBalanceAt provides a mock function with given fields: ctx, account

func (*EVM) PendingCallContract

func (_m *EVM) PendingCallContract(ctx context.Context, call ethereum.CallMsg) ([]byte, error)

PendingCallContract provides a mock function with given fields: ctx, call

func (*EVM) PendingCodeAt

func (_m *EVM) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error)

PendingCodeAt provides a mock function with given fields: ctx, account

func (*EVM) PendingNonceAt

func (_m *EVM) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)

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

func (_m *EVM) PendingTransactionCount(ctx context.Context) (uint, error)

PendingTransactionCount provides a mock function with given fields: ctx

func (*EVM) SendTransaction

func (_m *EVM) SendTransaction(ctx context.Context, tx *types.Transaction) error

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

func (_m *EVM) SuggestGasPrice(ctx context.Context) (*big.Int, error)

SuggestGasPrice provides a mock function with given fields: ctx

func (*EVM) SuggestGasTipCap

func (_m *EVM) SuggestGasTipCap(ctx context.Context) (*big.Int, error)

SuggestGasTipCap provides a mock function with given fields: ctx

func (*EVM) SyncProgress

func (_m *EVM) SyncProgress(ctx context.Context) (*ethereum.SyncProgress, error)

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

func (_m *EVM) TransactionCount(ctx context.Context, blockHash common.Hash) (uint, error)

TransactionCount provides a mock function with given fields: ctx, blockHash

func (*EVM) TransactionInBlock

func (_m *EVM) TransactionInBlock(ctx context.Context, blockHash common.Hash, index uint) (*types.Transaction, error)

TransactionInBlock provides a mock function with given fields: ctx, blockHash, index

func (*EVM) TransactionReceipt

func (_m *EVM) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)

TransactionReceipt provides a mock function with given fields: ctx, txHash

Jump to

Keyboard shortcuts

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