Changeset View
Changeset View
Standalone View
Standalone View
modules/ecash-price/src/types.ts
| Show First 20 Lines • Show All 115 Lines • ▼ Show 20 Lines | export class CryptoTicker { | ||||
| /** | /** | ||||
| * Supported cryptocurrency tickers | * Supported cryptocurrency tickers | ||||
| */ | */ | ||||
| static readonly XEC = new CryptoTicker('xec'); | static readonly XEC = new CryptoTicker('xec'); | ||||
| static readonly BTC = new CryptoTicker('btc'); | static readonly BTC = new CryptoTicker('btc'); | ||||
| static readonly ETH = new CryptoTicker('eth'); | static readonly ETH = new CryptoTicker('eth'); | ||||
| static readonly XMR = new CryptoTicker('xmr'); | static readonly XMR = new CryptoTicker('xmr'); | ||||
| static readonly SOL = new CryptoTicker('sol'); | static readonly SOL = new CryptoTicker('sol'); | ||||
| static readonly USDT = new CryptoTicker('usdt'); | |||||
| } | } | ||||
| /** | /** | ||||
| * Quote currency type - can be either a fiat currency or a cryptocurrency | * Quote currency type - can be either a fiat currency or a cryptocurrency | ||||
| */ | */ | ||||
| export type QuoteCurrency = Fiat | CryptoTicker; | export type QuoteCurrency = Fiat | CryptoTicker; | ||||
| /** | /** | ||||
| ▲ Show 20 Lines • Show All 110 Lines • Show Last 20 Lines | |||||