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

@ledgerhq/types-live

Package Overview
Dependencies
Maintainers
7
Versions
259
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.46.0 to 6.46.1-nightly.0

6

CHANGELOG.md
# @ledgerhq/types-live
## 6.46.1-nightly.0
### Patch Changes
- [#6645](https://github.com/LedgerHQ/ledger-live/pull/6645) [`d37d8df`](https://github.com/LedgerHQ/ledger-live/commit/d37d8df2482d1c7494401201c215b0a941bdb9f1) Thanks [@ofreyssinet-ledger](https://github.com/ofreyssinet-ledger)! - Add new storyly instance id
## 6.46.0

@@ -4,0 +10,0 @@

17

lib-es/bridge.d.ts

@@ -66,3 +66,3 @@ import { BigNumber } from "bignumber.js";

export interface CurrencyBridge {
preload(currency: CryptoCurrency): Promise<Record<string, any>>;
preload(currency: CryptoCurrency): Promise<Record<string, any> | Array<unknown> | void>;
hydrate(data: unknown, currency: CryptoCurrency): void;

@@ -145,2 +145,9 @@ scanAccounts(info: ScanInfo): Observable<ScanAccountEvent>;

};
export type AccountTestData<T extends TransactionCommon> = {
raw: AccountRaw;
implementations?: string[];
FIXME_tests?: Array<string | RegExp>;
transactions?: Array<CurrencyTransaction<T>>;
test?: (arg0: ExpectFn, arg1: Account, arg2: AccountBridge<T>) => any;
};
/**

@@ -161,9 +168,3 @@ *

}>;
accounts?: Array<{
implementations?: string[];
raw: AccountRaw;
FIXME_tests?: Array<string | RegExp>;
transactions?: Array<CurrencyTransaction<T>>;
test?: (arg0: ExpectFn, arg1: Account, arg2: AccountBridge<T>) => any;
}>;
accounts?: Array<AccountTestData<T>>;
test?: (arg0: ExpectFn, arg1: CurrencyBridge) => any;

@@ -170,0 +171,0 @@ };

@@ -67,3 +67,3 @@ import { ABTestingVariants } from "./ABTesting";

currencyOptimism: DefaultFeature;
currencyOptimismGoerli: DefaultFeature;
currencyOptimismSepolia: DefaultFeature;
currencyArbitrum: DefaultFeature;

@@ -104,3 +104,3 @@ currencyArbitrumSepolia: DefaultFeature;

currencyLinea: DefaultFeature;
currencyLineaGoerli: DefaultFeature;
currencyLineaTesnet: DefaultFeature;
};

@@ -121,2 +121,3 @@ /**

mockFeature: Feature_MockFeature;
buySellUi: Feature_BuySellUiManifest;
multibuyNavigation: Feature_MultibuyNavigation;

@@ -165,2 +166,4 @@ referralProgramDesktopSidebar: Feature_ReferralProgramDesktopSidebar;

supportDeviceEuropa: Feature_SupportDeviceEuropa;
lldRefreshMarketData: Feature_LldRefreshMarketData;
spamReportNfts: Feature_SpamReportNfts;
};

@@ -410,2 +413,5 @@ /**

variant: ABTestingVariants;
refreshRate: number;
top: number;
supported: boolean;
}>;

@@ -415,2 +421,8 @@ export type Feature_NftsFromSimpleHash = Feature<{

}>;
export type Feature_LldRefreshMarketData = Feature<{
refreshTime: number;
}>;
export type Feature_BuySellUiManifest = Feature<{
manifestId: string;
}>;
export type Feature_CounterValue = DefaultFeature;

@@ -437,2 +449,3 @@ export type Feature_MockFeature = DefaultFeature;

export type Feature_LlmChatbotSupport = DefaultFeature;
export type Feature_SpamReportNfts = DefaultFeature;
/**

@@ -439,0 +452,0 @@ * Utils types.

@@ -10,5 +10,10 @@ import { DeviceModelId } from "@ledgerhq/types-devices";

personalizeMock = "personalizeMock",
assetsTransferMock = "assetsTransferMock",
buyCryptoMock = "buyCryptoMock",
customImageMock = "customImageMock",
recoverMock = "recoverMock",
customImage = "customImage",
assetsTransfer = "assetsTransfer",
buyCrypto = "buyCrypto"
buyCrypto = "buyCrypto",
recover = "recover"
}

@@ -23,2 +28,3 @@ export type WithNavigationParams = {

deviceModelId: DeviceModelId;
protectId: string;
}) => [screen: any] | [screen: any, navigationParams: any];

@@ -32,4 +38,5 @@ };

openModalCallback: (modalName: any) => void;
navigationCallback: (route: string) => void;
navigationCallback: (location: Record<string, unknown> | string) => void;
deviceModelId: DeviceModelId;
protectId: string;
}) => void;

@@ -81,4 +88,17 @@ };

* */
actionCompletedPopupLabel: string;
actionCompletedPopupLabel?: string;
/**
* Async function that returns true if the action has already been completed prior to entering
* the post-onboarding and false otherwise
*/
getIsAlreadyCompleted?: (args: {
protectId: string;
}) => Promise<boolean>;
/**
* Used to set the action as complete when clicking on it.
* Especially useful when the action opens a live app and we can't know
* when the action as been successfully finished
*/
shouldCompleteOnStart?: boolean;
/**
* Value to use in the "button" property of the event sent when the user

@@ -85,0 +105,0 @@ * triggers the action by pressing the button in the post onboarding hub.

@@ -9,6 +9,11 @@ /**

PostOnboardingActionId["personalizeMock"] = "personalizeMock";
PostOnboardingActionId["assetsTransferMock"] = "assetsTransferMock";
PostOnboardingActionId["buyCryptoMock"] = "buyCryptoMock";
PostOnboardingActionId["customImageMock"] = "customImageMock";
PostOnboardingActionId["recoverMock"] = "recoverMock";
PostOnboardingActionId["customImage"] = "customImage";
PostOnboardingActionId["assetsTransfer"] = "assetsTransfer";
PostOnboardingActionId["buyCrypto"] = "buyCrypto";
PostOnboardingActionId["recover"] = "recover";
})(PostOnboardingActionId || (PostOnboardingActionId = {}));
//# sourceMappingURL=postOnboarding.js.map
export declare enum StorylyInstanceID {
recoverySeed = "recoverySeed",
backupRecoverySeed = "backupRecoverySeed",
testStory = "testStory",

@@ -4,0 +5,0 @@ storylyExample = "storylyExample"

export var StorylyInstanceID;
(function (StorylyInstanceID) {
StorylyInstanceID["recoverySeed"] = "recoverySeed";
StorylyInstanceID["backupRecoverySeed"] = "backupRecoverySeed";
StorylyInstanceID["testStory"] = "testStory";

@@ -5,0 +6,0 @@ StorylyInstanceID["storylyExample"] = "storylyExample";

@@ -66,3 +66,3 @@ import { BigNumber } from "bignumber.js";

export interface CurrencyBridge {
preload(currency: CryptoCurrency): Promise<Record<string, any>>;
preload(currency: CryptoCurrency): Promise<Record<string, any> | Array<unknown> | void>;
hydrate(data: unknown, currency: CryptoCurrency): void;

@@ -145,2 +145,9 @@ scanAccounts(info: ScanInfo): Observable<ScanAccountEvent>;

};
export type AccountTestData<T extends TransactionCommon> = {
raw: AccountRaw;
implementations?: string[];
FIXME_tests?: Array<string | RegExp>;
transactions?: Array<CurrencyTransaction<T>>;
test?: (arg0: ExpectFn, arg1: Account, arg2: AccountBridge<T>) => any;
};
/**

@@ -161,9 +168,3 @@ *

}>;
accounts?: Array<{
implementations?: string[];
raw: AccountRaw;
FIXME_tests?: Array<string | RegExp>;
transactions?: Array<CurrencyTransaction<T>>;
test?: (arg0: ExpectFn, arg1: Account, arg2: AccountBridge<T>) => any;
}>;
accounts?: Array<AccountTestData<T>>;
test?: (arg0: ExpectFn, arg1: CurrencyBridge) => any;

@@ -170,0 +171,0 @@ };

@@ -67,3 +67,3 @@ import { ABTestingVariants } from "./ABTesting";

currencyOptimism: DefaultFeature;
currencyOptimismGoerli: DefaultFeature;
currencyOptimismSepolia: DefaultFeature;
currencyArbitrum: DefaultFeature;

@@ -104,3 +104,3 @@ currencyArbitrumSepolia: DefaultFeature;

currencyLinea: DefaultFeature;
currencyLineaGoerli: DefaultFeature;
currencyLineaTesnet: DefaultFeature;
};

@@ -121,2 +121,3 @@ /**

mockFeature: Feature_MockFeature;
buySellUi: Feature_BuySellUiManifest;
multibuyNavigation: Feature_MultibuyNavigation;

@@ -165,2 +166,4 @@ referralProgramDesktopSidebar: Feature_ReferralProgramDesktopSidebar;

supportDeviceEuropa: Feature_SupportDeviceEuropa;
lldRefreshMarketData: Feature_LldRefreshMarketData;
spamReportNfts: Feature_SpamReportNfts;
};

@@ -410,2 +413,5 @@ /**

variant: ABTestingVariants;
refreshRate: number;
top: number;
supported: boolean;
}>;

@@ -415,2 +421,8 @@ export type Feature_NftsFromSimpleHash = Feature<{

}>;
export type Feature_LldRefreshMarketData = Feature<{
refreshTime: number;
}>;
export type Feature_BuySellUiManifest = Feature<{
manifestId: string;
}>;
export type Feature_CounterValue = DefaultFeature;

@@ -437,2 +449,3 @@ export type Feature_MockFeature = DefaultFeature;

export type Feature_LlmChatbotSupport = DefaultFeature;
export type Feature_SpamReportNfts = DefaultFeature;
/**

@@ -439,0 +452,0 @@ * Utils types.

@@ -10,5 +10,10 @@ import { DeviceModelId } from "@ledgerhq/types-devices";

personalizeMock = "personalizeMock",
assetsTransferMock = "assetsTransferMock",
buyCryptoMock = "buyCryptoMock",
customImageMock = "customImageMock",
recoverMock = "recoverMock",
customImage = "customImage",
assetsTransfer = "assetsTransfer",
buyCrypto = "buyCrypto"
buyCrypto = "buyCrypto",
recover = "recover"
}

@@ -23,2 +28,3 @@ export type WithNavigationParams = {

deviceModelId: DeviceModelId;
protectId: string;
}) => [screen: any] | [screen: any, navigationParams: any];

@@ -32,4 +38,5 @@ };

openModalCallback: (modalName: any) => void;
navigationCallback: (route: string) => void;
navigationCallback: (location: Record<string, unknown> | string) => void;
deviceModelId: DeviceModelId;
protectId: string;
}) => void;

@@ -81,4 +88,17 @@ };

* */
actionCompletedPopupLabel: string;
actionCompletedPopupLabel?: string;
/**
* Async function that returns true if the action has already been completed prior to entering
* the post-onboarding and false otherwise
*/
getIsAlreadyCompleted?: (args: {
protectId: string;
}) => Promise<boolean>;
/**
* Used to set the action as complete when clicking on it.
* Especially useful when the action opens a live app and we can't know
* when the action as been successfully finished
*/
shouldCompleteOnStart?: boolean;
/**
* Value to use in the "button" property of the event sent when the user

@@ -85,0 +105,0 @@ * triggers the action by pressing the button in the post onboarding hub.

@@ -12,6 +12,11 @@ "use strict";

PostOnboardingActionId["personalizeMock"] = "personalizeMock";
PostOnboardingActionId["assetsTransferMock"] = "assetsTransferMock";
PostOnboardingActionId["buyCryptoMock"] = "buyCryptoMock";
PostOnboardingActionId["customImageMock"] = "customImageMock";
PostOnboardingActionId["recoverMock"] = "recoverMock";
PostOnboardingActionId["customImage"] = "customImage";
PostOnboardingActionId["assetsTransfer"] = "assetsTransfer";
PostOnboardingActionId["buyCrypto"] = "buyCrypto";
PostOnboardingActionId["recover"] = "recover";
})(PostOnboardingActionId || (exports.PostOnboardingActionId = PostOnboardingActionId = {}));
//# sourceMappingURL=postOnboarding.js.map
export declare enum StorylyInstanceID {
recoverySeed = "recoverySeed",
backupRecoverySeed = "backupRecoverySeed",
testStory = "testStory",

@@ -4,0 +5,0 @@ storylyExample = "storylyExample"

@@ -7,2 +7,3 @@ "use strict";

StorylyInstanceID["recoverySeed"] = "recoverySeed";
StorylyInstanceID["backupRecoverySeed"] = "backupRecoverySeed";
StorylyInstanceID["testStory"] = "testStory";

@@ -9,0 +10,0 @@ StorylyInstanceID["storylyExample"] = "storylyExample";

{
"name": "@ledgerhq/types-live",
"version": "6.46.0",
"version": "6.46.1-nightly.0",
"description": "Ledger Live main types.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -98,3 +98,3 @@ // NB this new "bridge" is a re-take of live-desktop bridge ideas

// fail if data was not able to load.
preload(currency: CryptoCurrency): Promise<Record<string, any>>;
preload(currency: CryptoCurrency): Promise<Record<string, any> | Array<unknown> | void>;
// reinject the preloaded data (typically if it was cached)

@@ -228,2 +228,10 @@ // method need to treat the data object as unsafe and validate all fields / be backward compatible.

export type AccountTestData<T extends TransactionCommon> = {
raw: AccountRaw;
implementations?: string[];
FIXME_tests?: Array<string | RegExp>;
transactions?: Array<CurrencyTransaction<T>>;
test?: (arg0: ExpectFn, arg1: Account, arg2: AccountBridge<T>) => any;
};
/**

@@ -244,9 +252,3 @@ *

}>;
accounts?: Array<{
implementations?: string[];
raw: AccountRaw;
FIXME_tests?: Array<string | RegExp>;
transactions?: Array<CurrencyTransaction<T>>;
test?: (arg0: ExpectFn, arg1: Account, arg2: AccountBridge<T>) => any;
}>;
accounts?: Array<AccountTestData<T>>;
test?: (arg0: ExpectFn, arg1: CurrencyBridge) => any;

@@ -253,0 +255,0 @@ };

@@ -79,3 +79,3 @@ import { ABTestingVariants } from "./ABTesting";

currencyOptimism: DefaultFeature;
currencyOptimismGoerli: DefaultFeature;
currencyOptimismSepolia: DefaultFeature;
currencyArbitrum: DefaultFeature;

@@ -116,3 +116,3 @@ currencyArbitrumSepolia: DefaultFeature;

currencyLinea: DefaultFeature;
currencyLineaGoerli: DefaultFeature;
currencyLineaTesnet: DefaultFeature;
};

@@ -134,2 +134,3 @@

mockFeature: Feature_MockFeature;
buySellUi: Feature_BuySellUiManifest;
multibuyNavigation: Feature_MultibuyNavigation;

@@ -178,2 +179,4 @@ referralProgramDesktopSidebar: Feature_ReferralProgramDesktopSidebar;

supportDeviceEuropa: Feature_SupportDeviceEuropa;
lldRefreshMarketData: Feature_LldRefreshMarketData;
spamReportNfts: Feature_SpamReportNfts;
};

@@ -451,2 +454,5 @@

variant: ABTestingVariants;
refreshRate: number;
top: number;
supported: boolean;
}>;

@@ -458,2 +464,10 @@

export type Feature_LldRefreshMarketData = Feature<{
refreshTime: number;
}>;
export type Feature_BuySellUiManifest = Feature<{
manifestId: string; // id of the app to use for the Buy/Sell UI, e.g. "multibuy-v2"
}>;
export type Feature_CounterValue = DefaultFeature;

@@ -480,3 +494,3 @@ export type Feature_MockFeature = DefaultFeature;

export type Feature_LlmChatbotSupport = DefaultFeature;
export type Feature_SpamReportNfts = DefaultFeature;
/**

@@ -483,0 +497,0 @@ * Utils types.

@@ -11,5 +11,10 @@ import { DeviceModelId } from "@ledgerhq/types-devices";

personalizeMock = "personalizeMock",
assetsTransferMock = "assetsTransferMock",
buyCryptoMock = "buyCryptoMock",
customImageMock = "customImageMock",
recoverMock = "recoverMock",
customImage = "customImage",
assetsTransfer = "assetsTransfer",
buyCrypto = "buyCrypto",
recover = "recover",
}

@@ -25,2 +30,3 @@

deviceModelId: DeviceModelId;
protectId: string;
}) => [screen: any] | [screen: any, navigationParams: any];

@@ -35,4 +41,5 @@ };

openModalCallback: (modalName: any) => void;
navigationCallback: (route: string) => void;
navigationCallback: (location: Record<string, unknown> | string) => void;
deviceModelId: DeviceModelId;
protectId: string;
}) => void;

@@ -92,5 +99,18 @@ /**

* */
actionCompletedPopupLabel: string;
actionCompletedPopupLabel?: string;
/**
* Async function that returns true if the action has already been completed prior to entering
* the post-onboarding and false otherwise
*/
getIsAlreadyCompleted?: (args: { protectId: string }) => Promise<boolean>;
/**
* Used to set the action as complete when clicking on it.
* Especially useful when the action opens a live app and we can't know
* when the action as been successfully finished
*/
shouldCompleteOnStart?: boolean;
/**
* Value to use in the "button" property of the event sent when the user

@@ -97,0 +117,0 @@ * triggers the action by pressing the button in the post onboarding hub.

export enum StorylyInstanceID {
recoverySeed = "recoverySeed",
backupRecoverySeed = "backupRecoverySeed",
testStory = "testStory",

@@ -4,0 +5,0 @@ storylyExample = "storylyExample",

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

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