@ledgerhq/types-live
Advanced tools
Comparing version 6.27.1 to 6.27.2-nightly.0
# @ledgerhq/types-live | ||
## 6.27.2-nightly.0 | ||
### Patch Changes | ||
- [#1802](https://github.com/LedgerHQ/ledger-live/pull/1802) [`b01f9f5c02`](https://github.com/LedgerHQ/ledger-live/commit/b01f9f5c02ef255738b557daba38c1d9f13ee8fe) Thanks [@LFBarreto](https://github.com/LFBarreto)! - Add feature flag types for protect mobile | ||
## 6.27.1 | ||
@@ -4,0 +10,0 @@ |
@@ -106,2 +106,10 @@ import { BigNumber } from "bignumber.js"; | ||
declare type ExpectFn = (...args: Array<any>) => any; | ||
declare type CurrencyTransaction<T extends TransactionCommon> = { | ||
name: string; | ||
transaction: T | ((transaction: T, account: Account, accountBridge: AccountBridge<T>) => T); | ||
expectedStatus?: Partial<TransactionStatusCommon> | ((account: Account, transaction: T, status: TransactionStatusCommon) => Partial<TransactionStatusCommon>); | ||
test?: (arg0: ExpectFn, arg1: T, arg2: TransactionStatusCommon, arg3: AccountBridge<T>) => any; | ||
apdus?: string; | ||
testSignedOperation?: (arg0: ExpectFn, arg1: SignedOperation, arg2: Account, arg3: T, arg4: TransactionStatusCommon, arg5: AccountBridge<T>) => any; | ||
}; | ||
/** | ||
@@ -125,10 +133,3 @@ * | ||
FIXME_tests?: Array<string | RegExp>; | ||
transactions?: Array<{ | ||
name: string; | ||
transaction: T | ((arg0: T, arg1: Account, arg2: AccountBridge<T>) => T); | ||
expectedStatus?: Partial<TransactionStatusCommon> | ((arg0: Account, arg1: T, arg2: TransactionStatusCommon) => Partial<TransactionStatusCommon>); | ||
test?: (arg0: ExpectFn, arg1: T, arg2: TransactionStatusCommon, arg3: AccountBridge<T>) => any; | ||
apdus?: string; | ||
testSignedOperation?: (arg0: ExpectFn, arg1: SignedOperation, arg2: Account, arg3: T, arg4: TransactionStatusCommon, arg5: AccountBridge<T>) => any; | ||
}>; | ||
transactions?: Array<CurrencyTransaction<T>>; | ||
test?: (arg0: ExpectFn, arg1: Account, arg2: AccountBridge<T>) => any; | ||
@@ -135,0 +136,0 @@ }>; |
/** Add others with union (e.g. "learn" | "market" | "foo") */ | ||
export declare type FeatureId = "learn" | "brazePushNotifications" | "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" | "walletNftGallery" | "receiveStakingFlowConfigDesktop" | "ethStakingProviders" | "storyly" | "firebaseEnvironmentReadOnly"; | ||
export declare type FeatureId = "learn" | "brazePushNotifications" | "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" | "walletNftGallery" | "receiveStakingFlowConfigDesktop" | "ethStakingProviders" | "storyly" | "firebaseEnvironmentReadOnly" | "protectServicesMobile"; | ||
/** We use objects instead of direct booleans for potential future improvements | ||
@@ -4,0 +4,0 @@ like feature versioning etc */ |
@@ -106,2 +106,10 @@ import { BigNumber } from "bignumber.js"; | ||
declare type ExpectFn = (...args: Array<any>) => any; | ||
declare type CurrencyTransaction<T extends TransactionCommon> = { | ||
name: string; | ||
transaction: T | ((transaction: T, account: Account, accountBridge: AccountBridge<T>) => T); | ||
expectedStatus?: Partial<TransactionStatusCommon> | ((account: Account, transaction: T, status: TransactionStatusCommon) => Partial<TransactionStatusCommon>); | ||
test?: (arg0: ExpectFn, arg1: T, arg2: TransactionStatusCommon, arg3: AccountBridge<T>) => any; | ||
apdus?: string; | ||
testSignedOperation?: (arg0: ExpectFn, arg1: SignedOperation, arg2: Account, arg3: T, arg4: TransactionStatusCommon, arg5: AccountBridge<T>) => any; | ||
}; | ||
/** | ||
@@ -125,10 +133,3 @@ * | ||
FIXME_tests?: Array<string | RegExp>; | ||
transactions?: Array<{ | ||
name: string; | ||
transaction: T | ((arg0: T, arg1: Account, arg2: AccountBridge<T>) => T); | ||
expectedStatus?: Partial<TransactionStatusCommon> | ((arg0: Account, arg1: T, arg2: TransactionStatusCommon) => Partial<TransactionStatusCommon>); | ||
test?: (arg0: ExpectFn, arg1: T, arg2: TransactionStatusCommon, arg3: AccountBridge<T>) => any; | ||
apdus?: string; | ||
testSignedOperation?: (arg0: ExpectFn, arg1: SignedOperation, arg2: Account, arg3: T, arg4: TransactionStatusCommon, arg5: AccountBridge<T>) => any; | ||
}>; | ||
transactions?: Array<CurrencyTransaction<T>>; | ||
test?: (arg0: ExpectFn, arg1: Account, arg2: AccountBridge<T>) => any; | ||
@@ -135,0 +136,0 @@ }>; |
/** Add others with union (e.g. "learn" | "market" | "foo") */ | ||
export declare type FeatureId = "learn" | "brazePushNotifications" | "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" | "walletNftGallery" | "receiveStakingFlowConfigDesktop" | "ethStakingProviders" | "storyly" | "firebaseEnvironmentReadOnly"; | ||
export declare type FeatureId = "learn" | "brazePushNotifications" | "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" | "walletNftGallery" | "receiveStakingFlowConfigDesktop" | "ethStakingProviders" | "storyly" | "firebaseEnvironmentReadOnly" | "protectServicesMobile"; | ||
/** We use objects instead of direct booleans for potential future improvements | ||
@@ -4,0 +4,0 @@ like feature versioning etc */ |
{ | ||
"name": "@ledgerhq/types-live", | ||
"version": "6.27.1", | ||
"version": "6.27.2-nightly.0", | ||
"description": "Ledger Live main types.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -175,2 +175,35 @@ // NB this new "bridge" is a re-take of live-desktop bridge ideas | ||
type CurrencyTransaction<T extends TransactionCommon> = { | ||
name: string; | ||
transaction: | ||
| T | ||
| (( | ||
transaction: T, | ||
account: Account, | ||
accountBridge: AccountBridge<T> | ||
) => T); | ||
expectedStatus?: | ||
| Partial<TransactionStatusCommon> | ||
| (( | ||
account: Account, | ||
transaction: T, | ||
status: TransactionStatusCommon | ||
) => Partial<TransactionStatusCommon>); | ||
test?: ( | ||
arg0: ExpectFn, | ||
arg1: T, | ||
arg2: TransactionStatusCommon, | ||
arg3: AccountBridge<T> | ||
) => any; | ||
apdus?: string; | ||
testSignedOperation?: ( | ||
arg0: ExpectFn, | ||
arg1: SignedOperation, | ||
arg2: Account, | ||
arg3: T, | ||
arg4: TransactionStatusCommon, | ||
arg5: AccountBridge<T> | ||
) => any; | ||
}; | ||
/** | ||
@@ -198,28 +231,3 @@ * | ||
FIXME_tests?: Array<string | RegExp>; | ||
transactions?: Array<{ | ||
name: string; | ||
transaction: T | ((arg0: T, arg1: Account, arg2: AccountBridge<T>) => T); | ||
expectedStatus?: | ||
| Partial<TransactionStatusCommon> | ||
| (( | ||
arg0: Account, | ||
arg1: T, | ||
arg2: TransactionStatusCommon | ||
) => Partial<TransactionStatusCommon>); | ||
test?: ( | ||
arg0: ExpectFn, | ||
arg1: T, | ||
arg2: TransactionStatusCommon, | ||
arg3: AccountBridge<T> | ||
) => any; | ||
apdus?: string; | ||
testSignedOperation?: ( | ||
arg0: ExpectFn, | ||
arg1: SignedOperation, | ||
arg2: Account, | ||
arg3: T, | ||
arg4: TransactionStatusCommon, | ||
arg5: AccountBridge<T> | ||
) => any; | ||
}>; | ||
transactions?: Array<CurrencyTransaction<T>>; | ||
test?: (arg0: ExpectFn, arg1: Account, arg2: AccountBridge<T>) => any; | ||
@@ -226,0 +234,0 @@ }>; |
@@ -39,3 +39,4 @@ /** Add others with union (e.g. "learn" | "market" | "foo") */ | ||
| "storyly" | ||
| "firebaseEnvironmentReadOnly"; | ||
| "firebaseEnvironmentReadOnly" | ||
| "protectServicesMobile"; | ||
@@ -42,0 +43,0 @@ /** We use objects instead of direct booleans for potential future improvements |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
4303
345598
1