Documentation ¶
Index ¶
Constants ¶
View Source
const BLOCK_INTERVAL_SEC = 5
View Source
const NA_VALUE = int64(-1)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Price ¶
type SrcRepo ¶
type SrcRepo interface { FirstHeight(priceToken string) (int64, error) CurrHeight() (int64, error) NextHeight(minHeight uint64) (int64, error) Txs(height uint64) ([]schemas.ParsedTx, error) Decimals(asset string) (int64, error) LatestRouteUpdateTimestamp() (float64, error) Route(endToken string) (map[string][][]string, error) Liquidity(height uint64, token string, priceToken string) (string, string, error) UpdateDirectPrice(height uint64, token string, price string, priceToken string, isReverse bool) error UpdateRoutePrice(height uint64, token string, price string, priceToken string, route []string) error }
Click to show internal directories.
Click to hide internal directories.