@dynamic-labs/wallet-book 4.25.5 → 4.25.7
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/CHANGELOG.md +10 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +6 -6
- package/src/build/index.d.ts +3 -3
- package/src/build/sources/walletConnect/index.d.ts +27 -27
- package/src/components/WalletIcon.d.ts +1 -1
- package/src/helpers/findWalletBookWallet.d.ts +3 -3
- package/src/helpers/findWalletBookWalletByNameAndChain.d.ts +3 -3
- package/src/hooks/fetchWalletBook/fetchWalletBook.d.ts +3 -3
- package/src/hooks/useWalletBookCdn.d.ts +3 -3
- package/src/schemas/utils/nonEmptyString.cjs +23 -2
- package/src/schemas/utils/nonEmptyString.d.ts +2 -2
- package/src/schemas/utils/nonEmptyString.js +3 -2
- package/src/schemas/utils/nonEmptyStringArray.cjs +23 -2
- package/src/schemas/utils/nonEmptyStringArray.d.ts +2 -2
- package/src/schemas/utils/nonEmptyStringArray.js +3 -2
- package/src/schemas/walletBookSchema.cjs +28 -7
- package/src/schemas/walletBookSchema.d.ts +204 -1067
- package/src/schemas/walletBookSchema.js +4 -3
- package/src/schemas/walletConnectSourceSchema.d.ts +119 -511
- package/src/schemas/walletGroup.cjs +30 -11
- package/src/schemas/walletGroup.d.ts +26 -110
- package/src/schemas/walletGroup.js +6 -7
- package/src/schemas/walletSchema.cjs +78 -81
- package/src/schemas/walletSchema.d.ts +108 -441
- package/src/schemas/walletSchema.js +50 -73
- package/wallet-book-fallbacks.cjs +1 -1
- package/wallet-book-fallbacks.js +1 -1
|
@@ -1,123 +1,53 @@
|
|
|
1
|
-
import
|
|
2
|
-
declare const injectedConfigSchema: z.
|
|
3
|
-
chain: z.
|
|
4
|
-
extensionLocators: z.
|
|
5
|
-
flag: z.
|
|
6
|
-
value: z.
|
|
7
|
-
},
|
|
8
|
-
value: boolean;
|
|
9
|
-
flag: string;
|
|
10
|
-
}, {
|
|
11
|
-
flag: string;
|
|
12
|
-
value?: boolean | undefined;
|
|
13
|
-
}>, "many">;
|
|
1
|
+
import * as z from 'zod/mini';
|
|
2
|
+
declare const injectedConfigSchema: z.ZodMiniObject<{
|
|
3
|
+
chain: z.ZodMiniString<string>;
|
|
4
|
+
extensionLocators: z.ZodMiniArray<z.ZodMiniObject<{
|
|
5
|
+
flag: z.ZodMiniString<string>;
|
|
6
|
+
value: z.ZodMiniDefault<z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>>;
|
|
7
|
+
}, z.core.$strip>>;
|
|
14
8
|
/**
|
|
15
9
|
* Allows declaring which interface, if any, this wallet's implementation follows
|
|
16
10
|
* ex. Leather with https://btckit.org/
|
|
17
11
|
*/
|
|
18
|
-
providerInterface: z.
|
|
12
|
+
providerInterface: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
19
13
|
/**
|
|
20
14
|
* Allows declaring that this wallet is discoverable through the the Wallet Standard
|
|
21
15
|
* See https://github.com/wallet-standard/wallet-standard
|
|
22
16
|
* Also allows ignoring wallets that don't support the provided features
|
|
23
17
|
*/
|
|
24
|
-
walletStandard: z.
|
|
25
|
-
features: z.
|
|
26
|
-
name: z.
|
|
27
|
-
providerId: z.
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
name: string;
|
|
58
|
-
providerId?: string | undefined;
|
|
59
|
-
} | undefined;
|
|
60
|
-
walletStandardLocators?: {
|
|
61
|
-
name: string;
|
|
62
|
-
locator: string;
|
|
63
|
-
}[] | undefined;
|
|
64
|
-
windowLocations?: string[] | undefined;
|
|
65
|
-
}, {
|
|
66
|
-
chain: string;
|
|
67
|
-
extensionLocators: {
|
|
68
|
-
flag: string;
|
|
69
|
-
value?: boolean | undefined;
|
|
70
|
-
}[];
|
|
71
|
-
providerInterface?: string | undefined;
|
|
72
|
-
walletStandard?: {
|
|
73
|
-
features: string[];
|
|
74
|
-
name: string;
|
|
75
|
-
providerId?: string | undefined;
|
|
76
|
-
} | undefined;
|
|
77
|
-
walletStandardLocators?: {
|
|
78
|
-
name: string;
|
|
79
|
-
locator: string;
|
|
80
|
-
}[] | undefined;
|
|
81
|
-
windowLocations?: string[] | undefined;
|
|
82
|
-
}>;
|
|
83
|
-
export declare const brandSchema: z.ZodObject<{
|
|
84
|
-
alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
85
|
-
primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
86
|
-
spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
87
|
-
}, "strip", z.ZodTypeAny, {
|
|
88
|
-
alt?: string | undefined;
|
|
89
|
-
primaryColor?: string | undefined;
|
|
90
|
-
spriteId?: string | undefined;
|
|
91
|
-
}, {
|
|
92
|
-
alt?: unknown;
|
|
93
|
-
primaryColor?: unknown;
|
|
94
|
-
spriteId?: unknown;
|
|
95
|
-
}>;
|
|
96
|
-
export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
97
|
-
brand: z.ZodOptional<z.ZodObject<{
|
|
98
|
-
alt: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
99
|
-
primaryColor: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
100
|
-
spriteId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
101
|
-
}, "strip", z.ZodTypeAny, {
|
|
102
|
-
alt?: string | undefined;
|
|
103
|
-
primaryColor?: string | undefined;
|
|
104
|
-
spriteId?: string | undefined;
|
|
105
|
-
}, {
|
|
106
|
-
alt?: unknown;
|
|
107
|
-
primaryColor?: unknown;
|
|
108
|
-
spriteId?: unknown;
|
|
109
|
-
}>>;
|
|
110
|
-
chainGroup: z.ZodOptional<z.ZodString>;
|
|
111
|
-
chains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
112
|
-
desktop: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
113
|
-
chromeId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
|
|
114
|
-
edgeId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
|
|
115
|
-
firefoxId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
|
|
116
|
-
native: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
117
|
-
operaId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
118
|
-
safariId: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
119
|
-
universal: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
120
|
-
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
walletStandard: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
19
|
+
features: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
20
|
+
name: z.ZodMiniString<string>;
|
|
21
|
+
providerId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
walletStandardLocators: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
24
|
+
locator: z.ZodMiniString<string>;
|
|
25
|
+
name: z.ZodMiniString<string>;
|
|
26
|
+
}, z.core.$strip>>>;
|
|
27
|
+
windowLocations: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
export declare const brandSchema: z.ZodMiniObject<{
|
|
30
|
+
alt: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTransform<{} | undefined, unknown>, z.ZodMiniOptional<z.ZodMiniString<string>>>>;
|
|
31
|
+
primaryColor: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTransform<{} | undefined, unknown>, z.ZodMiniOptional<z.ZodMiniString<string>>>>;
|
|
32
|
+
spriteId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTransform<{} | undefined, unknown>, z.ZodMiniOptional<z.ZodMiniString<string>>>>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
export declare const walletSchema: z.ZodMiniPipe<z.ZodMiniPipe<z.ZodMiniTransform<unknown, unknown>, z.ZodMiniObject<{
|
|
35
|
+
brand: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
36
|
+
alt: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTransform<{} | undefined, unknown>, z.ZodMiniOptional<z.ZodMiniString<string>>>>;
|
|
37
|
+
primaryColor: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTransform<{} | undefined, unknown>, z.ZodMiniOptional<z.ZodMiniString<string>>>>;
|
|
38
|
+
spriteId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTransform<{} | undefined, unknown>, z.ZodMiniOptional<z.ZodMiniString<string>>>>;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
chainGroup: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
41
|
+
chains: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
42
|
+
desktop: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniObject<{
|
|
43
|
+
chromeId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTransform<{} | undefined, unknown>, z.ZodMiniOptional<z.ZodMiniString<string>>>>, z.ZodMiniTransform<string | undefined, string | undefined>>>;
|
|
44
|
+
edgeId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTransform<{} | undefined, unknown>, z.ZodMiniOptional<z.ZodMiniString<string>>>>, z.ZodMiniTransform<string | undefined, string | undefined>>>;
|
|
45
|
+
firefoxId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTransform<{} | undefined, unknown>, z.ZodMiniOptional<z.ZodMiniString<string>>>>, z.ZodMiniTransform<string | undefined, string | undefined>>>;
|
|
46
|
+
native: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTransform<{} | undefined, unknown>, z.ZodMiniOptional<z.ZodMiniString<string>>>>;
|
|
47
|
+
operaId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTransform<{} | undefined, unknown>, z.ZodMiniOptional<z.ZodMiniString<string>>>>;
|
|
48
|
+
safariId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTransform<{} | undefined, unknown>, z.ZodMiniOptional<z.ZodMiniString<string>>>>;
|
|
49
|
+
universal: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTransform<{} | undefined, unknown>, z.ZodMiniOptional<z.ZodMiniString<string>>>>;
|
|
50
|
+
}, z.core.$strip>, z.ZodMiniTransform<{
|
|
121
51
|
chromeId?: string | undefined;
|
|
122
52
|
edgeId?: string | undefined;
|
|
123
53
|
firefoxId?: string | undefined;
|
|
@@ -125,15 +55,7 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
125
55
|
operaId?: string | undefined;
|
|
126
56
|
safariId?: string | undefined;
|
|
127
57
|
universal?: string | undefined;
|
|
128
|
-
}, {
|
|
129
|
-
chromeId?: unknown;
|
|
130
|
-
edgeId?: unknown;
|
|
131
|
-
firefoxId?: unknown;
|
|
132
|
-
native?: unknown;
|
|
133
|
-
operaId?: unknown;
|
|
134
|
-
safariId?: unknown;
|
|
135
|
-
universal?: unknown;
|
|
136
|
-
}>>, {
|
|
58
|
+
} | undefined, {
|
|
137
59
|
chromeId?: string | undefined;
|
|
138
60
|
edgeId?: string | undefined;
|
|
139
61
|
firefoxId?: string | undefined;
|
|
@@ -141,122 +63,56 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
141
63
|
operaId?: string | undefined;
|
|
142
64
|
safariId?: string | undefined;
|
|
143
65
|
universal?: string | undefined;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
safariId?: unknown;
|
|
151
|
-
universal?: unknown;
|
|
152
|
-
} | undefined>;
|
|
153
|
-
eip6963Config: z.ZodOptional<z.ZodObject<{
|
|
154
|
-
rdns: z.ZodString;
|
|
155
|
-
}, "strip", z.ZodTypeAny, {
|
|
156
|
-
rdns: string;
|
|
157
|
-
}, {
|
|
158
|
-
rdns: string;
|
|
159
|
-
}>>;
|
|
160
|
-
filterFromWalletConnect: z.ZodOptional<z.ZodBoolean>;
|
|
161
|
-
group: z.ZodOptional<z.ZodString>;
|
|
66
|
+
}>>>;
|
|
67
|
+
eip6963Config: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
68
|
+
rdns: z.ZodMiniString<string>;
|
|
69
|
+
}, z.core.$strip>>;
|
|
70
|
+
filterFromWalletConnect: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
71
|
+
group: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
162
72
|
/**
|
|
163
73
|
* Indicates which hardware wallets are enabled for this wallet
|
|
164
74
|
*/
|
|
165
|
-
hardwareWallets: z.
|
|
166
|
-
injectedConfig: z.
|
|
167
|
-
chain: z.
|
|
168
|
-
extensionLocators: z.
|
|
169
|
-
flag: z.
|
|
170
|
-
value: z.
|
|
171
|
-
},
|
|
172
|
-
value: boolean;
|
|
173
|
-
flag: string;
|
|
174
|
-
}, {
|
|
175
|
-
flag: string;
|
|
176
|
-
value?: boolean | undefined;
|
|
177
|
-
}>, "many">;
|
|
75
|
+
hardwareWallets: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
76
|
+
injectedConfig: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
77
|
+
chain: z.ZodMiniString<string>;
|
|
78
|
+
extensionLocators: z.ZodMiniArray<z.ZodMiniObject<{
|
|
79
|
+
flag: z.ZodMiniString<string>;
|
|
80
|
+
value: z.ZodMiniDefault<z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>>;
|
|
81
|
+
}, z.core.$strip>>;
|
|
178
82
|
/**
|
|
179
83
|
* Allows declaring which interface, if any, this wallet's implementation follows
|
|
180
84
|
* ex. Leather with https://btckit.org/
|
|
181
85
|
*/
|
|
182
|
-
providerInterface: z.
|
|
86
|
+
providerInterface: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
183
87
|
/**
|
|
184
88
|
* Allows declaring that this wallet is discoverable through the the Wallet Standard
|
|
185
89
|
* See https://github.com/wallet-standard/wallet-standard
|
|
186
90
|
* Also allows ignoring wallets that don't support the provided features
|
|
187
91
|
*/
|
|
188
|
-
walletStandard: z.
|
|
189
|
-
features: z.
|
|
190
|
-
name: z.
|
|
191
|
-
providerId: z.
|
|
192
|
-
},
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
},
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
locator: z.ZodString;
|
|
203
|
-
name: z.ZodString;
|
|
204
|
-
}, "strip", z.ZodTypeAny, {
|
|
205
|
-
name: string;
|
|
206
|
-
locator: string;
|
|
207
|
-
}, {
|
|
208
|
-
name: string;
|
|
209
|
-
locator: string;
|
|
210
|
-
}>, "many">>;
|
|
211
|
-
windowLocations: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodString, "many">>, string[] | undefined, string[] | undefined>;
|
|
212
|
-
}, "strip", z.ZodTypeAny, {
|
|
213
|
-
chain: string;
|
|
214
|
-
extensionLocators: {
|
|
215
|
-
value: boolean;
|
|
216
|
-
flag: string;
|
|
217
|
-
}[];
|
|
218
|
-
providerInterface?: string | undefined;
|
|
219
|
-
walletStandard?: {
|
|
220
|
-
features: string[];
|
|
221
|
-
name: string;
|
|
222
|
-
providerId?: string | undefined;
|
|
223
|
-
} | undefined;
|
|
224
|
-
walletStandardLocators?: {
|
|
225
|
-
name: string;
|
|
226
|
-
locator: string;
|
|
227
|
-
}[] | undefined;
|
|
228
|
-
windowLocations?: string[] | undefined;
|
|
229
|
-
}, {
|
|
230
|
-
chain: string;
|
|
231
|
-
extensionLocators: {
|
|
232
|
-
flag: string;
|
|
233
|
-
value?: boolean | undefined;
|
|
234
|
-
}[];
|
|
235
|
-
providerInterface?: string | undefined;
|
|
236
|
-
walletStandard?: {
|
|
237
|
-
features: string[];
|
|
238
|
-
name: string;
|
|
239
|
-
providerId?: string | undefined;
|
|
240
|
-
} | undefined;
|
|
241
|
-
walletStandardLocators?: {
|
|
242
|
-
name: string;
|
|
243
|
-
locator: string;
|
|
244
|
-
}[] | undefined;
|
|
245
|
-
windowLocations?: string[] | undefined;
|
|
246
|
-
}>, "many">>;
|
|
247
|
-
mobile: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
248
|
-
android: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
249
|
-
androidId: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>, string | undefined, unknown>;
|
|
92
|
+
walletStandard: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
93
|
+
features: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
94
|
+
name: z.ZodMiniString<string>;
|
|
95
|
+
providerId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
96
|
+
}, z.core.$strip>>;
|
|
97
|
+
walletStandardLocators: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
98
|
+
locator: z.ZodMiniString<string>;
|
|
99
|
+
name: z.ZodMiniString<string>;
|
|
100
|
+
}, z.core.$strip>>>;
|
|
101
|
+
windowLocations: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
102
|
+
}, z.core.$strip>>>;
|
|
103
|
+
mobile: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniObject<{
|
|
104
|
+
android: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
105
|
+
androidId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTransform<{} | undefined, unknown>, z.ZodMiniOptional<z.ZodMiniString<string>>>>, z.ZodMiniTransform<string | undefined, string | undefined>>>;
|
|
250
106
|
/**
|
|
251
107
|
* @deprecated Use inAppBrowserV2 instead for EVM wallet deep linking
|
|
252
108
|
*/
|
|
253
|
-
inAppBrowser: z.
|
|
254
|
-
inAppBrowserV2: z.
|
|
255
|
-
ios: z.
|
|
256
|
-
iosId: z.
|
|
257
|
-
native: z.
|
|
258
|
-
universal: z.
|
|
259
|
-
},
|
|
109
|
+
inAppBrowser: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
110
|
+
inAppBrowserV2: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
111
|
+
ios: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
|
|
112
|
+
iosId: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTransform<{} | undefined, unknown>, z.ZodMiniOptional<z.ZodMiniString<string>>>>, z.ZodMiniTransform<string | undefined, string | undefined>>>;
|
|
113
|
+
native: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTransform<{} | undefined, unknown>, z.ZodMiniOptional<z.ZodMiniString<string>>>>;
|
|
114
|
+
universal: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTransform<{} | undefined, unknown>, z.ZodMiniOptional<z.ZodMiniString<string>>>>;
|
|
115
|
+
}, z.core.$strip>>, z.ZodMiniTransform<{
|
|
260
116
|
android?: string | null | undefined;
|
|
261
117
|
androidId?: string | undefined;
|
|
262
118
|
inAppBrowser?: string | null | undefined;
|
|
@@ -265,16 +121,7 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
265
121
|
iosId?: string | undefined;
|
|
266
122
|
native?: string | undefined;
|
|
267
123
|
universal?: string | undefined;
|
|
268
|
-
}, {
|
|
269
|
-
android?: string | null | undefined;
|
|
270
|
-
androidId?: unknown;
|
|
271
|
-
inAppBrowser?: string | null | undefined;
|
|
272
|
-
inAppBrowserV2?: string | null | undefined;
|
|
273
|
-
ios?: string | null | undefined;
|
|
274
|
-
iosId?: unknown;
|
|
275
|
-
native?: unknown;
|
|
276
|
-
universal?: unknown;
|
|
277
|
-
}>>, {
|
|
124
|
+
} | undefined, {
|
|
278
125
|
android?: string | null | undefined;
|
|
279
126
|
androidId?: string | undefined;
|
|
280
127
|
inAppBrowser?: string | null | undefined;
|
|
@@ -283,77 +130,37 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
283
130
|
iosId?: string | undefined;
|
|
284
131
|
native?: string | undefined;
|
|
285
132
|
universal?: string | undefined;
|
|
286
|
-
} | undefined
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
shortName: z.ZodEffects<z.ZodOptional<z.ZodString>, string | undefined, unknown>;
|
|
299
|
-
showOnlyIfInstalled: z.ZodOptional<z.ZodBoolean>;
|
|
300
|
-
switchNetworkOnlyFromWallet: z.ZodOptional<z.ZodBoolean>;
|
|
301
|
-
walletConnect: z.ZodEffects<z.ZodOptional<z.ZodObject<{
|
|
302
|
-
sdks: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodString, "many">>, string[] | undefined, unknown>;
|
|
303
|
-
}, "strip", z.ZodTypeAny, {
|
|
304
|
-
sdks?: string[] | undefined;
|
|
305
|
-
}, {
|
|
306
|
-
sdks?: unknown;
|
|
307
|
-
}>>, {
|
|
133
|
+
} | undefined>>>;
|
|
134
|
+
mobileExperience: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
135
|
+
"in-app-browser": "in-app-browser";
|
|
136
|
+
redirect: "redirect";
|
|
137
|
+
}>>;
|
|
138
|
+
name: z.ZodMiniString<string>;
|
|
139
|
+
shortName: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTransform<{} | undefined, unknown>, z.ZodMiniOptional<z.ZodMiniString<string>>>>;
|
|
140
|
+
showOnlyIfInstalled: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
141
|
+
switchNetworkOnlyFromWallet: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
142
|
+
walletConnect: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniOptional<z.ZodMiniObject<{
|
|
143
|
+
sdks: z.ZodMiniOptional<z.ZodMiniPipe<z.ZodMiniTransform<any[] | undefined, unknown>, z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>>>;
|
|
144
|
+
}, z.core.$strip>>, z.ZodMiniTransform<{
|
|
308
145
|
sdks?: string[] | undefined;
|
|
309
146
|
} | undefined, {
|
|
310
|
-
sdks?:
|
|
311
|
-
} | undefined
|
|
312
|
-
walletGroup: z.
|
|
147
|
+
sdks?: string[] | undefined;
|
|
148
|
+
} | undefined>>>;
|
|
149
|
+
walletGroup: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
313
150
|
/**
|
|
314
151
|
* Indicates which connector methods/events are not supported, keyed by wallet type
|
|
315
152
|
*/
|
|
316
|
-
walletLimitations: z.
|
|
317
|
-
browserExtension: z.
|
|
318
|
-
unsupportedEvents: z.
|
|
319
|
-
unsupportedMethods: z.
|
|
320
|
-
},
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
mobile: z.ZodOptional<z.ZodObject<{
|
|
328
|
-
unsupportedEvents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
329
|
-
unsupportedMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
330
|
-
}, "strip", z.ZodTypeAny, {
|
|
331
|
-
unsupportedEvents?: string[] | undefined;
|
|
332
|
-
unsupportedMethods?: string[] | undefined;
|
|
333
|
-
}, {
|
|
334
|
-
unsupportedEvents?: string[] | undefined;
|
|
335
|
-
unsupportedMethods?: string[] | undefined;
|
|
336
|
-
}>>;
|
|
337
|
-
}, "strip", z.ZodTypeAny, {
|
|
338
|
-
browserExtension?: {
|
|
339
|
-
unsupportedEvents?: string[] | undefined;
|
|
340
|
-
unsupportedMethods?: string[] | undefined;
|
|
341
|
-
} | undefined;
|
|
342
|
-
mobile?: {
|
|
343
|
-
unsupportedEvents?: string[] | undefined;
|
|
344
|
-
unsupportedMethods?: string[] | undefined;
|
|
345
|
-
} | undefined;
|
|
346
|
-
}, {
|
|
347
|
-
browserExtension?: {
|
|
348
|
-
unsupportedEvents?: string[] | undefined;
|
|
349
|
-
unsupportedMethods?: string[] | undefined;
|
|
350
|
-
} | undefined;
|
|
351
|
-
mobile?: {
|
|
352
|
-
unsupportedEvents?: string[] | undefined;
|
|
353
|
-
unsupportedMethods?: string[] | undefined;
|
|
354
|
-
} | undefined;
|
|
355
|
-
}>>;
|
|
356
|
-
}, "strip", z.ZodTypeAny, {
|
|
153
|
+
walletLimitations: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
154
|
+
browserExtension: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
155
|
+
unsupportedEvents: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
156
|
+
unsupportedMethods: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
157
|
+
}, z.core.$strip>>;
|
|
158
|
+
mobile: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
159
|
+
unsupportedEvents: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
160
|
+
unsupportedMethods: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
161
|
+
}, z.core.$strip>>;
|
|
162
|
+
}, z.core.$strip>>;
|
|
163
|
+
}, z.core.$strip>>, z.ZodMiniTransform<{
|
|
357
164
|
name: string;
|
|
358
165
|
brand?: {
|
|
359
166
|
alt?: string | undefined;
|
|
@@ -380,8 +187,8 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
380
187
|
injectedConfig?: {
|
|
381
188
|
chain: string;
|
|
382
189
|
extensionLocators: {
|
|
383
|
-
value: boolean;
|
|
384
190
|
flag: string;
|
|
191
|
+
value: boolean;
|
|
385
192
|
}[];
|
|
386
193
|
providerInterface?: string | undefined;
|
|
387
194
|
walletStandard?: {
|
|
@@ -390,8 +197,8 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
390
197
|
providerId?: string | undefined;
|
|
391
198
|
} | undefined;
|
|
392
199
|
walletStandardLocators?: {
|
|
393
|
-
name: string;
|
|
394
200
|
locator: string;
|
|
201
|
+
name: string;
|
|
395
202
|
}[] | undefined;
|
|
396
203
|
windowLocations?: string[] | undefined;
|
|
397
204
|
}[] | undefined;
|
|
@@ -424,76 +231,6 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
424
231
|
} | undefined;
|
|
425
232
|
} | undefined;
|
|
426
233
|
}, {
|
|
427
|
-
name: string;
|
|
428
|
-
brand?: {
|
|
429
|
-
alt?: unknown;
|
|
430
|
-
primaryColor?: unknown;
|
|
431
|
-
spriteId?: unknown;
|
|
432
|
-
} | undefined;
|
|
433
|
-
chainGroup?: string | undefined;
|
|
434
|
-
chains?: string[] | undefined;
|
|
435
|
-
desktop?: {
|
|
436
|
-
chromeId?: unknown;
|
|
437
|
-
edgeId?: unknown;
|
|
438
|
-
firefoxId?: unknown;
|
|
439
|
-
native?: unknown;
|
|
440
|
-
operaId?: unknown;
|
|
441
|
-
safariId?: unknown;
|
|
442
|
-
universal?: unknown;
|
|
443
|
-
} | undefined;
|
|
444
|
-
eip6963Config?: {
|
|
445
|
-
rdns: string;
|
|
446
|
-
} | undefined;
|
|
447
|
-
filterFromWalletConnect?: boolean | undefined;
|
|
448
|
-
group?: string | undefined;
|
|
449
|
-
hardwareWallets?: string[] | undefined;
|
|
450
|
-
injectedConfig?: {
|
|
451
|
-
chain: string;
|
|
452
|
-
extensionLocators: {
|
|
453
|
-
flag: string;
|
|
454
|
-
value?: boolean | undefined;
|
|
455
|
-
}[];
|
|
456
|
-
providerInterface?: string | undefined;
|
|
457
|
-
walletStandard?: {
|
|
458
|
-
features: string[];
|
|
459
|
-
name: string;
|
|
460
|
-
providerId?: string | undefined;
|
|
461
|
-
} | undefined;
|
|
462
|
-
walletStandardLocators?: {
|
|
463
|
-
name: string;
|
|
464
|
-
locator: string;
|
|
465
|
-
}[] | undefined;
|
|
466
|
-
windowLocations?: string[] | undefined;
|
|
467
|
-
}[] | undefined;
|
|
468
|
-
mobile?: {
|
|
469
|
-
android?: string | null | undefined;
|
|
470
|
-
androidId?: unknown;
|
|
471
|
-
inAppBrowser?: string | null | undefined;
|
|
472
|
-
inAppBrowserV2?: string | null | undefined;
|
|
473
|
-
ios?: string | null | undefined;
|
|
474
|
-
iosId?: unknown;
|
|
475
|
-
native?: unknown;
|
|
476
|
-
universal?: unknown;
|
|
477
|
-
} | undefined;
|
|
478
|
-
mobileExperience?: "in-app-browser" | "redirect" | undefined;
|
|
479
|
-
shortName?: unknown;
|
|
480
|
-
showOnlyIfInstalled?: boolean | undefined;
|
|
481
|
-
switchNetworkOnlyFromWallet?: boolean | undefined;
|
|
482
|
-
walletConnect?: {
|
|
483
|
-
sdks?: unknown;
|
|
484
|
-
} | undefined;
|
|
485
|
-
walletGroup?: string | undefined;
|
|
486
|
-
walletLimitations?: {
|
|
487
|
-
browserExtension?: {
|
|
488
|
-
unsupportedEvents?: string[] | undefined;
|
|
489
|
-
unsupportedMethods?: string[] | undefined;
|
|
490
|
-
} | undefined;
|
|
491
|
-
mobile?: {
|
|
492
|
-
unsupportedEvents?: string[] | undefined;
|
|
493
|
-
unsupportedMethods?: string[] | undefined;
|
|
494
|
-
} | undefined;
|
|
495
|
-
} | undefined;
|
|
496
|
-
}>, {
|
|
497
234
|
name: string;
|
|
498
235
|
brand?: {
|
|
499
236
|
alt?: string | undefined;
|
|
@@ -520,78 +257,8 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
520
257
|
injectedConfig?: {
|
|
521
258
|
chain: string;
|
|
522
259
|
extensionLocators: {
|
|
523
|
-
value: boolean;
|
|
524
260
|
flag: string;
|
|
525
|
-
}[];
|
|
526
|
-
providerInterface?: string | undefined;
|
|
527
|
-
walletStandard?: {
|
|
528
|
-
features: string[];
|
|
529
|
-
name: string;
|
|
530
|
-
providerId?: string | undefined;
|
|
531
|
-
} | undefined;
|
|
532
|
-
walletStandardLocators?: {
|
|
533
|
-
name: string;
|
|
534
|
-
locator: string;
|
|
535
|
-
}[] | undefined;
|
|
536
|
-
windowLocations?: string[] | undefined;
|
|
537
|
-
}[] | undefined;
|
|
538
|
-
mobile?: {
|
|
539
|
-
android?: string | null | undefined;
|
|
540
|
-
androidId?: string | undefined;
|
|
541
|
-
inAppBrowser?: string | null | undefined;
|
|
542
|
-
inAppBrowserV2?: string | null | undefined;
|
|
543
|
-
ios?: string | null | undefined;
|
|
544
|
-
iosId?: string | undefined;
|
|
545
|
-
native?: string | undefined;
|
|
546
|
-
universal?: string | undefined;
|
|
547
|
-
} | undefined;
|
|
548
|
-
mobileExperience?: "in-app-browser" | "redirect" | undefined;
|
|
549
|
-
shortName?: string | undefined;
|
|
550
|
-
showOnlyIfInstalled?: boolean | undefined;
|
|
551
|
-
switchNetworkOnlyFromWallet?: boolean | undefined;
|
|
552
|
-
walletConnect?: {
|
|
553
|
-
sdks?: string[] | undefined;
|
|
554
|
-
} | undefined;
|
|
555
|
-
walletGroup?: string | undefined;
|
|
556
|
-
walletLimitations?: {
|
|
557
|
-
browserExtension?: {
|
|
558
|
-
unsupportedEvents?: string[] | undefined;
|
|
559
|
-
unsupportedMethods?: string[] | undefined;
|
|
560
|
-
} | undefined;
|
|
561
|
-
mobile?: {
|
|
562
|
-
unsupportedEvents?: string[] | undefined;
|
|
563
|
-
unsupportedMethods?: string[] | undefined;
|
|
564
|
-
} | undefined;
|
|
565
|
-
} | undefined;
|
|
566
|
-
}, unknown>, {
|
|
567
|
-
name: string;
|
|
568
|
-
brand?: {
|
|
569
|
-
alt?: string | undefined;
|
|
570
|
-
primaryColor?: string | undefined;
|
|
571
|
-
spriteId?: string | undefined;
|
|
572
|
-
} | undefined;
|
|
573
|
-
chainGroup?: string | undefined;
|
|
574
|
-
chains?: string[] | undefined;
|
|
575
|
-
desktop?: {
|
|
576
|
-
chromeId?: string | undefined;
|
|
577
|
-
edgeId?: string | undefined;
|
|
578
|
-
firefoxId?: string | undefined;
|
|
579
|
-
native?: string | undefined;
|
|
580
|
-
operaId?: string | undefined;
|
|
581
|
-
safariId?: string | undefined;
|
|
582
|
-
universal?: string | undefined;
|
|
583
|
-
} | undefined;
|
|
584
|
-
eip6963Config?: {
|
|
585
|
-
rdns: string;
|
|
586
|
-
} | undefined;
|
|
587
|
-
filterFromWalletConnect?: boolean | undefined;
|
|
588
|
-
group?: string | undefined;
|
|
589
|
-
hardwareWallets?: string[] | undefined;
|
|
590
|
-
injectedConfig?: {
|
|
591
|
-
chain: string;
|
|
592
|
-
extensionLocators: {
|
|
593
261
|
value: boolean;
|
|
594
|
-
flag: string;
|
|
595
262
|
}[];
|
|
596
263
|
providerInterface?: string | undefined;
|
|
597
264
|
walletStandard?: {
|
|
@@ -600,8 +267,8 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
600
267
|
providerId?: string | undefined;
|
|
601
268
|
} | undefined;
|
|
602
269
|
walletStandardLocators?: {
|
|
603
|
-
name: string;
|
|
604
270
|
locator: string;
|
|
271
|
+
name: string;
|
|
605
272
|
}[] | undefined;
|
|
606
273
|
windowLocations?: string[] | undefined;
|
|
607
274
|
}[] | undefined;
|
|
@@ -633,7 +300,7 @@ export declare const walletSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
633
300
|
unsupportedMethods?: string[] | undefined;
|
|
634
301
|
} | undefined;
|
|
635
302
|
} | undefined;
|
|
636
|
-
}
|
|
303
|
+
}>>;
|
|
637
304
|
export type WalletSchema = z.infer<typeof walletSchema>;
|
|
638
305
|
export type WalletInjectedConfigSchema = z.infer<typeof injectedConfigSchema>;
|
|
639
306
|
export type WalletBrand = z.infer<typeof brandSchema>;
|