@metamask/snaps-rpc-methods 7.0.1 → 8.0.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/CHANGELOG.md +13 -1
- package/dist/{chunk-AKRFLGOS.mjs → chunk-AMBEX4N4.mjs} +2 -2
- package/dist/{chunk-FBOZCV3C.js → chunk-EGKFC56F.js} +3 -3
- package/dist/{chunk-7NBRKDKJ.mjs → chunk-NESDQ4PF.mjs} +9 -54
- package/dist/chunk-NESDQ4PF.mjs.map +1 -0
- package/dist/{chunk-KO4MKRYZ.js → chunk-R2M4YLJ7.js} +7 -52
- package/dist/chunk-R2M4YLJ7.js.map +1 -0
- package/dist/{chunk-LVTN25J2.js → chunk-RZXF4KSR.js} +3 -3
- package/dist/{chunk-LVTN25J2.js.map → chunk-RZXF4KSR.js.map} +1 -1
- package/dist/{chunk-3S7DJI4I.mjs → chunk-SU6KOIVB.mjs} +2 -2
- package/dist/chunk-SU6KOIVB.mjs.map +1 -0
- package/dist/index.js +4 -4
- package/dist/index.mjs +5 -5
- package/dist/permissions.js +4 -4
- package/dist/permissions.mjs +3 -3
- package/dist/restricted/index.js +3 -3
- package/dist/restricted/index.mjs +4 -4
- package/dist/restricted/manageState.js +2 -2
- package/dist/restricted/manageState.mjs +3 -3
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/permitted/createInterface.d.ts +44 -40
- package/dist/types/permitted/updateInterface.d.ts +45 -41
- package/dist/types/restricted/dialog.d.ts +190 -166
- package/dist/types/restricted/index.d.ts +1 -1
- package/dist/types/restricted/manageState.d.ts +5 -31
- package/package.json +6 -7
- package/dist/chunk-3S7DJI4I.mjs.map +0 -1
- package/dist/chunk-7NBRKDKJ.mjs.map +0 -1
- package/dist/chunk-KO4MKRYZ.js.map +0 -1
- /package/dist/{chunk-AKRFLGOS.mjs.map → chunk-AMBEX4N4.mjs.map} +0 -0
- /package/dist/{chunk-FBOZCV3C.js.map → chunk-EGKFC56F.js.map} +0 -0
|
@@ -52,6 +52,38 @@ export declare const dialogBuilder: Readonly<{
|
|
|
52
52
|
declare const DialogParametersStruct: Struct<{
|
|
53
53
|
type: "alert";
|
|
54
54
|
content: import("@metamask/snaps-sdk").Panel | {
|
|
55
|
+
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
56
|
+
name: string;
|
|
57
|
+
value?: string | undefined;
|
|
58
|
+
error?: string | undefined;
|
|
59
|
+
inputType?: "number" | "text" | "password" | undefined;
|
|
60
|
+
placeholder?: string | undefined;
|
|
61
|
+
label?: string | undefined;
|
|
62
|
+
} | {
|
|
63
|
+
value: string;
|
|
64
|
+
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
65
|
+
name?: string | undefined;
|
|
66
|
+
variant?: "primary" | "secondary" | undefined;
|
|
67
|
+
buttonType?: "button" | "submit" | undefined;
|
|
68
|
+
} | {
|
|
69
|
+
type: import("@metamask/snaps-sdk").NodeType.Form;
|
|
70
|
+
name: string;
|
|
71
|
+
children: ({
|
|
72
|
+
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
73
|
+
name: string;
|
|
74
|
+
value?: string | undefined;
|
|
75
|
+
error?: string | undefined;
|
|
76
|
+
inputType?: "number" | "text" | "password" | undefined;
|
|
77
|
+
placeholder?: string | undefined;
|
|
78
|
+
label?: string | undefined;
|
|
79
|
+
} | {
|
|
80
|
+
value: string;
|
|
81
|
+
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
82
|
+
name?: string | undefined;
|
|
83
|
+
variant?: "primary" | "secondary" | undefined;
|
|
84
|
+
buttonType?: "button" | "submit" | undefined;
|
|
85
|
+
})[];
|
|
86
|
+
} | {
|
|
55
87
|
value: string;
|
|
56
88
|
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
57
89
|
sensitive?: boolean | undefined;
|
|
@@ -70,7 +102,7 @@ declare const DialogParametersStruct: Struct<{
|
|
|
70
102
|
type: import("@metamask/snaps-sdk").NodeType.Text;
|
|
71
103
|
markdown?: boolean | undefined;
|
|
72
104
|
} | {
|
|
73
|
-
value: string
|
|
105
|
+
value: `0x${string}`;
|
|
74
106
|
type: import("@metamask/snaps-sdk").NodeType.Address;
|
|
75
107
|
} | {
|
|
76
108
|
value: {
|
|
@@ -81,19 +113,26 @@ declare const DialogParametersStruct: Struct<{
|
|
|
81
113
|
type: import("@metamask/snaps-sdk").NodeType.Text;
|
|
82
114
|
markdown?: boolean | undefined;
|
|
83
115
|
} | {
|
|
84
|
-
value: string
|
|
116
|
+
value: `0x${string}`;
|
|
85
117
|
type: import("@metamask/snaps-sdk").NodeType.Address;
|
|
86
118
|
};
|
|
87
119
|
type: import("@metamask/snaps-sdk").NodeType.Row;
|
|
88
120
|
label: string;
|
|
89
121
|
variant?: "default" | "warning" | "critical" | undefined;
|
|
90
|
-
}
|
|
122
|
+
};
|
|
123
|
+
} | {
|
|
124
|
+
type: "alert";
|
|
125
|
+
id: string;
|
|
126
|
+
} | {
|
|
127
|
+
type: "confirmation";
|
|
128
|
+
content: import("@metamask/snaps-sdk").Panel | {
|
|
91
129
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
92
130
|
name: string;
|
|
93
131
|
value?: string | undefined;
|
|
94
|
-
|
|
132
|
+
error?: string | undefined;
|
|
95
133
|
inputType?: "number" | "text" | "password" | undefined;
|
|
96
134
|
placeholder?: string | undefined;
|
|
135
|
+
label?: string | undefined;
|
|
97
136
|
} | {
|
|
98
137
|
value: string;
|
|
99
138
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -107,9 +146,10 @@ declare const DialogParametersStruct: Struct<{
|
|
|
107
146
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
108
147
|
name: string;
|
|
109
148
|
value?: string | undefined;
|
|
110
|
-
|
|
149
|
+
error?: string | undefined;
|
|
111
150
|
inputType?: "number" | "text" | "password" | undefined;
|
|
112
151
|
placeholder?: string | undefined;
|
|
152
|
+
label?: string | undefined;
|
|
113
153
|
} | {
|
|
114
154
|
value: string;
|
|
115
155
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -117,13 +157,7 @@ declare const DialogParametersStruct: Struct<{
|
|
|
117
157
|
variant?: "primary" | "secondary" | undefined;
|
|
118
158
|
buttonType?: "button" | "submit" | undefined;
|
|
119
159
|
})[];
|
|
120
|
-
}
|
|
121
|
-
} | {
|
|
122
|
-
type: "alert";
|
|
123
|
-
id: string;
|
|
124
|
-
} | {
|
|
125
|
-
type: "confirmation";
|
|
126
|
-
content: import("@metamask/snaps-sdk").Panel | {
|
|
160
|
+
} | {
|
|
127
161
|
value: string;
|
|
128
162
|
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
129
163
|
sensitive?: boolean | undefined;
|
|
@@ -142,7 +176,7 @@ declare const DialogParametersStruct: Struct<{
|
|
|
142
176
|
type: import("@metamask/snaps-sdk").NodeType.Text;
|
|
143
177
|
markdown?: boolean | undefined;
|
|
144
178
|
} | {
|
|
145
|
-
value: string
|
|
179
|
+
value: `0x${string}`;
|
|
146
180
|
type: import("@metamask/snaps-sdk").NodeType.Address;
|
|
147
181
|
} | {
|
|
148
182
|
value: {
|
|
@@ -153,19 +187,26 @@ declare const DialogParametersStruct: Struct<{
|
|
|
153
187
|
type: import("@metamask/snaps-sdk").NodeType.Text;
|
|
154
188
|
markdown?: boolean | undefined;
|
|
155
189
|
} | {
|
|
156
|
-
value: string
|
|
190
|
+
value: `0x${string}`;
|
|
157
191
|
type: import("@metamask/snaps-sdk").NodeType.Address;
|
|
158
192
|
};
|
|
159
193
|
type: import("@metamask/snaps-sdk").NodeType.Row;
|
|
160
194
|
label: string;
|
|
161
195
|
variant?: "default" | "warning" | "critical" | undefined;
|
|
162
|
-
}
|
|
196
|
+
};
|
|
197
|
+
} | {
|
|
198
|
+
type: "confirmation";
|
|
199
|
+
id: string;
|
|
200
|
+
} | {
|
|
201
|
+
type: "prompt";
|
|
202
|
+
content: import("@metamask/snaps-sdk").Panel | {
|
|
163
203
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
164
204
|
name: string;
|
|
165
205
|
value?: string | undefined;
|
|
166
|
-
|
|
206
|
+
error?: string | undefined;
|
|
167
207
|
inputType?: "number" | "text" | "password" | undefined;
|
|
168
208
|
placeholder?: string | undefined;
|
|
209
|
+
label?: string | undefined;
|
|
169
210
|
} | {
|
|
170
211
|
value: string;
|
|
171
212
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -179,9 +220,10 @@ declare const DialogParametersStruct: Struct<{
|
|
|
179
220
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
180
221
|
name: string;
|
|
181
222
|
value?: string | undefined;
|
|
182
|
-
|
|
223
|
+
error?: string | undefined;
|
|
183
224
|
inputType?: "number" | "text" | "password" | undefined;
|
|
184
225
|
placeholder?: string | undefined;
|
|
226
|
+
label?: string | undefined;
|
|
185
227
|
} | {
|
|
186
228
|
value: string;
|
|
187
229
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -189,13 +231,7 @@ declare const DialogParametersStruct: Struct<{
|
|
|
189
231
|
variant?: "primary" | "secondary" | undefined;
|
|
190
232
|
buttonType?: "button" | "submit" | undefined;
|
|
191
233
|
})[];
|
|
192
|
-
}
|
|
193
|
-
} | {
|
|
194
|
-
type: "confirmation";
|
|
195
|
-
id: string;
|
|
196
|
-
} | {
|
|
197
|
-
type: "prompt";
|
|
198
|
-
content: import("@metamask/snaps-sdk").Panel | {
|
|
234
|
+
} | {
|
|
199
235
|
value: string;
|
|
200
236
|
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
201
237
|
sensitive?: boolean | undefined;
|
|
@@ -214,7 +250,7 @@ declare const DialogParametersStruct: Struct<{
|
|
|
214
250
|
type: import("@metamask/snaps-sdk").NodeType.Text;
|
|
215
251
|
markdown?: boolean | undefined;
|
|
216
252
|
} | {
|
|
217
|
-
value: string
|
|
253
|
+
value: `0x${string}`;
|
|
218
254
|
type: import("@metamask/snaps-sdk").NodeType.Address;
|
|
219
255
|
} | {
|
|
220
256
|
value: {
|
|
@@ -225,19 +261,28 @@ declare const DialogParametersStruct: Struct<{
|
|
|
225
261
|
type: import("@metamask/snaps-sdk").NodeType.Text;
|
|
226
262
|
markdown?: boolean | undefined;
|
|
227
263
|
} | {
|
|
228
|
-
value: string
|
|
264
|
+
value: `0x${string}`;
|
|
229
265
|
type: import("@metamask/snaps-sdk").NodeType.Address;
|
|
230
266
|
};
|
|
231
267
|
type: import("@metamask/snaps-sdk").NodeType.Row;
|
|
232
268
|
label: string;
|
|
233
269
|
variant?: "default" | "warning" | "critical" | undefined;
|
|
234
|
-
}
|
|
270
|
+
};
|
|
271
|
+
placeholder?: string | undefined;
|
|
272
|
+
} | {
|
|
273
|
+
type: "prompt";
|
|
274
|
+
id: string;
|
|
275
|
+
placeholder?: string | undefined;
|
|
276
|
+
}, [Struct<{
|
|
277
|
+
type: "alert";
|
|
278
|
+
content: import("@metamask/snaps-sdk").Panel | {
|
|
235
279
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
236
280
|
name: string;
|
|
237
281
|
value?: string | undefined;
|
|
238
|
-
|
|
282
|
+
error?: string | undefined;
|
|
239
283
|
inputType?: "number" | "text" | "password" | undefined;
|
|
240
284
|
placeholder?: string | undefined;
|
|
285
|
+
label?: string | undefined;
|
|
241
286
|
} | {
|
|
242
287
|
value: string;
|
|
243
288
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -251,9 +296,10 @@ declare const DialogParametersStruct: Struct<{
|
|
|
251
296
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
252
297
|
name: string;
|
|
253
298
|
value?: string | undefined;
|
|
254
|
-
|
|
299
|
+
error?: string | undefined;
|
|
255
300
|
inputType?: "number" | "text" | "password" | undefined;
|
|
256
301
|
placeholder?: string | undefined;
|
|
302
|
+
label?: string | undefined;
|
|
257
303
|
} | {
|
|
258
304
|
value: string;
|
|
259
305
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -261,15 +307,7 @@ declare const DialogParametersStruct: Struct<{
|
|
|
261
307
|
variant?: "primary" | "secondary" | undefined;
|
|
262
308
|
buttonType?: "button" | "submit" | undefined;
|
|
263
309
|
})[];
|
|
264
|
-
}
|
|
265
|
-
placeholder?: string | undefined;
|
|
266
|
-
} | {
|
|
267
|
-
type: "prompt";
|
|
268
|
-
id: string;
|
|
269
|
-
placeholder?: string | undefined;
|
|
270
|
-
}, [Struct<{
|
|
271
|
-
type: "alert";
|
|
272
|
-
content: import("@metamask/snaps-sdk").Panel | {
|
|
310
|
+
} | {
|
|
273
311
|
value: string;
|
|
274
312
|
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
275
313
|
sensitive?: boolean | undefined;
|
|
@@ -288,7 +326,7 @@ declare const DialogParametersStruct: Struct<{
|
|
|
288
326
|
type: import("@metamask/snaps-sdk").NodeType.Text;
|
|
289
327
|
markdown?: boolean | undefined;
|
|
290
328
|
} | {
|
|
291
|
-
value: string
|
|
329
|
+
value: `0x${string}`;
|
|
292
330
|
type: import("@metamask/snaps-sdk").NodeType.Address;
|
|
293
331
|
} | {
|
|
294
332
|
value: {
|
|
@@ -299,19 +337,26 @@ declare const DialogParametersStruct: Struct<{
|
|
|
299
337
|
type: import("@metamask/snaps-sdk").NodeType.Text;
|
|
300
338
|
markdown?: boolean | undefined;
|
|
301
339
|
} | {
|
|
302
|
-
value: string
|
|
340
|
+
value: `0x${string}`;
|
|
303
341
|
type: import("@metamask/snaps-sdk").NodeType.Address;
|
|
304
342
|
};
|
|
305
343
|
type: import("@metamask/snaps-sdk").NodeType.Row;
|
|
306
344
|
label: string;
|
|
307
345
|
variant?: "default" | "warning" | "critical" | undefined;
|
|
308
|
-
}
|
|
346
|
+
};
|
|
347
|
+
} | {
|
|
348
|
+
type: "alert";
|
|
349
|
+
id: string;
|
|
350
|
+
}, [Struct<{
|
|
351
|
+
type: "alert";
|
|
352
|
+
content: import("@metamask/snaps-sdk").Panel | {
|
|
309
353
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
310
354
|
name: string;
|
|
311
355
|
value?: string | undefined;
|
|
312
|
-
|
|
356
|
+
error?: string | undefined;
|
|
313
357
|
inputType?: "number" | "text" | "password" | undefined;
|
|
314
358
|
placeholder?: string | undefined;
|
|
359
|
+
label?: string | undefined;
|
|
315
360
|
} | {
|
|
316
361
|
value: string;
|
|
317
362
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -325,9 +370,10 @@ declare const DialogParametersStruct: Struct<{
|
|
|
325
370
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
326
371
|
name: string;
|
|
327
372
|
value?: string | undefined;
|
|
328
|
-
|
|
373
|
+
error?: string | undefined;
|
|
329
374
|
inputType?: "number" | "text" | "password" | undefined;
|
|
330
375
|
placeholder?: string | undefined;
|
|
376
|
+
label?: string | undefined;
|
|
331
377
|
} | {
|
|
332
378
|
value: string;
|
|
333
379
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -335,13 +381,7 @@ declare const DialogParametersStruct: Struct<{
|
|
|
335
381
|
variant?: "primary" | "secondary" | undefined;
|
|
336
382
|
buttonType?: "button" | "submit" | undefined;
|
|
337
383
|
})[];
|
|
338
|
-
}
|
|
339
|
-
} | {
|
|
340
|
-
type: "alert";
|
|
341
|
-
id: string;
|
|
342
|
-
}, [Struct<{
|
|
343
|
-
type: "alert";
|
|
344
|
-
content: import("@metamask/snaps-sdk").Panel | {
|
|
384
|
+
} | {
|
|
345
385
|
value: string;
|
|
346
386
|
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
347
387
|
sensitive?: boolean | undefined;
|
|
@@ -360,7 +400,7 @@ declare const DialogParametersStruct: Struct<{
|
|
|
360
400
|
type: import("@metamask/snaps-sdk").NodeType.Text;
|
|
361
401
|
markdown?: boolean | undefined;
|
|
362
402
|
} | {
|
|
363
|
-
value: string
|
|
403
|
+
value: `0x${string}`;
|
|
364
404
|
type: import("@metamask/snaps-sdk").NodeType.Address;
|
|
365
405
|
} | {
|
|
366
406
|
value: {
|
|
@@ -371,19 +411,23 @@ declare const DialogParametersStruct: Struct<{
|
|
|
371
411
|
type: import("@metamask/snaps-sdk").NodeType.Text;
|
|
372
412
|
markdown?: boolean | undefined;
|
|
373
413
|
} | {
|
|
374
|
-
value: string
|
|
414
|
+
value: `0x${string}`;
|
|
375
415
|
type: import("@metamask/snaps-sdk").NodeType.Address;
|
|
376
416
|
};
|
|
377
417
|
type: import("@metamask/snaps-sdk").NodeType.Row;
|
|
378
418
|
label: string;
|
|
379
419
|
variant?: "default" | "warning" | "critical" | undefined;
|
|
380
|
-
}
|
|
420
|
+
};
|
|
421
|
+
}, {
|
|
422
|
+
type: Struct<"alert", null>;
|
|
423
|
+
content: Struct<import("@metamask/snaps-sdk").Panel | {
|
|
381
424
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
382
425
|
name: string;
|
|
383
426
|
value?: string | undefined;
|
|
384
|
-
|
|
427
|
+
error?: string | undefined;
|
|
385
428
|
inputType?: "number" | "text" | "password" | undefined;
|
|
386
429
|
placeholder?: string | undefined;
|
|
430
|
+
label?: string | undefined;
|
|
387
431
|
} | {
|
|
388
432
|
value: string;
|
|
389
433
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -397,9 +441,10 @@ declare const DialogParametersStruct: Struct<{
|
|
|
397
441
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
398
442
|
name: string;
|
|
399
443
|
value?: string | undefined;
|
|
400
|
-
|
|
444
|
+
error?: string | undefined;
|
|
401
445
|
inputType?: "number" | "text" | "password" | undefined;
|
|
402
446
|
placeholder?: string | undefined;
|
|
447
|
+
label?: string | undefined;
|
|
403
448
|
} | {
|
|
404
449
|
value: string;
|
|
405
450
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -407,10 +452,7 @@ declare const DialogParametersStruct: Struct<{
|
|
|
407
452
|
variant?: "primary" | "secondary" | undefined;
|
|
408
453
|
buttonType?: "button" | "submit" | undefined;
|
|
409
454
|
})[];
|
|
410
|
-
}
|
|
411
|
-
}, {
|
|
412
|
-
type: Struct<"alert", null>;
|
|
413
|
-
content: Struct<import("@metamask/snaps-sdk").Panel | {
|
|
455
|
+
} | {
|
|
414
456
|
value: string;
|
|
415
457
|
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
416
458
|
sensitive?: boolean | undefined;
|
|
@@ -429,7 +471,7 @@ declare const DialogParametersStruct: Struct<{
|
|
|
429
471
|
type: import("@metamask/snaps-sdk").NodeType.Text;
|
|
430
472
|
markdown?: boolean | undefined;
|
|
431
473
|
} | {
|
|
432
|
-
value: string
|
|
474
|
+
value: `0x${string}`;
|
|
433
475
|
type: import("@metamask/snaps-sdk").NodeType.Address;
|
|
434
476
|
} | {
|
|
435
477
|
value: {
|
|
@@ -440,19 +482,29 @@ declare const DialogParametersStruct: Struct<{
|
|
|
440
482
|
type: import("@metamask/snaps-sdk").NodeType.Text;
|
|
441
483
|
markdown?: boolean | undefined;
|
|
442
484
|
} | {
|
|
443
|
-
value: string
|
|
485
|
+
value: `0x${string}`;
|
|
444
486
|
type: import("@metamask/snaps-sdk").NodeType.Address;
|
|
445
487
|
};
|
|
446
488
|
type: import("@metamask/snaps-sdk").NodeType.Row;
|
|
447
489
|
label: string;
|
|
448
490
|
variant?: "default" | "warning" | "critical" | undefined;
|
|
449
|
-
}
|
|
491
|
+
}, null>;
|
|
492
|
+
}>, Struct<{
|
|
493
|
+
type: "alert";
|
|
494
|
+
id: string;
|
|
495
|
+
}, {
|
|
496
|
+
type: Struct<"alert", null>;
|
|
497
|
+
id: Struct<string, null>;
|
|
498
|
+
}>]>, Struct<{
|
|
499
|
+
type: "confirmation";
|
|
500
|
+
content: import("@metamask/snaps-sdk").Panel | {
|
|
450
501
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
451
502
|
name: string;
|
|
452
503
|
value?: string | undefined;
|
|
453
|
-
|
|
504
|
+
error?: string | undefined;
|
|
454
505
|
inputType?: "number" | "text" | "password" | undefined;
|
|
455
506
|
placeholder?: string | undefined;
|
|
507
|
+
label?: string | undefined;
|
|
456
508
|
} | {
|
|
457
509
|
value: string;
|
|
458
510
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -466,9 +518,10 @@ declare const DialogParametersStruct: Struct<{
|
|
|
466
518
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
467
519
|
name: string;
|
|
468
520
|
value?: string | undefined;
|
|
469
|
-
|
|
521
|
+
error?: string | undefined;
|
|
470
522
|
inputType?: "number" | "text" | "password" | undefined;
|
|
471
523
|
placeholder?: string | undefined;
|
|
524
|
+
label?: string | undefined;
|
|
472
525
|
} | {
|
|
473
526
|
value: string;
|
|
474
527
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -476,16 +529,7 @@ declare const DialogParametersStruct: Struct<{
|
|
|
476
529
|
variant?: "primary" | "secondary" | undefined;
|
|
477
530
|
buttonType?: "button" | "submit" | undefined;
|
|
478
531
|
})[];
|
|
479
|
-
}
|
|
480
|
-
}>, Struct<{
|
|
481
|
-
type: "alert";
|
|
482
|
-
id: string;
|
|
483
|
-
}, {
|
|
484
|
-
type: Struct<"alert", null>;
|
|
485
|
-
id: Struct<string, null>;
|
|
486
|
-
}>]>, Struct<{
|
|
487
|
-
type: "confirmation";
|
|
488
|
-
content: import("@metamask/snaps-sdk").Panel | {
|
|
532
|
+
} | {
|
|
489
533
|
value: string;
|
|
490
534
|
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
491
535
|
sensitive?: boolean | undefined;
|
|
@@ -504,7 +548,7 @@ declare const DialogParametersStruct: Struct<{
|
|
|
504
548
|
type: import("@metamask/snaps-sdk").NodeType.Text;
|
|
505
549
|
markdown?: boolean | undefined;
|
|
506
550
|
} | {
|
|
507
|
-
value: string
|
|
551
|
+
value: `0x${string}`;
|
|
508
552
|
type: import("@metamask/snaps-sdk").NodeType.Address;
|
|
509
553
|
} | {
|
|
510
554
|
value: {
|
|
@@ -515,19 +559,26 @@ declare const DialogParametersStruct: Struct<{
|
|
|
515
559
|
type: import("@metamask/snaps-sdk").NodeType.Text;
|
|
516
560
|
markdown?: boolean | undefined;
|
|
517
561
|
} | {
|
|
518
|
-
value: string
|
|
562
|
+
value: `0x${string}`;
|
|
519
563
|
type: import("@metamask/snaps-sdk").NodeType.Address;
|
|
520
564
|
};
|
|
521
565
|
type: import("@metamask/snaps-sdk").NodeType.Row;
|
|
522
566
|
label: string;
|
|
523
567
|
variant?: "default" | "warning" | "critical" | undefined;
|
|
524
|
-
}
|
|
568
|
+
};
|
|
569
|
+
} | {
|
|
570
|
+
type: "confirmation";
|
|
571
|
+
id: string;
|
|
572
|
+
}, [Struct<{
|
|
573
|
+
type: "confirmation";
|
|
574
|
+
content: import("@metamask/snaps-sdk").Panel | {
|
|
525
575
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
526
576
|
name: string;
|
|
527
577
|
value?: string | undefined;
|
|
528
|
-
|
|
578
|
+
error?: string | undefined;
|
|
529
579
|
inputType?: "number" | "text" | "password" | undefined;
|
|
530
580
|
placeholder?: string | undefined;
|
|
581
|
+
label?: string | undefined;
|
|
531
582
|
} | {
|
|
532
583
|
value: string;
|
|
533
584
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -541,9 +592,10 @@ declare const DialogParametersStruct: Struct<{
|
|
|
541
592
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
542
593
|
name: string;
|
|
543
594
|
value?: string | undefined;
|
|
544
|
-
|
|
595
|
+
error?: string | undefined;
|
|
545
596
|
inputType?: "number" | "text" | "password" | undefined;
|
|
546
597
|
placeholder?: string | undefined;
|
|
598
|
+
label?: string | undefined;
|
|
547
599
|
} | {
|
|
548
600
|
value: string;
|
|
549
601
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -551,13 +603,7 @@ declare const DialogParametersStruct: Struct<{
|
|
|
551
603
|
variant?: "primary" | "secondary" | undefined;
|
|
552
604
|
buttonType?: "button" | "submit" | undefined;
|
|
553
605
|
})[];
|
|
554
|
-
}
|
|
555
|
-
} | {
|
|
556
|
-
type: "confirmation";
|
|
557
|
-
id: string;
|
|
558
|
-
}, [Struct<{
|
|
559
|
-
type: "confirmation";
|
|
560
|
-
content: import("@metamask/snaps-sdk").Panel | {
|
|
606
|
+
} | {
|
|
561
607
|
value: string;
|
|
562
608
|
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
563
609
|
sensitive?: boolean | undefined;
|
|
@@ -576,7 +622,7 @@ declare const DialogParametersStruct: Struct<{
|
|
|
576
622
|
type: import("@metamask/snaps-sdk").NodeType.Text;
|
|
577
623
|
markdown?: boolean | undefined;
|
|
578
624
|
} | {
|
|
579
|
-
value: string
|
|
625
|
+
value: `0x${string}`;
|
|
580
626
|
type: import("@metamask/snaps-sdk").NodeType.Address;
|
|
581
627
|
} | {
|
|
582
628
|
value: {
|
|
@@ -587,19 +633,23 @@ declare const DialogParametersStruct: Struct<{
|
|
|
587
633
|
type: import("@metamask/snaps-sdk").NodeType.Text;
|
|
588
634
|
markdown?: boolean | undefined;
|
|
589
635
|
} | {
|
|
590
|
-
value: string
|
|
636
|
+
value: `0x${string}`;
|
|
591
637
|
type: import("@metamask/snaps-sdk").NodeType.Address;
|
|
592
638
|
};
|
|
593
639
|
type: import("@metamask/snaps-sdk").NodeType.Row;
|
|
594
640
|
label: string;
|
|
595
641
|
variant?: "default" | "warning" | "critical" | undefined;
|
|
596
|
-
}
|
|
642
|
+
};
|
|
643
|
+
}, {
|
|
644
|
+
type: Struct<"confirmation", null>;
|
|
645
|
+
content: Struct<import("@metamask/snaps-sdk").Panel | {
|
|
597
646
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
598
647
|
name: string;
|
|
599
648
|
value?: string | undefined;
|
|
600
|
-
|
|
649
|
+
error?: string | undefined;
|
|
601
650
|
inputType?: "number" | "text" | "password" | undefined;
|
|
602
651
|
placeholder?: string | undefined;
|
|
652
|
+
label?: string | undefined;
|
|
603
653
|
} | {
|
|
604
654
|
value: string;
|
|
605
655
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -613,9 +663,10 @@ declare const DialogParametersStruct: Struct<{
|
|
|
613
663
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
614
664
|
name: string;
|
|
615
665
|
value?: string | undefined;
|
|
616
|
-
|
|
666
|
+
error?: string | undefined;
|
|
617
667
|
inputType?: "number" | "text" | "password" | undefined;
|
|
618
668
|
placeholder?: string | undefined;
|
|
669
|
+
label?: string | undefined;
|
|
619
670
|
} | {
|
|
620
671
|
value: string;
|
|
621
672
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -623,10 +674,7 @@ declare const DialogParametersStruct: Struct<{
|
|
|
623
674
|
variant?: "primary" | "secondary" | undefined;
|
|
624
675
|
buttonType?: "button" | "submit" | undefined;
|
|
625
676
|
})[];
|
|
626
|
-
}
|
|
627
|
-
}, {
|
|
628
|
-
type: Struct<"confirmation", null>;
|
|
629
|
-
content: Struct<import("@metamask/snaps-sdk").Panel | {
|
|
677
|
+
} | {
|
|
630
678
|
value: string;
|
|
631
679
|
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
632
680
|
sensitive?: boolean | undefined;
|
|
@@ -645,7 +693,7 @@ declare const DialogParametersStruct: Struct<{
|
|
|
645
693
|
type: import("@metamask/snaps-sdk").NodeType.Text;
|
|
646
694
|
markdown?: boolean | undefined;
|
|
647
695
|
} | {
|
|
648
|
-
value: string
|
|
696
|
+
value: `0x${string}`;
|
|
649
697
|
type: import("@metamask/snaps-sdk").NodeType.Address;
|
|
650
698
|
} | {
|
|
651
699
|
value: {
|
|
@@ -656,19 +704,29 @@ declare const DialogParametersStruct: Struct<{
|
|
|
656
704
|
type: import("@metamask/snaps-sdk").NodeType.Text;
|
|
657
705
|
markdown?: boolean | undefined;
|
|
658
706
|
} | {
|
|
659
|
-
value: string
|
|
707
|
+
value: `0x${string}`;
|
|
660
708
|
type: import("@metamask/snaps-sdk").NodeType.Address;
|
|
661
709
|
};
|
|
662
710
|
type: import("@metamask/snaps-sdk").NodeType.Row;
|
|
663
711
|
label: string;
|
|
664
712
|
variant?: "default" | "warning" | "critical" | undefined;
|
|
665
|
-
}
|
|
713
|
+
}, null>;
|
|
714
|
+
}>, Struct<{
|
|
715
|
+
type: "confirmation";
|
|
716
|
+
id: string;
|
|
717
|
+
}, {
|
|
718
|
+
type: Struct<"confirmation", null>;
|
|
719
|
+
id: Struct<string, null>;
|
|
720
|
+
}>]>, Struct<{
|
|
721
|
+
type: "prompt";
|
|
722
|
+
content: import("@metamask/snaps-sdk").Panel | {
|
|
666
723
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
667
724
|
name: string;
|
|
668
725
|
value?: string | undefined;
|
|
669
|
-
|
|
726
|
+
error?: string | undefined;
|
|
670
727
|
inputType?: "number" | "text" | "password" | undefined;
|
|
671
728
|
placeholder?: string | undefined;
|
|
729
|
+
label?: string | undefined;
|
|
672
730
|
} | {
|
|
673
731
|
value: string;
|
|
674
732
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -682,9 +740,10 @@ declare const DialogParametersStruct: Struct<{
|
|
|
682
740
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
683
741
|
name: string;
|
|
684
742
|
value?: string | undefined;
|
|
685
|
-
|
|
743
|
+
error?: string | undefined;
|
|
686
744
|
inputType?: "number" | "text" | "password" | undefined;
|
|
687
745
|
placeholder?: string | undefined;
|
|
746
|
+
label?: string | undefined;
|
|
688
747
|
} | {
|
|
689
748
|
value: string;
|
|
690
749
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -692,16 +751,7 @@ declare const DialogParametersStruct: Struct<{
|
|
|
692
751
|
variant?: "primary" | "secondary" | undefined;
|
|
693
752
|
buttonType?: "button" | "submit" | undefined;
|
|
694
753
|
})[];
|
|
695
|
-
}
|
|
696
|
-
}>, Struct<{
|
|
697
|
-
type: "confirmation";
|
|
698
|
-
id: string;
|
|
699
|
-
}, {
|
|
700
|
-
type: Struct<"confirmation", null>;
|
|
701
|
-
id: Struct<string, null>;
|
|
702
|
-
}>]>, Struct<{
|
|
703
|
-
type: "prompt";
|
|
704
|
-
content: import("@metamask/snaps-sdk").Panel | {
|
|
754
|
+
} | {
|
|
705
755
|
value: string;
|
|
706
756
|
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
707
757
|
sensitive?: boolean | undefined;
|
|
@@ -720,7 +770,7 @@ declare const DialogParametersStruct: Struct<{
|
|
|
720
770
|
type: import("@metamask/snaps-sdk").NodeType.Text;
|
|
721
771
|
markdown?: boolean | undefined;
|
|
722
772
|
} | {
|
|
723
|
-
value: string
|
|
773
|
+
value: `0x${string}`;
|
|
724
774
|
type: import("@metamask/snaps-sdk").NodeType.Address;
|
|
725
775
|
} | {
|
|
726
776
|
value: {
|
|
@@ -731,19 +781,28 @@ declare const DialogParametersStruct: Struct<{
|
|
|
731
781
|
type: import("@metamask/snaps-sdk").NodeType.Text;
|
|
732
782
|
markdown?: boolean | undefined;
|
|
733
783
|
} | {
|
|
734
|
-
value: string
|
|
784
|
+
value: `0x${string}`;
|
|
735
785
|
type: import("@metamask/snaps-sdk").NodeType.Address;
|
|
736
786
|
};
|
|
737
787
|
type: import("@metamask/snaps-sdk").NodeType.Row;
|
|
738
788
|
label: string;
|
|
739
789
|
variant?: "default" | "warning" | "critical" | undefined;
|
|
740
|
-
}
|
|
790
|
+
};
|
|
791
|
+
placeholder?: string | undefined;
|
|
792
|
+
} | {
|
|
793
|
+
type: "prompt";
|
|
794
|
+
id: string;
|
|
795
|
+
placeholder?: string | undefined;
|
|
796
|
+
}, [Struct<{
|
|
797
|
+
type: "prompt";
|
|
798
|
+
content: import("@metamask/snaps-sdk").Panel | {
|
|
741
799
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
742
800
|
name: string;
|
|
743
801
|
value?: string | undefined;
|
|
744
|
-
|
|
802
|
+
error?: string | undefined;
|
|
745
803
|
inputType?: "number" | "text" | "password" | undefined;
|
|
746
804
|
placeholder?: string | undefined;
|
|
805
|
+
label?: string | undefined;
|
|
747
806
|
} | {
|
|
748
807
|
value: string;
|
|
749
808
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -757,9 +816,10 @@ declare const DialogParametersStruct: Struct<{
|
|
|
757
816
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
758
817
|
name: string;
|
|
759
818
|
value?: string | undefined;
|
|
760
|
-
|
|
819
|
+
error?: string | undefined;
|
|
761
820
|
inputType?: "number" | "text" | "password" | undefined;
|
|
762
821
|
placeholder?: string | undefined;
|
|
822
|
+
label?: string | undefined;
|
|
763
823
|
} | {
|
|
764
824
|
value: string;
|
|
765
825
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -767,15 +827,7 @@ declare const DialogParametersStruct: Struct<{
|
|
|
767
827
|
variant?: "primary" | "secondary" | undefined;
|
|
768
828
|
buttonType?: "button" | "submit" | undefined;
|
|
769
829
|
})[];
|
|
770
|
-
}
|
|
771
|
-
placeholder?: string | undefined;
|
|
772
|
-
} | {
|
|
773
|
-
type: "prompt";
|
|
774
|
-
id: string;
|
|
775
|
-
placeholder?: string | undefined;
|
|
776
|
-
}, [Struct<{
|
|
777
|
-
type: "prompt";
|
|
778
|
-
content: import("@metamask/snaps-sdk").Panel | {
|
|
830
|
+
} | {
|
|
779
831
|
value: string;
|
|
780
832
|
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
781
833
|
sensitive?: boolean | undefined;
|
|
@@ -794,7 +846,7 @@ declare const DialogParametersStruct: Struct<{
|
|
|
794
846
|
type: import("@metamask/snaps-sdk").NodeType.Text;
|
|
795
847
|
markdown?: boolean | undefined;
|
|
796
848
|
} | {
|
|
797
|
-
value: string
|
|
849
|
+
value: `0x${string}`;
|
|
798
850
|
type: import("@metamask/snaps-sdk").NodeType.Address;
|
|
799
851
|
} | {
|
|
800
852
|
value: {
|
|
@@ -805,19 +857,24 @@ declare const DialogParametersStruct: Struct<{
|
|
|
805
857
|
type: import("@metamask/snaps-sdk").NodeType.Text;
|
|
806
858
|
markdown?: boolean | undefined;
|
|
807
859
|
} | {
|
|
808
|
-
value: string
|
|
860
|
+
value: `0x${string}`;
|
|
809
861
|
type: import("@metamask/snaps-sdk").NodeType.Address;
|
|
810
862
|
};
|
|
811
863
|
type: import("@metamask/snaps-sdk").NodeType.Row;
|
|
812
864
|
label: string;
|
|
813
865
|
variant?: "default" | "warning" | "critical" | undefined;
|
|
814
|
-
}
|
|
866
|
+
};
|
|
867
|
+
placeholder?: string | undefined;
|
|
868
|
+
}, {
|
|
869
|
+
type: Struct<"prompt", null>;
|
|
870
|
+
content: Struct<import("@metamask/snaps-sdk").Panel | {
|
|
815
871
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
816
872
|
name: string;
|
|
817
873
|
value?: string | undefined;
|
|
818
|
-
|
|
874
|
+
error?: string | undefined;
|
|
819
875
|
inputType?: "number" | "text" | "password" | undefined;
|
|
820
876
|
placeholder?: string | undefined;
|
|
877
|
+
label?: string | undefined;
|
|
821
878
|
} | {
|
|
822
879
|
value: string;
|
|
823
880
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -831,9 +888,10 @@ declare const DialogParametersStruct: Struct<{
|
|
|
831
888
|
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
832
889
|
name: string;
|
|
833
890
|
value?: string | undefined;
|
|
834
|
-
|
|
891
|
+
error?: string | undefined;
|
|
835
892
|
inputType?: "number" | "text" | "password" | undefined;
|
|
836
893
|
placeholder?: string | undefined;
|
|
894
|
+
label?: string | undefined;
|
|
837
895
|
} | {
|
|
838
896
|
value: string;
|
|
839
897
|
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
@@ -841,11 +899,7 @@ declare const DialogParametersStruct: Struct<{
|
|
|
841
899
|
variant?: "primary" | "secondary" | undefined;
|
|
842
900
|
buttonType?: "button" | "submit" | undefined;
|
|
843
901
|
})[];
|
|
844
|
-
}
|
|
845
|
-
placeholder?: string | undefined;
|
|
846
|
-
}, {
|
|
847
|
-
type: Struct<"prompt", null>;
|
|
848
|
-
content: Struct<import("@metamask/snaps-sdk").Panel | {
|
|
902
|
+
} | {
|
|
849
903
|
value: string;
|
|
850
904
|
type: import("@metamask/snaps-sdk").NodeType.Copyable;
|
|
851
905
|
sensitive?: boolean | undefined;
|
|
@@ -864,7 +918,7 @@ declare const DialogParametersStruct: Struct<{
|
|
|
864
918
|
type: import("@metamask/snaps-sdk").NodeType.Text;
|
|
865
919
|
markdown?: boolean | undefined;
|
|
866
920
|
} | {
|
|
867
|
-
value: string
|
|
921
|
+
value: `0x${string}`;
|
|
868
922
|
type: import("@metamask/snaps-sdk").NodeType.Address;
|
|
869
923
|
} | {
|
|
870
924
|
value: {
|
|
@@ -875,42 +929,12 @@ declare const DialogParametersStruct: Struct<{
|
|
|
875
929
|
type: import("@metamask/snaps-sdk").NodeType.Text;
|
|
876
930
|
markdown?: boolean | undefined;
|
|
877
931
|
} | {
|
|
878
|
-
value: string
|
|
932
|
+
value: `0x${string}`;
|
|
879
933
|
type: import("@metamask/snaps-sdk").NodeType.Address;
|
|
880
934
|
};
|
|
881
935
|
type: import("@metamask/snaps-sdk").NodeType.Row;
|
|
882
936
|
label: string;
|
|
883
937
|
variant?: "default" | "warning" | "critical" | undefined;
|
|
884
|
-
} | {
|
|
885
|
-
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
886
|
-
name: string;
|
|
887
|
-
value?: string | undefined;
|
|
888
|
-
label?: string | undefined;
|
|
889
|
-
inputType?: "number" | "text" | "password" | undefined;
|
|
890
|
-
placeholder?: string | undefined;
|
|
891
|
-
} | {
|
|
892
|
-
value: string;
|
|
893
|
-
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
894
|
-
name?: string | undefined;
|
|
895
|
-
variant?: "primary" | "secondary" | undefined;
|
|
896
|
-
buttonType?: "button" | "submit" | undefined;
|
|
897
|
-
} | {
|
|
898
|
-
type: import("@metamask/snaps-sdk").NodeType.Form;
|
|
899
|
-
name: string;
|
|
900
|
-
children: ({
|
|
901
|
-
type: import("@metamask/snaps-sdk").NodeType.Input;
|
|
902
|
-
name: string;
|
|
903
|
-
value?: string | undefined;
|
|
904
|
-
label?: string | undefined;
|
|
905
|
-
inputType?: "number" | "text" | "password" | undefined;
|
|
906
|
-
placeholder?: string | undefined;
|
|
907
|
-
} | {
|
|
908
|
-
value: string;
|
|
909
|
-
type: import("@metamask/snaps-sdk").NodeType.Button;
|
|
910
|
-
name?: string | undefined;
|
|
911
|
-
variant?: "primary" | "secondary" | undefined;
|
|
912
|
-
buttonType?: "button" | "submit" | undefined;
|
|
913
|
-
})[];
|
|
914
938
|
}, null>;
|
|
915
939
|
placeholder: Struct<string | undefined, null>;
|
|
916
940
|
}>, Struct<{
|