Documentation ¶
Index ¶
- type Client
- func (_m *Client) Balance(_a0 context.Context, _a1 *types.AccountIdentifier, ...) (*types.AccountBalanceResponse, error)
- func (_m *Client) BaseFee(ctx context.Context) (*big.Int, error)
- func (_m *Client) Block(_a0 context.Context, _a1 *types.PartialBlockIdentifier) (*types.Block, error)
- func (_m *Client) Call(ctx context.Context, request *types.CallRequest) (*types.CallResponse, error)
- func (_m *Client) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
- func (_m *Client) CodeAt(ctx context.Context, contract common.Address, blockNumber *big.Int) ([]byte, error)
- func (_m *Client) EstimateGas(ctx context.Context, msg ethereum.CallMsg) (uint64, error)
- func (_m *Client) FilterLogs(ctx context.Context, query ethereum.FilterQuery) ([]coretypes.Log, error)
- func (_m *Client) HeaderByNumber(ctx context.Context, number *big.Int) (*coretypes.Header, error)
- func (_m *Client) PendingCodeAt(ctx context.Context, account common.Address) ([]byte, error)
- func (_m *Client) PendingNonceAt(_a0 context.Context, _a1 common.Address) (uint64, error)
- func (_m *Client) SendTransaction(ctx context.Context, tx *coretypes.Transaction) error
- func (_m *Client) Status(_a0 context.Context) (*types.BlockIdentifier, int64, *types.SyncStatus, []*types.Peer, error)
- func (_m *Client) SubscribeFilterLogs(ctx context.Context, query ethereum.FilterQuery, ch chan<- coretypes.Log) (ethereum.Subscription, error)
- func (_m *Client) SuggestGasPrice(ctx context.Context) (*big.Int, error)
- func (_m *Client) SuggestGasTipCap(ctx context.Context) (*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 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) Balance ¶
func (_m *Client) Balance(_a0 context.Context, _a1 *types.AccountIdentifier, _a2 *types.PartialBlockIdentifier, _a3 []*types.Currency) (*types.AccountBalanceResponse, error)
Balance provides a mock function with given fields: _a0, _a1, _a2, _a3
func (*Client) Block ¶
func (_m *Client) Block(_a0 context.Context, _a1 *types.PartialBlockIdentifier) (*types.Block, error)
Block provides a mock function with given fields: _a0, _a1
func (*Client) Call ¶
func (_m *Client) Call(ctx context.Context, request *types.CallRequest) (*types.CallResponse, error)
Call provides a mock function with given fields: ctx, request
func (*Client) CallContract ¶
func (_m *Client) CallContract(ctx context.Context, call ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
CallContract provides a mock function with given fields: ctx, call, blockNumber
func (*Client) CodeAt ¶
func (_m *Client) CodeAt(ctx context.Context, contract common.Address, blockNumber *big.Int) ([]byte, error)
CodeAt provides a mock function with given fields: ctx, contract, blockNumber
func (*Client) EstimateGas ¶
EstimateGas provides a mock function with given fields: ctx, msg
func (*Client) FilterLogs ¶
func (_m *Client) FilterLogs(ctx context.Context, query ethereum.FilterQuery) ([]coretypes.Log, error)
FilterLogs provides a mock function with given fields: ctx, query
func (*Client) HeaderByNumber ¶
HeaderByNumber provides a mock function with given fields: ctx, number
func (*Client) PendingCodeAt ¶
PendingCodeAt provides a mock function with given fields: ctx, account
func (*Client) PendingNonceAt ¶
PendingNonceAt provides a mock function with given fields: _a0, _a1
func (*Client) SendTransaction ¶
SendTransaction provides a mock function with given fields: ctx, tx
func (*Client) Status ¶
func (_m *Client) Status(_a0 context.Context) (*types.BlockIdentifier, int64, *types.SyncStatus, []*types.Peer, error)
Status provides a mock function with given fields: _a0
func (*Client) SubscribeFilterLogs ¶
func (_m *Client) SubscribeFilterLogs(ctx context.Context, query ethereum.FilterQuery, ch chan<- coretypes.Log) (ethereum.Subscription, error)
SubscribeFilterLogs provides a mock function with given fields: ctx, query, ch
func (*Client) SuggestGasPrice ¶
SuggestGasPrice provides a mock function with given fields: ctx