mock

package
v0.0.0-...-0ff5682 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: internal/platform/blockchain/client.go

Generated by this command:

mockgen -source=internal/platform/blockchain/client.go -destination=internal/platform/blockchain/mock/client.go -package=mock

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockEthClient

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

MockEthClient is a mock of EthClient interface.

func NewMockEthClient

func NewMockEthClient(ctrl *gomock.Controller) *MockEthClient

NewMockEthClient creates a new mock instance.

func (*MockEthClient) BlockByHash

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

BlockByHash mocks base method.

func (*MockEthClient) BlockByNumber

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

BlockByNumber mocks base method.

func (*MockEthClient) BlockNumber

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

BlockNumber mocks base method.

func (*MockEthClient) CallContract

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

CallContract mocks base method.

func (*MockEthClient) ChainID

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

ChainID mocks base method.

func (*MockEthClient) Close

func (m *MockEthClient) Close()

Close mocks base method.

func (*MockEthClient) CodeAt

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

CodeAt mocks base method.

func (*MockEthClient) EXPECT

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

func (*MockEthClient) EstimateGas

func (m *MockEthClient) EstimateGas(ctx context.Context, call ethereum.CallMsg) (uint64, error)

EstimateGas mocks base method.

func (*MockEthClient) FilterLogs

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

FilterLogs mocks base method.

func (*MockEthClient) HeaderByHash

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

HeaderByHash mocks base method.

func (*MockEthClient) HeaderByNumber

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

HeaderByNumber mocks base method.

func (*MockEthClient) PendingCallContract

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

PendingCallContract mocks base method.

func (*MockEthClient) PendingCodeAt

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

PendingCodeAt mocks base method.

func (*MockEthClient) PendingNonceAt

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

PendingNonceAt mocks base method.

func (*MockEthClient) SendTransaction

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

SendTransaction mocks base method.

func (*MockEthClient) SubscribeFilterLogs

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

SubscribeFilterLogs mocks base method.

func (*MockEthClient) SubscribeNewHead

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

SubscribeNewHead mocks base method.

func (*MockEthClient) SuggestGasPrice

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

SuggestGasPrice mocks base method.

func (*MockEthClient) SuggestGasTipCap

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

SuggestGasTipCap mocks base method.

func (*MockEthClient) SyncProgress

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

SyncProgress mocks base method.

func (*MockEthClient) TransactionByHash

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

TransactionByHash mocks base method.

func (*MockEthClient) TransactionCount

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

TransactionCount mocks base method.

func (*MockEthClient) TransactionInBlock

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

TransactionInBlock mocks base method.

func (*MockEthClient) TransactionReceipt

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

TransactionReceipt mocks base method.

type MockEthClientMockRecorder

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

MockEthClientMockRecorder is the mock recorder for MockEthClient.

func (*MockEthClientMockRecorder) BlockByHash

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

BlockByHash indicates an expected call of BlockByHash.

func (*MockEthClientMockRecorder) BlockByNumber

func (mr *MockEthClientMockRecorder) BlockByNumber(ctx, number any) *gomock.Call

BlockByNumber indicates an expected call of BlockByNumber.

func (*MockEthClientMockRecorder) BlockNumber

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

BlockNumber indicates an expected call of BlockNumber.

func (*MockEthClientMockRecorder) CallContract

func (mr *MockEthClientMockRecorder) CallContract(ctx, call, blockNumber any) *gomock.Call

CallContract indicates an expected call of CallContract.

func (*MockEthClientMockRecorder) ChainID

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

ChainID indicates an expected call of ChainID.

func (*MockEthClientMockRecorder) Close

func (mr *MockEthClientMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockEthClientMockRecorder) CodeAt

func (mr *MockEthClientMockRecorder) CodeAt(ctx, contract, blockNumber any) *gomock.Call

CodeAt indicates an expected call of CodeAt.

func (*MockEthClientMockRecorder) EstimateGas

func (mr *MockEthClientMockRecorder) EstimateGas(ctx, call any) *gomock.Call

EstimateGas indicates an expected call of EstimateGas.

func (*MockEthClientMockRecorder) FilterLogs

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

FilterLogs indicates an expected call of FilterLogs.

func (*MockEthClientMockRecorder) HeaderByHash

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

HeaderByHash indicates an expected call of HeaderByHash.

func (*MockEthClientMockRecorder) HeaderByNumber

func (mr *MockEthClientMockRecorder) HeaderByNumber(ctx, number any) *gomock.Call

HeaderByNumber indicates an expected call of HeaderByNumber.

func (*MockEthClientMockRecorder) PendingCallContract

func (mr *MockEthClientMockRecorder) PendingCallContract(ctx, call any) *gomock.Call

PendingCallContract indicates an expected call of PendingCallContract.

func (*MockEthClientMockRecorder) PendingCodeAt

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

PendingCodeAt indicates an expected call of PendingCodeAt.

func (*MockEthClientMockRecorder) PendingNonceAt

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

PendingNonceAt indicates an expected call of PendingNonceAt.

func (*MockEthClientMockRecorder) SendTransaction

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

SendTransaction indicates an expected call of SendTransaction.

func (*MockEthClientMockRecorder) SubscribeFilterLogs

func (mr *MockEthClientMockRecorder) SubscribeFilterLogs(ctx, q, ch any) *gomock.Call

SubscribeFilterLogs indicates an expected call of SubscribeFilterLogs.

func (*MockEthClientMockRecorder) SubscribeNewHead

func (mr *MockEthClientMockRecorder) SubscribeNewHead(ctx, ch any) *gomock.Call

SubscribeNewHead indicates an expected call of SubscribeNewHead.

func (*MockEthClientMockRecorder) SuggestGasPrice

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

SuggestGasPrice indicates an expected call of SuggestGasPrice.

func (*MockEthClientMockRecorder) SuggestGasTipCap

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

SuggestGasTipCap indicates an expected call of SuggestGasTipCap.

func (*MockEthClientMockRecorder) SyncProgress

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

SyncProgress indicates an expected call of SyncProgress.

func (*MockEthClientMockRecorder) TransactionByHash

func (mr *MockEthClientMockRecorder) TransactionByHash(ctx, txHash any) *gomock.Call

TransactionByHash indicates an expected call of TransactionByHash.

func (*MockEthClientMockRecorder) TransactionCount

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

TransactionCount indicates an expected call of TransactionCount.

func (*MockEthClientMockRecorder) TransactionInBlock

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

TransactionInBlock indicates an expected call of TransactionInBlock.

func (*MockEthClientMockRecorder) TransactionReceipt

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

TransactionReceipt indicates an expected call of TransactionReceipt.

Jump to

Keyboard shortcuts

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