mocks

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2018 License: LGPL-3.0 Imports: 8 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() error

Init provides a mock function with given fields:

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(blocks []*types.Block, receipts [][]*types.Receipt, dumps []*state.DirtyDump, events [][]*types.TransferLog, mode int) error

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

type ServiceManager

type ServiceManager struct {
	mock.Mock
}

ServiceManager is an autogenerated mock type for the ServiceManager type

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

func (_m *ServiceManager) FindLatestBlock() (*model.Header, error)

FindLatestBlock provides a mock function with given fields:

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

Jump to

Keyboard shortcuts

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