@magic-sdk/types 11.4.0-beta → 11.4.0-beta-2

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.
@@ -6,9 +6,59 @@ export interface ThirdPartyWalletOptions {
6
6
  chainId?: number;
7
7
  };
8
8
  };
9
- walletConnect?: {
10
- modal: any;
11
- provider: any;
12
- connect: any;
9
+ walletConnect?: WalletConnectSDKOptions;
10
+ }
11
+ export interface WalletConnectSDKOptions {
12
+ bridge: string;
13
+ qrcode: boolean;
14
+ qrcodeModal: {
15
+ open: (uri: string, cb: any, qrcodeModalOptions?: IQRCodeModalOptions | undefined) => void;
16
+ close: () => void;
13
17
  };
18
+ qrcodeModalOptions: IQRCodeModalOptions | undefined;
19
+ rpc: IRPCMap | null;
20
+ infuraId: string;
21
+ http: any;
22
+ wc: any;
23
+ isConnecting: boolean;
24
+ connected: boolean;
25
+ connectCallbacks: any[];
26
+ accounts: string[];
27
+ chainId: number;
28
+ rpcUrl: string;
29
+ }
30
+ export interface IQRCodeModalOptions {
31
+ registryUrl?: string;
32
+ mobileLinks?: string[];
33
+ desktopLinks?: string[];
34
+ }
35
+ export interface IRPCMap {
36
+ [chainId: number]: string;
37
+ }
38
+ export interface CoinbaseWalletSDKOptions {
39
+ /** Application name */
40
+ appName: string;
41
+ /** @optional Application logo image URL; favicon is used if unspecified */
42
+ appLogoUrl?: string | null;
43
+ /** @optional Use dark theme */
44
+ darkMode?: boolean;
45
+ /** @optional Coinbase Wallet link server URL; for most, leave it unspecified */
46
+ linkAPIUrl?: string;
47
+ /** @optional an implementation of WalletUI; for most, leave it unspecified */
48
+ uiConstructor?: (options: any) => any;
49
+ /** @optional an implementation of EventListener for debugging; for most, leave it unspecified */
50
+ /** @deprecated in favor of diagnosticLogger */
51
+ eventListener?: EventListener;
52
+ /** @optional a diagnostic tool for debugging; for most, leave it unspecified */
53
+ diagnosticLogger?: any;
54
+ /** @optional whether wallet link provider should override the isMetaMask property. */
55
+ overrideIsMetaMask?: boolean;
56
+ /** @optional whether wallet link provider should override the isCoinbaseWallet property. */
57
+ overrideIsCoinbaseWallet?: boolean;
58
+ /** @optional whether coinbase wallet provider should override the isCoinbaseBrowser property. */
59
+ overrideIsCoinbaseBrowser?: boolean;
60
+ /** @optional whether or not onboarding overlay popup should be displayed */
61
+ headlessMode?: boolean;
62
+ /** @optional whether or not to reload dapp automatically after disconnect, defaults to true */
63
+ reloadOnDisconnect?: boolean;
14
64
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@magic-sdk/types",
3
- "version": "11.4.0-beta",
3
+ "version": "11.4.0-beta-2",
4
4
  "description": "Core typings for Magic SDK packages.",
5
5
  "author": "Magic Labs <team@magic.link> (https://magic.link/)",
6
6
  "license": "MIT",