Documentation ¶
Overview ¶
Code generated by mockery v1.0.0
Code generated by mockery v1.0.0
Index ¶
- type Balancer
- type EthClient
- func (_m *EthClient) BalanceAt(ctx context.Context, account common.Address, blockNumber *big.Int) (*big.Int, error)
- func (_m *EthClient) BalanceOf(_a0 context.Context, _a1 *big.Int, ...) (map[common.Address]map[common.Address]*big.Int, error)
- func (_m *EthClient) BatchBalanceAt(ctx context.Context, accounts []common.Address, blockNumber *big.Int) ([]*big.Int, error)
- func (_m *EthClient) BatchCallContract(ctx context.Context, msgs []*ethereum.CallMsg, blockNumber *big.Int) ([][]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) CallContract(ctx context.Context, msg ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
- func (_m *EthClient) Close()
- func (_m *EthClient) CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error)
- func (_m *EthClient) DumpBlock(ctx context.Context, blockNr int64) (*state.Dump, error)
- func (_m *EthClient) GetERC20(ctx context.Context, addr common.Address, num int64) (*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) ModifiedAccountStatesByNumber(ctx context.Context, num uint64) (*state.DirtyDump, error)
- func (_m *EthClient) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error)
- func (_m *EthClient) TransactionByHash(ctx context.Context, hash common.Hash) (*types.Transaction, bool, error)
- func (_m *EthClient) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
- func (_m *EthClient) TransactionReceipts(ctx context.Context, txs types.Transactions) ([]*types.Receipt, error)
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) BalanceAt ¶
func (_m *EthClient) 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 (*EthClient) BalanceOf ¶ added in v0.2.0
func (_m *EthClient) BalanceOf(_a0 context.Context, _a1 *big.Int, _a2 map[common.Address]map[common.Address]struct{}) (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, blockNumber *big.Int) ([]*big.Int, error)
BatchBalanceAt provides a mock function with given fields: ctx, accounts, blockNumber
func (*EthClient) BatchCallContract ¶ added in v0.2.0
func (_m *EthClient) BatchCallContract(ctx context.Context, msgs []*ethereum.CallMsg, blockNumber *big.Int) ([][]byte, error)
BatchCallContract provides a mock function with given fields: ctx, msgs, blockNumber
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) CallContract ¶
func (_m *EthClient) CallContract(ctx context.Context, msg ethereum.CallMsg, blockNumber *big.Int) ([]byte, error)
CallContract provides a mock function with given fields: ctx, msg, blockNumber
func (*EthClient) Close ¶
func (_m *EthClient) Close()
Close provides a mock function with given fields:
func (*EthClient) CodeAt ¶
func (_m *EthClient) CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error)
CodeAt provides a mock function with given fields: ctx, account, blockNumber
func (*EthClient) GetERC20 ¶
func (_m *EthClient) GetERC20(ctx context.Context, addr common.Address, num int64) (*model.ERC20, error)
GetERC20 provides a mock function with given fields: ctx, addr, num
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) ModifiedAccountStatesByNumber ¶
func (_m *EthClient) ModifiedAccountStatesByNumber(ctx context.Context, num uint64) (*state.DirtyDump, error)
ModifiedAccountStatesByNumber provides a mock function with given fields: ctx, num
func (*EthClient) SubscribeNewHead ¶
func (_m *EthClient) SubscribeNewHead(ctx context.Context, ch chan<- *types.Header) (ethereum.Subscription, error)
SubscribeNewHead provides a mock function with given fields: ctx, ch
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
func (*EthClient) TransactionReceipt ¶
func (_m *EthClient) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error)
TransactionReceipt provides a mock function with given fields: ctx, txHash
func (*EthClient) TransactionReceipts ¶
func (_m *EthClient) TransactionReceipts(ctx context.Context, txs types.Transactions) ([]*types.Receipt, error)
TransactionReceipts provides a mock function with given fields: ctx, txs