Documentation ¶
Index ¶
- type BatchSender
- type Client
- func (_m *Client) BalanceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (*big.Int, error)
- func (_m *Client) BatchCallContext(ctx context.Context, b []rpc.BatchElem) error
- func (_m *Client) BatchCallContextAll(ctx context.Context, b []rpc.BatchElem) error
- func (_m *Client) BlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error)
- func (_m *Client) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error)
- func (_m *Client) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error
- func (_m *Client) CallContract(ctx context.Context, msg ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
- func (_m *Client) ChainID() (*big.Int, error)
- func (_m *Client) Close()
- func (_m *Client) CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error)
- func (_m *Client) ConfiguredChainID() *big.Int
- func (_m *Client) Dial(ctx context.Context) error
- func (_m *Client) EstimateGas(ctx context.Context, call ethereum.CallMsg) (uint64, error)
- func (_m *Client) FilterLogs(ctx context.Context, q ethereum.FilterQuery) ([]types.Log, error)
- func (_m *Client) HeadByHash(ctx context.Context, n common.Hash) (*evmtypes.Head, error)
- func (_m *Client) HeadByNumber(ctx context.Context, n *big.Int) (*evmtypes.Head, error)
- func (_m *Client) HeaderByHash(ctx context.Context, h common.Hash) (*types.Header, error)
- func (_m *Client) HeaderByNumber(ctx context.Context, n *big.Int) (*types.Header, error)
- func (_m *Client) IsL2() bool
- func (_m *Client) LINKBalance(ctx context.Context, address common.Address, linkAddress common.Address) (*assets.Link, error)
- func (_m *Client) LatestBlockHeight(ctx context.Context) (*big.Int, error)
- func (_m *Client) NodeStates() map[string]string
- func (_m *Client) PendingCallContract(ctx context.Context, msg ethereum.CallMsg) ([]byte, error)
- func (_m *Client) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error)
- func (_m *Client) PendingNonceAt(ctx context.Context, account common.Address) (uint64, error)
- func (_m *Client) SendTransaction(ctx context.Context, tx *types.Transaction) error
- func (_m *Client) SendTransactionReturnCode(ctx context.Context, tx *types.Transaction, fromAddress common.Address) (commonclient.SendTxReturnCode, error)
- func (_m *Client) SequenceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (evmtypes.Nonce, error)
- func (_m *Client) SubscribeFilterLogs(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)
- func (_m *Client) SubscribeNewHead(ctx context.Context, ch chan<- *evmtypes.Head) (ethereum.Subscription, error)
- func (_m *Client) SuggestGasPrice(ctx context.Context) (*big.Int, error)
- func (_m *Client) SuggestGasTipCap(ctx context.Context) (*big.Int, error)
- func (_m *Client) TokenBalance(ctx context.Context, address common.Address, contractAddress common.Address) (*big.Int, error)
- func (_m *Client) TransactionByHash(ctx context.Context, txHash common.Hash) (*types.Transaction, error)
- func (_m *Client) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
- type RPCClient
- func (_m *RPCClient) BalanceAt(ctx context.Context, accountAddress common.Address, blockNumber *big.Int) (*big.Int, error)
- func (_m *RPCClient) BatchCallContext(ctx context.Context, b []rpc.BatchElem) error
- func (_m *RPCClient) BlockByHash(ctx context.Context, hash common.Hash) (*types.Head, error)
- func (_m *RPCClient) BlockByHashGeth(ctx context.Context, hash common.Hash) (*coretypes.Block, error)
- func (_m *RPCClient) BlockByNumber(ctx context.Context, number *big.Int) (*types.Head, error)
- func (_m *RPCClient) BlockByNumberGeth(ctx context.Context, number *big.Int) (*coretypes.Block, error)
- func (_m *RPCClient) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error
- func (_m *RPCClient) CallContract(ctx context.Context, msg interface{}, blockNumber *big.Int) ([]byte, error)
- func (_m *RPCClient) ChainID(ctx context.Context) (*big.Int, error)
- func (_m *RPCClient) ClientVersion(_a0 context.Context) (string, error)
- func (_m *RPCClient) Close()
- func (_m *RPCClient) CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error)
- func (_m *RPCClient) Dial(ctx context.Context) error
- func (_m *RPCClient) DialHTTP() error
- func (_m *RPCClient) DisconnectAll()
- func (_m *RPCClient) EstimateGas(ctx context.Context, call interface{}) (uint64, error)
- func (_m *RPCClient) FilterEvents(ctx context.Context, query ethereum.FilterQuery) ([]coretypes.Log, error)
- func (_m *RPCClient) HeaderByHash(ctx context.Context, h common.Hash) (*coretypes.Header, error)
- func (_m *RPCClient) HeaderByNumber(ctx context.Context, n *big.Int) (*coretypes.Header, error)
- func (_m *RPCClient) IsSyncing(ctx context.Context) (bool, error)
- func (_m *RPCClient) LINKBalance(ctx context.Context, accountAddress common.Address, linkAddress common.Address) (*assets.Link, error)
- func (_m *RPCClient) LatestBlockHeight(_a0 context.Context) (*big.Int, error)
- func (_m *RPCClient) PendingCallContract(ctx context.Context, msg interface{}) ([]byte, error)
- func (_m *RPCClient) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error)
- func (_m *RPCClient) PendingSequenceAt(ctx context.Context, addr common.Address) (types.Nonce, error)
- func (_m *RPCClient) SendEmptyTransaction(ctx context.Context, ...) (string, error)
- func (_m *RPCClient) SendTransaction(ctx context.Context, tx *coretypes.Transaction) error
- func (_m *RPCClient) SequenceAt(ctx context.Context, accountAddress common.Address, blockNumber *big.Int) (types.Nonce, error)
- func (_m *RPCClient) SetAliveLoopSub(_a0 commontypes.Subscription)
- func (_m *RPCClient) SimulateTransaction(ctx context.Context, tx *coretypes.Transaction) error
- func (_m *RPCClient) Subscribe(ctx context.Context, channel chan<- *types.Head, args ...interface{}) (commontypes.Subscription, error)
- func (_m *RPCClient) SubscribeFilterLogs(ctx context.Context, q ethereum.FilterQuery, ch chan<- coretypes.Log) (ethereum.Subscription, error)
- func (_m *RPCClient) SubscribersCount() int32
- func (_m *RPCClient) SuggestGasPrice(ctx context.Context) (*big.Int, error)
- func (_m *RPCClient) SuggestGasTipCap(ctx context.Context) (*big.Int, error)
- func (_m *RPCClient) TokenBalance(ctx context.Context, accountAddress common.Address, ...) (*big.Int, error)
- func (_m *RPCClient) TransactionByHash(ctx context.Context, txHash common.Hash) (*coretypes.Transaction, error)
- func (_m *RPCClient) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
- func (_m *RPCClient) TransactionReceiptGeth(ctx context.Context, txHash common.Hash) (*coretypes.Receipt, error)
- func (_m *RPCClient) UnsubscribeAllExceptAliveLoop()
- type TxSender
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchSender ¶
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 ¶
BatchCallContext provides a mock function with given fields: ctx, b
type Client ¶ added in v2.1.0
Client is an autogenerated mock type for the Client type
func NewClient ¶ added in v2.1.0
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 ¶ added in v2.1.0
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 ¶ added in v2.1.0
BatchCallContext provides a mock function with given fields: ctx, b
func (*Client) BatchCallContextAll ¶ added in v2.1.0
BatchCallContextAll provides a mock function with given fields: ctx, b
func (*Client) BlockByHash ¶ added in v2.1.0
BlockByHash provides a mock function with given fields: ctx, hash
func (*Client) BlockByNumber ¶ added in v2.1.0
BlockByNumber provides a mock function with given fields: ctx, number
func (*Client) CallContext ¶ added in v2.1.0
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 ¶ added in v2.1.0
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) Close ¶ added in v2.1.0
func (_m *Client) Close()
Close provides a mock function with given fields:
func (*Client) CodeAt ¶ added in v2.1.0
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 ¶ added in v2.1.0
ConfiguredChainID provides a mock function with given fields:
func (*Client) EstimateGas ¶ added in v2.1.0
EstimateGas provides a mock function with given fields: ctx, call
func (*Client) FilterLogs ¶ added in v2.1.0
FilterLogs provides a mock function with given fields: ctx, q
func (*Client) HeadByHash ¶ added in v2.1.0
HeadByHash provides a mock function with given fields: ctx, n
func (*Client) HeadByNumber ¶ added in v2.1.0
HeadByNumber provides a mock function with given fields: ctx, n
func (*Client) HeaderByHash ¶ added in v2.1.0
HeaderByHash provides a mock function with given fields: ctx, h
func (*Client) HeaderByNumber ¶ added in v2.1.0
HeaderByNumber provides a mock function with given fields: ctx, n
func (*Client) LINKBalance ¶ added in v2.1.0
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 ¶ added in v2.1.0
LatestBlockHeight provides a mock function with given fields: ctx
func (*Client) NodeStates ¶ added in v2.1.0
NodeStates provides a mock function with given fields:
func (*Client) PendingCallContract ¶ added in v2.10.0
PendingCallContract provides a mock function with given fields: ctx, msg
func (*Client) PendingCodeAt ¶ added in v2.1.0
PendingCodeAt provides a mock function with given fields: ctx, account
func (*Client) PendingNonceAt ¶ added in v2.1.0
PendingNonceAt provides a mock function with given fields: ctx, account
func (*Client) SendTransaction ¶ added in v2.1.0
SendTransaction provides a mock function with given fields: ctx, tx
func (*Client) SendTransactionReturnCode ¶ added in v2.1.0
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 ¶ added in v2.1.0
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 ¶ added in v2.1.0
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 ¶ added in v2.1.0
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 ¶ added in v2.1.0
SuggestGasPrice provides a mock function with given fields: ctx
func (*Client) SuggestGasTipCap ¶ added in v2.1.0
SuggestGasTipCap provides a mock function with given fields: ctx
func (*Client) TokenBalance ¶ added in v2.1.0
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 ¶ added in v2.1.0
func (_m *Client) TransactionByHash(ctx context.Context, txHash common.Hash) (*types.Transaction, error)
TransactionByHash provides a mock function with given fields: ctx, txHash
type RPCClient ¶ added in v2.10.0
RPCClient is an autogenerated mock type for the RPCClient type
func NewRPCClient ¶ added in v2.10.0
NewRPCClient creates a new instance of RPCClient. 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 (*RPCClient) BalanceAt ¶ added in v2.10.0
func (_m *RPCClient) BalanceAt(ctx context.Context, accountAddress common.Address, blockNumber *big.Int) (*big.Int, error)
BalanceAt provides a mock function with given fields: ctx, accountAddress, blockNumber
func (*RPCClient) BatchCallContext ¶ added in v2.10.0
BatchCallContext provides a mock function with given fields: ctx, b
func (*RPCClient) BlockByHash ¶ added in v2.10.0
BlockByHash provides a mock function with given fields: ctx, hash
func (*RPCClient) BlockByHashGeth ¶ added in v2.10.0
func (_m *RPCClient) BlockByHashGeth(ctx context.Context, hash common.Hash) (*coretypes.Block, error)
BlockByHashGeth provides a mock function with given fields: ctx, hash
func (*RPCClient) BlockByNumber ¶ added in v2.10.0
BlockByNumber provides a mock function with given fields: ctx, number
func (*RPCClient) BlockByNumberGeth ¶ added in v2.10.0
func (_m *RPCClient) BlockByNumberGeth(ctx context.Context, number *big.Int) (*coretypes.Block, error)
BlockByNumberGeth provides a mock function with given fields: ctx, number
func (*RPCClient) CallContext ¶ added in v2.10.0
func (_m *RPCClient) CallContext(ctx context.Context, result interface{}, method string, args ...interface{}) error
CallContext provides a mock function with given fields: ctx, result, method, args
func (*RPCClient) CallContract ¶ added in v2.10.0
func (_m *RPCClient) CallContract(ctx context.Context, msg interface{}, blockNumber *big.Int) ([]byte, error)
CallContract provides a mock function with given fields: ctx, msg, blockNumber
func (*RPCClient) ChainID ¶ added in v2.10.0
ChainID provides a mock function with given fields: ctx
func (*RPCClient) ClientVersion ¶ added in v2.10.0
ClientVersion provides a mock function with given fields: _a0
func (*RPCClient) Close ¶ added in v2.10.0
func (_m *RPCClient) Close()
Close provides a mock function with given fields:
func (*RPCClient) CodeAt ¶ added in v2.10.0
func (_m *RPCClient) CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error)
CodeAt provides a mock function with given fields: ctx, account, blockNumber
func (*RPCClient) DisconnectAll ¶ added in v2.10.0
func (_m *RPCClient) DisconnectAll()
DisconnectAll provides a mock function with given fields:
func (*RPCClient) EstimateGas ¶ added in v2.10.0
EstimateGas provides a mock function with given fields: ctx, call
func (*RPCClient) FilterEvents ¶ added in v2.10.0
func (_m *RPCClient) FilterEvents(ctx context.Context, query ethereum.FilterQuery) ([]coretypes.Log, error)
FilterEvents provides a mock function with given fields: ctx, query
func (*RPCClient) HeaderByHash ¶ added in v2.10.0
HeaderByHash provides a mock function with given fields: ctx, h
func (*RPCClient) HeaderByNumber ¶ added in v2.10.0
HeaderByNumber provides a mock function with given fields: ctx, n
func (*RPCClient) IsSyncing ¶ added in v2.10.0
IsSyncing provides a mock function with given fields: ctx
func (*RPCClient) LINKBalance ¶ added in v2.10.0
func (_m *RPCClient) LINKBalance(ctx context.Context, accountAddress common.Address, linkAddress common.Address) (*assets.Link, error)
LINKBalance provides a mock function with given fields: ctx, accountAddress, linkAddress
func (*RPCClient) LatestBlockHeight ¶ added in v2.10.0
LatestBlockHeight provides a mock function with given fields: _a0
func (*RPCClient) PendingCallContract ¶ added in v2.10.0
PendingCallContract provides a mock function with given fields: ctx, msg
func (*RPCClient) PendingCodeAt ¶ added in v2.10.0
PendingCodeAt provides a mock function with given fields: ctx, account
func (*RPCClient) PendingSequenceAt ¶ added in v2.10.0
func (_m *RPCClient) PendingSequenceAt(ctx context.Context, addr common.Address) (types.Nonce, error)
PendingSequenceAt provides a mock function with given fields: ctx, addr
func (*RPCClient) SendEmptyTransaction ¶ added in v2.10.0
func (_m *RPCClient) SendEmptyTransaction(ctx context.Context, newTxAttempt func(types.Nonce, uint32, *evmassets.Wei, common.Address) (interface{}, error), seq types.Nonce, gasLimit uint32, fee *evmassets.Wei, fromAddress common.Address) (string, error)
SendEmptyTransaction provides a mock function with given fields: ctx, newTxAttempt, seq, gasLimit, fee, fromAddress
func (*RPCClient) SendTransaction ¶ added in v2.10.0
SendTransaction provides a mock function with given fields: ctx, tx
func (*RPCClient) SequenceAt ¶ added in v2.10.0
func (_m *RPCClient) SequenceAt(ctx context.Context, accountAddress common.Address, blockNumber *big.Int) (types.Nonce, error)
SequenceAt provides a mock function with given fields: ctx, accountAddress, blockNumber
func (*RPCClient) SetAliveLoopSub ¶ added in v2.10.0
func (_m *RPCClient) SetAliveLoopSub(_a0 commontypes.Subscription)
SetAliveLoopSub provides a mock function with given fields: _a0
func (*RPCClient) SimulateTransaction ¶ added in v2.10.0
SimulateTransaction provides a mock function with given fields: ctx, tx
func (*RPCClient) Subscribe ¶ added in v2.10.0
func (_m *RPCClient) Subscribe(ctx context.Context, channel chan<- *types.Head, args ...interface{}) (commontypes.Subscription, error)
Subscribe provides a mock function with given fields: ctx, channel, args
func (*RPCClient) SubscribeFilterLogs ¶ added in v2.10.0
func (_m *RPCClient) SubscribeFilterLogs(ctx context.Context, q ethereum.FilterQuery, ch chan<- coretypes.Log) (ethereum.Subscription, error)
SubscribeFilterLogs provides a mock function with given fields: ctx, q, ch
func (*RPCClient) SubscribersCount ¶ added in v2.10.0
SubscribersCount provides a mock function with given fields:
func (*RPCClient) SuggestGasPrice ¶ added in v2.10.0
SuggestGasPrice provides a mock function with given fields: ctx
func (*RPCClient) SuggestGasTipCap ¶ added in v2.10.0
SuggestGasTipCap provides a mock function with given fields: ctx
func (*RPCClient) TokenBalance ¶ added in v2.10.0
func (_m *RPCClient) TokenBalance(ctx context.Context, accountAddress common.Address, tokenAddress common.Address) (*big.Int, error)
TokenBalance provides a mock function with given fields: ctx, accountAddress, tokenAddress
func (*RPCClient) TransactionByHash ¶ added in v2.10.0
func (_m *RPCClient) TransactionByHash(ctx context.Context, txHash common.Hash) (*coretypes.Transaction, error)
TransactionByHash provides a mock function with given fields: ctx, txHash
func (*RPCClient) TransactionReceipt ¶ added in v2.10.0
func (_m *RPCClient) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
TransactionReceipt provides a mock function with given fields: ctx, txHash
func (*RPCClient) TransactionReceiptGeth ¶ added in v2.10.0
func (_m *RPCClient) TransactionReceiptGeth(ctx context.Context, txHash common.Hash) (*coretypes.Receipt, error)
TransactionReceiptGeth provides a mock function with given fields: ctx, txHash
func (*RPCClient) UnsubscribeAllExceptAliveLoop ¶ added in v2.10.0
func (_m *RPCClient) UnsubscribeAllExceptAliveLoop()
UnsubscribeAllExceptAliveLoop provides a mock function with given fields:
type TxSender ¶
TxSender is an autogenerated mock type for the TxSender type
func NewTxSender ¶
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) SendTransaction ¶
SendTransaction provides a mock function with given fields: ctx, tx