@swapkit/wallet-keystore 1.6.12 → 1.7.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 +9 -8
- package/src/keystore.ts +14 -0
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
3
|
"@scure/bip39": "1.5.4",
|
|
4
|
-
"@swapkit/helpers": "2.
|
|
5
|
-
"@swapkit/toolbox-cosmos": "1.
|
|
6
|
-
"@swapkit/toolbox-evm": "1.
|
|
7
|
-
"@swapkit/toolbox-radix": "1.
|
|
8
|
-
"@swapkit/toolbox-
|
|
9
|
-
"@swapkit/toolbox-
|
|
10
|
-
"@swapkit/toolbox-
|
|
4
|
+
"@swapkit/helpers": "2.7.0",
|
|
5
|
+
"@swapkit/toolbox-cosmos": "1.11.1",
|
|
6
|
+
"@swapkit/toolbox-evm": "1.10.0",
|
|
7
|
+
"@swapkit/toolbox-radix": "1.3.0",
|
|
8
|
+
"@swapkit/toolbox-ripple": "1.0.1",
|
|
9
|
+
"@swapkit/toolbox-solana": "1.6.0",
|
|
10
|
+
"@swapkit/toolbox-substrate": "1.4.0",
|
|
11
|
+
"@swapkit/toolbox-utxo": "1.4.0",
|
|
11
12
|
"blakejs": "1.2.1",
|
|
12
13
|
"micro-key-producer": "0.7.5"
|
|
13
14
|
},
|
|
@@ -34,5 +35,5 @@
|
|
|
34
35
|
},
|
|
35
36
|
"type": "module",
|
|
36
37
|
"types": "./src/index.ts",
|
|
37
|
-
"version": "1.
|
|
38
|
+
"version": "1.7.1"
|
|
38
39
|
}
|
package/src/keystore.ts
CHANGED
|
@@ -31,6 +31,7 @@ const KEYSTORE_SUPPORTED_CHAINS = [
|
|
|
31
31
|
Chain.Polkadot,
|
|
32
32
|
Chain.Chainflip,
|
|
33
33
|
Chain.Solana,
|
|
34
|
+
Chain.Ripple,
|
|
34
35
|
] as const;
|
|
35
36
|
|
|
36
37
|
type KeystoreOptions = {
|
|
@@ -217,6 +218,19 @@ const getWalletMethodsForChain = async ({
|
|
|
217
218
|
};
|
|
218
219
|
}
|
|
219
220
|
|
|
221
|
+
case Chain.Ripple: {
|
|
222
|
+
const { XRPToolbox, createSigner } = await import("@swapkit/toolbox-ripple");
|
|
223
|
+
const signer = createSigner(phrase);
|
|
224
|
+
const toolbox = XRPToolbox({ rpcUrl, signer });
|
|
225
|
+
|
|
226
|
+
return {
|
|
227
|
+
address: signer.address,
|
|
228
|
+
walletMethods: {
|
|
229
|
+
...toolbox,
|
|
230
|
+
},
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
|
|
220
234
|
default:
|
|
221
235
|
throw new Error(`Unsupported chain ${chain}`);
|
|
222
236
|
}
|