Documentation ¶
Overview ¶
Code generated by mockery v1.0.0
Code generated by mockery v1.0.0
Index ¶
- type Manager
- func (_m *Manager) FindERC20(address common.Address) (*model.ERC20, error)
- func (_m *Manager) GetHeaderByNumber(number int64) (*model.Header, error)
- func (_m *Manager) GetTd(hash []byte) (*model.TotalDifficulty, error)
- func (_m *Manager) Init(balancer client.Balancer) error
- func (_m *Manager) InsertERC20(code *model.ERC20) error
- func (_m *Manager) InsertTd(block *types.Block, td *big.Int) error
- func (_m *Manager) LatestHeader() (*model.Header, error)
- func (_m *Manager) UpdateBlocks(ctx context.Context, blocks []*types.Block, receipts [][]*types.Receipt, ...) error
- type ServiceManager
- func (_m *ServiceManager) AddSubscriptions(group int64, addrs []common.Address) ([]common.Address, error)
- func (_m *ServiceManager) FindBlockByHash(hash []byte) (*model.Header, error)
- func (_m *ServiceManager) FindBlockByNumber(blockNumber int64) (*model.Header, error)
- func (_m *ServiceManager) FindERC20(address common.Address) (*model.ERC20, error)
- func (_m *ServiceManager) FindLatestBlock() (*model.Header, error)
- func (_m *ServiceManager) FindTotalBalance(blockNumber int64, token common.Address, group int64) (*model.TotalBalance, error)
- func (_m *ServiceManager) FindTransaction(hash []byte) (*model.Transaction, error)
- func (_m *ServiceManager) FindTransactionsByBlockHash(blockHash []byte) ([]*model.Transaction, error)
- func (_m *ServiceManager) GetBalance(ctx context.Context, address common.Address, blockNr int64) (*big.Int, *big.Int, error)
- func (_m *ServiceManager) GetERC20Balance(ctx context.Context, contractAddress common.Address, address common.Address, ...) (*decimal.Decimal, *big.Int, error)
- func (_m *ServiceManager) GetSubscriptions(group int64, page uint64, limit uint64) ([]*model.Subscription, uint64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
Manager is an autogenerated mock type for the Manager type
func (*Manager) GetHeaderByNumber ¶
GetHeaderByNumber provides a mock function with given fields: number
func (*Manager) GetTd ¶
func (_m *Manager) GetTd(hash []byte) (*model.TotalDifficulty, error)
GetTd provides a mock function with given fields: hash
func (*Manager) InsertERC20 ¶
InsertERC20 provides a mock function with given fields: code
func (*Manager) LatestHeader ¶
LatestHeader provides a mock function with given fields:
type ServiceManager ¶
ServiceManager is an autogenerated mock type for the ServiceManager type
func (*ServiceManager) AddSubscriptions ¶ added in v0.2.0
func (_m *ServiceManager) AddSubscriptions(group int64, addrs []common.Address) ([]common.Address, error)
AddSubscriptions provides a mock function with given fields: group, addrs
func (*ServiceManager) FindBlockByHash ¶
func (_m *ServiceManager) FindBlockByHash(hash []byte) (*model.Header, error)
FindBlockByHash provides a mock function with given fields: hash
func (*ServiceManager) FindBlockByNumber ¶
func (_m *ServiceManager) FindBlockByNumber(blockNumber int64) (*model.Header, error)
FindBlockByNumber provides a mock function with given fields: blockNumber
func (*ServiceManager) FindERC20 ¶ added in v0.2.0
FindERC20 provides a mock function with given fields: address
func (*ServiceManager) FindLatestBlock ¶
func (_m *ServiceManager) FindLatestBlock() (*model.Header, error)
FindLatestBlock provides a mock function with given fields:
func (*ServiceManager) FindTotalBalance ¶ added in v0.2.0
func (_m *ServiceManager) FindTotalBalance(blockNumber int64, token common.Address, group int64) (*model.TotalBalance, error)
FindTotalBalance provides a mock function with given fields: blockNumber, token, group
func (*ServiceManager) FindTransaction ¶
func (_m *ServiceManager) FindTransaction(hash []byte) (*model.Transaction, error)
FindTransaction provides a mock function with given fields: hash
func (*ServiceManager) FindTransactionsByBlockHash ¶
func (_m *ServiceManager) FindTransactionsByBlockHash(blockHash []byte) ([]*model.Transaction, error)
FindTransactionsByBlockHash provides a mock function with given fields: blockHash
func (*ServiceManager) GetBalance ¶
func (_m *ServiceManager) GetBalance(ctx context.Context, address common.Address, blockNr int64) (*big.Int, *big.Int, error)
GetBalance provides a mock function with given fields: ctx, address, blockNr
func (*ServiceManager) GetERC20Balance ¶
func (_m *ServiceManager) GetERC20Balance(ctx context.Context, contractAddress common.Address, address common.Address, blockNr int64) (*decimal.Decimal, *big.Int, error)
GetERC20Balance provides a mock function with given fields: ctx, contractAddress, address, blockNr
func (*ServiceManager) GetSubscriptions ¶ added in v0.2.0
func (_m *ServiceManager) GetSubscriptions(group int64, page uint64, limit uint64) ([]*model.Subscription, uint64, error)
GetSubscriptions provides a mock function with given fields: group, page, limit