viewer

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OrderViewer

type OrderViewer interface {
	GetOrderBook(protocol, tokenS, tokenB common.Address, length int) ([]types.OrderState, error)
	GetOrders(query map[string]interface{}, statusList []types.OrderStatus, pageIndex, pageSize int) (dao.PageResult, error)
	GetLatestOrders(query map[string]interface{}, length int) ([]types.OrderState, error)
	GetOrderByHash(hash common.Hash) (*types.OrderState, error)
	FillsPageQuery(query map[string]interface{}, pageIndex, pageSize int) (dao.PageResult, error)
	GetLatestFills(query map[string]interface{}, limit int) ([]dao.FillEvent, error)
	FindFillsByRingHash(ringHash common.Hash) (result []dao.FillEvent, err error)
	RingMinedPageQuery(query map[string]interface{}, pageIndex, pageSize int) (dao.PageResult, error)
	IsOrderCutoff(protocol, owner, token1, token2 common.Address, validsince *big.Int) bool
	GetFrozenAmount(owner common.Address, token common.Address, statusSet []types.OrderStatus, delegateAddress common.Address) (*big.Int, error)
	GetFrozenLRCFee(owner common.Address, statusSet []types.OrderStatus) (*big.Int, error)
}

type OrderViewerImpl

type OrderViewerImpl struct {
	// contains filtered or unexported fields
}

func NewOrderViewer

func NewOrderViewer(options *OrderManagerOptions,
	rds *dao.RdsService,
	market marketcap.MarketCapProvider) *OrderViewerImpl

func (*OrderViewerImpl) FillsPageQuery

func (om *OrderViewerImpl) FillsPageQuery(query map[string]interface{}, pageIndex, pageSize int) (result dao.PageResult, err error)

func (*OrderViewerImpl) FindFillsByRingHash

func (om *OrderViewerImpl) FindFillsByRingHash(ringHash common.Hash) (result []dao.FillEvent, err error)

func (*OrderViewerImpl) GetFrozenAmount

func (om *OrderViewerImpl) GetFrozenAmount(owner common.Address, token common.Address, statusSet []types.OrderStatus, delegateAddress common.Address) (*big.Int, error)

func (*OrderViewerImpl) GetFrozenLRCFee

func (om *OrderViewerImpl) GetFrozenLRCFee(owner common.Address, statusSet []types.OrderStatus) (*big.Int, error)

func (*OrderViewerImpl) GetLatestFills

func (om *OrderViewerImpl) GetLatestFills(query map[string]interface{}, limit int) (result []dao.FillEvent, err error)

func (*OrderViewerImpl) GetLatestOrders

func (om *OrderViewerImpl) GetLatestOrders(query map[string]interface{}, length int) (rst []types.OrderState, err error)

func (*OrderViewerImpl) GetOrderBook

func (om *OrderViewerImpl) GetOrderBook(protocol, tokenS, tokenB common.Address, length int) ([]types.OrderState, error)

func (*OrderViewerImpl) GetOrderByHash

func (om *OrderViewerImpl) GetOrderByHash(hash common.Hash) (orderState *types.OrderState, err error)

func (*OrderViewerImpl) GetOrders

func (om *OrderViewerImpl) GetOrders(query map[string]interface{}, statusList []types.OrderStatus, pageIndex, pageSize int) (dao.PageResult, error)

func (*OrderViewerImpl) IsOrderCutoff

func (om *OrderViewerImpl) IsOrderCutoff(protocol, owner, token1, token2 common.Address, validsince *big.Int) bool

func (*OrderViewerImpl) RingMinedPageQuery

func (om *OrderViewerImpl) RingMinedPageQuery(query map[string]interface{}, pageIndex, pageSize int) (result dao.PageResult, err error)

Jump to

Keyboard shortcuts

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