Documentation ¶
Index ¶
- type BalanceMonitor
- func (_m *BalanceMonitor) Close() error
- func (_m *BalanceMonitor) GetEthBalance(_a0 common.Address) *assets.Eth
- func (_m *BalanceMonitor) HealthReport() map[string]error
- func (_m *BalanceMonitor) Name() string
- func (_m *BalanceMonitor) OnNewLongestChain(ctx context.Context, head *types.Head)
- func (_m *BalanceMonitor) Ready() error
- func (_m *BalanceMonitor) Start(_a0 context.Context) error
- type Chain
- func (_m *Chain) BalanceMonitor() monitor.BalanceMonitor
- func (_m *Chain) Client() client.Client
- func (_m *Chain) Close() error
- func (_m *Chain) Config() config.ChainScopedConfig
- func (_m *Chain) GasEstimator() gas.EvmFeeEstimator
- func (_m *Chain) HeadBroadcaster() types.HeadBroadcaster
- func (_m *Chain) HeadTracker() types.HeadTracker
- func (_m *Chain) HealthReport() map[string]error
- func (_m *Chain) ID() *big.Int
- func (_m *Chain) LogBroadcaster() log.Broadcaster
- func (_m *Chain) LogPoller() logpoller.LogPoller
- func (_m *Chain) Logger() logger.Logger
- func (_m *Chain) Name() string
- func (_m *Chain) Ready() error
- func (_m *Chain) SendTx(ctx context.Context, from string, to string, amount *big.Int, ...) error
- func (_m *Chain) Start(_a0 context.Context) error
- func (_m *Chain) TxManager() ...
- type ChainSet
- func (_m *ChainSet) ChainCount() int
- func (_m *ChainSet) ChainStatus(ctx context.Context, id string) (types.ChainStatus, error)
- func (_m *ChainSet) ChainStatuses(ctx context.Context, offset int, limit int) ([]types.ChainStatus, int, error)
- func (_m *ChainSet) Chains() []evm.Chain
- func (_m *ChainSet) Close() error
- func (_m *ChainSet) Configs() evmtypes.Configs
- func (_m *ChainSet) Default() (evm.Chain, error)
- func (_m *ChainSet) Get(id *big.Int) (evm.Chain, error)
- func (_m *ChainSet) HealthReport() map[string]error
- func (_m *ChainSet) Name() string
- func (_m *ChainSet) NodeStatuses(ctx context.Context, offset int, limit int, chainIDs ...string) ([]types.NodeStatus, int, error)
- func (_m *ChainSet) Ready() error
- func (_m *ChainSet) SendTx(ctx context.Context, chainID string, from string, to string, amount *big.Int, ...) error
- func (_m *ChainSet) Start(_a0 context.Context) error
- type Node
- func (_m *Node) BalanceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (*big.Int, error)
- func (_m *Node) BatchCallContext(ctx context.Context, b []rpc.BatchElem) error
- func (_m *Node) BlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error)
- func (_m *Node) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error)
- func (_m *Node) BlockNumber(ctx context.Context) (uint64, error)
- func (_m *Node) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error
- func (_m *Node) CallContract(ctx context.Context, msg ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
- func (_m *Node) ChainID() *big.Int
- func (_m *Node) Close() error
- func (_m *Node) CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error)
- func (_m *Node) EstimateGas(ctx context.Context, call ethereum.CallMsg) (uint64, error)
- func (_m *Node) EthSubscribe(ctx context.Context, channel chan<- *evmtypes.Head, args ...interface{}) (ethereum.Subscription, error)
- func (_m *Node) FilterLogs(ctx context.Context, q ethereum.FilterQuery) ([]types.Log, error)
- func (_m *Node) HeaderByHash(_a0 context.Context, _a1 common.Hash) (*types.Header, error)
- func (_m *Node) HeaderByNumber(_a0 context.Context, _a1 *big.Int) (*types.Header, error)
- func (_m *Node) Name() string
- func (_m *Node) NonceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (uint64, error)
- func (_m *Node) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error)
- func (_m *Node) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)
- func (_m *Node) SendTransaction(ctx context.Context, tx *types.Transaction) error
- func (_m *Node) Start(ctx context.Context) error
- func (_m *Node) State() client.NodeState
- func (_m *Node) StateAndLatest() (client.NodeState, int64, *utils.Big)
- func (_m *Node) String() string
- func (_m *Node) SubscribeFilterLogs(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)
- func (_m *Node) SuggestGasPrice(ctx context.Context) (*big.Int, error)
- func (_m *Node) SuggestGasTipCap(ctx context.Context) (*big.Int, error)
- func (_m *Node) TransactionByHash(ctx context.Context, txHash common.Hash) (*types.Transaction, error)
- func (_m *Node) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
- type SendOnlyNode
- func (_m *SendOnlyNode) BatchCallContext(ctx context.Context, b []rpc.BatchElem) error
- func (_m *SendOnlyNode) ChainID() *big.Int
- func (_m *SendOnlyNode) Close() error
- func (_m *SendOnlyNode) Name() string
- func (_m *SendOnlyNode) SendTransaction(ctx context.Context, tx *types.Transaction) error
- func (_m *SendOnlyNode) Start(_a0 context.Context) error
- func (_m *SendOnlyNode) State() client.NodeState
- func (_m *SendOnlyNode) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BalanceMonitor ¶
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:
type Chain ¶
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) 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 ¶
HealthReport 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) SendTx ¶ added in v2.1.0
func (_m *Chain) SendTx(ctx context.Context, from string, to string, amount *big.Int, balanceCheck bool) error
SendTx provides a mock function with given fields: ctx, from, to, amount, balanceCheck
type ChainSet ¶
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 ¶
ChainCount provides a mock function with given fields:
func (*ChainSet) ChainStatus ¶ added in v2.1.0
ChainStatus provides a mock function with given fields: ctx, id
func (*ChainSet) ChainStatuses ¶ added in v2.1.0
func (_m *ChainSet) ChainStatuses(ctx context.Context, offset int, limit int) ([]types.ChainStatus, int, error)
ChainStatuses provides a mock function with given fields: ctx, offset, limit
func (*ChainSet) HealthReport ¶
HealthReport provides a mock function with given fields:
func (*ChainSet) NodeStatuses ¶ added in v2.1.0
func (_m *ChainSet) NodeStatuses(ctx context.Context, offset int, limit int, chainIDs ...string) ([]types.NodeStatus, int, error)
NodeStatuses provides a mock function with given fields: ctx, offset, limit, chainIDs
type Node ¶
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 ¶
BatchCallContext provides a mock function with given fields: ctx, b
func (*Node) BlockByHash ¶
BlockByHash provides a mock function with given fields: ctx, hash
func (*Node) BlockByNumber ¶
BlockByNumber provides a mock function with given fields: ctx, number
func (*Node) BlockNumber ¶ added in v2.1.0
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) 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 ¶
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 ¶
FilterLogs provides a mock function with given fields: ctx, q
func (*Node) HeaderByHash ¶
HeaderByHash provides a mock function with given fields: _a0, _a1
func (*Node) HeaderByNumber ¶
HeaderByNumber provides a mock function with given fields: _a0, _a1
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 ¶
PendingCodeAt provides a mock function with given fields: ctx, account
func (*Node) PendingNonceAt ¶
PendingNonceAt provides a mock function with given fields: ctx, account
func (*Node) SendTransaction ¶
SendTransaction provides a mock function with given fields: ctx, tx
func (*Node) StateAndLatest ¶
StateAndLatest 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 ¶
SuggestGasPrice provides a mock function with given fields: ctx
func (*Node) SuggestGasTipCap ¶
SuggestGasTipCap provides a mock function with given fields: ctx
func (*Node) TransactionByHash ¶ added in v2.1.0
func (_m *Node) TransactionByHash(ctx context.Context, txHash common.Hash) (*types.Transaction, error)
TransactionByHash provides a mock function with given fields: ctx, txHash
type SendOnlyNode ¶
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 ¶
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: