Documentation ¶
Index ¶
- type Client
- func (_m *Client) BalanceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (*big.Int, error)
- func (_m *Client) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error)
- func (_m *Client) BlockNumber(ctx context.Context) (uint64, error)
- func (_m *Client) BlockReceipts(ctx context.Context, blockNrOrHash rpc.BlockNumberOrHash) ([]*types.Receipt, error)
- func (_m *Client) CallContract(ctx context.Context, msg ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
- func (_m *Client) ChainID(ctx context.Context) (*big.Int, error)
- func (_m *Client) ClientID() string
- func (_m *Client) Close() error
- func (_m *Client) CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error)
- func (_m *Client) DialContext(ctx context.Context, rawurl string) error
- func (_m *Client) EstimateGas(ctx context.Context, msg ethereum.CallMsg) (uint64, error)
- func (_m *Client) FilterLogs(ctx context.Context, q ethereum.FilterQuery) ([]types.Log, error)
- func (_m *Client) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
- func (_m *Client) Health() bool
- 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) (chan *types.Header, 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) TransactionByHash(ctx context.Context, hash common.Hash) (*types.Transaction, bool, error)
- func (_m *Client) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
- func (_m *Client) TxPoolContentFrom(ctx context.Context, address common.Address) (map[string]map[uint64]*types.Transaction, error)
- func (_m *Client) TxPoolInspect(ctx context.Context) (map[string]map[common.Address]map[uint64]string, error)
- type ConnectionPool
- func (_m *ConnectionPool) Close() error
- func (_m *ConnectionPool) Dial(_a0 string) error
- func (_m *ConnectionPool) DialContext(_a0 context.Context, _a1 string) error
- func (_m *ConnectionPool) GetHTTP() (eth.Client, bool)
- func (_m *ConnectionPool) GetWS() (eth.Client, bool)
- func (_m *ConnectionPool) RemoveChainClient(_a0 string) 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 NewClient ¶
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 ¶
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) BlockByNumber ¶
BlockByNumber provides a mock function with given fields: ctx, number
func (*Client) BlockNumber ¶
BlockNumber provides a mock function with given fields: ctx
func (*Client) BlockReceipts ¶
func (_m *Client) BlockReceipts(ctx context.Context, blockNrOrHash rpc.BlockNumberOrHash) ([]*types.Receipt, error)
BlockReceipts provides a mock function with given fields: ctx, blockNrOrHash
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) DialContext ¶
DialContext provides a mock function with given fields: ctx, rawurl
func (*Client) EstimateGas ¶
EstimateGas provides a mock function with given fields: ctx, msg
func (*Client) FilterLogs ¶
FilterLogs provides a mock function with given fields: ctx, q
func (*Client) HeaderByNumber ¶
HeaderByNumber provides a mock function with given fields: ctx, number
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) (chan *types.Header, ethereum.Subscription, error)
SubscribeNewHead provides a mock function with given fields: ctx
func (*Client) SuggestGasPrice ¶
SuggestGasPrice provides a mock function with given fields: ctx
func (*Client) SuggestGasTipCap ¶
SuggestGasTipCap provides a mock function with given fields: ctx
func (*Client) TransactionByHash ¶
func (_m *Client) TransactionByHash(ctx context.Context, hash common.Hash) (*types.Transaction, bool, error)
TransactionByHash provides a mock function with given fields: ctx, hash
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 ConnectionPool ¶
ConnectionPool is an autogenerated mock type for the ConnectionPool type
func NewConnectionPool ¶
func NewConnectionPool(t interface { mock.TestingT Cleanup(func()) }) *ConnectionPool
NewConnectionPool creates a new instance of ConnectionPool. 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 (*ConnectionPool) Close ¶
func (_m *ConnectionPool) Close() error
Close provides a mock function with given fields:
func (*ConnectionPool) Dial ¶
func (_m *ConnectionPool) Dial(_a0 string) error
Dial provides a mock function with given fields: _a0
func (*ConnectionPool) DialContext ¶
func (_m *ConnectionPool) DialContext(_a0 context.Context, _a1 string) error
DialContext provides a mock function with given fields: _a0, _a1
func (*ConnectionPool) GetHTTP ¶
func (_m *ConnectionPool) GetHTTP() (eth.Client, bool)
GetHTTP provides a mock function with given fields:
func (*ConnectionPool) GetWS ¶
func (_m *ConnectionPool) GetWS() (eth.Client, bool)
GetWS provides a mock function with given fields:
func (*ConnectionPool) RemoveChainClient ¶
func (_m *ConnectionPool) RemoveChainClient(_a0 string) error
RemoveChainClient provides a mock function with given fields: _a0