New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ledgerhq/types-live

Package Overview
Dependencies
Maintainers
8
Versions
274
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.58.0 to 6.59.0-next.0

3

lib-es/account.d.ts
import type { BigNumber } from "bignumber.js";
import type { CryptoCurrency, TokenCurrency } from "@ledgerhq/types-cryptoassets";
import type { CryptoCurrency, CryptoOrTokenCurrency, TokenCurrency } from "@ledgerhq/types-cryptoassets";
import type { OperationRaw, Operation } from "./operation";

@@ -145,2 +145,3 @@ import type { DerivationMode } from "./derivation";

};
export declare function getCurrencyForAccount(account: AccountLike): CryptoOrTokenCurrency;
//# sourceMappingURL=account.d.ts.map

@@ -1,2 +0,9 @@

export {};
export function getCurrencyForAccount(account) {
switch (account.type) {
case "Account":
return account.currency;
case "TokenAccount":
return account.token;
}
}
//# sourceMappingURL=account.js.map

@@ -5,3 +5,4 @@ /// <reference types="node" />

import type { CryptoCurrency } from "@ledgerhq/types-cryptoassets";
import type { AccountLike, Account, AccountRaw } from "./account";
import type { DeviceModelId } from "@ledgerhq/types-devices";
import type { AccountLike, Account, AccountRaw, TokenAccount, TokenAccountRaw } from "./account";
import type { SignOperationEvent, SignedOperation, TransactionCommon, TransactionStatusCommon } from "./transaction";

@@ -51,2 +52,3 @@ import type { Operation, OperationExtra, OperationExtraRaw } from "./operation";

deviceId: DeviceId;
deviceModelId?: DeviceModelId;
};

@@ -134,2 +136,18 @@ /**

/**
* This function mutates the 'tokenAccountRaw' object in-place to add any extra fields that the coin may need to set.
* It is called during the serialization mechanism
*
* @param {TokenAccount} tokenAccount - The original token account object.
* @param {TokenAccountRaw} tokenAccountRaw - The token account in its serialized form.
*/
assignToTokenAccountRaw?: (tokenAccount: TokenAccount, tokenAccountRaw: TokenAccountRaw) => void;
/**
* This function mutates the 'tokenAccount' object in-place to add any extra fields that the coin may need to set.
* It is called during the deserialization mechanism
*
* @param {TokenAccountRaw} tokenAccountRaw - The token account in its serialized form.
* @param {TokenAccount} tokenAccount - The original token account object.
*/
assignFromTokenAccountRaw?: (tokenAccountRaw: TokenAccountRaw, tokenAccount: TokenAccount) => void;
/**
* This function mutates the 'account' object to extend it with any extra fields of the coin.

@@ -136,0 +154,0 @@ * For instance bitcoinResources needs to be created.

@@ -195,2 +195,4 @@ import { ABTestingVariants } from "./ABTesting";

llmAccountListUI: DefaultFeature;
llmLedgerSyncEntryPoints: Feature_LlmLedgerSyncEntryPoints;
lldLedgerSyncEntryPoints: Feature_LldLedgerSyncEntryPoints;
};

@@ -325,3 +327,2 @@ /**

account: {
loginURI: string;
homeURI: string;

@@ -355,3 +356,2 @@ };

homeURI: string;
loginURI: string;
};

@@ -485,2 +485,13 @@ protectId: string;

}>;
export type Feature_LlmLedgerSyncEntryPoints = Feature<{
manager: boolean;
accounts: boolean;
settings: boolean;
}>;
export type Feature_LldLedgerSyncEntryPoints = Feature<{
manager: boolean;
accounts: boolean;
settings: boolean;
onboarding: boolean;
}>;
export type Feature_LlCounterValueGranularitiesRates = Feature<{

@@ -487,0 +498,0 @@ daily: number;

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

*/
export type OperationType = "IN" | "OUT" | "NONE" | "CREATE" | "REVEAL" | "UNKNOWN" | "DELEGATE" | "UNDELEGATE" | "REDELEGATE" | "REWARD" | "FEES" | "FREEZE" | "UNFREEZE" | "WITHDRAW_EXPIRE_UNFREEZE" | "UNDELEGATE_RESOURCE" | "LEGACY_UNFREEZE" | "VOTE" | "REWARD_PAYOUT" | "BOND" | "UNBOND" | "WITHDRAW_UNBONDED" | "SET_CONTROLLER" | "SLASH" | "NOMINATE" | "CHILL" | "APPROVE" | "OPT_IN" | "OPT_OUT" | "LOCK" | "UNLOCK" | "WITHDRAW" | "REVOKE" | "ACTIVATE" | "REGISTER" | "NFT_IN" | "NFT_OUT" | "STAKE" | "UNSTAKE" | "WITHDRAW_UNSTAKED";
export type OperationType = "IN" | "OUT" | "NONE" | "CREATE" | "REVEAL" | "UNKNOWN" | "DELEGATE" | "UNDELEGATE" | "REDELEGATE" | "REWARD" | "FEES" | "FREEZE" | "UNFREEZE" | "WITHDRAW_EXPIRE_UNFREEZE" | "UNDELEGATE_RESOURCE" | "LEGACY_UNFREEZE" | "VOTE" | "REWARD_PAYOUT" | "BOND" | "UNBOND" | "WITHDRAW_UNBONDED" | "SET_CONTROLLER" | "SLASH" | "NOMINATE" | "CHILL" | "APPROVE" | "OPT_IN" | "OPT_OUT" | "LOCK" | "UNLOCK" | "WITHDRAW" | "REVOKE" | "ACTIVATE" | "REGISTER" | "NFT_IN" | "NFT_OUT" | "STAKE" | "UNSTAKE" | "WITHDRAW_UNSTAKED" | "BURN";
export type OperationExtra = unknown;

@@ -10,0 +10,0 @@ /**

import type { BigNumber } from "bignumber.js";
import type { CryptoCurrency, TokenCurrency } from "@ledgerhq/types-cryptoassets";
import type { CryptoCurrency, CryptoOrTokenCurrency, TokenCurrency } from "@ledgerhq/types-cryptoassets";
import type { OperationRaw, Operation } from "./operation";

@@ -145,2 +145,3 @@ import type { DerivationMode } from "./derivation";

};
export declare function getCurrencyForAccount(account: AccountLike): CryptoOrTokenCurrency;
//# sourceMappingURL=account.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getCurrencyForAccount = void 0;
function getCurrencyForAccount(account) {
switch (account.type) {
case "Account":
return account.currency;
case "TokenAccount":
return account.token;
}
}
exports.getCurrencyForAccount = getCurrencyForAccount;
//# sourceMappingURL=account.js.map

@@ -5,3 +5,4 @@ /// <reference types="node" />

import type { CryptoCurrency } from "@ledgerhq/types-cryptoassets";
import type { AccountLike, Account, AccountRaw } from "./account";
import type { DeviceModelId } from "@ledgerhq/types-devices";
import type { AccountLike, Account, AccountRaw, TokenAccount, TokenAccountRaw } from "./account";
import type { SignOperationEvent, SignedOperation, TransactionCommon, TransactionStatusCommon } from "./transaction";

@@ -51,2 +52,3 @@ import type { Operation, OperationExtra, OperationExtraRaw } from "./operation";

deviceId: DeviceId;
deviceModelId?: DeviceModelId;
};

@@ -134,2 +136,18 @@ /**

/**
* This function mutates the 'tokenAccountRaw' object in-place to add any extra fields that the coin may need to set.
* It is called during the serialization mechanism
*
* @param {TokenAccount} tokenAccount - The original token account object.
* @param {TokenAccountRaw} tokenAccountRaw - The token account in its serialized form.
*/
assignToTokenAccountRaw?: (tokenAccount: TokenAccount, tokenAccountRaw: TokenAccountRaw) => void;
/**
* This function mutates the 'tokenAccount' object in-place to add any extra fields that the coin may need to set.
* It is called during the deserialization mechanism
*
* @param {TokenAccountRaw} tokenAccountRaw - The token account in its serialized form.
* @param {TokenAccount} tokenAccount - The original token account object.
*/
assignFromTokenAccountRaw?: (tokenAccountRaw: TokenAccountRaw, tokenAccount: TokenAccount) => void;
/**
* This function mutates the 'account' object to extend it with any extra fields of the coin.

@@ -136,0 +154,0 @@ * For instance bitcoinResources needs to be created.

@@ -195,2 +195,4 @@ import { ABTestingVariants } from "./ABTesting";

llmAccountListUI: DefaultFeature;
llmLedgerSyncEntryPoints: Feature_LlmLedgerSyncEntryPoints;
lldLedgerSyncEntryPoints: Feature_LldLedgerSyncEntryPoints;
};

@@ -325,3 +327,2 @@ /**

account: {
loginURI: string;
homeURI: string;

@@ -355,3 +356,2 @@ };

homeURI: string;
loginURI: string;
};

@@ -485,2 +485,13 @@ protectId: string;

}>;
export type Feature_LlmLedgerSyncEntryPoints = Feature<{
manager: boolean;
accounts: boolean;
settings: boolean;
}>;
export type Feature_LldLedgerSyncEntryPoints = Feature<{
manager: boolean;
accounts: boolean;
settings: boolean;
onboarding: boolean;
}>;
export type Feature_LlCounterValueGranularitiesRates = Feature<{

@@ -487,0 +498,0 @@ daily: number;

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

*/
export type OperationType = "IN" | "OUT" | "NONE" | "CREATE" | "REVEAL" | "UNKNOWN" | "DELEGATE" | "UNDELEGATE" | "REDELEGATE" | "REWARD" | "FEES" | "FREEZE" | "UNFREEZE" | "WITHDRAW_EXPIRE_UNFREEZE" | "UNDELEGATE_RESOURCE" | "LEGACY_UNFREEZE" | "VOTE" | "REWARD_PAYOUT" | "BOND" | "UNBOND" | "WITHDRAW_UNBONDED" | "SET_CONTROLLER" | "SLASH" | "NOMINATE" | "CHILL" | "APPROVE" | "OPT_IN" | "OPT_OUT" | "LOCK" | "UNLOCK" | "WITHDRAW" | "REVOKE" | "ACTIVATE" | "REGISTER" | "NFT_IN" | "NFT_OUT" | "STAKE" | "UNSTAKE" | "WITHDRAW_UNSTAKED";
export type OperationType = "IN" | "OUT" | "NONE" | "CREATE" | "REVEAL" | "UNKNOWN" | "DELEGATE" | "UNDELEGATE" | "REDELEGATE" | "REWARD" | "FEES" | "FREEZE" | "UNFREEZE" | "WITHDRAW_EXPIRE_UNFREEZE" | "UNDELEGATE_RESOURCE" | "LEGACY_UNFREEZE" | "VOTE" | "REWARD_PAYOUT" | "BOND" | "UNBOND" | "WITHDRAW_UNBONDED" | "SET_CONTROLLER" | "SLASH" | "NOMINATE" | "CHILL" | "APPROVE" | "OPT_IN" | "OPT_OUT" | "LOCK" | "UNLOCK" | "WITHDRAW" | "REVOKE" | "ACTIVATE" | "REGISTER" | "NFT_IN" | "NFT_OUT" | "STAKE" | "UNSTAKE" | "WITHDRAW_UNSTAKED" | "BURN";
export type OperationExtra = unknown;

@@ -10,0 +10,0 @@ /**

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

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

import type { BigNumber } from "bignumber.js";
import type { CryptoCurrency, TokenCurrency } from "@ledgerhq/types-cryptoassets";
import type {
CryptoCurrency,
CryptoOrTokenCurrency,
TokenCurrency,
} from "@ledgerhq/types-cryptoassets";
import type { OperationRaw, Operation } from "./operation";

@@ -229,1 +233,10 @@ import type { DerivationMode } from "./derivation";

};
export function getCurrencyForAccount(account: AccountLike): CryptoOrTokenCurrency {
switch (account.type) {
case "Account":
return account.currency;
case "TokenAccount":
return account.token;
}
}

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

import type { CryptoCurrency } from "@ledgerhq/types-cryptoassets";
import type { AccountLike, Account, AccountRaw } from "./account";
import type { DeviceModelId } from "@ledgerhq/types-devices";
import type { AccountLike, Account, AccountRaw, TokenAccount, TokenAccountRaw } from "./account";
import type {

@@ -72,2 +73,3 @@ SignOperationEvent,

deviceId: DeviceId;
deviceModelId?: DeviceModelId;
};

@@ -208,2 +210,21 @@

/**
* This function mutates the 'tokenAccountRaw' object in-place to add any extra fields that the coin may need to set.
* It is called during the serialization mechanism
*
* @param {TokenAccount} tokenAccount - The original token account object.
* @param {TokenAccountRaw} tokenAccountRaw - The token account in its serialized form.
*/
assignToTokenAccountRaw?: (tokenAccount: TokenAccount, tokenAccountRaw: TokenAccountRaw) => void;
/**
* This function mutates the 'tokenAccount' object in-place to add any extra fields that the coin may need to set.
* It is called during the deserialization mechanism
*
* @param {TokenAccountRaw} tokenAccountRaw - The token account in its serialized form.
* @param {TokenAccount} tokenAccount - The original token account object.
*/
assignFromTokenAccountRaw?: (
tokenAccountRaw: TokenAccountRaw,
tokenAccount: TokenAccount,
) => void;
/**
* This function mutates the 'account' object to extend it with any extra fields of the coin.

@@ -210,0 +231,0 @@ * For instance bitcoinResources needs to be created.

@@ -208,2 +208,4 @@ import { ABTestingVariants } from "./ABTesting";

llmAccountListUI: DefaultFeature;
llmLedgerSyncEntryPoints: Feature_LlmLedgerSyncEntryPoints;
lldLedgerSyncEntryPoints: Feature_LldLedgerSyncEntryPoints;
};

@@ -357,3 +359,2 @@

account: {
loginURI: string;
homeURI: string;

@@ -388,3 +389,2 @@ };

homeURI: string;
loginURI: string;
};

@@ -538,2 +538,14 @@ protectId: string;

export type Feature_LlmLedgerSyncEntryPoints = Feature<{
manager: boolean;
accounts: boolean;
settings: boolean;
}>;
export type Feature_LldLedgerSyncEntryPoints = Feature<{
manager: boolean;
accounts: boolean;
settings: boolean;
onboarding: boolean;
}>;
export type Feature_LlCounterValueGranularitiesRates = Feature<{

@@ -540,0 +552,0 @@ daily: number;

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

| "UNSTAKE"
| "WITHDRAW_UNSTAKED";
| "WITHDRAW_UNSTAKED"
// SOLANA
| "BURN";

@@ -59,0 +61,0 @@ export type OperationExtra = unknown;

Sorry, the diff of this file is too big to display

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

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