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

@ledgerhq/types-live

Package Overview
Dependencies
Maintainers
8
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.52.4 to 6.53.0-spl-test.0

18

lib-es/bridge.d.ts
import { BigNumber } from "bignumber.js";
import type { Observable } from "rxjs";
import type { CryptoCurrency } from "@ledgerhq/types-cryptoassets";
import type { AccountLike, Account, AccountRaw } from "./account";
import type { AccountLike, Account, AccountRaw, TokenAccount, TokenAccountRaw } from "./account";
import type { SignOperationEvent, SignedOperation, TransactionCommon, TransactionStatusCommon } from "./transaction";

@@ -127,2 +127,18 @@ import type { Operation, OperationExtra, OperationExtraRaw } from "./operation";

/**
* 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.

@@ -129,0 +145,0 @@ * For instance bitcoinResources needs to be created.

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

lldMemoTag: Feature_MemoTag;
ldmkTransport: Feature_LdmkTransport;
};

@@ -366,2 +367,5 @@ /**

}>;
export type Feature_LdmkTransport = Feature<{
warningVisible: boolean;
}>;
export type Feature_NpsRatingsPrompt = Feature<{

@@ -368,0 +372,0 @@ conditions: {

2

lib-es/operation.d.ts

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

*/
export type OperationType = "IN" | "OUT" | "NONE" | "CREATE" | "REVEAL" | "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" | "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 { BigNumber } from "bignumber.js";
import type { Observable } from "rxjs";
import type { CryptoCurrency } from "@ledgerhq/types-cryptoassets";
import type { AccountLike, Account, AccountRaw } from "./account";
import type { AccountLike, Account, AccountRaw, TokenAccount, TokenAccountRaw } from "./account";
import type { SignOperationEvent, SignedOperation, TransactionCommon, TransactionStatusCommon } from "./transaction";

@@ -127,2 +127,18 @@ import type { Operation, OperationExtra, OperationExtraRaw } from "./operation";

/**
* 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.

@@ -129,0 +145,0 @@ * For instance bitcoinResources needs to be created.

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

lldMemoTag: Feature_MemoTag;
ldmkTransport: Feature_LdmkTransport;
};

@@ -366,2 +367,5 @@ /**

}>;
export type Feature_LdmkTransport = Feature<{
warningVisible: boolean;
}>;
export type Feature_NpsRatingsPrompt = Feature<{

@@ -368,0 +372,0 @@ conditions: {

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

*/
export type OperationType = "IN" | "OUT" | "NONE" | "CREATE" | "REVEAL" | "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" | "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.52.4",
"version": "6.53.0-spl-test.0",
"description": "Ledger Live main types.",

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

@@ -9,3 +9,3 @@ // 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 { AccountLike, Account, AccountRaw, TokenAccount, TokenAccountRaw } from "./account";
import type {

@@ -202,2 +202,21 @@ SignOperationEvent,

/**
* 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.

@@ -204,0 +223,0 @@ * For instance bitcoinResources needs to be created.

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

lldMemoTag: Feature_MemoTag;
ldmkTransport: Feature_LdmkTransport;
};

@@ -406,2 +407,6 @@

export type Feature_LdmkTransport = Feature<{
warningVisible: boolean;
}>;
export type Feature_NpsRatingsPrompt = Feature<{

@@ -408,0 +413,0 @@ conditions: {

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

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

@@ -57,0 +59,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

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