@rango-dev/provider-walletconnect-2 0.28.2-next.4 → 0.29.1-next.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.
@@ -1 +1 @@
1
- {"inputs":{"src/constants.ts":{"bytes":2718,"imports":[{"path":"@rango-dev/wallets-shared","kind":"import-statement","external":true}],"format":"esm"},"src/session.ts":{"bytes":10497,"imports":[{"path":"@rango-dev/wallets-shared","kind":"import-statement","external":true},{"path":"@walletconnect/utils","kind":"import-statement","external":true},{"path":"caip","kind":"import-statement","external":true},{"path":"src/constants.ts","kind":"import-statement","original":"./constants"},{"path":"src/helpers.ts","kind":"import-statement","original":"./helpers"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/helpers.ts":{"bytes":6372,"imports":[{"path":"@rango-dev/wallets-shared","kind":"import-statement","external":true},{"path":"@walletconnect/modal","kind":"import-statement","external":true},{"path":"caip","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"src/constants.ts","kind":"import-statement","original":"./constants"},{"path":"src/session.ts","kind":"import-statement","original":"./session"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/signers/helper.ts":{"bytes":2088,"imports":[{"path":"@keplr-wallet/cosmos","kind":"import-statement","external":true},{"path":"@keplr-wallet/simple-fetch","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/signers/mock.ts":{"bytes":102937,"imports":[],"format":"esm"},"src/signers/cosmos.ts":{"bytes":7359,"imports":[{"path":"@cosmjs/launchpad","kind":"import-statement","external":true},{"path":"@keplr-wallet/cosmos","kind":"import-statement","external":true},{"path":"@rango-dev/signer-cosmos","kind":"import-statement","external":true},{"path":"@rango-dev/wallets-shared","kind":"import-statement","external":true},{"path":"caip","kind":"import-statement","external":true},{"path":"cosmos-wallet","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"src/constants.ts","kind":"import-statement","original":"../constants"},{"path":"src/signers/helper.ts","kind":"import-statement","original":"./helper"},{"path":"src/signers/mock.ts","kind":"import-statement","original":"./mock"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/signers/evm.ts":{"bytes":4519,"imports":[{"path":"@rango-dev/signer-evm","kind":"import-statement","external":true},{"path":"@walletconnect/encoding","kind":"import-statement","external":true},{"path":"caip","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"src/constants.ts","kind":"import-statement","original":"../constants"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/signers/solana.ts":{"bytes":4693,"imports":[{"path":"@rango-dev/signer-solana","kind":"import-statement","external":true},{"path":"@solana/web3.js","kind":"import-statement","external":true},{"path":"bs58","kind":"import-statement","external":true},{"path":"caip","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"src/constants.ts","kind":"import-statement","original":"../constants"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/signer.ts":{"bytes":861,"imports":[{"path":"rango-types","kind":"import-statement","external":true},{"path":"src/signers/cosmos.ts","kind":"import-statement","original":"./signers/cosmos"},{"path":"src/signers/evm.ts","kind":"import-statement","original":"./signers/evm"},{"path":"src/signers/solana.ts","kind":"import-statement","original":"./signers/solana"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":6645,"imports":[{"path":"@rango-dev/logging-core","kind":"import-statement","external":true},{"path":"@rango-dev/wallets-shared","kind":"import-statement","external":true},{"path":"@walletconnect/sign-client","kind":"import-statement","external":true},{"path":"caip","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"src/constants.ts","kind":"import-statement","original":"./constants"},{"path":"src/helpers.ts","kind":"import-statement","original":"./helpers"},{"path":"src/session.ts","kind":"import-statement","original":"./session"},{"path":"src/signer.ts","kind":"import-statement","original":"./signer"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/index.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":214548},"dist/index.js":{"imports":[{"path":"@rango-dev/logging-core","kind":"import-statement","external":true},{"path":"@rango-dev/wallets-shared","kind":"import-statement","external":true},{"path":"@walletconnect/sign-client","kind":"import-statement","external":true},{"path":"caip","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"@rango-dev/wallets-shared","kind":"import-statement","external":true},{"path":"@rango-dev/wallets-shared","kind":"import-statement","external":true},{"path":"@walletconnect/modal","kind":"import-statement","external":true},{"path":"caip","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"@rango-dev/wallets-shared","kind":"import-statement","external":true},{"path":"@walletconnect/utils","kind":"import-statement","external":true},{"path":"caip","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"@cosmjs/launchpad","kind":"import-statement","external":true},{"path":"@keplr-wallet/cosmos","kind":"import-statement","external":true},{"path":"@rango-dev/signer-cosmos","kind":"import-statement","external":true},{"path":"@rango-dev/wallets-shared","kind":"import-statement","external":true},{"path":"caip","kind":"import-statement","external":true},{"path":"cosmos-wallet","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"@keplr-wallet/cosmos","kind":"import-statement","external":true},{"path":"@keplr-wallet/simple-fetch","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"@rango-dev/signer-evm","kind":"import-statement","external":true},{"path":"@walletconnect/encoding","kind":"import-statement","external":true},{"path":"caip","kind":"import-statement","external":true},{"path":"@rango-dev/signer-solana","kind":"import-statement","external":true},{"path":"@solana/web3.js","kind":"import-statement","external":true},{"path":"bs58","kind":"import-statement","external":true},{"path":"caip","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true}],"exports":["canSwitchNetworkTo","config","connect","disconnect","getInstance","getSigners","getWalletInfo","init","subscribe","switchNetwork"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":2485},"src/constants.ts":{"bytesInOutput":521},"src/helpers.ts":{"bytesInOutput":2191},"src/session.ts":{"bytesInOutput":3084},"src/signer.ts":{"bytesInOutput":367},"src/signers/cosmos.ts":{"bytesInOutput":3212},"src/signers/helper.ts":{"bytesInOutput":1056},"src/signers/mock.ts":{"bytesInOutput":68018},"src/signers/evm.ts":{"bytesInOutput":1767},"src/signers/solana.ts":{"bytesInOutput":1824}},"bytes":84820}}}
1
+ {"inputs":{"src/constants.ts":{"bytes":2718,"imports":[{"path":"@rango-dev/wallets-shared","kind":"import-statement","external":true}],"format":"esm"},"src/session.ts":{"bytes":10521,"imports":[{"path":"@rango-dev/wallets-shared","kind":"import-statement","external":true},{"path":"@walletconnect/utils","kind":"import-statement","external":true},{"path":"caip","kind":"import-statement","external":true},{"path":"src/constants.ts","kind":"import-statement","original":"./constants.js"},{"path":"src/helpers.ts","kind":"import-statement","original":"./helpers.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/helpers.ts":{"bytes":6378,"imports":[{"path":"@rango-dev/wallets-shared","kind":"import-statement","external":true},{"path":"@walletconnect/modal","kind":"import-statement","external":true},{"path":"caip","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"src/constants.ts","kind":"import-statement","original":"./constants.js"},{"path":"src/session.ts","kind":"import-statement","original":"./session.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/signers/helper.ts":{"bytes":2088,"imports":[{"path":"@keplr-wallet/cosmos","kind":"import-statement","external":true},{"path":"@keplr-wallet/simple-fetch","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/signers/mock.ts":{"bytes":102937,"imports":[],"format":"esm"},"src/signers/cosmos.ts":{"bytes":7368,"imports":[{"path":"@cosmjs/launchpad","kind":"import-statement","external":true},{"path":"@keplr-wallet/cosmos","kind":"import-statement","external":true},{"path":"@rango-dev/signer-cosmos","kind":"import-statement","external":true},{"path":"@rango-dev/wallets-shared","kind":"import-statement","external":true},{"path":"caip","kind":"import-statement","external":true},{"path":"cosmos-wallet","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"src/constants.ts","kind":"import-statement","original":"../constants.js"},{"path":"src/signers/helper.ts","kind":"import-statement","original":"./helper.js"},{"path":"src/signers/mock.ts","kind":"import-statement","original":"./mock.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/signers/evm.ts":{"bytes":4517,"imports":[{"path":"@rango-dev/signer-evm","kind":"import-statement","external":true},{"path":"@walletconnect/encoding","kind":"import-statement","external":true},{"path":"caip","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"src/constants.ts","kind":"import-statement","original":"../constants.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/signers/solana.ts":{"bytes":4696,"imports":[{"path":"@rango-dev/signer-solana","kind":"import-statement","external":true},{"path":"@solana/web3.js","kind":"import-statement","external":true},{"path":"bs58","kind":"import-statement","external":true},{"path":"caip","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"src/constants.ts","kind":"import-statement","original":"../constants.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/signer.ts":{"bytes":873,"imports":[{"path":"rango-types","kind":"import-statement","external":true},{"path":"src/signers/cosmos.ts","kind":"import-statement","original":"./signers/cosmos.js"},{"path":"src/signers/evm.ts","kind":"import-statement","original":"./signers/evm.js"},{"path":"src/signers/solana.ts","kind":"import-statement","original":"./signers/solana.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":6660,"imports":[{"path":"@rango-dev/logging-core","kind":"import-statement","external":true},{"path":"@rango-dev/wallets-shared","kind":"import-statement","external":true},{"path":"@walletconnect/sign-client","kind":"import-statement","external":true},{"path":"caip","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"src/constants.ts","kind":"import-statement","original":"./constants.js"},{"path":"src/helpers.ts","kind":"import-statement","original":"./helpers.js"},{"path":"src/session.ts","kind":"import-statement","original":"./session.js"},{"path":"src/signer.ts","kind":"import-statement","original":"./signer.js"},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/index.js.map":{"imports":[],"exports":[],"inputs":{},"bytes":214660},"dist/index.js":{"imports":[{"path":"@rango-dev/logging-core","kind":"import-statement","external":true},{"path":"@rango-dev/wallets-shared","kind":"import-statement","external":true},{"path":"@walletconnect/sign-client","kind":"import-statement","external":true},{"path":"caip","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"@rango-dev/wallets-shared","kind":"import-statement","external":true},{"path":"@rango-dev/wallets-shared","kind":"import-statement","external":true},{"path":"@walletconnect/modal","kind":"import-statement","external":true},{"path":"caip","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"@rango-dev/wallets-shared","kind":"import-statement","external":true},{"path":"@walletconnect/utils","kind":"import-statement","external":true},{"path":"caip","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"@cosmjs/launchpad","kind":"import-statement","external":true},{"path":"@keplr-wallet/cosmos","kind":"import-statement","external":true},{"path":"@rango-dev/signer-cosmos","kind":"import-statement","external":true},{"path":"@rango-dev/wallets-shared","kind":"import-statement","external":true},{"path":"caip","kind":"import-statement","external":true},{"path":"cosmos-wallet","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"@keplr-wallet/cosmos","kind":"import-statement","external":true},{"path":"@keplr-wallet/simple-fetch","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"@rango-dev/signer-evm","kind":"import-statement","external":true},{"path":"@walletconnect/encoding","kind":"import-statement","external":true},{"path":"caip","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true},{"path":"@rango-dev/signer-solana","kind":"import-statement","external":true},{"path":"@solana/web3.js","kind":"import-statement","external":true},{"path":"bs58","kind":"import-statement","external":true},{"path":"caip","kind":"import-statement","external":true},{"path":"rango-types","kind":"import-statement","external":true}],"exports":["canSwitchNetworkTo","config","connect","disconnect","getInstance","getSigners","getWalletInfo","init","subscribe","switchNetwork"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":2485},"src/constants.ts":{"bytesInOutput":521},"src/helpers.ts":{"bytesInOutput":2191},"src/session.ts":{"bytesInOutput":3074},"src/signer.ts":{"bytesInOutput":367},"src/signers/cosmos.ts":{"bytesInOutput":3227},"src/signers/helper.ts":{"bytesInOutput":1056},"src/signers/mock.ts":{"bytesInOutput":68018},"src/signers/evm.ts":{"bytesInOutput":1802},"src/signers/solana.ts":{"bytesInOutput":1839}},"bytes":84875}}}
package/dist/session.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { ConnectParams, CreateSessionParams, Environments } from './types';
1
+ import type { ConnectParams, CreateSessionParams, Environments } from './types.js';
2
2
  import type { SignClient } from '@walletconnect/sign-client/dist/types/client';
3
3
  import type { PairingTypes, SessionTypes, SignClientTypes } from '@walletconnect/types';
4
4
  import type { BlockchainMeta } from 'rango-types';
@@ -61,4 +61,3 @@ export declare function updateSessionAccounts(instance: any, requestedNetwork: s
61
61
  export declare function ignoreNamespaceMethods(instance: any): boolean;
62
62
  export declare function persistCurrentChainId(client: SignClient, chainId?: string): Promise<void>;
63
63
  export declare function getPersistedChainId(client: SignClient): Promise<string | undefined>;
64
- //# sourceMappingURL=session.d.ts.map
package/dist/signer.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import type { WCInstance } from './types';
1
+ import type { WCInstance } from './types.js';
2
2
  import type { SignerFactory } from 'rango-types';
3
3
  export default function getSigners(instance: WCInstance): SignerFactory;
4
- //# sourceMappingURL=signer.d.ts.map
@@ -12,4 +12,3 @@ declare class COSMOSSigner implements GenericSigner<CosmosTransaction> {
12
12
  private isNetworkAndAccountExistInSession;
13
13
  }
14
14
  export default COSMOSSigner;
15
- //# sourceMappingURL=cosmos.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import type { SignClient } from '@walletconnect/sign-client/dist/types/client';
2
2
  import type { SessionTypes } from '@walletconnect/types';
3
- import type { EvmTransaction } from 'rango-types/lib/api/main';
3
+ import type { EvmTransaction } from 'rango-types/mainApi';
4
4
  import { type GenericSigner } from 'rango-types';
5
5
  declare class EVMSigner implements GenericSigner<EvmTransaction> {
6
6
  private client;
@@ -13,4 +13,3 @@ declare class EVMSigner implements GenericSigner<EvmTransaction> {
13
13
  private isNetworkAndAccountExistInSession;
14
14
  }
15
15
  export default EVMSigner;
16
- //# sourceMappingURL=evm.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import type { BlockchainMeta } from 'rango-types';
2
2
  export declare function sendTx(chainId: string, tx: unknown, mode: 'async' | 'sync' | 'block', supportedChains: BlockchainMeta[]): Promise<Uint8Array>;
3
- //# sourceMappingURL=helper.d.ts.map
@@ -1,3 +1,2 @@
1
1
  import type { BlockchainMeta } from 'rango-types';
2
2
  export declare const supportedChains: BlockchainMeta[];
3
- //# sourceMappingURL=mock.d.ts.map
@@ -12,4 +12,3 @@ declare class SOLANASigner implements GenericSigner<SolanaTransaction> {
12
12
  private isNetworkAndAccountExistInSession;
13
13
  }
14
14
  export default SOLANASigner;
15
- //# sourceMappingURL=solana.d.ts.map
package/dist/types.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { SignClient } from '@walletconnect/sign-client/dist/types/client';
2
2
  import type { ProposalTypes, SessionTypes } from '@walletconnect/types';
3
- import type { BlockchainMeta, CosmosBlockchainMeta } from 'rango-types/lib';
3
+ import type { BlockchainMeta, CosmosBlockchainMeta } from 'rango-types';
4
4
  export interface Environments extends Record<string, string | undefined> {
5
5
  WC_PROJECT_ID: string;
6
6
  DISABLE_MODAL_AND_OPEN_LINK?: string;
@@ -22,4 +22,3 @@ export interface ConnectParams {
22
22
  export interface CosmosMeta extends CosmosBlockchainMeta {
23
23
  chainId: string;
24
24
  }
25
- //# sourceMappingURL=types.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rango-dev/provider-walletconnect-2",
3
- "version": "0.28.2-next.4",
3
+ "version": "0.29.1-next.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "source": "./src/index.ts",
@@ -24,18 +24,18 @@
24
24
  "@cosmjs/launchpad": "^0.27.1",
25
25
  "@keplr-wallet/cosmos": "^0.9.12",
26
26
  "@keplr-wallet/simple-fetch": "^0.12.14",
27
- "@rango-dev/logging-core": "^0.5.1-next.1",
28
- "@rango-dev/signer-cosmos": "^0.27.1-next.1",
29
- "@rango-dev/signer-evm": "^0.28.1-next.1",
30
- "@rango-dev/signer-solana": "^0.30.1-next.3",
31
- "@rango-dev/wallets-shared": "^0.35.2-next.2",
27
+ "@rango-dev/logging-core": "^0.6.0",
28
+ "@rango-dev/signer-cosmos": "^0.28.1-next.0",
29
+ "@rango-dev/signer-evm": "^0.29.1-next.0",
30
+ "@rango-dev/signer-solana": "^0.31.1-next.0",
31
+ "@rango-dev/wallets-shared": "^0.36.0",
32
32
  "@solana/web3.js": "^1.91.4",
33
33
  "@walletconnect/encoding": "^1.0.2",
34
34
  "@walletconnect/modal": "^2.6.2",
35
35
  "@walletconnect/sign-client": "^2.11.2",
36
36
  "@walletconnect/utils": "^2.11.2",
37
37
  "bs58": "^5.0.0",
38
- "caip": "^1.1.0",
38
+ "caip": "^1.1.1",
39
39
  "cosmos-wallet": "^1.2.0",
40
40
  "rango-types": "^0.1.69"
41
41
  },
package/src/helpers.ts CHANGED
@@ -17,8 +17,8 @@ import {
17
17
  DEFAULT_SOLANA_CHAIN_ID,
18
18
  EthereumRPCMethods,
19
19
  NAMESPACES,
20
- } from './constants';
21
- import { getLastSession } from './session';
20
+ } from './constants.js';
21
+ import { getLastSession } from './session.js';
22
22
 
23
23
  let web3Modal: WalletConnectModal;
24
24
  export function createModalInstance(projectId: string) {
package/src/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { Environments, WCInstance } from './types';
1
+ import type { Environments, WCInstance } from './types.js';
2
2
  import type {
3
3
  CanSwitchNetwork,
4
4
  Connect,
@@ -25,13 +25,13 @@ import {
25
25
  EthereumRPCMethods,
26
26
  NAMESPACES,
27
27
  RELAY_URL,
28
- } from './constants';
28
+ } from './constants.js';
29
29
  import {
30
30
  createModalInstance,
31
31
  filterEvmAccounts,
32
32
  simulateRequest,
33
33
  switchOrAddEvmChain,
34
- } from './helpers';
34
+ } from './helpers.js';
35
35
  import {
36
36
  cleanupSingleSession,
37
37
  disconnectSessions,
@@ -42,8 +42,8 @@ import {
42
42
  persistCurrentChainId,
43
43
  tryConnect,
44
44
  updateSessionAccounts,
45
- } from './session';
46
- import signer from './signer';
45
+ } from './session.js';
46
+ import signer from './signer.js';
47
47
 
48
48
  const WALLET = WalletTypes.WALLET_CONNECT_2;
49
49
 
package/src/session.ts CHANGED
@@ -1,4 +1,8 @@
1
- import type { ConnectParams, CreateSessionParams, Environments } from './types';
1
+ import type {
2
+ ConnectParams,
3
+ CreateSessionParams,
4
+ Environments,
5
+ } from './types.js';
2
6
  import type { SignClient } from '@walletconnect/sign-client/dist/types/client';
3
7
  import type {
4
8
  PairingTypes,
@@ -11,14 +15,14 @@ import { Networks, timeout } from '@rango-dev/wallets-shared';
11
15
  import { getSdkError } from '@walletconnect/utils';
12
16
  import { AccountId } from 'caip';
13
17
 
14
- import { CHAIN_ID_STORAGE, PING_TIMEOUT } from './constants';
18
+ import { CHAIN_ID_STORAGE, PING_TIMEOUT } from './constants.js';
15
19
  import {
16
20
  generateOptionalNamespace,
17
21
  getCurrentEvmAccountAddress,
18
22
  getEvmAccount,
19
23
  getModal,
20
24
  solanaChainIdToNetworkName,
21
- } from './helpers';
25
+ } from './helpers.js';
22
26
 
23
27
  export function getLastSession(client: SignClient) {
24
28
  return client.session.values[client.session.values.length - 1];
@@ -93,7 +97,7 @@ export async function createSession(
93
97
  .flat() as string[];
94
98
 
95
99
  const modal = getModal();
96
- void modal.openModal({ uri, standaloneChains });
100
+ void modal.openModal({ uri, chains: standaloneChains });
97
101
 
98
102
  onCloseModal = new Promise((_, reject) => {
99
103
  modal.subscribeModal((state) => {
package/src/signer.ts CHANGED
@@ -1,11 +1,11 @@
1
- import type { WCInstance } from './types';
1
+ import type { WCInstance } from './types.js';
2
2
  import type { SignerFactory } from 'rango-types';
3
3
 
4
4
  import { DefaultSignerFactory, TransactionType as TxType } from 'rango-types';
5
5
 
6
- import COSMOSSigner from './signers/cosmos';
7
- import EVMSigner from './signers/evm';
8
- import SOLANASigner from './signers/solana';
6
+ import COSMOSSigner from './signers/cosmos.js';
7
+ import EVMSigner from './signers/evm.js';
8
+ import SOLANASigner from './signers/solana.js';
9
9
 
10
10
  export default function getSigners(instance: WCInstance): SignerFactory {
11
11
  if (!instance.session) {
@@ -11,10 +11,10 @@ import { AccountId, ChainId } from 'caip';
11
11
  import { formatDirectSignDoc, stringifySignDocValues } from 'cosmos-wallet';
12
12
  import { SignerError, SignerErrorCode } from 'rango-types';
13
13
 
14
- import { CosmosRPCMethods, NAMESPACES } from '../constants';
14
+ import { CosmosRPCMethods, NAMESPACES } from '../constants.js';
15
15
 
16
- import { sendTx } from './helper';
17
- import { supportedChains } from './mock';
16
+ import { sendTx } from './helper.js';
17
+ import { supportedChains } from './mock.js';
18
18
 
19
19
  const NAMESPACE_NAME = NAMESPACES.COSMOS;
20
20
  type DirectSignResponse = {
@@ -1,13 +1,13 @@
1
1
  import type { SignClient } from '@walletconnect/sign-client/dist/types/client';
2
2
  import type { SessionTypes } from '@walletconnect/types';
3
- import type { EvmTransaction } from 'rango-types/lib/api/main';
3
+ import type { EvmTransaction } from 'rango-types/mainApi';
4
4
 
5
5
  import { cleanEvmError, DefaultEvmSigner } from '@rango-dev/signer-evm';
6
6
  import * as encoding from '@walletconnect/encoding';
7
7
  import { AccountId, ChainId } from 'caip';
8
8
  import { type GenericSigner } from 'rango-types';
9
9
 
10
- import { EthereumRPCMethods, NAMESPACES } from '../constants';
10
+ import { EthereumRPCMethods, NAMESPACES } from '../constants.js';
11
11
 
12
12
  const NAMESPACE_NAME = NAMESPACES.ETHEREUM;
13
13
 
@@ -10,7 +10,7 @@ import base58 from 'bs58';
10
10
  import { AccountId, ChainId } from 'caip';
11
11
  import { SignerError, SignerErrorCode } from 'rango-types';
12
12
 
13
- import { NAMESPACES, SolanaRPCMethods } from '../constants';
13
+ import { NAMESPACES, SolanaRPCMethods } from '../constants.js';
14
14
 
15
15
  const NAMESPACE_NAME = NAMESPACES.SOLANA;
16
16
  class SOLANASigner implements GenericSigner<SolanaTransaction> {
package/src/types.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { SignClient } from '@walletconnect/sign-client/dist/types/client';
2
2
  import type { ProposalTypes, SessionTypes } from '@walletconnect/types';
3
- import type { BlockchainMeta, CosmosBlockchainMeta } from 'rango-types/lib';
3
+ import type { BlockchainMeta, CosmosBlockchainMeta } from 'rango-types';
4
4
 
5
5
  export interface Environments extends Record<string, string | undefined> {
6
6
  WC_PROJECT_ID: string;
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAErD,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,YAAY,QAAS,CAAC;AAEnC,oBAAY,UAAU;IACpB,QAAQ,WAAW;IACnB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,OAAO,UAAU;IACjB,MAAM,WAAW;IACjB,UAAU,eAAe;CAC1B;AAED,eAAO,MAAM,gBAAgB,4BAA4B,CAAC;AAG1D,oBAAY,gBAAgB;IAC1B,YAAY,uBAAuB;IACnC,gBAAgB,2BAA2B;IAC3C,gBAAgB,2BAA2B;IAC3C,YAAY,uBAAuB;CACpC;AAGD,oBAAY,gBAAgB;IAC1B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KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAQjD,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,QAAQ,EAAE,UAAU,GAAG,aAAa,CAoBtE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"cosmos.d.ts","sourceRoot":"","sources":["../../src/signers/cosmos.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAC;AAC/E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AA+BpE,cAAM,YAAa,YAAW,aAAa,CAAC,iBAAiB,CAAC;IAC5D,OAAO,CAAC,MAAM,CAAa;IAC3B,OAAO,CAAC,OAAO,CAAsB;gBAEzB,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,YAAY,CAAC,MAAM;IAK/C,WAAW,IAAI,OAAO,CAAC,MAAM,CAAC;IAIrC,aAAa,CACjB,EAAE,EAAE,iBAAiB,EACrB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,GAAG,IAAI,GACrB,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAyJ5B,OAAO,CAAC,iCAAiC;CAyC1C;AAED,eAAe,YAAY,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"evm.d.ts","sourceRoot":"","sources":["../../src/signers/evm.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAC;AAC/E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAK/D,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAMjD,cAAM,SAAU,YAAW,aAAa,CAAC,cAAc,CAAC;IACtD,OAAO,CAAC,MAAM,CAAa;IAC3B,OAAO,CAAC,OAAO,CAAsB;gBAEzB,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,YAAY,CAAC,MAAM;IAK/C,WAAW,CACtB,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,GAAG,IAAI,GACrB,OAAO,CAAC,MAAM,CAAC;IAqCZ,aAAa,CACjB,EAAE,EAAE,cAAc,EAClB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,GAAG,IAAI,GACrB,OAAO,CAAC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAqC5B,OAAO,CAAC,iCAAiC;CAwD1C;AAED,eAAe,SAAS,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../src/signers/helper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAMlD,wBAAsB,MAAM,CAC1B,OAAO,EAAE,MAAM,EACf,EAAE,EAAE,OAAO,EACX,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,EAChC,eAAe,EAAE,cAAc,EAAE,GAChC,OAAO,CAAC,UAAU,CAAC,CAiErB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"mock.d.ts","sourceRoot":"","sources":["../../src/signers/mock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,eAAO,MAAM,eAAe,EAAE,cAAc,EAwlH3C,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"solana.d.ts","sourceRoot":"","sources":["../../src/signers/solana.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8CAA8C,CAAC;AAC/E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,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