mocks

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 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 EVMClient

type EVMClient struct {
	mock.Mock
}

EVMClient is an autogenerated mock type for the EVMClient type

func NewEVMClient added in v0.0.14

func NewEVMClient(t mockConstructorTestingTNewEVMClient) *EVMClient

NewEVMClient creates a new instance of EVMClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*EVMClient) BalanceAt

func (_m *EVMClient) 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 (*EVMClient) BatchCallContext

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

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

func (*EVMClient) BatchContext added in v0.0.20

func (_m *EVMClient) BatchContext(ctx context.Context, calls ...w3types.Caller) error

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

func (*EVMClient) BlockByHash

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

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

func (*EVMClient) BlockByNumber

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

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

func (*EVMClient) BlockNumber

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

BlockNumber provides a mock function with given fields: ctx

func (*EVMClient) CallContext

func (_m *EVMClient) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error

CallContext provides a mock function with given fields: ctx, result, method, args

func (*EVMClient) CallContract

func (_m *EVMClient) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)

CallContract provides a mock function with given fields: ctx, call, blockNumber

func (*EVMClient) ChainID

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

ChainID provides a mock function with given fields: ctx

func (*EVMClient) CodeAt

func (_m *EVMClient) CodeAt(ctx context.Context, contract common.Address, blockNumber *big.Int) ([]byte, error)

CodeAt provides a mock function with given fields: ctx, contract, blockNumber

func (*EVMClient) EstimateGas

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

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

func (*EVMClient) FeeHistory added in v0.0.21

func (_m *EVMClient) 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 (*EVMClient) FilterLogs

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

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

func (*EVMClient) HeaderByHash

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

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

func (*EVMClient) HeaderByNumber

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

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

func (*EVMClient) NetworkID added in v0.0.21

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

NetworkID provides a mock function with given fields: ctx

func (*EVMClient) NonceAt

func (_m *EVMClient) NonceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (uint64, error)

NonceAt provides a mock function with given fields: ctx, account, blockNumber

func (*EVMClient) PendingBalanceAt added in v0.0.21

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

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

func (*EVMClient) PendingCallContract added in v0.0.21

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

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

func (*EVMClient) PendingCodeAt

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

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

func (*EVMClient) PendingNonceAt

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

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

func (*EVMClient) PendingStorageAt added in v0.0.21

func (_m *EVMClient) PendingStorageAt(ctx context.Context, account common.Address, key common.Hash) ([]byte, error)

PendingStorageAt provides a mock function with given fields: ctx, account, key

func (*EVMClient) PendingTransactionCount added in v0.0.21

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

PendingTransactionCount provides a mock function with given fields: ctx

func (*EVMClient) SendTransaction

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

SendTransaction provides a mock function with given fields: ctx, tx

func (*EVMClient) StorageAt

func (_m *EVMClient) 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 (*EVMClient) SubscribeFilterLogs

func (_m *EVMClient) 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 (*EVMClient) SubscribeNewHead

func (_m *EVMClient) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error)

SubscribeNewHead provides a mock function with given fields: ctx, ch

func (*EVMClient) SuggestGasPrice

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

SuggestGasPrice provides a mock function with given fields: ctx

func (*EVMClient) SuggestGasTipCap

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

SuggestGasTipCap provides a mock function with given fields: ctx

func (*EVMClient) SyncProgress added in v0.0.21

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

SyncProgress provides a mock function with given fields: ctx

func (*EVMClient) TransactionByHash

func (_m *EVMClient) TransactionByHash(ctx context.Context, txHash common.Hash) (*types.Transaction, bool, error)

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

func (*EVMClient) TransactionCount

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

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

func (*EVMClient) TransactionInBlock

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

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

func (*EVMClient) TransactionReceipt

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

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

func (*EVMClient) Web3Version added in v0.7.0

func (_m *EVMClient) Web3Version(ctx context.Context) (string, error)

Web3Version provides a mock function with given fields: ctx

type MeteredEVMClient

type MeteredEVMClient struct {
	mock.Mock
}

MeteredEVMClient is an autogenerated mock type for the MeteredEVMClient type

func NewMeteredEVMClient added in v0.0.14

func NewMeteredEVMClient(t mockConstructorTestingTNewMeteredEVMClient) *MeteredEVMClient

NewMeteredEVMClient creates a new instance of MeteredEVMClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MeteredEVMClient) AttemptReconnect

func (_m *MeteredEVMClient) AttemptReconnect() bool

AttemptReconnect provides a mock function with given fields:

func (*MeteredEVMClient) BalanceAt

func (_m *MeteredEVMClient) 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 (*MeteredEVMClient) BatchCallContext

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

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

func (*MeteredEVMClient) BatchContext added in v0.0.20

func (_m *MeteredEVMClient) BatchContext(ctx context.Context, calls ...w3types.Caller) error

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

func (*MeteredEVMClient) BlockByHash

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

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

func (*MeteredEVMClient) BlockByNumber

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

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

func (*MeteredEVMClient) BlockNumber

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

BlockNumber provides a mock function with given fields: ctx

func (*MeteredEVMClient) CallContext

func (_m *MeteredEVMClient) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error

CallContext provides a mock function with given fields: ctx, result, method, args

func (*MeteredEVMClient) CallContract

func (_m *MeteredEVMClient) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)

CallContract provides a mock function with given fields: ctx, call, blockNumber

func (*MeteredEVMClient) ChainID

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

ChainID provides a mock function with given fields: ctx

func (*MeteredEVMClient) ClientID

func (_m *MeteredEVMClient) ClientID() string

ClientID provides a mock function with given fields:

func (*MeteredEVMClient) CodeAt

func (_m *MeteredEVMClient) CodeAt(ctx context.Context, contract common.Address, blockNumber *big.Int) ([]byte, error)

CodeAt provides a mock function with given fields: ctx, contract, blockNumber

func (*MeteredEVMClient) ConcurrencyCount

func (_m *MeteredEVMClient) ConcurrencyCount() int32

ConcurrencyCount provides a mock function with given fields:

func (*MeteredEVMClient) EstimateGas

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

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

func (*MeteredEVMClient) FeeHistory added in v0.0.21

func (_m *MeteredEVMClient) 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 (*MeteredEVMClient) FilterLogs

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

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

func (*MeteredEVMClient) HeaderByHash

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

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

func (*MeteredEVMClient) HeaderByNumber

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

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

func (*MeteredEVMClient) NetworkID added in v0.0.21

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

NetworkID provides a mock function with given fields: ctx

func (*MeteredEVMClient) NonceAt

func (_m *MeteredEVMClient) NonceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (uint64, error)

NonceAt provides a mock function with given fields: ctx, account, blockNumber

func (*MeteredEVMClient) PendingBalanceAt added in v0.0.21

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

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

func (*MeteredEVMClient) PendingCallContract added in v0.0.21

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

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

func (*MeteredEVMClient) PendingCodeAt

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

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

func (*MeteredEVMClient) PendingNonceAt

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

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

func (*MeteredEVMClient) PendingStorageAt added in v0.0.21

func (_m *MeteredEVMClient) PendingStorageAt(ctx context.Context, account common.Address, key common.Hash) ([]byte, error)

PendingStorageAt provides a mock function with given fields: ctx, account, key

func (*MeteredEVMClient) PendingTransactionCount added in v0.0.21

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

PendingTransactionCount provides a mock function with given fields: ctx

func (*MeteredEVMClient) RequestCount

func (_m *MeteredEVMClient) RequestCount() int64

RequestCount provides a mock function with given fields:

func (*MeteredEVMClient) SendTransaction

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

SendTransaction provides a mock function with given fields: ctx, tx

func (*MeteredEVMClient) StorageAt

func (_m *MeteredEVMClient) 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 (*MeteredEVMClient) SubscribeFilterLogs

func (_m *MeteredEVMClient) 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 (*MeteredEVMClient) SubscribeNewHead

func (_m *MeteredEVMClient) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error)

SubscribeNewHead provides a mock function with given fields: ctx, ch

func (*MeteredEVMClient) SuggestGasPrice

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

SuggestGasPrice provides a mock function with given fields: ctx

func (*MeteredEVMClient) SuggestGasTipCap

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

SuggestGasTipCap provides a mock function with given fields: ctx

func (*MeteredEVMClient) SyncProgress added in v0.0.21

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

SyncProgress provides a mock function with given fields: ctx

func (*MeteredEVMClient) TransactionByHash

func (_m *MeteredEVMClient) TransactionByHash(ctx context.Context, txHash common.Hash) (*types.Transaction, bool, error)

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

func (*MeteredEVMClient) TransactionCount

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

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

func (*MeteredEVMClient) TransactionInBlock

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

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

func (*MeteredEVMClient) TransactionReceipt

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

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

func (*MeteredEVMClient) Web3Version added in v0.7.0

func (_m *MeteredEVMClient) Web3Version(ctx context.Context) (string, error)

Web3Version provides a mock function with given fields: ctx

type Permitter

type Permitter struct {
	mock.Mock
}

Permitter is an autogenerated mock type for the Permitter type

func NewPermitter added in v0.0.14

func NewPermitter(t mockConstructorTestingTNewPermitter) *Permitter

NewPermitter creates a new instance of Permitter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Permitter) AcquirePermit

func (_m *Permitter) AcquirePermit(ctx context.Context) error

AcquirePermit provides a mock function with given fields: ctx

func (*Permitter) ReleasePermit

func (_m *Permitter) ReleasePermit()

ReleasePermit provides a mock function with given fields:

Jump to

Keyboard shortcuts

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