Documentation ¶
Index ¶
- type Balancer
- type EthClient
- func (_m *EthClient) BalanceOf(_a0 context.Context, _a1 common.Hash, ...) error
- func (_m *EthClient) BatchBalanceAt(ctx context.Context, accounts []common.Address, blockHash common.Hash) ([]*big.Int, error)
- func (_m *EthClient) BatchCallContract(ctx context.Context, msgs []*ethereum.CallMsg, blockHash common.Hash) ([][]byte, error)
- func (_m *EthClient) BlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error)
- func (_m *EthClient) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error)
- func (_m *EthClient) Close()
- func (_m *EthClient) GetBlockReceipts(ctx context.Context, hash common.Hash) (types.Receipts, error)
- func (_m *EthClient) GetERC20(ctx context.Context, addr common.Address) (*model.ERC20, error)
- func (_m *EthClient) GetTotalDifficulty(ctx context.Context, hash common.Hash) (*big.Int, error)
- func (_m *EthClient) GetTransferLogs(ctx context.Context, hash common.Hash) ([]*types.TransferLog, error)
- func (_m *EthClient) HeaderByNumber(ctx context.Context, number *big.Int) (*types.Header, error)
- func (_m *EthClient) TransactionByHash(ctx context.Context, hash common.Hash) (*types.Transaction, bool, error)
- func (_m *EthClient) UncleByBlockHashAndPosition(ctx context.Context, hash common.Hash, position uint) (*types.Header, error)
- func (_m *EthClient) UnclesByBlockHash(ctx context.Context, blockHash common.Hash) ([]*types.Header, error)
- type Subscriber
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EthClient ¶
EthClient is an autogenerated mock type for the EthClient type
func (*EthClient) BalanceOf ¶ added in v0.2.0
func (_m *EthClient) BalanceOf(_a0 context.Context, _a1 common.Hash, _a2 map[common.Address]map[common.Address]*big.Int) error
BalanceOf provides a mock function with given fields: _a0, _a1, _a2
func (*EthClient) BatchBalanceAt ¶ added in v0.2.0
func (_m *EthClient) BatchBalanceAt(ctx context.Context, accounts []common.Address, blockHash common.Hash) ([]*big.Int, error)
BatchBalanceAt provides a mock function with given fields: ctx, accounts, blockHash
func (*EthClient) BatchCallContract ¶ added in v0.2.0
func (_m *EthClient) BatchCallContract(ctx context.Context, msgs []*ethereum.CallMsg, blockHash common.Hash) ([][]byte, error)
BatchCallContract provides a mock function with given fields: ctx, msgs, blockHash
func (*EthClient) BlockByHash ¶
BlockByHash provides a mock function with given fields: ctx, hash
func (*EthClient) BlockByNumber ¶
BlockByNumber provides a mock function with given fields: ctx, number
func (*EthClient) Close ¶
func (_m *EthClient) Close()
Close provides a mock function with given fields:
func (*EthClient) GetBlockReceipts ¶ added in v0.2.3
func (_m *EthClient) GetBlockReceipts(ctx context.Context, hash common.Hash) (types.Receipts, error)
GetBlockReceipts provides a mock function with given fields: ctx, hash
func (*EthClient) GetTotalDifficulty ¶
GetTotalDifficulty provides a mock function with given fields: ctx, hash
func (*EthClient) GetTransferLogs ¶
func (_m *EthClient) GetTransferLogs(ctx context.Context, hash common.Hash) ([]*types.TransferLog, error)
GetTransferLogs provides a mock function with given fields: ctx, hash
func (*EthClient) HeaderByNumber ¶ added in v0.11.0
HeaderByNumber provides a mock function with given fields: ctx, number
func (*EthClient) TransactionByHash ¶
func (_m *EthClient) TransactionByHash(ctx context.Context, hash common.Hash) (*types.Transaction, bool, error)
TransactionByHash provides a mock function with given fields: ctx, hash
type Subscriber ¶ added in v0.10.2
Subscriber is an autogenerated mock type for the Subscriber type
func (*Subscriber) RPCClients ¶ added in v0.10.2
func (_m *Subscriber) RPCClients() []*rpc.Client
RPCClients provides a mock function with given fields:
func (*Subscriber) SubscribeNewHead ¶ added in v0.10.2
func (_m *Subscriber) SubscribeNewHead(ctx context.Context, ch chan<- *multiclient.Header) (ethereum.Subscription, error)
SubscribeNewHead provides a mock function with given fields: ctx, ch