@sig-net/midnight 0.24.0-rc.1 → 0.24.0-rc.3

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.
Files changed (58) hide show
  1. package/README.md +19 -24
  2. package/dist/compact-descriptors.d.ts +22 -7
  3. package/dist/compact-descriptors.d.ts.map +1 -1
  4. package/dist/compact-descriptors.js +39 -28
  5. package/dist/compact-descriptors.js.map +1 -1
  6. package/dist/constants.d.ts +3 -22
  7. package/dist/constants.d.ts.map +1 -1
  8. package/dist/constants.js +3 -25
  9. package/dist/constants.js.map +1 -1
  10. package/dist/ecdsa-attestation.d.ts +43 -15
  11. package/dist/ecdsa-attestation.d.ts.map +1 -1
  12. package/dist/ecdsa-attestation.js +47 -17
  13. package/dist/ecdsa-attestation.js.map +1 -1
  14. package/dist/index.d.ts +6 -6
  15. package/dist/index.d.ts.map +1 -1
  16. package/dist/index.js +5 -5
  17. package/dist/index.js.map +1 -1
  18. package/dist/managed/compiler/contract-info.json +1212 -13
  19. package/dist/managed/compiler/contract-manifest.json +8 -8
  20. package/dist/managed/contract/index.d.ts +282 -7
  21. package/dist/managed/contract/index.js +1072 -161
  22. package/dist/managed/contract/index.js.map +1 -1
  23. package/dist/mpc-output-cache.d.ts +5 -29
  24. package/dist/mpc-output-cache.d.ts.map +1 -1
  25. package/dist/mpc-output-cache.js +8 -42
  26. package/dist/mpc-output-cache.js.map +1 -1
  27. package/dist/signature-requests-state-reader.js +3 -3
  28. package/dist/signature-requests-state-reader.js.map +1 -1
  29. package/dist/signet-contract-events.d.ts +40 -10
  30. package/dist/signet-contract-events.d.ts.map +1 -1
  31. package/dist/signet-contract-events.js +79 -29
  32. package/dist/signet-contract-events.js.map +1 -1
  33. package/dist/signet-evtype2tx-record-decoding.d.ts.map +1 -1
  34. package/dist/signet-evtype2tx-record-decoding.js +6 -5
  35. package/dist/signet-evtype2tx-record-decoding.js.map +1 -1
  36. package/dist/signet-evtype2tx-requests.d.ts +17 -12
  37. package/dist/signet-evtype2tx-requests.d.ts.map +1 -1
  38. package/dist/signet-evtype2tx-requests.js +85 -16
  39. package/dist/signet-evtype2tx-requests.js.map +1 -1
  40. package/dist/signet-request-id.d.ts +5 -2
  41. package/dist/signet-request-id.d.ts.map +1 -1
  42. package/dist/signet-request-id.js +21 -9
  43. package/dist/signet-request-id.js.map +1 -1
  44. package/dist/signet-request-response-reader.d.ts +2 -4
  45. package/dist/signet-request-response-reader.d.ts.map +1 -1
  46. package/dist/signet-request-response-reader.js +7 -11
  47. package/dist/signet-request-response-reader.js.map +1 -1
  48. package/dist/signet-requests.d.ts +48 -17
  49. package/dist/signet-requests.d.ts.map +1 -1
  50. package/dist/signet-requests.js +18 -6
  51. package/dist/signet-requests.js.map +1 -1
  52. package/dist/testing.d.ts +1 -1
  53. package/dist/testing.d.ts.map +1 -1
  54. package/dist/testing.js +3 -8
  55. package/dist/testing.js.map +1 -1
  56. package/package.json +2 -2
  57. package/src/Signet.compact +258 -80
  58. package/src/circuits.compact +68 -13
@@ -1,11 +1,18 @@
1
1
  import * as __compactRuntime from '@midnight-ntwrk/compact-runtime';
2
2
  __compactRuntime.checkRuntimeVersion('0.18.0-rc.1');
3
3
 
4
+ export var OutputKind;
5
+ (function (OutputKind) {
6
+ OutputKind[OutputKind['executed'] = 0] = 'executed';
7
+ OutputKind[OutputKind['failed'] = 1] = 'failed';
8
+ OutputKind[OutputKind['unviable'] = 2] = 'unviable';
9
+ })(OutputKind || (OutputKind = {}));
10
+
4
11
  const _descriptor_0 = new __compactRuntime.CompactTypeBytes(32);
5
12
 
6
13
  const _descriptor_1 = new __compactRuntime.CompactTypeUnsignedInteger(18446744073709551615n, 8);
7
14
 
8
- const _descriptor_2 = new __compactRuntime.CompactTypeBytes(100);
15
+ const _descriptor_2 = new __compactRuntime.CompactTypeEnum(2, 1);
9
16
 
10
17
  class _AffinePoint_0 {
11
18
  alignment() {
@@ -44,169 +51,518 @@ class _Signature_0 {
44
51
 
45
52
  const _descriptor_5 = new _Signature_0();
46
53
 
47
- class _RespondBidirectionalEvent_0 {
54
+ class _RespondBidirectionalEventV1_0 {
48
55
  alignment() {
49
- return _descriptor_5.alignment();
56
+ return _descriptor_0.alignment().concat(_descriptor_1.alignment().concat(_descriptor_2.alignment().concat(_descriptor_1.alignment().concat(_descriptor_0.alignment().concat(_descriptor_5.alignment())))));
50
57
  }
51
58
  fromValue(value_0) {
52
59
  return {
60
+ requestId: _descriptor_0.fromValue(value_0),
61
+ blockHeight: _descriptor_1.fromValue(value_0),
62
+ outputKind: _descriptor_2.fromValue(value_0),
63
+ serializedOutputLength: _descriptor_1.fromValue(value_0),
64
+ digest: _descriptor_0.fromValue(value_0),
53
65
  signature: _descriptor_5.fromValue(value_0)
54
66
  }
55
67
  }
56
68
  toValue(value_0) {
57
- return _descriptor_5.toValue(value_0.signature);
69
+ return _descriptor_0.toValue(value_0.requestId).concat(_descriptor_1.toValue(value_0.blockHeight).concat(_descriptor_2.toValue(value_0.outputKind).concat(_descriptor_1.toValue(value_0.serializedOutputLength).concat(_descriptor_0.toValue(value_0.digest).concat(_descriptor_5.toValue(value_0.signature))))));
58
70
  }
59
71
  }
60
72
 
61
- const _descriptor_6 = new _RespondBidirectionalEvent_0();
73
+ const _descriptor_6 = new _RespondBidirectionalEventV1_0();
62
74
 
63
75
  const _descriptor_7 = __compactRuntime.CompactTypeSecp256k1Point;
64
76
 
65
77
  const _descriptor_8 = __compactRuntime.CompactTypeBoolean;
66
78
 
67
- const _descriptor_9 = new __compactRuntime.CompactTypeBytes(2);
79
+ class _ContractAddress_0 {
80
+ alignment() {
81
+ return _descriptor_0.alignment();
82
+ }
83
+ fromValue(value_0) {
84
+ return {
85
+ bytes: _descriptor_0.fromValue(value_0)
86
+ }
87
+ }
88
+ toValue(value_0) {
89
+ return _descriptor_0.toValue(value_0.bytes);
90
+ }
91
+ }
68
92
 
69
- const _descriptor_10 = new __compactRuntime.CompactTypeBytes(1);
93
+ const _descriptor_9 = new _ContractAddress_0();
70
94
 
71
- const _descriptor_11 = new __compactRuntime.CompactTypeUnsignedInteger(340282366920938463463374607431768211455n, 16);
95
+ const _descriptor_10 = new __compactRuntime.CompactTypeEnum(1, 1);
72
96
 
73
- const _descriptor_12 = new __compactRuntime.CompactTypeBytes(20);
97
+ const _descriptor_11 = new __compactRuntime.CompactTypeEnum(1, 1);
74
98
 
75
- const _descriptor_13 = __compactRuntime.CompactTypeSecp256k1Scalar;
99
+ const _descriptor_12 = new __compactRuntime.CompactTypeUnsignedInteger(340282366920938463463374607431768211455n, 16);
76
100
 
77
- class _ContractAddress_0 {
101
+ const _descriptor_13 = new __compactRuntime.CompactTypeBytes(20);
102
+
103
+ const _descriptor_14 = new __compactRuntime.CompactTypeBytes(4);
104
+
105
+ const _descriptor_15 = new __compactRuntime.CompactTypeUnsignedInteger(65535n, 2);
106
+
107
+ const _descriptor_16 = new __compactRuntime.CompactTypeVector(2, _descriptor_0);
108
+
109
+ class _EvmCalldata_0 {
78
110
  alignment() {
79
- return _descriptor_0.alignment();
111
+ return _descriptor_14.alignment().concat(_descriptor_15.alignment().concat(_descriptor_16.alignment()));
80
112
  }
81
113
  fromValue(value_0) {
82
114
  return {
83
- bytes: _descriptor_0.fromValue(value_0)
115
+ selector: _descriptor_14.fromValue(value_0),
116
+ noWords: _descriptor_15.fromValue(value_0),
117
+ words: _descriptor_16.fromValue(value_0)
84
118
  }
85
119
  }
86
120
  toValue(value_0) {
87
- return _descriptor_0.toValue(value_0.bytes);
121
+ return _descriptor_14.toValue(value_0.selector).concat(_descriptor_15.toValue(value_0.noWords).concat(_descriptor_16.toValue(value_0.words)));
122
+ }
123
+ }
124
+
125
+ const _descriptor_17 = new _EvmCalldata_0();
126
+
127
+ class _Maybe_0 {
128
+ alignment() {
129
+ return _descriptor_8.alignment().concat(_descriptor_17.alignment());
130
+ }
131
+ fromValue(value_0) {
132
+ return {
133
+ is_some: _descriptor_8.fromValue(value_0),
134
+ value: _descriptor_17.fromValue(value_0)
135
+ }
136
+ }
137
+ toValue(value_0) {
138
+ return _descriptor_8.toValue(value_0.is_some).concat(_descriptor_17.toValue(value_0.value));
139
+ }
140
+ }
141
+
142
+ const _descriptor_18 = new _Maybe_0();
143
+
144
+ class _EvmAccessListEntry_0 {
145
+ alignment() {
146
+ return _descriptor_13.alignment().concat(_descriptor_4.alignment().concat(_descriptor_16.alignment()));
147
+ }
148
+ fromValue(value_0) {
149
+ return {
150
+ address: _descriptor_13.fromValue(value_0),
151
+ storageKeyCount: _descriptor_4.fromValue(value_0),
152
+ storageKeys: _descriptor_16.fromValue(value_0)
153
+ }
154
+ }
155
+ toValue(value_0) {
156
+ return _descriptor_13.toValue(value_0.address).concat(_descriptor_4.toValue(value_0.storageKeyCount).concat(_descriptor_16.toValue(value_0.storageKeys)));
157
+ }
158
+ }
159
+
160
+ const _descriptor_19 = new _EvmAccessListEntry_0();
161
+
162
+ const _descriptor_20 = new __compactRuntime.CompactTypeVector(1, _descriptor_19);
163
+
164
+ class _EvmType2TxParams_0 {
165
+ alignment() {
166
+ return _descriptor_1.alignment().concat(_descriptor_1.alignment().concat(_descriptor_12.alignment().concat(_descriptor_12.alignment().concat(_descriptor_1.alignment().concat(_descriptor_13.alignment().concat(_descriptor_12.alignment().concat(_descriptor_18.alignment().concat(_descriptor_4.alignment().concat(_descriptor_20.alignment())))))))));
167
+ }
168
+ fromValue(value_0) {
169
+ return {
170
+ chainId: _descriptor_1.fromValue(value_0),
171
+ nonce: _descriptor_1.fromValue(value_0),
172
+ maxPriorityFeePerGas: _descriptor_12.fromValue(value_0),
173
+ maxFeePerGas: _descriptor_12.fromValue(value_0),
174
+ gasLimit: _descriptor_1.fromValue(value_0),
175
+ to: _descriptor_13.fromValue(value_0),
176
+ value: _descriptor_12.fromValue(value_0),
177
+ calldata: _descriptor_18.fromValue(value_0),
178
+ accessListEntryCount: _descriptor_4.fromValue(value_0),
179
+ accessList: _descriptor_20.fromValue(value_0)
180
+ }
181
+ }
182
+ toValue(value_0) {
183
+ return _descriptor_1.toValue(value_0.chainId).concat(_descriptor_1.toValue(value_0.nonce).concat(_descriptor_12.toValue(value_0.maxPriorityFeePerGas).concat(_descriptor_12.toValue(value_0.maxFeePerGas).concat(_descriptor_1.toValue(value_0.gasLimit).concat(_descriptor_13.toValue(value_0.to).concat(_descriptor_12.toValue(value_0.value).concat(_descriptor_18.toValue(value_0.calldata).concat(_descriptor_4.toValue(value_0.accessListEntryCount).concat(_descriptor_20.toValue(value_0.accessList))))))))));
184
+ }
185
+ }
186
+
187
+ const _descriptor_21 = new _EvmType2TxParams_0();
188
+
189
+ const _descriptor_22 = new __compactRuntime.CompactTypeEnum(1, 1);
190
+
191
+ const _descriptor_23 = new __compactRuntime.CompactTypeBytes(64);
192
+
193
+ const _descriptor_24 = new __compactRuntime.CompactTypeBytes(34);
194
+
195
+ class _SignBidirectionalEventV1_0 {
196
+ alignment() {
197
+ return _descriptor_4.alignment().concat(_descriptor_9.alignment().concat(_descriptor_0.alignment().concat(_descriptor_10.alignment().concat(_descriptor_11.alignment().concat(_descriptor_21.alignment().concat(_descriptor_0.alignment().concat(_descriptor_22.alignment().concat(_descriptor_23.alignment().concat(_descriptor_24.alignment().concat(_descriptor_24.alignment()))))))))));
198
+ }
199
+ fromValue(value_0) {
200
+ return {
201
+ keyVersion: _descriptor_4.fromValue(value_0),
202
+ sender: _descriptor_9.fromValue(value_0),
203
+ path: _descriptor_0.fromValue(value_0),
204
+ algo: _descriptor_10.fromValue(value_0),
205
+ txParamType: _descriptor_11.fromValue(value_0),
206
+ txParams: _descriptor_21.fromValue(value_0),
207
+ executionDest: _descriptor_0.fromValue(value_0),
208
+ signatureDest: _descriptor_22.fromValue(value_0),
209
+ params: _descriptor_23.fromValue(value_0),
210
+ outputDeserializationSchema: _descriptor_24.fromValue(value_0),
211
+ respondSerializationSchema: _descriptor_24.fromValue(value_0)
212
+ }
213
+ }
214
+ toValue(value_0) {
215
+ return _descriptor_4.toValue(value_0.keyVersion).concat(_descriptor_9.toValue(value_0.sender).concat(_descriptor_0.toValue(value_0.path).concat(_descriptor_10.toValue(value_0.algo).concat(_descriptor_11.toValue(value_0.txParamType).concat(_descriptor_21.toValue(value_0.txParams).concat(_descriptor_0.toValue(value_0.executionDest).concat(_descriptor_22.toValue(value_0.signatureDest).concat(_descriptor_23.toValue(value_0.params).concat(_descriptor_24.toValue(value_0.outputDeserializationSchema).concat(_descriptor_24.toValue(value_0.respondSerializationSchema)))))))))));
216
+ }
217
+ }
218
+
219
+ const _descriptor_25 = new _SignBidirectionalEventV1_0();
220
+
221
+ const _descriptor_26 = new __compactRuntime.CompactTypeBytes(0);
222
+
223
+ const _descriptor_27 = new __compactRuntime.CompactTypeVector(1, _descriptor_0);
224
+
225
+ class _EvmCalldata_1 {
226
+ alignment() {
227
+ return _descriptor_14.alignment().concat(_descriptor_15.alignment().concat(_descriptor_27.alignment()));
228
+ }
229
+ fromValue(value_0) {
230
+ return {
231
+ selector: _descriptor_14.fromValue(value_0),
232
+ noWords: _descriptor_15.fromValue(value_0),
233
+ words: _descriptor_27.fromValue(value_0)
234
+ }
235
+ }
236
+ toValue(value_0) {
237
+ return _descriptor_14.toValue(value_0.selector).concat(_descriptor_15.toValue(value_0.noWords).concat(_descriptor_27.toValue(value_0.words)));
238
+ }
239
+ }
240
+
241
+ const _descriptor_28 = new _EvmCalldata_1();
242
+
243
+ class _Maybe_1 {
244
+ alignment() {
245
+ return _descriptor_8.alignment().concat(_descriptor_28.alignment());
246
+ }
247
+ fromValue(value_0) {
248
+ return {
249
+ is_some: _descriptor_8.fromValue(value_0),
250
+ value: _descriptor_28.fromValue(value_0)
251
+ }
252
+ }
253
+ toValue(value_0) {
254
+ return _descriptor_8.toValue(value_0.is_some).concat(_descriptor_28.toValue(value_0.value));
255
+ }
256
+ }
257
+
258
+ const _descriptor_29 = new _Maybe_1();
259
+
260
+ const _descriptor_30 = new __compactRuntime.CompactTypeVector(0, _descriptor_0);
261
+
262
+ class _EvmAccessListEntry_1 {
263
+ alignment() {
264
+ return _descriptor_13.alignment().concat(_descriptor_4.alignment().concat(_descriptor_30.alignment()));
265
+ }
266
+ fromValue(value_0) {
267
+ return {
268
+ address: _descriptor_13.fromValue(value_0),
269
+ storageKeyCount: _descriptor_4.fromValue(value_0),
270
+ storageKeys: _descriptor_30.fromValue(value_0)
271
+ }
272
+ }
273
+ toValue(value_0) {
274
+ return _descriptor_13.toValue(value_0.address).concat(_descriptor_4.toValue(value_0.storageKeyCount).concat(_descriptor_30.toValue(value_0.storageKeys)));
275
+ }
276
+ }
277
+
278
+ const _descriptor_31 = new _EvmAccessListEntry_1();
279
+
280
+ const _descriptor_32 = new __compactRuntime.CompactTypeVector(0, _descriptor_31);
281
+
282
+ class _EvmType2TxParams_1 {
283
+ alignment() {
284
+ return _descriptor_1.alignment().concat(_descriptor_1.alignment().concat(_descriptor_12.alignment().concat(_descriptor_12.alignment().concat(_descriptor_1.alignment().concat(_descriptor_13.alignment().concat(_descriptor_12.alignment().concat(_descriptor_29.alignment().concat(_descriptor_4.alignment().concat(_descriptor_32.alignment())))))))));
285
+ }
286
+ fromValue(value_0) {
287
+ return {
288
+ chainId: _descriptor_1.fromValue(value_0),
289
+ nonce: _descriptor_1.fromValue(value_0),
290
+ maxPriorityFeePerGas: _descriptor_12.fromValue(value_0),
291
+ maxFeePerGas: _descriptor_12.fromValue(value_0),
292
+ gasLimit: _descriptor_1.fromValue(value_0),
293
+ to: _descriptor_13.fromValue(value_0),
294
+ value: _descriptor_12.fromValue(value_0),
295
+ calldata: _descriptor_29.fromValue(value_0),
296
+ accessListEntryCount: _descriptor_4.fromValue(value_0),
297
+ accessList: _descriptor_32.fromValue(value_0)
298
+ }
299
+ }
300
+ toValue(value_0) {
301
+ return _descriptor_1.toValue(value_0.chainId).concat(_descriptor_1.toValue(value_0.nonce).concat(_descriptor_12.toValue(value_0.maxPriorityFeePerGas).concat(_descriptor_12.toValue(value_0.maxFeePerGas).concat(_descriptor_1.toValue(value_0.gasLimit).concat(_descriptor_13.toValue(value_0.to).concat(_descriptor_12.toValue(value_0.value).concat(_descriptor_29.toValue(value_0.calldata).concat(_descriptor_4.toValue(value_0.accessListEntryCount).concat(_descriptor_32.toValue(value_0.accessList))))))))));
88
302
  }
89
303
  }
90
304
 
91
- const _descriptor_14 = new _ContractAddress_0();
305
+ const _descriptor_33 = new _EvmType2TxParams_1();
92
306
 
93
- const _descriptor_15 = new __compactRuntime.CompactTypeVector(4, _descriptor_4);
307
+ class _SignBidirectionalEventV1_1 {
308
+ alignment() {
309
+ return _descriptor_4.alignment().concat(_descriptor_9.alignment().concat(_descriptor_0.alignment().concat(_descriptor_10.alignment().concat(_descriptor_11.alignment().concat(_descriptor_33.alignment().concat(_descriptor_0.alignment().concat(_descriptor_22.alignment().concat(_descriptor_23.alignment().concat(_descriptor_24.alignment().concat(_descriptor_24.alignment()))))))))));
310
+ }
311
+ fromValue(value_0) {
312
+ return {
313
+ keyVersion: _descriptor_4.fromValue(value_0),
314
+ sender: _descriptor_9.fromValue(value_0),
315
+ path: _descriptor_0.fromValue(value_0),
316
+ algo: _descriptor_10.fromValue(value_0),
317
+ txParamType: _descriptor_11.fromValue(value_0),
318
+ txParams: _descriptor_33.fromValue(value_0),
319
+ executionDest: _descriptor_0.fromValue(value_0),
320
+ signatureDest: _descriptor_22.fromValue(value_0),
321
+ params: _descriptor_23.fromValue(value_0),
322
+ outputDeserializationSchema: _descriptor_24.fromValue(value_0),
323
+ respondSerializationSchema: _descriptor_24.fromValue(value_0)
324
+ }
325
+ }
326
+ toValue(value_0) {
327
+ return _descriptor_4.toValue(value_0.keyVersion).concat(_descriptor_9.toValue(value_0.sender).concat(_descriptor_0.toValue(value_0.path).concat(_descriptor_10.toValue(value_0.algo).concat(_descriptor_11.toValue(value_0.txParamType).concat(_descriptor_33.toValue(value_0.txParams).concat(_descriptor_0.toValue(value_0.executionDest).concat(_descriptor_22.toValue(value_0.signatureDest).concat(_descriptor_23.toValue(value_0.params).concat(_descriptor_24.toValue(value_0.outputDeserializationSchema).concat(_descriptor_24.toValue(value_0.respondSerializationSchema)))))))))));
328
+ }
329
+ }
330
+
331
+ const _descriptor_34 = new _SignBidirectionalEventV1_1();
332
+
333
+ const _descriptor_35 = new __compactRuntime.CompactTypeBytes(100);
334
+
335
+ const _descriptor_36 = new __compactRuntime.CompactTypeBytes(2);
336
+
337
+ const _descriptor_37 = new __compactRuntime.CompactTypeBytes(1);
338
+
339
+ const _descriptor_38 = new __compactRuntime.CompactTypeVector(4, _descriptor_4);
94
340
 
95
- const _descriptor_16 = new __compactRuntime.CompactTypeBytes(128);
341
+ const _descriptor_39 = new __compactRuntime.CompactTypeBytes(128);
96
342
 
97
343
  class _SignBidirectionalEventNotification_0 {
98
344
  alignment() {
99
- return _descriptor_4.alignment().concat(_descriptor_16.alignment());
345
+ return _descriptor_4.alignment().concat(_descriptor_39.alignment());
100
346
  }
101
347
  fromValue(value_0) {
102
348
  return {
103
349
  version: _descriptor_4.fromValue(value_0),
104
- payload: _descriptor_16.fromValue(value_0)
350
+ payload: _descriptor_39.fromValue(value_0)
105
351
  }
106
352
  }
107
353
  toValue(value_0) {
108
- return _descriptor_4.toValue(value_0.version).concat(_descriptor_16.toValue(value_0.payload));
354
+ return _descriptor_4.toValue(value_0.version).concat(_descriptor_39.toValue(value_0.payload));
109
355
  }
110
356
  }
111
357
 
112
- const _descriptor_17 = new _SignBidirectionalEventNotification_0();
358
+ const _descriptor_40 = new _SignBidirectionalEventNotification_0();
113
359
 
114
- const _descriptor_18 = __compactRuntime.CompactTypeSecp256k1Base;
360
+ const _descriptor_41 = __compactRuntime.CompactTypeSecp256k1Scalar;
115
361
 
116
- const _descriptor_19 = __compactRuntime.CompactTypeField;
362
+ class _RequestIdPreimageV1_0 {
363
+ alignment() {
364
+ return _descriptor_4.alignment().concat(_descriptor_9.alignment().concat(_descriptor_0.alignment().concat(_descriptor_10.alignment().concat(_descriptor_11.alignment().concat(_descriptor_0.alignment().concat(_descriptor_0.alignment()))))));
365
+ }
366
+ fromValue(value_0) {
367
+ return {
368
+ keyVersion: _descriptor_4.fromValue(value_0),
369
+ sender: _descriptor_9.fromValue(value_0),
370
+ path: _descriptor_0.fromValue(value_0),
371
+ algo: _descriptor_10.fromValue(value_0),
372
+ txParamType: _descriptor_11.fromValue(value_0),
373
+ txParamsDigest: _descriptor_0.fromValue(value_0),
374
+ executionDest: _descriptor_0.fromValue(value_0)
375
+ }
376
+ }
377
+ toValue(value_0) {
378
+ return _descriptor_4.toValue(value_0.keyVersion).concat(_descriptor_9.toValue(value_0.sender).concat(_descriptor_0.toValue(value_0.path).concat(_descriptor_10.toValue(value_0.algo).concat(_descriptor_11.toValue(value_0.txParamType).concat(_descriptor_0.toValue(value_0.txParamsDigest).concat(_descriptor_0.toValue(value_0.executionDest)))))));
379
+ }
380
+ }
381
+
382
+ const _descriptor_42 = new _RequestIdPreimageV1_0();
383
+
384
+ const _descriptor_43 = __compactRuntime.CompactTypeSecp256k1Base;
385
+
386
+ const _descriptor_44 = __compactRuntime.CompactTypeField;
117
387
 
118
388
  class _tuple_0 {
119
389
  alignment() {
120
- return _descriptor_0.alignment().concat(_descriptor_1.alignment().concat(_descriptor_1.alignment().concat(_descriptor_2.alignment())));
390
+ return _descriptor_0.alignment().concat(_descriptor_1.alignment().concat(_descriptor_2.alignment().concat(_descriptor_1.alignment().concat(_descriptor_0.alignment()))));
121
391
  }
122
392
  fromValue(value_0) {
123
393
  return [
124
394
  _descriptor_0.fromValue(value_0),
125
395
  _descriptor_1.fromValue(value_0),
396
+ _descriptor_2.fromValue(value_0),
126
397
  _descriptor_1.fromValue(value_0),
127
- _descriptor_2.fromValue(value_0)
398
+ _descriptor_0.fromValue(value_0)
128
399
  ]
129
400
  }
130
401
  toValue(value_0) {
131
- return _descriptor_0.toValue(value_0[0]).concat(_descriptor_1.toValue(value_0[1]).concat(_descriptor_1.toValue(value_0[2]).concat(_descriptor_2.toValue(value_0[3]))));
402
+ return _descriptor_0.toValue(value_0[0]).concat(_descriptor_1.toValue(value_0[1]).concat(_descriptor_2.toValue(value_0[2]).concat(_descriptor_1.toValue(value_0[3]).concat(_descriptor_0.toValue(value_0[4])))));
132
403
  }
133
404
  }
134
405
 
135
- const _descriptor_20 = new _tuple_0();
406
+ const _descriptor_45 = new _tuple_0();
136
407
 
137
408
  class _tuple_1 {
138
409
  alignment() {
139
- return _descriptor_0.alignment().concat(_descriptor_1.alignment().concat(_descriptor_1.alignment().concat(_descriptor_0.alignment())));
410
+ return _descriptor_44.alignment().concat(_descriptor_13.alignment().concat(_descriptor_4.alignment().concat(_descriptor_44.alignment())));
411
+ }
412
+ fromValue(value_0) {
413
+ return [
414
+ _descriptor_44.fromValue(value_0),
415
+ _descriptor_13.fromValue(value_0),
416
+ _descriptor_4.fromValue(value_0),
417
+ _descriptor_44.fromValue(value_0)
418
+ ]
419
+ }
420
+ toValue(value_0) {
421
+ return _descriptor_44.toValue(value_0[0]).concat(_descriptor_13.toValue(value_0[1]).concat(_descriptor_4.toValue(value_0[2]).concat(_descriptor_44.toValue(value_0[3]))));
422
+ }
423
+ }
424
+
425
+ const _descriptor_46 = new _tuple_1();
426
+
427
+ class _tuple_2 {
428
+ alignment() {
429
+ return _descriptor_0.alignment().concat(_descriptor_1.alignment().concat(_descriptor_2.alignment().concat(_descriptor_1.alignment().concat(_descriptor_26.alignment()))));
140
430
  }
141
431
  fromValue(value_0) {
142
432
  return [
143
433
  _descriptor_0.fromValue(value_0),
144
434
  _descriptor_1.fromValue(value_0),
435
+ _descriptor_2.fromValue(value_0),
145
436
  _descriptor_1.fromValue(value_0),
437
+ _descriptor_26.fromValue(value_0)
438
+ ]
439
+ }
440
+ toValue(value_0) {
441
+ return _descriptor_0.toValue(value_0[0]).concat(_descriptor_1.toValue(value_0[1]).concat(_descriptor_2.toValue(value_0[2]).concat(_descriptor_1.toValue(value_0[3]).concat(_descriptor_26.toValue(value_0[4])))));
442
+ }
443
+ }
444
+
445
+ const _descriptor_47 = new _tuple_2();
446
+
447
+ class _tuple_3 {
448
+ alignment() {
449
+ return _descriptor_1.alignment().concat(_descriptor_1.alignment().concat(_descriptor_12.alignment().concat(_descriptor_12.alignment().concat(_descriptor_1.alignment().concat(_descriptor_13.alignment().concat(_descriptor_12.alignment().concat(_descriptor_8.alignment().concat(_descriptor_14.alignment().concat(_descriptor_15.alignment().concat(_descriptor_4.alignment()))))))))));
450
+ }
451
+ fromValue(value_0) {
452
+ return [
453
+ _descriptor_1.fromValue(value_0),
454
+ _descriptor_1.fromValue(value_0),
455
+ _descriptor_12.fromValue(value_0),
456
+ _descriptor_12.fromValue(value_0),
457
+ _descriptor_1.fromValue(value_0),
458
+ _descriptor_13.fromValue(value_0),
459
+ _descriptor_12.fromValue(value_0),
460
+ _descriptor_8.fromValue(value_0),
461
+ _descriptor_14.fromValue(value_0),
462
+ _descriptor_15.fromValue(value_0),
463
+ _descriptor_4.fromValue(value_0)
464
+ ]
465
+ }
466
+ toValue(value_0) {
467
+ return _descriptor_1.toValue(value_0[0]).concat(_descriptor_1.toValue(value_0[1]).concat(_descriptor_12.toValue(value_0[2]).concat(_descriptor_12.toValue(value_0[3]).concat(_descriptor_1.toValue(value_0[4]).concat(_descriptor_13.toValue(value_0[5]).concat(_descriptor_12.toValue(value_0[6]).concat(_descriptor_8.toValue(value_0[7]).concat(_descriptor_14.toValue(value_0[8]).concat(_descriptor_15.toValue(value_0[9]).concat(_descriptor_4.toValue(value_0[10])))))))))));
468
+ }
469
+ }
470
+
471
+ const _descriptor_48 = new _tuple_3();
472
+
473
+ class _tuple_4 {
474
+ alignment() {
475
+ return _descriptor_44.alignment().concat(_descriptor_0.alignment());
476
+ }
477
+ fromValue(value_0) {
478
+ return [
479
+ _descriptor_44.fromValue(value_0),
146
480
  _descriptor_0.fromValue(value_0)
147
481
  ]
148
482
  }
149
483
  toValue(value_0) {
150
- return _descriptor_0.toValue(value_0[0]).concat(_descriptor_1.toValue(value_0[1]).concat(_descriptor_1.toValue(value_0[2]).concat(_descriptor_0.toValue(value_0[3]))));
484
+ return _descriptor_44.toValue(value_0[0]).concat(_descriptor_0.toValue(value_0[1]));
151
485
  }
152
486
  }
153
487
 
154
- const _descriptor_21 = new _tuple_1();
488
+ const _descriptor_49 = new _tuple_4();
155
489
 
156
- class _tuple_2 {
490
+ class _tuple_5 {
157
491
  alignment() {
158
- return _descriptor_0.alignment().concat(_descriptor_1.alignment().concat(_descriptor_1.alignment().concat(_descriptor_10.alignment())));
492
+ return _descriptor_0.alignment().concat(_descriptor_1.alignment().concat(_descriptor_2.alignment().concat(_descriptor_1.alignment().concat(_descriptor_36.alignment()))));
159
493
  }
160
494
  fromValue(value_0) {
161
495
  return [
162
496
  _descriptor_0.fromValue(value_0),
163
497
  _descriptor_1.fromValue(value_0),
498
+ _descriptor_2.fromValue(value_0),
164
499
  _descriptor_1.fromValue(value_0),
165
- _descriptor_10.fromValue(value_0)
500
+ _descriptor_36.fromValue(value_0)
166
501
  ]
167
502
  }
168
503
  toValue(value_0) {
169
- return _descriptor_0.toValue(value_0[0]).concat(_descriptor_1.toValue(value_0[1]).concat(_descriptor_1.toValue(value_0[2]).concat(_descriptor_10.toValue(value_0[3]))));
504
+ return _descriptor_0.toValue(value_0[0]).concat(_descriptor_1.toValue(value_0[1]).concat(_descriptor_2.toValue(value_0[2]).concat(_descriptor_1.toValue(value_0[3]).concat(_descriptor_36.toValue(value_0[4])))));
170
505
  }
171
506
  }
172
507
 
173
- const _descriptor_22 = new _tuple_2();
508
+ const _descriptor_50 = new _tuple_5();
174
509
 
175
- class _tuple_3 {
510
+ class _tuple_6 {
176
511
  alignment() {
177
- return _descriptor_0.alignment().concat(_descriptor_1.alignment().concat(_descriptor_1.alignment().concat(_descriptor_9.alignment())));
512
+ return _descriptor_0.alignment().concat(_descriptor_1.alignment().concat(_descriptor_2.alignment().concat(_descriptor_1.alignment().concat(_descriptor_35.alignment()))));
178
513
  }
179
514
  fromValue(value_0) {
180
515
  return [
181
516
  _descriptor_0.fromValue(value_0),
182
517
  _descriptor_1.fromValue(value_0),
518
+ _descriptor_2.fromValue(value_0),
183
519
  _descriptor_1.fromValue(value_0),
184
- _descriptor_9.fromValue(value_0)
520
+ _descriptor_35.fromValue(value_0)
185
521
  ]
186
522
  }
187
523
  toValue(value_0) {
188
- return _descriptor_0.toValue(value_0[0]).concat(_descriptor_1.toValue(value_0[1]).concat(_descriptor_1.toValue(value_0[2]).concat(_descriptor_9.toValue(value_0[3]))));
524
+ return _descriptor_0.toValue(value_0[0]).concat(_descriptor_1.toValue(value_0[1]).concat(_descriptor_2.toValue(value_0[2]).concat(_descriptor_1.toValue(value_0[3]).concat(_descriptor_35.toValue(value_0[4])))));
189
525
  }
190
526
  }
191
527
 
192
- const _descriptor_23 = new _tuple_3();
528
+ const _descriptor_51 = new _tuple_6();
193
529
 
194
530
  class _Secp256k1EcdsaSignature_0 {
195
531
  alignment() {
196
- return _descriptor_13.alignment().concat(_descriptor_13.alignment());
532
+ return _descriptor_41.alignment().concat(_descriptor_41.alignment());
197
533
  }
198
534
  fromValue(value_0) {
199
535
  return {
200
- r: _descriptor_13.fromValue(value_0),
201
- s: _descriptor_13.fromValue(value_0)
536
+ r: _descriptor_41.fromValue(value_0),
537
+ s: _descriptor_41.fromValue(value_0)
202
538
  }
203
539
  }
204
540
  toValue(value_0) {
205
- return _descriptor_13.toValue(value_0.r).concat(_descriptor_13.toValue(value_0.s));
541
+ return _descriptor_41.toValue(value_0.r).concat(_descriptor_41.toValue(value_0.s));
206
542
  }
207
543
  }
208
544
 
209
- const _descriptor_24 = new _Secp256k1EcdsaSignature_0();
545
+ const _descriptor_52 = new _Secp256k1EcdsaSignature_0();
546
+
547
+ class _tuple_7 {
548
+ alignment() {
549
+ return _descriptor_0.alignment().concat(_descriptor_1.alignment().concat(_descriptor_2.alignment().concat(_descriptor_1.alignment().concat(_descriptor_37.alignment()))));
550
+ }
551
+ fromValue(value_0) {
552
+ return [
553
+ _descriptor_0.fromValue(value_0),
554
+ _descriptor_1.fromValue(value_0),
555
+ _descriptor_2.fromValue(value_0),
556
+ _descriptor_1.fromValue(value_0),
557
+ _descriptor_37.fromValue(value_0)
558
+ ]
559
+ }
560
+ toValue(value_0) {
561
+ return _descriptor_0.toValue(value_0[0]).concat(_descriptor_1.toValue(value_0[1]).concat(_descriptor_2.toValue(value_0[2]).concat(_descriptor_1.toValue(value_0[3]).concat(_descriptor_37.toValue(value_0[4])))));
562
+ }
563
+ }
564
+
565
+ const _descriptor_53 = new _tuple_7();
210
566
 
211
567
  class _Either_0 {
212
568
  alignment() {
@@ -224,9 +580,9 @@ class _Either_0 {
224
580
  }
225
581
  }
226
582
 
227
- const _descriptor_25 = new _Either_0();
583
+ const _descriptor_54 = new _Either_0();
228
584
 
229
- const _descriptor_26 = new __compactRuntime.CompactTypeUnsignedInteger(4294967295n, 4);
585
+ const _descriptor_55 = new __compactRuntime.CompactTypeUnsignedInteger(4294967295n, 4);
230
586
 
231
587
  export class Contract {
232
588
  witnesses;
@@ -240,6 +596,9 @@ export class Contract {
240
596
  }
241
597
  this.witnesses = witnesses_0;
242
598
  this.circuits = {
599
+ async calculateRequestIdV1(context, ...args_1) {
600
+ return { result: pureCircuits.calculateRequestIdV1(...args_1), context };
601
+ },
243
602
  async constructSignBidirectionalEventNotificationV1(context, ...args_1) {
244
603
  return { result: pureCircuits.constructSignBidirectionalEventNotificationV1(...args_1), context };
245
604
  },
@@ -261,6 +620,9 @@ export class Contract {
261
620
  async abiWordToBool(context, ...args_1) {
262
621
  return { result: pureCircuits.abiWordToBool(...args_1), context };
263
622
  },
623
+ async calculateSignetAttestationDigest0(context, ...args_1) {
624
+ return { result: pureCircuits.calculateSignetAttestationDigest0(...args_1), context };
625
+ },
264
626
  async calculateSignetAttestationDigest1(context, ...args_1) {
265
627
  return { result: pureCircuits.calculateSignetAttestationDigest1(...args_1), context };
266
628
  },
@@ -273,6 +635,21 @@ export class Contract {
273
635
  async calculateSignetAttestationDigest100(context, ...args_1) {
274
636
  return { result: pureCircuits.calculateSignetAttestationDigest100(...args_1), context };
275
637
  },
638
+ async calculateEvmType2TxParamsDigestV1_1_0_0(context, ...args_1) {
639
+ return { result: pureCircuits.calculateEvmType2TxParamsDigestV1_1_0_0(...args_1), context };
640
+ },
641
+ async calculateEvmType2TxParamsDigestV1_2_1_2(context, ...args_1) {
642
+ return { result: pureCircuits.calculateEvmType2TxParamsDigestV1_2_1_2(...args_1), context };
643
+ },
644
+ async calculateEvmType2RequestIdV1_1_0_0_34_34(context, ...args_1) {
645
+ return { result: pureCircuits.calculateEvmType2RequestIdV1_1_0_0_34_34(...args_1), context };
646
+ },
647
+ async calculateEvmType2RequestIdV1_2_1_2_34_34(context, ...args_1) {
648
+ return { result: pureCircuits.calculateEvmType2RequestIdV1_2_1_2_34_34(...args_1), context };
649
+ },
650
+ async verifyRespondBidirectionalEvent0(context, ...args_1) {
651
+ return { result: pureCircuits.verifyRespondBidirectionalEvent0(...args_1), context };
652
+ },
276
653
  async verifyRespondBidirectionalEvent32(context, ...args_1) {
277
654
  return { result: pureCircuits.verifyRespondBidirectionalEvent32(...args_1), context };
278
655
  }
@@ -373,19 +750,39 @@ export class Contract {
373
750
  r_0;
374
751
  }
375
752
  _transientHash_0(value_0) {
376
- const result_0 = __compactRuntime.transientHash(_descriptor_22, value_0);
753
+ const result_0 = __compactRuntime.transientHash(_descriptor_53, value_0);
377
754
  return result_0;
378
755
  }
379
756
  _transientHash_1(value_0) {
380
- const result_0 = __compactRuntime.transientHash(_descriptor_23, value_0);
757
+ const result_0 = __compactRuntime.transientHash(_descriptor_50, value_0);
381
758
  return result_0;
382
759
  }
383
760
  _transientHash_2(value_0) {
384
- const result_0 = __compactRuntime.transientHash(_descriptor_20, value_0);
761
+ const result_0 = __compactRuntime.transientHash(_descriptor_51, value_0);
385
762
  return result_0;
386
763
  }
387
764
  _transientHash_3(value_0) {
388
- const result_0 = __compactRuntime.transientHash(_descriptor_21, value_0);
765
+ const result_0 = __compactRuntime.transientHash(_descriptor_48, value_0);
766
+ return result_0;
767
+ }
768
+ _transientHash_4(value_0) {
769
+ const result_0 = __compactRuntime.transientHash(_descriptor_49, value_0);
770
+ return result_0;
771
+ }
772
+ _transientHash_5(value_0) {
773
+ const result_0 = __compactRuntime.transientHash(_descriptor_46, value_0);
774
+ return result_0;
775
+ }
776
+ _transientHash_6(value_0) {
777
+ const result_0 = __compactRuntime.transientHash(_descriptor_47, value_0);
778
+ return result_0;
779
+ }
780
+ _transientHash_7(value_0) {
781
+ const result_0 = __compactRuntime.transientHash(_descriptor_45, value_0);
782
+ return result_0;
783
+ }
784
+ _transientHash_8(value_0) {
785
+ const result_0 = __compactRuntime.transientHash(_descriptor_42, value_0);
389
786
  return result_0;
390
787
  }
391
788
  _upgradeFromTransient_0(x_0) {
@@ -416,6 +813,9 @@ export class Contract {
416
813
  const result_0 = __compactRuntime.secp256k1MulGenerator(b_0);
417
814
  return result_0;
418
815
  }
816
+ _calculateRequestIdV1_0(preimage_0) {
817
+ return this._upgradeFromTransient_0(this._transientHash_8(preimage_0));
818
+ }
419
819
  _constructSignBidirectionalEventNotificationV1_0(callerAddress_0,
420
820
  requestsPathDepth_0,
421
821
  requestsPath_0)
@@ -431,69 +831,360 @@ export class Contract {
431
831
  ...Array.from(new Uint8Array(91), BigInt)],
432
832
  Number) };
433
833
  }
434
- _calculateSignetAttestationDigest_0(requestId_0,
435
- blockHeight_0,
436
- serializedOutput_0)
834
+ _calculateSignetAttestationDigestV1_0(requestId_0,
835
+ blockHeight_0,
836
+ outputKind_0,
837
+ serializedOutput_0)
437
838
  {
438
839
  return this._upgradeFromTransient_0(this._transientHash_0([requestId_0,
439
840
  blockHeight_0,
841
+ outputKind_0,
440
842
  1n,
441
843
  serializedOutput_0]));
442
844
  }
443
- _calculateSignetAttestationDigest_1(requestId_0,
444
- blockHeight_0,
445
- serializedOutput_0)
845
+ _calculateSignetAttestationDigestV1_1(requestId_0,
846
+ blockHeight_0,
847
+ outputKind_0,
848
+ serializedOutput_0)
446
849
  {
447
850
  return this._upgradeFromTransient_0(this._transientHash_1([requestId_0,
448
851
  blockHeight_0,
852
+ outputKind_0,
449
853
  2n,
450
854
  serializedOutput_0]));
451
855
  }
452
- _calculateSignetAttestationDigest_2(requestId_0,
453
- blockHeight_0,
454
- serializedOutput_0)
856
+ _calculateSignetAttestationDigestV1_2(requestId_0,
857
+ blockHeight_0,
858
+ outputKind_0,
859
+ serializedOutput_0)
455
860
  {
456
861
  return this._upgradeFromTransient_0(this._transientHash_2([requestId_0,
457
862
  blockHeight_0,
863
+ outputKind_0,
458
864
  100n,
459
865
  serializedOutput_0]));
460
866
  }
461
- _calculateSignetAttestationDigest_3(requestId_0,
462
- blockHeight_0,
463
- serializedOutput_0)
867
+ _calculateSignetAttestationDigestV1_3(requestId_0,
868
+ blockHeight_0,
869
+ outputKind_0,
870
+ serializedOutput_0)
464
871
  {
465
- return this._upgradeFromTransient_0(this._transientHash_3([requestId_0,
872
+ return this._upgradeFromTransient_0(this._transientHash_6([requestId_0,
466
873
  blockHeight_0,
874
+ outputKind_0,
875
+ 0n,
876
+ serializedOutput_0]));
877
+ }
878
+ _calculateSignetAttestationDigestV1_4(requestId_0,
879
+ blockHeight_0,
880
+ outputKind_0,
881
+ serializedOutput_0)
882
+ {
883
+ return this._upgradeFromTransient_0(this._transientHash_7([requestId_0,
884
+ blockHeight_0,
885
+ outputKind_0,
467
886
  32n,
468
887
  serializedOutput_0]));
469
888
  }
470
- _verifyRespondBidirectionalEvent_0(requestId_0,
471
- blockHeight_0,
472
- serializedOutput_0,
473
- respondBidirectionalEvent_0,
474
- mpcResponseKey_0)
889
+ _verifyRespondBidirectionalEventV1_0(serializedOutput_0,
890
+ respondBidirectionalEvent_0,
891
+ mpcResponseKey_0)
475
892
  {
476
- const digest_0 = this._calculateSignetAttestationDigest_3(requestId_0,
477
- blockHeight_0,
478
- serializedOutput_0);
893
+ const digest_0 = this._calculateSignetAttestationDigestV1_3(respondBidirectionalEvent_0.requestId,
894
+ respondBidirectionalEvent_0.blockHeight,
895
+ respondBidirectionalEvent_0.outputKind,
896
+ serializedOutput_0);
897
+ return this._secp256k1EcdsaVerify_0(digest_0,
898
+ { r:
899
+ __compactRuntime.convertBytesToField(115792089237316195423570985008687907852837564279074904382605163141518161494336n,
900
+ 32,
901
+ respondBidirectionalEvent_0.signature.bigR.x,
902
+ 'Secp256k1Scalar',
903
+ 'Signet.compact line 416 char 12'),
904
+ s:
905
+ __compactRuntime.convertBytesToField(115792089237316195423570985008687907852837564279074904382605163141518161494336n,
906
+ 32,
907
+ respondBidirectionalEvent_0.signature.s,
908
+ 'Secp256k1Scalar',
909
+ 'Signet.compact line 417 char 12') },
910
+ mpcResponseKey_0);
911
+ }
912
+ _verifyRespondBidirectionalEventV1_1(serializedOutput_0,
913
+ respondBidirectionalEvent_0,
914
+ mpcResponseKey_0)
915
+ {
916
+ const digest_0 = this._calculateSignetAttestationDigestV1_4(respondBidirectionalEvent_0.requestId,
917
+ respondBidirectionalEvent_0.blockHeight,
918
+ respondBidirectionalEvent_0.outputKind,
919
+ serializedOutput_0);
479
920
  return this._secp256k1EcdsaVerify_0(digest_0,
480
921
  { r:
481
922
  __compactRuntime.convertBytesToField(115792089237316195423570985008687907852837564279074904382605163141518161494336n,
482
923
  32,
483
924
  respondBidirectionalEvent_0.signature.bigR.x,
484
925
  'Secp256k1Scalar',
485
- 'Signet.compact line 346 char 12'),
926
+ 'Signet.compact line 416 char 12'),
486
927
  s:
487
928
  __compactRuntime.convertBytesToField(115792089237316195423570985008687907852837564279074904382605163141518161494336n,
488
929
  32,
489
930
  respondBidirectionalEvent_0.signature.s,
490
931
  'Secp256k1Scalar',
491
- 'Signet.compact line 347 char 12') },
932
+ 'Signet.compact line 417 char 12') },
492
933
  mpcResponseKey_0);
493
934
  }
494
935
  _ethereumCaip2Id_0() {
495
936
  return new Uint8Array([101, 105, 112, 49, 53, 53, 58, 49, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
496
937
  }
938
+ _calculateEvmType2TxParamsDigestV1_0(txParams_0) {
939
+ const calldata_0 = txParams_0.calldata;
940
+ const noWords_0 = calldata_0.is_some ? calldata_0.value.noWords : 0n;
941
+ const selector_0 = calldata_0.is_some ?
942
+ calldata_0.value.selector :
943
+ new Uint8Array(4);
944
+ __compactRuntime.assert(noWords_0 <= 1n, 'calldata noWords exceeds capacity');
945
+ let t_0;
946
+ __compactRuntime.assert((t_0 = txParams_0.accessListEntryCount, t_0 <= 0n),
947
+ 'accessListEntryCount exceeds capacity');
948
+ const keyCountsFit_0 = this._folder_0(((acc_0, entry_0) =>
949
+ {
950
+ let t_1, t_2;
951
+ return [((t1) => {
952
+ if (t1 > 255n) {
953
+ throw new __compactRuntime.CompactError('Signet.compact line 519 char 10: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
954
+ }
955
+ return t1;
956
+ })(acc_0[0] + 1n),
957
+ acc_0[1]
958
+ &&
959
+ ((t_2 = acc_0[0],
960
+ t_2
961
+ >=
962
+ txParams_0.accessListEntryCount)
963
+ ||
964
+ (t_1 = entry_0.storageKeyCount,
965
+ t_1 <= 0n))];
966
+ }),
967
+ [0n, true],
968
+ txParams_0.accessList);
969
+ __compactRuntime.assert(keyCountsFit_0[1],
970
+ "a used entry's storageKeyCount exceeds capacity");
971
+ const head_0 = this._transientHash_3([txParams_0.chainId,
972
+ txParams_0.nonce,
973
+ txParams_0.maxPriorityFeePerGas,
974
+ txParams_0.maxFeePerGas,
975
+ txParams_0.gasLimit,
976
+ txParams_0.to,
977
+ txParams_0.value,
978
+ calldata_0.is_some,
979
+ selector_0,
980
+ noWords_0,
981
+ txParams_0.accessListEntryCount]);
982
+ const wordsScan_0 = this._folder_1(((acc_1, word_0) =>
983
+ {
984
+ let t_3;
985
+ return [((t1) => {
986
+ if (t1 > 65535n) {
987
+ throw new __compactRuntime.CompactError('Signet.compact line 545 char 10: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 65535');
988
+ }
989
+ return t1;
990
+ })(acc_1[0] + 1n),
991
+ (t_3 = acc_1[0],
992
+ t_3 < noWords_0)
993
+ ?
994
+ this._transientHash_4([acc_1[1],
995
+ word_0])
996
+ :
997
+ acc_1[1]];
998
+ }),
999
+ [0n, head_0],
1000
+ calldata_0.value.words);
1001
+ const listScan_0 = this._folder_3(((acc_2, entry_1) =>
1002
+ {
1003
+ let t_4;
1004
+ return [((t1) => {
1005
+ if (t1 > 255n) {
1006
+ throw new __compactRuntime.CompactError('Signet.compact line 556 char 11: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
1007
+ }
1008
+ return t1;
1009
+ })(acc_2[0] + 1n),
1010
+ (t_4 = acc_2[0],
1011
+ t_4
1012
+ <
1013
+ txParams_0.accessListEntryCount)
1014
+ ?
1015
+ this._transientHash_5([acc_2[1],
1016
+ entry_1.address,
1017
+ entry_1.storageKeyCount,
1018
+ this._folder_2(((keyAcc_0,
1019
+ key_0) =>
1020
+ {
1021
+ let t_5;
1022
+ return [((t1) => {
1023
+ if (t1 > 255n) {
1024
+ throw new __compactRuntime.CompactError('Signet.compact line 564 char 22: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
1025
+ }
1026
+ return t1;
1027
+ })(keyAcc_0[0]
1028
+ +
1029
+ 1n),
1030
+ (t_5 = keyAcc_0[0],
1031
+ t_5
1032
+ <
1033
+ entry_1.storageKeyCount)
1034
+ ?
1035
+ this._transientHash_4([keyAcc_0[1],
1036
+ key_0])
1037
+ :
1038
+ keyAcc_0[1]];
1039
+ }),
1040
+ [0n,
1041
+ 0n],
1042
+ entry_1.storageKeys)[1]])
1043
+ :
1044
+ acc_2[1]];
1045
+ }),
1046
+ [0n, wordsScan_0[1]],
1047
+ txParams_0.accessList);
1048
+ return this._upgradeFromTransient_0(listScan_0[1]);
1049
+ }
1050
+ _calculateEvmType2TxParamsDigestV1_1(txParams_0) {
1051
+ const calldata_0 = txParams_0.calldata;
1052
+ const noWords_0 = calldata_0.is_some ? calldata_0.value.noWords : 0n;
1053
+ const selector_0 = calldata_0.is_some ?
1054
+ calldata_0.value.selector :
1055
+ new Uint8Array(4);
1056
+ __compactRuntime.assert(noWords_0 <= 2n, 'calldata noWords exceeds capacity');
1057
+ let t_0;
1058
+ __compactRuntime.assert((t_0 = txParams_0.accessListEntryCount, t_0 <= 1n),
1059
+ 'accessListEntryCount exceeds capacity');
1060
+ const keyCountsFit_0 = this._folder_4(((acc_0, entry_0) =>
1061
+ {
1062
+ let t_1, t_2;
1063
+ return [((t1) => {
1064
+ if (t1 > 255n) {
1065
+ throw new __compactRuntime.CompactError('Signet.compact line 519 char 10: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
1066
+ }
1067
+ return t1;
1068
+ })(acc_0[0] + 1n),
1069
+ acc_0[1]
1070
+ &&
1071
+ ((t_2 = acc_0[0],
1072
+ t_2
1073
+ >=
1074
+ txParams_0.accessListEntryCount)
1075
+ ||
1076
+ (t_1 = entry_0.storageKeyCount,
1077
+ t_1 <= 2n))];
1078
+ }),
1079
+ [0n, true],
1080
+ txParams_0.accessList);
1081
+ __compactRuntime.assert(keyCountsFit_0[1],
1082
+ "a used entry's storageKeyCount exceeds capacity");
1083
+ const head_0 = this._transientHash_3([txParams_0.chainId,
1084
+ txParams_0.nonce,
1085
+ txParams_0.maxPriorityFeePerGas,
1086
+ txParams_0.maxFeePerGas,
1087
+ txParams_0.gasLimit,
1088
+ txParams_0.to,
1089
+ txParams_0.value,
1090
+ calldata_0.is_some,
1091
+ selector_0,
1092
+ noWords_0,
1093
+ txParams_0.accessListEntryCount]);
1094
+ const wordsScan_0 = this._folder_5(((acc_1, word_0) =>
1095
+ {
1096
+ let t_3;
1097
+ return [((t1) => {
1098
+ if (t1 > 65535n) {
1099
+ throw new __compactRuntime.CompactError('Signet.compact line 545 char 10: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 65535');
1100
+ }
1101
+ return t1;
1102
+ })(acc_1[0] + 1n),
1103
+ (t_3 = acc_1[0],
1104
+ t_3 < noWords_0)
1105
+ ?
1106
+ this._transientHash_4([acc_1[1],
1107
+ word_0])
1108
+ :
1109
+ acc_1[1]];
1110
+ }),
1111
+ [0n, head_0],
1112
+ calldata_0.value.words);
1113
+ const listScan_0 = this._folder_7(((acc_2, entry_1) =>
1114
+ {
1115
+ let t_4;
1116
+ return [((t1) => {
1117
+ if (t1 > 255n) {
1118
+ throw new __compactRuntime.CompactError('Signet.compact line 556 char 11: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
1119
+ }
1120
+ return t1;
1121
+ })(acc_2[0] + 1n),
1122
+ (t_4 = acc_2[0],
1123
+ t_4
1124
+ <
1125
+ txParams_0.accessListEntryCount)
1126
+ ?
1127
+ this._transientHash_5([acc_2[1],
1128
+ entry_1.address,
1129
+ entry_1.storageKeyCount,
1130
+ this._folder_6(((keyAcc_0,
1131
+ key_0) =>
1132
+ {
1133
+ let t_5;
1134
+ return [((t1) => {
1135
+ if (t1 > 255n) {
1136
+ throw new __compactRuntime.CompactError('Signet.compact line 564 char 22: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
1137
+ }
1138
+ return t1;
1139
+ })(keyAcc_0[0]
1140
+ +
1141
+ 1n),
1142
+ (t_5 = keyAcc_0[0],
1143
+ t_5
1144
+ <
1145
+ entry_1.storageKeyCount)
1146
+ ?
1147
+ this._transientHash_4([keyAcc_0[1],
1148
+ key_0])
1149
+ :
1150
+ keyAcc_0[1]];
1151
+ }),
1152
+ [0n,
1153
+ 0n],
1154
+ entry_1.storageKeys)[1]])
1155
+ :
1156
+ acc_2[1]];
1157
+ }),
1158
+ [0n, wordsScan_0[1]],
1159
+ txParams_0.accessList);
1160
+ return this._upgradeFromTransient_0(listScan_0[1]);
1161
+ }
1162
+ _calculateEvmType2RequestIdV1_0(request_0) {
1163
+ __compactRuntime.assert(request_0.txParamType === 0,
1164
+ 'txParamType must tag txParams as evmType2');
1165
+ const preimage_0 = { keyVersion: request_0.keyVersion,
1166
+ sender: request_0.sender,
1167
+ path: request_0.path,
1168
+ algo: request_0.algo,
1169
+ txParamType: request_0.txParamType,
1170
+ txParamsDigest:
1171
+ this._calculateEvmType2TxParamsDigestV1_0(request_0.txParams),
1172
+ executionDest: request_0.executionDest };
1173
+ return this._calculateRequestIdV1_0(preimage_0);
1174
+ }
1175
+ _calculateEvmType2RequestIdV1_1(request_0) {
1176
+ __compactRuntime.assert(request_0.txParamType === 0,
1177
+ 'txParamType must tag txParams as evmType2');
1178
+ const preimage_0 = { keyVersion: request_0.keyVersion,
1179
+ sender: request_0.sender,
1180
+ path: request_0.path,
1181
+ algo: request_0.algo,
1182
+ txParamType: request_0.txParamType,
1183
+ txParamsDigest:
1184
+ this._calculateEvmType2TxParamsDigestV1_1(request_0.txParams),
1185
+ executionDest: request_0.executionDest };
1186
+ return this._calculateRequestIdV1_0(preimage_0);
1187
+ }
497
1188
  _evmAddressAbiWord_0(addr_0) {
498
1189
  return Uint8Array.from([...Array.from(new Uint8Array(12), BigInt),
499
1190
  ...Array.from(addr_0, BigInt)],
@@ -502,7 +1193,7 @@ export class Contract {
502
1193
  _numericAbiWord_0(value_0) {
503
1194
  const le_0 = Array.from(__compactRuntime.convertBigintToBytes(16,
504
1195
  value_0,
505
- 'Signet.compact line 436 char 17'),
1196
+ 'Signet.compact line 614 char 17'),
506
1197
  BigInt);
507
1198
  return Uint8Array.from([...Array.from(new Uint8Array(16), BigInt),
508
1199
  le_0[15],
@@ -584,7 +1275,7 @@ export class Contract {
584
1275
  v_0[31]);
585
1276
  return ((t1) => {
586
1277
  if (t1 > 340282366920938463463374607431768211455n) {
587
- throw new __compactRuntime.CompactError('Signet.compact line 488 char 12: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 340282366920938463463374607431768211455');
1278
+ throw new __compactRuntime.CompactError('Signet.compact line 666 char 12: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 340282366920938463463374607431768211455');
588
1279
  }
589
1280
  return t1;
590
1281
  })(b15_0);
@@ -595,7 +1286,7 @@ export class Contract {
595
1286
  ((e, i) => e.slice(i, i+31))(word_0,
596
1287
  Number(0n)),
597
1288
  'Field',
598
- 'Signet.compact line 494 char 12')
1289
+ 'Signet.compact line 672 char 12')
599
1290
  ===
600
1291
  0n,
601
1292
  'ABI word is not a canonical Boolean');
@@ -604,54 +1295,120 @@ export class Contract {
604
1295
  ((e, i) => e.slice(i, i+1))(word_0,
605
1296
  Number(31n)),
606
1297
  'Field',
607
- 'Signet.compact line 495 char 18');
1298
+ 'Signet.compact line 673 char 18');
608
1299
  __compactRuntime.assert(last_0 === 0n || last_0 === 1n,
609
1300
  'ABI word is not a canonical Boolean');
610
1301
  return last_0 === 1n;
611
1302
  }
1303
+ _calculateSignetAttestationDigest0_0(requestId_0,
1304
+ blockHeight_0,
1305
+ outputKind_0,
1306
+ serializedOutput_0)
1307
+ {
1308
+ return this._calculateSignetAttestationDigestV1_3(requestId_0,
1309
+ blockHeight_0,
1310
+ outputKind_0,
1311
+ serializedOutput_0);
1312
+ }
612
1313
  _calculateSignetAttestationDigest1_0(requestId_0,
613
1314
  blockHeight_0,
1315
+ outputKind_0,
614
1316
  serializedOutput_0)
615
1317
  {
616
- return this._calculateSignetAttestationDigest_0(requestId_0,
617
- blockHeight_0,
618
- serializedOutput_0);
1318
+ return this._calculateSignetAttestationDigestV1_0(requestId_0,
1319
+ blockHeight_0,
1320
+ outputKind_0,
1321
+ serializedOutput_0);
619
1322
  }
620
1323
  _calculateSignetAttestationDigest2_0(requestId_0,
621
1324
  blockHeight_0,
1325
+ outputKind_0,
622
1326
  serializedOutput_0)
623
1327
  {
624
- return this._calculateSignetAttestationDigest_1(requestId_0,
625
- blockHeight_0,
626
- serializedOutput_0);
1328
+ return this._calculateSignetAttestationDigestV1_1(requestId_0,
1329
+ blockHeight_0,
1330
+ outputKind_0,
1331
+ serializedOutput_0);
627
1332
  }
628
1333
  _calculateSignetAttestationDigest32_0(requestId_0,
629
1334
  blockHeight_0,
1335
+ outputKind_0,
630
1336
  serializedOutput_0)
631
1337
  {
632
- return this._calculateSignetAttestationDigest_3(requestId_0,
633
- blockHeight_0,
634
- serializedOutput_0);
1338
+ return this._calculateSignetAttestationDigestV1_4(requestId_0,
1339
+ blockHeight_0,
1340
+ outputKind_0,
1341
+ serializedOutput_0);
635
1342
  }
636
1343
  _calculateSignetAttestationDigest100_0(requestId_0,
637
1344
  blockHeight_0,
1345
+ outputKind_0,
638
1346
  serializedOutput_0)
639
1347
  {
640
- return this._calculateSignetAttestationDigest_2(requestId_0,
641
- blockHeight_0,
642
- serializedOutput_0);
1348
+ return this._calculateSignetAttestationDigestV1_2(requestId_0,
1349
+ blockHeight_0,
1350
+ outputKind_0,
1351
+ serializedOutput_0);
643
1352
  }
644
- _verifyRespondBidirectionalEvent32_0(requestId_0,
645
- blockHeight_0,
646
- serializedOutput_0,
1353
+ _calculateEvmType2TxParamsDigestV1_1_0_0_0(txParams_0) {
1354
+ return this._calculateEvmType2TxParamsDigestV1_0(txParams_0);
1355
+ }
1356
+ _calculateEvmType2TxParamsDigestV1_2_1_2_0(txParams_0) {
1357
+ return this._calculateEvmType2TxParamsDigestV1_1(txParams_0);
1358
+ }
1359
+ _calculateEvmType2RequestIdV1_1_0_0_34_34_0(request_0) {
1360
+ return this._calculateEvmType2RequestIdV1_0(request_0);
1361
+ }
1362
+ _calculateEvmType2RequestIdV1_2_1_2_34_34_0(request_0) {
1363
+ return this._calculateEvmType2RequestIdV1_1(request_0);
1364
+ }
1365
+ _verifyRespondBidirectionalEvent0_0(serializedOutput_0,
1366
+ respondBidirectionalEvent_0,
1367
+ mpcResponseKey_0)
1368
+ {
1369
+ return this._verifyRespondBidirectionalEventV1_0(serializedOutput_0,
1370
+ respondBidirectionalEvent_0,
1371
+ mpcResponseKey_0);
1372
+ }
1373
+ _verifyRespondBidirectionalEvent32_0(serializedOutput_0,
647
1374
  respondBidirectionalEvent_0,
648
1375
  mpcResponseKey_0)
649
1376
  {
650
- return this._verifyRespondBidirectionalEvent_0(requestId_0,
651
- blockHeight_0,
652
- serializedOutput_0,
653
- respondBidirectionalEvent_0,
654
- mpcResponseKey_0);
1377
+ return this._verifyRespondBidirectionalEventV1_1(serializedOutput_0,
1378
+ respondBidirectionalEvent_0,
1379
+ mpcResponseKey_0);
1380
+ }
1381
+ _folder_0(f, x, a0) {
1382
+ for (let i = 0; i < 0; i++) { x = f(x, a0[i]); }
1383
+ return x;
1384
+ }
1385
+ _folder_1(f, x, a0) {
1386
+ for (let i = 0; i < 1; i++) { x = f(x, a0[i]); }
1387
+ return x;
1388
+ }
1389
+ _folder_2(f, x, a0) {
1390
+ for (let i = 0; i < 0; i++) { x = f(x, a0[i]); }
1391
+ return x;
1392
+ }
1393
+ _folder_3(f, x, a0) {
1394
+ for (let i = 0; i < 0; i++) { x = f(x, a0[i]); }
1395
+ return x;
1396
+ }
1397
+ _folder_4(f, x, a0) {
1398
+ for (let i = 0; i < 1; i++) { x = f(x, a0[i]); }
1399
+ return x;
1400
+ }
1401
+ _folder_5(f, x, a0) {
1402
+ for (let i = 0; i < 2; i++) { x = f(x, a0[i]); }
1403
+ return x;
1404
+ }
1405
+ _folder_6(f, x, a0) {
1406
+ for (let i = 0; i < 2; i++) { x = f(x, a0[i]); }
1407
+ return x;
1408
+ }
1409
+ _folder_7(f, x, a0) {
1410
+ for (let i = 0; i < 1; i++) { x = f(x, a0[i]); }
1411
+ return x;
655
1412
  }
656
1413
  }
657
1414
  export function ledger(stateOrChargedState) {
@@ -675,6 +1432,20 @@ const _emptyContext = {
675
1432
  };
676
1433
  const _dummyContract = new Contract({ });
677
1434
  export const pureCircuits = {
1435
+ calculateRequestIdV1: (...args_0) => {
1436
+ if (args_0.length !== 1) {
1437
+ throw new __compactRuntime.CompactError(`calculateRequestIdV1: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
1438
+ }
1439
+ const preimage_0 = args_0[0];
1440
+ if (!(typeof(preimage_0) === 'object' && typeof(preimage_0.keyVersion) === 'bigint' && preimage_0.keyVersion >= 0n && preimage_0.keyVersion <= 255n && typeof(preimage_0.sender) === 'object' && preimage_0.sender.bytes.buffer instanceof ArrayBuffer && preimage_0.sender.bytes.BYTES_PER_ELEMENT === 1 && preimage_0.sender.bytes.length === 32 && preimage_0.path.buffer instanceof ArrayBuffer && preimage_0.path.BYTES_PER_ELEMENT === 1 && preimage_0.path.length === 32 && typeof(preimage_0.algo) === 'number' && preimage_0.algo >= 0 && preimage_0.algo <= 1 && typeof(preimage_0.txParamType) === 'number' && preimage_0.txParamType >= 0 && preimage_0.txParamType <= 1 && preimage_0.txParamsDigest.buffer instanceof ArrayBuffer && preimage_0.txParamsDigest.BYTES_PER_ELEMENT === 1 && preimage_0.txParamsDigest.length === 32 && preimage_0.executionDest.buffer instanceof ArrayBuffer && preimage_0.executionDest.BYTES_PER_ELEMENT === 1 && preimage_0.executionDest.length === 32)) {
1441
+ __compactRuntime.typeError('calculateRequestIdV1',
1442
+ 'argument 1',
1443
+ 'Signet.compact line 218 char 3',
1444
+ 'struct RequestIdPreimageV1<keyVersion: Uint<0..256>, sender: struct ContractAddress<bytes: Bytes<32>>, path: Bytes<32>, algo: Enum<MPCSignatureAlgorithm, ecdsa, reserved>, txParamType: Enum<TxParamType, evmType2, reserved>, txParamsDigest: Bytes<32>, executionDest: Bytes<32>>',
1445
+ preimage_0)
1446
+ }
1447
+ return _dummyContract._calculateRequestIdV1_0(preimage_0);
1448
+ },
678
1449
  constructSignBidirectionalEventNotificationV1: (...args_0) => {
679
1450
  if (args_0.length !== 3) {
680
1451
  throw new __compactRuntime.CompactError(`constructSignBidirectionalEventNotificationV1: expected 3 arguments (as invoked from Typescript), received ${args_0.length}`);
@@ -685,21 +1456,21 @@ export const pureCircuits = {
685
1456
  if (!(typeof(callerAddress_0) === 'object' && callerAddress_0.bytes.buffer instanceof ArrayBuffer && callerAddress_0.bytes.BYTES_PER_ELEMENT === 1 && callerAddress_0.bytes.length === 32)) {
686
1457
  __compactRuntime.typeError('constructSignBidirectionalEventNotificationV1',
687
1458
  'argument 1',
688
- 'Signet.compact line 235 char 3',
1459
+ 'Signet.compact line 269 char 3',
689
1460
  'struct ContractAddress<bytes: Bytes<32>>',
690
1461
  callerAddress_0)
691
1462
  }
692
1463
  if (!(typeof(requestsPathDepth_0) === 'bigint' && requestsPathDepth_0 >= 0n && requestsPathDepth_0 <= 255n)) {
693
1464
  __compactRuntime.typeError('constructSignBidirectionalEventNotificationV1',
694
1465
  'argument 2',
695
- 'Signet.compact line 235 char 3',
1466
+ 'Signet.compact line 269 char 3',
696
1467
  'Uint<0..256>',
697
1468
  requestsPathDepth_0)
698
1469
  }
699
1470
  if (!(Array.isArray(requestsPath_0) && requestsPath_0.length === 4 && requestsPath_0.every((t) => typeof(t) === 'bigint' && t >= 0n && t <= 255n))) {
700
1471
  __compactRuntime.typeError('constructSignBidirectionalEventNotificationV1',
701
1472
  'argument 3',
702
- 'Signet.compact line 235 char 3',
1473
+ 'Signet.compact line 269 char 3',
703
1474
  'Vector<4, Uint<0..256>>',
704
1475
  requestsPath_0)
705
1476
  }
@@ -721,7 +1492,7 @@ export const pureCircuits = {
721
1492
  if (!(addr_0.buffer instanceof ArrayBuffer && addr_0.BYTES_PER_ELEMENT === 1 && addr_0.length === 20)) {
722
1493
  __compactRuntime.typeError('evmAddressAbiWord',
723
1494
  'argument 1',
724
- 'Signet.compact line 427 char 3',
1495
+ 'Signet.compact line 605 char 3',
725
1496
  'Bytes<20>',
726
1497
  addr_0)
727
1498
  }
@@ -735,7 +1506,7 @@ export const pureCircuits = {
735
1506
  if (!(typeof(value_0) === 'bigint' && value_0 >= 0n && value_0 <= 340282366920938463463374607431768211455n)) {
736
1507
  __compactRuntime.typeError('numericAbiWord',
737
1508
  'argument 1',
738
- 'Signet.compact line 433 char 3',
1509
+ 'Signet.compact line 611 char 3',
739
1510
  'Uint<0..340282366920938463463374607431768211456>',
740
1511
  value_0)
741
1512
  }
@@ -749,7 +1520,7 @@ export const pureCircuits = {
749
1520
  if (!(typeof(value_0) === 'boolean')) {
750
1521
  __compactRuntime.typeError('boolAbiWord',
751
1522
  'argument 1',
752
- 'Signet.compact line 446 char 3',
1523
+ 'Signet.compact line 624 char 3',
753
1524
  'Boolean',
754
1525
  value_0)
755
1526
  }
@@ -763,7 +1534,7 @@ export const pureCircuits = {
763
1534
  if (!(word_0.buffer instanceof ArrayBuffer && word_0.BYTES_PER_ELEMENT === 1 && word_0.length === 32)) {
764
1535
  __compactRuntime.typeError('abiWordToUint128',
765
1536
  'argument 1',
766
- 'Signet.compact line 454 char 3',
1537
+ 'Signet.compact line 632 char 3',
767
1538
  'Bytes<32>',
768
1539
  word_0)
769
1540
  }
@@ -777,180 +1548,320 @@ export const pureCircuits = {
777
1548
  if (!(word_0.buffer instanceof ArrayBuffer && word_0.BYTES_PER_ELEMENT === 1 && word_0.length === 32)) {
778
1549
  __compactRuntime.typeError('abiWordToBool',
779
1550
  'argument 1',
780
- 'Signet.compact line 493 char 3',
1551
+ 'Signet.compact line 671 char 3',
781
1552
  'Bytes<32>',
782
1553
  word_0)
783
1554
  }
784
1555
  return _dummyContract._abiWordToBool_0(word_0);
785
1556
  },
1557
+ calculateSignetAttestationDigest0: (...args_0) => {
1558
+ if (args_0.length !== 4) {
1559
+ throw new __compactRuntime.CompactError(`calculateSignetAttestationDigest0: expected 4 arguments (as invoked from Typescript), received ${args_0.length}`);
1560
+ }
1561
+ const requestId_0 = args_0[0];
1562
+ const blockHeight_0 = args_0[1];
1563
+ const outputKind_0 = args_0[2];
1564
+ const serializedOutput_0 = args_0[3];
1565
+ if (!(requestId_0.buffer instanceof ArrayBuffer && requestId_0.BYTES_PER_ELEMENT === 1 && requestId_0.length === 32)) {
1566
+ __compactRuntime.typeError('calculateSignetAttestationDigest0',
1567
+ 'argument 1',
1568
+ 'circuits.compact line 30 char 1',
1569
+ 'Bytes<32>',
1570
+ requestId_0)
1571
+ }
1572
+ if (!(typeof(blockHeight_0) === 'bigint' && blockHeight_0 >= 0n && blockHeight_0 <= 18446744073709551615n)) {
1573
+ __compactRuntime.typeError('calculateSignetAttestationDigest0',
1574
+ 'argument 2',
1575
+ 'circuits.compact line 30 char 1',
1576
+ 'Uint<0..18446744073709551616>',
1577
+ blockHeight_0)
1578
+ }
1579
+ if (!(typeof(outputKind_0) === 'number' && outputKind_0 >= 0 && outputKind_0 <= 2)) {
1580
+ __compactRuntime.typeError('calculateSignetAttestationDigest0',
1581
+ 'argument 3',
1582
+ 'circuits.compact line 30 char 1',
1583
+ 'Enum<OutputKind, executed, failed, unviable>',
1584
+ outputKind_0)
1585
+ }
1586
+ if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 0)) {
1587
+ __compactRuntime.typeError('calculateSignetAttestationDigest0',
1588
+ 'argument 4',
1589
+ 'circuits.compact line 30 char 1',
1590
+ 'Bytes<0>',
1591
+ serializedOutput_0)
1592
+ }
1593
+ return _dummyContract._calculateSignetAttestationDigest0_0(requestId_0,
1594
+ blockHeight_0,
1595
+ outputKind_0,
1596
+ serializedOutput_0);
1597
+ },
786
1598
  calculateSignetAttestationDigest1: (...args_0) => {
787
- if (args_0.length !== 3) {
788
- throw new __compactRuntime.CompactError(`calculateSignetAttestationDigest1: expected 3 arguments (as invoked from Typescript), received ${args_0.length}`);
1599
+ if (args_0.length !== 4) {
1600
+ throw new __compactRuntime.CompactError(`calculateSignetAttestationDigest1: expected 4 arguments (as invoked from Typescript), received ${args_0.length}`);
789
1601
  }
790
1602
  const requestId_0 = args_0[0];
791
1603
  const blockHeight_0 = args_0[1];
792
- const serializedOutput_0 = args_0[2];
1604
+ const outputKind_0 = args_0[2];
1605
+ const serializedOutput_0 = args_0[3];
793
1606
  if (!(requestId_0.buffer instanceof ArrayBuffer && requestId_0.BYTES_PER_ELEMENT === 1 && requestId_0.length === 32)) {
794
1607
  __compactRuntime.typeError('calculateSignetAttestationDigest1',
795
1608
  'argument 1',
796
- 'circuits.compact line 28 char 1',
1609
+ 'circuits.compact line 39 char 1',
797
1610
  'Bytes<32>',
798
1611
  requestId_0)
799
1612
  }
800
1613
  if (!(typeof(blockHeight_0) === 'bigint' && blockHeight_0 >= 0n && blockHeight_0 <= 18446744073709551615n)) {
801
1614
  __compactRuntime.typeError('calculateSignetAttestationDigest1',
802
1615
  'argument 2',
803
- 'circuits.compact line 28 char 1',
1616
+ 'circuits.compact line 39 char 1',
804
1617
  'Uint<0..18446744073709551616>',
805
1618
  blockHeight_0)
806
1619
  }
807
- if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 1)) {
1620
+ if (!(typeof(outputKind_0) === 'number' && outputKind_0 >= 0 && outputKind_0 <= 2)) {
808
1621
  __compactRuntime.typeError('calculateSignetAttestationDigest1',
809
1622
  'argument 3',
810
- 'circuits.compact line 28 char 1',
1623
+ 'circuits.compact line 39 char 1',
1624
+ 'Enum<OutputKind, executed, failed, unviable>',
1625
+ outputKind_0)
1626
+ }
1627
+ if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 1)) {
1628
+ __compactRuntime.typeError('calculateSignetAttestationDigest1',
1629
+ 'argument 4',
1630
+ 'circuits.compact line 39 char 1',
811
1631
  'Bytes<1>',
812
1632
  serializedOutput_0)
813
1633
  }
814
1634
  return _dummyContract._calculateSignetAttestationDigest1_0(requestId_0,
815
1635
  blockHeight_0,
1636
+ outputKind_0,
816
1637
  serializedOutput_0);
817
1638
  },
818
1639
  calculateSignetAttestationDigest2: (...args_0) => {
819
- if (args_0.length !== 3) {
820
- throw new __compactRuntime.CompactError(`calculateSignetAttestationDigest2: expected 3 arguments (as invoked from Typescript), received ${args_0.length}`);
1640
+ if (args_0.length !== 4) {
1641
+ throw new __compactRuntime.CompactError(`calculateSignetAttestationDigest2: expected 4 arguments (as invoked from Typescript), received ${args_0.length}`);
821
1642
  }
822
1643
  const requestId_0 = args_0[0];
823
1644
  const blockHeight_0 = args_0[1];
824
- const serializedOutput_0 = args_0[2];
1645
+ const outputKind_0 = args_0[2];
1646
+ const serializedOutput_0 = args_0[3];
825
1647
  if (!(requestId_0.buffer instanceof ArrayBuffer && requestId_0.BYTES_PER_ELEMENT === 1 && requestId_0.length === 32)) {
826
1648
  __compactRuntime.typeError('calculateSignetAttestationDigest2',
827
1649
  'argument 1',
828
- 'circuits.compact line 36 char 1',
1650
+ 'circuits.compact line 48 char 1',
829
1651
  'Bytes<32>',
830
1652
  requestId_0)
831
1653
  }
832
1654
  if (!(typeof(blockHeight_0) === 'bigint' && blockHeight_0 >= 0n && blockHeight_0 <= 18446744073709551615n)) {
833
1655
  __compactRuntime.typeError('calculateSignetAttestationDigest2',
834
1656
  'argument 2',
835
- 'circuits.compact line 36 char 1',
1657
+ 'circuits.compact line 48 char 1',
836
1658
  'Uint<0..18446744073709551616>',
837
1659
  blockHeight_0)
838
1660
  }
839
- if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 2)) {
1661
+ if (!(typeof(outputKind_0) === 'number' && outputKind_0 >= 0 && outputKind_0 <= 2)) {
840
1662
  __compactRuntime.typeError('calculateSignetAttestationDigest2',
841
1663
  'argument 3',
842
- 'circuits.compact line 36 char 1',
1664
+ 'circuits.compact line 48 char 1',
1665
+ 'Enum<OutputKind, executed, failed, unviable>',
1666
+ outputKind_0)
1667
+ }
1668
+ if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 2)) {
1669
+ __compactRuntime.typeError('calculateSignetAttestationDigest2',
1670
+ 'argument 4',
1671
+ 'circuits.compact line 48 char 1',
843
1672
  'Bytes<2>',
844
1673
  serializedOutput_0)
845
1674
  }
846
1675
  return _dummyContract._calculateSignetAttestationDigest2_0(requestId_0,
847
1676
  blockHeight_0,
1677
+ outputKind_0,
848
1678
  serializedOutput_0);
849
1679
  },
850
1680
  calculateSignetAttestationDigest32: (...args_0) => {
851
- if (args_0.length !== 3) {
852
- throw new __compactRuntime.CompactError(`calculateSignetAttestationDigest32: expected 3 arguments (as invoked from Typescript), received ${args_0.length}`);
1681
+ if (args_0.length !== 4) {
1682
+ throw new __compactRuntime.CompactError(`calculateSignetAttestationDigest32: expected 4 arguments (as invoked from Typescript), received ${args_0.length}`);
853
1683
  }
854
1684
  const requestId_0 = args_0[0];
855
1685
  const blockHeight_0 = args_0[1];
856
- const serializedOutput_0 = args_0[2];
1686
+ const outputKind_0 = args_0[2];
1687
+ const serializedOutput_0 = args_0[3];
857
1688
  if (!(requestId_0.buffer instanceof ArrayBuffer && requestId_0.BYTES_PER_ELEMENT === 1 && requestId_0.length === 32)) {
858
1689
  __compactRuntime.typeError('calculateSignetAttestationDigest32',
859
1690
  'argument 1',
860
- 'circuits.compact line 44 char 1',
1691
+ 'circuits.compact line 57 char 1',
861
1692
  'Bytes<32>',
862
1693
  requestId_0)
863
1694
  }
864
1695
  if (!(typeof(blockHeight_0) === 'bigint' && blockHeight_0 >= 0n && blockHeight_0 <= 18446744073709551615n)) {
865
1696
  __compactRuntime.typeError('calculateSignetAttestationDigest32',
866
1697
  'argument 2',
867
- 'circuits.compact line 44 char 1',
1698
+ 'circuits.compact line 57 char 1',
868
1699
  'Uint<0..18446744073709551616>',
869
1700
  blockHeight_0)
870
1701
  }
871
- if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 32)) {
1702
+ if (!(typeof(outputKind_0) === 'number' && outputKind_0 >= 0 && outputKind_0 <= 2)) {
872
1703
  __compactRuntime.typeError('calculateSignetAttestationDigest32',
873
1704
  'argument 3',
874
- 'circuits.compact line 44 char 1',
1705
+ 'circuits.compact line 57 char 1',
1706
+ 'Enum<OutputKind, executed, failed, unviable>',
1707
+ outputKind_0)
1708
+ }
1709
+ if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 32)) {
1710
+ __compactRuntime.typeError('calculateSignetAttestationDigest32',
1711
+ 'argument 4',
1712
+ 'circuits.compact line 57 char 1',
875
1713
  'Bytes<32>',
876
1714
  serializedOutput_0)
877
1715
  }
878
1716
  return _dummyContract._calculateSignetAttestationDigest32_0(requestId_0,
879
1717
  blockHeight_0,
1718
+ outputKind_0,
880
1719
  serializedOutput_0);
881
1720
  },
882
1721
  calculateSignetAttestationDigest100: (...args_0) => {
883
- if (args_0.length !== 3) {
884
- throw new __compactRuntime.CompactError(`calculateSignetAttestationDigest100: expected 3 arguments (as invoked from Typescript), received ${args_0.length}`);
1722
+ if (args_0.length !== 4) {
1723
+ throw new __compactRuntime.CompactError(`calculateSignetAttestationDigest100: expected 4 arguments (as invoked from Typescript), received ${args_0.length}`);
885
1724
  }
886
1725
  const requestId_0 = args_0[0];
887
1726
  const blockHeight_0 = args_0[1];
888
- const serializedOutput_0 = args_0[2];
1727
+ const outputKind_0 = args_0[2];
1728
+ const serializedOutput_0 = args_0[3];
889
1729
  if (!(requestId_0.buffer instanceof ArrayBuffer && requestId_0.BYTES_PER_ELEMENT === 1 && requestId_0.length === 32)) {
890
1730
  __compactRuntime.typeError('calculateSignetAttestationDigest100',
891
1731
  'argument 1',
892
- 'circuits.compact line 52 char 1',
1732
+ 'circuits.compact line 66 char 1',
893
1733
  'Bytes<32>',
894
1734
  requestId_0)
895
1735
  }
896
1736
  if (!(typeof(blockHeight_0) === 'bigint' && blockHeight_0 >= 0n && blockHeight_0 <= 18446744073709551615n)) {
897
1737
  __compactRuntime.typeError('calculateSignetAttestationDigest100',
898
1738
  'argument 2',
899
- 'circuits.compact line 52 char 1',
1739
+ 'circuits.compact line 66 char 1',
900
1740
  'Uint<0..18446744073709551616>',
901
1741
  blockHeight_0)
902
1742
  }
903
- if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 100)) {
1743
+ if (!(typeof(outputKind_0) === 'number' && outputKind_0 >= 0 && outputKind_0 <= 2)) {
904
1744
  __compactRuntime.typeError('calculateSignetAttestationDigest100',
905
1745
  'argument 3',
906
- 'circuits.compact line 52 char 1',
1746
+ 'circuits.compact line 66 char 1',
1747
+ 'Enum<OutputKind, executed, failed, unviable>',
1748
+ outputKind_0)
1749
+ }
1750
+ if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 100)) {
1751
+ __compactRuntime.typeError('calculateSignetAttestationDigest100',
1752
+ 'argument 4',
1753
+ 'circuits.compact line 66 char 1',
907
1754
  'Bytes<100>',
908
1755
  serializedOutput_0)
909
1756
  }
910
1757
  return _dummyContract._calculateSignetAttestationDigest100_0(requestId_0,
911
1758
  blockHeight_0,
1759
+ outputKind_0,
912
1760
  serializedOutput_0);
913
1761
  },
914
- verifyRespondBidirectionalEvent32: (...args_0) => {
915
- if (args_0.length !== 5) {
916
- throw new __compactRuntime.CompactError(`verifyRespondBidirectionalEvent32: expected 5 arguments (as invoked from Typescript), received ${args_0.length}`);
1762
+ calculateEvmType2TxParamsDigestV1_1_0_0: (...args_0) => {
1763
+ if (args_0.length !== 1) {
1764
+ throw new __compactRuntime.CompactError(`calculateEvmType2TxParamsDigestV1_1_0_0: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
917
1765
  }
918
- const requestId_0 = args_0[0];
919
- const blockHeight_0 = args_0[1];
920
- const serializedOutput_0 = args_0[2];
921
- const respondBidirectionalEvent_0 = args_0[3];
922
- const mpcResponseKey_0 = args_0[4];
923
- if (!(requestId_0.buffer instanceof ArrayBuffer && requestId_0.BYTES_PER_ELEMENT === 1 && requestId_0.length === 32)) {
924
- __compactRuntime.typeError('verifyRespondBidirectionalEvent32',
1766
+ const txParams_0 = args_0[0];
1767
+ if (!(typeof(txParams_0) === 'object' && typeof(txParams_0.chainId) === 'bigint' && txParams_0.chainId >= 0n && txParams_0.chainId <= 18446744073709551615n && typeof(txParams_0.nonce) === 'bigint' && txParams_0.nonce >= 0n && txParams_0.nonce <= 18446744073709551615n && typeof(txParams_0.maxPriorityFeePerGas) === 'bigint' && txParams_0.maxPriorityFeePerGas >= 0n && txParams_0.maxPriorityFeePerGas <= 340282366920938463463374607431768211455n && typeof(txParams_0.maxFeePerGas) === 'bigint' && txParams_0.maxFeePerGas >= 0n && txParams_0.maxFeePerGas <= 340282366920938463463374607431768211455n && typeof(txParams_0.gasLimit) === 'bigint' && txParams_0.gasLimit >= 0n && txParams_0.gasLimit <= 18446744073709551615n && txParams_0.to.buffer instanceof ArrayBuffer && txParams_0.to.BYTES_PER_ELEMENT === 1 && txParams_0.to.length === 20 && typeof(txParams_0.value) === 'bigint' && txParams_0.value >= 0n && txParams_0.value <= 340282366920938463463374607431768211455n && typeof(txParams_0.calldata) === 'object' && typeof(txParams_0.calldata.is_some) === 'boolean' && typeof(txParams_0.calldata.value) === 'object' && txParams_0.calldata.value.selector.buffer instanceof ArrayBuffer && txParams_0.calldata.value.selector.BYTES_PER_ELEMENT === 1 && txParams_0.calldata.value.selector.length === 4 && typeof(txParams_0.calldata.value.noWords) === 'bigint' && txParams_0.calldata.value.noWords >= 0n && txParams_0.calldata.value.noWords <= 65535n && Array.isArray(txParams_0.calldata.value.words) && txParams_0.calldata.value.words.length === 1 && txParams_0.calldata.value.words.every((t) => t.buffer instanceof ArrayBuffer && t.BYTES_PER_ELEMENT === 1 && t.length === 32) && typeof(txParams_0.accessListEntryCount) === 'bigint' && txParams_0.accessListEntryCount >= 0n && txParams_0.accessListEntryCount <= 255n && Array.isArray(txParams_0.accessList) && txParams_0.accessList.length === 0 && txParams_0.accessList.every((t) => typeof(t) === 'object' && t.address.buffer instanceof ArrayBuffer && t.address.BYTES_PER_ELEMENT === 1 && t.address.length === 20 && typeof(t.storageKeyCount) === 'bigint' && t.storageKeyCount >= 0n && t.storageKeyCount <= 255n && Array.isArray(t.storageKeys) && t.storageKeys.length === 0 && t.storageKeys.every((t) => t.buffer instanceof ArrayBuffer && t.BYTES_PER_ELEMENT === 1 && t.length === 32)))) {
1768
+ __compactRuntime.typeError('calculateEvmType2TxParamsDigestV1_1_0_0',
925
1769
  'argument 1',
926
- 'circuits.compact line 60 char 1',
927
- 'Bytes<32>',
928
- requestId_0)
1770
+ 'circuits.compact line 80 char 1',
1771
+ 'struct EvmType2TxParams<chainId: Uint<0..18446744073709551616>, nonce: Uint<0..18446744073709551616>, maxPriorityFeePerGas: Uint<0..340282366920938463463374607431768211456>, maxFeePerGas: Uint<0..340282366920938463463374607431768211456>, gasLimit: Uint<0..18446744073709551616>, to: Bytes<20>, value: Uint<0..340282366920938463463374607431768211456>, calldata: struct Maybe<is_some: Boolean, value: struct EvmCalldata<selector: Bytes<4>, noWords: Uint<0..65536>, words: Vector<1, Bytes<32>>>>, accessListEntryCount: Uint<0..256>, accessList: Vector<0, struct EvmAccessListEntry<address: Bytes<20>, storageKeyCount: Uint<0..256>, storageKeys: Vector<0, Bytes<32>>>>>',
1772
+ txParams_0)
929
1773
  }
930
- if (!(typeof(blockHeight_0) === 'bigint' && blockHeight_0 >= 0n && blockHeight_0 <= 18446744073709551615n)) {
931
- __compactRuntime.typeError('verifyRespondBidirectionalEvent32',
1774
+ return _dummyContract._calculateEvmType2TxParamsDigestV1_1_0_0_0(txParams_0);
1775
+ },
1776
+ calculateEvmType2TxParamsDigestV1_2_1_2: (...args_0) => {
1777
+ if (args_0.length !== 1) {
1778
+ throw new __compactRuntime.CompactError(`calculateEvmType2TxParamsDigestV1_2_1_2: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
1779
+ }
1780
+ const txParams_0 = args_0[0];
1781
+ if (!(typeof(txParams_0) === 'object' && typeof(txParams_0.chainId) === 'bigint' && txParams_0.chainId >= 0n && txParams_0.chainId <= 18446744073709551615n && typeof(txParams_0.nonce) === 'bigint' && txParams_0.nonce >= 0n && txParams_0.nonce <= 18446744073709551615n && typeof(txParams_0.maxPriorityFeePerGas) === 'bigint' && txParams_0.maxPriorityFeePerGas >= 0n && txParams_0.maxPriorityFeePerGas <= 340282366920938463463374607431768211455n && typeof(txParams_0.maxFeePerGas) === 'bigint' && txParams_0.maxFeePerGas >= 0n && txParams_0.maxFeePerGas <= 340282366920938463463374607431768211455n && typeof(txParams_0.gasLimit) === 'bigint' && txParams_0.gasLimit >= 0n && txParams_0.gasLimit <= 18446744073709551615n && txParams_0.to.buffer instanceof ArrayBuffer && txParams_0.to.BYTES_PER_ELEMENT === 1 && txParams_0.to.length === 20 && typeof(txParams_0.value) === 'bigint' && txParams_0.value >= 0n && txParams_0.value <= 340282366920938463463374607431768211455n && typeof(txParams_0.calldata) === 'object' && typeof(txParams_0.calldata.is_some) === 'boolean' && typeof(txParams_0.calldata.value) === 'object' && txParams_0.calldata.value.selector.buffer instanceof ArrayBuffer && txParams_0.calldata.value.selector.BYTES_PER_ELEMENT === 1 && txParams_0.calldata.value.selector.length === 4 && typeof(txParams_0.calldata.value.noWords) === 'bigint' && txParams_0.calldata.value.noWords >= 0n && txParams_0.calldata.value.noWords <= 65535n && Array.isArray(txParams_0.calldata.value.words) && txParams_0.calldata.value.words.length === 2 && txParams_0.calldata.value.words.every((t) => t.buffer instanceof ArrayBuffer && t.BYTES_PER_ELEMENT === 1 && t.length === 32) && typeof(txParams_0.accessListEntryCount) === 'bigint' && txParams_0.accessListEntryCount >= 0n && txParams_0.accessListEntryCount <= 255n && Array.isArray(txParams_0.accessList) && txParams_0.accessList.length === 1 && txParams_0.accessList.every((t) => typeof(t) === 'object' && t.address.buffer instanceof ArrayBuffer && t.address.BYTES_PER_ELEMENT === 1 && t.address.length === 20 && typeof(t.storageKeyCount) === 'bigint' && t.storageKeyCount >= 0n && t.storageKeyCount <= 255n && Array.isArray(t.storageKeys) && t.storageKeys.length === 2 && t.storageKeys.every((t) => t.buffer instanceof ArrayBuffer && t.BYTES_PER_ELEMENT === 1 && t.length === 32)))) {
1782
+ __compactRuntime.typeError('calculateEvmType2TxParamsDigestV1_2_1_2',
1783
+ 'argument 1',
1784
+ 'circuits.compact line 86 char 1',
1785
+ 'struct EvmType2TxParams<chainId: Uint<0..18446744073709551616>, nonce: Uint<0..18446744073709551616>, maxPriorityFeePerGas: Uint<0..340282366920938463463374607431768211456>, maxFeePerGas: Uint<0..340282366920938463463374607431768211456>, gasLimit: Uint<0..18446744073709551616>, to: Bytes<20>, value: Uint<0..340282366920938463463374607431768211456>, calldata: struct Maybe<is_some: Boolean, value: struct EvmCalldata<selector: Bytes<4>, noWords: Uint<0..65536>, words: Vector<2, Bytes<32>>>>, accessListEntryCount: Uint<0..256>, accessList: Vector<1, struct EvmAccessListEntry<address: Bytes<20>, storageKeyCount: Uint<0..256>, storageKeys: Vector<2, Bytes<32>>>>>',
1786
+ txParams_0)
1787
+ }
1788
+ return _dummyContract._calculateEvmType2TxParamsDigestV1_2_1_2_0(txParams_0);
1789
+ },
1790
+ calculateEvmType2RequestIdV1_1_0_0_34_34: (...args_0) => {
1791
+ if (args_0.length !== 1) {
1792
+ throw new __compactRuntime.CompactError(`calculateEvmType2RequestIdV1_1_0_0_34_34: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
1793
+ }
1794
+ const request_0 = args_0[0];
1795
+ if (!(typeof(request_0) === 'object' && typeof(request_0.keyVersion) === 'bigint' && request_0.keyVersion >= 0n && request_0.keyVersion <= 255n && typeof(request_0.sender) === 'object' && request_0.sender.bytes.buffer instanceof ArrayBuffer && request_0.sender.bytes.BYTES_PER_ELEMENT === 1 && request_0.sender.bytes.length === 32 && request_0.path.buffer instanceof ArrayBuffer && request_0.path.BYTES_PER_ELEMENT === 1 && request_0.path.length === 32 && typeof(request_0.algo) === 'number' && request_0.algo >= 0 && request_0.algo <= 1 && typeof(request_0.txParamType) === 'number' && request_0.txParamType >= 0 && request_0.txParamType <= 1 && typeof(request_0.txParams) === 'object' && typeof(request_0.txParams.chainId) === 'bigint' && request_0.txParams.chainId >= 0n && request_0.txParams.chainId <= 18446744073709551615n && typeof(request_0.txParams.nonce) === 'bigint' && request_0.txParams.nonce >= 0n && request_0.txParams.nonce <= 18446744073709551615n && typeof(request_0.txParams.maxPriorityFeePerGas) === 'bigint' && request_0.txParams.maxPriorityFeePerGas >= 0n && request_0.txParams.maxPriorityFeePerGas <= 340282366920938463463374607431768211455n && typeof(request_0.txParams.maxFeePerGas) === 'bigint' && request_0.txParams.maxFeePerGas >= 0n && request_0.txParams.maxFeePerGas <= 340282366920938463463374607431768211455n && typeof(request_0.txParams.gasLimit) === 'bigint' && request_0.txParams.gasLimit >= 0n && request_0.txParams.gasLimit <= 18446744073709551615n && request_0.txParams.to.buffer instanceof ArrayBuffer && request_0.txParams.to.BYTES_PER_ELEMENT === 1 && request_0.txParams.to.length === 20 && typeof(request_0.txParams.value) === 'bigint' && request_0.txParams.value >= 0n && request_0.txParams.value <= 340282366920938463463374607431768211455n && typeof(request_0.txParams.calldata) === 'object' && typeof(request_0.txParams.calldata.is_some) === 'boolean' && typeof(request_0.txParams.calldata.value) === 'object' && request_0.txParams.calldata.value.selector.buffer instanceof ArrayBuffer && request_0.txParams.calldata.value.selector.BYTES_PER_ELEMENT === 1 && request_0.txParams.calldata.value.selector.length === 4 && typeof(request_0.txParams.calldata.value.noWords) === 'bigint' && request_0.txParams.calldata.value.noWords >= 0n && request_0.txParams.calldata.value.noWords <= 65535n && Array.isArray(request_0.txParams.calldata.value.words) && request_0.txParams.calldata.value.words.length === 1 && request_0.txParams.calldata.value.words.every((t) => t.buffer instanceof ArrayBuffer && t.BYTES_PER_ELEMENT === 1 && t.length === 32) && typeof(request_0.txParams.accessListEntryCount) === 'bigint' && request_0.txParams.accessListEntryCount >= 0n && request_0.txParams.accessListEntryCount <= 255n && Array.isArray(request_0.txParams.accessList) && request_0.txParams.accessList.length === 0 && request_0.txParams.accessList.every((t) => typeof(t) === 'object' && t.address.buffer instanceof ArrayBuffer && t.address.BYTES_PER_ELEMENT === 1 && t.address.length === 20 && typeof(t.storageKeyCount) === 'bigint' && t.storageKeyCount >= 0n && t.storageKeyCount <= 255n && Array.isArray(t.storageKeys) && t.storageKeys.length === 0 && t.storageKeys.every((t) => t.buffer instanceof ArrayBuffer && t.BYTES_PER_ELEMENT === 1 && t.length === 32)) && request_0.executionDest.buffer instanceof ArrayBuffer && request_0.executionDest.BYTES_PER_ELEMENT === 1 && request_0.executionDest.length === 32 && typeof(request_0.signatureDest) === 'number' && request_0.signatureDest >= 0 && request_0.signatureDest <= 1 && request_0.params.buffer instanceof ArrayBuffer && request_0.params.BYTES_PER_ELEMENT === 1 && request_0.params.length === 64 && request_0.outputDeserializationSchema.buffer instanceof ArrayBuffer && request_0.outputDeserializationSchema.BYTES_PER_ELEMENT === 1 && request_0.outputDeserializationSchema.length === 34 && request_0.respondSerializationSchema.buffer instanceof ArrayBuffer && request_0.respondSerializationSchema.BYTES_PER_ELEMENT === 1 && request_0.respondSerializationSchema.length === 34)) {
1796
+ __compactRuntime.typeError('calculateEvmType2RequestIdV1_1_0_0_34_34',
1797
+ 'argument 1',
1798
+ 'circuits.compact line 95 char 1',
1799
+ 'struct SignBidirectionalEventV1<keyVersion: Uint<0..256>, sender: struct ContractAddress<bytes: Bytes<32>>, path: Bytes<32>, algo: Enum<MPCSignatureAlgorithm, ecdsa, reserved>, txParamType: Enum<TxParamType, evmType2, reserved>, txParams: struct EvmType2TxParams<chainId: Uint<0..18446744073709551616>, nonce: Uint<0..18446744073709551616>, maxPriorityFeePerGas: Uint<0..340282366920938463463374607431768211456>, maxFeePerGas: Uint<0..340282366920938463463374607431768211456>, gasLimit: Uint<0..18446744073709551616>, to: Bytes<20>, value: Uint<0..340282366920938463463374607431768211456>, calldata: struct Maybe<is_some: Boolean, value: struct EvmCalldata<selector: Bytes<4>, noWords: Uint<0..65536>, words: Vector<1, Bytes<32>>>>, accessListEntryCount: Uint<0..256>, accessList: Vector<0, struct EvmAccessListEntry<address: Bytes<20>, storageKeyCount: Uint<0..256>, storageKeys: Vector<0, Bytes<32>>>>>, executionDest: Bytes<32>, signatureDest: Enum<MPCDestination, unused, reserved>, params: Bytes<64>, outputDeserializationSchema: Bytes<34>, respondSerializationSchema: Bytes<34>>',
1800
+ request_0)
1801
+ }
1802
+ return _dummyContract._calculateEvmType2RequestIdV1_1_0_0_34_34_0(request_0);
1803
+ },
1804
+ calculateEvmType2RequestIdV1_2_1_2_34_34: (...args_0) => {
1805
+ if (args_0.length !== 1) {
1806
+ throw new __compactRuntime.CompactError(`calculateEvmType2RequestIdV1_2_1_2_34_34: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
1807
+ }
1808
+ const request_0 = args_0[0];
1809
+ if (!(typeof(request_0) === 'object' && typeof(request_0.keyVersion) === 'bigint' && request_0.keyVersion >= 0n && request_0.keyVersion <= 255n && typeof(request_0.sender) === 'object' && request_0.sender.bytes.buffer instanceof ArrayBuffer && request_0.sender.bytes.BYTES_PER_ELEMENT === 1 && request_0.sender.bytes.length === 32 && request_0.path.buffer instanceof ArrayBuffer && request_0.path.BYTES_PER_ELEMENT === 1 && request_0.path.length === 32 && typeof(request_0.algo) === 'number' && request_0.algo >= 0 && request_0.algo <= 1 && typeof(request_0.txParamType) === 'number' && request_0.txParamType >= 0 && request_0.txParamType <= 1 && typeof(request_0.txParams) === 'object' && typeof(request_0.txParams.chainId) === 'bigint' && request_0.txParams.chainId >= 0n && request_0.txParams.chainId <= 18446744073709551615n && typeof(request_0.txParams.nonce) === 'bigint' && request_0.txParams.nonce >= 0n && request_0.txParams.nonce <= 18446744073709551615n && typeof(request_0.txParams.maxPriorityFeePerGas) === 'bigint' && request_0.txParams.maxPriorityFeePerGas >= 0n && request_0.txParams.maxPriorityFeePerGas <= 340282366920938463463374607431768211455n && typeof(request_0.txParams.maxFeePerGas) === 'bigint' && request_0.txParams.maxFeePerGas >= 0n && request_0.txParams.maxFeePerGas <= 340282366920938463463374607431768211455n && typeof(request_0.txParams.gasLimit) === 'bigint' && request_0.txParams.gasLimit >= 0n && request_0.txParams.gasLimit <= 18446744073709551615n && request_0.txParams.to.buffer instanceof ArrayBuffer && request_0.txParams.to.BYTES_PER_ELEMENT === 1 && request_0.txParams.to.length === 20 && typeof(request_0.txParams.value) === 'bigint' && request_0.txParams.value >= 0n && request_0.txParams.value <= 340282366920938463463374607431768211455n && typeof(request_0.txParams.calldata) === 'object' && typeof(request_0.txParams.calldata.is_some) === 'boolean' && typeof(request_0.txParams.calldata.value) === 'object' && request_0.txParams.calldata.value.selector.buffer instanceof ArrayBuffer && request_0.txParams.calldata.value.selector.BYTES_PER_ELEMENT === 1 && request_0.txParams.calldata.value.selector.length === 4 && typeof(request_0.txParams.calldata.value.noWords) === 'bigint' && request_0.txParams.calldata.value.noWords >= 0n && request_0.txParams.calldata.value.noWords <= 65535n && Array.isArray(request_0.txParams.calldata.value.words) && request_0.txParams.calldata.value.words.length === 2 && request_0.txParams.calldata.value.words.every((t) => t.buffer instanceof ArrayBuffer && t.BYTES_PER_ELEMENT === 1 && t.length === 32) && typeof(request_0.txParams.accessListEntryCount) === 'bigint' && request_0.txParams.accessListEntryCount >= 0n && request_0.txParams.accessListEntryCount <= 255n && Array.isArray(request_0.txParams.accessList) && request_0.txParams.accessList.length === 1 && request_0.txParams.accessList.every((t) => typeof(t) === 'object' && t.address.buffer instanceof ArrayBuffer && t.address.BYTES_PER_ELEMENT === 1 && t.address.length === 20 && typeof(t.storageKeyCount) === 'bigint' && t.storageKeyCount >= 0n && t.storageKeyCount <= 255n && Array.isArray(t.storageKeys) && t.storageKeys.length === 2 && t.storageKeys.every((t) => t.buffer instanceof ArrayBuffer && t.BYTES_PER_ELEMENT === 1 && t.length === 32)) && request_0.executionDest.buffer instanceof ArrayBuffer && request_0.executionDest.BYTES_PER_ELEMENT === 1 && request_0.executionDest.length === 32 && typeof(request_0.signatureDest) === 'number' && request_0.signatureDest >= 0 && request_0.signatureDest <= 1 && request_0.params.buffer instanceof ArrayBuffer && request_0.params.BYTES_PER_ELEMENT === 1 && request_0.params.length === 64 && request_0.outputDeserializationSchema.buffer instanceof ArrayBuffer && request_0.outputDeserializationSchema.BYTES_PER_ELEMENT === 1 && request_0.outputDeserializationSchema.length === 34 && request_0.respondSerializationSchema.buffer instanceof ArrayBuffer && request_0.respondSerializationSchema.BYTES_PER_ELEMENT === 1 && request_0.respondSerializationSchema.length === 34)) {
1810
+ __compactRuntime.typeError('calculateEvmType2RequestIdV1_2_1_2_34_34',
1811
+ 'argument 1',
1812
+ 'circuits.compact line 101 char 1',
1813
+ 'struct SignBidirectionalEventV1<keyVersion: Uint<0..256>, sender: struct ContractAddress<bytes: Bytes<32>>, path: Bytes<32>, algo: Enum<MPCSignatureAlgorithm, ecdsa, reserved>, txParamType: Enum<TxParamType, evmType2, reserved>, txParams: struct EvmType2TxParams<chainId: Uint<0..18446744073709551616>, nonce: Uint<0..18446744073709551616>, maxPriorityFeePerGas: Uint<0..340282366920938463463374607431768211456>, maxFeePerGas: Uint<0..340282366920938463463374607431768211456>, gasLimit: Uint<0..18446744073709551616>, to: Bytes<20>, value: Uint<0..340282366920938463463374607431768211456>, calldata: struct Maybe<is_some: Boolean, value: struct EvmCalldata<selector: Bytes<4>, noWords: Uint<0..65536>, words: Vector<2, Bytes<32>>>>, accessListEntryCount: Uint<0..256>, accessList: Vector<1, struct EvmAccessListEntry<address: Bytes<20>, storageKeyCount: Uint<0..256>, storageKeys: Vector<2, Bytes<32>>>>>, executionDest: Bytes<32>, signatureDest: Enum<MPCDestination, unused, reserved>, params: Bytes<64>, outputDeserializationSchema: Bytes<34>, respondSerializationSchema: Bytes<34>>',
1814
+ request_0)
1815
+ }
1816
+ return _dummyContract._calculateEvmType2RequestIdV1_2_1_2_34_34_0(request_0);
1817
+ },
1818
+ verifyRespondBidirectionalEvent0: (...args_0) => {
1819
+ if (args_0.length !== 3) {
1820
+ throw new __compactRuntime.CompactError(`verifyRespondBidirectionalEvent0: expected 3 arguments (as invoked from Typescript), received ${args_0.length}`);
1821
+ }
1822
+ const serializedOutput_0 = args_0[0];
1823
+ const respondBidirectionalEvent_0 = args_0[1];
1824
+ const mpcResponseKey_0 = args_0[2];
1825
+ if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 0)) {
1826
+ __compactRuntime.typeError('verifyRespondBidirectionalEvent0',
1827
+ 'argument 1',
1828
+ 'circuits.compact line 107 char 1',
1829
+ 'Bytes<0>',
1830
+ serializedOutput_0)
1831
+ }
1832
+ if (!(typeof(respondBidirectionalEvent_0) === 'object' && respondBidirectionalEvent_0.requestId.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.requestId.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.requestId.length === 32 && typeof(respondBidirectionalEvent_0.blockHeight) === 'bigint' && respondBidirectionalEvent_0.blockHeight >= 0n && respondBidirectionalEvent_0.blockHeight <= 18446744073709551615n && typeof(respondBidirectionalEvent_0.outputKind) === 'number' && respondBidirectionalEvent_0.outputKind >= 0 && respondBidirectionalEvent_0.outputKind <= 2 && typeof(respondBidirectionalEvent_0.serializedOutputLength) === 'bigint' && respondBidirectionalEvent_0.serializedOutputLength >= 0n && respondBidirectionalEvent_0.serializedOutputLength <= 18446744073709551615n && respondBidirectionalEvent_0.digest.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.digest.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.digest.length === 32 && typeof(respondBidirectionalEvent_0.signature) === 'object' && typeof(respondBidirectionalEvent_0.signature.bigR) === 'object' && respondBidirectionalEvent_0.signature.bigR.x.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.signature.bigR.x.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.signature.bigR.x.length === 32 && respondBidirectionalEvent_0.signature.bigR.y.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.signature.bigR.y.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.signature.bigR.y.length === 32 && respondBidirectionalEvent_0.signature.s.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.signature.s.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.signature.s.length === 32 && typeof(respondBidirectionalEvent_0.signature.recoveryId) === 'bigint' && respondBidirectionalEvent_0.signature.recoveryId >= 0n && respondBidirectionalEvent_0.signature.recoveryId <= 255n)) {
1833
+ __compactRuntime.typeError('verifyRespondBidirectionalEvent0',
932
1834
  'argument 2',
933
- 'circuits.compact line 60 char 1',
934
- 'Uint<0..18446744073709551616>',
935
- blockHeight_0)
1835
+ 'circuits.compact line 107 char 1',
1836
+ 'struct RespondBidirectionalEventV1<requestId: Bytes<32>, blockHeight: Uint<0..18446744073709551616>, outputKind: Enum<OutputKind, executed, failed, unviable>, serializedOutputLength: Uint<0..18446744073709551616>, digest: Bytes<32>, signature: struct Signature<bigR: struct AffinePoint<x: Bytes<32>, y: Bytes<32>>, s: Bytes<32>, recoveryId: Uint<0..256>>>',
1837
+ respondBidirectionalEvent_0)
1838
+ }
1839
+ return _dummyContract._verifyRespondBidirectionalEvent0_0(serializedOutput_0,
1840
+ respondBidirectionalEvent_0,
1841
+ mpcResponseKey_0);
1842
+ },
1843
+ verifyRespondBidirectionalEvent32: (...args_0) => {
1844
+ if (args_0.length !== 3) {
1845
+ throw new __compactRuntime.CompactError(`verifyRespondBidirectionalEvent32: expected 3 arguments (as invoked from Typescript), received ${args_0.length}`);
936
1846
  }
1847
+ const serializedOutput_0 = args_0[0];
1848
+ const respondBidirectionalEvent_0 = args_0[1];
1849
+ const mpcResponseKey_0 = args_0[2];
937
1850
  if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 32)) {
938
1851
  __compactRuntime.typeError('verifyRespondBidirectionalEvent32',
939
- 'argument 3',
940
- 'circuits.compact line 60 char 1',
1852
+ 'argument 1',
1853
+ 'circuits.compact line 119 char 1',
941
1854
  'Bytes<32>',
942
1855
  serializedOutput_0)
943
1856
  }
944
- if (!(typeof(respondBidirectionalEvent_0) === 'object' && typeof(respondBidirectionalEvent_0.signature) === 'object' && typeof(respondBidirectionalEvent_0.signature.bigR) === 'object' && respondBidirectionalEvent_0.signature.bigR.x.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.signature.bigR.x.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.signature.bigR.x.length === 32 && respondBidirectionalEvent_0.signature.bigR.y.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.signature.bigR.y.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.signature.bigR.y.length === 32 && respondBidirectionalEvent_0.signature.s.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.signature.s.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.signature.s.length === 32 && typeof(respondBidirectionalEvent_0.signature.recoveryId) === 'bigint' && respondBidirectionalEvent_0.signature.recoveryId >= 0n && respondBidirectionalEvent_0.signature.recoveryId <= 255n)) {
1857
+ if (!(typeof(respondBidirectionalEvent_0) === 'object' && respondBidirectionalEvent_0.requestId.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.requestId.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.requestId.length === 32 && typeof(respondBidirectionalEvent_0.blockHeight) === 'bigint' && respondBidirectionalEvent_0.blockHeight >= 0n && respondBidirectionalEvent_0.blockHeight <= 18446744073709551615n && typeof(respondBidirectionalEvent_0.outputKind) === 'number' && respondBidirectionalEvent_0.outputKind >= 0 && respondBidirectionalEvent_0.outputKind <= 2 && typeof(respondBidirectionalEvent_0.serializedOutputLength) === 'bigint' && respondBidirectionalEvent_0.serializedOutputLength >= 0n && respondBidirectionalEvent_0.serializedOutputLength <= 18446744073709551615n && respondBidirectionalEvent_0.digest.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.digest.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.digest.length === 32 && typeof(respondBidirectionalEvent_0.signature) === 'object' && typeof(respondBidirectionalEvent_0.signature.bigR) === 'object' && respondBidirectionalEvent_0.signature.bigR.x.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.signature.bigR.x.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.signature.bigR.x.length === 32 && respondBidirectionalEvent_0.signature.bigR.y.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.signature.bigR.y.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.signature.bigR.y.length === 32 && respondBidirectionalEvent_0.signature.s.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.signature.s.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.signature.s.length === 32 && typeof(respondBidirectionalEvent_0.signature.recoveryId) === 'bigint' && respondBidirectionalEvent_0.signature.recoveryId >= 0n && respondBidirectionalEvent_0.signature.recoveryId <= 255n)) {
945
1858
  __compactRuntime.typeError('verifyRespondBidirectionalEvent32',
946
- 'argument 4',
947
- 'circuits.compact line 60 char 1',
948
- 'struct RespondBidirectionalEvent<signature: struct Signature<bigR: struct AffinePoint<x: Bytes<32>, y: Bytes<32>>, s: Bytes<32>, recoveryId: Uint<0..256>>>',
1859
+ 'argument 2',
1860
+ 'circuits.compact line 119 char 1',
1861
+ 'struct RespondBidirectionalEventV1<requestId: Bytes<32>, blockHeight: Uint<0..18446744073709551616>, outputKind: Enum<OutputKind, executed, failed, unviable>, serializedOutputLength: Uint<0..18446744073709551616>, digest: Bytes<32>, signature: struct Signature<bigR: struct AffinePoint<x: Bytes<32>, y: Bytes<32>>, s: Bytes<32>, recoveryId: Uint<0..256>>>',
949
1862
  respondBidirectionalEvent_0)
950
1863
  }
951
- return _dummyContract._verifyRespondBidirectionalEvent32_0(requestId_0,
952
- blockHeight_0,
953
- serializedOutput_0,
1864
+ return _dummyContract._verifyRespondBidirectionalEvent32_0(serializedOutput_0,
954
1865
  respondBidirectionalEvent_0,
955
1866
  mpcResponseKey_0);
956
1867
  }