Documentation ¶
Overview ¶
Code generated by mockery v1.0.0
Index ¶
- type Manager
- func (_m *Manager) FindBlockByNumber(ctx context.Context, number int64) (*model.Header, error)
- func (_m *Manager) FindERC20(ctx context.Context, address common.Address) (*model.ERC20, error)
- func (_m *Manager) FindLatestBlock(ctx context.Context) (*model.Header, error)
- func (_m *Manager) FindTd(ctx context.Context, hash []byte) (*model.TotalDifficulty, error)
- func (_m *Manager) Init(ctx context.Context) error
- func (_m *Manager) InsertERC20(ctx context.Context, code *model.ERC20) error
- func (_m *Manager) InsertTd(ctx context.Context, data *model.TotalDifficulty) error
- func (_m *Manager) UpdateBlocks(ctx context.Context, balancer client.Balancer, blocks []*types.Block, ...) 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) FindBlockByNumber ¶ added in v0.4.3
FindBlockByNumber provides a mock function with given fields: ctx, number
func (*Manager) FindLatestBlock ¶ added in v0.4.3
FindLatestBlock provides a mock function with given fields: ctx
func (*Manager) FindTd ¶ added in v0.4.3
FindTd provides a mock function with given fields: ctx, hash
func (*Manager) InsertERC20 ¶
InsertERC20 provides a mock function with given fields: ctx, code
func (*Manager) UpdateBlocks ¶
func (_m *Manager) UpdateBlocks(ctx context.Context, balancer client.Balancer, blocks []*types.Block, receipts [][]*types.Receipt, events [][]*types.TransferLog, reorgEvent *model.Reorg) error
UpdateBlocks provides a mock function with given fields: ctx, balancer, blocks, receipts, events, reorgEvent
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