mocks

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2019 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

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) FindBlockByNumber added in v0.4.3

func (_m *Manager) FindBlockByNumber(ctx context.Context, number int64) (*model.Header, error)

FindBlockByNumber provides a mock function with given fields: ctx, number

func (*Manager) FindERC20

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

FindERC20 provides a mock function with given fields: ctx, address

func (*Manager) FindLatestBlock added in v0.4.3

func (_m *Manager) FindLatestBlock(ctx context.Context) (*model.Header, error)

FindLatestBlock provides a mock function with given fields: ctx

func (*Manager) FindTd added in v0.4.3

func (_m *Manager) FindTd(ctx context.Context, hash []byte) (*model.TotalDifficulty, error)

FindTd provides a mock function with given fields: ctx, hash

func (*Manager) Init

func (_m *Manager) Init(ctx context.Context) error

Init provides a mock function with given fields: ctx

func (*Manager) InsertBlocks added in v0.11.0

func (_m *Manager) InsertBlocks(ctx context.Context, balancer client.Balancer, blocks []*types.Block, receipts [][]*types.Receipt, events [][]*types.TransferLog) error

InsertBlocks provides a mock function with given fields: ctx, balancer, blocks, receipts, events

func (*Manager) InsertERC20

func (_m *Manager) InsertERC20(ctx context.Context, code *model.ERC20) error

InsertERC20 provides a mock function with given fields: ctx, code

func (*Manager) InsertTd

func (_m *Manager) InsertTd(ctx context.Context, data *model.TotalDifficulty) error

InsertTd provides a mock function with given fields: ctx, data

func (*Manager) ReorgBlocks added in v0.11.0

func (_m *Manager) ReorgBlocks(ctx context.Context, reorgEvent *model.Reorg) error

ReorgBlocks provides a mock function with given fields: ctx, reorgEvent

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