@swapkit/wallet-keystore 1.2.34 → 1.3.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.14.1",
5
- "@swapkit/toolbox-cosmos": "1.4.2",
6
- "@swapkit/toolbox-evm": "1.6.2",
7
- "@swapkit/toolbox-radix": "1.2.14",
8
- "@swapkit/toolbox-solana": "1.2.2",
9
- "@swapkit/toolbox-substrate": "1.2.22",
10
- "@swapkit/toolbox-utxo": "1.1.27",
4
+ "@swapkit/helpers": "1.15.0",
5
+ "@swapkit/toolbox-cosmos": "1.5.0",
6
+ "@swapkit/toolbox-evm": "1.7.0",
7
+ "@swapkit/toolbox-radix": "1.2.16",
8
+ "@swapkit/toolbox-solana": "1.3.0",
9
+ "@swapkit/toolbox-substrate": "1.3.0",
10
+ "@swapkit/toolbox-utxo": "1.2.0",
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.2.34"
37
+ "version": "1.3.0"
38
38
  }
package/src/keystore.ts CHANGED
@@ -4,13 +4,13 @@ import {
4
4
  type ConnectWalletParams,
5
5
  type DerivationPathArray,
6
6
  NetworkDerivationPath,
7
- RPCUrl,
8
7
  type WalletChain,
9
8
  WalletOption,
10
9
  type WalletTxParams,
11
10
  type Witness,
12
11
  derivationPathToString,
13
12
  ensureEVMApiKeys,
13
+ getRPCUrl,
14
14
  setRequestClientConfig,
15
15
  updatedLastIndex,
16
16
  } from "@swapkit/helpers";
@@ -167,7 +167,8 @@ const getWalletMethodsForChain = async ({
167
167
  const signer = await createKeyring(phrase, Network[chain].prefix);
168
168
  const toolbox = await getToolboxByChain(chain, {
169
169
  signer,
170
- providerUrl: chain === Chain.Polkadot ? RPCUrl.Polkadot : RPCUrl.Chainflip,
170
+ providerUrl:
171
+ chain === Chain.Polkadot ? getRPCUrl(Chain.Polkadot) : getRPCUrl(Chain.Chainflip),
171
172
  });
172
173
 
173
174
  return { address: signer.address, walletMethods: toolbox };