@rango-dev/provider-walletconnect-2 0.25.1-next.1 → 0.25.1-next.3

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@rango-dev/provider-walletconnect-2",
3
- "version": "0.25.1-next.1",
3
+ "version": "0.25.1-next.3",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "source": "./src/index.ts",
@@ -28,7 +28,7 @@
28
28
  "@rango-dev/signer-cosmos": "^0.26.0",
29
29
  "@rango-dev/signer-evm": "^0.26.0",
30
30
  "@rango-dev/signer-solana": "^0.27.1-next.1",
31
- "@rango-dev/wallets-shared": "^0.32.1-next.0",
31
+ "@rango-dev/wallets-shared": "^0.32.1-next.2",
32
32
  "@solana/web3.js": "^1.91.4",
33
33
  "@walletconnect/encoding": "^1.0.2",
34
34
  "@walletconnect/modal": "^2.6.2",
package/src/index.ts CHANGED
@@ -47,13 +47,15 @@ import signer from './signer';
47
47
 
48
48
  const WALLET = WalletTypes.WALLET_CONNECT_2;
49
49
 
50
- // TODO: In version 2, It will be moved to constructor.
51
- type Enviroments = Record<string, string>;
52
- let envs: Enviroments = {
50
+ export interface Environments extends Record<string, string> {
51
+ WC_PROJECT_ID: string;
52
+ }
53
+
54
+ let envs: Environments = {
53
55
  WC_PROJECT_ID: '',
54
56
  };
55
- export const init = (enviroments: Enviroments) => {
56
- envs = enviroments;
57
+ export const init = (environments: Environments) => {
58
+ envs = environments;
57
59
 
58
60
  createModalInstance(envs.WC_PROJECT_ID);
59
61
  };