@ledgerhq/types-live
Advanced tools
Comparing version 6.25.2-ts-llm.0 to 6.26.0-next.0
# @ledgerhq/types-live | ||
## 6.25.2-ts-llm.0 | ||
## 6.26.0-next.0 | ||
### Minor Changes | ||
- [#1662](https://github.com/LedgerHQ/ledger-live/pull/1662) [`4ad6155953`](https://github.com/LedgerHQ/ledger-live/commit/4ad615595392f5ef806cbd21f0be1b30d3ae73c6) Thanks [@lambertkevin](https://github.com/lambertkevin)! - Update FeeStrategy type for EIP1559 purposes | ||
### Patch Changes | ||
- [#1141](https://github.com/LedgerHQ/ledger-live/pull/1141) [`24ea9cd15f`](https://github.com/LedgerHQ/ledger-live/commit/24ea9cd15f92d5a2c74c4b936bacb89d5d4d36fd) Thanks [@valpinkman](https://github.com/valpinkman)! - Collateral changes due to solving all LLM typescript/eslint issues/warnings. | ||
- [#1539](https://github.com/LedgerHQ/ledger-live/pull/1539) [`914c5fb377`](https://github.com/LedgerHQ/ledger-live/commit/914c5fb377b8b541f5f645fe26ab80faaa33d478) Thanks [@sarneijim](https://github.com/sarneijim)! - Update feature flag type | ||
* [#1141](https://github.com/LedgerHQ/ledger-live/pull/1141) [`24ea9cd15f`](https://github.com/LedgerHQ/ledger-live/commit/24ea9cd15f92d5a2c74c4b936bacb89d5d4d36fd) Thanks [@valpinkman](https://github.com/valpinkman)! - Collateral changes due to solving all LLM typescript/eslint issues/warnings. | ||
## 6.25.1 | ||
@@ -10,0 +16,0 @@ |
/** Add others with union (e.g. "learn" | "market" | "foo") */ | ||
export declare type FeatureId = "learn" | "pushNotifications" | "llmNewDeviceSelection" | "llmUsbFirmwareUpdate" | "ratings" | "counterValue" | "deviceLocalization" | "deviceInitialApps" | "buyDeviceFromLive" | "ptxSmartRouting" | "currencyOsmosis" | "currencyOsmosisMobile" | "currencyFantom" | "currencyMoonbeam" | "currencyCronos" | "currencySongbird" | "currencyFlare" | "currencyFantomMobile" | "currencyMoonbeamMobile" | "currencyCronosMobile" | "currencySongbirdMobile" | "currencyFlareMobile" | "ptxSmartRoutingMobile" | "mockFeature" | "syncOnboarding" | "walletConnectLiveApp" | "customImage" | "referralProgramDiscoverCard" | "referralProgramDesktopBanner"; | ||
export declare type FeatureId = "learn" | "pushNotifications" | "llmNewDeviceSelection" | "llmUsbFirmwareUpdate" | "ratings" | "counterValue" | "deviceLocalization" | "deviceInitialApps" | "buyDeviceFromLive" | "ptxSmartRouting" | "currencyOsmosis" | "currencyOsmosisMobile" | "currencyFantom" | "currencyMoonbeam" | "currencyCronos" | "currencySongbird" | "currencyFlare" | "currencyFantomMobile" | "currencyMoonbeamMobile" | "currencyCronosMobile" | "currencySongbirdMobile" | "currencyFlareMobile" | "ptxSmartRoutingMobile" | "mockFeature" | "syncOnboarding" | "walletConnectLiveApp" | "customImage" | "referralProgramDiscoverCard" | "referralProgramDesktopBanner" | "disableNftSend" | "disableNftLedgerMarket" | "disableNftRaribleOpensea" | "receiveStakingFlowConfigDesktop" | "ethStakingProviders"; | ||
/** We use objects instead of direct booleans for potential future improvements | ||
@@ -14,2 +14,8 @@ like feature versioning etc */ | ||
enabledOverriddenForCurrentDesktopVersion?: boolean; | ||
/** The `mobile_version` option is mobile specific, it has no impact on mobile */ | ||
/** If set, the feature is disabled when the mobile app version does not satisfies this param */ | ||
/** It should respect the semantic versioning specification (https://semver.org/) */ | ||
mobile_version?: string; | ||
/** Whether the remote value of `enabled` was overriden due to `mobile_version` */ | ||
enabledOverriddenForCurrentMobileVersion?: boolean; | ||
/** You can optionnally use one of the two following options (languages_whitelisted and languages_blacklisted) (Only implemented on mobile for now) */ | ||
@@ -16,0 +22,0 @@ /** List of languages for which the feature is enabled (it will be disabled by default for all of the others) */ |
@@ -82,2 +82,9 @@ import type { AccountLike, AccountLikeArray, GranularityId } from "./account"; | ||
export declare type PortfolioRange = "all" | "year" | "month" | "week" | "day"; | ||
export declare type DistributionItem = { | ||
currency: CryptoCurrency | TokenCurrency; | ||
distribution: number; | ||
accounts: AccountLike[]; | ||
amount: number; | ||
countervalue?: number; | ||
}; | ||
/** | ||
@@ -88,9 +95,3 @@ * | ||
isAvailable: boolean; | ||
list: { | ||
currency: CryptoCurrency | TokenCurrency; | ||
accounts: AccountLike[]; | ||
distribution: number; | ||
amount: number; | ||
countervalue: number; | ||
}[]; | ||
list: DistributionItem[]; | ||
showFirst: number; | ||
@@ -97,0 +98,0 @@ sum: number; |
@@ -83,5 +83,12 @@ import type { BigNumber } from "bignumber.js"; | ||
displayedAmount?: BigNumber; | ||
txParameters?: FeeStrategyTxParameters; | ||
label: string; | ||
unit?: Unit; | ||
disabled?: boolean; | ||
extra?: Record<string, BigNumber>; | ||
}; | ||
export declare type FeeStrategyTxParameters = { | ||
maxBaseFeePerGas?: BigNumber; | ||
maxPriorityFeePerGas?: BigNumber; | ||
}; | ||
/** | ||
@@ -88,0 +95,0 @@ * TransactionStatus is a view of Transaction with general info to be used on the UI and status info. |
/** Add others with union (e.g. "learn" | "market" | "foo") */ | ||
export declare type FeatureId = "learn" | "pushNotifications" | "llmNewDeviceSelection" | "llmUsbFirmwareUpdate" | "ratings" | "counterValue" | "deviceLocalization" | "deviceInitialApps" | "buyDeviceFromLive" | "ptxSmartRouting" | "currencyOsmosis" | "currencyOsmosisMobile" | "currencyFantom" | "currencyMoonbeam" | "currencyCronos" | "currencySongbird" | "currencyFlare" | "currencyFantomMobile" | "currencyMoonbeamMobile" | "currencyCronosMobile" | "currencySongbirdMobile" | "currencyFlareMobile" | "ptxSmartRoutingMobile" | "mockFeature" | "syncOnboarding" | "walletConnectLiveApp" | "customImage" | "referralProgramDiscoverCard" | "referralProgramDesktopBanner"; | ||
export declare type FeatureId = "learn" | "pushNotifications" | "llmNewDeviceSelection" | "llmUsbFirmwareUpdate" | "ratings" | "counterValue" | "deviceLocalization" | "deviceInitialApps" | "buyDeviceFromLive" | "ptxSmartRouting" | "currencyOsmosis" | "currencyOsmosisMobile" | "currencyFantom" | "currencyMoonbeam" | "currencyCronos" | "currencySongbird" | "currencyFlare" | "currencyFantomMobile" | "currencyMoonbeamMobile" | "currencyCronosMobile" | "currencySongbirdMobile" | "currencyFlareMobile" | "ptxSmartRoutingMobile" | "mockFeature" | "syncOnboarding" | "walletConnectLiveApp" | "customImage" | "referralProgramDiscoverCard" | "referralProgramDesktopBanner" | "disableNftSend" | "disableNftLedgerMarket" | "disableNftRaribleOpensea" | "receiveStakingFlowConfigDesktop" | "ethStakingProviders"; | ||
/** We use objects instead of direct booleans for potential future improvements | ||
@@ -14,2 +14,8 @@ like feature versioning etc */ | ||
enabledOverriddenForCurrentDesktopVersion?: boolean; | ||
/** The `mobile_version` option is mobile specific, it has no impact on mobile */ | ||
/** If set, the feature is disabled when the mobile app version does not satisfies this param */ | ||
/** It should respect the semantic versioning specification (https://semver.org/) */ | ||
mobile_version?: string; | ||
/** Whether the remote value of `enabled` was overriden due to `mobile_version` */ | ||
enabledOverriddenForCurrentMobileVersion?: boolean; | ||
/** You can optionnally use one of the two following options (languages_whitelisted and languages_blacklisted) (Only implemented on mobile for now) */ | ||
@@ -16,0 +22,0 @@ /** List of languages for which the feature is enabled (it will be disabled by default for all of the others) */ |
@@ -82,2 +82,9 @@ import type { AccountLike, AccountLikeArray, GranularityId } from "./account"; | ||
export declare type PortfolioRange = "all" | "year" | "month" | "week" | "day"; | ||
export declare type DistributionItem = { | ||
currency: CryptoCurrency | TokenCurrency; | ||
distribution: number; | ||
accounts: AccountLike[]; | ||
amount: number; | ||
countervalue?: number; | ||
}; | ||
/** | ||
@@ -88,9 +95,3 @@ * | ||
isAvailable: boolean; | ||
list: { | ||
currency: CryptoCurrency | TokenCurrency; | ||
accounts: AccountLike[]; | ||
distribution: number; | ||
amount: number; | ||
countervalue: number; | ||
}[]; | ||
list: DistributionItem[]; | ||
showFirst: number; | ||
@@ -97,0 +98,0 @@ sum: number; |
@@ -83,5 +83,12 @@ import type { BigNumber } from "bignumber.js"; | ||
displayedAmount?: BigNumber; | ||
txParameters?: FeeStrategyTxParameters; | ||
label: string; | ||
unit?: Unit; | ||
disabled?: boolean; | ||
extra?: Record<string, BigNumber>; | ||
}; | ||
export declare type FeeStrategyTxParameters = { | ||
maxBaseFeePerGas?: BigNumber; | ||
maxPriorityFeePerGas?: BigNumber; | ||
}; | ||
/** | ||
@@ -88,0 +95,0 @@ * TransactionStatus is a view of Transaction with general info to be used on the UI and status info. |
{ | ||
"name": "@ledgerhq/types-live", | ||
"version": "6.25.2-ts-llm.0", | ||
"version": "6.26.0-next.0", | ||
"description": "Ledger Live main types.", | ||
@@ -28,3 +28,3 @@ "keywords": [ | ||
"devDependencies": { | ||
"@ledgerhq/types-cryptoassets": "^6.23.3-ts-llm.0", | ||
"@ledgerhq/types-cryptoassets": "^6.23.3-next.0", | ||
"@ledgerhq/types-devices": "^6.22.3" | ||
@@ -31,0 +31,0 @@ }, |
@@ -31,3 +31,8 @@ /** Add others with union (e.g. "learn" | "market" | "foo") */ | ||
| "referralProgramDiscoverCard" | ||
| "referralProgramDesktopBanner"; | ||
| "referralProgramDesktopBanner" | ||
| "disableNftSend" | ||
| "disableNftLedgerMarket" | ||
| "disableNftRaribleOpensea" | ||
| "receiveStakingFlowConfigDesktop" | ||
| "ethStakingProviders"; | ||
@@ -45,2 +50,8 @@ /** We use objects instead of direct booleans for potential future improvements | ||
enabledOverriddenForCurrentDesktopVersion?: boolean; | ||
/** The `mobile_version` option is mobile specific, it has no impact on mobile */ | ||
/** If set, the feature is disabled when the mobile app version does not satisfies this param */ | ||
/** It should respect the semantic versioning specification (https://semver.org/) */ | ||
mobile_version?: string; | ||
/** Whether the remote value of `enabled` was overriden due to `mobile_version` */ | ||
enabledOverriddenForCurrentMobileVersion?: boolean; | ||
/** You can optionnally use one of the two following options (languages_whitelisted and languages_blacklisted) (Only implemented on mobile for now) */ | ||
@@ -47,0 +58,0 @@ /** List of languages for which the feature is enabled (it will be disabled by default for all of the others) */ |
@@ -97,2 +97,10 @@ import type { AccountLike, AccountLikeArray, GranularityId } from "./account"; | ||
export type DistributionItem = { | ||
currency: CryptoCurrency | TokenCurrency; | ||
distribution: number; // % of the total (normalized in 0-1) | ||
accounts: AccountLike[]; | ||
amount: number; | ||
countervalue?: number; // countervalue of the amount that was calculated based of the rate provided | ||
}; | ||
/** | ||
@@ -105,10 +113,3 @@ * | ||
// a sorted list of assets with data | ||
list: { | ||
currency: CryptoCurrency | TokenCurrency; | ||
accounts: AccountLike[]; | ||
distribution: number; | ||
// % of the total (normalized in 0-1) | ||
amount: number; | ||
countervalue: number; // countervalue of the amount that was calculated based of the rate provided | ||
}[]; | ||
list: DistributionItem[]; | ||
// number of accounts to show first (before the see all) | ||
@@ -115,0 +116,0 @@ showFirst: number; |
@@ -105,5 +105,15 @@ import type { BigNumber } from "bignumber.js"; | ||
displayedAmount?: BigNumber; | ||
txParameters?: FeeStrategyTxParameters; | ||
label: string; | ||
unit?: Unit; | ||
disabled?: boolean; | ||
extra?: Record<string, BigNumber>; | ||
// ^ can be used to add values necessary to transaction construction (e.g. maxFeePerGas/maxPriorityFeePerGas for EIP-1559) | ||
}; | ||
export type FeeStrategyTxParameters = { | ||
maxBaseFeePerGas?: BigNumber; | ||
maxPriorityFeePerGas?: BigNumber; | ||
}; | ||
/** | ||
@@ -110,0 +120,0 @@ * TransactionStatus is a view of Transaction with general info to be used on the UI and status info. |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4253
3
339247
1439