Documentation
¶
Index ¶
- type OrderViewer
- type OrderViewerImpl
- func (om *OrderViewerImpl) FillsPageQuery(query map[string]interface{}, pageIndex, pageSize int) (result dao.PageResult, err error)
- func (om *OrderViewerImpl) FindFillsByRingHash(ringHash common.Hash) (result []dao.FillEvent, err error)
- func (om *OrderViewerImpl) GetFrozenAmount(owner common.Address, token common.Address, statusSet []types.OrderStatus, ...) (*big.Int, error)
- func (om *OrderViewerImpl) GetFrozenLRCFee(owner common.Address, statusSet []types.OrderStatus) (*big.Int, error)
- func (om *OrderViewerImpl) GetLatestFills(query map[string]interface{}, limit int) (result []dao.FillEvent, err error)
- func (om *OrderViewerImpl) GetLatestOrders(query map[string]interface{}, length int) (rst []types.OrderState, err error)
- func (om *OrderViewerImpl) GetOrderBook(protocol, tokenS, tokenB common.Address, length int) ([]types.OrderState, error)
- func (om *OrderViewerImpl) GetOrderByHash(hash common.Hash) (orderState *types.OrderState, err error)
- func (om *OrderViewerImpl) GetOrders(query map[string]interface{}, statusList []types.OrderStatus, ...) (dao.PageResult, error)
- func (om *OrderViewerImpl) IsOrderCutoff(protocol, owner, token1, token2 common.Address, validsince *big.Int) bool
- func (om *OrderViewerImpl) RingMinedPageQuery(query map[string]interface{}, pageIndex, pageSize int) (result dao.PageResult, err error)
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 (*OrderViewerImpl) GetFrozenAmount ¶
func (*OrderViewerImpl) GetFrozenLRCFee ¶
func (om *OrderViewerImpl) GetFrozenLRCFee(owner common.Address, statusSet []types.OrderStatus) (*big.Int, error)
func (*OrderViewerImpl) GetLatestFills ¶
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 (*OrderViewerImpl) RingMinedPageQuery ¶
func (om *OrderViewerImpl) RingMinedPageQuery(query map[string]interface{}, pageIndex, pageSize int) (result dao.PageResult, err error)
Click to show internal directories.
Click to hide internal directories.