Skip to content

Commit 8fb1d36

Browse files
committed
fix circular dependencies
1 parent 7410833 commit 8fb1d36

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

packages/no-modal/src/connectors/wallet-connect-v2-connector/config.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,6 @@ export enum DEFAULT_SOLANA_EVENTS {
3131
SOL_ACCOUNTS_CHANGED = "accountsChanged",
3232
}
3333

34-
export enum EIP1193_EVENTS {
35-
ACCOUNTS_CHANGED = "accountsChanged",
36-
CHAIN_CHANGED = "chainChanged",
37-
CONNECT = "connect",
38-
DISCONNECT = "disconnect",
39-
MESSAGE = "message",
40-
}
41-
4234
export const SOLANA_CAIP_CHAIN_MAP: Record<string, string> = {
4335
"0x65": "5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
4436
"0x66": "4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z",

packages/no-modal/src/providers/base-provider/baseProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import {
1010
WalletInitializationError,
1111
WalletProviderError,
1212
} from "@/core/base";
13-
import { EIP1193_EVENTS } from "@/core/wallet-connect-v2-connector";
1413

1514
import { BaseProviderEvents } from "./interfaces";
15+
import { EIP1193_EVENTS } from "./utils";
1616

1717
export interface BaseProviderState extends BaseState {
1818
chainId: string;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
import getCreateRandomId from "json-rpc-random-id";
22
export const createRandomId = getCreateRandomId();
33

4+
export enum EIP1193_EVENTS {
5+
ACCOUNTS_CHANGED = "accountsChanged",
6+
CHAIN_CHANGED = "chainChanged",
7+
CONNECT = "connect",
8+
DISCONNECT = "disconnect",
9+
MESSAGE = "message",
10+
}
11+
412
export { getED25519Key } from "@web3auth/auth";

0 commit comments

Comments
 (0)