@swapkit/wallet-keystore 1.0.0-rc.147 → 1.0.0-rc.149
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 +9 -1
- package/dist/index.js.map +3 -3
- package/package.json +13 -11
- package/src/keystore.ts +15 -1
package/dist/index.js
CHANGED
|
@@ -18212,6 +18212,7 @@ var decryptFromKeystore = async (keystore, password) => {
|
|
|
18212
18212
|
import {
|
|
18213
18213
|
Chain,
|
|
18214
18214
|
DerivationPath,
|
|
18215
|
+
RPCUrl,
|
|
18215
18216
|
WalletOption,
|
|
18216
18217
|
setRequestClientConfig
|
|
18217
18218
|
} from "@swapkit/helpers";
|
|
@@ -18381,6 +18382,13 @@ var getWalletMethodsForChain = async ({
|
|
|
18381
18382
|
const toolbox = await getToolboxByChain(chain, { signer });
|
|
18382
18383
|
return { address: signer.address, walletMethods: toolbox };
|
|
18383
18384
|
}
|
|
18385
|
+
case Chain.Radix: {
|
|
18386
|
+
const { getRadixCoreApiClient, RadixToolbox, createPrivateKey, RadixMainnet } = await import("@swapkit/toolbox-radix");
|
|
18387
|
+
const api2 = await getRadixCoreApiClient(RPCUrl.Radix, RadixMainnet);
|
|
18388
|
+
const signer = await createPrivateKey(phrase);
|
|
18389
|
+
const toolbox = await RadixToolbox({ api: api2, signer });
|
|
18390
|
+
return { address: await toolbox.getAddress(), walletMethods: toolbox };
|
|
18391
|
+
}
|
|
18384
18392
|
default:
|
|
18385
18393
|
throw new Error(`Unsupported chain ${chain}`);
|
|
18386
18394
|
}
|
|
@@ -18394,4 +18402,4 @@ export {
|
|
|
18394
18402
|
decryptFromKeystore
|
|
18395
18403
|
};
|
|
18396
18404
|
|
|
18397
|
-
//# debugId=
|
|
18405
|
+
//# debugId=BD57F2E9A67A83F164756e2164756e21
|