@ledgerhq/types-live
Advanced tools
Comparing version 6.32.1 to 6.33.0-nightly.1
# @ledgerhq/types-live | ||
## 6.33.0-nightly.1 | ||
### Minor Changes | ||
- [#3153](https://github.com/LedgerHQ/ledger-live/pull/3153) [`cec978f36e`](https://github.com/LedgerHQ/ledger-live/commit/cec978f36e5841ce3f8d117530e13902590596c3) Thanks [@lambertkevin](https://github.com/lambertkevin)! - Adding support for new EVM chains, including Layer 2s like Optimism & Arbitrum | ||
### Patch Changes | ||
- [#3332](https://github.com/LedgerHQ/ledger-live/pull/3332) [`835bfbaa45`](https://github.com/LedgerHQ/ledger-live/commit/835bfbaa45f2bee5416b40a34ae0bf150d780e2c) Thanks [@hzheng-ledger](https://github.com/hzheng-ledger)! - fix merge conflict in readme file | ||
## 6.32.2-nightly.0 | ||
### Patch Changes | ||
- [#3244](https://github.com/LedgerHQ/ledger-live/pull/3244) [`5e6f053a27`](https://github.com/LedgerHQ/ledger-live/commit/5e6f053a2744a5ff5f5364609cc1287c3dd8e69e) Thanks [@mcayuelas-ledger](https://github.com/mcayuelas-ledger)! - Add new FF | ||
## 6.32.1 | ||
@@ -4,0 +20,0 @@ |
@@ -7,5 +7,5 @@ import type { BigNumber } from "bignumber.js"; | ||
import { ProtoNFT, ProtoNFTRaw } from "./nft"; | ||
export declare type GranularityId = "HOUR" | "DAY" | "WEEK"; | ||
export declare type BalanceHistoryCache = Record<GranularityId, BalanceHistoryDataCache>; | ||
export declare type BalanceHistoryDataCache = { | ||
export type GranularityId = "HOUR" | "DAY" | "WEEK"; | ||
export type BalanceHistoryCache = Record<GranularityId, BalanceHistoryDataCache>; | ||
export type BalanceHistoryDataCache = { | ||
latestDate: number | null | undefined; | ||
@@ -15,3 +15,3 @@ balances: number[]; | ||
/** A token belongs to an Account and share the parent account address */ | ||
export declare type TokenAccount = { | ||
export type TokenAccount = { | ||
type: "TokenAccount"; | ||
@@ -36,3 +36,3 @@ id: string; | ||
/** A child account belongs to an Account but has its own address */ | ||
export declare type ChildAccount = { | ||
export type ChildAccount = { | ||
type: "ChildAccount"; | ||
@@ -54,3 +54,3 @@ id: string; | ||
/** */ | ||
export declare type Address = { | ||
export type Address = { | ||
address: string; | ||
@@ -72,3 +72,3 @@ derivationPath: string; | ||
*/ | ||
export declare type Account = { | ||
export type Account = { | ||
type: "Account"; | ||
@@ -105,11 +105,11 @@ id: string; | ||
/** super type that is either a token or a child account */ | ||
export declare type SubAccount = TokenAccount | ChildAccount; | ||
export type SubAccount = TokenAccount | ChildAccount; | ||
/** One of the Account type */ | ||
export declare type AccountLike = Account | SubAccount; | ||
export type AccountLike = Account | SubAccount; | ||
/** | ||
* An array of AccountLikes | ||
*/ | ||
export declare type AccountLikeArray = AccountLike[] | TokenAccount[] | ChildAccount[] | Account[]; | ||
export type AccountLikeArray = AccountLike[] | TokenAccount[] | ChildAccount[] | Account[]; | ||
/** */ | ||
export declare type TokenAccountRaw = { | ||
export type TokenAccountRaw = { | ||
type: "TokenAccountRaw"; | ||
@@ -134,3 +134,3 @@ id: string; | ||
/** */ | ||
export declare type ChildAccountRaw = { | ||
export type ChildAccountRaw = { | ||
type: "ChildAccountRaw"; | ||
@@ -152,3 +152,3 @@ id: string; | ||
/** */ | ||
export declare type AccountRaw = { | ||
export type AccountRaw = { | ||
id: string; | ||
@@ -184,7 +184,7 @@ seedIdentifier: string; | ||
/** */ | ||
export declare type SubAccountRaw = TokenAccountRaw | ChildAccountRaw; | ||
export type SubAccountRaw = TokenAccountRaw | ChildAccountRaw; | ||
/** */ | ||
export declare type AccountRawLike = AccountRaw | SubAccountRaw; | ||
export type AccountRawLike = AccountRaw | SubAccountRaw; | ||
/** */ | ||
export declare type AccountIdParams = { | ||
export type AccountIdParams = { | ||
type: string; | ||
@@ -191,0 +191,0 @@ version: string; |
@@ -10,3 +10,3 @@ import { BigNumber } from "bignumber.js"; | ||
import { CryptoCurrencyIds, NFTCollectionMetadata, NFTCollectionMetadataResponse, NFTMetadata, NFTMetadataResponse } from "./nft"; | ||
export declare type ScanAccountEvent = { | ||
export type ScanAccountEvent = { | ||
type: "discovered"; | ||
@@ -18,3 +18,3 @@ account: Account; | ||
*/ | ||
export declare type ScanAccountEventRaw = { | ||
export type ScanAccountEventRaw = { | ||
type: "discovered"; | ||
@@ -26,7 +26,7 @@ account: AccountRaw; | ||
*/ | ||
export declare type DeviceId = string; | ||
export type DeviceId = string; | ||
/** | ||
* | ||
*/ | ||
export declare type PreloadStrategy = Partial<{ | ||
export type PreloadStrategy = Partial<{ | ||
preloadMaxAge: number; | ||
@@ -37,3 +37,3 @@ }>; | ||
*/ | ||
export declare type BroadcastArg0 = { | ||
export type BroadcastArg0 = { | ||
account: Account; | ||
@@ -45,3 +45,3 @@ signedOperation: SignedOperation; | ||
*/ | ||
export declare type SignOperationArg0<T> = { | ||
export type SignOperationArg0<T> = { | ||
account: Account; | ||
@@ -54,4 +54,4 @@ transaction: T; | ||
*/ | ||
export declare type SignOperationFnSignature<T> = (arg0: SignOperationArg0<T>) => Observable<SignOperationEvent>; | ||
export declare type BroadcastFnSignature = (arg0: BroadcastArg0) => Promise<Operation>; | ||
export type SignOperationFnSignature<T> = (arg0: SignOperationArg0<T>) => Observable<SignOperationEvent>; | ||
export type BroadcastFnSignature = (arg0: BroadcastArg0) => Promise<Operation>; | ||
/** | ||
@@ -134,4 +134,4 @@ * Abstraction related to a currency | ||
} | ||
declare type ExpectFn = (...args: Array<any>) => any; | ||
declare type CurrencyTransaction<T extends TransactionCommon> = { | ||
type ExpectFn = (...args: Array<any>) => any; | ||
type CurrencyTransaction<T extends TransactionCommon> = { | ||
name: string; | ||
@@ -147,3 +147,3 @@ transaction: T | ((transaction: T, account: Account, accountBridge: AccountBridge<T>) => T); | ||
*/ | ||
export declare type CurrenciesData<T extends TransactionCommon> = { | ||
export type CurrenciesData<T extends TransactionCommon> = { | ||
FIXME_ignoreAccountFields?: string[]; | ||
@@ -171,3 +171,3 @@ FIXME_ignoreOperationFields?: string[]; | ||
*/ | ||
export declare type DatasetTest<T extends TransactionCommon> = { | ||
export type DatasetTest<T extends TransactionCommon> = { | ||
implementations: string[]; | ||
@@ -174,0 +174,0 @@ currencies: Record<CryptoCurrencyIds, CurrenciesData<T>> | Record<string, never>; |
/** | ||
* DerivationMode is a string identifier of a specific derivation scheme in a list defined in live-common derivation.ts | ||
*/ | ||
export declare type DerivationMode = string; | ||
export type DerivationMode = string; | ||
//# sourceMappingURL=derivation.d.ts.map |
@@ -1,3 +0,3 @@ | ||
export declare type SupportedRegistries = "ens"; | ||
export declare type DomainServiceResolution = { | ||
export type SupportedRegistries = "ens"; | ||
export type DomainServiceResolution = { | ||
registry: SupportedRegistries; | ||
@@ -4,0 +4,0 @@ domain: string; |
/** Add others with union (e.g. "learn" | "market" | "foo") */ | ||
export declare type FeatureId = "learn" | "brazePushNotifications" | "brazeLearn" | "llmNewDeviceSelection" | "llmUsbFirmwareUpdate" | "ratingsPrompt" | "counterValue" | "deviceLocalization" | "deviceInitialApps" | "buyDeviceFromLive" | "ptxSmartRouting" | "ptxEarn" | "currencyAvalancheCChain" | "ptxSmartRoutingMobile" | "mockFeature" | "multibuyNavigation" | "syncOnboarding" | "walletConnectLiveApp" | "walletConnectEntryPoint" | "customImage" | "referralProgramDiscoverCard" | "referralProgramDesktopBanner" | "disableNftSend" | "disableNftLedgerMarket" | "disableNftRaribleOpensea" | "walletNftGallery" | "receiveStakingFlowConfigDesktop" | "ethStakingProviders" | "storyly" | "staxWelcomeScreen" | "postOnboardingClaimNft" | "postOnboardingAssetsTransfer" | "firebaseEnvironmentReadOnly" | "protectServicesMobile" | "swapShowDexQuotes" | "stakePrograms" | "portfolioExchangeBanner" | "objkt" | "stakeAccountBanner" | "newsfeedPage" | "domainInputResolution" | "discover" | "protectServicesDiscoverDesktop"; | ||
export type FeatureId = "learn" | "brazePushNotifications" | "brazeLearn" | "llmNewDeviceSelection" | "llmUsbFirmwareUpdate" | "ratingsPrompt" | "counterValue" | "deviceLocalization" | "deviceInitialApps" | "buyDeviceFromLive" | "ptxSmartRouting" | "ptxEarn" | "currencyAvalancheCChain" | "currencyOptimism" | "currencyOptimismGoerli" | "currencyArbitrum" | "currencyArbitrumGoerli" | "currencyRsk" | "currencyBittorrent" | "currencyKavaEvm" | "currencyEvmosEvm" | "currencyEnergyWeb" | "currencyAstar" | "currencyMetis" | "currencyBoba" | "currencyMoonriver" | "currencyVelasEvm" | "currencySyscoin" | "ptxSmartRoutingMobile" | "mockFeature" | "multibuyNavigation" | "syncOnboarding" | "walletConnectLiveApp" | "walletConnectEntryPoint" | "customImage" | "referralProgramDiscoverCard" | "referralProgramDesktopBanner" | "referralProgramDesktopSidebar" | "referralProgramMobile" | "disableNftSend" | "disableNftLedgerMarket" | "disableNftRaribleOpensea" | "walletNftGallery" | "receiveStakingFlowConfigDesktop" | "ethStakingProviders" | "storyly" | "staxWelcomeScreen" | "postOnboardingClaimNft" | "postOnboardingAssetsTransfer" | "firebaseEnvironmentReadOnly" | "protectServicesMobile" | "swapShowDexQuotes" | "stakePrograms" | "portfolioExchangeBanner" | "objkt" | "stakeAccountBanner" | "newsfeedPage" | "domainInputResolution" | "discover" | "protectServicesDiscoverDesktop"; | ||
/** We use objects instead of direct booleans for potential future improvements | ||
like feature versioning etc */ | ||
export declare type Feature<T = any> = { | ||
export type Feature<T = any> = { | ||
/** If false, the feature is disabled (for every languages regardless of the languages_whitelisted option) */ | ||
@@ -35,5 +35,5 @@ enabled: boolean; | ||
/** */ | ||
export declare type DefaultFeatures = { | ||
export type DefaultFeatures = { | ||
[key in FeatureId]?: Feature; | ||
}; | ||
//# sourceMappingURL=feature.d.ts.map |
@@ -1,3 +0,3 @@ | ||
export declare type Language = "french" | "english" | "spanish"; | ||
export declare type LanguagePackage = { | ||
export type Language = "french" | "english" | "spanish"; | ||
export type LanguagePackage = { | ||
language: Language; | ||
@@ -15,3 +15,3 @@ languagePackageVersionId: number; | ||
}; | ||
export declare type LanguagePackageResponse = { | ||
export type LanguagePackageResponse = { | ||
id: number; | ||
@@ -18,0 +18,0 @@ language: Language; |
@@ -1,11 +0,11 @@ | ||
export var languageIds = { | ||
export const languageIds = { | ||
english: 0x00, | ||
french: 0x01, | ||
spanish: 0x02 | ||
spanish: 0x02, | ||
}; | ||
export var idsToLanguage = { | ||
export const idsToLanguage = { | ||
0x00: "english", | ||
0x01: "french", | ||
0x02: "spanish" | ||
0x02: "spanish", | ||
}; | ||
//# sourceMappingURL=languages.js.map |
/// <reference types="node" /> | ||
import type { DeviceModelId } from "@ledgerhq/types-devices"; | ||
import type { CryptoCurrency } from "@ledgerhq/types-cryptoassets"; | ||
export declare type Id = number; | ||
export type Id = number; | ||
/** | ||
* | ||
*/ | ||
export declare type LedgerScriptParams = { | ||
export type LedgerScriptParams = { | ||
firmware: string; | ||
@@ -20,3 +20,3 @@ firmwareKey: string; | ||
*/ | ||
export declare type DeviceInfo = { | ||
export type DeviceInfo = { | ||
mcuVersion: string; | ||
@@ -45,3 +45,3 @@ version: string; | ||
*/ | ||
export declare type DeviceModelInfo = { | ||
export type DeviceModelInfo = { | ||
modelId: DeviceModelId; | ||
@@ -57,3 +57,3 @@ deviceInfo: DeviceInfo; | ||
*/ | ||
export declare type DeviceVersion = { | ||
export type DeviceVersion = { | ||
id: Id; | ||
@@ -76,3 +76,3 @@ name: string; | ||
*/ | ||
export declare type McuVersion = { | ||
export type McuVersion = { | ||
id: Id; | ||
@@ -100,3 +100,3 @@ mcu: Id; | ||
*/ | ||
export declare type FirmwareInfo = { | ||
export type FirmwareInfo = { | ||
isBootloader: boolean; | ||
@@ -115,3 +115,3 @@ rawVersion: string; | ||
}; | ||
declare type BaseFirmware = { | ||
type BaseFirmware = { | ||
id: Id; | ||
@@ -134,3 +134,3 @@ name: string; | ||
*/ | ||
export declare type OsuFirmware = BaseFirmware & { | ||
export type OsuFirmware = BaseFirmware & { | ||
next_se_firmware_final_version: Id; | ||
@@ -142,3 +142,3 @@ previous_se_firmware_final_version: Array<Id>; | ||
*/ | ||
export declare type FinalFirmware = BaseFirmware & { | ||
export type FinalFirmware = BaseFirmware & { | ||
version: string; | ||
@@ -155,3 +155,3 @@ se_firmware: Id; | ||
*/ | ||
export declare type FirmwareUpdateContext = { | ||
export type FirmwareUpdateContext = { | ||
osu: OsuFirmware; | ||
@@ -164,3 +164,3 @@ final: FinalFirmware; | ||
*/ | ||
export declare type ApplicationVersion = { | ||
export type ApplicationVersion = { | ||
id: Id; | ||
@@ -193,3 +193,3 @@ name: string; | ||
*/ | ||
export declare type Application = { | ||
export type Application = { | ||
id: Id; | ||
@@ -211,2 +211,28 @@ name: string; | ||
}; | ||
export type ApplicationV2 = { | ||
versionId: Id; | ||
versionName: string; | ||
versionDisplayName: string; | ||
version: string; | ||
currencyId: string; | ||
description: string; | ||
applicationType: AppType; | ||
dateModified: string; | ||
icon: string; | ||
authorName: string; | ||
supportURL: string; | ||
contactURL: string; | ||
sourceURL: string; | ||
compatibleWallets: string; | ||
hash: string; | ||
perso: string; | ||
parentName: string | null; | ||
firmware: string; | ||
firmwareKey: string; | ||
delete: string; | ||
deleteKey: string; | ||
bytes: number; | ||
warning: string | null; | ||
isDevTools: boolean; | ||
}; | ||
/** | ||
@@ -217,2 +243,3 @@ * | ||
app = "app", | ||
currency = "currency", | ||
plugin = "plugin", | ||
@@ -224,3 +251,3 @@ tool = "tool", | ||
with all fields Live needs and in normalized form (but still serializable) */ | ||
export declare type App = { | ||
export type App = { | ||
id: Id; | ||
@@ -258,3 +285,3 @@ name: string; | ||
*/ | ||
export declare type Category = { | ||
export type Category = { | ||
id: Id; | ||
@@ -271,3 +298,3 @@ name: string; | ||
*/ | ||
export declare type SocketEvent = { | ||
export type SocketEvent = { | ||
type: "bulk-progress"; | ||
@@ -274,0 +301,0 @@ progress: number; |
@@ -16,2 +16,3 @@ /** | ||
AppType["app"] = "app"; | ||
AppType["currency"] = "currency"; | ||
AppType["plugin"] = "plugin"; | ||
@@ -18,0 +19,0 @@ AppType["tool"] = "tool"; |
import type BigNumber from "bignumber.js"; | ||
export declare type CryptoCurrencyIds = string; | ||
export type CryptoCurrencyIds = string; | ||
/** | ||
* | ||
*/ | ||
export declare type NFTStandard = "ERC721" | "ERC1155"; | ||
export type NFTStandard = "ERC721" | "ERC1155"; | ||
/** | ||
* | ||
*/ | ||
export declare type NFTMediaSize = "preview" | "big" | "original"; | ||
export type NFTMediaSize = "preview" | "big" | "original"; | ||
/** | ||
* | ||
*/ | ||
export declare type NFTMedias = Record<NFTMediaSize, { | ||
export type NFTMedias = Record<NFTMediaSize, { | ||
uri: string; | ||
@@ -21,3 +21,3 @@ mediaType: string; | ||
*/ | ||
export declare type NFTMetadata = { | ||
export type NFTMetadata = { | ||
tokenName: string | null; | ||
@@ -34,3 +34,3 @@ nftName: string | null; | ||
*/ | ||
export declare type NFTCollectionMetadata = { | ||
export type NFTCollectionMetadata = { | ||
tokenName: string | null; | ||
@@ -41,3 +41,3 @@ }; | ||
*/ | ||
export declare type ProtoNFT = { | ||
export type ProtoNFT = { | ||
id: string; | ||
@@ -54,3 +54,3 @@ tokenId: string; | ||
*/ | ||
export declare type ProtoNFTRaw = Omit<ProtoNFT, "amount"> & { | ||
export type ProtoNFTRaw = Omit<ProtoNFT, "amount"> & { | ||
amount: string; | ||
@@ -61,3 +61,3 @@ }; | ||
*/ | ||
export declare type NFT = Omit<ProtoNFT, "metadata"> & { | ||
export type NFT = Omit<ProtoNFT, "metadata"> & { | ||
metadata: NFTMetadata; | ||
@@ -68,7 +68,7 @@ }; | ||
*/ | ||
export declare type NFTMetadataLinksProviders = "opensea" | "rarible" | "explorer"; | ||
export type NFTMetadataLinksProviders = "opensea" | "rarible" | "explorer"; | ||
/** | ||
* | ||
*/ | ||
export declare type NFTMetadataResponse = { | ||
export type NFTMetadataResponse = { | ||
status: 200 | 404 | 500; | ||
@@ -90,3 +90,3 @@ result?: { | ||
*/ | ||
export declare type NFTCollectionMetadataResponse = { | ||
export type NFTCollectionMetadataResponse = { | ||
status: 200 | 404 | 500; | ||
@@ -101,3 +101,3 @@ result?: { | ||
*/ | ||
export declare type FloorPrice = { | ||
export type FloorPrice = { | ||
ticker: string; | ||
@@ -104,0 +104,0 @@ value: number; |
@@ -7,7 +7,7 @@ import type { BigNumber } from "bignumber.js"; | ||
*/ | ||
export declare type OperationType = "IN" | "OUT" | "NONE" | "CREATE" | "REVEAL" | "DELEGATE" | "UNDELEGATE" | "REDELEGATE" | "REWARD" | "FEES" | "FREEZE" | "UNFREEZE" | "VOTE" | "REWARD_PAYOUT" | "BOND" | "UNBOND" | "WITHDRAW_UNBONDED" | "SET_CONTROLLER" | "SLASH" | "NOMINATE" | "CHILL" | "APPROVE" | "OPT_IN" | "OPT_OUT" | "LOCK" | "UNLOCK" | "WITHDRAW" | "REVOKE" | "ACTIVATE" | "REGISTER" | "NFT_IN" | "NFT_OUT" | "STAKE" | "UNSTAKE" | "WITHDRAW_UNSTAKED"; | ||
export type OperationType = "IN" | "OUT" | "NONE" | "CREATE" | "REVEAL" | "DELEGATE" | "UNDELEGATE" | "REDELEGATE" | "REWARD" | "FEES" | "FREEZE" | "UNFREEZE" | "VOTE" | "REWARD_PAYOUT" | "BOND" | "UNBOND" | "WITHDRAW_UNBONDED" | "SET_CONTROLLER" | "SLASH" | "NOMINATE" | "CHILL" | "APPROVE" | "OPT_IN" | "OPT_OUT" | "LOCK" | "UNLOCK" | "WITHDRAW" | "REVOKE" | "ACTIVATE" | "REGISTER" | "NFT_IN" | "NFT_OUT" | "STAKE" | "UNSTAKE" | "WITHDRAW_UNSTAKED"; | ||
/** | ||
* | ||
*/ | ||
export declare type Operation = { | ||
export type Operation = { | ||
id: string; | ||
@@ -39,3 +39,3 @@ hash: string; | ||
*/ | ||
export declare type OperationRaw = { | ||
export type OperationRaw = { | ||
id: string; | ||
@@ -67,3 +67,3 @@ hash: string; | ||
*/ | ||
export declare type DailyOperationsSection = { | ||
export type DailyOperationsSection = { | ||
day: Date; | ||
@@ -75,3 +75,3 @@ data: Operation[]; | ||
*/ | ||
export declare type DailyOperations = { | ||
export type DailyOperations = { | ||
sections: DailyOperationsSection[]; | ||
@@ -78,0 +78,0 @@ completed: boolean; |
@@ -9,3 +9,3 @@ /** | ||
*/ | ||
export declare type PaginationConfig = { | ||
export type PaginationConfig = { | ||
operationsPerAccountId?: Record<string, number>; | ||
@@ -17,3 +17,3 @@ operations?: number; | ||
*/ | ||
export declare type SyncConfig = { | ||
export type SyncConfig = { | ||
paginationConfig: PaginationConfig; | ||
@@ -20,0 +20,0 @@ withoutSynchronize?: boolean; |
@@ -6,3 +6,3 @@ import type { AccountLike, AccountLikeArray, GranularityId } from "./account"; | ||
*/ | ||
export declare type BalanceHistoryData = { | ||
export type BalanceHistoryData = { | ||
date: Date; | ||
@@ -14,11 +14,11 @@ value: number; | ||
*/ | ||
export declare type BalanceHistory = BalanceHistoryData[]; | ||
export type BalanceHistory = BalanceHistoryData[]; | ||
/** | ||
* | ||
*/ | ||
export declare type BalanceHistoryRaw = Array<[string, string]>; | ||
export type BalanceHistoryRaw = Array<[string, string]>; | ||
/** | ||
* | ||
*/ | ||
export declare type BalanceHistoryWithCountervalue = (BalanceHistoryData & { | ||
export type BalanceHistoryWithCountervalue = (BalanceHistoryData & { | ||
countervalue: number | null | undefined; | ||
@@ -29,3 +29,3 @@ })[]; | ||
*/ | ||
export declare type ValueChange = { | ||
export type ValueChange = { | ||
percentage: number | null | undefined; | ||
@@ -37,3 +37,3 @@ value: number; | ||
*/ | ||
export declare type AccountPortfolio = { | ||
export type AccountPortfolio = { | ||
history: BalanceHistoryWithCountervalue; | ||
@@ -49,3 +49,3 @@ countervalueAvailable: boolean; | ||
*/ | ||
export declare type CurrencyPortfolio = { | ||
export type CurrencyPortfolio = { | ||
history: BalanceHistoryWithCountervalue; | ||
@@ -62,3 +62,3 @@ countervalueAvailable: boolean; | ||
*/ | ||
export declare type Portfolio = { | ||
export type Portfolio = { | ||
balanceHistory: BalanceHistory; | ||
@@ -78,3 +78,3 @@ balanceAvailable: boolean; | ||
*/ | ||
export declare type PortfolioRangeConfig = { | ||
export type PortfolioRangeConfig = { | ||
count?: number; | ||
@@ -88,4 +88,4 @@ granularityId: GranularityId; | ||
*/ | ||
export declare type PortfolioRange = "all" | "year" | "month" | "week" | "day"; | ||
export declare type DistributionItem = { | ||
export type PortfolioRange = "all" | "year" | "month" | "week" | "day"; | ||
export type DistributionItem = { | ||
currency: CryptoCurrency | TokenCurrency; | ||
@@ -100,3 +100,3 @@ distribution: number; | ||
*/ | ||
export declare type AssetsDistribution = { | ||
export type AssetsDistribution = { | ||
isAvailable: boolean; | ||
@@ -103,0 +103,0 @@ list: DistributionItem[]; |
@@ -14,3 +14,3 @@ import { DeviceModelId } from "@ledgerhq/types-devices"; | ||
} | ||
export declare type WithNavigationParams = { | ||
export type WithNavigationParams = { | ||
/** | ||
@@ -25,3 +25,3 @@ * Navigation params when the user presses the button for this action | ||
}; | ||
declare type WithStartActionFunction = { | ||
type WithStartActionFunction = { | ||
/** | ||
@@ -36,3 +36,3 @@ * The function to call when the user presses the button for this action | ||
*/ | ||
export declare type PostOnboardingAction = { | ||
export type PostOnboardingAction = { | ||
id: PostOnboardingActionId; | ||
@@ -86,3 +86,3 @@ /** | ||
*/ | ||
export declare type PostOnboardingActionState = { | ||
export type PostOnboardingActionState = { | ||
/** | ||
@@ -99,3 +99,3 @@ * Whether the user has completed this action. This will be reflected in the | ||
*/ | ||
export declare type PostOnboardingState = { | ||
export type PostOnboardingState = { | ||
/** | ||
@@ -133,3 +133,3 @@ * Model Id of the device for which the post onboarding was started. | ||
*/ | ||
export declare type PostOnboardingHubState = { | ||
export type PostOnboardingHubState = { | ||
deviceModelId: DeviceModelId | null; | ||
@@ -136,0 +136,0 @@ lastActionCompleted: PostOnboardingAction | null; |
@@ -5,3 +5,3 @@ import { BigNumber } from "bignumber.js"; | ||
*/ | ||
export declare type SwapOperation = { | ||
export type SwapOperation = { | ||
provider: string; | ||
@@ -19,3 +19,3 @@ swapId: string; | ||
*/ | ||
export declare type SwapOperationRaw = { | ||
export type SwapOperationRaw = { | ||
provider: string; | ||
@@ -22,0 +22,0 @@ swapId: string; |
@@ -8,3 +8,3 @@ import type { BigNumber } from "bignumber.js"; | ||
*/ | ||
export declare type SignedOperation = { | ||
export type SignedOperation = { | ||
operation: Operation; | ||
@@ -18,3 +18,3 @@ signature: string; | ||
*/ | ||
export declare type SignedOperationRaw = { | ||
export type SignedOperationRaw = { | ||
operation: OperationRaw; | ||
@@ -28,3 +28,3 @@ signature: string; | ||
*/ | ||
export declare type SignOperationEvent = { | ||
export type SignOperationEvent = { | ||
type: "device-streaming"; | ||
@@ -45,3 +45,3 @@ progress: number; | ||
*/ | ||
export declare type SignOperationEventRaw = { | ||
export type SignOperationEventRaw = { | ||
type: "device-streaming"; | ||
@@ -63,3 +63,3 @@ progress: number; | ||
*/ | ||
export declare type TransactionCommon = { | ||
export type TransactionCommon = { | ||
amount: BigNumber; | ||
@@ -75,3 +75,3 @@ recipient: string; | ||
*/ | ||
export declare type TransactionCommonRaw = { | ||
export type TransactionCommonRaw = { | ||
amount: string; | ||
@@ -89,3 +89,3 @@ recipient: string; | ||
*/ | ||
export declare type FeeStrategy = { | ||
export type FeeStrategy = { | ||
amount: BigNumber; | ||
@@ -99,3 +99,3 @@ displayedAmount?: BigNumber; | ||
}; | ||
export declare type FeeStrategyTxParameters = { | ||
export type FeeStrategyTxParameters = { | ||
maxBaseFeePerGas?: BigNumber; | ||
@@ -107,3 +107,3 @@ maxPriorityFeePerGas?: BigNumber; | ||
*/ | ||
export declare type TransactionStatusCommon = { | ||
export type TransactionStatusCommon = { | ||
errors: Record<string, Error>; | ||
@@ -119,3 +119,3 @@ warnings: Record<string, Error>; | ||
*/ | ||
export declare type TransactionStatusCommonRaw = { | ||
export type TransactionStatusCommonRaw = { | ||
errors: Record<string, string>; | ||
@@ -122,0 +122,0 @@ warnings: Record<string, string>; |
@@ -7,5 +7,5 @@ import type { BigNumber } from "bignumber.js"; | ||
import { ProtoNFT, ProtoNFTRaw } from "./nft"; | ||
export declare type GranularityId = "HOUR" | "DAY" | "WEEK"; | ||
export declare type BalanceHistoryCache = Record<GranularityId, BalanceHistoryDataCache>; | ||
export declare type BalanceHistoryDataCache = { | ||
export type GranularityId = "HOUR" | "DAY" | "WEEK"; | ||
export type BalanceHistoryCache = Record<GranularityId, BalanceHistoryDataCache>; | ||
export type BalanceHistoryDataCache = { | ||
latestDate: number | null | undefined; | ||
@@ -15,3 +15,3 @@ balances: number[]; | ||
/** A token belongs to an Account and share the parent account address */ | ||
export declare type TokenAccount = { | ||
export type TokenAccount = { | ||
type: "TokenAccount"; | ||
@@ -36,3 +36,3 @@ id: string; | ||
/** A child account belongs to an Account but has its own address */ | ||
export declare type ChildAccount = { | ||
export type ChildAccount = { | ||
type: "ChildAccount"; | ||
@@ -54,3 +54,3 @@ id: string; | ||
/** */ | ||
export declare type Address = { | ||
export type Address = { | ||
address: string; | ||
@@ -72,3 +72,3 @@ derivationPath: string; | ||
*/ | ||
export declare type Account = { | ||
export type Account = { | ||
type: "Account"; | ||
@@ -105,11 +105,11 @@ id: string; | ||
/** super type that is either a token or a child account */ | ||
export declare type SubAccount = TokenAccount | ChildAccount; | ||
export type SubAccount = TokenAccount | ChildAccount; | ||
/** One of the Account type */ | ||
export declare type AccountLike = Account | SubAccount; | ||
export type AccountLike = Account | SubAccount; | ||
/** | ||
* An array of AccountLikes | ||
*/ | ||
export declare type AccountLikeArray = AccountLike[] | TokenAccount[] | ChildAccount[] | Account[]; | ||
export type AccountLikeArray = AccountLike[] | TokenAccount[] | ChildAccount[] | Account[]; | ||
/** */ | ||
export declare type TokenAccountRaw = { | ||
export type TokenAccountRaw = { | ||
type: "TokenAccountRaw"; | ||
@@ -134,3 +134,3 @@ id: string; | ||
/** */ | ||
export declare type ChildAccountRaw = { | ||
export type ChildAccountRaw = { | ||
type: "ChildAccountRaw"; | ||
@@ -152,3 +152,3 @@ id: string; | ||
/** */ | ||
export declare type AccountRaw = { | ||
export type AccountRaw = { | ||
id: string; | ||
@@ -184,7 +184,7 @@ seedIdentifier: string; | ||
/** */ | ||
export declare type SubAccountRaw = TokenAccountRaw | ChildAccountRaw; | ||
export type SubAccountRaw = TokenAccountRaw | ChildAccountRaw; | ||
/** */ | ||
export declare type AccountRawLike = AccountRaw | SubAccountRaw; | ||
export type AccountRawLike = AccountRaw | SubAccountRaw; | ||
/** */ | ||
export declare type AccountIdParams = { | ||
export type AccountIdParams = { | ||
type: string; | ||
@@ -191,0 +191,0 @@ version: string; |
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=account.js.map |
@@ -10,3 +10,3 @@ import { BigNumber } from "bignumber.js"; | ||
import { CryptoCurrencyIds, NFTCollectionMetadata, NFTCollectionMetadataResponse, NFTMetadata, NFTMetadataResponse } from "./nft"; | ||
export declare type ScanAccountEvent = { | ||
export type ScanAccountEvent = { | ||
type: "discovered"; | ||
@@ -18,3 +18,3 @@ account: Account; | ||
*/ | ||
export declare type ScanAccountEventRaw = { | ||
export type ScanAccountEventRaw = { | ||
type: "discovered"; | ||
@@ -26,7 +26,7 @@ account: AccountRaw; | ||
*/ | ||
export declare type DeviceId = string; | ||
export type DeviceId = string; | ||
/** | ||
* | ||
*/ | ||
export declare type PreloadStrategy = Partial<{ | ||
export type PreloadStrategy = Partial<{ | ||
preloadMaxAge: number; | ||
@@ -37,3 +37,3 @@ }>; | ||
*/ | ||
export declare type BroadcastArg0 = { | ||
export type BroadcastArg0 = { | ||
account: Account; | ||
@@ -45,3 +45,3 @@ signedOperation: SignedOperation; | ||
*/ | ||
export declare type SignOperationArg0<T> = { | ||
export type SignOperationArg0<T> = { | ||
account: Account; | ||
@@ -54,4 +54,4 @@ transaction: T; | ||
*/ | ||
export declare type SignOperationFnSignature<T> = (arg0: SignOperationArg0<T>) => Observable<SignOperationEvent>; | ||
export declare type BroadcastFnSignature = (arg0: BroadcastArg0) => Promise<Operation>; | ||
export type SignOperationFnSignature<T> = (arg0: SignOperationArg0<T>) => Observable<SignOperationEvent>; | ||
export type BroadcastFnSignature = (arg0: BroadcastArg0) => Promise<Operation>; | ||
/** | ||
@@ -134,4 +134,4 @@ * Abstraction related to a currency | ||
} | ||
declare type ExpectFn = (...args: Array<any>) => any; | ||
declare type CurrencyTransaction<T extends TransactionCommon> = { | ||
type ExpectFn = (...args: Array<any>) => any; | ||
type CurrencyTransaction<T extends TransactionCommon> = { | ||
name: string; | ||
@@ -147,3 +147,3 @@ transaction: T | ((transaction: T, account: Account, accountBridge: AccountBridge<T>) => T); | ||
*/ | ||
export declare type CurrenciesData<T extends TransactionCommon> = { | ||
export type CurrenciesData<T extends TransactionCommon> = { | ||
FIXME_ignoreAccountFields?: string[]; | ||
@@ -171,3 +171,3 @@ FIXME_ignoreOperationFields?: string[]; | ||
*/ | ||
export declare type DatasetTest<T extends TransactionCommon> = { | ||
export type DatasetTest<T extends TransactionCommon> = { | ||
implementations: string[]; | ||
@@ -174,0 +174,0 @@ currencies: Record<CryptoCurrencyIds, CurrenciesData<T>> | Record<string, never>; |
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=bridge.js.map |
/** | ||
* DerivationMode is a string identifier of a specific derivation scheme in a list defined in live-common derivation.ts | ||
*/ | ||
export declare type DerivationMode = string; | ||
export type DerivationMode = string; | ||
//# sourceMappingURL=derivation.d.ts.map |
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=derivation.js.map |
@@ -1,3 +0,3 @@ | ||
export declare type SupportedRegistries = "ens"; | ||
export declare type DomainServiceResolution = { | ||
export type SupportedRegistries = "ens"; | ||
export type DomainServiceResolution = { | ||
registry: SupportedRegistries; | ||
@@ -4,0 +4,0 @@ domain: string; |
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=domain.js.map |
/** Add others with union (e.g. "learn" | "market" | "foo") */ | ||
export declare type FeatureId = "learn" | "brazePushNotifications" | "brazeLearn" | "llmNewDeviceSelection" | "llmUsbFirmwareUpdate" | "ratingsPrompt" | "counterValue" | "deviceLocalization" | "deviceInitialApps" | "buyDeviceFromLive" | "ptxSmartRouting" | "ptxEarn" | "currencyAvalancheCChain" | "ptxSmartRoutingMobile" | "mockFeature" | "multibuyNavigation" | "syncOnboarding" | "walletConnectLiveApp" | "walletConnectEntryPoint" | "customImage" | "referralProgramDiscoverCard" | "referralProgramDesktopBanner" | "disableNftSend" | "disableNftLedgerMarket" | "disableNftRaribleOpensea" | "walletNftGallery" | "receiveStakingFlowConfigDesktop" | "ethStakingProviders" | "storyly" | "staxWelcomeScreen" | "postOnboardingClaimNft" | "postOnboardingAssetsTransfer" | "firebaseEnvironmentReadOnly" | "protectServicesMobile" | "swapShowDexQuotes" | "stakePrograms" | "portfolioExchangeBanner" | "objkt" | "stakeAccountBanner" | "newsfeedPage" | "domainInputResolution" | "discover" | "protectServicesDiscoverDesktop"; | ||
export type FeatureId = "learn" | "brazePushNotifications" | "brazeLearn" | "llmNewDeviceSelection" | "llmUsbFirmwareUpdate" | "ratingsPrompt" | "counterValue" | "deviceLocalization" | "deviceInitialApps" | "buyDeviceFromLive" | "ptxSmartRouting" | "ptxEarn" | "currencyAvalancheCChain" | "currencyOptimism" | "currencyOptimismGoerli" | "currencyArbitrum" | "currencyArbitrumGoerli" | "currencyRsk" | "currencyBittorrent" | "currencyKavaEvm" | "currencyEvmosEvm" | "currencyEnergyWeb" | "currencyAstar" | "currencyMetis" | "currencyBoba" | "currencyMoonriver" | "currencyVelasEvm" | "currencySyscoin" | "ptxSmartRoutingMobile" | "mockFeature" | "multibuyNavigation" | "syncOnboarding" | "walletConnectLiveApp" | "walletConnectEntryPoint" | "customImage" | "referralProgramDiscoverCard" | "referralProgramDesktopBanner" | "referralProgramDesktopSidebar" | "referralProgramMobile" | "disableNftSend" | "disableNftLedgerMarket" | "disableNftRaribleOpensea" | "walletNftGallery" | "receiveStakingFlowConfigDesktop" | "ethStakingProviders" | "storyly" | "staxWelcomeScreen" | "postOnboardingClaimNft" | "postOnboardingAssetsTransfer" | "firebaseEnvironmentReadOnly" | "protectServicesMobile" | "swapShowDexQuotes" | "stakePrograms" | "portfolioExchangeBanner" | "objkt" | "stakeAccountBanner" | "newsfeedPage" | "domainInputResolution" | "discover" | "protectServicesDiscoverDesktop"; | ||
/** We use objects instead of direct booleans for potential future improvements | ||
like feature versioning etc */ | ||
export declare type Feature<T = any> = { | ||
export type Feature<T = any> = { | ||
/** If false, the feature is disabled (for every languages regardless of the languages_whitelisted option) */ | ||
@@ -35,5 +35,5 @@ enabled: boolean; | ||
/** */ | ||
export declare type DefaultFeatures = { | ||
export type DefaultFeatures = { | ||
[key in FeatureId]?: Feature; | ||
}; | ||
//# sourceMappingURL=feature.d.ts.map |
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=feature.js.map |
@@ -16,3 +16,3 @@ "use strict"; | ||
}; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./account"), exports); | ||
@@ -19,0 +19,0 @@ __exportStar(require("./bridge"), exports); |
@@ -1,3 +0,3 @@ | ||
export declare type Language = "french" | "english" | "spanish"; | ||
export declare type LanguagePackage = { | ||
export type Language = "french" | "english" | "spanish"; | ||
export type LanguagePackage = { | ||
language: Language; | ||
@@ -15,3 +15,3 @@ languagePackageVersionId: number; | ||
}; | ||
export declare type LanguagePackageResponse = { | ||
export type LanguagePackageResponse = { | ||
id: number; | ||
@@ -18,0 +18,0 @@ language: Language; |
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.idsToLanguage = exports.languageIds = void 0; | ||
@@ -7,3 +7,3 @@ exports.languageIds = { | ||
french: 0x01, | ||
spanish: 0x02 | ||
spanish: 0x02, | ||
}; | ||
@@ -13,4 +13,4 @@ exports.idsToLanguage = { | ||
0x01: "french", | ||
0x02: "spanish" | ||
0x02: "spanish", | ||
}; | ||
//# sourceMappingURL=languages.js.map |
/// <reference types="node" /> | ||
import type { DeviceModelId } from "@ledgerhq/types-devices"; | ||
import type { CryptoCurrency } from "@ledgerhq/types-cryptoassets"; | ||
export declare type Id = number; | ||
export type Id = number; | ||
/** | ||
* | ||
*/ | ||
export declare type LedgerScriptParams = { | ||
export type LedgerScriptParams = { | ||
firmware: string; | ||
@@ -20,3 +20,3 @@ firmwareKey: string; | ||
*/ | ||
export declare type DeviceInfo = { | ||
export type DeviceInfo = { | ||
mcuVersion: string; | ||
@@ -45,3 +45,3 @@ version: string; | ||
*/ | ||
export declare type DeviceModelInfo = { | ||
export type DeviceModelInfo = { | ||
modelId: DeviceModelId; | ||
@@ -57,3 +57,3 @@ deviceInfo: DeviceInfo; | ||
*/ | ||
export declare type DeviceVersion = { | ||
export type DeviceVersion = { | ||
id: Id; | ||
@@ -76,3 +76,3 @@ name: string; | ||
*/ | ||
export declare type McuVersion = { | ||
export type McuVersion = { | ||
id: Id; | ||
@@ -100,3 +100,3 @@ mcu: Id; | ||
*/ | ||
export declare type FirmwareInfo = { | ||
export type FirmwareInfo = { | ||
isBootloader: boolean; | ||
@@ -115,3 +115,3 @@ rawVersion: string; | ||
}; | ||
declare type BaseFirmware = { | ||
type BaseFirmware = { | ||
id: Id; | ||
@@ -134,3 +134,3 @@ name: string; | ||
*/ | ||
export declare type OsuFirmware = BaseFirmware & { | ||
export type OsuFirmware = BaseFirmware & { | ||
next_se_firmware_final_version: Id; | ||
@@ -142,3 +142,3 @@ previous_se_firmware_final_version: Array<Id>; | ||
*/ | ||
export declare type FinalFirmware = BaseFirmware & { | ||
export type FinalFirmware = BaseFirmware & { | ||
version: string; | ||
@@ -155,3 +155,3 @@ se_firmware: Id; | ||
*/ | ||
export declare type FirmwareUpdateContext = { | ||
export type FirmwareUpdateContext = { | ||
osu: OsuFirmware; | ||
@@ -164,3 +164,3 @@ final: FinalFirmware; | ||
*/ | ||
export declare type ApplicationVersion = { | ||
export type ApplicationVersion = { | ||
id: Id; | ||
@@ -193,3 +193,3 @@ name: string; | ||
*/ | ||
export declare type Application = { | ||
export type Application = { | ||
id: Id; | ||
@@ -211,2 +211,28 @@ name: string; | ||
}; | ||
export type ApplicationV2 = { | ||
versionId: Id; | ||
versionName: string; | ||
versionDisplayName: string; | ||
version: string; | ||
currencyId: string; | ||
description: string; | ||
applicationType: AppType; | ||
dateModified: string; | ||
icon: string; | ||
authorName: string; | ||
supportURL: string; | ||
contactURL: string; | ||
sourceURL: string; | ||
compatibleWallets: string; | ||
hash: string; | ||
perso: string; | ||
parentName: string | null; | ||
firmware: string; | ||
firmwareKey: string; | ||
delete: string; | ||
deleteKey: string; | ||
bytes: number; | ||
warning: string | null; | ||
isDevTools: boolean; | ||
}; | ||
/** | ||
@@ -217,2 +243,3 @@ * | ||
app = "app", | ||
currency = "currency", | ||
plugin = "plugin", | ||
@@ -224,3 +251,3 @@ tool = "tool", | ||
with all fields Live needs and in normalized form (but still serializable) */ | ||
export declare type App = { | ||
export type App = { | ||
id: Id; | ||
@@ -258,3 +285,3 @@ name: string; | ||
*/ | ||
export declare type Category = { | ||
export type Category = { | ||
id: Id; | ||
@@ -271,3 +298,3 @@ name: string; | ||
*/ | ||
export declare type SocketEvent = { | ||
export type SocketEvent = { | ||
type: "bulk-progress"; | ||
@@ -274,0 +301,0 @@ progress: number; |
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.AppType = exports.SeedPhraseType = void 0; | ||
@@ -19,2 +19,3 @@ /** | ||
AppType["app"] = "app"; | ||
AppType["currency"] = "currency"; | ||
AppType["plugin"] = "plugin"; | ||
@@ -21,0 +22,0 @@ AppType["tool"] = "tool"; |
import type BigNumber from "bignumber.js"; | ||
export declare type CryptoCurrencyIds = string; | ||
export type CryptoCurrencyIds = string; | ||
/** | ||
* | ||
*/ | ||
export declare type NFTStandard = "ERC721" | "ERC1155"; | ||
export type NFTStandard = "ERC721" | "ERC1155"; | ||
/** | ||
* | ||
*/ | ||
export declare type NFTMediaSize = "preview" | "big" | "original"; | ||
export type NFTMediaSize = "preview" | "big" | "original"; | ||
/** | ||
* | ||
*/ | ||
export declare type NFTMedias = Record<NFTMediaSize, { | ||
export type NFTMedias = Record<NFTMediaSize, { | ||
uri: string; | ||
@@ -21,3 +21,3 @@ mediaType: string; | ||
*/ | ||
export declare type NFTMetadata = { | ||
export type NFTMetadata = { | ||
tokenName: string | null; | ||
@@ -34,3 +34,3 @@ nftName: string | null; | ||
*/ | ||
export declare type NFTCollectionMetadata = { | ||
export type NFTCollectionMetadata = { | ||
tokenName: string | null; | ||
@@ -41,3 +41,3 @@ }; | ||
*/ | ||
export declare type ProtoNFT = { | ||
export type ProtoNFT = { | ||
id: string; | ||
@@ -54,3 +54,3 @@ tokenId: string; | ||
*/ | ||
export declare type ProtoNFTRaw = Omit<ProtoNFT, "amount"> & { | ||
export type ProtoNFTRaw = Omit<ProtoNFT, "amount"> & { | ||
amount: string; | ||
@@ -61,3 +61,3 @@ }; | ||
*/ | ||
export declare type NFT = Omit<ProtoNFT, "metadata"> & { | ||
export type NFT = Omit<ProtoNFT, "metadata"> & { | ||
metadata: NFTMetadata; | ||
@@ -68,7 +68,7 @@ }; | ||
*/ | ||
export declare type NFTMetadataLinksProviders = "opensea" | "rarible" | "explorer"; | ||
export type NFTMetadataLinksProviders = "opensea" | "rarible" | "explorer"; | ||
/** | ||
* | ||
*/ | ||
export declare type NFTMetadataResponse = { | ||
export type NFTMetadataResponse = { | ||
status: 200 | 404 | 500; | ||
@@ -90,3 +90,3 @@ result?: { | ||
*/ | ||
export declare type NFTCollectionMetadataResponse = { | ||
export type NFTCollectionMetadataResponse = { | ||
status: 200 | 404 | 500; | ||
@@ -101,3 +101,3 @@ result?: { | ||
*/ | ||
export declare type FloorPrice = { | ||
export type FloorPrice = { | ||
ticker: string; | ||
@@ -104,0 +104,0 @@ value: number; |
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=nft.js.map |
@@ -7,7 +7,7 @@ import type { BigNumber } from "bignumber.js"; | ||
*/ | ||
export declare type OperationType = "IN" | "OUT" | "NONE" | "CREATE" | "REVEAL" | "DELEGATE" | "UNDELEGATE" | "REDELEGATE" | "REWARD" | "FEES" | "FREEZE" | "UNFREEZE" | "VOTE" | "REWARD_PAYOUT" | "BOND" | "UNBOND" | "WITHDRAW_UNBONDED" | "SET_CONTROLLER" | "SLASH" | "NOMINATE" | "CHILL" | "APPROVE" | "OPT_IN" | "OPT_OUT" | "LOCK" | "UNLOCK" | "WITHDRAW" | "REVOKE" | "ACTIVATE" | "REGISTER" | "NFT_IN" | "NFT_OUT" | "STAKE" | "UNSTAKE" | "WITHDRAW_UNSTAKED"; | ||
export type OperationType = "IN" | "OUT" | "NONE" | "CREATE" | "REVEAL" | "DELEGATE" | "UNDELEGATE" | "REDELEGATE" | "REWARD" | "FEES" | "FREEZE" | "UNFREEZE" | "VOTE" | "REWARD_PAYOUT" | "BOND" | "UNBOND" | "WITHDRAW_UNBONDED" | "SET_CONTROLLER" | "SLASH" | "NOMINATE" | "CHILL" | "APPROVE" | "OPT_IN" | "OPT_OUT" | "LOCK" | "UNLOCK" | "WITHDRAW" | "REVOKE" | "ACTIVATE" | "REGISTER" | "NFT_IN" | "NFT_OUT" | "STAKE" | "UNSTAKE" | "WITHDRAW_UNSTAKED"; | ||
/** | ||
* | ||
*/ | ||
export declare type Operation = { | ||
export type Operation = { | ||
id: string; | ||
@@ -39,3 +39,3 @@ hash: string; | ||
*/ | ||
export declare type OperationRaw = { | ||
export type OperationRaw = { | ||
id: string; | ||
@@ -67,3 +67,3 @@ hash: string; | ||
*/ | ||
export declare type DailyOperationsSection = { | ||
export type DailyOperationsSection = { | ||
day: Date; | ||
@@ -75,3 +75,3 @@ data: Operation[]; | ||
*/ | ||
export declare type DailyOperations = { | ||
export type DailyOperations = { | ||
sections: DailyOperationsSection[]; | ||
@@ -78,0 +78,0 @@ completed: boolean; |
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=operation.js.map |
@@ -9,3 +9,3 @@ /** | ||
*/ | ||
export declare type PaginationConfig = { | ||
export type PaginationConfig = { | ||
operationsPerAccountId?: Record<string, number>; | ||
@@ -17,3 +17,3 @@ operations?: number; | ||
*/ | ||
export declare type SyncConfig = { | ||
export type SyncConfig = { | ||
paginationConfig: PaginationConfig; | ||
@@ -20,0 +20,0 @@ withoutSynchronize?: boolean; |
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=pagination.js.map |
@@ -6,3 +6,3 @@ import type { AccountLike, AccountLikeArray, GranularityId } from "./account"; | ||
*/ | ||
export declare type BalanceHistoryData = { | ||
export type BalanceHistoryData = { | ||
date: Date; | ||
@@ -14,11 +14,11 @@ value: number; | ||
*/ | ||
export declare type BalanceHistory = BalanceHistoryData[]; | ||
export type BalanceHistory = BalanceHistoryData[]; | ||
/** | ||
* | ||
*/ | ||
export declare type BalanceHistoryRaw = Array<[string, string]>; | ||
export type BalanceHistoryRaw = Array<[string, string]>; | ||
/** | ||
* | ||
*/ | ||
export declare type BalanceHistoryWithCountervalue = (BalanceHistoryData & { | ||
export type BalanceHistoryWithCountervalue = (BalanceHistoryData & { | ||
countervalue: number | null | undefined; | ||
@@ -29,3 +29,3 @@ })[]; | ||
*/ | ||
export declare type ValueChange = { | ||
export type ValueChange = { | ||
percentage: number | null | undefined; | ||
@@ -37,3 +37,3 @@ value: number; | ||
*/ | ||
export declare type AccountPortfolio = { | ||
export type AccountPortfolio = { | ||
history: BalanceHistoryWithCountervalue; | ||
@@ -49,3 +49,3 @@ countervalueAvailable: boolean; | ||
*/ | ||
export declare type CurrencyPortfolio = { | ||
export type CurrencyPortfolio = { | ||
history: BalanceHistoryWithCountervalue; | ||
@@ -62,3 +62,3 @@ countervalueAvailable: boolean; | ||
*/ | ||
export declare type Portfolio = { | ||
export type Portfolio = { | ||
balanceHistory: BalanceHistory; | ||
@@ -78,3 +78,3 @@ balanceAvailable: boolean; | ||
*/ | ||
export declare type PortfolioRangeConfig = { | ||
export type PortfolioRangeConfig = { | ||
count?: number; | ||
@@ -88,4 +88,4 @@ granularityId: GranularityId; | ||
*/ | ||
export declare type PortfolioRange = "all" | "year" | "month" | "week" | "day"; | ||
export declare type DistributionItem = { | ||
export type PortfolioRange = "all" | "year" | "month" | "week" | "day"; | ||
export type DistributionItem = { | ||
currency: CryptoCurrency | TokenCurrency; | ||
@@ -100,3 +100,3 @@ distribution: number; | ||
*/ | ||
export declare type AssetsDistribution = { | ||
export type AssetsDistribution = { | ||
isAvailable: boolean; | ||
@@ -103,0 +103,0 @@ list: DistributionItem[]; |
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=portfolio.js.map |
@@ -14,3 +14,3 @@ import { DeviceModelId } from "@ledgerhq/types-devices"; | ||
} | ||
export declare type WithNavigationParams = { | ||
export type WithNavigationParams = { | ||
/** | ||
@@ -25,3 +25,3 @@ * Navigation params when the user presses the button for this action | ||
}; | ||
declare type WithStartActionFunction = { | ||
type WithStartActionFunction = { | ||
/** | ||
@@ -36,3 +36,3 @@ * The function to call when the user presses the button for this action | ||
*/ | ||
export declare type PostOnboardingAction = { | ||
export type PostOnboardingAction = { | ||
id: PostOnboardingActionId; | ||
@@ -86,3 +86,3 @@ /** | ||
*/ | ||
export declare type PostOnboardingActionState = { | ||
export type PostOnboardingActionState = { | ||
/** | ||
@@ -99,3 +99,3 @@ * Whether the user has completed this action. This will be reflected in the | ||
*/ | ||
export declare type PostOnboardingState = { | ||
export type PostOnboardingState = { | ||
/** | ||
@@ -133,3 +133,3 @@ * Model Id of the device for which the post onboarding was started. | ||
*/ | ||
export declare type PostOnboardingHubState = { | ||
export type PostOnboardingHubState = { | ||
deviceModelId: DeviceModelId | null; | ||
@@ -136,0 +136,0 @@ lastActionCompleted: PostOnboardingAction | null; |
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PostOnboardingActionId = void 0; | ||
@@ -4,0 +4,0 @@ /** |
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.StorylyInstanceID = void 0; | ||
@@ -4,0 +4,0 @@ var StorylyInstanceID; |
@@ -5,3 +5,3 @@ import { BigNumber } from "bignumber.js"; | ||
*/ | ||
export declare type SwapOperation = { | ||
export type SwapOperation = { | ||
provider: string; | ||
@@ -19,3 +19,3 @@ swapId: string; | ||
*/ | ||
export declare type SwapOperationRaw = { | ||
export type SwapOperationRaw = { | ||
provider: string; | ||
@@ -22,0 +22,0 @@ swapId: string; |
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=swap.js.map |
@@ -8,3 +8,3 @@ import type { BigNumber } from "bignumber.js"; | ||
*/ | ||
export declare type SignedOperation = { | ||
export type SignedOperation = { | ||
operation: Operation; | ||
@@ -18,3 +18,3 @@ signature: string; | ||
*/ | ||
export declare type SignedOperationRaw = { | ||
export type SignedOperationRaw = { | ||
operation: OperationRaw; | ||
@@ -28,3 +28,3 @@ signature: string; | ||
*/ | ||
export declare type SignOperationEvent = { | ||
export type SignOperationEvent = { | ||
type: "device-streaming"; | ||
@@ -45,3 +45,3 @@ progress: number; | ||
*/ | ||
export declare type SignOperationEventRaw = { | ||
export type SignOperationEventRaw = { | ||
type: "device-streaming"; | ||
@@ -63,3 +63,3 @@ progress: number; | ||
*/ | ||
export declare type TransactionCommon = { | ||
export type TransactionCommon = { | ||
amount: BigNumber; | ||
@@ -75,3 +75,3 @@ recipient: string; | ||
*/ | ||
export declare type TransactionCommonRaw = { | ||
export type TransactionCommonRaw = { | ||
amount: string; | ||
@@ -89,3 +89,3 @@ recipient: string; | ||
*/ | ||
export declare type FeeStrategy = { | ||
export type FeeStrategy = { | ||
amount: BigNumber; | ||
@@ -99,3 +99,3 @@ displayedAmount?: BigNumber; | ||
}; | ||
export declare type FeeStrategyTxParameters = { | ||
export type FeeStrategyTxParameters = { | ||
maxBaseFeePerGas?: BigNumber; | ||
@@ -107,3 +107,3 @@ maxPriorityFeePerGas?: BigNumber; | ||
*/ | ||
export declare type TransactionStatusCommon = { | ||
export type TransactionStatusCommon = { | ||
errors: Record<string, Error>; | ||
@@ -119,3 +119,3 @@ warnings: Record<string, Error>; | ||
*/ | ||
export declare type TransactionStatusCommonRaw = { | ||
export type TransactionStatusCommonRaw = { | ||
errors: Record<string, string>; | ||
@@ -122,0 +122,0 @@ warnings: Record<string, string>; |
"use strict"; | ||
exports.__esModule = true; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=transaction.js.map |
{ | ||
"name": "@ledgerhq/types-live", | ||
"version": "6.32.1", | ||
"version": "6.33.0-nightly.1", | ||
"description": "Ledger Live main types.", | ||
@@ -32,8 +32,7 @@ "keywords": [ | ||
"jest": "^28.1.1", | ||
"rimraf": "^4.1.2", | ||
"rimraf": "^4.4.1", | ||
"source-map-support": "^0.5.21", | ||
"ts-jest": "^28.0.5", | ||
"ts-node": "^10.4.0", | ||
"typescript": "^4", | ||
"@ledgerhq/types-cryptoassets": "^7.1.0", | ||
"@ledgerhq/types-cryptoassets": "^7.2.0-nightly.0", | ||
"@ledgerhq/types-devices": "^6.22.4" | ||
@@ -40,0 +39,0 @@ }, |
@@ -16,2 +16,17 @@ /** Add others with union (e.g. "learn" | "market" | "foo") */ | ||
| "currencyAvalancheCChain" | ||
| "currencyOptimism" | ||
| "currencyOptimismGoerli" | ||
| "currencyArbitrum" | ||
| "currencyArbitrumGoerli" | ||
| "currencyRsk" | ||
| "currencyBittorrent" | ||
| "currencyKavaEvm" | ||
| "currencyEvmosEvm" | ||
| "currencyEnergyWeb" | ||
| "currencyAstar" | ||
| "currencyMetis" | ||
| "currencyBoba" | ||
| "currencyMoonriver" | ||
| "currencyVelasEvm" | ||
| "currencySyscoin" | ||
| "ptxSmartRoutingMobile" | ||
@@ -26,2 +41,4 @@ | "mockFeature" | ||
| "referralProgramDesktopBanner" | ||
| "referralProgramDesktopSidebar" | ||
| "referralProgramMobile" | ||
| "disableNftSend" | ||
@@ -28,0 +45,0 @@ | "disableNftLedgerMarket" |
@@ -219,2 +219,29 @@ import type { DeviceModelId } from "@ledgerhq/types-devices"; | ||
export type ApplicationV2 = { | ||
versionId: Id; | ||
versionName: string; | ||
versionDisplayName: string; | ||
version: string; | ||
currencyId: string; | ||
description: string; | ||
applicationType: AppType; | ||
dateModified: string; | ||
icon: string; | ||
authorName: string; | ||
supportURL: string; | ||
contactURL: string; | ||
sourceURL: string; | ||
compatibleWallets: string; | ||
hash: string; | ||
perso: string; | ||
parentName: string | null; | ||
firmware: string; | ||
firmwareKey: string; | ||
delete: string; | ||
deleteKey: string; | ||
bytes: number; | ||
warning: string | null; | ||
isDevTools: boolean; | ||
}; | ||
/** | ||
@@ -224,3 +251,4 @@ * | ||
export enum AppType { | ||
app = "app", | ||
app = "app", // NB Legacy from v1, drop after we default to v2. | ||
currency = "currency", | ||
plugin = "plugin", | ||
@@ -227,0 +255,0 @@ tool = "tool", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
371858
10
4547
1