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

@ledgerhq/types-cryptoassets

Package Overview
Dependencies
Maintainers
21
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ledgerhq/types-cryptoassets - npm Package Compare versions

Comparing version 7.4.0-nightly.2 to 7.4.0-nightly.3

6

CHANGELOG.md
# @ledgerhq/types-cryptoassets
## 7.4.0-nightly.3
### Minor Changes
- [#3827](https://github.com/LedgerHQ/ledger-live/pull/3827) [`6a88b7f8a6`](https://github.com/LedgerHQ/ledger-live/commit/6a88b7f8a6b7c732be0c945131b6c1d9b3937cc1) Thanks [@lambertkevin](https://github.com/lambertkevin)! - Updating EthereumLikeInfo configurations & typing
## 7.4.0-nightly.2

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

56

lib-es/index.d.ts
import { CoinType } from "./slip44";
export type CryptoCurrencyId = "aeternity" | "aion" | "akroma" | "algorand" | "ark" | "atheios" | "avalanche_c_chain" | "axelar" | "banano" | "binance_beacon_chain" | "bitcoin" | "bitcoin_cash" | "bitcoin_gold" | "bitcoin_private" | "bsc" | "callisto" | "cardano" | "cardano_testnet" | "celo" | "clubcoin" | "cosmos" | "cosmos_testnet" | "dash" | "decred" | "desmos" | "dexon" | "ellaism" | "dogecoin" | "digibyte" | "eos" | "elastos" | "elrond" | "ethereum" | "ethereum_classic" | "ether1" | "ethergem" | "ethersocial" | "expanse" | "factom" | "fic" | "flow" | "game_credits" | "gochain" | "groestlcoin" | "hcash" | "hedera" | "helium" | "hpb" | "hycon" | "icon" | "iota" | "iov" | "kin" | "komodo" | "kusama" | "lbry" | "litecoin" | "lisk" | "mix" | "monero" | "moonriver" | "musicoin" | "nano" | "nem" | "neo" | "nervos" | "nimiq" | "nix" | "nos" | "nyx" | "onomy" | "ontology" | "particl" | "peercoin" | "persistence" | "pirl" | "pivx" | "poa" | "polkadot" | "polygon" | "poswallet" | "qrl" | "qtum" | "quicksilver" | "ravencoin" | "ripple" | "rise" | "reosc" | "resistance" | "secret_network" | "sei_network" | "solana" | "stakenet" | "stargaze" | "stratis" | "stealthcoin" | "stellar" | "stride" | "osmosis" | "shyft" | "tezos" | "thundercore" | "tomo" | "tron" | "ubiq" | "umee" | "vechain" | "vertcoin" | "viacoin" | "wanchain" | "waves" | "zcash" | "zclassic" | "zcoin" | "zencash" | "zilliqa" | "crypto_org" | "bitcoin_testnet" | "ethereum_ropsten" | "ethereum_goerli" | "stacks" | "crypto_org_croeseid" | "solana_testnet" | "solana_devnet" | "filecoin" | "ethereum_as_evm_test_only" | "polygon_as_evm_test_only" | "arbitrum" | "arbitrum_goerli" | "cronos" | "fantom" | "flare" | "songbird" | "moonbeam" | "near" | "rsk" | "bittorrent" | "kava_evm" | "evmos_evm" | "optimism" | "optimism_goerli" | "energy_web" | "astar" | "metis" | "boba" | "moonriver" | "velas_evm" | "syscoin" | "internet_computer" | "telos_evm";
export type LedgerExplorerId = "btc" | "btc_testnet" | "bch" | "btg" | "club" | "dash" | "dcr" | "dgb" | "doge" | "hsr" | "kmd" | "ltc" | "ppc" | "pivx" | "posw" | "qtum" | "xsn" | "strat" | "xst" | "vtc" | "via" | "zec" | "zen" | "avax" | "eth" | "eth_ropsten" | "eth_goerli" | "etc" | "matic" | "bnb";
/**

@@ -50,2 +51,32 @@ *

};
export type EthereumLikeInfo = {
chainId: number;
networkId?: number;
baseChain?: "mainnet" | "goerli" | "ropsten";
hardfork?: string;
node?: {
type: "external";
uri: string;
} | {
type: "ledger";
explorerId: LedgerExplorerId;
};
explorer?: {
type: "etherscan" | "blockscout" | "teloscan";
uri: string;
} | {
type: "ledger";
explorerId: LedgerExplorerId;
};
gasTracker?: {
type: "ledger";
explorerId: LedgerExplorerId;
};
};
export type BitcoinLikeInfo = {
P2PKH: number;
P2SH: number;
XPUBVersion?: number;
hasTimestamp?: boolean;
};
/**

@@ -67,23 +98,4 @@ *

isTestnetFor?: string;
bitcoinLikeInfo?: {
P2PKH: number;
P2SH: number;
XPUBVersion?: number;
hasTimestamp?: boolean;
};
ethereumLikeInfo?: {
chainId: number;
networkId?: number;
baseChain?: "mainnet" | "goerli" | "ropsten";
hardfork?: string;
rpc?: string;
explorer?: {
uri: string;
type: "etherscan" | "blockscout" | "teloscan";
};
gasTracker?: {
uri: string;
type: "ledger";
};
};
bitcoinLikeInfo?: BitcoinLikeInfo;
ethereumLikeInfo?: EthereumLikeInfo;
explorerViews: ExplorerView[];

@@ -94,3 +106,3 @@ terminated?: {

deviceTicker?: string;
explorerId?: string;
explorerId?: LedgerExplorerId;
};

@@ -97,0 +109,0 @@ /**

import { CoinType } from "./slip44";
export type CryptoCurrencyId = "aeternity" | "aion" | "akroma" | "algorand" | "ark" | "atheios" | "avalanche_c_chain" | "axelar" | "banano" | "binance_beacon_chain" | "bitcoin" | "bitcoin_cash" | "bitcoin_gold" | "bitcoin_private" | "bsc" | "callisto" | "cardano" | "cardano_testnet" | "celo" | "clubcoin" | "cosmos" | "cosmos_testnet" | "dash" | "decred" | "desmos" | "dexon" | "ellaism" | "dogecoin" | "digibyte" | "eos" | "elastos" | "elrond" | "ethereum" | "ethereum_classic" | "ether1" | "ethergem" | "ethersocial" | "expanse" | "factom" | "fic" | "flow" | "game_credits" | "gochain" | "groestlcoin" | "hcash" | "hedera" | "helium" | "hpb" | "hycon" | "icon" | "iota" | "iov" | "kin" | "komodo" | "kusama" | "lbry" | "litecoin" | "lisk" | "mix" | "monero" | "moonriver" | "musicoin" | "nano" | "nem" | "neo" | "nervos" | "nimiq" | "nix" | "nos" | "nyx" | "onomy" | "ontology" | "particl" | "peercoin" | "persistence" | "pirl" | "pivx" | "poa" | "polkadot" | "polygon" | "poswallet" | "qrl" | "qtum" | "quicksilver" | "ravencoin" | "ripple" | "rise" | "reosc" | "resistance" | "secret_network" | "sei_network" | "solana" | "stakenet" | "stargaze" | "stratis" | "stealthcoin" | "stellar" | "stride" | "osmosis" | "shyft" | "tezos" | "thundercore" | "tomo" | "tron" | "ubiq" | "umee" | "vechain" | "vertcoin" | "viacoin" | "wanchain" | "waves" | "zcash" | "zclassic" | "zcoin" | "zencash" | "zilliqa" | "crypto_org" | "bitcoin_testnet" | "ethereum_ropsten" | "ethereum_goerli" | "stacks" | "crypto_org_croeseid" | "solana_testnet" | "solana_devnet" | "filecoin" | "ethereum_as_evm_test_only" | "polygon_as_evm_test_only" | "arbitrum" | "arbitrum_goerli" | "cronos" | "fantom" | "flare" | "songbird" | "moonbeam" | "near" | "rsk" | "bittorrent" | "kava_evm" | "evmos_evm" | "optimism" | "optimism_goerli" | "energy_web" | "astar" | "metis" | "boba" | "moonriver" | "velas_evm" | "syscoin" | "internet_computer" | "telos_evm";
export type LedgerExplorerId = "btc" | "btc_testnet" | "bch" | "btg" | "club" | "dash" | "dcr" | "dgb" | "doge" | "hsr" | "kmd" | "ltc" | "ppc" | "pivx" | "posw" | "qtum" | "xsn" | "strat" | "xst" | "vtc" | "via" | "zec" | "zen" | "avax" | "eth" | "eth_ropsten" | "eth_goerli" | "etc" | "matic" | "bnb";
/**

@@ -50,2 +51,32 @@ *

};
export type EthereumLikeInfo = {
chainId: number;
networkId?: number;
baseChain?: "mainnet" | "goerli" | "ropsten";
hardfork?: string;
node?: {
type: "external";
uri: string;
} | {
type: "ledger";
explorerId: LedgerExplorerId;
};
explorer?: {
type: "etherscan" | "blockscout" | "teloscan";
uri: string;
} | {
type: "ledger";
explorerId: LedgerExplorerId;
};
gasTracker?: {
type: "ledger";
explorerId: LedgerExplorerId;
};
};
export type BitcoinLikeInfo = {
P2PKH: number;
P2SH: number;
XPUBVersion?: number;
hasTimestamp?: boolean;
};
/**

@@ -67,23 +98,4 @@ *

isTestnetFor?: string;
bitcoinLikeInfo?: {
P2PKH: number;
P2SH: number;
XPUBVersion?: number;
hasTimestamp?: boolean;
};
ethereumLikeInfo?: {
chainId: number;
networkId?: number;
baseChain?: "mainnet" | "goerli" | "ropsten";
hardfork?: string;
rpc?: string;
explorer?: {
uri: string;
type: "etherscan" | "blockscout" | "teloscan";
};
gasTracker?: {
uri: string;
type: "ledger";
};
};
bitcoinLikeInfo?: BitcoinLikeInfo;
ethereumLikeInfo?: EthereumLikeInfo;
explorerViews: ExplorerView[];

@@ -94,3 +106,3 @@ terminated?: {

deviceTicker?: string;
explorerId?: string;
explorerId?: LedgerExplorerId;
};

@@ -97,0 +109,0 @@ /**

{
"name": "@ledgerhq/types-cryptoassets",
"version": "7.4.0-nightly.2",
"version": "7.4.0-nightly.3",
"description": "Ledger types for crypto assets and tokens",

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

@@ -157,2 +157,34 @@ import { CoinType } from "./slip44";

export type LedgerExplorerId =
| "btc"
| "btc_testnet"
| "bch"
| "btg"
| "club"
| "dash"
| "dcr"
| "dgb"
| "doge"
| "hsr"
| "kmd"
| "ltc"
| "ppc"
| "pivx"
| "posw"
| "qtum"
| "xsn"
| "strat"
| "xst"
| "vtc"
| "via"
| "zec"
| "zen"
| "avax"
| "eth"
| "eth_ropsten"
| "eth_goerli"
| "etc"
| "matic"
| "bnb";
/**

@@ -224,2 +256,42 @@ *

export type EthereumLikeInfo = {
chainId: number;
networkId?: number; // FIXME To remove after the EVM merge
baseChain?: "mainnet" | "goerli" | "ropsten"; // FIXME To remove after the EVM merge
hardfork?: string; // FIXME To remove after the EVM merge
// used by evm coin integration
node?: // FIXME Should not be optional after the EVM merge
| {
type: "external";
uri: string;
}
| {
type: "ledger";
explorerId: LedgerExplorerId;
};
// used by evm coin integration
explorer?:
| {
type: "etherscan" | "blockscout" | "teloscan";
uri: string;
}
| {
type: "ledger";
explorerId: LedgerExplorerId;
};
// used by evm coin integration
gasTracker?: {
type: "ledger";
explorerId: LedgerExplorerId;
};
};
export type BitcoinLikeInfo = {
P2PKH: number;
P2SH: number;
XPUBVersion?: number;
// FIXME optional as we miss some data to fill
hasTimestamp?: boolean;
};
/**

@@ -252,23 +324,4 @@ *

// TODO later we could express union of types with mandatory bitcoinLikeInfo for "bitcoin" family...
bitcoinLikeInfo?: {
P2PKH: number;
P2SH: number;
XPUBVersion?: number;
// FIXME optional as we miss some data to fill
hasTimestamp?: boolean;
};
ethereumLikeInfo?: {
chainId: number;
networkId?: number;
baseChain?: "mainnet" | "goerli" | "ropsten";
hardfork?: string;
// used by evm light integration
rpc?: string;
// used by evm light integration
explorer?: {
uri: string;
type: "etherscan" | "blockscout" | "teloscan";
};
gasTracker?: { uri: string; type: "ledger" };
};
bitcoinLikeInfo?: BitcoinLikeInfo;
ethereumLikeInfo?: EthereumLikeInfo;
explorerViews: ExplorerView[];

@@ -280,3 +333,3 @@ terminated?: {

// Used to connect to the right endpoint url since it is different from currencyId and ticker
explorerId?: string;
explorerId?: LedgerExplorerId;
};

@@ -283,0 +336,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

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