clienttest

package
v0.0.0-...-0754238 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *Client

NewClient creates a new instance of Client. 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 NewClientWithDefaultChainID

func NewClientWithDefaultChainID(t testing.TB) *Client

func (*Client) BalanceAt

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

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

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

func (*Client) BatchCallContextAll

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

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

func (*Client) BlockByHash

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

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

func (*Client) BlockByNumber

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

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

func (*Client) CallContext

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

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

func (*Client) CallContract

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

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

func (*Client) CheckTxValidity

func (_m *Client) CheckTxValidity(ctx context.Context, from common.Address, to common.Address, data []byte) *client.SendError

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

func (*Client) Close

func (_m *Client) Close()

Close provides a mock function with no fields

func (*Client) CodeAt

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

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

func (*Client) ConfiguredChainID

func (_m *Client) ConfiguredChainID() *big.Int

ConfiguredChainID provides a mock function with no fields

func (*Client) Dial

func (_m *Client) Dial(ctx context.Context) error

Dial provides a mock function with given fields: ctx

func (*Client) EXPECT

func (_m *Client) EXPECT() *Client_Expecter

func (*Client) EstimateGas

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

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

func (*Client) FeeHistory

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

FeeHistory provides a mock function with given fields: ctx, blockCount, lastBlock, rewardPercentiles

func (*Client) FilterLogs

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

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

func (*Client) HeadByHash

func (_m *Client) HeadByHash(ctx context.Context, n common.Hash) (*evmtypes.Head, error)

HeadByHash provides a mock function with given fields: ctx, n

func (*Client) HeadByNumber

func (_m *Client) HeadByNumber(ctx context.Context, n *big.Int) (*evmtypes.Head, error)

HeadByNumber provides a mock function with given fields: ctx, n

func (*Client) HeaderByHash

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

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

func (*Client) HeaderByNumber

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

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

func (*Client) IsL2

func (_m *Client) IsL2() bool

IsL2 provides a mock function with no fields

func (*Client) LINKBalance

func (_m *Client) LINKBalance(ctx context.Context, address common.Address, linkAddress common.Address) (*assets.Link, error)

LINKBalance provides a mock function with given fields: ctx, address, linkAddress

func (*Client) LatestBlockHeight

func (_m *Client) LatestBlockHeight(ctx context.Context) (*big.Int, error)

LatestBlockHeight provides a mock function with given fields: ctx

func (*Client) LatestFinalizedBlock

func (_m *Client) LatestFinalizedBlock(ctx context.Context) (*evmtypes.Head, error)

LatestFinalizedBlock provides a mock function with given fields: ctx

func (*Client) NodeStates

func (_m *Client) NodeStates() map[string]string

NodeStates provides a mock function with no fields

func (*Client) NonceAt

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

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

func (*Client) PendingCallContract

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

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

func (*Client) PendingCodeAt

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

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

func (*Client) PendingNonceAt

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

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

func (*Client) SendTransaction

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

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

func (*Client) SendTransactionReturnCode

func (_m *Client) SendTransactionReturnCode(ctx context.Context, tx *types.Transaction, fromAddress common.Address) (multinode.SendTxReturnCode, error)

SendTransactionReturnCode provides a mock function with given fields: ctx, tx, fromAddress

func (*Client) SubscribeFilterLogs

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

SubscribeFilterLogs provides a mock function with given fields: ctx, q, ch

func (*Client) SubscribeToHeads

func (_m *Client) SubscribeToHeads(ctx context.Context) (<-chan *evmtypes.Head, ethereum.Subscription, error)

SubscribeToHeads provides a mock function with given fields: ctx

func (*Client) SuggestGasPrice

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

SuggestGasPrice provides a mock function with given fields: ctx

func (*Client) SuggestGasTipCap

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

SuggestGasTipCap provides a mock function with given fields: ctx

func (*Client) TokenBalance

func (_m *Client) TokenBalance(ctx context.Context, address common.Address, contractAddress common.Address) (*big.Int, error)

TokenBalance provides a mock function with given fields: ctx, address, contractAddress

func (*Client) TransactionByHash

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

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

func (*Client) TransactionReceipt

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

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

type Client_BalanceAt_Call

type Client_BalanceAt_Call struct {
	*mock.Call
}

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

func (*Client_BalanceAt_Call) Return

func (_c *Client_BalanceAt_Call) Return(_a0 *big.Int, _a1 error) *Client_BalanceAt_Call

func (*Client_BalanceAt_Call) Run

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

func (*Client_BalanceAt_Call) RunAndReturn

type Client_BatchCallContextAll_Call

type Client_BatchCallContextAll_Call struct {
	*mock.Call
}

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

func (*Client_BatchCallContextAll_Call) Return

func (*Client_BatchCallContextAll_Call) Run

func (*Client_BatchCallContextAll_Call) RunAndReturn

type Client_BatchCallContext_Call

type Client_BatchCallContext_Call struct {
	*mock.Call
}

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

func (*Client_BatchCallContext_Call) Return

func (*Client_BatchCallContext_Call) Run

func (*Client_BatchCallContext_Call) RunAndReturn

type Client_BlockByHash_Call

type Client_BlockByHash_Call struct {
	*mock.Call
}

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

func (*Client_BlockByHash_Call) Return

func (*Client_BlockByHash_Call) Run

func (*Client_BlockByHash_Call) RunAndReturn

type Client_BlockByNumber_Call

type Client_BlockByNumber_Call struct {
	*mock.Call
}

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

func (*Client_BlockByNumber_Call) Return

func (*Client_BlockByNumber_Call) Run

func (_c *Client_BlockByNumber_Call) Run(run func(ctx context.Context, number *big.Int)) *Client_BlockByNumber_Call

func (*Client_BlockByNumber_Call) RunAndReturn

type Client_CallContext_Call

type Client_CallContext_Call struct {
	*mock.Call
}

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

func (*Client_CallContext_Call) Return

func (*Client_CallContext_Call) Run

func (_c *Client_CallContext_Call) Run(run func(ctx context.Context, result interface{}, method string, args ...interface{})) *Client_CallContext_Call

func (*Client_CallContext_Call) RunAndReturn

func (_c *Client_CallContext_Call) RunAndReturn(run func(context.Context, interface{}, string, ...interface{}) error) *Client_CallContext_Call

type Client_CallContract_Call

type Client_CallContract_Call struct {
	*mock.Call
}

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

func (*Client_CallContract_Call) Return

func (*Client_CallContract_Call) Run

func (_c *Client_CallContract_Call) Run(run func(ctx context.Context, msg ethereum.CallMsg, blockNumber *big.Int)) *Client_CallContract_Call

func (*Client_CallContract_Call) RunAndReturn

type Client_CheckTxValidity_Call

type Client_CheckTxValidity_Call struct {
	*mock.Call
}

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

func (*Client_CheckTxValidity_Call) Return

func (*Client_CheckTxValidity_Call) Run

func (*Client_CheckTxValidity_Call) RunAndReturn

type Client_Close_Call

type Client_Close_Call struct {
	*mock.Call
}

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

func (*Client_Close_Call) Return

func (_c *Client_Close_Call) Return() *Client_Close_Call

func (*Client_Close_Call) Run

func (_c *Client_Close_Call) Run(run func()) *Client_Close_Call

func (*Client_Close_Call) RunAndReturn

func (_c *Client_Close_Call) RunAndReturn(run func()) *Client_Close_Call

type Client_CodeAt_Call

type Client_CodeAt_Call struct {
	*mock.Call
}

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

func (*Client_CodeAt_Call) Return

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

func (*Client_CodeAt_Call) Run

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

func (*Client_CodeAt_Call) RunAndReturn

func (_c *Client_CodeAt_Call) RunAndReturn(run func(context.Context, common.Address, *big.Int) ([]byte, error)) *Client_CodeAt_Call

type Client_ConfiguredChainID_Call

type Client_ConfiguredChainID_Call struct {
	*mock.Call
}

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

func (*Client_ConfiguredChainID_Call) Return

func (*Client_ConfiguredChainID_Call) Run

func (*Client_ConfiguredChainID_Call) RunAndReturn

func (_c *Client_ConfiguredChainID_Call) RunAndReturn(run func() *big.Int) *Client_ConfiguredChainID_Call

type Client_Dial_Call

type Client_Dial_Call struct {
	*mock.Call
}

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

func (*Client_Dial_Call) Return

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

func (*Client_Dial_Call) Run

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

func (*Client_Dial_Call) RunAndReturn

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

type Client_EstimateGas_Call

type Client_EstimateGas_Call struct {
	*mock.Call
}

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

func (*Client_EstimateGas_Call) Return

func (*Client_EstimateGas_Call) Run

func (*Client_EstimateGas_Call) RunAndReturn

type Client_Expecter

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

func (*Client_Expecter) BalanceAt

func (_e *Client_Expecter) BalanceAt(ctx interface{}, account interface{}, blockNumber interface{}) *Client_BalanceAt_Call

BalanceAt is a helper method to define mock.On call

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

func (*Client_Expecter) BatchCallContext

func (_e *Client_Expecter) BatchCallContext(ctx interface{}, b interface{}) *Client_BatchCallContext_Call

BatchCallContext is a helper method to define mock.On call

  • ctx context.Context
  • b []rpc.BatchElem

func (*Client_Expecter) BatchCallContextAll

func (_e *Client_Expecter) BatchCallContextAll(ctx interface{}, b interface{}) *Client_BatchCallContextAll_Call

BatchCallContextAll is a helper method to define mock.On call

  • ctx context.Context
  • b []rpc.BatchElem

func (*Client_Expecter) BlockByHash

func (_e *Client_Expecter) BlockByHash(ctx interface{}, hash interface{}) *Client_BlockByHash_Call

BlockByHash is a helper method to define mock.On call

  • ctx context.Context
  • hash common.Hash

func (*Client_Expecter) BlockByNumber

func (_e *Client_Expecter) BlockByNumber(ctx interface{}, number interface{}) *Client_BlockByNumber_Call

BlockByNumber is a helper method to define mock.On call

  • ctx context.Context
  • number *big.Int

func (*Client_Expecter) CallContext

func (_e *Client_Expecter) CallContext(ctx interface{}, result interface{}, method interface{}, args ...interface{}) *Client_CallContext_Call

CallContext is a helper method to define mock.On call

  • ctx context.Context
  • result interface{}
  • method string
  • args ...interface{}

func (*Client_Expecter) CallContract

func (_e *Client_Expecter) CallContract(ctx interface{}, msg interface{}, blockNumber interface{}) *Client_CallContract_Call

CallContract is a helper method to define mock.On call

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

func (*Client_Expecter) CheckTxValidity

func (_e *Client_Expecter) CheckTxValidity(ctx interface{}, from interface{}, to interface{}, data interface{}) *Client_CheckTxValidity_Call

CheckTxValidity is a helper method to define mock.On call

  • ctx context.Context
  • from common.Address
  • to common.Address
  • data []byte

func (*Client_Expecter) Close

func (_e *Client_Expecter) Close() *Client_Close_Call

Close is a helper method to define mock.On call

func (*Client_Expecter) CodeAt

func (_e *Client_Expecter) CodeAt(ctx interface{}, account interface{}, blockNumber interface{}) *Client_CodeAt_Call

CodeAt is a helper method to define mock.On call

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

func (*Client_Expecter) ConfiguredChainID

func (_e *Client_Expecter) ConfiguredChainID() *Client_ConfiguredChainID_Call

ConfiguredChainID is a helper method to define mock.On call

func (*Client_Expecter) Dial

func (_e *Client_Expecter) Dial(ctx interface{}) *Client_Dial_Call

Dial is a helper method to define mock.On call

  • ctx context.Context

func (*Client_Expecter) EstimateGas

func (_e *Client_Expecter) EstimateGas(ctx interface{}, call interface{}) *Client_EstimateGas_Call

EstimateGas is a helper method to define mock.On call

  • ctx context.Context
  • call ethereum.CallMsg

func (*Client_Expecter) FeeHistory

func (_e *Client_Expecter) FeeHistory(ctx interface{}, blockCount interface{}, lastBlock interface{}, rewardPercentiles interface{}) *Client_FeeHistory_Call

FeeHistory is a helper method to define mock.On call

  • ctx context.Context
  • blockCount uint64
  • lastBlock *big.Int
  • rewardPercentiles []float64

func (*Client_Expecter) FilterLogs

func (_e *Client_Expecter) FilterLogs(ctx interface{}, q interface{}) *Client_FilterLogs_Call

FilterLogs is a helper method to define mock.On call

  • ctx context.Context
  • q ethereum.FilterQuery

func (*Client_Expecter) HeadByHash

func (_e *Client_Expecter) HeadByHash(ctx interface{}, n interface{}) *Client_HeadByHash_Call

HeadByHash is a helper method to define mock.On call

  • ctx context.Context
  • n common.Hash

func (*Client_Expecter) HeadByNumber

func (_e *Client_Expecter) HeadByNumber(ctx interface{}, n interface{}) *Client_HeadByNumber_Call

HeadByNumber is a helper method to define mock.On call

  • ctx context.Context
  • n *big.Int

func (*Client_Expecter) HeaderByHash

func (_e *Client_Expecter) HeaderByHash(ctx interface{}, h interface{}) *Client_HeaderByHash_Call

HeaderByHash is a helper method to define mock.On call

  • ctx context.Context
  • h common.Hash

func (*Client_Expecter) HeaderByNumber

func (_e *Client_Expecter) HeaderByNumber(ctx interface{}, n interface{}) *Client_HeaderByNumber_Call

HeaderByNumber is a helper method to define mock.On call

  • ctx context.Context
  • n *big.Int

func (*Client_Expecter) IsL2

func (_e *Client_Expecter) IsL2() *Client_IsL2_Call

IsL2 is a helper method to define mock.On call

func (*Client_Expecter) LINKBalance

func (_e *Client_Expecter) LINKBalance(ctx interface{}, address interface{}, linkAddress interface{}) *Client_LINKBalance_Call

LINKBalance is a helper method to define mock.On call

  • ctx context.Context
  • address common.Address
  • linkAddress common.Address

func (*Client_Expecter) LatestBlockHeight

func (_e *Client_Expecter) LatestBlockHeight(ctx interface{}) *Client_LatestBlockHeight_Call

LatestBlockHeight is a helper method to define mock.On call

  • ctx context.Context

func (*Client_Expecter) LatestFinalizedBlock

func (_e *Client_Expecter) LatestFinalizedBlock(ctx interface{}) *Client_LatestFinalizedBlock_Call

LatestFinalizedBlock is a helper method to define mock.On call

  • ctx context.Context

func (*Client_Expecter) NodeStates

func (_e *Client_Expecter) NodeStates() *Client_NodeStates_Call

NodeStates is a helper method to define mock.On call

func (*Client_Expecter) NonceAt

func (_e *Client_Expecter) NonceAt(ctx interface{}, account interface{}, blockNumber interface{}) *Client_NonceAt_Call

NonceAt is a helper method to define mock.On call

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

func (*Client_Expecter) PendingCallContract

func (_e *Client_Expecter) PendingCallContract(ctx interface{}, msg interface{}) *Client_PendingCallContract_Call

PendingCallContract is a helper method to define mock.On call

  • ctx context.Context
  • msg ethereum.CallMsg

func (*Client_Expecter) PendingCodeAt

func (_e *Client_Expecter) PendingCodeAt(ctx interface{}, account interface{}) *Client_PendingCodeAt_Call

PendingCodeAt is a helper method to define mock.On call

  • ctx context.Context
  • account common.Address

func (*Client_Expecter) PendingNonceAt

func (_e *Client_Expecter) PendingNonceAt(ctx interface{}, account interface{}) *Client_PendingNonceAt_Call

PendingNonceAt is a helper method to define mock.On call

  • ctx context.Context
  • account common.Address

func (*Client_Expecter) SendTransaction

func (_e *Client_Expecter) SendTransaction(ctx interface{}, tx interface{}) *Client_SendTransaction_Call

SendTransaction is a helper method to define mock.On call

  • ctx context.Context
  • tx *types.Transaction

func (*Client_Expecter) SendTransactionReturnCode

func (_e *Client_Expecter) SendTransactionReturnCode(ctx interface{}, tx interface{}, fromAddress interface{}) *Client_SendTransactionReturnCode_Call

SendTransactionReturnCode is a helper method to define mock.On call

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

func (*Client_Expecter) SubscribeFilterLogs

func (_e *Client_Expecter) SubscribeFilterLogs(ctx interface{}, q interface{}, ch interface{}) *Client_SubscribeFilterLogs_Call

SubscribeFilterLogs is a helper method to define mock.On call

  • ctx context.Context
  • q ethereum.FilterQuery
  • ch chan<- types.Log

func (*Client_Expecter) SubscribeToHeads

func (_e *Client_Expecter) SubscribeToHeads(ctx interface{}) *Client_SubscribeToHeads_Call

SubscribeToHeads is a helper method to define mock.On call

  • ctx context.Context

func (*Client_Expecter) SuggestGasPrice

func (_e *Client_Expecter) SuggestGasPrice(ctx interface{}) *Client_SuggestGasPrice_Call

SuggestGasPrice is a helper method to define mock.On call

  • ctx context.Context

func (*Client_Expecter) SuggestGasTipCap

func (_e *Client_Expecter) SuggestGasTipCap(ctx interface{}) *Client_SuggestGasTipCap_Call

SuggestGasTipCap is a helper method to define mock.On call

  • ctx context.Context

func (*Client_Expecter) TokenBalance

func (_e *Client_Expecter) TokenBalance(ctx interface{}, address interface{}, contractAddress interface{}) *Client_TokenBalance_Call

TokenBalance is a helper method to define mock.On call

  • ctx context.Context
  • address common.Address
  • contractAddress common.Address

func (*Client_Expecter) TransactionByHash

func (_e *Client_Expecter) TransactionByHash(ctx interface{}, txHash interface{}) *Client_TransactionByHash_Call

TransactionByHash is a helper method to define mock.On call

  • ctx context.Context
  • txHash common.Hash

func (*Client_Expecter) TransactionReceipt

func (_e *Client_Expecter) TransactionReceipt(ctx interface{}, txHash interface{}) *Client_TransactionReceipt_Call

TransactionReceipt is a helper method to define mock.On call

  • ctx context.Context
  • txHash common.Hash

type Client_FeeHistory_Call

type Client_FeeHistory_Call struct {
	*mock.Call
}

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

func (*Client_FeeHistory_Call) Return

func (*Client_FeeHistory_Call) Run

func (_c *Client_FeeHistory_Call) Run(run func(ctx context.Context, blockCount uint64, lastBlock *big.Int, rewardPercentiles []float64)) *Client_FeeHistory_Call

func (*Client_FeeHistory_Call) RunAndReturn

type Client_FilterLogs_Call

type Client_FilterLogs_Call struct {
	*mock.Call
}

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

func (*Client_FilterLogs_Call) Return

func (*Client_FilterLogs_Call) Run

func (*Client_FilterLogs_Call) RunAndReturn

type Client_HeadByHash_Call

type Client_HeadByHash_Call struct {
	*mock.Call
}

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

func (*Client_HeadByHash_Call) Return

func (*Client_HeadByHash_Call) Run

func (*Client_HeadByHash_Call) RunAndReturn

type Client_HeadByNumber_Call

type Client_HeadByNumber_Call struct {
	*mock.Call
}

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

func (*Client_HeadByNumber_Call) Return

func (*Client_HeadByNumber_Call) Run

func (*Client_HeadByNumber_Call) RunAndReturn

type Client_HeaderByHash_Call

type Client_HeaderByHash_Call struct {
	*mock.Call
}

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

func (*Client_HeaderByHash_Call) Return

func (*Client_HeaderByHash_Call) Run

func (*Client_HeaderByHash_Call) RunAndReturn

type Client_HeaderByNumber_Call

type Client_HeaderByNumber_Call struct {
	*mock.Call
}

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

func (*Client_HeaderByNumber_Call) Return

func (*Client_HeaderByNumber_Call) Run

func (*Client_HeaderByNumber_Call) RunAndReturn

type Client_IsL2_Call

type Client_IsL2_Call struct {
	*mock.Call
}

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

func (*Client_IsL2_Call) Return

func (_c *Client_IsL2_Call) Return(_a0 bool) *Client_IsL2_Call

func (*Client_IsL2_Call) Run

func (_c *Client_IsL2_Call) Run(run func()) *Client_IsL2_Call

func (*Client_IsL2_Call) RunAndReturn

func (_c *Client_IsL2_Call) RunAndReturn(run func() bool) *Client_IsL2_Call

type Client_LINKBalance_Call

type Client_LINKBalance_Call struct {
	*mock.Call
}

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

func (*Client_LINKBalance_Call) Return

func (*Client_LINKBalance_Call) Run

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

func (*Client_LINKBalance_Call) RunAndReturn

type Client_LatestBlockHeight_Call

type Client_LatestBlockHeight_Call struct {
	*mock.Call
}

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

func (*Client_LatestBlockHeight_Call) Return

func (*Client_LatestBlockHeight_Call) Run

func (*Client_LatestBlockHeight_Call) RunAndReturn

type Client_LatestFinalizedBlock_Call

type Client_LatestFinalizedBlock_Call struct {
	*mock.Call
}

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

func (*Client_LatestFinalizedBlock_Call) Return

func (*Client_LatestFinalizedBlock_Call) Run

func (*Client_LatestFinalizedBlock_Call) RunAndReturn

type Client_NodeStates_Call

type Client_NodeStates_Call struct {
	*mock.Call
}

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

func (*Client_NodeStates_Call) Return

func (*Client_NodeStates_Call) Run

func (_c *Client_NodeStates_Call) Run(run func()) *Client_NodeStates_Call

func (*Client_NodeStates_Call) RunAndReturn

func (_c *Client_NodeStates_Call) RunAndReturn(run func() map[string]string) *Client_NodeStates_Call

type Client_NonceAt_Call

type Client_NonceAt_Call struct {
	*mock.Call
}

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

func (*Client_NonceAt_Call) Return

func (_c *Client_NonceAt_Call) Return(_a0 uint64, _a1 error) *Client_NonceAt_Call

func (*Client_NonceAt_Call) Run

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

func (*Client_NonceAt_Call) RunAndReturn

type Client_PendingCallContract_Call

type Client_PendingCallContract_Call struct {
	*mock.Call
}

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

func (*Client_PendingCallContract_Call) Return

func (*Client_PendingCallContract_Call) Run

func (*Client_PendingCallContract_Call) RunAndReturn

type Client_PendingCodeAt_Call

type Client_PendingCodeAt_Call struct {
	*mock.Call
}

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

func (*Client_PendingCodeAt_Call) Return

func (*Client_PendingCodeAt_Call) Run

func (*Client_PendingCodeAt_Call) RunAndReturn

type Client_PendingNonceAt_Call

type Client_PendingNonceAt_Call struct {
	*mock.Call
}

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

func (*Client_PendingNonceAt_Call) Return

func (*Client_PendingNonceAt_Call) Run

func (*Client_PendingNonceAt_Call) RunAndReturn

type Client_SendTransactionReturnCode_Call

type Client_SendTransactionReturnCode_Call struct {
	*mock.Call
}

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

func (*Client_SendTransactionReturnCode_Call) Return

func (*Client_SendTransactionReturnCode_Call) Run

type Client_SendTransaction_Call

type Client_SendTransaction_Call struct {
	*mock.Call
}

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

func (*Client_SendTransaction_Call) Return

func (*Client_SendTransaction_Call) Run

func (*Client_SendTransaction_Call) RunAndReturn

type Client_SubscribeFilterLogs_Call

type Client_SubscribeFilterLogs_Call struct {
	*mock.Call
}

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

func (*Client_SubscribeFilterLogs_Call) Return

func (*Client_SubscribeFilterLogs_Call) Run

func (*Client_SubscribeFilterLogs_Call) RunAndReturn

type Client_SubscribeToHeads_Call

type Client_SubscribeToHeads_Call struct {
	*mock.Call
}

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

func (*Client_SubscribeToHeads_Call) Return

func (*Client_SubscribeToHeads_Call) Run

func (*Client_SubscribeToHeads_Call) RunAndReturn

type Client_SuggestGasPrice_Call

type Client_SuggestGasPrice_Call struct {
	*mock.Call
}

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

func (*Client_SuggestGasPrice_Call) Return

func (*Client_SuggestGasPrice_Call) Run

func (*Client_SuggestGasPrice_Call) RunAndReturn

type Client_SuggestGasTipCap_Call

type Client_SuggestGasTipCap_Call struct {
	*mock.Call
}

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

func (*Client_SuggestGasTipCap_Call) Return

func (*Client_SuggestGasTipCap_Call) Run

func (*Client_SuggestGasTipCap_Call) RunAndReturn

type Client_TokenBalance_Call

type Client_TokenBalance_Call struct {
	*mock.Call
}

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

func (*Client_TokenBalance_Call) Return

func (*Client_TokenBalance_Call) Run

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

func (*Client_TokenBalance_Call) RunAndReturn

type Client_TransactionByHash_Call

type Client_TransactionByHash_Call struct {
	*mock.Call
}

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

func (*Client_TransactionByHash_Call) Return

func (*Client_TransactionByHash_Call) Run

func (*Client_TransactionByHash_Call) RunAndReturn

type Client_TransactionReceipt_Call

type Client_TransactionReceipt_Call struct {
	*mock.Call
}

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

func (*Client_TransactionReceipt_Call) Return

func (*Client_TransactionReceipt_Call) Run

func (*Client_TransactionReceipt_Call) RunAndReturn

type MockEth

type MockEth struct {
	EthClient       *Client
	CheckFilterLogs func(int64, int64)
	// contains filtered or unexported fields
}

func (*MockEth) NewSub

func (m *MockEth) NewSub(t *testing.T) ethereum.Subscription

func (*MockEth) SubsErr

func (m *MockEth) SubsErr(err error)

func (*MockEth) SubscribeCallCount

func (m *MockEth) SubscribeCallCount() int32

func (*MockEth) UnsubscribeCallCount

func (m *MockEth) UnsubscribeCallCount() int32

type Subscription

type Subscription struct {
	mock.Mock
}

Subscription is an autogenerated mock type for the Subscription type

func NewSubscription

func NewSubscription(t interface {
	mock.TestingT
	Cleanup(func())
}) *Subscription

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

func (_m *Subscription) EXPECT() *Subscription_Expecter

func (*Subscription) Err

func (_m *Subscription) Err() <-chan error

Err provides a mock function with no fields

func (*Subscription) Unsubscribe

func (_m *Subscription) Unsubscribe()

Unsubscribe provides a mock function with no fields

type Subscription_Err_Call

type Subscription_Err_Call struct {
	*mock.Call
}

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

func (*Subscription_Err_Call) Return

func (_c *Subscription_Err_Call) Return(_a0 <-chan error) *Subscription_Err_Call

func (*Subscription_Err_Call) Run

func (_c *Subscription_Err_Call) Run(run func()) *Subscription_Err_Call

func (*Subscription_Err_Call) RunAndReturn

func (_c *Subscription_Err_Call) RunAndReturn(run func() <-chan error) *Subscription_Err_Call

type Subscription_Expecter

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

func (*Subscription_Expecter) Err

Err is a helper method to define mock.On call

func (*Subscription_Expecter) Unsubscribe

Unsubscribe is a helper method to define mock.On call

type Subscription_Unsubscribe_Call

type Subscription_Unsubscribe_Call struct {
	*mock.Call
}

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

func (*Subscription_Unsubscribe_Call) Return

func (*Subscription_Unsubscribe_Call) Run

func (*Subscription_Unsubscribe_Call) RunAndReturn

func (_c *Subscription_Unsubscribe_Call) RunAndReturn(run func()) *Subscription_Unsubscribe_Call

Jump to

Keyboard shortcuts

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