import { CoinType } from "./slip44"; export type CryptoCurrencyId = string; export type LedgerExplorerId = "btc" | "btc_testnet" | "bch" | "btg" | "club" | "dash" | "dcr" | "dgb" | "doge" | "hsr" | "kmd" | "ltc" | "posw" | "qtum" | "strat" | "zec" | "zen" | "avax" | "eth" | "eth_sepolia" | "eth_hoodi" | "etc" | "matic" | "matic_amoy" | "bnb"; /** * */ 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; parentCurrency: CryptoCurrency; 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[]; terminated?: { link: string; }; deviceTicker?: string; explorerId?: LedgerExplorerId; tokenTypes?: string[]; }; /** * */ export type Currency = FiatCurrency | CryptoCurrency | TokenCurrency; export type CryptoOrTokenCurrency = CryptoCurrency | TokenCurrency; export { CoinType }; //# sourceMappingURL=index.d.ts.map