Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CalculatedVolume ¶
type MissingPool ¶
type Repository ¶
type Repository interface { // IBCDenom will return a denom mapped from IBC denom IBCDenom(ibcDenom string) (IBCTypes.DenomTrace, bool) // IBCDenomAll will return all ibc trace denoms IBCDenomAll() []IBCTypes.DenomTrace // TokenPrice will return token price record at a fiven timestamp TokenPrice(timestamp time.Time, denom string) (TokenPrice, bool) // NearestTokenPrice will return: // // - Same as TokenPrice if the denom exists at specified timestamp // - Nearest token price from timestamp < specified timestamp // - Nearest token price from timestamp > specified timestamp NearestTokenPrice(timestamp time.Time, denom string) ([]TokenPrice, bool) // LatestTokenPrice will return latest token price LatestTokenPrice(denom string) (TokenPrice, bool) // LatestPool will return latest pool LatestPool(id uint64) (Pool, bool) // PoolsRange will return a list of available pools from minimum to maximum heights PoolsRange(minHeight, maxHeight, poolId uint64) ([]Pool, error) // TokenPriceRange will return stored token prices between and including min/max timestamps TokenPricesRange(min, max time.Time, denom string) ([]TokenPrice, error) SaveIBCDenom(IBCTypes.DenomTrace) error SaveTokenPrice(TokenPrice) error SavePool(Pool) error // PruneTokenPrices will remove all token prices prior timestamp. PruneTokenPrices(timestamp time.Time) (int, error) // PrunePools will remove all pools prior block height. PrunePools(height uint64) (int, error) }
Click to show internal directories.
Click to hide internal directories.