@nerochain/mpc-sdk 0.1.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/LICENSE +21 -0
- package/README.md +91 -0
- package/dist/aa.d.mts +185 -0
- package/dist/aa.d.ts +185 -0
- package/dist/aa.js +520 -0
- package/dist/aa.js.map +1 -0
- package/dist/aa.mjs +511 -0
- package/dist/aa.mjs.map +1 -0
- package/dist/chain-manager-C3eHsVt9.d.mts +98 -0
- package/dist/chain-manager-C3eHsVt9.d.ts +98 -0
- package/dist/chains.d.mts +17 -0
- package/dist/chains.d.ts +17 -0
- package/dist/chains.js +331 -0
- package/dist/chains.js.map +1 -0
- package/dist/chains.mjs +315 -0
- package/dist/chains.mjs.map +1 -0
- package/dist/index.d.mts +656 -0
- package/dist/index.d.ts +656 -0
- package/dist/index.js +6627 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +6502 -0
- package/dist/index.mjs.map +1 -0
- package/dist/modal.d.mts +68 -0
- package/dist/modal.d.ts +68 -0
- package/dist/modal.js +4867 -0
- package/dist/modal.js.map +1 -0
- package/dist/modal.mjs +4850 -0
- package/dist/modal.mjs.map +1 -0
- package/dist/nero-sdk-Cm8gzHZJ.d.mts +684 -0
- package/dist/nero-sdk-IhuTBrXZ.d.ts +684 -0
- package/dist/no-modal.d.mts +56 -0
- package/dist/no-modal.d.ts +56 -0
- package/dist/no-modal.js +4060 -0
- package/dist/no-modal.js.map +1 -0
- package/dist/no-modal.mjs +4041 -0
- package/dist/no-modal.mjs.map +1 -0
- package/dist/react.d.mts +28 -0
- package/dist/react.d.ts +28 -0
- package/dist/react.js +4033 -0
- package/dist/react.js.map +1 -0
- package/dist/react.mjs +4016 -0
- package/dist/react.mjs.map +1 -0
- package/dist/useNeroWallet-PZh940vV.d.ts +164 -0
- package/dist/useNeroWallet-awIYqM6e.d.mts +164 -0
- package/package.json +126 -0
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import React__default, { ReactNode } from 'react';
|
|
2
|
+
import { S as SDKConfig, a as NeroSDKState, N as NeroMpcSDK, O as OAuthProvider, U as User, W as WalletInfo, b as Signature } from './nero-sdk-IhuTBrXZ.js';
|
|
3
|
+
|
|
4
|
+
interface ThemeColors {
|
|
5
|
+
primary: string;
|
|
6
|
+
primaryHover: string;
|
|
7
|
+
secondary: string;
|
|
8
|
+
secondaryHover: string;
|
|
9
|
+
background: string;
|
|
10
|
+
backgroundSecondary: string;
|
|
11
|
+
surface: string;
|
|
12
|
+
surfaceHover: string;
|
|
13
|
+
text: string;
|
|
14
|
+
textSecondary: string;
|
|
15
|
+
textMuted: string;
|
|
16
|
+
border: string;
|
|
17
|
+
borderFocus: string;
|
|
18
|
+
error: string;
|
|
19
|
+
errorBackground: string;
|
|
20
|
+
success: string;
|
|
21
|
+
successBackground: string;
|
|
22
|
+
warning: string;
|
|
23
|
+
warningBackground: string;
|
|
24
|
+
overlay: string;
|
|
25
|
+
}
|
|
26
|
+
interface ThemeTypography {
|
|
27
|
+
fontFamily: string;
|
|
28
|
+
fontFamilyMono: string;
|
|
29
|
+
fontSizeXs: string;
|
|
30
|
+
fontSizeSm: string;
|
|
31
|
+
fontSizeMd: string;
|
|
32
|
+
fontSizeLg: string;
|
|
33
|
+
fontSizeXl: string;
|
|
34
|
+
fontWeightNormal: number;
|
|
35
|
+
fontWeightMedium: number;
|
|
36
|
+
fontWeightSemibold: number;
|
|
37
|
+
fontWeightBold: number;
|
|
38
|
+
lineHeightTight: number;
|
|
39
|
+
lineHeightNormal: number;
|
|
40
|
+
lineHeightRelaxed: number;
|
|
41
|
+
}
|
|
42
|
+
interface ThemeSpacing {
|
|
43
|
+
xs: string;
|
|
44
|
+
sm: string;
|
|
45
|
+
md: string;
|
|
46
|
+
lg: string;
|
|
47
|
+
xl: string;
|
|
48
|
+
xxl: string;
|
|
49
|
+
}
|
|
50
|
+
interface ThemeBorderRadius {
|
|
51
|
+
none: string;
|
|
52
|
+
sm: string;
|
|
53
|
+
md: string;
|
|
54
|
+
lg: string;
|
|
55
|
+
xl: string;
|
|
56
|
+
full: string;
|
|
57
|
+
}
|
|
58
|
+
interface ThemeShadows {
|
|
59
|
+
sm: string;
|
|
60
|
+
md: string;
|
|
61
|
+
lg: string;
|
|
62
|
+
xl: string;
|
|
63
|
+
}
|
|
64
|
+
interface Theme {
|
|
65
|
+
mode: "light" | "dark";
|
|
66
|
+
colors: ThemeColors;
|
|
67
|
+
typography: ThemeTypography;
|
|
68
|
+
spacing: ThemeSpacing;
|
|
69
|
+
borderRadius: ThemeBorderRadius;
|
|
70
|
+
shadows: ThemeShadows;
|
|
71
|
+
}
|
|
72
|
+
interface UIConfig {
|
|
73
|
+
appName: string;
|
|
74
|
+
logoLight?: string;
|
|
75
|
+
logoDark?: string;
|
|
76
|
+
mode?: "light" | "dark" | "auto";
|
|
77
|
+
theme?: Partial<ThemeOverrides>;
|
|
78
|
+
defaultLanguage?: string;
|
|
79
|
+
}
|
|
80
|
+
interface ThemeOverrides {
|
|
81
|
+
primary?: string;
|
|
82
|
+
secondary?: string;
|
|
83
|
+
background?: string;
|
|
84
|
+
text?: string;
|
|
85
|
+
border?: string;
|
|
86
|
+
fontFamily?: string;
|
|
87
|
+
borderRadius?: string;
|
|
88
|
+
}
|
|
89
|
+
type ThemeMode = "light" | "dark" | "auto";
|
|
90
|
+
|
|
91
|
+
interface ThemeContextValue {
|
|
92
|
+
theme: Theme;
|
|
93
|
+
mode: ThemeMode;
|
|
94
|
+
resolvedMode: "light" | "dark";
|
|
95
|
+
setMode: (mode: ThemeMode) => void;
|
|
96
|
+
uiConfig: UIConfig;
|
|
97
|
+
logo: string | undefined;
|
|
98
|
+
}
|
|
99
|
+
interface ThemeProviderProps {
|
|
100
|
+
children: ReactNode;
|
|
101
|
+
uiConfig?: UIConfig;
|
|
102
|
+
defaultMode?: ThemeMode;
|
|
103
|
+
}
|
|
104
|
+
declare function ThemeProvider({ children, uiConfig, defaultMode, }: ThemeProviderProps): React__default.ReactElement;
|
|
105
|
+
declare function useTheme(): ThemeContextValue;
|
|
106
|
+
declare function useThemeColors(): ThemeColors;
|
|
107
|
+
declare function useResolvedMode(): "light" | "dark";
|
|
108
|
+
|
|
109
|
+
interface NeroMpcAuthProviderProps {
|
|
110
|
+
children: ReactNode;
|
|
111
|
+
config: SDKConfig;
|
|
112
|
+
autoConnect?: boolean;
|
|
113
|
+
uiConfig?: UIConfig;
|
|
114
|
+
themeMode?: ThemeMode;
|
|
115
|
+
}
|
|
116
|
+
declare function NeroMpcAuthProvider({ children, config, autoConnect, uiConfig, themeMode, }: NeroMpcAuthProviderProps): React__default.ReactElement;
|
|
117
|
+
|
|
118
|
+
interface UseNeroMpcAuthReturn extends NeroSDKState {
|
|
119
|
+
sdk: NeroMpcSDK | null;
|
|
120
|
+
isLoading: boolean;
|
|
121
|
+
error: Error | null;
|
|
122
|
+
}
|
|
123
|
+
declare function useNeroMpcAuth(): UseNeroMpcAuthReturn;
|
|
124
|
+
|
|
125
|
+
interface UseNeroConnectReturn {
|
|
126
|
+
connect: (provider: OAuthProvider, redirectUri?: string) => Promise<void>;
|
|
127
|
+
handleCallback: (provider: OAuthProvider, code: string, state: string) => Promise<{
|
|
128
|
+
user: User;
|
|
129
|
+
requiresDKG: boolean;
|
|
130
|
+
}>;
|
|
131
|
+
isConnecting: boolean;
|
|
132
|
+
error: Error | null;
|
|
133
|
+
}
|
|
134
|
+
declare function useNeroConnect(): UseNeroConnectReturn;
|
|
135
|
+
|
|
136
|
+
interface UseNeroDisconnectReturn {
|
|
137
|
+
disconnect: () => Promise<void>;
|
|
138
|
+
isDisconnecting: boolean;
|
|
139
|
+
error: Error | null;
|
|
140
|
+
}
|
|
141
|
+
declare function useNeroDisconnect(): UseNeroDisconnectReturn;
|
|
142
|
+
|
|
143
|
+
interface UseNeroUserReturn {
|
|
144
|
+
user: User | null;
|
|
145
|
+
isAuthenticated: boolean;
|
|
146
|
+
}
|
|
147
|
+
declare function useNeroUser(): UseNeroUserReturn;
|
|
148
|
+
|
|
149
|
+
interface UseNeroWalletReturn {
|
|
150
|
+
wallet: WalletInfo | null;
|
|
151
|
+
hasWallet: boolean;
|
|
152
|
+
generateWallet: () => Promise<WalletInfo>;
|
|
153
|
+
signMessage: (message: string) => Promise<Signature>;
|
|
154
|
+
signTypedData: (domain: Record<string, unknown>, types: Record<string, Array<{
|
|
155
|
+
name: string;
|
|
156
|
+
type: string;
|
|
157
|
+
}>>, primaryType: string, value: Record<string, unknown>) => Promise<Signature>;
|
|
158
|
+
isGenerating: boolean;
|
|
159
|
+
isSigning: boolean;
|
|
160
|
+
error: Error | null;
|
|
161
|
+
}
|
|
162
|
+
declare function useNeroWallet(): UseNeroWalletReturn;
|
|
163
|
+
|
|
164
|
+
export { NeroMpcAuthProvider as N, type Theme as T, type UIConfig as U, type NeroMpcAuthProviderProps as a, type ThemeBorderRadius as b, type ThemeColors as c, type ThemeContextValue as d, type ThemeMode as e, type ThemeOverrides as f, ThemeProvider as g, type ThemeProviderProps as h, type ThemeShadows as i, type ThemeSpacing as j, type ThemeTypography as k, type UseNeroConnectReturn as l, type UseNeroDisconnectReturn as m, type UseNeroMpcAuthReturn as n, type UseNeroUserReturn as o, type UseNeroWalletReturn as p, useNeroDisconnect as q, useNeroMpcAuth as r, useNeroUser as s, useNeroWallet as t, useNeroConnect as u, useResolvedMode as v, useTheme as w, useThemeColors as x };
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import React__default, { ReactNode } from 'react';
|
|
2
|
+
import { S as SDKConfig, a as NeroSDKState, N as NeroMpcSDK, O as OAuthProvider, U as User, W as WalletInfo, b as Signature } from './nero-sdk-Cm8gzHZJ.mjs';
|
|
3
|
+
|
|
4
|
+
interface ThemeColors {
|
|
5
|
+
primary: string;
|
|
6
|
+
primaryHover: string;
|
|
7
|
+
secondary: string;
|
|
8
|
+
secondaryHover: string;
|
|
9
|
+
background: string;
|
|
10
|
+
backgroundSecondary: string;
|
|
11
|
+
surface: string;
|
|
12
|
+
surfaceHover: string;
|
|
13
|
+
text: string;
|
|
14
|
+
textSecondary: string;
|
|
15
|
+
textMuted: string;
|
|
16
|
+
border: string;
|
|
17
|
+
borderFocus: string;
|
|
18
|
+
error: string;
|
|
19
|
+
errorBackground: string;
|
|
20
|
+
success: string;
|
|
21
|
+
successBackground: string;
|
|
22
|
+
warning: string;
|
|
23
|
+
warningBackground: string;
|
|
24
|
+
overlay: string;
|
|
25
|
+
}
|
|
26
|
+
interface ThemeTypography {
|
|
27
|
+
fontFamily: string;
|
|
28
|
+
fontFamilyMono: string;
|
|
29
|
+
fontSizeXs: string;
|
|
30
|
+
fontSizeSm: string;
|
|
31
|
+
fontSizeMd: string;
|
|
32
|
+
fontSizeLg: string;
|
|
33
|
+
fontSizeXl: string;
|
|
34
|
+
fontWeightNormal: number;
|
|
35
|
+
fontWeightMedium: number;
|
|
36
|
+
fontWeightSemibold: number;
|
|
37
|
+
fontWeightBold: number;
|
|
38
|
+
lineHeightTight: number;
|
|
39
|
+
lineHeightNormal: number;
|
|
40
|
+
lineHeightRelaxed: number;
|
|
41
|
+
}
|
|
42
|
+
interface ThemeSpacing {
|
|
43
|
+
xs: string;
|
|
44
|
+
sm: string;
|
|
45
|
+
md: string;
|
|
46
|
+
lg: string;
|
|
47
|
+
xl: string;
|
|
48
|
+
xxl: string;
|
|
49
|
+
}
|
|
50
|
+
interface ThemeBorderRadius {
|
|
51
|
+
none: string;
|
|
52
|
+
sm: string;
|
|
53
|
+
md: string;
|
|
54
|
+
lg: string;
|
|
55
|
+
xl: string;
|
|
56
|
+
full: string;
|
|
57
|
+
}
|
|
58
|
+
interface ThemeShadows {
|
|
59
|
+
sm: string;
|
|
60
|
+
md: string;
|
|
61
|
+
lg: string;
|
|
62
|
+
xl: string;
|
|
63
|
+
}
|
|
64
|
+
interface Theme {
|
|
65
|
+
mode: "light" | "dark";
|
|
66
|
+
colors: ThemeColors;
|
|
67
|
+
typography: ThemeTypography;
|
|
68
|
+
spacing: ThemeSpacing;
|
|
69
|
+
borderRadius: ThemeBorderRadius;
|
|
70
|
+
shadows: ThemeShadows;
|
|
71
|
+
}
|
|
72
|
+
interface UIConfig {
|
|
73
|
+
appName: string;
|
|
74
|
+
logoLight?: string;
|
|
75
|
+
logoDark?: string;
|
|
76
|
+
mode?: "light" | "dark" | "auto";
|
|
77
|
+
theme?: Partial<ThemeOverrides>;
|
|
78
|
+
defaultLanguage?: string;
|
|
79
|
+
}
|
|
80
|
+
interface ThemeOverrides {
|
|
81
|
+
primary?: string;
|
|
82
|
+
secondary?: string;
|
|
83
|
+
background?: string;
|
|
84
|
+
text?: string;
|
|
85
|
+
border?: string;
|
|
86
|
+
fontFamily?: string;
|
|
87
|
+
borderRadius?: string;
|
|
88
|
+
}
|
|
89
|
+
type ThemeMode = "light" | "dark" | "auto";
|
|
90
|
+
|
|
91
|
+
interface ThemeContextValue {
|
|
92
|
+
theme: Theme;
|
|
93
|
+
mode: ThemeMode;
|
|
94
|
+
resolvedMode: "light" | "dark";
|
|
95
|
+
setMode: (mode: ThemeMode) => void;
|
|
96
|
+
uiConfig: UIConfig;
|
|
97
|
+
logo: string | undefined;
|
|
98
|
+
}
|
|
99
|
+
interface ThemeProviderProps {
|
|
100
|
+
children: ReactNode;
|
|
101
|
+
uiConfig?: UIConfig;
|
|
102
|
+
defaultMode?: ThemeMode;
|
|
103
|
+
}
|
|
104
|
+
declare function ThemeProvider({ children, uiConfig, defaultMode, }: ThemeProviderProps): React__default.ReactElement;
|
|
105
|
+
declare function useTheme(): ThemeContextValue;
|
|
106
|
+
declare function useThemeColors(): ThemeColors;
|
|
107
|
+
declare function useResolvedMode(): "light" | "dark";
|
|
108
|
+
|
|
109
|
+
interface NeroMpcAuthProviderProps {
|
|
110
|
+
children: ReactNode;
|
|
111
|
+
config: SDKConfig;
|
|
112
|
+
autoConnect?: boolean;
|
|
113
|
+
uiConfig?: UIConfig;
|
|
114
|
+
themeMode?: ThemeMode;
|
|
115
|
+
}
|
|
116
|
+
declare function NeroMpcAuthProvider({ children, config, autoConnect, uiConfig, themeMode, }: NeroMpcAuthProviderProps): React__default.ReactElement;
|
|
117
|
+
|
|
118
|
+
interface UseNeroMpcAuthReturn extends NeroSDKState {
|
|
119
|
+
sdk: NeroMpcSDK | null;
|
|
120
|
+
isLoading: boolean;
|
|
121
|
+
error: Error | null;
|
|
122
|
+
}
|
|
123
|
+
declare function useNeroMpcAuth(): UseNeroMpcAuthReturn;
|
|
124
|
+
|
|
125
|
+
interface UseNeroConnectReturn {
|
|
126
|
+
connect: (provider: OAuthProvider, redirectUri?: string) => Promise<void>;
|
|
127
|
+
handleCallback: (provider: OAuthProvider, code: string, state: string) => Promise<{
|
|
128
|
+
user: User;
|
|
129
|
+
requiresDKG: boolean;
|
|
130
|
+
}>;
|
|
131
|
+
isConnecting: boolean;
|
|
132
|
+
error: Error | null;
|
|
133
|
+
}
|
|
134
|
+
declare function useNeroConnect(): UseNeroConnectReturn;
|
|
135
|
+
|
|
136
|
+
interface UseNeroDisconnectReturn {
|
|
137
|
+
disconnect: () => Promise<void>;
|
|
138
|
+
isDisconnecting: boolean;
|
|
139
|
+
error: Error | null;
|
|
140
|
+
}
|
|
141
|
+
declare function useNeroDisconnect(): UseNeroDisconnectReturn;
|
|
142
|
+
|
|
143
|
+
interface UseNeroUserReturn {
|
|
144
|
+
user: User | null;
|
|
145
|
+
isAuthenticated: boolean;
|
|
146
|
+
}
|
|
147
|
+
declare function useNeroUser(): UseNeroUserReturn;
|
|
148
|
+
|
|
149
|
+
interface UseNeroWalletReturn {
|
|
150
|
+
wallet: WalletInfo | null;
|
|
151
|
+
hasWallet: boolean;
|
|
152
|
+
generateWallet: () => Promise<WalletInfo>;
|
|
153
|
+
signMessage: (message: string) => Promise<Signature>;
|
|
154
|
+
signTypedData: (domain: Record<string, unknown>, types: Record<string, Array<{
|
|
155
|
+
name: string;
|
|
156
|
+
type: string;
|
|
157
|
+
}>>, primaryType: string, value: Record<string, unknown>) => Promise<Signature>;
|
|
158
|
+
isGenerating: boolean;
|
|
159
|
+
isSigning: boolean;
|
|
160
|
+
error: Error | null;
|
|
161
|
+
}
|
|
162
|
+
declare function useNeroWallet(): UseNeroWalletReturn;
|
|
163
|
+
|
|
164
|
+
export { NeroMpcAuthProvider as N, type Theme as T, type UIConfig as U, type NeroMpcAuthProviderProps as a, type ThemeBorderRadius as b, type ThemeColors as c, type ThemeContextValue as d, type ThemeMode as e, type ThemeOverrides as f, ThemeProvider as g, type ThemeProviderProps as h, type ThemeShadows as i, type ThemeSpacing as j, type ThemeTypography as k, type UseNeroConnectReturn as l, type UseNeroDisconnectReturn as m, type UseNeroMpcAuthReturn as n, type UseNeroUserReturn as o, type UseNeroWalletReturn as p, useNeroDisconnect as q, useNeroMpcAuth as r, useNeroUser as s, useNeroWallet as t, useNeroConnect as u, useResolvedMode as v, useTheme as w, useThemeColors as x };
|
package/package.json
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@nerochain/mpc-sdk",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "NERO MPC SDK - Browser-based threshold signature client for self-custodial wallets",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.mjs",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.mjs",
|
|
12
|
+
"require": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./react": {
|
|
15
|
+
"types": "./dist/react.d.ts",
|
|
16
|
+
"import": "./dist/react.mjs",
|
|
17
|
+
"require": "./dist/react.js"
|
|
18
|
+
},
|
|
19
|
+
"./chains": {
|
|
20
|
+
"types": "./dist/chains.d.ts",
|
|
21
|
+
"import": "./dist/chains.mjs",
|
|
22
|
+
"require": "./dist/chains.js"
|
|
23
|
+
},
|
|
24
|
+
"./modal": {
|
|
25
|
+
"types": "./dist/modal.d.ts",
|
|
26
|
+
"import": "./dist/modal.mjs",
|
|
27
|
+
"require": "./dist/modal.js"
|
|
28
|
+
},
|
|
29
|
+
"./no-modal": {
|
|
30
|
+
"types": "./dist/no-modal.d.ts",
|
|
31
|
+
"import": "./dist/no-modal.mjs",
|
|
32
|
+
"require": "./dist/no-modal.js"
|
|
33
|
+
},
|
|
34
|
+
"./aa": {
|
|
35
|
+
"types": "./dist/aa.d.ts",
|
|
36
|
+
"import": "./dist/aa.mjs",
|
|
37
|
+
"require": "./dist/aa.js"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"files": [
|
|
41
|
+
"dist",
|
|
42
|
+
"README.md",
|
|
43
|
+
"LICENSE"
|
|
44
|
+
],
|
|
45
|
+
"scripts": {
|
|
46
|
+
"build": "tsup",
|
|
47
|
+
"dev": "tsup --watch",
|
|
48
|
+
"test": "vitest",
|
|
49
|
+
"test:run": "vitest run",
|
|
50
|
+
"type-check": "tsc --noEmit",
|
|
51
|
+
"lint": "biome check src/",
|
|
52
|
+
"lint:fix": "biome check --apply src/",
|
|
53
|
+
"clean": "rm -rf dist"
|
|
54
|
+
},
|
|
55
|
+
"keywords": [
|
|
56
|
+
"mpc",
|
|
57
|
+
"threshold-signatures",
|
|
58
|
+
"wallet",
|
|
59
|
+
"ethereum",
|
|
60
|
+
"web3",
|
|
61
|
+
"account-abstraction",
|
|
62
|
+
"erc-4337",
|
|
63
|
+
"react",
|
|
64
|
+
"nero-chain"
|
|
65
|
+
],
|
|
66
|
+
"author": "NERO Network",
|
|
67
|
+
"license": "MIT",
|
|
68
|
+
"repository": {
|
|
69
|
+
"type": "git",
|
|
70
|
+
"url": "https://github.com/souzavinny/nero-mpc-sdk.git"
|
|
71
|
+
},
|
|
72
|
+
"homepage": "https://github.com/souzavinny/nero-mpc-sdk",
|
|
73
|
+
"bugs": {
|
|
74
|
+
"url": "https://github.com/souzavinny/nero-mpc-sdk/issues"
|
|
75
|
+
},
|
|
76
|
+
"publishConfig": {
|
|
77
|
+
"access": "public"
|
|
78
|
+
},
|
|
79
|
+
"peerDependencies": {
|
|
80
|
+
"@coinbase/wallet-sdk": "^4.0.0",
|
|
81
|
+
"@metamask/sdk": "^0.20.0",
|
|
82
|
+
"@noble/curves": "^1.4.0",
|
|
83
|
+
"@noble/hashes": "^1.4.0",
|
|
84
|
+
"@walletconnect/ethereum-provider": "^2.0.0",
|
|
85
|
+
"ethers": "^6.0.0",
|
|
86
|
+
"react": "^18.0.0 || ^19.0.0"
|
|
87
|
+
},
|
|
88
|
+
"peerDependenciesMeta": {
|
|
89
|
+
"react": {
|
|
90
|
+
"optional": true
|
|
91
|
+
},
|
|
92
|
+
"@walletconnect/ethereum-provider": {
|
|
93
|
+
"optional": true
|
|
94
|
+
},
|
|
95
|
+
"@metamask/sdk": {
|
|
96
|
+
"optional": true
|
|
97
|
+
},
|
|
98
|
+
"@coinbase/wallet-sdk": {
|
|
99
|
+
"optional": true
|
|
100
|
+
},
|
|
101
|
+
"ethers": {
|
|
102
|
+
"optional": true
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"devDependencies": {
|
|
106
|
+
"@biomejs/biome": "^1.9.4",
|
|
107
|
+
"@noble/curves": "^1.4.0",
|
|
108
|
+
"@noble/hashes": "^1.4.0",
|
|
109
|
+
"@testing-library/react": "^14.3.1",
|
|
110
|
+
"@types/node": "^20.14.0",
|
|
111
|
+
"@types/react": "^18.3.0",
|
|
112
|
+
"fake-indexeddb": "^6.0.0",
|
|
113
|
+
"jsdom": "^27.4.0",
|
|
114
|
+
"react": "^18.3.0",
|
|
115
|
+
"react-dom": "^18.3.1",
|
|
116
|
+
"tsup": "^8.1.0",
|
|
117
|
+
"typescript": "^5.4.5",
|
|
118
|
+
"vitest": "^1.6.0"
|
|
119
|
+
},
|
|
120
|
+
"engines": {
|
|
121
|
+
"node": ">=18.0.0"
|
|
122
|
+
},
|
|
123
|
+
"browser": {
|
|
124
|
+
"crypto": false
|
|
125
|
+
}
|
|
126
|
+
}
|