import { Token } from './token'; import { PriceTokenStruct } from './price-token-struct'; import BigNumber from 'bignumber.js'; import { BlockchainName } from '../blockchains/blockchain-name'; export declare class PriceToken extends Token { private _price; get price(): BigNumber; set price(price: BigNumber); get asStructWithPrice(): PriceTokenStruct; constructor(tokenStruct: PriceTokenStruct); clone(tokenStruct?: Partial): PriceToken; /** * Fetches current token price and saves it into token. * @param coingeckoApi {path to type @type rubic-app/src/app/core/services/sdk/sdk-legacy/coingecko/coingecko.service.ts} * coingeckoApi should implement * @interface { * getTokenPrice({address: string; blockchain: BlockchainName}): Promise * } * returns BigNumber usd price of token in human-readable format ex. 1.09 */ getAndUpdateTokenPrice(coingeckoApi: any): Promise; /** * @param coingeckoApi {path to type @type rubic-app/src/app/core/services/sdk/sdk-legacy/coingecko/coingecko.service.ts} */ private updateTokenPrice; }