@metamask/snaps-simulation 2.4.0 → 2.4.1
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 +8 -1
- package/dist/controllers.cjs +0 -1
- package/dist/controllers.cjs.map +1 -1
- package/dist/controllers.d.cts.map +1 -1
- package/dist/controllers.d.mts.map +1 -1
- package/dist/controllers.mjs +0 -1
- package/dist/controllers.mjs.map +1 -1
- package/dist/interface.cjs +6 -6
- package/dist/interface.cjs.map +1 -1
- package/dist/interface.mjs +6 -6
- package/dist/interface.mjs.map +1 -1
- package/dist/options.d.cts +3 -3
- package/dist/options.d.mts +3 -3
- package/dist/simulation.cjs +0 -1
- package/dist/simulation.cjs.map +1 -1
- package/dist/simulation.d.cts.map +1 -1
- package/dist/simulation.d.mts.map +1 -1
- package/dist/simulation.mjs +0 -1
- package/dist/simulation.mjs.map +1 -1
- package/dist/structs.d.cts +41 -41
- package/dist/structs.d.mts +41 -41
- package/package.json +11 -11
package/dist/structs.d.cts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type { SnapResponse, SnapResponseWithInterface } from "./types.cjs";
|
|
2
2
|
export declare const TransactionOptionsStruct: import("@metamask/superstruct").Struct<{
|
|
3
|
-
data: `0x${string}`;
|
|
4
|
-
origin: string;
|
|
5
3
|
value: `0x${string}`;
|
|
6
|
-
nonce: `0x${string}`;
|
|
7
|
-
from: `0x${string}`;
|
|
8
4
|
chainId: string;
|
|
5
|
+
origin: string;
|
|
6
|
+
from: `0x${string}`;
|
|
9
7
|
to: `0x${string}`;
|
|
10
8
|
gasLimit: `0x${string}`;
|
|
11
9
|
maxFeePerGas: `0x${string}`;
|
|
12
10
|
maxPriorityFeePerGas: `0x${string}`;
|
|
11
|
+
nonce: `0x${string}`;
|
|
12
|
+
data: `0x${string}`;
|
|
13
13
|
}, {
|
|
14
14
|
/**
|
|
15
15
|
* The CAIP-2 chain ID to send the transaction on. Defaults to `eip155:1`.
|
|
@@ -63,10 +63,10 @@ export declare const TransactionOptionsStruct: import("@metamask/superstruct").S
|
|
|
63
63
|
data: import("@metamask/superstruct").Struct<`0x${string}`, null>;
|
|
64
64
|
}>;
|
|
65
65
|
export declare const SignatureOptionsStruct: import("@metamask/superstruct").Struct<{
|
|
66
|
-
data: `0x${string}` | Record<string, any> | Record<string, any>[];
|
|
67
66
|
origin: string;
|
|
68
67
|
from: `0x${string}`;
|
|
69
|
-
|
|
68
|
+
data: `0x${string}` | Record<string, any> | Record<string, any>[];
|
|
69
|
+
signatureMethod: "eth_signTypedData" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "personal_sign";
|
|
70
70
|
}, {
|
|
71
71
|
/**
|
|
72
72
|
* The origin making the signature request.
|
|
@@ -86,7 +86,7 @@ export declare const SignatureOptionsStruct: import("@metamask/superstruct").Str
|
|
|
86
86
|
/**
|
|
87
87
|
* The signature method being used.
|
|
88
88
|
*/
|
|
89
|
-
signatureMethod: import("@metamask/superstruct").Struct<"eth_signTypedData" | "
|
|
89
|
+
signatureMethod: import("@metamask/superstruct").Struct<"eth_signTypedData" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "personal_sign", null>;
|
|
90
90
|
}>;
|
|
91
91
|
export declare const BaseNameLookupOptionsStruct: import("@metamask/superstruct").Struct<{
|
|
92
92
|
chainId: string;
|
|
@@ -97,8 +97,8 @@ export declare const BaseNameLookupOptionsStruct: import("@metamask/superstruct"
|
|
|
97
97
|
chainId: import("@metamask/superstruct").Struct<string, null>;
|
|
98
98
|
}>;
|
|
99
99
|
export declare const NameLookupOptionsStruct: import("@metamask/superstruct").Struct<{
|
|
100
|
-
address: string;
|
|
101
100
|
chainId: string;
|
|
101
|
+
address: string;
|
|
102
102
|
} | {
|
|
103
103
|
chainId: string;
|
|
104
104
|
domain: string;
|
|
@@ -125,18 +125,18 @@ export declare const InterfaceStruct: import("@metamask/superstruct").Struct<{
|
|
|
125
125
|
content: import("@metamask/superstruct").Struct<import("@metamask/snaps-sdk/jsx").JSXElement | undefined, null>;
|
|
126
126
|
}>;
|
|
127
127
|
export declare const SnapResponseWithoutInterfaceStruct: import("@metamask/superstruct").Struct<{
|
|
128
|
-
id: string;
|
|
129
128
|
notifications: {
|
|
130
|
-
type: "
|
|
131
|
-
message: string;
|
|
129
|
+
type: "inApp" | "native";
|
|
132
130
|
id: string;
|
|
133
|
-
|
|
131
|
+
message: string;
|
|
134
132
|
title?: string | undefined;
|
|
133
|
+
content?: string | undefined;
|
|
135
134
|
footerLink?: {
|
|
136
135
|
text: string;
|
|
137
136
|
href: string;
|
|
138
137
|
} | undefined;
|
|
139
138
|
}[];
|
|
139
|
+
id: string;
|
|
140
140
|
response: {
|
|
141
141
|
result: import("@metamask/snaps-sdk").Json;
|
|
142
142
|
} | {
|
|
@@ -150,21 +150,21 @@ export declare const SnapResponseWithoutInterfaceStruct: import("@metamask/super
|
|
|
150
150
|
error: import("@metamask/snaps-sdk").Json;
|
|
151
151
|
}, null>;
|
|
152
152
|
notifications: import("@metamask/superstruct").Struct<{
|
|
153
|
-
type: "
|
|
154
|
-
message: string;
|
|
153
|
+
type: "inApp" | "native";
|
|
155
154
|
id: string;
|
|
156
|
-
|
|
155
|
+
message: string;
|
|
157
156
|
title?: string | undefined;
|
|
157
|
+
content?: string | undefined;
|
|
158
158
|
footerLink?: {
|
|
159
159
|
text: string;
|
|
160
160
|
href: string;
|
|
161
161
|
} | undefined;
|
|
162
162
|
}[], import("@metamask/superstruct").Struct<{
|
|
163
|
-
type: "
|
|
164
|
-
message: string;
|
|
163
|
+
type: "inApp" | "native";
|
|
165
164
|
id: string;
|
|
166
|
-
|
|
165
|
+
message: string;
|
|
167
166
|
title?: string | undefined;
|
|
167
|
+
content?: string | undefined;
|
|
168
168
|
footerLink?: {
|
|
169
169
|
text: string;
|
|
170
170
|
href: string;
|
|
@@ -172,7 +172,7 @@ export declare const SnapResponseWithoutInterfaceStruct: import("@metamask/super
|
|
|
172
172
|
}, {
|
|
173
173
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
174
174
|
message: import("@metamask/superstruct").Struct<string, null>;
|
|
175
|
-
type: import("@metamask/superstruct").Struct<"
|
|
175
|
+
type: import("@metamask/superstruct").Struct<"inApp" | "native", null>;
|
|
176
176
|
title: import("@metamask/superstruct").Struct<string | undefined, null>;
|
|
177
177
|
content: import("@metamask/superstruct").Struct<string | undefined, null>;
|
|
178
178
|
footerLink: import("@metamask/superstruct").Struct<{
|
|
@@ -185,43 +185,42 @@ export declare const SnapResponseWithoutInterfaceStruct: import("@metamask/super
|
|
|
185
185
|
}>>;
|
|
186
186
|
}>;
|
|
187
187
|
export declare const SnapResponseWithInterfaceStruct: import("@metamask/superstruct").Struct<{
|
|
188
|
-
|
|
188
|
+
getInterface: Function;
|
|
189
189
|
notifications: {
|
|
190
|
-
type: "
|
|
191
|
-
message: string;
|
|
190
|
+
type: "inApp" | "native";
|
|
192
191
|
id: string;
|
|
193
|
-
|
|
192
|
+
message: string;
|
|
194
193
|
title?: string | undefined;
|
|
194
|
+
content?: string | undefined;
|
|
195
195
|
footerLink?: {
|
|
196
196
|
text: string;
|
|
197
197
|
href: string;
|
|
198
198
|
} | undefined;
|
|
199
199
|
}[];
|
|
200
|
+
id: string;
|
|
200
201
|
response: {
|
|
201
202
|
result: import("@metamask/snaps-sdk").Json;
|
|
202
203
|
} | {
|
|
203
204
|
error: import("@metamask/snaps-sdk").Json;
|
|
204
205
|
};
|
|
205
|
-
getInterface: Function;
|
|
206
206
|
}, {
|
|
207
207
|
getInterface: import("@metamask/superstruct").Struct<Function, null>;
|
|
208
|
-
id: import("@metamask/superstruct").Struct<string, null>;
|
|
209
208
|
notifications: import("@metamask/superstruct").Struct<{
|
|
210
|
-
type: "
|
|
211
|
-
message: string;
|
|
209
|
+
type: "inApp" | "native";
|
|
212
210
|
id: string;
|
|
213
|
-
|
|
211
|
+
message: string;
|
|
214
212
|
title?: string | undefined;
|
|
213
|
+
content?: string | undefined;
|
|
215
214
|
footerLink?: {
|
|
216
215
|
text: string;
|
|
217
216
|
href: string;
|
|
218
217
|
} | undefined;
|
|
219
218
|
}[], import("@metamask/superstruct").Struct<{
|
|
220
|
-
type: "
|
|
221
|
-
message: string;
|
|
219
|
+
type: "inApp" | "native";
|
|
222
220
|
id: string;
|
|
223
|
-
|
|
221
|
+
message: string;
|
|
224
222
|
title?: string | undefined;
|
|
223
|
+
content?: string | undefined;
|
|
225
224
|
footerLink?: {
|
|
226
225
|
text: string;
|
|
227
226
|
href: string;
|
|
@@ -229,7 +228,7 @@ export declare const SnapResponseWithInterfaceStruct: import("@metamask/superstr
|
|
|
229
228
|
}, {
|
|
230
229
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
231
230
|
message: import("@metamask/superstruct").Struct<string, null>;
|
|
232
|
-
type: import("@metamask/superstruct").Struct<"
|
|
231
|
+
type: import("@metamask/superstruct").Struct<"inApp" | "native", null>;
|
|
233
232
|
title: import("@metamask/superstruct").Struct<string | undefined, null>;
|
|
234
233
|
content: import("@metamask/superstruct").Struct<string | undefined, null>;
|
|
235
234
|
footerLink: import("@metamask/superstruct").Struct<{
|
|
@@ -240,6 +239,7 @@ export declare const SnapResponseWithInterfaceStruct: import("@metamask/superstr
|
|
|
240
239
|
text: import("@metamask/superstruct").Struct<string, null>;
|
|
241
240
|
}>;
|
|
242
241
|
}>>;
|
|
242
|
+
id: import("@metamask/superstruct").Struct<string, null>;
|
|
243
243
|
response: import("@metamask/superstruct").Struct<{
|
|
244
244
|
result: import("@metamask/snaps-sdk").Json;
|
|
245
245
|
} | {
|
|
@@ -247,42 +247,42 @@ export declare const SnapResponseWithInterfaceStruct: import("@metamask/superstr
|
|
|
247
247
|
}, null>;
|
|
248
248
|
}>;
|
|
249
249
|
export declare const SnapResponseStruct: import("@metamask/superstruct").Struct<{
|
|
250
|
-
id: string;
|
|
251
250
|
notifications: {
|
|
252
|
-
type: "
|
|
253
|
-
message: string;
|
|
251
|
+
type: "inApp" | "native";
|
|
254
252
|
id: string;
|
|
255
|
-
|
|
253
|
+
message: string;
|
|
256
254
|
title?: string | undefined;
|
|
255
|
+
content?: string | undefined;
|
|
257
256
|
footerLink?: {
|
|
258
257
|
text: string;
|
|
259
258
|
href: string;
|
|
260
259
|
} | undefined;
|
|
261
260
|
}[];
|
|
261
|
+
id: string;
|
|
262
262
|
response: {
|
|
263
263
|
result: import("@metamask/snaps-sdk").Json;
|
|
264
264
|
} | {
|
|
265
265
|
error: import("@metamask/snaps-sdk").Json;
|
|
266
266
|
};
|
|
267
267
|
} | {
|
|
268
|
-
|
|
268
|
+
getInterface: Function;
|
|
269
269
|
notifications: {
|
|
270
|
-
type: "
|
|
271
|
-
message: string;
|
|
270
|
+
type: "inApp" | "native";
|
|
272
271
|
id: string;
|
|
273
|
-
|
|
272
|
+
message: string;
|
|
274
273
|
title?: string | undefined;
|
|
274
|
+
content?: string | undefined;
|
|
275
275
|
footerLink?: {
|
|
276
276
|
text: string;
|
|
277
277
|
href: string;
|
|
278
278
|
} | undefined;
|
|
279
279
|
}[];
|
|
280
|
+
id: string;
|
|
280
281
|
response: {
|
|
281
282
|
result: import("@metamask/snaps-sdk").Json;
|
|
282
283
|
} | {
|
|
283
284
|
error: import("@metamask/snaps-sdk").Json;
|
|
284
285
|
};
|
|
285
|
-
getInterface: Function;
|
|
286
286
|
}, null>;
|
|
287
287
|
/**
|
|
288
288
|
* Ensure that the actual response contains `getInterface`.
|
package/dist/structs.d.mts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type { SnapResponse, SnapResponseWithInterface } from "./types.mjs";
|
|
2
2
|
export declare const TransactionOptionsStruct: import("@metamask/superstruct").Struct<{
|
|
3
|
-
data: `0x${string}`;
|
|
4
|
-
origin: string;
|
|
5
3
|
value: `0x${string}`;
|
|
6
|
-
nonce: `0x${string}`;
|
|
7
|
-
from: `0x${string}`;
|
|
8
4
|
chainId: string;
|
|
5
|
+
origin: string;
|
|
6
|
+
from: `0x${string}`;
|
|
9
7
|
to: `0x${string}`;
|
|
10
8
|
gasLimit: `0x${string}`;
|
|
11
9
|
maxFeePerGas: `0x${string}`;
|
|
12
10
|
maxPriorityFeePerGas: `0x${string}`;
|
|
11
|
+
nonce: `0x${string}`;
|
|
12
|
+
data: `0x${string}`;
|
|
13
13
|
}, {
|
|
14
14
|
/**
|
|
15
15
|
* The CAIP-2 chain ID to send the transaction on. Defaults to `eip155:1`.
|
|
@@ -63,10 +63,10 @@ export declare const TransactionOptionsStruct: import("@metamask/superstruct").S
|
|
|
63
63
|
data: import("@metamask/superstruct").Struct<`0x${string}`, null>;
|
|
64
64
|
}>;
|
|
65
65
|
export declare const SignatureOptionsStruct: import("@metamask/superstruct").Struct<{
|
|
66
|
-
data: `0x${string}` | Record<string, any> | Record<string, any>[];
|
|
67
66
|
origin: string;
|
|
68
67
|
from: `0x${string}`;
|
|
69
|
-
|
|
68
|
+
data: `0x${string}` | Record<string, any> | Record<string, any>[];
|
|
69
|
+
signatureMethod: "eth_signTypedData" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "personal_sign";
|
|
70
70
|
}, {
|
|
71
71
|
/**
|
|
72
72
|
* The origin making the signature request.
|
|
@@ -86,7 +86,7 @@ export declare const SignatureOptionsStruct: import("@metamask/superstruct").Str
|
|
|
86
86
|
/**
|
|
87
87
|
* The signature method being used.
|
|
88
88
|
*/
|
|
89
|
-
signatureMethod: import("@metamask/superstruct").Struct<"eth_signTypedData" | "
|
|
89
|
+
signatureMethod: import("@metamask/superstruct").Struct<"eth_signTypedData" | "eth_signTypedData_v3" | "eth_signTypedData_v4" | "personal_sign", null>;
|
|
90
90
|
}>;
|
|
91
91
|
export declare const BaseNameLookupOptionsStruct: import("@metamask/superstruct").Struct<{
|
|
92
92
|
chainId: string;
|
|
@@ -97,8 +97,8 @@ export declare const BaseNameLookupOptionsStruct: import("@metamask/superstruct"
|
|
|
97
97
|
chainId: import("@metamask/superstruct").Struct<string, null>;
|
|
98
98
|
}>;
|
|
99
99
|
export declare const NameLookupOptionsStruct: import("@metamask/superstruct").Struct<{
|
|
100
|
-
address: string;
|
|
101
100
|
chainId: string;
|
|
101
|
+
address: string;
|
|
102
102
|
} | {
|
|
103
103
|
chainId: string;
|
|
104
104
|
domain: string;
|
|
@@ -125,18 +125,18 @@ export declare const InterfaceStruct: import("@metamask/superstruct").Struct<{
|
|
|
125
125
|
content: import("@metamask/superstruct").Struct<import("@metamask/snaps-sdk/jsx").JSXElement | undefined, null>;
|
|
126
126
|
}>;
|
|
127
127
|
export declare const SnapResponseWithoutInterfaceStruct: import("@metamask/superstruct").Struct<{
|
|
128
|
-
id: string;
|
|
129
128
|
notifications: {
|
|
130
|
-
type: "
|
|
131
|
-
message: string;
|
|
129
|
+
type: "inApp" | "native";
|
|
132
130
|
id: string;
|
|
133
|
-
|
|
131
|
+
message: string;
|
|
134
132
|
title?: string | undefined;
|
|
133
|
+
content?: string | undefined;
|
|
135
134
|
footerLink?: {
|
|
136
135
|
text: string;
|
|
137
136
|
href: string;
|
|
138
137
|
} | undefined;
|
|
139
138
|
}[];
|
|
139
|
+
id: string;
|
|
140
140
|
response: {
|
|
141
141
|
result: import("@metamask/snaps-sdk").Json;
|
|
142
142
|
} | {
|
|
@@ -150,21 +150,21 @@ export declare const SnapResponseWithoutInterfaceStruct: import("@metamask/super
|
|
|
150
150
|
error: import("@metamask/snaps-sdk").Json;
|
|
151
151
|
}, null>;
|
|
152
152
|
notifications: import("@metamask/superstruct").Struct<{
|
|
153
|
-
type: "
|
|
154
|
-
message: string;
|
|
153
|
+
type: "inApp" | "native";
|
|
155
154
|
id: string;
|
|
156
|
-
|
|
155
|
+
message: string;
|
|
157
156
|
title?: string | undefined;
|
|
157
|
+
content?: string | undefined;
|
|
158
158
|
footerLink?: {
|
|
159
159
|
text: string;
|
|
160
160
|
href: string;
|
|
161
161
|
} | undefined;
|
|
162
162
|
}[], import("@metamask/superstruct").Struct<{
|
|
163
|
-
type: "
|
|
164
|
-
message: string;
|
|
163
|
+
type: "inApp" | "native";
|
|
165
164
|
id: string;
|
|
166
|
-
|
|
165
|
+
message: string;
|
|
167
166
|
title?: string | undefined;
|
|
167
|
+
content?: string | undefined;
|
|
168
168
|
footerLink?: {
|
|
169
169
|
text: string;
|
|
170
170
|
href: string;
|
|
@@ -172,7 +172,7 @@ export declare const SnapResponseWithoutInterfaceStruct: import("@metamask/super
|
|
|
172
172
|
}, {
|
|
173
173
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
174
174
|
message: import("@metamask/superstruct").Struct<string, null>;
|
|
175
|
-
type: import("@metamask/superstruct").Struct<"
|
|
175
|
+
type: import("@metamask/superstruct").Struct<"inApp" | "native", null>;
|
|
176
176
|
title: import("@metamask/superstruct").Struct<string | undefined, null>;
|
|
177
177
|
content: import("@metamask/superstruct").Struct<string | undefined, null>;
|
|
178
178
|
footerLink: import("@metamask/superstruct").Struct<{
|
|
@@ -185,43 +185,42 @@ export declare const SnapResponseWithoutInterfaceStruct: import("@metamask/super
|
|
|
185
185
|
}>>;
|
|
186
186
|
}>;
|
|
187
187
|
export declare const SnapResponseWithInterfaceStruct: import("@metamask/superstruct").Struct<{
|
|
188
|
-
|
|
188
|
+
getInterface: Function;
|
|
189
189
|
notifications: {
|
|
190
|
-
type: "
|
|
191
|
-
message: string;
|
|
190
|
+
type: "inApp" | "native";
|
|
192
191
|
id: string;
|
|
193
|
-
|
|
192
|
+
message: string;
|
|
194
193
|
title?: string | undefined;
|
|
194
|
+
content?: string | undefined;
|
|
195
195
|
footerLink?: {
|
|
196
196
|
text: string;
|
|
197
197
|
href: string;
|
|
198
198
|
} | undefined;
|
|
199
199
|
}[];
|
|
200
|
+
id: string;
|
|
200
201
|
response: {
|
|
201
202
|
result: import("@metamask/snaps-sdk").Json;
|
|
202
203
|
} | {
|
|
203
204
|
error: import("@metamask/snaps-sdk").Json;
|
|
204
205
|
};
|
|
205
|
-
getInterface: Function;
|
|
206
206
|
}, {
|
|
207
207
|
getInterface: import("@metamask/superstruct").Struct<Function, null>;
|
|
208
|
-
id: import("@metamask/superstruct").Struct<string, null>;
|
|
209
208
|
notifications: import("@metamask/superstruct").Struct<{
|
|
210
|
-
type: "
|
|
211
|
-
message: string;
|
|
209
|
+
type: "inApp" | "native";
|
|
212
210
|
id: string;
|
|
213
|
-
|
|
211
|
+
message: string;
|
|
214
212
|
title?: string | undefined;
|
|
213
|
+
content?: string | undefined;
|
|
215
214
|
footerLink?: {
|
|
216
215
|
text: string;
|
|
217
216
|
href: string;
|
|
218
217
|
} | undefined;
|
|
219
218
|
}[], import("@metamask/superstruct").Struct<{
|
|
220
|
-
type: "
|
|
221
|
-
message: string;
|
|
219
|
+
type: "inApp" | "native";
|
|
222
220
|
id: string;
|
|
223
|
-
|
|
221
|
+
message: string;
|
|
224
222
|
title?: string | undefined;
|
|
223
|
+
content?: string | undefined;
|
|
225
224
|
footerLink?: {
|
|
226
225
|
text: string;
|
|
227
226
|
href: string;
|
|
@@ -229,7 +228,7 @@ export declare const SnapResponseWithInterfaceStruct: import("@metamask/superstr
|
|
|
229
228
|
}, {
|
|
230
229
|
id: import("@metamask/superstruct").Struct<string, null>;
|
|
231
230
|
message: import("@metamask/superstruct").Struct<string, null>;
|
|
232
|
-
type: import("@metamask/superstruct").Struct<"
|
|
231
|
+
type: import("@metamask/superstruct").Struct<"inApp" | "native", null>;
|
|
233
232
|
title: import("@metamask/superstruct").Struct<string | undefined, null>;
|
|
234
233
|
content: import("@metamask/superstruct").Struct<string | undefined, null>;
|
|
235
234
|
footerLink: import("@metamask/superstruct").Struct<{
|
|
@@ -240,6 +239,7 @@ export declare const SnapResponseWithInterfaceStruct: import("@metamask/superstr
|
|
|
240
239
|
text: import("@metamask/superstruct").Struct<string, null>;
|
|
241
240
|
}>;
|
|
242
241
|
}>>;
|
|
242
|
+
id: import("@metamask/superstruct").Struct<string, null>;
|
|
243
243
|
response: import("@metamask/superstruct").Struct<{
|
|
244
244
|
result: import("@metamask/snaps-sdk").Json;
|
|
245
245
|
} | {
|
|
@@ -247,42 +247,42 @@ export declare const SnapResponseWithInterfaceStruct: import("@metamask/superstr
|
|
|
247
247
|
}, null>;
|
|
248
248
|
}>;
|
|
249
249
|
export declare const SnapResponseStruct: import("@metamask/superstruct").Struct<{
|
|
250
|
-
id: string;
|
|
251
250
|
notifications: {
|
|
252
|
-
type: "
|
|
253
|
-
message: string;
|
|
251
|
+
type: "inApp" | "native";
|
|
254
252
|
id: string;
|
|
255
|
-
|
|
253
|
+
message: string;
|
|
256
254
|
title?: string | undefined;
|
|
255
|
+
content?: string | undefined;
|
|
257
256
|
footerLink?: {
|
|
258
257
|
text: string;
|
|
259
258
|
href: string;
|
|
260
259
|
} | undefined;
|
|
261
260
|
}[];
|
|
261
|
+
id: string;
|
|
262
262
|
response: {
|
|
263
263
|
result: import("@metamask/snaps-sdk").Json;
|
|
264
264
|
} | {
|
|
265
265
|
error: import("@metamask/snaps-sdk").Json;
|
|
266
266
|
};
|
|
267
267
|
} | {
|
|
268
|
-
|
|
268
|
+
getInterface: Function;
|
|
269
269
|
notifications: {
|
|
270
|
-
type: "
|
|
271
|
-
message: string;
|
|
270
|
+
type: "inApp" | "native";
|
|
272
271
|
id: string;
|
|
273
|
-
|
|
272
|
+
message: string;
|
|
274
273
|
title?: string | undefined;
|
|
274
|
+
content?: string | undefined;
|
|
275
275
|
footerLink?: {
|
|
276
276
|
text: string;
|
|
277
277
|
href: string;
|
|
278
278
|
} | undefined;
|
|
279
279
|
}[];
|
|
280
|
+
id: string;
|
|
280
281
|
response: {
|
|
281
282
|
result: import("@metamask/snaps-sdk").Json;
|
|
282
283
|
} | {
|
|
283
284
|
error: import("@metamask/snaps-sdk").Json;
|
|
284
285
|
};
|
|
285
|
-
getInterface: Function;
|
|
286
286
|
}, null>;
|
|
287
287
|
/**
|
|
288
288
|
* Ensure that the actual response contains `getInterface`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask/snaps-simulation",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"description": "A simulation framework for MetaMask Snaps, enabling headless testing of Snaps in a controlled environment",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"MetaMask",
|
|
@@ -56,18 +56,18 @@
|
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@metamask/base-controller": "^8.0.0",
|
|
59
|
-
"@metamask/eth-json-rpc-middleware": "^
|
|
59
|
+
"@metamask/eth-json-rpc-middleware": "^16.0.1",
|
|
60
60
|
"@metamask/json-rpc-engine": "^10.0.2",
|
|
61
61
|
"@metamask/json-rpc-middleware-stream": "^8.0.7",
|
|
62
|
-
"@metamask/key-tree": "^10.1.
|
|
62
|
+
"@metamask/key-tree": "^10.1.1",
|
|
63
63
|
"@metamask/permission-controller": "^11.0.6",
|
|
64
|
-
"@metamask/phishing-controller": "^12.4.
|
|
65
|
-
"@metamask/snaps-controllers": "^11.
|
|
66
|
-
"@metamask/snaps-execution-environments": "^7.
|
|
67
|
-
"@metamask/snaps-rpc-methods": "^12.
|
|
68
|
-
"@metamask/snaps-sdk": "^6.
|
|
69
|
-
"@metamask/snaps-utils": "^9.0
|
|
70
|
-
"@metamask/superstruct": "^3.1
|
|
64
|
+
"@metamask/phishing-controller": "^12.4.1",
|
|
65
|
+
"@metamask/snaps-controllers": "^11.2.0",
|
|
66
|
+
"@metamask/snaps-execution-environments": "^7.2.0",
|
|
67
|
+
"@metamask/snaps-rpc-methods": "^12.1.0",
|
|
68
|
+
"@metamask/snaps-sdk": "^6.22.0",
|
|
69
|
+
"@metamask/snaps-utils": "^9.2.0",
|
|
70
|
+
"@metamask/superstruct": "^3.2.1",
|
|
71
71
|
"@metamask/utils": "^11.2.0",
|
|
72
72
|
"@reduxjs/toolkit": "^1.9.5",
|
|
73
73
|
"fast-deep-equal": "^3.1.3",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@lavamoat/allow-scripts": "^3.0.4",
|
|
80
|
-
"@metamask/auto-changelog": "^
|
|
80
|
+
"@metamask/auto-changelog": "^5.0.1",
|
|
81
81
|
"@ts-bridge/cli": "^0.6.1",
|
|
82
82
|
"@types/express": "^4.17.17",
|
|
83
83
|
"@types/jest": "^27.5.1",
|