mocks

package
v0.2.18 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: AGPL-3.0, AGPL-3.0-or-later Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EthereumClient added in v0.2.6

type EthereumClient struct {
	mock.Mock
}

EthereumClient is an autogenerated mock type for the EthereumClient type

func NewEthereumClient added in v0.2.6

func NewEthereumClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *EthereumClient

NewEthereumClient creates a new instance of EthereumClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*EthereumClient) BalanceAt added in v0.2.6

func (_m *EthereumClient) 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 (*EthereumClient) BlockByHash added in v0.2.6

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

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

func (*EthereumClient) BlockByNumber added in v0.2.6

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

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

func (*EthereumClient) CallContract added in v0.2.6

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

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

func (*EthereumClient) ChainID added in v0.2.8

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

ChainID provides a mock function with given fields: ctx

func (*EthereumClient) Client added in v0.2.8

func (_m *EthereumClient) Client() *rpc.Client

Client provides a mock function with no fields

func (*EthereumClient) CodeAt added in v0.2.6

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

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

func (*EthereumClient) EXPECT added in v0.2.6

func (*EthereumClient) EstimateGas added in v0.2.6

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

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

func (*EthereumClient) HeaderByHash added in v0.2.6

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

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

func (*EthereumClient) HeaderByNumber added in v0.2.6

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

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

func (*EthereumClient) NonceAt added in v0.2.6

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

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

func (*EthereumClient) PendingBalanceAt added in v0.2.6

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

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

func (*EthereumClient) PendingCodeAt added in v0.2.6

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

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

func (*EthereumClient) PendingNonceAt added in v0.2.6

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

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

func (*EthereumClient) PendingStorageAt added in v0.2.6

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

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

func (*EthereumClient) PendingTransactionCount added in v0.2.6

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

PendingTransactionCount provides a mock function with given fields: ctx

func (*EthereumClient) SendTransaction added in v0.2.6

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

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

func (*EthereumClient) StorageAt added in v0.2.6

func (_m *EthereumClient) 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 (*EthereumClient) SubscribeNewHead added in v0.2.6

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

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

func (*EthereumClient) SuggestGasPrice added in v0.2.6

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

SuggestGasPrice provides a mock function with given fields: ctx

func (*EthereumClient) SuggestGasTipCap added in v0.2.6

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

SuggestGasTipCap provides a mock function with given fields: ctx

func (*EthereumClient) TransactionByHash added in v0.2.6

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

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

func (*EthereumClient) TransactionCount added in v0.2.6

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

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

func (*EthereumClient) TransactionInBlock added in v0.2.6

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

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

func (*EthereumClient) TransactionReceipt added in v0.2.6

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

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

type EthereumClient_BalanceAt_Call added in v0.2.6

type EthereumClient_BalanceAt_Call struct {
	*mock.Call
}

EthereumClient_BalanceAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BalanceAt'

func (*EthereumClient_BalanceAt_Call) Return added in v0.2.6

func (*EthereumClient_BalanceAt_Call) Run added in v0.2.6

func (_c *EthereumClient_BalanceAt_Call) Run(run func(ctx context.Context, account common.Address, blockNumber *big.Int)) *EthereumClient_BalanceAt_Call

func (*EthereumClient_BalanceAt_Call) RunAndReturn added in v0.2.6

type EthereumClient_BlockByHash_Call added in v0.2.6

type EthereumClient_BlockByHash_Call struct {
	*mock.Call
}

EthereumClient_BlockByHash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockByHash'

func (*EthereumClient_BlockByHash_Call) Return added in v0.2.6

func (*EthereumClient_BlockByHash_Call) Run added in v0.2.6

func (*EthereumClient_BlockByHash_Call) RunAndReturn added in v0.2.6

type EthereumClient_BlockByNumber_Call added in v0.2.6

type EthereumClient_BlockByNumber_Call struct {
	*mock.Call
}

EthereumClient_BlockByNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BlockByNumber'

func (*EthereumClient_BlockByNumber_Call) Return added in v0.2.6

func (*EthereumClient_BlockByNumber_Call) Run added in v0.2.6

func (*EthereumClient_BlockByNumber_Call) RunAndReturn added in v0.2.6

type EthereumClient_CallContract_Call added in v0.2.6

type EthereumClient_CallContract_Call struct {
	*mock.Call
}

EthereumClient_CallContract_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CallContract'

func (*EthereumClient_CallContract_Call) Return added in v0.2.6

func (*EthereumClient_CallContract_Call) Run added in v0.2.6

func (*EthereumClient_CallContract_Call) RunAndReturn added in v0.2.6

type EthereumClient_ChainID_Call added in v0.2.8

type EthereumClient_ChainID_Call struct {
	*mock.Call
}

EthereumClient_ChainID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ChainID'

func (*EthereumClient_ChainID_Call) Return added in v0.2.8

func (*EthereumClient_ChainID_Call) Run added in v0.2.8

func (*EthereumClient_ChainID_Call) RunAndReturn added in v0.2.8

type EthereumClient_Client_Call added in v0.2.8

type EthereumClient_Client_Call struct {
	*mock.Call
}

EthereumClient_Client_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Client'

func (*EthereumClient_Client_Call) Return added in v0.2.8

func (*EthereumClient_Client_Call) Run added in v0.2.8

func (*EthereumClient_Client_Call) RunAndReturn added in v0.2.8

func (_c *EthereumClient_Client_Call) RunAndReturn(run func() *rpc.Client) *EthereumClient_Client_Call

type EthereumClient_CodeAt_Call added in v0.2.6

type EthereumClient_CodeAt_Call struct {
	*mock.Call
}

EthereumClient_CodeAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CodeAt'

func (*EthereumClient_CodeAt_Call) Return added in v0.2.6

func (*EthereumClient_CodeAt_Call) Run added in v0.2.6

func (_c *EthereumClient_CodeAt_Call) Run(run func(ctx context.Context, account common.Address, blockNumber *big.Int)) *EthereumClient_CodeAt_Call

func (*EthereumClient_CodeAt_Call) RunAndReturn added in v0.2.6

type EthereumClient_EstimateGas_Call added in v0.2.6

type EthereumClient_EstimateGas_Call struct {
	*mock.Call
}

EthereumClient_EstimateGas_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EstimateGas'

func (*EthereumClient_EstimateGas_Call) Return added in v0.2.6

func (*EthereumClient_EstimateGas_Call) Run added in v0.2.6

func (*EthereumClient_EstimateGas_Call) RunAndReturn added in v0.2.6

type EthereumClient_Expecter added in v0.2.6

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

func (*EthereumClient_Expecter) BalanceAt added in v0.2.6

func (_e *EthereumClient_Expecter) BalanceAt(ctx interface{}, account interface{}, blockNumber interface{}) *EthereumClient_BalanceAt_Call

BalanceAt is a helper method to define mock.On call

  • ctx context.Context
  • account common.Address
  • blockNumber *big.Int

func (*EthereumClient_Expecter) BlockByHash added in v0.2.6

func (_e *EthereumClient_Expecter) BlockByHash(ctx interface{}, hash interface{}) *EthereumClient_BlockByHash_Call

BlockByHash is a helper method to define mock.On call

  • ctx context.Context
  • hash common.Hash

func (*EthereumClient_Expecter) BlockByNumber added in v0.2.6

func (_e *EthereumClient_Expecter) BlockByNumber(ctx interface{}, number interface{}) *EthereumClient_BlockByNumber_Call

BlockByNumber is a helper method to define mock.On call

  • ctx context.Context
  • number *big.Int

func (*EthereumClient_Expecter) CallContract added in v0.2.6

func (_e *EthereumClient_Expecter) CallContract(ctx interface{}, call interface{}, blockNumber interface{}) *EthereumClient_CallContract_Call

CallContract is a helper method to define mock.On call

  • ctx context.Context
  • call ethereum.CallMsg
  • blockNumber *big.Int

func (*EthereumClient_Expecter) ChainID added in v0.2.8

func (_e *EthereumClient_Expecter) ChainID(ctx interface{}) *EthereumClient_ChainID_Call

ChainID is a helper method to define mock.On call

  • ctx context.Context

func (*EthereumClient_Expecter) Client added in v0.2.8

Client is a helper method to define mock.On call

func (*EthereumClient_Expecter) CodeAt added in v0.2.6

func (_e *EthereumClient_Expecter) CodeAt(ctx interface{}, account interface{}, blockNumber interface{}) *EthereumClient_CodeAt_Call

CodeAt is a helper method to define mock.On call

  • ctx context.Context
  • account common.Address
  • blockNumber *big.Int

func (*EthereumClient_Expecter) EstimateGas added in v0.2.6

func (_e *EthereumClient_Expecter) EstimateGas(ctx interface{}, call interface{}) *EthereumClient_EstimateGas_Call

EstimateGas is a helper method to define mock.On call

  • ctx context.Context
  • call ethereum.CallMsg

func (*EthereumClient_Expecter) HeaderByHash added in v0.2.6

func (_e *EthereumClient_Expecter) HeaderByHash(ctx interface{}, hash interface{}) *EthereumClient_HeaderByHash_Call

HeaderByHash is a helper method to define mock.On call

  • ctx context.Context
  • hash common.Hash

func (*EthereumClient_Expecter) HeaderByNumber added in v0.2.6

func (_e *EthereumClient_Expecter) HeaderByNumber(ctx interface{}, number interface{}) *EthereumClient_HeaderByNumber_Call

HeaderByNumber is a helper method to define mock.On call

  • ctx context.Context
  • number *big.Int

func (*EthereumClient_Expecter) NonceAt added in v0.2.6

func (_e *EthereumClient_Expecter) NonceAt(ctx interface{}, account interface{}, blockNumber interface{}) *EthereumClient_NonceAt_Call

NonceAt is a helper method to define mock.On call

  • ctx context.Context
  • account common.Address
  • blockNumber *big.Int

func (*EthereumClient_Expecter) PendingBalanceAt added in v0.2.6

func (_e *EthereumClient_Expecter) PendingBalanceAt(ctx interface{}, account interface{}) *EthereumClient_PendingBalanceAt_Call

PendingBalanceAt is a helper method to define mock.On call

  • ctx context.Context
  • account common.Address

func (*EthereumClient_Expecter) PendingCodeAt added in v0.2.6

func (_e *EthereumClient_Expecter) PendingCodeAt(ctx interface{}, account interface{}) *EthereumClient_PendingCodeAt_Call

PendingCodeAt is a helper method to define mock.On call

  • ctx context.Context
  • account common.Address

func (*EthereumClient_Expecter) PendingNonceAt added in v0.2.6

func (_e *EthereumClient_Expecter) PendingNonceAt(ctx interface{}, account interface{}) *EthereumClient_PendingNonceAt_Call

PendingNonceAt is a helper method to define mock.On call

  • ctx context.Context
  • account common.Address

func (*EthereumClient_Expecter) PendingStorageAt added in v0.2.6

func (_e *EthereumClient_Expecter) PendingStorageAt(ctx interface{}, account interface{}, key interface{}) *EthereumClient_PendingStorageAt_Call

PendingStorageAt is a helper method to define mock.On call

  • ctx context.Context
  • account common.Address
  • key common.Hash

func (*EthereumClient_Expecter) PendingTransactionCount added in v0.2.6

func (_e *EthereumClient_Expecter) PendingTransactionCount(ctx interface{}) *EthereumClient_PendingTransactionCount_Call

PendingTransactionCount is a helper method to define mock.On call

  • ctx context.Context

func (*EthereumClient_Expecter) SendTransaction added in v0.2.6

func (_e *EthereumClient_Expecter) SendTransaction(ctx interface{}, tx interface{}) *EthereumClient_SendTransaction_Call

SendTransaction is a helper method to define mock.On call

  • ctx context.Context
  • tx *types.Transaction

func (*EthereumClient_Expecter) StorageAt added in v0.2.6

func (_e *EthereumClient_Expecter) StorageAt(ctx interface{}, account interface{}, key interface{}, blockNumber interface{}) *EthereumClient_StorageAt_Call

StorageAt is a helper method to define mock.On call

  • ctx context.Context
  • account common.Address
  • key common.Hash
  • blockNumber *big.Int

func (*EthereumClient_Expecter) SubscribeNewHead added in v0.2.6

func (_e *EthereumClient_Expecter) SubscribeNewHead(ctx interface{}, ch interface{}) *EthereumClient_SubscribeNewHead_Call

SubscribeNewHead is a helper method to define mock.On call

  • ctx context.Context
  • ch chan<- *types.Header

func (*EthereumClient_Expecter) SuggestGasPrice added in v0.2.6

func (_e *EthereumClient_Expecter) SuggestGasPrice(ctx interface{}) *EthereumClient_SuggestGasPrice_Call

SuggestGasPrice is a helper method to define mock.On call

  • ctx context.Context

func (*EthereumClient_Expecter) SuggestGasTipCap added in v0.2.6

func (_e *EthereumClient_Expecter) SuggestGasTipCap(ctx interface{}) *EthereumClient_SuggestGasTipCap_Call

SuggestGasTipCap is a helper method to define mock.On call

  • ctx context.Context

func (*EthereumClient_Expecter) TransactionByHash added in v0.2.6

func (_e *EthereumClient_Expecter) TransactionByHash(ctx interface{}, txHash interface{}) *EthereumClient_TransactionByHash_Call

TransactionByHash is a helper method to define mock.On call

  • ctx context.Context
  • txHash common.Hash

func (*EthereumClient_Expecter) TransactionCount added in v0.2.6

func (_e *EthereumClient_Expecter) TransactionCount(ctx interface{}, blockHash interface{}) *EthereumClient_TransactionCount_Call

TransactionCount is a helper method to define mock.On call

  • ctx context.Context
  • blockHash common.Hash

func (*EthereumClient_Expecter) TransactionInBlock added in v0.2.6

func (_e *EthereumClient_Expecter) TransactionInBlock(ctx interface{}, blockHash interface{}, index interface{}) *EthereumClient_TransactionInBlock_Call

TransactionInBlock is a helper method to define mock.On call

  • ctx context.Context
  • blockHash common.Hash
  • index uint

func (*EthereumClient_Expecter) TransactionReceipt added in v0.2.6

func (_e *EthereumClient_Expecter) TransactionReceipt(ctx interface{}, txHash interface{}) *EthereumClient_TransactionReceipt_Call

TransactionReceipt is a helper method to define mock.On call

  • ctx context.Context
  • txHash common.Hash

type EthereumClient_HeaderByHash_Call added in v0.2.6

type EthereumClient_HeaderByHash_Call struct {
	*mock.Call
}

EthereumClient_HeaderByHash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HeaderByHash'

func (*EthereumClient_HeaderByHash_Call) Return added in v0.2.6

func (*EthereumClient_HeaderByHash_Call) Run added in v0.2.6

func (*EthereumClient_HeaderByHash_Call) RunAndReturn added in v0.2.6

type EthereumClient_HeaderByNumber_Call added in v0.2.6

type EthereumClient_HeaderByNumber_Call struct {
	*mock.Call
}

EthereumClient_HeaderByNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HeaderByNumber'

func (*EthereumClient_HeaderByNumber_Call) Return added in v0.2.6

func (*EthereumClient_HeaderByNumber_Call) Run added in v0.2.6

func (*EthereumClient_HeaderByNumber_Call) RunAndReturn added in v0.2.6

type EthereumClient_NonceAt_Call added in v0.2.6

type EthereumClient_NonceAt_Call struct {
	*mock.Call
}

EthereumClient_NonceAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NonceAt'

func (*EthereumClient_NonceAt_Call) Return added in v0.2.6

func (*EthereumClient_NonceAt_Call) Run added in v0.2.6

func (_c *EthereumClient_NonceAt_Call) Run(run func(ctx context.Context, account common.Address, blockNumber *big.Int)) *EthereumClient_NonceAt_Call

func (*EthereumClient_NonceAt_Call) RunAndReturn added in v0.2.6

type EthereumClient_PendingBalanceAt_Call added in v0.2.6

type EthereumClient_PendingBalanceAt_Call struct {
	*mock.Call
}

EthereumClient_PendingBalanceAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PendingBalanceAt'

func (*EthereumClient_PendingBalanceAt_Call) Return added in v0.2.6

func (*EthereumClient_PendingBalanceAt_Call) Run added in v0.2.6

func (*EthereumClient_PendingBalanceAt_Call) RunAndReturn added in v0.2.6

type EthereumClient_PendingCodeAt_Call added in v0.2.6

type EthereumClient_PendingCodeAt_Call struct {
	*mock.Call
}

EthereumClient_PendingCodeAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PendingCodeAt'

func (*EthereumClient_PendingCodeAt_Call) Return added in v0.2.6

func (*EthereumClient_PendingCodeAt_Call) Run added in v0.2.6

func (*EthereumClient_PendingCodeAt_Call) RunAndReturn added in v0.2.6

type EthereumClient_PendingNonceAt_Call added in v0.2.6

type EthereumClient_PendingNonceAt_Call struct {
	*mock.Call
}

EthereumClient_PendingNonceAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PendingNonceAt'

func (*EthereumClient_PendingNonceAt_Call) Return added in v0.2.6

func (*EthereumClient_PendingNonceAt_Call) Run added in v0.2.6

func (*EthereumClient_PendingNonceAt_Call) RunAndReturn added in v0.2.6

type EthereumClient_PendingStorageAt_Call added in v0.2.6

type EthereumClient_PendingStorageAt_Call struct {
	*mock.Call
}

EthereumClient_PendingStorageAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PendingStorageAt'

func (*EthereumClient_PendingStorageAt_Call) Return added in v0.2.6

func (*EthereumClient_PendingStorageAt_Call) Run added in v0.2.6

func (*EthereumClient_PendingStorageAt_Call) RunAndReturn added in v0.2.6

type EthereumClient_PendingTransactionCount_Call added in v0.2.6

type EthereumClient_PendingTransactionCount_Call struct {
	*mock.Call
}

EthereumClient_PendingTransactionCount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PendingTransactionCount'

func (*EthereumClient_PendingTransactionCount_Call) Return added in v0.2.6

func (*EthereumClient_PendingTransactionCount_Call) Run added in v0.2.6

func (*EthereumClient_PendingTransactionCount_Call) RunAndReturn added in v0.2.6

type EthereumClient_SendTransaction_Call added in v0.2.6

type EthereumClient_SendTransaction_Call struct {
	*mock.Call
}

EthereumClient_SendTransaction_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendTransaction'

func (*EthereumClient_SendTransaction_Call) Return added in v0.2.6

func (*EthereumClient_SendTransaction_Call) Run added in v0.2.6

func (*EthereumClient_SendTransaction_Call) RunAndReturn added in v0.2.6

type EthereumClient_StorageAt_Call added in v0.2.6

type EthereumClient_StorageAt_Call struct {
	*mock.Call
}

EthereumClient_StorageAt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StorageAt'

func (*EthereumClient_StorageAt_Call) Return added in v0.2.6

func (*EthereumClient_StorageAt_Call) Run added in v0.2.6

func (_c *EthereumClient_StorageAt_Call) Run(run func(ctx context.Context, account common.Address, key common.Hash, blockNumber *big.Int)) *EthereumClient_StorageAt_Call

func (*EthereumClient_StorageAt_Call) RunAndReturn added in v0.2.6

type EthereumClient_SubscribeNewHead_Call added in v0.2.6

type EthereumClient_SubscribeNewHead_Call struct {
	*mock.Call
}

EthereumClient_SubscribeNewHead_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SubscribeNewHead'

func (*EthereumClient_SubscribeNewHead_Call) Return added in v0.2.6

func (*EthereumClient_SubscribeNewHead_Call) Run added in v0.2.6

func (*EthereumClient_SubscribeNewHead_Call) RunAndReturn added in v0.2.6

type EthereumClient_SuggestGasPrice_Call added in v0.2.6

type EthereumClient_SuggestGasPrice_Call struct {
	*mock.Call
}

EthereumClient_SuggestGasPrice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuggestGasPrice'

func (*EthereumClient_SuggestGasPrice_Call) Return added in v0.2.6

func (*EthereumClient_SuggestGasPrice_Call) Run added in v0.2.6

func (*EthereumClient_SuggestGasPrice_Call) RunAndReturn added in v0.2.6

type EthereumClient_SuggestGasTipCap_Call added in v0.2.6

type EthereumClient_SuggestGasTipCap_Call struct {
	*mock.Call
}

EthereumClient_SuggestGasTipCap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuggestGasTipCap'

func (*EthereumClient_SuggestGasTipCap_Call) Return added in v0.2.6

func (*EthereumClient_SuggestGasTipCap_Call) Run added in v0.2.6

func (*EthereumClient_SuggestGasTipCap_Call) RunAndReturn added in v0.2.6

type EthereumClient_TransactionByHash_Call added in v0.2.6

type EthereumClient_TransactionByHash_Call struct {
	*mock.Call
}

EthereumClient_TransactionByHash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransactionByHash'

func (*EthereumClient_TransactionByHash_Call) Return added in v0.2.6

func (*EthereumClient_TransactionByHash_Call) Run added in v0.2.6

func (*EthereumClient_TransactionByHash_Call) RunAndReturn added in v0.2.6

type EthereumClient_TransactionCount_Call added in v0.2.6

type EthereumClient_TransactionCount_Call struct {
	*mock.Call
}

EthereumClient_TransactionCount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransactionCount'

func (*EthereumClient_TransactionCount_Call) Return added in v0.2.6

func (*EthereumClient_TransactionCount_Call) Run added in v0.2.6

func (*EthereumClient_TransactionCount_Call) RunAndReturn added in v0.2.6

type EthereumClient_TransactionInBlock_Call added in v0.2.6

type EthereumClient_TransactionInBlock_Call struct {
	*mock.Call
}

EthereumClient_TransactionInBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransactionInBlock'

func (*EthereumClient_TransactionInBlock_Call) Return added in v0.2.6

func (*EthereumClient_TransactionInBlock_Call) Run added in v0.2.6

func (*EthereumClient_TransactionInBlock_Call) RunAndReturn added in v0.2.6

type EthereumClient_TransactionReceipt_Call added in v0.2.6

type EthereumClient_TransactionReceipt_Call struct {
	*mock.Call
}

EthereumClient_TransactionReceipt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'TransactionReceipt'

func (*EthereumClient_TransactionReceipt_Call) Return added in v0.2.6

func (*EthereumClient_TransactionReceipt_Call) Run added in v0.2.6

func (*EthereumClient_TransactionReceipt_Call) RunAndReturn added in v0.2.6

type EthermanInterface

type EthermanInterface struct {
	mock.Mock
}

EthermanInterface is an autogenerated mock type for the EthermanInterface type

func NewEthermanInterface

func NewEthermanInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *EthermanInterface

NewEthermanInterface creates a new instance of EthermanInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*EthermanInterface) CheckTxWasMined

func (_m *EthermanInterface) CheckTxWasMined(ctx context.Context, txHash common.Hash) (bool, *types.Receipt, error)

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

func (*EthermanInterface) CurrentNonce

func (_m *EthermanInterface) CurrentNonce(ctx context.Context, account common.Address) (uint64, error)

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

func (*EthermanInterface) EXPECT

func (*EthermanInterface) EstimateGas

func (_m *EthermanInterface) EstimateGas(ctx context.Context, from common.Address, to *common.Address, value *big.Int, data []byte) (uint64, error)

EstimateGas provides a mock function with given fields: ctx, from, to, value, data

func (*EthermanInterface) EstimateGasBlobTx

func (_m *EthermanInterface) EstimateGasBlobTx(ctx context.Context, from common.Address, to *common.Address, gasFeeCap *big.Int, gasTipCap *big.Int, value *big.Int, data []byte) (uint64, error)

EstimateGasBlobTx provides a mock function with given fields: ctx, from, to, gasFeeCap, gasTipCap, value, data

func (*EthermanInterface) GetHeaderByNumber

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

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

func (*EthermanInterface) GetLatestBlockNumber

func (_m *EthermanInterface) GetLatestBlockNumber(ctx context.Context) (uint64, error)

GetLatestBlockNumber provides a mock function with given fields: ctx

func (*EthermanInterface) GetRevertMessage

func (_m *EthermanInterface) GetRevertMessage(ctx context.Context, tx *types.Transaction) (string, error)

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

func (*EthermanInterface) GetSuggestGasTipCap

func (_m *EthermanInterface) GetSuggestGasTipCap(ctx context.Context) (*big.Int, error)

GetSuggestGasTipCap provides a mock function with given fields: ctx

func (*EthermanInterface) GetTx

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

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

func (*EthermanInterface) GetTxReceipt

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

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

func (*EthermanInterface) HeaderByNumber

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

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

func (*EthermanInterface) PendingNonce

func (_m *EthermanInterface) PendingNonce(ctx context.Context, account common.Address) (uint64, error)

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

func (*EthermanInterface) PublicAddress added in v0.2.8

func (_m *EthermanInterface) PublicAddress() ([]common.Address, error)

PublicAddress provides a mock function with no fields

func (*EthermanInterface) SendTx

func (_m *EthermanInterface) SendTx(ctx context.Context, tx *types.Transaction) error

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

func (*EthermanInterface) SignTx

SignTx provides a mock function with given fields: ctx, sender, tx

func (*EthermanInterface) SuggestedGasPrice

func (_m *EthermanInterface) SuggestedGasPrice(ctx context.Context) (*big.Int, error)

SuggestedGasPrice provides a mock function with given fields: ctx

func (*EthermanInterface) WaitTxToBeMined

func (_m *EthermanInterface) WaitTxToBeMined(ctx context.Context, tx *types.Transaction, timeout time.Duration) (bool, error)

WaitTxToBeMined provides a mock function with given fields: ctx, tx, timeout

type EthermanInterface_CheckTxWasMined_Call

type EthermanInterface_CheckTxWasMined_Call struct {
	*mock.Call
}

EthermanInterface_CheckTxWasMined_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CheckTxWasMined'

func (*EthermanInterface_CheckTxWasMined_Call) Return

func (*EthermanInterface_CheckTxWasMined_Call) Run

func (*EthermanInterface_CheckTxWasMined_Call) RunAndReturn

type EthermanInterface_CurrentNonce_Call

type EthermanInterface_CurrentNonce_Call struct {
	*mock.Call
}

EthermanInterface_CurrentNonce_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CurrentNonce'

func (*EthermanInterface_CurrentNonce_Call) Return

func (*EthermanInterface_CurrentNonce_Call) Run

func (*EthermanInterface_CurrentNonce_Call) RunAndReturn

type EthermanInterface_EstimateGasBlobTx_Call

type EthermanInterface_EstimateGasBlobTx_Call struct {
	*mock.Call
}

EthermanInterface_EstimateGasBlobTx_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EstimateGasBlobTx'

func (*EthermanInterface_EstimateGasBlobTx_Call) Return

func (*EthermanInterface_EstimateGasBlobTx_Call) Run

func (_c *EthermanInterface_EstimateGasBlobTx_Call) Run(run func(ctx context.Context, from common.Address, to *common.Address, gasFeeCap *big.Int, gasTipCap *big.Int, value *big.Int, data []byte)) *EthermanInterface_EstimateGasBlobTx_Call

func (*EthermanInterface_EstimateGasBlobTx_Call) RunAndReturn

type EthermanInterface_EstimateGas_Call

type EthermanInterface_EstimateGas_Call struct {
	*mock.Call
}

EthermanInterface_EstimateGas_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EstimateGas'

func (*EthermanInterface_EstimateGas_Call) Return

func (*EthermanInterface_EstimateGas_Call) Run

func (*EthermanInterface_EstimateGas_Call) RunAndReturn

type EthermanInterface_Expecter

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

func (*EthermanInterface_Expecter) CheckTxWasMined

func (_e *EthermanInterface_Expecter) CheckTxWasMined(ctx interface{}, txHash interface{}) *EthermanInterface_CheckTxWasMined_Call

CheckTxWasMined is a helper method to define mock.On call

  • ctx context.Context
  • txHash common.Hash

func (*EthermanInterface_Expecter) CurrentNonce

func (_e *EthermanInterface_Expecter) CurrentNonce(ctx interface{}, account interface{}) *EthermanInterface_CurrentNonce_Call

CurrentNonce is a helper method to define mock.On call

  • ctx context.Context
  • account common.Address

func (*EthermanInterface_Expecter) EstimateGas

func (_e *EthermanInterface_Expecter) EstimateGas(ctx interface{}, from interface{}, to interface{}, value interface{}, data interface{}) *EthermanInterface_EstimateGas_Call

EstimateGas is a helper method to define mock.On call

  • ctx context.Context
  • from common.Address
  • to *common.Address
  • value *big.Int
  • data []byte

func (*EthermanInterface_Expecter) EstimateGasBlobTx

func (_e *EthermanInterface_Expecter) EstimateGasBlobTx(ctx interface{}, from interface{}, to interface{}, gasFeeCap interface{}, gasTipCap interface{}, value interface{}, data interface{}) *EthermanInterface_EstimateGasBlobTx_Call

EstimateGasBlobTx is a helper method to define mock.On call

  • ctx context.Context
  • from common.Address
  • to *common.Address
  • gasFeeCap *big.Int
  • gasTipCap *big.Int
  • value *big.Int
  • data []byte

func (*EthermanInterface_Expecter) GetHeaderByNumber

func (_e *EthermanInterface_Expecter) GetHeaderByNumber(ctx interface{}, number interface{}) *EthermanInterface_GetHeaderByNumber_Call

GetHeaderByNumber is a helper method to define mock.On call

  • ctx context.Context
  • number *big.Int

func (*EthermanInterface_Expecter) GetLatestBlockNumber

func (_e *EthermanInterface_Expecter) GetLatestBlockNumber(ctx interface{}) *EthermanInterface_GetLatestBlockNumber_Call

GetLatestBlockNumber is a helper method to define mock.On call

  • ctx context.Context

func (*EthermanInterface_Expecter) GetRevertMessage

func (_e *EthermanInterface_Expecter) GetRevertMessage(ctx interface{}, tx interface{}) *EthermanInterface_GetRevertMessage_Call

GetRevertMessage is a helper method to define mock.On call

  • ctx context.Context
  • tx *types.Transaction

func (*EthermanInterface_Expecter) GetSuggestGasTipCap

func (_e *EthermanInterface_Expecter) GetSuggestGasTipCap(ctx interface{}) *EthermanInterface_GetSuggestGasTipCap_Call

GetSuggestGasTipCap is a helper method to define mock.On call

  • ctx context.Context

func (*EthermanInterface_Expecter) GetTx

func (_e *EthermanInterface_Expecter) GetTx(ctx interface{}, txHash interface{}) *EthermanInterface_GetTx_Call

GetTx is a helper method to define mock.On call

  • ctx context.Context
  • txHash common.Hash

func (*EthermanInterface_Expecter) GetTxReceipt

func (_e *EthermanInterface_Expecter) GetTxReceipt(ctx interface{}, txHash interface{}) *EthermanInterface_GetTxReceipt_Call

GetTxReceipt is a helper method to define mock.On call

  • ctx context.Context
  • txHash common.Hash

func (*EthermanInterface_Expecter) HeaderByNumber

func (_e *EthermanInterface_Expecter) HeaderByNumber(ctx interface{}, number interface{}) *EthermanInterface_HeaderByNumber_Call

HeaderByNumber is a helper method to define mock.On call

  • ctx context.Context
  • number *big.Int

func (*EthermanInterface_Expecter) PendingNonce

func (_e *EthermanInterface_Expecter) PendingNonce(ctx interface{}, account interface{}) *EthermanInterface_PendingNonce_Call

PendingNonce is a helper method to define mock.On call

  • ctx context.Context
  • account common.Address

func (*EthermanInterface_Expecter) PublicAddress added in v0.2.8

PublicAddress is a helper method to define mock.On call

func (*EthermanInterface_Expecter) SendTx

func (_e *EthermanInterface_Expecter) SendTx(ctx interface{}, tx interface{}) *EthermanInterface_SendTx_Call

SendTx is a helper method to define mock.On call

  • ctx context.Context
  • tx *types.Transaction

func (*EthermanInterface_Expecter) SignTx

func (_e *EthermanInterface_Expecter) SignTx(ctx interface{}, sender interface{}, tx interface{}) *EthermanInterface_SignTx_Call

SignTx is a helper method to define mock.On call

  • ctx context.Context
  • sender common.Address
  • tx *types.Transaction

func (*EthermanInterface_Expecter) SuggestedGasPrice

func (_e *EthermanInterface_Expecter) SuggestedGasPrice(ctx interface{}) *EthermanInterface_SuggestedGasPrice_Call

SuggestedGasPrice is a helper method to define mock.On call

  • ctx context.Context

func (*EthermanInterface_Expecter) WaitTxToBeMined

func (_e *EthermanInterface_Expecter) WaitTxToBeMined(ctx interface{}, tx interface{}, timeout interface{}) *EthermanInterface_WaitTxToBeMined_Call

WaitTxToBeMined is a helper method to define mock.On call

  • ctx context.Context
  • tx *types.Transaction
  • timeout time.Duration

type EthermanInterface_GetHeaderByNumber_Call

type EthermanInterface_GetHeaderByNumber_Call struct {
	*mock.Call
}

EthermanInterface_GetHeaderByNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetHeaderByNumber'

func (*EthermanInterface_GetHeaderByNumber_Call) Return

func (*EthermanInterface_GetHeaderByNumber_Call) Run

func (*EthermanInterface_GetHeaderByNumber_Call) RunAndReturn

type EthermanInterface_GetLatestBlockNumber_Call

type EthermanInterface_GetLatestBlockNumber_Call struct {
	*mock.Call
}

EthermanInterface_GetLatestBlockNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLatestBlockNumber'

func (*EthermanInterface_GetLatestBlockNumber_Call) Return

func (*EthermanInterface_GetLatestBlockNumber_Call) Run

func (*EthermanInterface_GetLatestBlockNumber_Call) RunAndReturn

type EthermanInterface_GetRevertMessage_Call

type EthermanInterface_GetRevertMessage_Call struct {
	*mock.Call
}

EthermanInterface_GetRevertMessage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRevertMessage'

func (*EthermanInterface_GetRevertMessage_Call) Return

func (*EthermanInterface_GetRevertMessage_Call) Run

func (*EthermanInterface_GetRevertMessage_Call) RunAndReturn

type EthermanInterface_GetSuggestGasTipCap_Call

type EthermanInterface_GetSuggestGasTipCap_Call struct {
	*mock.Call
}

EthermanInterface_GetSuggestGasTipCap_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSuggestGasTipCap'

func (*EthermanInterface_GetSuggestGasTipCap_Call) Return

func (*EthermanInterface_GetSuggestGasTipCap_Call) Run

func (*EthermanInterface_GetSuggestGasTipCap_Call) RunAndReturn

type EthermanInterface_GetTxReceipt_Call

type EthermanInterface_GetTxReceipt_Call struct {
	*mock.Call
}

EthermanInterface_GetTxReceipt_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTxReceipt'

func (*EthermanInterface_GetTxReceipt_Call) Return

func (*EthermanInterface_GetTxReceipt_Call) Run

func (*EthermanInterface_GetTxReceipt_Call) RunAndReturn

type EthermanInterface_GetTx_Call

type EthermanInterface_GetTx_Call struct {
	*mock.Call
}

EthermanInterface_GetTx_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTx'

func (*EthermanInterface_GetTx_Call) Return

func (*EthermanInterface_GetTx_Call) Run

func (*EthermanInterface_GetTx_Call) RunAndReturn

type EthermanInterface_HeaderByNumber_Call

type EthermanInterface_HeaderByNumber_Call struct {
	*mock.Call
}

EthermanInterface_HeaderByNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HeaderByNumber'

func (*EthermanInterface_HeaderByNumber_Call) Return

func (*EthermanInterface_HeaderByNumber_Call) Run

func (*EthermanInterface_HeaderByNumber_Call) RunAndReturn

type EthermanInterface_PendingNonce_Call

type EthermanInterface_PendingNonce_Call struct {
	*mock.Call
}

EthermanInterface_PendingNonce_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PendingNonce'

func (*EthermanInterface_PendingNonce_Call) Return

func (*EthermanInterface_PendingNonce_Call) Run

func (*EthermanInterface_PendingNonce_Call) RunAndReturn

type EthermanInterface_PublicAddress_Call added in v0.2.8

type EthermanInterface_PublicAddress_Call struct {
	*mock.Call
}

EthermanInterface_PublicAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PublicAddress'

func (*EthermanInterface_PublicAddress_Call) Return added in v0.2.8

func (*EthermanInterface_PublicAddress_Call) Run added in v0.2.8

func (*EthermanInterface_PublicAddress_Call) RunAndReturn added in v0.2.8

type EthermanInterface_SendTx_Call

type EthermanInterface_SendTx_Call struct {
	*mock.Call
}

EthermanInterface_SendTx_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendTx'

func (*EthermanInterface_SendTx_Call) Return

func (*EthermanInterface_SendTx_Call) Run

func (*EthermanInterface_SendTx_Call) RunAndReturn

type EthermanInterface_SignTx_Call

type EthermanInterface_SignTx_Call struct {
	*mock.Call
}

EthermanInterface_SignTx_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SignTx'

func (*EthermanInterface_SignTx_Call) Return

func (*EthermanInterface_SignTx_Call) Run

func (*EthermanInterface_SignTx_Call) RunAndReturn

type EthermanInterface_SuggestedGasPrice_Call

type EthermanInterface_SuggestedGasPrice_Call struct {
	*mock.Call
}

EthermanInterface_SuggestedGasPrice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SuggestedGasPrice'

func (*EthermanInterface_SuggestedGasPrice_Call) Return

func (*EthermanInterface_SuggestedGasPrice_Call) Run

func (*EthermanInterface_SuggestedGasPrice_Call) RunAndReturn

type EthermanInterface_WaitTxToBeMined_Call

type EthermanInterface_WaitTxToBeMined_Call struct {
	*mock.Call
}

EthermanInterface_WaitTxToBeMined_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WaitTxToBeMined'

func (*EthermanInterface_WaitTxToBeMined_Call) Return

func (*EthermanInterface_WaitTxToBeMined_Call) Run

func (*EthermanInterface_WaitTxToBeMined_Call) RunAndReturn

type Signer added in v0.2.8

type Signer struct {
	mock.Mock
}

Signer is an autogenerated mock type for the Signer type

func NewSigner added in v0.2.8

func NewSigner(t interface {
	mock.TestingT
	Cleanup(func())
}) *Signer

NewSigner creates a new instance of Signer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Signer) EXPECT added in v0.2.8

func (_m *Signer) EXPECT() *Signer_Expecter

func (*Signer) Initialize added in v0.2.8

func (_m *Signer) Initialize(_a0 context.Context) error

Initialize provides a mock function with given fields: _a0

func (*Signer) PublicAddress added in v0.2.8

func (_m *Signer) PublicAddress() common.Address

PublicAddress provides a mock function with no fields

func (*Signer) SignHash added in v0.2.8

func (_m *Signer) SignHash(_a0 context.Context, _a1 common.Hash) ([]byte, error)

SignHash provides a mock function with given fields: _a0, _a1

func (*Signer) SignTx added in v0.2.8

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

func (*Signer) String added in v0.2.8

func (_m *Signer) String() string

String provides a mock function with no fields

type Signer_Expecter added in v0.2.8

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

func (*Signer_Expecter) Initialize added in v0.2.8

func (_e *Signer_Expecter) Initialize(_a0 interface{}) *Signer_Initialize_Call

Initialize is a helper method to define mock.On call

  • _a0 context.Context

func (*Signer_Expecter) PublicAddress added in v0.2.8

func (_e *Signer_Expecter) PublicAddress() *Signer_PublicAddress_Call

PublicAddress is a helper method to define mock.On call

func (*Signer_Expecter) SignHash added in v0.2.8

func (_e *Signer_Expecter) SignHash(_a0 interface{}, _a1 interface{}) *Signer_SignHash_Call

SignHash is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 common.Hash

func (*Signer_Expecter) SignTx added in v0.2.8

func (_e *Signer_Expecter) SignTx(ctx interface{}, tx interface{}) *Signer_SignTx_Call

SignTx is a helper method to define mock.On call

  • ctx context.Context
  • tx *coretypes.Transaction

func (*Signer_Expecter) String added in v0.2.8

func (_e *Signer_Expecter) String() *Signer_String_Call

String is a helper method to define mock.On call

type Signer_Initialize_Call added in v0.2.8

type Signer_Initialize_Call struct {
	*mock.Call
}

Signer_Initialize_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Initialize'

func (*Signer_Initialize_Call) Return added in v0.2.8

func (*Signer_Initialize_Call) Run added in v0.2.8

func (*Signer_Initialize_Call) RunAndReturn added in v0.2.8

func (_c *Signer_Initialize_Call) RunAndReturn(run func(context.Context) error) *Signer_Initialize_Call

type Signer_PublicAddress_Call added in v0.2.8

type Signer_PublicAddress_Call struct {
	*mock.Call
}

Signer_PublicAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PublicAddress'

func (*Signer_PublicAddress_Call) Return added in v0.2.8

func (*Signer_PublicAddress_Call) Run added in v0.2.8

func (*Signer_PublicAddress_Call) RunAndReturn added in v0.2.8

func (_c *Signer_PublicAddress_Call) RunAndReturn(run func() common.Address) *Signer_PublicAddress_Call

type Signer_SignHash_Call added in v0.2.8

type Signer_SignHash_Call struct {
	*mock.Call
}

Signer_SignHash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SignHash'

func (*Signer_SignHash_Call) Return added in v0.2.8

func (_c *Signer_SignHash_Call) Return(_a0 []byte, _a1 error) *Signer_SignHash_Call

func (*Signer_SignHash_Call) Run added in v0.2.8

func (_c *Signer_SignHash_Call) Run(run func(_a0 context.Context, _a1 common.Hash)) *Signer_SignHash_Call

func (*Signer_SignHash_Call) RunAndReturn added in v0.2.8

func (_c *Signer_SignHash_Call) RunAndReturn(run func(context.Context, common.Hash) ([]byte, error)) *Signer_SignHash_Call

type Signer_SignTx_Call added in v0.2.8

type Signer_SignTx_Call struct {
	*mock.Call
}

Signer_SignTx_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SignTx'

func (*Signer_SignTx_Call) Return added in v0.2.8

func (*Signer_SignTx_Call) Run added in v0.2.8

func (*Signer_SignTx_Call) RunAndReturn added in v0.2.8

type Signer_String_Call added in v0.2.8

type Signer_String_Call struct {
	*mock.Call
}

Signer_String_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'String'

func (*Signer_String_Call) Return added in v0.2.8

func (_c *Signer_String_Call) Return(_a0 string) *Signer_String_Call

func (*Signer_String_Call) Run added in v0.2.8

func (_c *Signer_String_Call) Run(run func()) *Signer_String_Call

func (*Signer_String_Call) RunAndReturn added in v0.2.8

func (_c *Signer_String_Call) RunAndReturn(run func() string) *Signer_String_Call

type StorageInterface added in v0.2.7

type StorageInterface struct {
	mock.Mock
}

StorageInterface is an autogenerated mock type for the StorageInterface type

func NewStorageInterface added in v0.2.7

func NewStorageInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *StorageInterface

NewStorageInterface creates a new instance of StorageInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*StorageInterface) Add added in v0.2.7

Add provides a mock function with given fields: ctx, mTx

func (*StorageInterface) EXPECT added in v0.2.7

func (*StorageInterface) Empty added in v0.2.7

func (_m *StorageInterface) Empty(ctx context.Context) error

Empty provides a mock function with given fields: ctx

func (*StorageInterface) Get added in v0.2.7

Get provides a mock function with given fields: ctx, id

func (*StorageInterface) GetByBlock added in v0.2.7

func (_m *StorageInterface) GetByBlock(ctx context.Context, fromBlock *uint64, toBlock *uint64) ([]types.MonitoredTx, error)

GetByBlock provides a mock function with given fields: ctx, fromBlock, toBlock

func (*StorageInterface) GetByStatus added in v0.2.7

func (_m *StorageInterface) GetByStatus(ctx context.Context, statuses []types.MonitoredTxStatus) ([]types.MonitoredTx, error)

GetByStatus provides a mock function with given fields: ctx, statuses

func (*StorageInterface) Remove added in v0.2.7

func (_m *StorageInterface) Remove(ctx context.Context, id common.Hash) error

Remove provides a mock function with given fields: ctx, id

func (*StorageInterface) Update added in v0.2.7

func (_m *StorageInterface) Update(ctx context.Context, mTx types.MonitoredTx) error

Update provides a mock function with given fields: ctx, mTx

type StorageInterface_Add_Call added in v0.2.7

type StorageInterface_Add_Call struct {
	*mock.Call
}

StorageInterface_Add_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Add'

func (*StorageInterface_Add_Call) Return added in v0.2.7

func (*StorageInterface_Add_Call) Run added in v0.2.7

func (*StorageInterface_Add_Call) RunAndReturn added in v0.2.7

type StorageInterface_Empty_Call added in v0.2.7

type StorageInterface_Empty_Call struct {
	*mock.Call
}

StorageInterface_Empty_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Empty'

func (*StorageInterface_Empty_Call) Return added in v0.2.7

func (*StorageInterface_Empty_Call) Run added in v0.2.7

func (*StorageInterface_Empty_Call) RunAndReturn added in v0.2.7

type StorageInterface_Expecter added in v0.2.7

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

func (*StorageInterface_Expecter) Add added in v0.2.7

func (_e *StorageInterface_Expecter) Add(ctx interface{}, mTx interface{}) *StorageInterface_Add_Call

Add is a helper method to define mock.On call

  • ctx context.Context
  • mTx types.MonitoredTx

func (*StorageInterface_Expecter) Empty added in v0.2.7

func (_e *StorageInterface_Expecter) Empty(ctx interface{}) *StorageInterface_Empty_Call

Empty is a helper method to define mock.On call

  • ctx context.Context

func (*StorageInterface_Expecter) Get added in v0.2.7

func (_e *StorageInterface_Expecter) Get(ctx interface{}, id interface{}) *StorageInterface_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • id common.Hash

func (*StorageInterface_Expecter) GetByBlock added in v0.2.7

func (_e *StorageInterface_Expecter) GetByBlock(ctx interface{}, fromBlock interface{}, toBlock interface{}) *StorageInterface_GetByBlock_Call

GetByBlock is a helper method to define mock.On call

  • ctx context.Context
  • fromBlock *uint64
  • toBlock *uint64

func (*StorageInterface_Expecter) GetByStatus added in v0.2.7

func (_e *StorageInterface_Expecter) GetByStatus(ctx interface{}, statuses interface{}) *StorageInterface_GetByStatus_Call

GetByStatus is a helper method to define mock.On call

  • ctx context.Context
  • statuses []types.MonitoredTxStatus

func (*StorageInterface_Expecter) Remove added in v0.2.7

func (_e *StorageInterface_Expecter) Remove(ctx interface{}, id interface{}) *StorageInterface_Remove_Call

Remove is a helper method to define mock.On call

  • ctx context.Context
  • id common.Hash

func (*StorageInterface_Expecter) Update added in v0.2.7

func (_e *StorageInterface_Expecter) Update(ctx interface{}, mTx interface{}) *StorageInterface_Update_Call

Update is a helper method to define mock.On call

  • ctx context.Context
  • mTx types.MonitoredTx

type StorageInterface_GetByBlock_Call added in v0.2.7

type StorageInterface_GetByBlock_Call struct {
	*mock.Call
}

StorageInterface_GetByBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByBlock'

func (*StorageInterface_GetByBlock_Call) Return added in v0.2.7

func (*StorageInterface_GetByBlock_Call) Run added in v0.2.7

func (_c *StorageInterface_GetByBlock_Call) Run(run func(ctx context.Context, fromBlock *uint64, toBlock *uint64)) *StorageInterface_GetByBlock_Call

func (*StorageInterface_GetByBlock_Call) RunAndReturn added in v0.2.7

type StorageInterface_GetByStatus_Call added in v0.2.7

type StorageInterface_GetByStatus_Call struct {
	*mock.Call
}

StorageInterface_GetByStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByStatus'

func (*StorageInterface_GetByStatus_Call) Return added in v0.2.7

func (*StorageInterface_GetByStatus_Call) Run added in v0.2.7

func (*StorageInterface_GetByStatus_Call) RunAndReturn added in v0.2.7

type StorageInterface_Get_Call added in v0.2.7

type StorageInterface_Get_Call struct {
	*mock.Call
}

StorageInterface_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*StorageInterface_Get_Call) Return added in v0.2.7

func (*StorageInterface_Get_Call) Run added in v0.2.7

func (*StorageInterface_Get_Call) RunAndReturn added in v0.2.7

type StorageInterface_Remove_Call added in v0.2.7

type StorageInterface_Remove_Call struct {
	*mock.Call
}

StorageInterface_Remove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Remove'

func (*StorageInterface_Remove_Call) Return added in v0.2.7

func (*StorageInterface_Remove_Call) Run added in v0.2.7

func (*StorageInterface_Remove_Call) RunAndReturn added in v0.2.7

type StorageInterface_Update_Call added in v0.2.7

type StorageInterface_Update_Call struct {
	*mock.Call
}

StorageInterface_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'

func (*StorageInterface_Update_Call) Return added in v0.2.7

func (*StorageInterface_Update_Call) Run added in v0.2.7

func (*StorageInterface_Update_Call) RunAndReturn added in v0.2.7

Jump to

Keyboard shortcuts

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