mocks

package
v0.0.0-...-3674750 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchSender

type BatchSender struct {
	mock.Mock
}

BatchSender is an autogenerated mock type for the BatchSender type

func NewBatchSender

func NewBatchSender(t interface {
	mock.TestingT
	Cleanup(func())
}) *BatchSender

NewBatchSender creates a new instance of BatchSender. 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 (*BatchSender) BatchCallContext

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

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

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 (*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) ChainID

func (_m *Client) ChainID() (*big.Int, error)

ChainID provides a mock function with given fields:

func (*Client) Close

func (_m *Client) Close()

Close provides a mock function with given 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 given fields:

func (*Client) Dial

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

Dial provides a mock function with given fields: ctx

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) 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 given 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) NodeStates

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

NodeStates provides a mock function with given fields:

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) (commonclient.SendTxReturnCode, error)

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

func (*Client) SequenceAt

func (_m *Client) SequenceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (evmtypes.Nonce, error)

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

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) SubscribeNewHead

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

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

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 TxSender

type TxSender struct {
	mock.Mock
}

TxSender is an autogenerated mock type for the TxSender type

func NewTxSender

func NewTxSender(t interface {
	mock.TestingT
	Cleanup(func())
}) *TxSender

NewTxSender creates a new instance of TxSender. 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 (*TxSender) ChainID

func (_m *TxSender) ChainID(_a0 context.Context) (*big.Int, error)

ChainID provides a mock function with given fields: _a0

func (*TxSender) SendTransaction

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

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

Jump to

Keyboard shortcuts

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