@swapkit/wallet-keystore 1.3.8 → 1.4.1
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/dist/index.js +8 -8
- package/dist/index.js.map +3 -3
- package/package.json +8 -8
- package/src/keystore.ts +3 -2
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
3
|
"@scure/bip39": "1.3.0",
|
|
4
|
-
"@swapkit/helpers": "2.
|
|
5
|
-
"@swapkit/toolbox-cosmos": "1.6.
|
|
6
|
-
"@swapkit/toolbox-evm": "1.7.
|
|
7
|
-
"@swapkit/toolbox-radix": "1.2.
|
|
8
|
-
"@swapkit/toolbox-solana": "1.3.
|
|
9
|
-
"@swapkit/toolbox-substrate": "1.3.
|
|
10
|
-
"@swapkit/toolbox-utxo": "1.2.
|
|
4
|
+
"@swapkit/helpers": "2.2.0",
|
|
5
|
+
"@swapkit/toolbox-cosmos": "1.6.4",
|
|
6
|
+
"@swapkit/toolbox-evm": "1.7.10",
|
|
7
|
+
"@swapkit/toolbox-radix": "1.2.26",
|
|
8
|
+
"@swapkit/toolbox-solana": "1.3.10",
|
|
9
|
+
"@swapkit/toolbox-substrate": "1.3.10",
|
|
10
|
+
"@swapkit/toolbox-utxo": "1.2.10",
|
|
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.
|
|
37
|
+
"version": "1.4.1"
|
|
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:
|
|
205
|
+
chains: KeystoreSupportedChain[],
|
|
205
206
|
phrase: string,
|
|
206
207
|
derivationPathMapOrIndex?: { [chain in Chain]?: DerivationPathArray } | number,
|
|
207
208
|
) {
|