@swapkit/wallet-keystore 1.3.7 → 1.4.0

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/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "dependencies": {
3
3
  "@scure/bip39": "1.3.0",
4
- "@swapkit/helpers": "1.19.0",
5
- "@swapkit/toolbox-cosmos": "1.6.1",
6
- "@swapkit/toolbox-evm": "1.7.7",
7
- "@swapkit/toolbox-radix": "1.2.23",
8
- "@swapkit/toolbox-solana": "1.3.7",
9
- "@swapkit/toolbox-substrate": "1.3.7",
10
- "@swapkit/toolbox-utxo": "1.2.7",
4
+ "@swapkit/helpers": "2.1.0",
5
+ "@swapkit/toolbox-cosmos": "1.6.3",
6
+ "@swapkit/toolbox-evm": "1.7.9",
7
+ "@swapkit/toolbox-radix": "1.2.25",
8
+ "@swapkit/toolbox-solana": "1.3.9",
9
+ "@swapkit/toolbox-substrate": "1.3.9",
10
+ "@swapkit/toolbox-utxo": "1.2.9",
11
11
  "blakejs": "1.2.1",
12
12
  "micro-key-producer": "0.7.1"
13
13
  },
@@ -34,5 +34,5 @@
34
34
  },
35
35
  "type": "module",
36
36
  "types": "./src/index.ts",
37
- "version": "1.3.7"
37
+ "version": "1.4.0"
38
38
  }
package/src/keystore.ts CHANGED
@@ -4,7 +4,6 @@ import {
4
4
  type ConnectWalletParams,
5
5
  type DerivationPathArray,
6
6
  NetworkDerivationPath,
7
- type WalletChain,
8
7
  WalletOption,
9
8
  type WalletTxParams,
10
9
  type Witness,
@@ -22,6 +21,8 @@ import type {
22
21
  UTXOWalletTransferParams,
23
22
  } from "@swapkit/toolbox-utxo";
24
23
 
24
+ type KeystoreSupportedChain = Exclude<Chain, Chain.Fiat | Chain.Radix>;
25
+
25
26
  type KeystoreOptions = {
26
27
  ethplorerApiKey?: string;
27
28
  blockchairApiKey?: string;
@@ -201,7 +202,7 @@ function connectKeystore({
201
202
  config: { thorswapApiKey, covalentApiKey, ethplorerApiKey, blockchairApiKey, stagenet },
202
203
  }: ConnectWalletParams) {
203
204
  return async function connectKeystore(
204
- chains: WalletChain[],
205
+ chains: KeystoreSupportedChain[],
205
206
  phrase: string,
206
207
  derivationPathMapOrIndex?: { [chain in Chain]?: DerivationPathArray } | number,
207
208
  ) {