Documentation ¶
Index ¶
- func CleanUpKlines(stop chan struct{}, o *orm.ORM, conf *config.Config)
- func NewQuerier(keeper Keeper) sdk.Querier
- type Keeper
- func (k Keeper) EmitAllWsItems(ctx sdk.Context)
- func (k Keeper) Flush()
- func (k Keeper) GetCandles(product string, granularity, size int) (r [][]string, err error)
- func (k Keeper) GetCandlesWithTime(product string, granularity, size int, ts int64) (r [][]string, err error)
- func (k Keeper) GetDeals(ctx sdk.Context, sender, product, side string, start, end int64, ...) ([]types.Deal, int)
- func (k Keeper) GetDexFees(ctx sdk.Context, dexHandlingAddr, product string, offset, limit int) ([]types.DexFees, int)
- func (k Keeper) GetFeeDetails(ctx sdk.Context, addr string, offset, limit int) ([]token.FeeDetail, int)
- func (k Keeper) GetOrderList(ctx sdk.Context, addr, product, side string, open bool, offset, limit int, ...) ([]types.Order, int)
- func (k Keeper) GetTickers(products []string, count int) []types.Ticker
- func (k Keeper) GetTransactionList(ctx sdk.Context, addr string, txType, startTime, endTime int64, ...) ([]types.Transaction, int)
- func (k Keeper) Stop()
- func (k Keeper) SyncTx(ctx sdk.Context, tx *auth.StdTx, txHash string, timestamp int64)
- func (k Keeper) UpdateTickersBuffer(startTS, endTS int64, productList []string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewQuerier ¶
NewQuerier is the module level router for state queries
Types ¶
type Keeper ¶
type Keeper struct { OrderKeeper types.OrderKeeper // The reference to the OrderKeeper to get deals TokenKeeper types.TokenKeeper // The reference to the TokenKeeper to get fee details Orm *orm.ORM Config *config.Config Logger log.Logger Cache *cache.Cache // Memory cache // contains filtered or unexported fields }
Keeper maintains the link to data storage and exposes getter/setter methods for the various parts of the state machine
func NewKeeper ¶
func NewKeeper(orderKeeper types.OrderKeeper, tokenKeeper types.TokenKeeper, dexKeeper types.DexKeeper, marketKeeper types.MarketKeeper, cdc *codec.Codec, logger log.Logger, cfg *config.Config) Keeper
NewKeeper creates new instances of the nameservice Keeper
func (Keeper) EmitAllWsItems ¶
Emit all of the WSItems as tendermint events
func (Keeper) GetCandles ¶
nolint
func (Keeper) GetCandlesWithTime ¶
func (k Keeper) GetCandlesWithTime(product string, granularity, size int, ts int64) (r [][]string, err error)
nolint
func (Keeper) GetDeals ¶
func (k Keeper) GetDeals(ctx sdk.Context, sender, product, side string, start, end int64, offset, limit int) ([]types.Deal, int)
nolint
func (Keeper) GetDexFees ¶
func (k Keeper) GetDexFees(ctx sdk.Context, dexHandlingAddr, product string, offset, limit int) ([]types.DexFees, int)
nolint
func (Keeper) GetFeeDetails ¶
func (k Keeper) GetFeeDetails(ctx sdk.Context, addr string, offset, limit int) ([]token.FeeDetail, int)
nolint
func (Keeper) GetOrderList ¶
func (k Keeper) GetOrderList(ctx sdk.Context, addr, product, side string, open bool, offset, limit int, startTS, endTS int64, hideNoFill bool) ([]types.Order, int)
nolint
func (Keeper) GetTickers ¶
nolint
func (Keeper) GetTransactionList ¶
func (k Keeper) GetTransactionList(ctx sdk.Context, addr string, txType, startTime, endTime int64, offset, limit int) ([]types.Transaction, int)
nolint
func (Keeper) UpdateTickersBuffer ¶
UpdateTickersBuffer calculate and update the products ticker
Click to show internal directories.
Click to hide internal directories.