mocks

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: MIT Imports: 8 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 (*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) 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) BlockNumber

func (_m *Client) BlockNumber(ctx context.Context) (uint64, error)

BlockNumber provides a mock function with given fields: ctx

func (*Client) BlockReceipts

func (_m *Client) BlockReceipts(ctx context.Context, blockNrOrHash rpc.BlockNumberOrHash) ([]*types.Receipt, error)

BlockReceipts provides a mock function with given fields: ctx, blockNrOrHash

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(ctx context.Context) (*big.Int, error)

ChainID provides a mock function with given fields: ctx

func (*Client) ClientID

func (_m *Client) ClientID() string

ClientID provides a mock function with given fields:

func (*Client) Close

func (_m *Client) Close() error

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

func (_m *Client) DialContext(ctx context.Context, rawurl string) error

DialContext provides a mock function with given fields: ctx, rawurl

func (*Client) EstimateGas

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

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

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

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

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

func (*Client) Health

func (_m *Client) Health() bool

Health provides a mock function with given 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) 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) 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) (chan *types.Header, ethereum.Subscription, error)

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

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

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

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

func (*Client) TxPoolContentFrom

func (_m *Client) TxPoolContentFrom(ctx context.Context, address common.Address) (map[string]map[uint64]*types.Transaction, error)

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

func (*Client) TxPoolInspect

func (_m *Client) TxPoolInspect(ctx context.Context) (map[string]map[common.Address]map[uint64]string, error)

TxPoolInspect provides a mock function with given fields: ctx

type ConnectionPool

type ConnectionPool struct {
	mock.Mock
}

ConnectionPool is an autogenerated mock type for the ConnectionPool type

func NewConnectionPool

func NewConnectionPool(t interface {
	mock.TestingT
	Cleanup(func())
}) *ConnectionPool

NewConnectionPool creates a new instance of ConnectionPool. 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 (*ConnectionPool) Close

func (_m *ConnectionPool) Close() error

Close provides a mock function with given fields:

func (*ConnectionPool) Dial

func (_m *ConnectionPool) Dial(_a0 string) error

Dial provides a mock function with given fields: _a0

func (*ConnectionPool) DialContext

func (_m *ConnectionPool) DialContext(_a0 context.Context, _a1 string) error

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

func (*ConnectionPool) GetHTTP

func (_m *ConnectionPool) GetHTTP() (eth.Client, bool)

GetHTTP provides a mock function with given fields:

func (*ConnectionPool) GetWS

func (_m *ConnectionPool) GetWS() (eth.Client, bool)

GetWS provides a mock function with given fields:

func (*ConnectionPool) RemoveChainClient

func (_m *ConnectionPool) RemoveChainClient(_a0 string) error

RemoveChainClient provides a mock function with given fields: _a0

Jump to

Keyboard shortcuts

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