mocks

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ERC20

type ERC20 struct {
	mock.Mock
}

ERC20 is an autogenerated mock type for the ERC20 type

func NewERC20

func NewERC20(t interface {
	mock.TestingT
	Cleanup(func())
}) *ERC20

NewERC20 creates a new instance of ERC20. 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 (*ERC20) Allowance

func (_m *ERC20) Allowance(ctx context.Context, owner common.Address, spender common.Address) big.Int

Allowance provides a mock function with given fields: ctx, owner, spender

func (*ERC20) Approve

func (_m *ERC20) Approve(ctx context.Context, spender common.Address, amount big.Int) error

Approve provides a mock function with given fields: ctx, spender, amount

func (*ERC20) BalanceOf

func (_m *ERC20) BalanceOf(ctx context.Context, address common.Address) big.Int

BalanceOf provides a mock function with given fields: ctx, address

func (*ERC20) Decimals

func (_m *ERC20) Decimals(ctx context.Context) uint8

Decimals provides a mock function with given fields: ctx

func (*ERC20) EXPECT

func (_m *ERC20) EXPECT() *ERC20_Expecter

func (*ERC20) Name

func (_m *ERC20) Name(ctx context.Context) string

Name provides a mock function with given fields: ctx

func (*ERC20) Symbol

func (_m *ERC20) Symbol(ctx context.Context) string

Symbol provides a mock function with given fields: ctx

func (*ERC20) TotalSupply

func (_m *ERC20) TotalSupply(ctx context.Context) big.Int

TotalSupply provides a mock function with given fields: ctx

func (*ERC20) TransferFrom

func (_m *ERC20) TransferFrom(ctx context.Context, idempotencyKey string, from common.Address, to common.Address, amount big.Int) error

TransferFrom provides a mock function with given fields: ctx, idempotencyKey, from, to, amount

type ERC20_Allowance_Call

type ERC20_Allowance_Call struct {
	*mock.Call
}

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

func (*ERC20_Allowance_Call) Return

func (*ERC20_Allowance_Call) Run

func (_c *ERC20_Allowance_Call) Run(run func(ctx context.Context, owner common.Address, spender common.Address)) *ERC20_Allowance_Call

func (*ERC20_Allowance_Call) RunAndReturn

type ERC20_Approve_Call

type ERC20_Approve_Call struct {
	*mock.Call
}

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

func (*ERC20_Approve_Call) Return

func (_c *ERC20_Approve_Call) Return(_a0 error) *ERC20_Approve_Call

func (*ERC20_Approve_Call) Run

func (_c *ERC20_Approve_Call) Run(run func(ctx context.Context, spender common.Address, amount big.Int)) *ERC20_Approve_Call

func (*ERC20_Approve_Call) RunAndReturn

type ERC20_BalanceOf_Call

type ERC20_BalanceOf_Call struct {
	*mock.Call
}

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

func (*ERC20_BalanceOf_Call) Return

func (*ERC20_BalanceOf_Call) Run

func (_c *ERC20_BalanceOf_Call) Run(run func(ctx context.Context, address common.Address)) *ERC20_BalanceOf_Call

func (*ERC20_BalanceOf_Call) RunAndReturn

type ERC20_Decimals_Call

type ERC20_Decimals_Call struct {
	*mock.Call
}

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

func (*ERC20_Decimals_Call) Return

func (*ERC20_Decimals_Call) Run

func (_c *ERC20_Decimals_Call) Run(run func(ctx context.Context)) *ERC20_Decimals_Call

func (*ERC20_Decimals_Call) RunAndReturn

func (_c *ERC20_Decimals_Call) RunAndReturn(run func(context.Context) uint8) *ERC20_Decimals_Call

type ERC20_Expecter

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

func (*ERC20_Expecter) Allowance

func (_e *ERC20_Expecter) Allowance(ctx interface{}, owner interface{}, spender interface{}) *ERC20_Allowance_Call

Allowance is a helper method to define mock.On call

  • ctx context.Context
  • owner common.Address
  • spender common.Address

func (*ERC20_Expecter) Approve

func (_e *ERC20_Expecter) Approve(ctx interface{}, spender interface{}, amount interface{}) *ERC20_Approve_Call

Approve is a helper method to define mock.On call

  • ctx context.Context
  • spender common.Address
  • amount big.Int

func (*ERC20_Expecter) BalanceOf

func (_e *ERC20_Expecter) BalanceOf(ctx interface{}, address interface{}) *ERC20_BalanceOf_Call

BalanceOf is a helper method to define mock.On call

  • ctx context.Context
  • address common.Address

func (*ERC20_Expecter) Decimals

func (_e *ERC20_Expecter) Decimals(ctx interface{}) *ERC20_Decimals_Call

Decimals is a helper method to define mock.On call

  • ctx context.Context

func (*ERC20_Expecter) Name

func (_e *ERC20_Expecter) Name(ctx interface{}) *ERC20_Name_Call

Name is a helper method to define mock.On call

  • ctx context.Context

func (*ERC20_Expecter) Symbol

func (_e *ERC20_Expecter) Symbol(ctx interface{}) *ERC20_Symbol_Call

Symbol is a helper method to define mock.On call

  • ctx context.Context

func (*ERC20_Expecter) TotalSupply

func (_e *ERC20_Expecter) TotalSupply(ctx interface{}) *ERC20_TotalSupply_Call

TotalSupply is a helper method to define mock.On call

  • ctx context.Context

func (*ERC20_Expecter) TransferFrom

func (_e *ERC20_Expecter) TransferFrom(ctx interface{}, idempotencyKey interface{}, from interface{}, to interface{}, amount interface{}) *ERC20_TransferFrom_Call

TransferFrom is a helper method to define mock.On call

  • ctx context.Context
  • idempotencyKey string
  • from common.Address
  • to common.Address
  • amount big.Int

type ERC20_Name_Call

type ERC20_Name_Call struct {
	*mock.Call
}

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

func (*ERC20_Name_Call) Return

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

func (*ERC20_Name_Call) Run

func (_c *ERC20_Name_Call) Run(run func(ctx context.Context)) *ERC20_Name_Call

func (*ERC20_Name_Call) RunAndReturn

func (_c *ERC20_Name_Call) RunAndReturn(run func(context.Context) string) *ERC20_Name_Call

type ERC20_Symbol_Call

type ERC20_Symbol_Call struct {
	*mock.Call
}

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

func (*ERC20_Symbol_Call) Return

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

func (*ERC20_Symbol_Call) Run

func (_c *ERC20_Symbol_Call) Run(run func(ctx context.Context)) *ERC20_Symbol_Call

func (*ERC20_Symbol_Call) RunAndReturn

func (_c *ERC20_Symbol_Call) RunAndReturn(run func(context.Context) string) *ERC20_Symbol_Call

type ERC20_TotalSupply_Call

type ERC20_TotalSupply_Call struct {
	*mock.Call
}

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

func (*ERC20_TotalSupply_Call) Return

func (*ERC20_TotalSupply_Call) Run

func (*ERC20_TotalSupply_Call) RunAndReturn

func (_c *ERC20_TotalSupply_Call) RunAndReturn(run func(context.Context) big.Int) *ERC20_TotalSupply_Call

type ERC20_TransferFrom_Call

type ERC20_TransferFrom_Call struct {
	*mock.Call
}

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

func (*ERC20_TransferFrom_Call) Return

func (*ERC20_TransferFrom_Call) Run

func (_c *ERC20_TransferFrom_Call) Run(run func(ctx context.Context, idempotencyKey string, from common.Address, to common.Address, amount big.Int)) *ERC20_TransferFrom_Call

func (*ERC20_TransferFrom_Call) RunAndReturn

type Native

type Native struct {
	mock.Mock
}

Native is an autogenerated mock type for the Native type

func NewNative

func NewNative(t interface {
	mock.TestingT
	Cleanup(func())
}) *Native

NewNative creates a new instance of Native. 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 (*Native) EXPECT

func (_m *Native) EXPECT() *Native_Expecter

func (*Native) GetBalance

func (_m *Native) GetBalance(ctx context.Context, address common.Address) (big.Int, error)

GetBalance provides a mock function with given fields: ctx, address

func (*Native) Transfer

func (_m *Native) Transfer(ctx context.Context, from common.Address, to common.Address, amount big.Int) error

Transfer provides a mock function with given fields: ctx, from, to, amount

type Native_Expecter

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

func (*Native_Expecter) GetBalance

func (_e *Native_Expecter) GetBalance(ctx interface{}, address interface{}) *Native_GetBalance_Call

GetBalance is a helper method to define mock.On call

  • ctx context.Context
  • address common.Address

func (*Native_Expecter) Transfer

func (_e *Native_Expecter) Transfer(ctx interface{}, from interface{}, to interface{}, amount interface{}) *Native_Transfer_Call

Transfer is a helper method to define mock.On call

  • ctx context.Context
  • from common.Address
  • to common.Address
  • amount big.Int

type Native_GetBalance_Call

type Native_GetBalance_Call struct {
	*mock.Call
}

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

func (*Native_GetBalance_Call) Return

func (*Native_GetBalance_Call) Run

func (*Native_GetBalance_Call) RunAndReturn

type Native_Transfer_Call

type Native_Transfer_Call struct {
	*mock.Call
}

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

func (*Native_Transfer_Call) Return

func (*Native_Transfer_Call) Run

func (_c *Native_Transfer_Call) Run(run func(ctx context.Context, from common.Address, to common.Address, amount big.Int)) *Native_Transfer_Call

func (*Native_Transfer_Call) RunAndReturn

type PendingBlock

type PendingBlock struct {
	mock.Mock
}

PendingBlock is an autogenerated mock type for the PendingBlock type

func NewPendingBlock

func NewPendingBlock(t interface {
	mock.TestingT
	Cleanup(func())
}) *PendingBlock

NewPendingBlock creates a new instance of PendingBlock. 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 (*PendingBlock) Abort

func (_m *PendingBlock) Abort(ctx context.Context) error

Abort provides a mock function with given fields: ctx

func (*PendingBlock) AddEvmLog

func (_m *PendingBlock) AddEvmLog(ctx context.Context, log *ethrpc.EvmLog) error

AddEvmLog provides a mock function with given fields: ctx, log

func (*PendingBlock) AddEvmTransaction

func (_m *PendingBlock) AddEvmTransaction(ctx context.Context, tx *ethrpc.EvmTransaction) error

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

func (*PendingBlock) ClaimMempoolEntries

func (_m *PendingBlock) ClaimMempoolEntries(ctx context.Context, maxTxsPerBlock int) ([]ethrpc.MempoolEntry, error)

ClaimMempoolEntries provides a mock function with given fields: ctx, maxTxsPerBlock

func (*PendingBlock) EXPECT

func (_m *PendingBlock) EXPECT() *PendingBlock_Expecter

func (*PendingBlock) Finalize

func (_m *PendingBlock) Finalize(ctx context.Context) error

Finalize provides a mock function with given fields: ctx

func (*PendingBlock) Hash

func (_m *PendingBlock) Hash() []byte

Hash provides a mock function with no fields

func (*PendingBlock) Number

func (_m *PendingBlock) Number() uint64

Number provides a mock function with no fields

type PendingBlock_Abort_Call

type PendingBlock_Abort_Call struct {
	*mock.Call
}

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

func (*PendingBlock_Abort_Call) Return

func (*PendingBlock_Abort_Call) Run

func (*PendingBlock_Abort_Call) RunAndReturn

type PendingBlock_AddEvmLog_Call

type PendingBlock_AddEvmLog_Call struct {
	*mock.Call
}

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

func (*PendingBlock_AddEvmLog_Call) Return

func (*PendingBlock_AddEvmLog_Call) Run

func (*PendingBlock_AddEvmLog_Call) RunAndReturn

type PendingBlock_AddEvmTransaction_Call

type PendingBlock_AddEvmTransaction_Call struct {
	*mock.Call
}

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

func (*PendingBlock_AddEvmTransaction_Call) Return

func (*PendingBlock_AddEvmTransaction_Call) Run

func (*PendingBlock_AddEvmTransaction_Call) RunAndReturn

type PendingBlock_ClaimMempoolEntries_Call

type PendingBlock_ClaimMempoolEntries_Call struct {
	*mock.Call
}

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

func (*PendingBlock_ClaimMempoolEntries_Call) Return

func (*PendingBlock_ClaimMempoolEntries_Call) Run

func (*PendingBlock_ClaimMempoolEntries_Call) RunAndReturn

type PendingBlock_Expecter

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

func (*PendingBlock_Expecter) Abort

func (_e *PendingBlock_Expecter) Abort(ctx interface{}) *PendingBlock_Abort_Call

Abort is a helper method to define mock.On call

  • ctx context.Context

func (*PendingBlock_Expecter) AddEvmLog

func (_e *PendingBlock_Expecter) AddEvmLog(ctx interface{}, log interface{}) *PendingBlock_AddEvmLog_Call

AddEvmLog is a helper method to define mock.On call

  • ctx context.Context
  • log *ethrpc.EvmLog

func (*PendingBlock_Expecter) AddEvmTransaction

func (_e *PendingBlock_Expecter) AddEvmTransaction(ctx interface{}, tx interface{}) *PendingBlock_AddEvmTransaction_Call

AddEvmTransaction is a helper method to define mock.On call

  • ctx context.Context
  • tx *ethrpc.EvmTransaction

func (*PendingBlock_Expecter) ClaimMempoolEntries

func (_e *PendingBlock_Expecter) ClaimMempoolEntries(ctx interface{}, maxTxsPerBlock interface{}) *PendingBlock_ClaimMempoolEntries_Call

ClaimMempoolEntries is a helper method to define mock.On call

  • ctx context.Context
  • maxTxsPerBlock int

func (*PendingBlock_Expecter) Finalize

func (_e *PendingBlock_Expecter) Finalize(ctx interface{}) *PendingBlock_Finalize_Call

Finalize is a helper method to define mock.On call

  • ctx context.Context

func (*PendingBlock_Expecter) Hash

Hash is a helper method to define mock.On call

func (*PendingBlock_Expecter) Number

Number is a helper method to define mock.On call

type PendingBlock_Finalize_Call

type PendingBlock_Finalize_Call struct {
	*mock.Call
}

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

func (*PendingBlock_Finalize_Call) Return

func (*PendingBlock_Finalize_Call) Run

func (*PendingBlock_Finalize_Call) RunAndReturn

type PendingBlock_Hash_Call

type PendingBlock_Hash_Call struct {
	*mock.Call
}

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

func (*PendingBlock_Hash_Call) Return

func (*PendingBlock_Hash_Call) Run

func (_c *PendingBlock_Hash_Call) Run(run func()) *PendingBlock_Hash_Call

func (*PendingBlock_Hash_Call) RunAndReturn

func (_c *PendingBlock_Hash_Call) RunAndReturn(run func() []byte) *PendingBlock_Hash_Call

type PendingBlock_Number_Call

type PendingBlock_Number_Call struct {
	*mock.Call
}

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

func (*PendingBlock_Number_Call) Return

func (*PendingBlock_Number_Call) Run

func (*PendingBlock_Number_Call) RunAndReturn

func (_c *PendingBlock_Number_Call) RunAndReturn(run func() uint64) *PendingBlock_Number_Call

type Service

type Service struct {
	mock.Mock
}

Service is an autogenerated mock type for the Service type

func NewService

func NewService(t interface {
	mock.TestingT
	Cleanup(func())
}) *Service

NewService creates a new instance of Service. 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 (*Service) BlockNumber

func (_m *Service) BlockNumber(ctx context.Context) (hexutil.Uint64, error)

BlockNumber provides a mock function with given fields: ctx

func (*Service) Call

func (_m *Service) Call(ctx context.Context, args *ethrpc.CallArgs) (hexutil.Bytes, error)

Call provides a mock function with given fields: ctx, args

func (*Service) ChainID

func (_m *Service) ChainID(ctx context.Context) hexutil.Uint64

ChainID provides a mock function with given fields: ctx

func (*Service) EXPECT

func (_m *Service) EXPECT() *Service_Expecter

func (*Service) EstimateGas

func (_m *Service) EstimateGas(ctx context.Context, args *ethrpc.CallArgs) (hexutil.Uint64, error)

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

func (*Service) GasPrice

func (_m *Service) GasPrice(ctx context.Context) (*hexutil.Big, error)

GasPrice provides a mock function with given fields: ctx

func (*Service) GetBalance

func (_m *Service) GetBalance(ctx context.Context, address common.Address) (*hexutil.Big, error)

GetBalance provides a mock function with given fields: ctx, address

func (*Service) GetBlockByHash

func (_m *Service) GetBlockByHash(ctx context.Context, hash common.Hash, fullTx bool) (*ethrpc.RPCBlock, error)

GetBlockByHash provides a mock function with given fields: ctx, hash, fullTx

func (*Service) GetBlockByNumber

func (_m *Service) GetBlockByNumber(ctx context.Context, blockNr ethrpc.BlockNumberOrHash, fullTx bool) (*ethrpc.RPCBlock, error)

GetBlockByNumber provides a mock function with given fields: ctx, blockNr, fullTx

func (*Service) GetCode

func (_m *Service) GetCode(ctx context.Context, address common.Address) (hexutil.Bytes, error)

GetCode provides a mock function with given fields: ctx, address

func (*Service) GetLogs

func (_m *Service) GetLogs(ctx context.Context, query ethrpc.FilterQuery) ([]*types.Log, error)

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

func (*Service) GetTransactionByHash

func (_m *Service) GetTransactionByHash(ctx context.Context, hash common.Hash) (*ethrpc.RPCTransaction, error)

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

func (*Service) GetTransactionCount

func (_m *Service) GetTransactionCount(ctx context.Context, address common.Address) (hexutil.Uint64, error)

GetTransactionCount provides a mock function with given fields: ctx, address

func (*Service) GetTransactionReceipt

func (_m *Service) GetTransactionReceipt(ctx context.Context, hash common.Hash) (*ethrpc.RPCReceipt, error)

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

func (*Service) MaxPriorityFeePerGas

func (_m *Service) MaxPriorityFeePerGas(ctx context.Context) (*hexutil.Big, error)

MaxPriorityFeePerGas provides a mock function with given fields: ctx

func (*Service) SendRawTransaction

func (_m *Service) SendRawTransaction(ctx context.Context, data hexutil.Bytes) (common.Hash, error)

SendRawTransaction provides a mock function with given fields: ctx, data

func (*Service) Syncing

func (_m *Service) Syncing(ctx context.Context) bool

Syncing provides a mock function with given fields: ctx

type Service_BlockNumber_Call

type Service_BlockNumber_Call struct {
	*mock.Call
}

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

func (*Service_BlockNumber_Call) Return

func (*Service_BlockNumber_Call) Run

func (*Service_BlockNumber_Call) RunAndReturn

type Service_Call_Call

type Service_Call_Call struct {
	*mock.Call
}

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

func (*Service_Call_Call) Return

func (_c *Service_Call_Call) Return(_a0 hexutil.Bytes, _a1 error) *Service_Call_Call

func (*Service_Call_Call) Run

func (_c *Service_Call_Call) Run(run func(ctx context.Context, args *ethrpc.CallArgs)) *Service_Call_Call

func (*Service_Call_Call) RunAndReturn

type Service_ChainID_Call

type Service_ChainID_Call struct {
	*mock.Call
}

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

func (*Service_ChainID_Call) Return

func (*Service_ChainID_Call) Run

func (_c *Service_ChainID_Call) Run(run func(ctx context.Context)) *Service_ChainID_Call

func (*Service_ChainID_Call) RunAndReturn

type Service_EstimateGas_Call

type Service_EstimateGas_Call struct {
	*mock.Call
}

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

func (*Service_EstimateGas_Call) Return

func (*Service_EstimateGas_Call) Run

func (*Service_EstimateGas_Call) RunAndReturn

type Service_Expecter

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

func (*Service_Expecter) BlockNumber

func (_e *Service_Expecter) BlockNumber(ctx interface{}) *Service_BlockNumber_Call

BlockNumber is a helper method to define mock.On call

  • ctx context.Context

func (*Service_Expecter) Call

func (_e *Service_Expecter) Call(ctx interface{}, args interface{}) *Service_Call_Call

Call is a helper method to define mock.On call

  • ctx context.Context
  • args *ethrpc.CallArgs

func (*Service_Expecter) ChainID

func (_e *Service_Expecter) ChainID(ctx interface{}) *Service_ChainID_Call

ChainID is a helper method to define mock.On call

  • ctx context.Context

func (*Service_Expecter) EstimateGas

func (_e *Service_Expecter) EstimateGas(ctx interface{}, args interface{}) *Service_EstimateGas_Call

EstimateGas is a helper method to define mock.On call

  • ctx context.Context
  • args *ethrpc.CallArgs

func (*Service_Expecter) GasPrice

func (_e *Service_Expecter) GasPrice(ctx interface{}) *Service_GasPrice_Call

GasPrice is a helper method to define mock.On call

  • ctx context.Context

func (*Service_Expecter) GetBalance

func (_e *Service_Expecter) GetBalance(ctx interface{}, address interface{}) *Service_GetBalance_Call

GetBalance is a helper method to define mock.On call

  • ctx context.Context
  • address common.Address

func (*Service_Expecter) GetBlockByHash

func (_e *Service_Expecter) GetBlockByHash(ctx interface{}, hash interface{}, fullTx interface{}) *Service_GetBlockByHash_Call

GetBlockByHash is a helper method to define mock.On call

  • ctx context.Context
  • hash common.Hash
  • fullTx bool

func (*Service_Expecter) GetBlockByNumber

func (_e *Service_Expecter) GetBlockByNumber(ctx interface{}, blockNr interface{}, fullTx interface{}) *Service_GetBlockByNumber_Call

GetBlockByNumber is a helper method to define mock.On call

  • ctx context.Context
  • blockNr ethrpc.BlockNumberOrHash
  • fullTx bool

func (*Service_Expecter) GetCode

func (_e *Service_Expecter) GetCode(ctx interface{}, address interface{}) *Service_GetCode_Call

GetCode is a helper method to define mock.On call

  • ctx context.Context
  • address common.Address

func (*Service_Expecter) GetLogs

func (_e *Service_Expecter) GetLogs(ctx interface{}, query interface{}) *Service_GetLogs_Call

GetLogs is a helper method to define mock.On call

  • ctx context.Context
  • query ethrpc.FilterQuery

func (*Service_Expecter) GetTransactionByHash

func (_e *Service_Expecter) GetTransactionByHash(ctx interface{}, hash interface{}) *Service_GetTransactionByHash_Call

GetTransactionByHash is a helper method to define mock.On call

  • ctx context.Context
  • hash common.Hash

func (*Service_Expecter) GetTransactionCount

func (_e *Service_Expecter) GetTransactionCount(ctx interface{}, address interface{}) *Service_GetTransactionCount_Call

GetTransactionCount is a helper method to define mock.On call

  • ctx context.Context
  • address common.Address

func (*Service_Expecter) GetTransactionReceipt

func (_e *Service_Expecter) GetTransactionReceipt(ctx interface{}, hash interface{}) *Service_GetTransactionReceipt_Call

GetTransactionReceipt is a helper method to define mock.On call

  • ctx context.Context
  • hash common.Hash

func (*Service_Expecter) MaxPriorityFeePerGas

func (_e *Service_Expecter) MaxPriorityFeePerGas(ctx interface{}) *Service_MaxPriorityFeePerGas_Call

MaxPriorityFeePerGas is a helper method to define mock.On call

  • ctx context.Context

func (*Service_Expecter) SendRawTransaction

func (_e *Service_Expecter) SendRawTransaction(ctx interface{}, data interface{}) *Service_SendRawTransaction_Call

SendRawTransaction is a helper method to define mock.On call

  • ctx context.Context
  • data hexutil.Bytes

func (*Service_Expecter) Syncing

func (_e *Service_Expecter) Syncing(ctx interface{}) *Service_Syncing_Call

Syncing is a helper method to define mock.On call

  • ctx context.Context

type Service_GasPrice_Call

type Service_GasPrice_Call struct {
	*mock.Call
}

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

func (*Service_GasPrice_Call) Return

func (*Service_GasPrice_Call) Run

func (*Service_GasPrice_Call) RunAndReturn

func (_c *Service_GasPrice_Call) RunAndReturn(run func(context.Context) (*hexutil.Big, error)) *Service_GasPrice_Call

type Service_GetBalance_Call

type Service_GetBalance_Call struct {
	*mock.Call
}

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

func (*Service_GetBalance_Call) Return

func (*Service_GetBalance_Call) Run

func (*Service_GetBalance_Call) RunAndReturn

type Service_GetBlockByHash_Call

type Service_GetBlockByHash_Call struct {
	*mock.Call
}

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

func (*Service_GetBlockByHash_Call) Return

func (*Service_GetBlockByHash_Call) Run

func (*Service_GetBlockByHash_Call) RunAndReturn

type Service_GetBlockByNumber_Call

type Service_GetBlockByNumber_Call struct {
	*mock.Call
}

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

func (*Service_GetBlockByNumber_Call) Return

func (*Service_GetBlockByNumber_Call) Run

func (*Service_GetBlockByNumber_Call) RunAndReturn

type Service_GetCode_Call

type Service_GetCode_Call struct {
	*mock.Call
}

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

func (*Service_GetCode_Call) Return

func (*Service_GetCode_Call) Run

func (_c *Service_GetCode_Call) Run(run func(ctx context.Context, address common.Address)) *Service_GetCode_Call

func (*Service_GetCode_Call) RunAndReturn

type Service_GetLogs_Call

type Service_GetLogs_Call struct {
	*mock.Call
}

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

func (*Service_GetLogs_Call) Return

func (_c *Service_GetLogs_Call) Return(_a0 []*types.Log, _a1 error) *Service_GetLogs_Call

func (*Service_GetLogs_Call) Run

func (*Service_GetLogs_Call) RunAndReturn

type Service_GetTransactionByHash_Call

type Service_GetTransactionByHash_Call struct {
	*mock.Call
}

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

func (*Service_GetTransactionByHash_Call) Return

func (*Service_GetTransactionByHash_Call) Run

func (*Service_GetTransactionByHash_Call) RunAndReturn

type Service_GetTransactionCount_Call

type Service_GetTransactionCount_Call struct {
	*mock.Call
}

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

func (*Service_GetTransactionCount_Call) Return

func (*Service_GetTransactionCount_Call) Run

func (*Service_GetTransactionCount_Call) RunAndReturn

type Service_GetTransactionReceipt_Call

type Service_GetTransactionReceipt_Call struct {
	*mock.Call
}

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

func (*Service_GetTransactionReceipt_Call) Return

func (*Service_GetTransactionReceipt_Call) Run

func (*Service_GetTransactionReceipt_Call) RunAndReturn

type Service_MaxPriorityFeePerGas_Call

type Service_MaxPriorityFeePerGas_Call struct {
	*mock.Call
}

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

func (*Service_MaxPriorityFeePerGas_Call) Return

func (*Service_MaxPriorityFeePerGas_Call) Run

func (*Service_MaxPriorityFeePerGas_Call) RunAndReturn

type Service_SendRawTransaction_Call

type Service_SendRawTransaction_Call struct {
	*mock.Call
}

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

func (*Service_SendRawTransaction_Call) Return

func (*Service_SendRawTransaction_Call) Run

func (*Service_SendRawTransaction_Call) RunAndReturn

type Service_Syncing_Call

type Service_Syncing_Call struct {
	*mock.Call
}

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

func (*Service_Syncing_Call) Return

func (*Service_Syncing_Call) Run

func (_c *Service_Syncing_Call) Run(run func(ctx context.Context)) *Service_Syncing_Call

func (*Service_Syncing_Call) RunAndReturn

func (_c *Service_Syncing_Call) RunAndReturn(run func(context.Context) bool) *Service_Syncing_Call

type Store

type Store struct {
	mock.Mock
}

Store is an autogenerated mock type for the Store type

func NewStore

func NewStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *Store

NewStore creates a new instance of Store. 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 (*Store) EXPECT

func (_m *Store) EXPECT() *Store_Expecter

func (*Store) GetBlockNumberByHash

func (_m *Store) GetBlockNumberByHash(ctx context.Context, blockHash []byte) (uint64, error)

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

func (*Store) GetEvmLogs

func (_m *Store) GetEvmLogs(ctx context.Context, address []byte, topic0 []byte, fromBlock uint64, toBlock uint64) ([]*ethrpc.EvmLog, error)

GetEvmLogs provides a mock function with given fields: ctx, address, topic0, fromBlock, toBlock

func (*Store) GetEvmLogsByTxHash

func (_m *Store) GetEvmLogsByTxHash(ctx context.Context, txHash []byte) ([]*ethrpc.EvmLog, error)

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

func (*Store) GetEvmTransaction

func (_m *Store) GetEvmTransaction(ctx context.Context, txHash []byte) (*ethrpc.EvmTransaction, error)

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

func (*Store) GetEvmTransactionCount

func (_m *Store) GetEvmTransactionCount(ctx context.Context, fromAddress string) (uint64, error)

GetEvmTransactionCount provides a mock function with given fields: ctx, fromAddress

func (*Store) GetLatestEvmBlockNumber

func (_m *Store) GetLatestEvmBlockNumber(ctx context.Context) (uint64, error)

GetLatestEvmBlockNumber provides a mock function with given fields: ctx

func (*Store) InsertMempoolEntry

func (_m *Store) InsertMempoolEntry(ctx context.Context, entry *ethrpc.MempoolEntry) error

InsertMempoolEntry provides a mock function with given fields: ctx, entry

type Store_Expecter

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

func (*Store_Expecter) GetBlockNumberByHash

func (_e *Store_Expecter) GetBlockNumberByHash(ctx interface{}, blockHash interface{}) *Store_GetBlockNumberByHash_Call

GetBlockNumberByHash is a helper method to define mock.On call

  • ctx context.Context
  • blockHash []byte

func (*Store_Expecter) GetEvmLogs

func (_e *Store_Expecter) GetEvmLogs(ctx interface{}, address interface{}, topic0 interface{}, fromBlock interface{}, toBlock interface{}) *Store_GetEvmLogs_Call

GetEvmLogs is a helper method to define mock.On call

  • ctx context.Context
  • address []byte
  • topic0 []byte
  • fromBlock uint64
  • toBlock uint64

func (*Store_Expecter) GetEvmLogsByTxHash

func (_e *Store_Expecter) GetEvmLogsByTxHash(ctx interface{}, txHash interface{}) *Store_GetEvmLogsByTxHash_Call

GetEvmLogsByTxHash is a helper method to define mock.On call

  • ctx context.Context
  • txHash []byte

func (*Store_Expecter) GetEvmTransaction

func (_e *Store_Expecter) GetEvmTransaction(ctx interface{}, txHash interface{}) *Store_GetEvmTransaction_Call

GetEvmTransaction is a helper method to define mock.On call

  • ctx context.Context
  • txHash []byte

func (*Store_Expecter) GetEvmTransactionCount

func (_e *Store_Expecter) GetEvmTransactionCount(ctx interface{}, fromAddress interface{}) *Store_GetEvmTransactionCount_Call

GetEvmTransactionCount is a helper method to define mock.On call

  • ctx context.Context
  • fromAddress string

func (*Store_Expecter) GetLatestEvmBlockNumber

func (_e *Store_Expecter) GetLatestEvmBlockNumber(ctx interface{}) *Store_GetLatestEvmBlockNumber_Call

GetLatestEvmBlockNumber is a helper method to define mock.On call

  • ctx context.Context

func (*Store_Expecter) InsertMempoolEntry

func (_e *Store_Expecter) InsertMempoolEntry(ctx interface{}, entry interface{}) *Store_InsertMempoolEntry_Call

InsertMempoolEntry is a helper method to define mock.On call

  • ctx context.Context
  • entry *ethrpc.MempoolEntry

type Store_GetBlockNumberByHash_Call

type Store_GetBlockNumberByHash_Call struct {
	*mock.Call
}

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

func (*Store_GetBlockNumberByHash_Call) Return

func (*Store_GetBlockNumberByHash_Call) Run

func (*Store_GetBlockNumberByHash_Call) RunAndReturn

type Store_GetEvmLogsByTxHash_Call

type Store_GetEvmLogsByTxHash_Call struct {
	*mock.Call
}

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

func (*Store_GetEvmLogsByTxHash_Call) Return

func (*Store_GetEvmLogsByTxHash_Call) Run

func (*Store_GetEvmLogsByTxHash_Call) RunAndReturn

type Store_GetEvmLogs_Call

type Store_GetEvmLogs_Call struct {
	*mock.Call
}

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

func (*Store_GetEvmLogs_Call) Return

func (*Store_GetEvmLogs_Call) Run

func (_c *Store_GetEvmLogs_Call) Run(run func(ctx context.Context, address []byte, topic0 []byte, fromBlock uint64, toBlock uint64)) *Store_GetEvmLogs_Call

func (*Store_GetEvmLogs_Call) RunAndReturn

func (_c *Store_GetEvmLogs_Call) RunAndReturn(run func(context.Context, []byte, []byte, uint64, uint64) ([]*ethrpc.EvmLog, error)) *Store_GetEvmLogs_Call

type Store_GetEvmTransactionCount_Call

type Store_GetEvmTransactionCount_Call struct {
	*mock.Call
}

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

func (*Store_GetEvmTransactionCount_Call) Return

func (*Store_GetEvmTransactionCount_Call) Run

func (*Store_GetEvmTransactionCount_Call) RunAndReturn

type Store_GetEvmTransaction_Call

type Store_GetEvmTransaction_Call struct {
	*mock.Call
}

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

func (*Store_GetEvmTransaction_Call) Return

func (*Store_GetEvmTransaction_Call) Run

func (*Store_GetEvmTransaction_Call) RunAndReturn

type Store_GetLatestEvmBlockNumber_Call

type Store_GetLatestEvmBlockNumber_Call struct {
	*mock.Call
}

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

func (*Store_GetLatestEvmBlockNumber_Call) Return

func (*Store_GetLatestEvmBlockNumber_Call) Run

func (*Store_GetLatestEvmBlockNumber_Call) RunAndReturn

type Store_InsertMempoolEntry_Call

type Store_InsertMempoolEntry_Call struct {
	*mock.Call
}

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

func (*Store_InsertMempoolEntry_Call) Return

func (*Store_InsertMempoolEntry_Call) Run

func (*Store_InsertMempoolEntry_Call) RunAndReturn

type TokenService

type TokenService struct {
	mock.Mock
}

TokenService is an autogenerated mock type for the TokenService type

func NewTokenService

func NewTokenService(t interface {
	mock.TestingT
	Cleanup(func())
}) *TokenService

NewTokenService creates a new instance of TokenService. 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 (*TokenService) ERC20

func (_m *TokenService) ERC20(address common.Address) (token.ERC20, error)

ERC20 provides a mock function with given fields: address

func (*TokenService) EXPECT

func (_m *TokenService) EXPECT() *TokenService_Expecter

func (*TokenService) Native

func (_m *TokenService) Native() token.Native

Native provides a mock function with no fields

type TokenService_ERC20_Call

type TokenService_ERC20_Call struct {
	*mock.Call
}

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

func (*TokenService_ERC20_Call) Return

func (*TokenService_ERC20_Call) Run

func (_c *TokenService_ERC20_Call) Run(run func(address common.Address)) *TokenService_ERC20_Call

func (*TokenService_ERC20_Call) RunAndReturn

type TokenService_Expecter

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

func (*TokenService_Expecter) ERC20

func (_e *TokenService_Expecter) ERC20(address interface{}) *TokenService_ERC20_Call

ERC20 is a helper method to define mock.On call

  • address common.Address

func (*TokenService_Expecter) Native

Native is a helper method to define mock.On call

type TokenService_Native_Call

type TokenService_Native_Call struct {
	*mock.Call
}

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

func (*TokenService_Native_Call) Return

func (*TokenService_Native_Call) Run

func (*TokenService_Native_Call) RunAndReturn

func (_c *TokenService_Native_Call) RunAndReturn(run func() token.Native) *TokenService_Native_Call

Jump to

Keyboard shortcuts

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