mocks

package
v0.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2018 License: LGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	mock.Mock
}

Manager is an autogenerated mock type for the Manager type

func (*Manager) FindERC20

func (_m *Manager) FindERC20(address common.Address) (*model.ERC20, error)

FindERC20 provides a mock function with given fields: address

func (*Manager) GetHeaderByNumber

func (_m *Manager) GetHeaderByNumber(number int64) (*model.Header, error)

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) Init

func (_m *Manager) Init(balancer client.Balancer) error

Init provides a mock function with given fields: balancer

func (*Manager) InsertERC20

func (_m *Manager) InsertERC20(code *model.ERC20) error

InsertERC20 provides a mock function with given fields: code

func (*Manager) InsertTd

func (_m *Manager) InsertTd(block *types.Block, td *big.Int) error

InsertTd provides a mock function with given fields: block, td

func (*Manager) LatestHeader

func (_m *Manager) LatestHeader() (*model.Header, error)

LatestHeader provides a mock function with given fields:

func (*Manager) UpdateBlocks

func (_m *Manager) UpdateBlocks(ctx context.Context, blocks []*types.Block, receipts [][]*types.Receipt, dumps []*state.DirtyDump, events [][]*types.TransferLog, mode int) error

UpdateBlocks provides a mock function with given fields: ctx, blocks, receipts, dumps, events, mode

type ServiceManager

type ServiceManager struct {
	mock.Mock
}

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

func (_m *ServiceManager) FindERC20(address common.Address) (*model.ERC20, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL