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

@ledgerhq/types-live

Package Overview
Dependencies
Maintainers
21
Versions
265
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.38.1 to 6.39.0-next.0

10

CHANGELOG.md
# @ledgerhq/types-live
## 6.39.0-next.0
### Minor Changes
- [#4235](https://github.com/LedgerHQ/ledger-live/pull/4235) [`8e9df43a0c`](https://github.com/LedgerHQ/ledger-live/commit/8e9df43a0cd00a2065b494439f300f96724b8eb8) Thanks [@haammar-ledger](https://github.com/haammar-ledger)! - Better typing for the Operation.extra field
### Patch Changes
- [#3928](https://github.com/LedgerHQ/ledger-live/pull/3928) [`45be23c776`](https://github.com/LedgerHQ/ledger-live/commit/45be23c77666697dbe395f836ab592062173d5cb) Thanks [@mcayuelas-ledger](https://github.com/mcayuelas-ledger)! - Add new FF for banners in Deposit flow
## 6.38.1

@@ -4,0 +14,0 @@

1

lib-es/bridge.d.ts

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

FIXME_ignorePreloadFields?: string[];
IgnorePrepareTransactionFields?: string[];
mockDeviceOptions?: any;

@@ -151,0 +152,0 @@ scanAccounts?: Array<{

2

lib-es/feature.d.ts
/** Add others with union (e.g. "learn" | "market" | "foo") */
export type FeatureId = "learn" | "brazePushNotifications" | "brazeLearn" | "llmNewDeviceSelection" | "llmNewFirmwareUpdateUx" | "ratingsPrompt" | "npsRatingsPrompt" | "counterValue" | "deviceInitialApps" | "buyDeviceFromLive" | "ptxSmartRouting" | "ptxEarn" | "currencyAvalancheCChain" | "currencyStacks" | "currencyOptimism" | "currencyOptimismGoerli" | "currencyArbitrum" | "currencyArbitrumGoerli" | "currencyRsk" | "currencyBittorrent" | "currencyKavaEvm" | "currencyEvmosEvm" | "currencyEnergyWeb" | "currencyAstar" | "currencyMetis" | "currencyBoba" | "currencyMoonriver" | "currencyVelasEvm" | "currencySyscoin" | "currencyAxelar" | "currencySecretNetwork" | "currencyDesmos" | "currencyUmee" | "currencyStargaze" | "currencyOnomy" | "currencyPersistence" | "currencyQuicksilver" | "currencyInternetComputer" | "currencyTelosEvm" | "currencyCoreum" | "currencyPolygonZkEvm" | "currencyPolygonZkEvmTestnet" | "currencyBase" | "currencyBaseGoerli" | "currencyKlaytn" | "ptxSmartRoutingMobile" | "mockFeature" | "multibuyNavigation" | "syncOnboarding" | "walletConnectLiveApp" | "walletConnectEntryPoint" | "customImage" | "referralProgramDiscoverCard" | "referralProgramDesktopBanner" | "referralProgramDesktopSidebar" | "referralProgramMobile" | "disableNftSend" | "disableNftLedgerMarket" | "disableNftRaribleOpensea" | "walletNftGallery" | "receiveStakingFlowConfigDesktop" | "ethStakingProviders" | "storyly" | "staxWelcomeScreen" | "postOnboardingClaimNft" | "postOnboardingAssetsTransfer" | "firebaseEnvironmentReadOnly" | "protectServicesMobile" | "protectServicesDesktop" | "ptxServiceCtaExchangeDrawer" | "ptxServiceCtaScreens" | "swapWalletApiPartnerList" | "stakePrograms" | "portfolioExchangeBanner" | "objkt" | "editEthTx" | "stakeAccountBanner" | "newsfeedPage" | "domainInputResolution" | "discover" | "protectServicesDiscoverDesktop" | "protectServicesDesktop" | "transactionsAlerts" | "editEthTx" | "listAppsV2";
export type FeatureId = "learn" | "brazePushNotifications" | "brazeLearn" | "llmNewDeviceSelection" | "llmNewFirmwareUpdateUx" | "ratingsPrompt" | "npsRatingsPrompt" | "counterValue" | "deviceInitialApps" | "buyDeviceFromLive" | "ptxEarn" | "currencyAvalancheCChain" | "currencyStacks" | "currencyOptimism" | "currencyOptimismGoerli" | "currencyArbitrum" | "currencyArbitrumGoerli" | "currencyRsk" | "currencyBittorrent" | "currencyKavaEvm" | "currencyEvmosEvm" | "currencyEnergyWeb" | "currencyAstar" | "currencyMetis" | "currencyBoba" | "currencyMoonriver" | "currencyVelasEvm" | "currencySyscoin" | "currencyAxelar" | "currencySecretNetwork" | "currencyDesmos" | "currencyUmee" | "currencyStargaze" | "currencyOnomy" | "currencyPersistence" | "currencyQuicksilver" | "currencyInternetComputer" | "depositNetworkBannerMobile" | "depositWithdrawBannerMobile" | "currencyTelosEvm" | "currencyCoreum" | "currencyPolygonZkEvm" | "currencyPolygonZkEvmTestnet" | "currencyBase" | "currencyBaseGoerli" | "currencyKlaytn" | "mockFeature" | "multibuyNavigation" | "syncOnboarding" | "walletConnectLiveApp" | "walletConnectEntryPoint" | "customImage" | "referralProgramDiscoverCard" | "referralProgramDesktopBanner" | "referralProgramDesktopSidebar" | "referralProgramMobile" | "disableNftSend" | "disableNftLedgerMarket" | "disableNftRaribleOpensea" | "walletNftGallery" | "receiveStakingFlowConfigDesktop" | "ethStakingProviders" | "storyly" | "staxWelcomeScreen" | "postOnboardingClaimNft" | "postOnboardingAssetsTransfer" | "firebaseEnvironmentReadOnly" | "protectServicesMobile" | "protectServicesDesktop" | "ptxServiceCtaExchangeDrawer" | "ptxServiceCtaScreens" | "swapWalletApiPartnerList" | "stakePrograms" | "portfolioExchangeBanner" | "objkt" | "editEthTx" | "stakeAccountBanner" | "newsfeedPage" | "domainInputResolution" | "discover" | "protectServicesDiscoverDesktop" | "transactionsAlerts" | "listAppsV2";
/** We use objects instead of direct booleans for potential future improvements

@@ -4,0 +4,0 @@ like feature versioning etc */

@@ -9,5 +9,5 @@ import type { BigNumber } from "bignumber.js";

/**
*
* An Operation is the Ledger Live abstraction of a transaction for any blockchain
*/
export type Operation = {
export type Operation<Extra = unknown> = {
id: string;

@@ -29,3 +29,2 @@ hash: string;

date: Date;
extra: Record<string, any>;
hasFailed?: boolean;

@@ -36,7 +35,5 @@ subOperations?: Operation[];

transactionRaw?: TransactionCommonRaw;
extra: Extra;
};
/**
*
*/
export type OperationRaw = {
export type OperationRaw<ExtraRaw = unknown> = {
id: string;

@@ -59,3 +56,2 @@ hash: string;

date: string;
extra: Record<string, any>;
subOperations?: OperationRaw[];

@@ -65,6 +61,4 @@ internalOperations?: OperationRaw[];

transactionRaw?: TransactionCommonRaw;
extra: ExtraRaw;
};
/**
*
*/
export type DailyOperationsSection = {

@@ -74,5 +68,2 @@ day: Date;

};
/**
*
*/
export type DailyOperations = {

@@ -79,0 +70,0 @@ sections: DailyOperationsSection[];

@@ -11,4 +11,4 @@ import type { BigNumber } from "bignumber.js";

signature: string;
signatureRaw?: Record<string, any>;
expirationDate: Date | null | undefined;
rawData?: Record<string, unknown>;
expirationDate?: Date;
};

@@ -21,4 +21,4 @@ /**

signature: string;
signatureRaw?: Record<string, any>;
expirationDate: string | null | undefined;
rawData?: Record<string, unknown>;
expirationDate?: string;
};

@@ -25,0 +25,0 @@ /**

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

FIXME_ignorePreloadFields?: string[];
IgnorePrepareTransactionFields?: string[];
mockDeviceOptions?: any;

@@ -151,0 +152,0 @@ scanAccounts?: Array<{

/** Add others with union (e.g. "learn" | "market" | "foo") */
export type FeatureId = "learn" | "brazePushNotifications" | "brazeLearn" | "llmNewDeviceSelection" | "llmNewFirmwareUpdateUx" | "ratingsPrompt" | "npsRatingsPrompt" | "counterValue" | "deviceInitialApps" | "buyDeviceFromLive" | "ptxSmartRouting" | "ptxEarn" | "currencyAvalancheCChain" | "currencyStacks" | "currencyOptimism" | "currencyOptimismGoerli" | "currencyArbitrum" | "currencyArbitrumGoerli" | "currencyRsk" | "currencyBittorrent" | "currencyKavaEvm" | "currencyEvmosEvm" | "currencyEnergyWeb" | "currencyAstar" | "currencyMetis" | "currencyBoba" | "currencyMoonriver" | "currencyVelasEvm" | "currencySyscoin" | "currencyAxelar" | "currencySecretNetwork" | "currencyDesmos" | "currencyUmee" | "currencyStargaze" | "currencyOnomy" | "currencyPersistence" | "currencyQuicksilver" | "currencyInternetComputer" | "currencyTelosEvm" | "currencyCoreum" | "currencyPolygonZkEvm" | "currencyPolygonZkEvmTestnet" | "currencyBase" | "currencyBaseGoerli" | "currencyKlaytn" | "ptxSmartRoutingMobile" | "mockFeature" | "multibuyNavigation" | "syncOnboarding" | "walletConnectLiveApp" | "walletConnectEntryPoint" | "customImage" | "referralProgramDiscoverCard" | "referralProgramDesktopBanner" | "referralProgramDesktopSidebar" | "referralProgramMobile" | "disableNftSend" | "disableNftLedgerMarket" | "disableNftRaribleOpensea" | "walletNftGallery" | "receiveStakingFlowConfigDesktop" | "ethStakingProviders" | "storyly" | "staxWelcomeScreen" | "postOnboardingClaimNft" | "postOnboardingAssetsTransfer" | "firebaseEnvironmentReadOnly" | "protectServicesMobile" | "protectServicesDesktop" | "ptxServiceCtaExchangeDrawer" | "ptxServiceCtaScreens" | "swapWalletApiPartnerList" | "stakePrograms" | "portfolioExchangeBanner" | "objkt" | "editEthTx" | "stakeAccountBanner" | "newsfeedPage" | "domainInputResolution" | "discover" | "protectServicesDiscoverDesktop" | "protectServicesDesktop" | "transactionsAlerts" | "editEthTx" | "listAppsV2";
export type FeatureId = "learn" | "brazePushNotifications" | "brazeLearn" | "llmNewDeviceSelection" | "llmNewFirmwareUpdateUx" | "ratingsPrompt" | "npsRatingsPrompt" | "counterValue" | "deviceInitialApps" | "buyDeviceFromLive" | "ptxEarn" | "currencyAvalancheCChain" | "currencyStacks" | "currencyOptimism" | "currencyOptimismGoerli" | "currencyArbitrum" | "currencyArbitrumGoerli" | "currencyRsk" | "currencyBittorrent" | "currencyKavaEvm" | "currencyEvmosEvm" | "currencyEnergyWeb" | "currencyAstar" | "currencyMetis" | "currencyBoba" | "currencyMoonriver" | "currencyVelasEvm" | "currencySyscoin" | "currencyAxelar" | "currencySecretNetwork" | "currencyDesmos" | "currencyUmee" | "currencyStargaze" | "currencyOnomy" | "currencyPersistence" | "currencyQuicksilver" | "currencyInternetComputer" | "depositNetworkBannerMobile" | "depositWithdrawBannerMobile" | "currencyTelosEvm" | "currencyCoreum" | "currencyPolygonZkEvm" | "currencyPolygonZkEvmTestnet" | "currencyBase" | "currencyBaseGoerli" | "currencyKlaytn" | "mockFeature" | "multibuyNavigation" | "syncOnboarding" | "walletConnectLiveApp" | "walletConnectEntryPoint" | "customImage" | "referralProgramDiscoverCard" | "referralProgramDesktopBanner" | "referralProgramDesktopSidebar" | "referralProgramMobile" | "disableNftSend" | "disableNftLedgerMarket" | "disableNftRaribleOpensea" | "walletNftGallery" | "receiveStakingFlowConfigDesktop" | "ethStakingProviders" | "storyly" | "staxWelcomeScreen" | "postOnboardingClaimNft" | "postOnboardingAssetsTransfer" | "firebaseEnvironmentReadOnly" | "protectServicesMobile" | "protectServicesDesktop" | "ptxServiceCtaExchangeDrawer" | "ptxServiceCtaScreens" | "swapWalletApiPartnerList" | "stakePrograms" | "portfolioExchangeBanner" | "objkt" | "editEthTx" | "stakeAccountBanner" | "newsfeedPage" | "domainInputResolution" | "discover" | "protectServicesDiscoverDesktop" | "transactionsAlerts" | "listAppsV2";
/** We use objects instead of direct booleans for potential future improvements

@@ -4,0 +4,0 @@ like feature versioning etc */

@@ -9,5 +9,5 @@ import type { BigNumber } from "bignumber.js";

/**
*
* An Operation is the Ledger Live abstraction of a transaction for any blockchain
*/
export type Operation = {
export type Operation<Extra = unknown> = {
id: string;

@@ -29,3 +29,2 @@ hash: string;

date: Date;
extra: Record<string, any>;
hasFailed?: boolean;

@@ -36,7 +35,5 @@ subOperations?: Operation[];

transactionRaw?: TransactionCommonRaw;
extra: Extra;
};
/**
*
*/
export type OperationRaw = {
export type OperationRaw<ExtraRaw = unknown> = {
id: string;

@@ -59,3 +56,2 @@ hash: string;

date: string;
extra: Record<string, any>;
subOperations?: OperationRaw[];

@@ -65,6 +61,4 @@ internalOperations?: OperationRaw[];

transactionRaw?: TransactionCommonRaw;
extra: ExtraRaw;
};
/**
*
*/
export type DailyOperationsSection = {

@@ -74,5 +68,2 @@ day: Date;

};
/**
*
*/
export type DailyOperations = {

@@ -79,0 +70,0 @@ sections: DailyOperationsSection[];

@@ -11,4 +11,4 @@ import type { BigNumber } from "bignumber.js";

signature: string;
signatureRaw?: Record<string, any>;
expirationDate: Date | null | undefined;
rawData?: Record<string, unknown>;
expirationDate?: Date;
};

@@ -21,4 +21,4 @@ /**

signature: string;
signatureRaw?: Record<string, any>;
expirationDate: string | null | undefined;
rawData?: Record<string, unknown>;
expirationDate?: string;
};

@@ -25,0 +25,0 @@ /**

{
"name": "@ledgerhq/types-live",
"version": "6.38.1",
"version": "6.39.0-next.0",
"description": "Ledger Live main types.",

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

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

FIXME_ignorePreloadFields?: string[];
IgnorePrepareTransactionFields?: string[];
mockDeviceOptions?: any;

@@ -234,0 +235,0 @@ scanAccounts?: Array<{

@@ -13,3 +13,2 @@ /** Add others with union (e.g. "learn" | "market" | "foo") */

| "buyDeviceFromLive"
| "ptxSmartRouting"
| "ptxEarn"

@@ -42,2 +41,4 @@ | "currencyAvalancheCChain"

| "currencyInternetComputer"
| "depositNetworkBannerMobile"
| "depositWithdrawBannerMobile"
| "currencyTelosEvm"

@@ -50,3 +51,2 @@ | "currencyCoreum"

| "currencyKlaytn"
| "ptxSmartRoutingMobile"
| "mockFeature"

@@ -87,5 +87,3 @@ | "multibuyNavigation"

| "protectServicesDiscoverDesktop"
| "protectServicesDesktop"
| "transactionsAlerts"
| "editEthTx"
| "listAppsV2";

@@ -92,0 +90,0 @@

@@ -54,5 +54,5 @@ import type { BigNumber } from "bignumber.js";

/**
*
* An Operation is the Ledger Live abstraction of a transaction for any blockchain
*/
export type Operation = {
export type Operation<Extra = unknown> = {
// unique identifier (usually hash)

@@ -96,4 +96,2 @@ id: string;

date: Date;
// Extra crypto specific fields
extra: Record<string, any>;
// Has the transaction actually failed? (some blockchain like ethereum will have failed tx appearing)

@@ -110,8 +108,7 @@ hasFailed?: boolean;

transactionRaw?: TransactionCommonRaw;
// Extra crypto specific fields
extra: Extra;
};
/**
*
*/
export type OperationRaw = {
export type OperationRaw<ExtraRaw = unknown> = {
id: string;

@@ -136,4 +133,2 @@ hash: string;

date: string;
extra: Record<string, any>;
// would be a serializable version of the extra
subOperations?: OperationRaw[];

@@ -146,7 +141,6 @@ // in context of accounts that have internal transactions that belong to a parent transaction

transactionRaw?: TransactionCommonRaw;
// would be a serializable version of the extra
extra: ExtraRaw;
};
/**
*
*/
export type DailyOperationsSection = {

@@ -157,5 +151,2 @@ day: Date;

/**
*
*/
export type DailyOperations = {

@@ -162,0 +153,0 @@ // operations grouped by day

@@ -15,6 +15,6 @@ import type { BigNumber } from "bignumber.js";

signature: string;
// sometimes a coin needs the raw object (it must be serializable)
signatureRaw?: Record<string, any>;
// sometimes a coin needs additional data along with the signature (it must be serializable)
rawData?: Record<string, unknown>;
// date calculated as expiring
expirationDate: Date | null | undefined;
expirationDate?: Date;
};

@@ -28,4 +28,4 @@

signature: string;
signatureRaw?: Record<string, any>;
expirationDate: string | null | undefined;
rawData?: Record<string, unknown>;
expirationDate?: string;
};

@@ -32,0 +32,0 @@

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