Documentation ¶
Index ¶
- 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) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error)
- func (_m *Client) Call(result interface{}, method string, args ...interface{}) 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
- func (_m *Client) Close()
- func (_m *Client) CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error)
- 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) GetERC20Balance(address common.Address, contractAddress common.Address) (*big.Int, error)
- func (_m *Client) GetEthBalance(ctx context.Context, account common.Address, blockNumber *big.Int) (*assets.Eth, error)
- func (_m *Client) GetLINKBalance(linkAddress common.Address, address common.Address) (*assets.Link, error)
- func (_m *Client) HeadByNumber(ctx context.Context, n *big.Int) (*eth.Head, error)
- func (_m *Client) HeaderByNumber(_a0 context.Context, _a1 *big.Int) (*types.Header, error)
- func (_m *Client) NonceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (uint64, 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) SubscribeFilterLogs(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)
- func (_m *Client) SubscribeNewHead(ctx context.Context, ch chan<- *eth.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) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, 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) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, 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(ctx context.Context) (*big.Int, error)
- func (_m *Node) Close()
- func (_m *Node) CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error)
- func (_m *Node) Dial(ctx context.Context) error
- func (_m *Node) EstimateGas(ctx context.Context, call ethereum.CallMsg) (uint64, error)
- func (_m *Node) EthSubscribe(ctx context.Context, channel interface{}, args ...interface{}) (ethereum.Subscription, error)
- func (_m *Node) FilterLogs(ctx context.Context, q ethereum.FilterQuery) ([]types.Log, error)
- func (_m *Node) HeaderByNumber(_a0 context.Context, _a1 *big.Int) (*types.Header, error)
- 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) State() eth.NodeState
- 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) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
- func (_m *Node) Verify(ctx context.Context, expectedChainID *big.Int) error
- type SendOnlyNode
- func (_m *SendOnlyNode) BatchCallContext(ctx context.Context, b []rpc.BatchElem) error
- func (_m *SendOnlyNode) ChainID(ctx context.Context) (*big.Int, error)
- func (_m *SendOnlyNode) Dial(_a0 context.Context) error
- func (_m *SendOnlyNode) SendTransaction(ctx context.Context, tx *types.Transaction) error
- func (_m *SendOnlyNode) String() string
- func (_m *SendOnlyNode) Verify(ctx context.Context, expectedChainID *big.Int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
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 ¶
BatchCallContext provides a mock function with given fields: ctx, b
func (*Client) BlockByNumber ¶
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) 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) EstimateGas ¶
EstimateGas provides a mock function with given fields: ctx, call
func (*Client) FilterLogs ¶
FilterLogs provides a mock function with given fields: ctx, q
func (*Client) GetERC20Balance ¶
func (_m *Client) GetERC20Balance(address common.Address, contractAddress common.Address) (*big.Int, error)
GetERC20Balance provides a mock function with given fields: 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(linkAddress common.Address, address common.Address) (*assets.Link, error)
GetLINKBalance provides a mock function with given fields: linkAddress, address
func (*Client) HeadByNumber ¶ added in v0.10.10
HeadByNumber provides a mock function with given fields: ctx, n
func (*Client) HeaderByNumber ¶
HeaderByNumber provides a mock function with given fields: _a0, _a1
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 ¶
PendingCodeAt provides a mock function with given fields: ctx, account
func (*Client) PendingNonceAt ¶
PendingNonceAt provides a mock function with given fields: ctx, account
func (*Client) SendTransaction ¶
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<- *eth.Head) (ethereum.Subscription, error)
SubscribeNewHead provides a mock function with given fields: ctx, ch
func (*Client) SuggestGasPrice ¶
SuggestGasPrice provides a mock function with given fields: ctx
func (*Client) SuggestGasTipCap ¶ added in v0.10.10
SuggestGasTipCap provides a mock function with given fields: ctx
type Node ¶ added in v1.1.0
Node is an autogenerated mock type for the Node type
func (*Node) BalanceAt ¶ added in v1.1.0
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 ¶ added in v1.1.0
BatchCallContext provides a mock function with given fields: ctx, b
func (*Node) BlockByNumber ¶ added in v1.1.0
BlockByNumber provides a mock function with given fields: ctx, number
func (*Node) CallContext ¶ added in v1.1.0
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 ¶ added in v1.1.0
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) Close ¶ added in v1.1.0
func (_m *Node) Close()
Close provides a mock function with given fields:
func (*Node) CodeAt ¶ added in v1.1.0
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 ¶ added in v1.1.0
EstimateGas provides a mock function with given fields: ctx, call
func (*Node) EthSubscribe ¶ added in v1.1.0
func (_m *Node) EthSubscribe(ctx context.Context, channel interface{}, args ...interface{}) (ethereum.Subscription, error)
EthSubscribe provides a mock function with given fields: ctx, channel, args
func (*Node) FilterLogs ¶ added in v1.1.0
FilterLogs provides a mock function with given fields: ctx, q
func (*Node) HeaderByNumber ¶ added in v1.1.0
HeaderByNumber provides a mock function with given fields: _a0, _a1
func (*Node) NonceAt ¶ added in v1.1.0
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 ¶ added in v1.1.0
PendingCodeAt provides a mock function with given fields: ctx, account
func (*Node) PendingNonceAt ¶ added in v1.1.0
PendingNonceAt provides a mock function with given fields: ctx, account
func (*Node) SendTransaction ¶ added in v1.1.0
SendTransaction provides a mock function with given fields: ctx, tx
func (*Node) SubscribeFilterLogs ¶ added in v1.1.0
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 ¶ added in v1.1.0
SuggestGasPrice provides a mock function with given fields: ctx
func (*Node) SuggestGasTipCap ¶ added in v1.1.0
SuggestGasTipCap provides a mock function with given fields: ctx
func (*Node) TransactionReceipt ¶ added in v1.1.0
TransactionReceipt provides a mock function with given fields: ctx, txHash
type SendOnlyNode ¶ added in v1.1.0
SendOnlyNode is an autogenerated mock type for the SendOnlyNode type
func (*SendOnlyNode) BatchCallContext ¶ added in v1.1.0
BatchCallContext provides a mock function with given fields: ctx, b
func (*SendOnlyNode) ChainID ¶ added in v1.1.0
ChainID provides a mock function with given fields: ctx
func (*SendOnlyNode) Dial ¶ added in v1.1.0
func (_m *SendOnlyNode) Dial(_a0 context.Context) error
Dial provides a mock function with given fields: _a0
func (*SendOnlyNode) SendTransaction ¶ added in v1.1.0
func (_m *SendOnlyNode) SendTransaction(ctx context.Context, tx *types.Transaction) error
SendTransaction provides a mock function with given fields: ctx, tx
func (*SendOnlyNode) String ¶ added in v1.1.0
func (_m *SendOnlyNode) String() string
String provides a mock function with given fields: