mocks

package
v2.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: MIT Imports: 21 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 mockConstructorTestingTNewBalanceMonitor) *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.

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 Chain

type Chain struct {
	mock.Mock
}

Chain is an autogenerated mock type for the Chain type

func NewChain

func NewChain(t mockConstructorTestingTNewChain) *Chain

NewChain creates a new instance of Chain. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Chain) BalanceMonitor

func (_m *Chain) BalanceMonitor() monitor.BalanceMonitor

BalanceMonitor provides a mock function with given fields:

func (*Chain) Client

func (_m *Chain) Client() client.Client

Client provides a mock function with given fields:

func (*Chain) Close

func (_m *Chain) Close() error

Close provides a mock function with given fields:

func (*Chain) Config

func (_m *Chain) Config() config.ChainScopedConfig

Config provides a mock function with given fields:

func (*Chain) GasEstimator

func (_m *Chain) GasEstimator() gas.EvmFeeEstimator

GasEstimator provides a mock function with given fields:

func (*Chain) HeadBroadcaster

func (_m *Chain) HeadBroadcaster() types.HeadBroadcaster

HeadBroadcaster provides a mock function with given fields:

func (*Chain) HeadTracker

func (_m *Chain) HeadTracker() types.HeadTracker

HeadTracker provides a mock function with given fields:

func (*Chain) HealthReport

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

HealthReport provides a mock function with given fields:

func (*Chain) ID

func (_m *Chain) ID() *big.Int

ID provides a mock function with given fields:

func (*Chain) LogBroadcaster

func (_m *Chain) LogBroadcaster() log.Broadcaster

LogBroadcaster provides a mock function with given fields:

func (*Chain) LogPoller

func (_m *Chain) LogPoller() logpoller.LogPoller

LogPoller provides a mock function with given fields:

func (*Chain) Logger

func (_m *Chain) Logger() logger.Logger

Logger provides a mock function with given fields:

func (*Chain) Name

func (_m *Chain) Name() string

Name provides a mock function with given fields:

func (*Chain) Ready

func (_m *Chain) Ready() error

Ready provides a mock function with given fields:

func (*Chain) Start

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

Start provides a mock function with given fields: _a0

func (*Chain) TxManager

func (_m *Chain) TxManager() txmgr.TxManager

TxManager provides a mock function with given fields:

type ChainSet

type ChainSet struct {
	mock.Mock
}

ChainSet is an autogenerated mock type for the ChainSet type

func NewChainSet

func NewChainSet(t mockConstructorTestingTNewChainSet) *ChainSet

NewChainSet creates a new instance of ChainSet. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ChainSet) ChainCount

func (_m *ChainSet) ChainCount() int

ChainCount provides a mock function with given fields:

func (*ChainSet) Chains

func (_m *ChainSet) Chains() []evm.Chain

Chains provides a mock function with given fields:

func (*ChainSet) Close

func (_m *ChainSet) Close() error

Close provides a mock function with given fields:

func (*ChainSet) Configs

func (_m *ChainSet) Configs() types.Configs

Configs provides a mock function with given fields:

func (*ChainSet) Default

func (_m *ChainSet) Default() (evm.Chain, error)

Default provides a mock function with given fields:

func (*ChainSet) Get

func (_m *ChainSet) Get(id *big.Int) (evm.Chain, error)

Get provides a mock function with given fields: id

func (*ChainSet) GetNodes

func (_m *ChainSet) GetNodes(ctx context.Context, offset int, limit int) ([]types.Node, int, error)

GetNodes provides a mock function with given fields: ctx, offset, limit

func (*ChainSet) GetNodesByChainIDs

func (_m *ChainSet) GetNodesByChainIDs(ctx context.Context, chainIDs []utils.Big) ([]types.Node, error)

GetNodesByChainIDs provides a mock function with given fields: ctx, chainIDs

func (*ChainSet) GetNodesForChain

func (_m *ChainSet) GetNodesForChain(ctx context.Context, chainID utils.Big, offset int, limit int) ([]types.Node, int, error)

GetNodesForChain provides a mock function with given fields: ctx, chainID, offset, limit

func (*ChainSet) HealthReport

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

HealthReport provides a mock function with given fields:

func (*ChainSet) Index

func (_m *ChainSet) Index(offset int, limit int) ([]chains.ChainConfig, int, error)

Index provides a mock function with given fields: offset, limit

func (*ChainSet) Name

func (_m *ChainSet) Name() string

Name provides a mock function with given fields:

func (*ChainSet) Ready

func (_m *ChainSet) Ready() error

Ready provides a mock function with given fields:

func (*ChainSet) Show

func (_m *ChainSet) Show(id utils.Big) (chains.ChainConfig, error)

Show provides a mock function with given fields: id

func (*ChainSet) Start

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

Start provides a mock function with given fields: _a0

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t mockConstructorTestingTNewClient) *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.

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

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

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

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

func (*Client) GetEthBalance

func (_m *Client) GetEthBalance(ctx context.Context, account common.Address, blockNumber *big.Int) (*assets.Eth, error)

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

func (*Client) GetLINKBalance

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

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

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(_a0 context.Context, _a1 common.Hash) (*types.Header, error)

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

func (*Client) HeaderByNumber

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

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

func (*Client) NodeStates

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

NodeStates 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, 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) 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 Node

type Node struct {
	mock.Mock
}

Node is an autogenerated mock type for the Node type

func NewNode

func NewNode(t mockConstructorTestingTNewNode) *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.

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) 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) 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, *utils.Big)

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

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

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

type SendOnlyNode

type SendOnlyNode struct {
	mock.Mock
}

SendOnlyNode is an autogenerated mock type for the SendOnlyNode type

func NewSendOnlyNode

func NewSendOnlyNode(t mockConstructorTestingTNewSendOnlyNode) *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.

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:

type Subscription

type Subscription struct {
	mock.Mock
}

Subscription is an autogenerated mock type for the Subscription type

func NewSubscription

func NewSubscription(t mockConstructorTestingTNewSubscription) *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.

func (*Subscription) Err

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

Err provides a mock function with given fields:

func (*Subscription) Unsubscribe

func (_m *Subscription) Unsubscribe()

Unsubscribe 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