@swapkit/wallet-keystore 1.2.8 → 1.2.9

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.8.0",
5
- "@swapkit/toolbox-cosmos": "1.3.0",
6
- "@swapkit/toolbox-evm": "1.3.6",
7
- "@swapkit/toolbox-radix": "1.0.28",
8
- "@swapkit/toolbox-solana": "1.0.28",
9
- "@swapkit/toolbox-substrate": "1.2.6",
10
- "@swapkit/toolbox-utxo": "1.1.11",
4
+ "@swapkit/helpers": "1.9.0",
5
+ "@swapkit/toolbox-cosmos": "1.3.1",
6
+ "@swapkit/toolbox-evm": "1.4.0",
7
+ "@swapkit/toolbox-radix": "1.1.0",
8
+ "@swapkit/toolbox-solana": "1.1.0",
9
+ "@swapkit/toolbox-substrate": "1.2.7",
10
+ "@swapkit/toolbox-utxo": "1.1.12",
11
11
  "blakejs": "1.2.1",
12
12
  "micro-key-producer": "0.7.0"
13
13
  },
@@ -28,12 +28,12 @@
28
28
  "scripts": {
29
29
  "build": "bun run ./build.ts",
30
30
  "clean": "rm -rf dist node_modules *.tsbuildinfo",
31
- "lint": "biome check --write ./src",
31
+ "lint": "biome check --diagnostic-level=error --write ./src",
32
32
  "test": "echo 'bun test'",
33
33
  "test:coverage": "bun test --coverage",
34
34
  "type-check": "tsc --noEmit"
35
35
  },
36
36
  "type": "module",
37
37
  "types": "./src/index.ts",
38
- "version": "1.2.8"
38
+ "version": "1.2.9"
39
39
  }
package/src/index.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./helpers.ts";
2
- export { keystoreWallet } from "./keystore.ts";
1
+ export * from "./helpers";
2
+ export { keystoreWallet } from "./keystore";
package/src/keystore.ts CHANGED
@@ -4,7 +4,6 @@ import {
4
4
  type ConnectWalletParams,
5
5
  DerivationPath,
6
6
  type DerivationPathArray,
7
- RPCUrl,
8
7
  type WalletChain,
9
8
  WalletOption,
10
9
  type WalletTxParams,
@@ -29,7 +28,7 @@ type KeystoreOptions = {
29
28
  };
30
29
 
31
30
  type Params = KeystoreOptions & {
32
- api?: Todo;
31
+ api?: any;
33
32
  rpcUrl?: string;
34
33
  chain: Chain;
35
34
  phrase: string;
@@ -169,18 +168,6 @@ const getWalletMethodsForChain = async ({
169
168
  return { address: signer.address, walletMethods: toolbox };
170
169
  }
171
170
 
172
- case Chain.Radix: {
173
- const { getRadixCoreApiClient, RadixToolbox, createPrivateKey, RadixMainnet } = await import(
174
- "@swapkit/toolbox-radix"
175
- );
176
-
177
- const api = await getRadixCoreApiClient(RPCUrl.Radix, RadixMainnet);
178
- const signer = await createPrivateKey(phrase);
179
- const toolbox = await RadixToolbox({ api, signer });
180
-
181
- return { address: toolbox.getAddress(), walletMethods: toolbox };
182
- }
183
-
184
171
  case Chain.Solana: {
185
172
  const { SOLToolbox } = await import("@swapkit/toolbox-solana");
186
173
  const toolbox = SOLToolbox({ rpcUrl });