mocks

package
v1.41.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: LGPL-3.0, MIT Imports: 9 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRawInterface

type MockRawInterface struct {
	// contains filtered or unexported fields
}

MockRawInterface is a mock of RawInterface interface.

func NewMockRawInterface

func NewMockRawInterface(ctrl *gomock.Controller) *MockRawInterface

NewMockRawInterface creates a new mock instance.

func (*MockRawInterface) BalanceAt

func (m *MockRawInterface) BalanceAt(ctx context.Context, account common.Address, blockNum *big.Int) (*big.Int, error)

BalanceAt mocks base method.

func (*MockRawInterface) BlockByHash

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

BlockByHash mocks base method.

func (*MockRawInterface) BlockByNumber

func (m *MockRawInterface) BlockByNumber(ctx context.Context, blockNum *big.Int) (*types.Block, error)

BlockByNumber mocks base method.

func (*MockRawInterface) BlockNumber

func (m *MockRawInterface) BlockNumber(ctx context.Context) (uint64, error)

BlockNumber mocks base method.

func (*MockRawInterface) BlocksByNumberRange

func (m *MockRawInterface) BlocksByNumberRange(ctx context.Context, fromBlockNumber, toBlockNumber *big.Int) ([]*types.Block, error)

BlocksByNumberRange mocks base method.

func (*MockRawInterface) BlocksByNumbers

func (m *MockRawInterface) BlocksByNumbers(ctx context.Context, blockNumbers []*big.Int) ([]*types.Block, error)

BlocksByNumbers mocks base method.

func (*MockRawInterface) CallContract

func (m *MockRawInterface) CallContract(ctx context.Context, msg ethereum.CallMsg, blockNum *big.Int) ([]byte, error)

CallContract mocks base method.

func (*MockRawInterface) CallContractAtHash

func (m *MockRawInterface) CallContractAtHash(ctx context.Context, msg ethereum.CallMsg, blockHash common.Hash) ([]byte, error)

CallContractAtHash mocks base method.

func (*MockRawInterface) ChainID

func (m *MockRawInterface) ChainID(ctx context.Context) (*big.Int, error)

ChainID mocks base method.

func (*MockRawInterface) CloseStreamConns

func (m *MockRawInterface) CloseStreamConns()

CloseStreamConns mocks base method.

func (*MockRawInterface) CodeAt

func (m *MockRawInterface) CodeAt(ctx context.Context, account common.Address, blockNum *big.Int) ([]byte, error)

CodeAt mocks base method.

func (*MockRawInterface) Do

func (m *MockRawInterface) Do(ctx context.Context, calls ...ethrpc.Call) ([]byte, error)

Do mocks base method.

func (*MockRawInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRawInterface) EstimateGas

func (m *MockRawInterface) EstimateGas(ctx context.Context, msg ethereum.CallMsg) (uint64, error)

EstimateGas mocks base method.

func (*MockRawInterface) FeeHistory

func (m *MockRawInterface) FeeHistory(ctx context.Context, blockCount uint64, lastBlock *big.Int, rewardPercentiles []float64) (*ethereum.FeeHistory, error)

FeeHistory mocks base method.

func (*MockRawInterface) FilterLogs

func (m *MockRawInterface) FilterLogs(ctx context.Context, q ethereum.FilterQuery) ([]types.Log, error)

FilterLogs mocks base method.

func (*MockRawInterface) HeaderByHash

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

HeaderByHash mocks base method.

func (*MockRawInterface) HeaderByNumber

func (m *MockRawInterface) HeaderByNumber(ctx context.Context, blockNum *big.Int) (*types.Header, error)

HeaderByNumber mocks base method.

func (*MockRawInterface) HeadersByNumberRange

func (m *MockRawInterface) HeadersByNumberRange(ctx context.Context, fromBlockNumber, toBlockNumber *big.Int) ([]*types.Header, error)

HeadersByNumberRange mocks base method.

func (*MockRawInterface) HeadersByNumbers

func (m *MockRawInterface) HeadersByNumbers(ctx context.Context, blockNumbers []*big.Int) ([]*types.Header, error)

HeadersByNumbers mocks base method.

func (*MockRawInterface) IsStreamingEnabled

func (m *MockRawInterface) IsStreamingEnabled() bool

IsStreamingEnabled mocks base method.

func (*MockRawInterface) NetworkID

func (m *MockRawInterface) NetworkID(ctx context.Context) (*big.Int, error)

NetworkID mocks base method.

func (*MockRawInterface) NonceAt

func (m *MockRawInterface) NonceAt(ctx context.Context, account common.Address, blockNum *big.Int) (uint64, error)

NonceAt mocks base method.

func (*MockRawInterface) PeerCount

func (m *MockRawInterface) PeerCount(ctx context.Context) (uint64, error)

PeerCount mocks base method.

func (*MockRawInterface) PendingBalanceAt

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

PendingBalanceAt mocks base method.

func (*MockRawInterface) PendingCallContract

func (m *MockRawInterface) PendingCallContract(ctx context.Context, msg ethereum.CallMsg) ([]byte, error)

PendingCallContract mocks base method.

func (*MockRawInterface) PendingCodeAt

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

PendingCodeAt mocks base method.

func (*MockRawInterface) PendingNonceAt

func (m *MockRawInterface) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)

PendingNonceAt mocks base method.

func (*MockRawInterface) PendingStorageAt

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

PendingStorageAt mocks base method.

func (*MockRawInterface) PendingTransactionCount

func (m *MockRawInterface) PendingTransactionCount(ctx context.Context) (uint, error)

PendingTransactionCount mocks base method.

func (*MockRawInterface) RawBlockByHash

func (m *MockRawInterface) RawBlockByHash(ctx context.Context, hash common.Hash) (json.RawMessage, error)

RawBlockByHash mocks base method.

func (*MockRawInterface) RawBlockByNumber

func (m *MockRawInterface) RawBlockByNumber(ctx context.Context, blockNum *big.Int) (json.RawMessage, error)

RawBlockByNumber mocks base method.

func (*MockRawInterface) RawFilterLogs

RawFilterLogs mocks base method.

func (*MockRawInterface) SendRawTransaction

func (m *MockRawInterface) SendRawTransaction(ctx context.Context, signedTxHex string) (common.Hash, error)

SendRawTransaction mocks base method.

func (*MockRawInterface) SendTransaction

func (m *MockRawInterface) SendTransaction(ctx context.Context, tx *types.Transaction) error

SendTransaction mocks base method.

func (*MockRawInterface) StorageAt

func (m *MockRawInterface) StorageAt(ctx context.Context, account common.Address, key common.Hash, blockNum *big.Int) ([]byte, error)

StorageAt mocks base method.

func (*MockRawInterface) SubscribeFilterLogs

func (m *MockRawInterface) SubscribeFilterLogs(ctx context.Context, query ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)

SubscribeFilterLogs mocks base method.

func (*MockRawInterface) SubscribeNewHeads

func (m *MockRawInterface) SubscribeNewHeads(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error)

SubscribeNewHeads mocks base method.

func (*MockRawInterface) SuggestGasPrice

func (m *MockRawInterface) SuggestGasPrice(ctx context.Context) (*big.Int, error)

SuggestGasPrice mocks base method.

func (*MockRawInterface) SuggestGasTipCap

func (m *MockRawInterface) SuggestGasTipCap(ctx context.Context) (*big.Int, error)

SuggestGasTipCap mocks base method.

func (*MockRawInterface) SyncProgress

func (m *MockRawInterface) SyncProgress(ctx context.Context) (*ethereum.SyncProgress, error)

SyncProgress mocks base method.

func (*MockRawInterface) TransactionByHash

func (m *MockRawInterface) TransactionByHash(ctx context.Context, hash common.Hash) (*types.Transaction, bool, error)

TransactionByHash mocks base method.

func (*MockRawInterface) TransactionCount

func (m *MockRawInterface) TransactionCount(ctx context.Context, blockHash common.Hash) (uint, error)

TransactionCount mocks base method.

func (*MockRawInterface) TransactionInBlock

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

TransactionInBlock mocks base method.

func (*MockRawInterface) TransactionReceipt

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

TransactionReceipt mocks base method.

func (*MockRawInterface) TransactionSender

func (m *MockRawInterface) TransactionSender(ctx context.Context, tx *types.Transaction, block common.Hash, index uint) (common.Address, error)

TransactionSender mocks base method.

type MockRawInterfaceMockRecorder

type MockRawInterfaceMockRecorder struct {
	// contains filtered or unexported fields
}

MockRawInterfaceMockRecorder is the mock recorder for MockRawInterface.

func (*MockRawInterfaceMockRecorder) BalanceAt

func (mr *MockRawInterfaceMockRecorder) BalanceAt(ctx, account, blockNum any) *gomock.Call

BalanceAt indicates an expected call of BalanceAt.

func (*MockRawInterfaceMockRecorder) BlockByHash

func (mr *MockRawInterfaceMockRecorder) BlockByHash(ctx, hash any) *gomock.Call

BlockByHash indicates an expected call of BlockByHash.

func (*MockRawInterfaceMockRecorder) BlockByNumber

func (mr *MockRawInterfaceMockRecorder) BlockByNumber(ctx, blockNum any) *gomock.Call

BlockByNumber indicates an expected call of BlockByNumber.

func (*MockRawInterfaceMockRecorder) BlockNumber

func (mr *MockRawInterfaceMockRecorder) BlockNumber(ctx any) *gomock.Call

BlockNumber indicates an expected call of BlockNumber.

func (*MockRawInterfaceMockRecorder) BlocksByNumberRange

func (mr *MockRawInterfaceMockRecorder) BlocksByNumberRange(ctx, fromBlockNumber, toBlockNumber any) *gomock.Call

BlocksByNumberRange indicates an expected call of BlocksByNumberRange.

func (*MockRawInterfaceMockRecorder) BlocksByNumbers

func (mr *MockRawInterfaceMockRecorder) BlocksByNumbers(ctx, blockNumbers any) *gomock.Call

BlocksByNumbers indicates an expected call of BlocksByNumbers.

func (*MockRawInterfaceMockRecorder) CallContract

func (mr *MockRawInterfaceMockRecorder) CallContract(ctx, msg, blockNum any) *gomock.Call

CallContract indicates an expected call of CallContract.

func (*MockRawInterfaceMockRecorder) CallContractAtHash

func (mr *MockRawInterfaceMockRecorder) CallContractAtHash(ctx, msg, blockHash any) *gomock.Call

CallContractAtHash indicates an expected call of CallContractAtHash.

func (*MockRawInterfaceMockRecorder) ChainID

func (mr *MockRawInterfaceMockRecorder) ChainID(ctx any) *gomock.Call

ChainID indicates an expected call of ChainID.

func (*MockRawInterfaceMockRecorder) CloseStreamConns

func (mr *MockRawInterfaceMockRecorder) CloseStreamConns() *gomock.Call

CloseStreamConns indicates an expected call of CloseStreamConns.

func (*MockRawInterfaceMockRecorder) CodeAt

func (mr *MockRawInterfaceMockRecorder) CodeAt(ctx, account, blockNum any) *gomock.Call

CodeAt indicates an expected call of CodeAt.

func (*MockRawInterfaceMockRecorder) Do

func (mr *MockRawInterfaceMockRecorder) Do(ctx any, calls ...any) *gomock.Call

Do indicates an expected call of Do.

func (*MockRawInterfaceMockRecorder) EstimateGas

func (mr *MockRawInterfaceMockRecorder) EstimateGas(ctx, msg any) *gomock.Call

EstimateGas indicates an expected call of EstimateGas.

func (*MockRawInterfaceMockRecorder) FeeHistory

func (mr *MockRawInterfaceMockRecorder) FeeHistory(ctx, blockCount, lastBlock, rewardPercentiles any) *gomock.Call

FeeHistory indicates an expected call of FeeHistory.

func (*MockRawInterfaceMockRecorder) FilterLogs

func (mr *MockRawInterfaceMockRecorder) FilterLogs(ctx, q any) *gomock.Call

FilterLogs indicates an expected call of FilterLogs.

func (*MockRawInterfaceMockRecorder) HeaderByHash

func (mr *MockRawInterfaceMockRecorder) HeaderByHash(ctx, hash any) *gomock.Call

HeaderByHash indicates an expected call of HeaderByHash.

func (*MockRawInterfaceMockRecorder) HeaderByNumber

func (mr *MockRawInterfaceMockRecorder) HeaderByNumber(ctx, blockNum any) *gomock.Call

HeaderByNumber indicates an expected call of HeaderByNumber.

func (*MockRawInterfaceMockRecorder) HeadersByNumberRange

func (mr *MockRawInterfaceMockRecorder) HeadersByNumberRange(ctx, fromBlockNumber, toBlockNumber any) *gomock.Call

HeadersByNumberRange indicates an expected call of HeadersByNumberRange.

func (*MockRawInterfaceMockRecorder) HeadersByNumbers

func (mr *MockRawInterfaceMockRecorder) HeadersByNumbers(ctx, blockNumbers any) *gomock.Call

HeadersByNumbers indicates an expected call of HeadersByNumbers.

func (*MockRawInterfaceMockRecorder) IsStreamingEnabled

func (mr *MockRawInterfaceMockRecorder) IsStreamingEnabled() *gomock.Call

IsStreamingEnabled indicates an expected call of IsStreamingEnabled.

func (*MockRawInterfaceMockRecorder) NetworkID

func (mr *MockRawInterfaceMockRecorder) NetworkID(ctx any) *gomock.Call

NetworkID indicates an expected call of NetworkID.

func (*MockRawInterfaceMockRecorder) NonceAt

func (mr *MockRawInterfaceMockRecorder) NonceAt(ctx, account, blockNum any) *gomock.Call

NonceAt indicates an expected call of NonceAt.

func (*MockRawInterfaceMockRecorder) PeerCount

func (mr *MockRawInterfaceMockRecorder) PeerCount(ctx any) *gomock.Call

PeerCount indicates an expected call of PeerCount.

func (*MockRawInterfaceMockRecorder) PendingBalanceAt

func (mr *MockRawInterfaceMockRecorder) PendingBalanceAt(ctx, account any) *gomock.Call

PendingBalanceAt indicates an expected call of PendingBalanceAt.

func (*MockRawInterfaceMockRecorder) PendingCallContract

func (mr *MockRawInterfaceMockRecorder) PendingCallContract(ctx, msg any) *gomock.Call

PendingCallContract indicates an expected call of PendingCallContract.

func (*MockRawInterfaceMockRecorder) PendingCodeAt

func (mr *MockRawInterfaceMockRecorder) PendingCodeAt(ctx, account any) *gomock.Call

PendingCodeAt indicates an expected call of PendingCodeAt.

func (*MockRawInterfaceMockRecorder) PendingNonceAt

func (mr *MockRawInterfaceMockRecorder) PendingNonceAt(ctx, account any) *gomock.Call

PendingNonceAt indicates an expected call of PendingNonceAt.

func (*MockRawInterfaceMockRecorder) PendingStorageAt

func (mr *MockRawInterfaceMockRecorder) PendingStorageAt(ctx, account, key any) *gomock.Call

PendingStorageAt indicates an expected call of PendingStorageAt.

func (*MockRawInterfaceMockRecorder) PendingTransactionCount

func (mr *MockRawInterfaceMockRecorder) PendingTransactionCount(ctx any) *gomock.Call

PendingTransactionCount indicates an expected call of PendingTransactionCount.

func (*MockRawInterfaceMockRecorder) RawBlockByHash

func (mr *MockRawInterfaceMockRecorder) RawBlockByHash(ctx, hash any) *gomock.Call

RawBlockByHash indicates an expected call of RawBlockByHash.

func (*MockRawInterfaceMockRecorder) RawBlockByNumber

func (mr *MockRawInterfaceMockRecorder) RawBlockByNumber(ctx, blockNum any) *gomock.Call

RawBlockByNumber indicates an expected call of RawBlockByNumber.

func (*MockRawInterfaceMockRecorder) RawFilterLogs

func (mr *MockRawInterfaceMockRecorder) RawFilterLogs(ctx, q any) *gomock.Call

RawFilterLogs indicates an expected call of RawFilterLogs.

func (*MockRawInterfaceMockRecorder) SendRawTransaction

func (mr *MockRawInterfaceMockRecorder) SendRawTransaction(ctx, signedTxHex any) *gomock.Call

SendRawTransaction indicates an expected call of SendRawTransaction.

func (*MockRawInterfaceMockRecorder) SendTransaction

func (mr *MockRawInterfaceMockRecorder) SendTransaction(ctx, tx any) *gomock.Call

SendTransaction indicates an expected call of SendTransaction.

func (*MockRawInterfaceMockRecorder) StorageAt

func (mr *MockRawInterfaceMockRecorder) StorageAt(ctx, account, key, blockNum any) *gomock.Call

StorageAt indicates an expected call of StorageAt.

func (*MockRawInterfaceMockRecorder) SubscribeFilterLogs

func (mr *MockRawInterfaceMockRecorder) SubscribeFilterLogs(ctx, query, ch any) *gomock.Call

SubscribeFilterLogs indicates an expected call of SubscribeFilterLogs.

func (*MockRawInterfaceMockRecorder) SubscribeNewHeads

func (mr *MockRawInterfaceMockRecorder) SubscribeNewHeads(ctx, ch any) *gomock.Call

SubscribeNewHeads indicates an expected call of SubscribeNewHeads.

func (*MockRawInterfaceMockRecorder) SuggestGasPrice

func (mr *MockRawInterfaceMockRecorder) SuggestGasPrice(ctx any) *gomock.Call

SuggestGasPrice indicates an expected call of SuggestGasPrice.

func (*MockRawInterfaceMockRecorder) SuggestGasTipCap

func (mr *MockRawInterfaceMockRecorder) SuggestGasTipCap(ctx any) *gomock.Call

SuggestGasTipCap indicates an expected call of SuggestGasTipCap.

func (*MockRawInterfaceMockRecorder) SyncProgress

func (mr *MockRawInterfaceMockRecorder) SyncProgress(ctx any) *gomock.Call

SyncProgress indicates an expected call of SyncProgress.

func (*MockRawInterfaceMockRecorder) TransactionByHash

func (mr *MockRawInterfaceMockRecorder) TransactionByHash(ctx, hash any) *gomock.Call

TransactionByHash indicates an expected call of TransactionByHash.

func (*MockRawInterfaceMockRecorder) TransactionCount

func (mr *MockRawInterfaceMockRecorder) TransactionCount(ctx, blockHash any) *gomock.Call

TransactionCount indicates an expected call of TransactionCount.

func (*MockRawInterfaceMockRecorder) TransactionInBlock

func (mr *MockRawInterfaceMockRecorder) TransactionInBlock(ctx, blockHash, index any) *gomock.Call

TransactionInBlock indicates an expected call of TransactionInBlock.

func (*MockRawInterfaceMockRecorder) TransactionReceipt

func (mr *MockRawInterfaceMockRecorder) TransactionReceipt(ctx, txHash any) *gomock.Call

TransactionReceipt indicates an expected call of TransactionReceipt.

func (*MockRawInterfaceMockRecorder) TransactionSender

func (mr *MockRawInterfaceMockRecorder) TransactionSender(ctx, tx, block, index any) *gomock.Call

TransactionSender indicates an expected call of TransactionSender.

Jump to

Keyboard shortcuts

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