import { CoinType } from "./slip44"; export type CryptoCurrencyId = string; /** * @deprecated Opaque Ledger-explorer endpoint id, kept only for backward compatibility. * Loosened from a fixed union to `string`; the explorer-id concept is being phased out. */ export type LedgerExplorerId = string; /** * */ export type Unit = { name: string; code: string; magnitude: number; showAllDigits?: boolean; prefixCode?: boolean; }; /** * */ type CurrencyCommon = { name: string; ticker: string; units: Unit[]; symbol?: string; /** * tells if countervalue need to be disabled (typically because colliding with other coins) * @deprecated this field will soon be dropped. this is the API that drives this dynamically. */ disableCountervalue?: boolean; delisted?: boolean; keywords?: string[]; }; /** * */ export type TokenCurrency = CurrencyCommon & { type: "TokenCurrency"; id: string; ledgerSignature?: string; contractAddress: string; parentCurrencyId: string; tokenType: string; }; /** * */ export type FiatCurrency = CurrencyCommon & { type: "FiatCurrency"; }; /** * */ export type ExplorerView = { tx?: string; address?: string; token?: string; stakePool?: string; }; export type EthereumLikeInfo = { chainId: number; }; export type BitcoinLikeInfo = { P2PKH: number; P2SH: number; XPUBVersion?: number; }; /** * */ export type CryptoCurrency = CurrencyCommon & { type: "CryptoCurrency"; id: CryptoCurrencyId; forkedFrom?: string; managerAppName: string; coinType: CoinType; scheme: string; color: string; family: string; blockAvgTime?: number; supportsSegwit?: boolean; supportsNativeSegwit?: boolean; isTestnetFor?: string; bitcoinLikeInfo?: BitcoinLikeInfo; ethereumLikeInfo?: EthereumLikeInfo; explorerViews: ExplorerView[]; deviceTicker?: string; /** * Used to connect to the right endpoint url since it is different from currencyId and ticker. * @deprecated Kept only for backward compatibility; the explorer-id concept is being phased out. */ explorerId?: LedgerExplorerId; tokenTypes?: string[]; }; /** * */ export type Currency = FiatCurrency | CryptoCurrency | TokenCurrency; export type CryptoOrTokenCurrency = CryptoCurrency | TokenCurrency; export { CoinType }; //# sourceMappingURL=index.d.ts.map