@swapkit/wallet-keystore 5.1.2 → 5.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @swapkit/wallet-keystore
2
2
 
3
+ ## 5.1.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#382](https://github.com/swapkit/sdk/pull/382) [`2ef09ec`](https://github.com/swapkit/sdk/commit/2ef09ec782e61176e2576554c25cca6d8f2374de) Thanks [@hippocampusSK](https://github.com/hippocampusSK)! - Add Arc (`5042`) EVM chain: chain/chainId enums, chain config, EVM toolbox wiring, and native `ARC.USDC` gas-asset handling in `isGasAsset` / `getCommonAssetInfo` / `getAssetType` / `getTokenAddress`. Arc ships with rpcUrls: [], so connectKeystore skips it and toolbox calls fail with helpers_chain_no_public_or_set_rpc_url until SKConfig.setRpcUrl(Chain.Arc, […]) is set (via @swapkit/toolboxes@5.4.0)
8
+ - [#385](https://github.com/swapkit/sdk/pull/385) [`c8e9da7`](https://github.com/swapkit/sdk/commit/c8e9da74d13ad5b8c533d626400feff9364420fa) Thanks [@hippocampusSK](https://github.com/hippocampusSK)! - Expose the address form an address string decodes to, instead of discarding it behind a boolean. Address validation already computed the script type; new siblings surface it without changing any existing validator's return type: (via @swapkit/toolboxes@5.4.0)
9
+ - [#374](https://github.com/swapkit/sdk/pull/374) [`54d0f14`](https://github.com/swapkit/sdk/commit/54d0f14ec3d58e66b0036ad6c8dcfd0f823dbd2a) Thanks [@ice-chillios](https://github.com/ice-chillios)! - `getAddressValidator` now handles the Substrate chains. Polkadot (DOT) and Chainflip (FLIP) had no arm in the chain match, so they fell through to the catch-all and every address — including valid ones — was reported as invalid. Consumers of `swapKit.validateAddress`, which is built on this validator, were affected; the server-side `validateChainAddress` already covered these chains. (via @swapkit/toolboxes@5.4.0)
10
+ - [#393](https://github.com/swapkit/sdk/pull/393) [`25570ca`](https://github.com/swapkit/sdk/commit/25570ca23f90b4ed104061b5561c35ab1c47f1c6) Thanks [@hippocampusSK](https://github.com/hippocampusSK)! - **One table describes the UTXO script types.** `@swapkit/helpers` now exports `UTXOScriptType` (with `P2SH_P2WPKH` and `P2TR` alongside `P2PKH` and `P2WPKH`), `UTXO_SCRIPT_TYPES` (BIP43 purpose, input and output size in vBytes, witness flag per type), `UTXO_SCRIPT_TYPE_LIST`, and the path helpers `getPurposeFromPath`, `getUTXOScriptTypeForPurpose` and `getUTXOScriptTypeForPath`. Error key `toolbox_utxo_unsupported_script_type` (50315) is reserved for the toolboxes. (via @swapkit/toolboxes@5.4.0)
11
+ - [#391](https://github.com/swapkit/sdk/pull/391) [`cf94a27`](https://github.com/swapkit/sdk/commit/cf94a27a52ac37c78d3a72bbbe7ee3acf14c192e) Thanks [@hippocampusSK](https://github.com/hippocampusSK)! - **Eight fixes to the UTXO send path**, reached today by external signers spending from legacy Bitcoin and Litecoin addresses, and by every chain without segwit. (via @swapkit/toolboxes@5.4.0)
12
+ - [#391](https://github.com/swapkit/sdk/pull/391) [`cf94a27`](https://github.com/swapkit/sdk/commit/cf94a27a52ac37c78d3a72bbbe7ee3acf14c192e) Thanks [@hippocampusSK](https://github.com/hippocampusSK)! - **Three fixes to `createReplacementTransaction`/`bumpFee`** (Bitcoin, the only chain in `rbfSupportedChains`): (via @swapkit/toolboxes@5.4.0)
13
+ - [#379](https://github.com/swapkit/sdk/pull/379) [`4450ac4`](https://github.com/swapkit/sdk/commit/4450ac4200a565d5ce38a26d31f3836a3713ff75) Thanks [@ice-chillios](https://github.com/ice-chillios)! - `derivationPathToString` now accepts sliced derivation paths through the new `DerivationPathLike` (`readonly (number | undefined)[]`) type, so prefixes no longer need to be cast to `DerivationPathArray`. (via @swapkit/toolboxes@5.4.0)
14
+ - [#362](https://github.com/swapkit/sdk/pull/362) [`cbbfccd`](https://github.com/swapkit/sdk/commit/cbbfccdcbbe3e5ad3ffb531a030e2562c8e3f470) Thanks [@towanTG](https://github.com/towanTG)! - Preserve stored numeric precision across comparisons, arithmetic operands, copies, `set`, and AssetValue conversion instead of converting through display-rounded strings. Compare exact values regardless of declared asset decimals, and cap arithmetic results at 64 decimal places without mis-scaling longer inputs or turning small nonzero divisors into zero. Fix half-up display carries and explicit base-unit rescaling while preserving asset identity and destination decimals. (via @swapkit/toolboxes@5.4.0)
15
+ - [#399](https://github.com/swapkit/sdk/pull/399) [`70749e7`](https://github.com/swapkit/sdk/commit/70749e7899630daabc371a36c498f62b9da1c62f) Thanks [@github-actions](https://github.com/apps/github-actions)! - Update generated token lists. (via @swapkit/toolboxes@5.4.0)
16
+
3
17
  ## 5.1.2
4
18
 
5
19
  ### Patch Changes
@@ -10,6 +10,7 @@ export declare const keystoreWallet: {
10
10
  ALEO?: readonly [44, 118, 0, 0, 0] | readonly [44, 931, 0, 0, 0] | readonly [number, number, number, number, number] | readonly [44, 683, 0, 0] | readonly [44, 637, 0, 0, 0] | readonly [44, 60, 0, 0, 0] | readonly [44, 397, 0, 0, 0] | readonly [0, 0, 0, 0, 0] | readonly [44, 144, 0, 0, 0] | readonly [44, 501, 0, 0, 0] | readonly [8797555, 1, 0, 0, 0] | readonly [44, 607, 0, 0, 0] | readonly [44, 195, 0, 0, 0] | readonly [44, 148, 0, 0, 0] | readonly [44, 784, 0, 0, 0] | readonly [1852, 1815, 0, 0, 0] | readonly [44, 9004, 0, 0, 0] | readonly [number, number, number, number, (number | undefined)?] | readonly [44, 145, 0, 0, 0] | readonly [84, 2, 0, 0, 0] | readonly [44, 3, 0, 0, 0] | readonly [44, 5, 0, 0, 0] | readonly [44, 133, 0, 0, 0] | undefined;
11
11
  APT?: readonly [44, 118, 0, 0, 0] | readonly [44, 931, 0, 0, 0] | readonly [number, number, number, number, number] | readonly [44, 683, 0, 0] | readonly [44, 637, 0, 0, 0] | readonly [44, 60, 0, 0, 0] | readonly [44, 397, 0, 0, 0] | readonly [0, 0, 0, 0, 0] | readonly [44, 144, 0, 0, 0] | readonly [44, 501, 0, 0, 0] | readonly [8797555, 1, 0, 0, 0] | readonly [44, 607, 0, 0, 0] | readonly [44, 195, 0, 0, 0] | readonly [44, 148, 0, 0, 0] | readonly [44, 784, 0, 0, 0] | readonly [1852, 1815, 0, 0, 0] | readonly [44, 9004, 0, 0, 0] | readonly [number, number, number, number, (number | undefined)?] | readonly [44, 145, 0, 0, 0] | readonly [84, 2, 0, 0, 0] | readonly [44, 3, 0, 0, 0] | readonly [44, 5, 0, 0, 0] | readonly [44, 133, 0, 0, 0] | undefined;
12
12
  ARB?: readonly [44, 118, 0, 0, 0] | readonly [44, 931, 0, 0, 0] | readonly [number, number, number, number, number] | readonly [44, 683, 0, 0] | readonly [44, 637, 0, 0, 0] | readonly [44, 60, 0, 0, 0] | readonly [44, 397, 0, 0, 0] | readonly [0, 0, 0, 0, 0] | readonly [44, 144, 0, 0, 0] | readonly [44, 501, 0, 0, 0] | readonly [8797555, 1, 0, 0, 0] | readonly [44, 607, 0, 0, 0] | readonly [44, 195, 0, 0, 0] | readonly [44, 148, 0, 0, 0] | readonly [44, 784, 0, 0, 0] | readonly [1852, 1815, 0, 0, 0] | readonly [44, 9004, 0, 0, 0] | readonly [number, number, number, number, (number | undefined)?] | readonly [44, 145, 0, 0, 0] | readonly [84, 2, 0, 0, 0] | readonly [44, 3, 0, 0, 0] | readonly [44, 5, 0, 0, 0] | readonly [44, 133, 0, 0, 0] | undefined;
13
+ ARC?: readonly [44, 118, 0, 0, 0] | readonly [44, 931, 0, 0, 0] | readonly [number, number, number, number, number] | readonly [44, 683, 0, 0] | readonly [44, 637, 0, 0, 0] | readonly [44, 60, 0, 0, 0] | readonly [44, 397, 0, 0, 0] | readonly [0, 0, 0, 0, 0] | readonly [44, 144, 0, 0, 0] | readonly [44, 501, 0, 0, 0] | readonly [8797555, 1, 0, 0, 0] | readonly [44, 607, 0, 0, 0] | readonly [44, 195, 0, 0, 0] | readonly [44, 148, 0, 0, 0] | readonly [44, 784, 0, 0, 0] | readonly [1852, 1815, 0, 0, 0] | readonly [44, 9004, 0, 0, 0] | readonly [number, number, number, number, (number | undefined)?] | readonly [44, 145, 0, 0, 0] | readonly [84, 2, 0, 0, 0] | readonly [44, 3, 0, 0, 0] | readonly [44, 5, 0, 0, 0] | readonly [44, 133, 0, 0, 0] | undefined;
13
14
  AURORA?: readonly [44, 118, 0, 0, 0] | readonly [44, 931, 0, 0, 0] | readonly [number, number, number, number, number] | readonly [44, 683, 0, 0] | readonly [44, 637, 0, 0, 0] | readonly [44, 60, 0, 0, 0] | readonly [44, 397, 0, 0, 0] | readonly [0, 0, 0, 0, 0] | readonly [44, 144, 0, 0, 0] | readonly [44, 501, 0, 0, 0] | readonly [8797555, 1, 0, 0, 0] | readonly [44, 607, 0, 0, 0] | readonly [44, 195, 0, 0, 0] | readonly [44, 148, 0, 0, 0] | readonly [44, 784, 0, 0, 0] | readonly [1852, 1815, 0, 0, 0] | readonly [44, 9004, 0, 0, 0] | readonly [number, number, number, number, (number | undefined)?] | readonly [44, 145, 0, 0, 0] | readonly [84, 2, 0, 0, 0] | readonly [44, 3, 0, 0, 0] | readonly [44, 5, 0, 0, 0] | readonly [44, 133, 0, 0, 0] | undefined;
14
15
  AVAX?: readonly [44, 118, 0, 0, 0] | readonly [44, 931, 0, 0, 0] | readonly [number, number, number, number, number] | readonly [44, 683, 0, 0] | readonly [44, 637, 0, 0, 0] | readonly [44, 60, 0, 0, 0] | readonly [44, 397, 0, 0, 0] | readonly [0, 0, 0, 0, 0] | readonly [44, 144, 0, 0, 0] | readonly [44, 501, 0, 0, 0] | readonly [8797555, 1, 0, 0, 0] | readonly [44, 607, 0, 0, 0] | readonly [44, 195, 0, 0, 0] | readonly [44, 148, 0, 0, 0] | readonly [44, 784, 0, 0, 0] | readonly [1852, 1815, 0, 0, 0] | readonly [44, 9004, 0, 0, 0] | readonly [number, number, number, number, (number | undefined)?] | readonly [44, 145, 0, 0, 0] | readonly [84, 2, 0, 0, 0] | readonly [44, 3, 0, 0, 0] | readonly [44, 5, 0, 0, 0] | readonly [44, 133, 0, 0, 0] | undefined;
15
16
  BASE?: readonly [44, 118, 0, 0, 0] | readonly [44, 931, 0, 0, 0] | readonly [number, number, number, number, number] | readonly [44, 683, 0, 0] | readonly [44, 637, 0, 0, 0] | readonly [44, 60, 0, 0, 0] | readonly [44, 397, 0, 0, 0] | readonly [0, 0, 0, 0, 0] | readonly [44, 144, 0, 0, 0] | readonly [44, 501, 0, 0, 0] | readonly [8797555, 1, 0, 0, 0] | readonly [44, 607, 0, 0, 0] | readonly [44, 195, 0, 0, 0] | readonly [44, 148, 0, 0, 0] | readonly [44, 784, 0, 0, 0] | readonly [1852, 1815, 0, 0, 0] | readonly [44, 9004, 0, 0, 0] | readonly [number, number, number, number, (number | undefined)?] | readonly [44, 145, 0, 0, 0] | readonly [84, 2, 0, 0, 0] | readonly [44, 3, 0, 0, 0] | readonly [44, 5, 0, 0, 0] | readonly [44, 133, 0, 0, 0] | undefined;
@@ -61,10 +62,10 @@ export declare const keystoreWallet: {
61
62
  } | undefined) => Promise<boolean>;
62
63
  directSigningSupport: import("@swapkit/wallet-core").DirectSigningSupport;
63
64
  getExtendedPublicKey?: import("@swapkit/wallet-core").GetExtendedPublicKey;
64
- supportedChains: (Chain.Adi | Chain.Aleo | Chain.Aptos | Chain.Arbitrum | Chain.Aurora | Chain.Avalanche | Chain.Base | Chain.Berachain | Chain.BinanceSmartChain | Chain.Bitcoin | Chain.BitcoinCash | Chain.Botanix | Chain.Cardano | Chain.Core | Chain.Corn | Chain.Cosmos | Chain.Cronos | Chain.Dash | Chain.Dogecoin | Chain.Ethereum | Chain.Gnosis | Chain.Hyperevm | Chain.Hype | Chain.Kujira | Chain.Litecoin | Chain.Linea | Chain.Maya | Chain.MegaETH | Chain.Monad | Chain.Near | Chain.Noble | Chain.Optimism | Chain.Plasma | Chain.Polygon | Chain.Ripple | Chain.Robinhood | Chain.Solana | Chain.Sonic | Chain.Stellar | Chain.Sui | Chain.THORChain | Chain.Ton | Chain.Tron | Chain.Unichain | Chain.XLayer | Chain.Zcash)[];
65
+ supportedChains: (Chain.Adi | Chain.Aleo | Chain.Aptos | Chain.Arbitrum | Chain.Arc | Chain.Aurora | Chain.Avalanche | Chain.Base | Chain.Berachain | Chain.BinanceSmartChain | Chain.Bitcoin | Chain.BitcoinCash | Chain.Botanix | Chain.Cardano | Chain.Core | Chain.Corn | Chain.Cosmos | Chain.Cronos | Chain.Dash | Chain.Dogecoin | Chain.Ethereum | Chain.Gnosis | Chain.Hyperevm | Chain.Hype | Chain.Kujira | Chain.Litecoin | Chain.Linea | Chain.Maya | Chain.MegaETH | Chain.Monad | Chain.Near | Chain.Noble | Chain.Optimism | Chain.Plasma | Chain.Polygon | Chain.Ripple | Chain.Robinhood | Chain.Solana | Chain.Sonic | Chain.Stellar | Chain.Sui | Chain.THORChain | Chain.Ton | Chain.Tron | Chain.Unichain | Chain.XLayer | Chain.Zcash)[];
65
66
  };
66
67
  };
67
- export declare const KEYSTORE_SUPPORTED_CHAINS: (Chain.Adi | Chain.Aleo | Chain.Aptos | Chain.Arbitrum | Chain.Aurora | Chain.Avalanche | Chain.Base | Chain.Berachain | Chain.BinanceSmartChain | Chain.Bitcoin | Chain.BitcoinCash | Chain.Botanix | Chain.Cardano | Chain.Core | Chain.Corn | Chain.Cosmos | Chain.Cronos | Chain.Dash | Chain.Dogecoin | Chain.Ethereum | Chain.Gnosis | Chain.Hyperevm | Chain.Hype | Chain.Kujira | Chain.Litecoin | Chain.Linea | Chain.Maya | Chain.MegaETH | Chain.Monad | Chain.Near | Chain.Noble | Chain.Optimism | Chain.Plasma | Chain.Polygon | Chain.Ripple | Chain.Robinhood | Chain.Solana | Chain.Sonic | Chain.Stellar | Chain.Sui | Chain.THORChain | Chain.Ton | Chain.Tron | Chain.Unichain | Chain.XLayer | Chain.Zcash)[];
68
+ export declare const KEYSTORE_SUPPORTED_CHAINS: (Chain.Adi | Chain.Aleo | Chain.Aptos | Chain.Arbitrum | Chain.Arc | Chain.Aurora | Chain.Avalanche | Chain.Base | Chain.Berachain | Chain.BinanceSmartChain | Chain.Bitcoin | Chain.BitcoinCash | Chain.Botanix | Chain.Cardano | Chain.Core | Chain.Corn | Chain.Cosmos | Chain.Cronos | Chain.Dash | Chain.Dogecoin | Chain.Ethereum | Chain.Gnosis | Chain.Hyperevm | Chain.Hype | Chain.Kujira | Chain.Litecoin | Chain.Linea | Chain.Maya | Chain.MegaETH | Chain.Monad | Chain.Near | Chain.Noble | Chain.Optimism | Chain.Plasma | Chain.Polygon | Chain.Ripple | Chain.Robinhood | Chain.Solana | Chain.Sonic | Chain.Stellar | Chain.Sui | Chain.THORChain | Chain.Ton | Chain.Tron | Chain.Unichain | Chain.XLayer | Chain.Zcash)[];
68
69
  export declare function createKeystoreWallet<T extends Chain[]>({ chains, phrase, derivationPathMapOrIndex, }: {
69
70
  chains: T;
70
71
  phrase: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "author": "swapkit-dev",
3
- "dependencies": { "@swapkit/helpers": "5.3.0", "@swapkit/toolboxes": "5.3.0", "@swapkit/wallet-core": "5.0.6" },
3
+ "dependencies": { "@swapkit/helpers": "5.4.0", "@swapkit/toolboxes": "5.4.0", "@swapkit/wallet-core": "5.0.7" },
4
4
  "description": "SwapKit - Wallet Keystore",
5
5
  "exports": { ".": { "default": "./dist/index.js", "types": "./dist/types/index.d.ts" } },
6
6
  "files": ["dist/", "CHANGELOG.md"],
@@ -22,5 +22,5 @@
22
22
  "type-check:go": "tsgo"
23
23
  },
24
24
  "type": "module",
25
- "version": "5.1.2"
25
+ "version": "5.1.3"
26
26
  }