Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ledgerhq/types-live

Package Overview
Dependencies
Maintainers
20
Versions
249
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ledgerhq/types-live - npm Package Compare versions

Comparing version 6.27.1 to 6.27.2-nightly.0

6

CHANGELOG.md
# @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 @@

17

lib-es/bridge.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc