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 BalanceMonitor

type BalanceMonitor struct {
	mock.Mock
}

BalanceMonitor is an autogenerated mock type for the BalanceMonitor type

func NewBalanceMonitor

func NewBalanceMonitor(t interface {
	mock.TestingT
	Cleanup(func())
}) *BalanceMonitor

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

func (_m *BalanceMonitor) Close() error

Close provides a mock function with given fields:

func (*BalanceMonitor) GetEthBalance

func (_m *BalanceMonitor) GetEthBalance(_a0 common.Address) *assets.Eth

GetEthBalance provides a mock function with given fields: _a0

func (*BalanceMonitor) HealthReport

func (_m *BalanceMonitor) HealthReport() map[string]error

HealthReport provides a mock function with given fields:

func (*BalanceMonitor) Name

func (_m *BalanceMonitor) Name() string

Name provides a mock function with given fields:

func (*BalanceMonitor) OnNewLongestChain

func (_m *BalanceMonitor) OnNewLongestChain(ctx context.Context, head *types.Head)

OnNewLongestChain provides a mock function with given fields: ctx, head

func (*BalanceMonitor) Ready

func (_m *BalanceMonitor) Ready() error

Ready provides a mock function with given fields:

func (*BalanceMonitor) Start

func (_m *BalanceMonitor) Start(_a0 context.Context) error

Start provides a mock function with given fields: _a0

type Node

type Node struct {
	mock.Mock
}

Node is an autogenerated mock type for the Node type

func NewNode

func NewNode(t interface {
	mock.TestingT
	Cleanup(func())
}) *Node

NewNode creates a new instance of Node. 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 (*Node) BalanceAt

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

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

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

func (*Node) BlockByHash

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

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

func (*Node) BlockByNumber

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

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

func (*Node) BlockNumber

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

BlockNumber provides a mock function with given fields: ctx

func (*Node) CallContext

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

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

func (*Node) CallContract

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

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

func (*Node) ChainID

func (_m *Node) ChainID() *big.Int

ChainID provides a mock function with given fields:

func (*Node) Close

func (_m *Node) Close() error

Close provides a mock function with given fields:

func (*Node) CodeAt

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

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

func (*Node) EstimateGas

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

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

func (*Node) EthSubscribe

func (_m *Node) EthSubscribe(ctx context.Context, channel chan<- *evmtypes.Head, args ...interface{}) (ethereum.Subscription, error)

EthSubscribe provides a mock function with given fields: ctx, channel, args

func (*Node) FilterLogs

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

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

func (*Node) HeaderByHash

func (_m *Node) HeaderByHash(_a0 context.Context, _a1 common.Hash) (*types.Header, error)

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

func (*Node) HeaderByNumber

func (_m *Node) HeaderByNumber(_a0 context.Context, _a1 *big.Int) (*types.Header, error)

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

func (*Node) Name

func (_m *Node) Name() string

Name provides a mock function with given fields:

func (*Node) NonceAt

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

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

func (*Node) Order

func (_m *Node) Order() int32

Order provides a mock function with given fields:

func (*Node) PendingCodeAt

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

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

func (*Node) PendingNonceAt

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

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

func (*Node) SendTransaction

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

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

func (*Node) Start

func (_m *Node) Start(ctx context.Context) error

Start provides a mock function with given fields: ctx

func (*Node) State

func (_m *Node) State() client.NodeState

State provides a mock function with given fields:

func (*Node) StateAndLatest

func (_m *Node) StateAndLatest() (client.NodeState, int64, *big.Int)

StateAndLatest provides a mock function with given fields:

func (*Node) String

func (_m *Node) String() string

String provides a mock function with given fields:

func (*Node) SubscribeFilterLogs

func (_m *Node) 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 (*Node) SubscribersCount

func (_m *Node) SubscribersCount() int32

SubscribersCount provides a mock function with given fields:

func (*Node) SuggestGasPrice

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

SuggestGasPrice provides a mock function with given fields: ctx

func (*Node) SuggestGasTipCap

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

SuggestGasTipCap provides a mock function with given fields: ctx

func (*Node) TransactionByHash

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

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

func (*Node) TransactionReceipt

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

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

func (*Node) UnsubscribeAllExceptAliveLoop

func (_m *Node) UnsubscribeAllExceptAliveLoop()

UnsubscribeAllExceptAliveLoop provides a mock function with given fields:

type SendOnlyNode

type SendOnlyNode struct {
	mock.Mock
}

SendOnlyNode is an autogenerated mock type for the SendOnlyNode type

func NewSendOnlyNode

func NewSendOnlyNode(t interface {
	mock.TestingT
	Cleanup(func())
}) *SendOnlyNode

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

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

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

func (*SendOnlyNode) ChainID

func (_m *SendOnlyNode) ChainID() *big.Int

ChainID provides a mock function with given fields:

func (*SendOnlyNode) Close

func (_m *SendOnlyNode) Close() error

Close provides a mock function with given fields:

func (*SendOnlyNode) Name

func (_m *SendOnlyNode) Name() string

Name provides a mock function with given fields:

func (*SendOnlyNode) SendTransaction

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

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

func (*SendOnlyNode) Start

func (_m *SendOnlyNode) Start(_a0 context.Context) error

Start provides a mock function with given fields: _a0

func (*SendOnlyNode) State

func (_m *SendOnlyNode) State() client.NodeState

State provides a mock function with given fields:

func (*SendOnlyNode) String

func (_m *SendOnlyNode) String() string

String provides a mock function with given fields:

Jump to

Keyboard shortcuts

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