@sig-net/midnight 0.24.0-rc.2 → 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 (42) hide show
  1. package/README.md +13 -21
  2. package/dist/compact-descriptors.d.ts +17 -4
  3. package/dist/compact-descriptors.d.ts.map +1 -1
  4. package/dist/compact-descriptors.js +29 -29
  5. package/dist/compact-descriptors.js.map +1 -1
  6. package/dist/constants.d.ts +1 -1
  7. package/dist/constants.js +1 -1
  8. package/dist/ecdsa-attestation.d.ts +3 -3
  9. package/dist/ecdsa-attestation.js +4 -4
  10. package/dist/ecdsa-attestation.js.map +1 -1
  11. package/dist/index.d.ts +1 -1
  12. package/dist/index.d.ts.map +1 -1
  13. package/dist/index.js +1 -1
  14. package/dist/index.js.map +1 -1
  15. package/dist/managed/compiler/contract-info.json +952 -2
  16. package/dist/managed/compiler/contract-manifest.json +8 -8
  17. package/dist/managed/contract/index.d.ts +221 -0
  18. package/dist/managed/contract/index.js +915 -201
  19. package/dist/managed/contract/index.js.map +1 -1
  20. package/dist/mpc-output-cache.js +2 -2
  21. package/dist/mpc-output-cache.js.map +1 -1
  22. package/dist/signature-requests-state-reader.js +3 -3
  23. package/dist/signature-requests-state-reader.js.map +1 -1
  24. package/dist/signet-contract-events.d.ts +4 -4
  25. package/dist/signet-evtype2tx-record-decoding.d.ts.map +1 -1
  26. package/dist/signet-evtype2tx-record-decoding.js +5 -4
  27. package/dist/signet-evtype2tx-record-decoding.js.map +1 -1
  28. package/dist/signet-evtype2tx-requests.d.ts +17 -12
  29. package/dist/signet-evtype2tx-requests.d.ts.map +1 -1
  30. package/dist/signet-evtype2tx-requests.js +85 -16
  31. package/dist/signet-evtype2tx-requests.js.map +1 -1
  32. package/dist/signet-request-id.d.ts +5 -3
  33. package/dist/signet-request-id.d.ts.map +1 -1
  34. package/dist/signet-request-id.js +14 -12
  35. package/dist/signet-request-id.js.map +1 -1
  36. package/dist/signet-requests.d.ts +30 -34
  37. package/dist/signet-requests.d.ts.map +1 -1
  38. package/dist/signet-requests.js +15 -23
  39. package/dist/signet-requests.js.map +1 -1
  40. package/package.json +2 -2
  41. package/src/Signet.compact +181 -72
  42. package/src/circuits.compact +42 -9
@@ -8,265 +8,581 @@ export var OutputKind;
8
8
  OutputKind[OutputKind['unviable'] = 2] = 'unviable';
9
9
  })(OutputKind || (OutputKind = {}));
10
10
 
11
- const _descriptor_0 = new __compactRuntime.CompactTypeBytes(0);
11
+ const _descriptor_0 = new __compactRuntime.CompactTypeBytes(32);
12
12
 
13
- const _descriptor_1 = new __compactRuntime.CompactTypeBytes(32);
13
+ const _descriptor_1 = new __compactRuntime.CompactTypeUnsignedInteger(18446744073709551615n, 8);
14
14
 
15
- const _descriptor_2 = new __compactRuntime.CompactTypeUnsignedInteger(18446744073709551615n, 8);
16
-
17
- const _descriptor_3 = new __compactRuntime.CompactTypeEnum(2, 1);
15
+ const _descriptor_2 = new __compactRuntime.CompactTypeEnum(2, 1);
18
16
 
19
17
  class _AffinePoint_0 {
20
18
  alignment() {
21
- return _descriptor_1.alignment().concat(_descriptor_1.alignment());
19
+ return _descriptor_0.alignment().concat(_descriptor_0.alignment());
22
20
  }
23
21
  fromValue(value_0) {
24
22
  return {
25
- x: _descriptor_1.fromValue(value_0),
26
- y: _descriptor_1.fromValue(value_0)
23
+ x: _descriptor_0.fromValue(value_0),
24
+ y: _descriptor_0.fromValue(value_0)
27
25
  }
28
26
  }
29
27
  toValue(value_0) {
30
- return _descriptor_1.toValue(value_0.x).concat(_descriptor_1.toValue(value_0.y));
28
+ return _descriptor_0.toValue(value_0.x).concat(_descriptor_0.toValue(value_0.y));
31
29
  }
32
30
  }
33
31
 
34
- const _descriptor_4 = new _AffinePoint_0();
32
+ const _descriptor_3 = new _AffinePoint_0();
35
33
 
36
- const _descriptor_5 = new __compactRuntime.CompactTypeUnsignedInteger(255n, 1);
34
+ const _descriptor_4 = new __compactRuntime.CompactTypeUnsignedInteger(255n, 1);
37
35
 
38
36
  class _Signature_0 {
39
37
  alignment() {
40
- return _descriptor_4.alignment().concat(_descriptor_1.alignment().concat(_descriptor_5.alignment()));
38
+ return _descriptor_3.alignment().concat(_descriptor_0.alignment().concat(_descriptor_4.alignment()));
41
39
  }
42
40
  fromValue(value_0) {
43
41
  return {
44
- bigR: _descriptor_4.fromValue(value_0),
45
- s: _descriptor_1.fromValue(value_0),
46
- recoveryId: _descriptor_5.fromValue(value_0)
42
+ bigR: _descriptor_3.fromValue(value_0),
43
+ s: _descriptor_0.fromValue(value_0),
44
+ recoveryId: _descriptor_4.fromValue(value_0)
47
45
  }
48
46
  }
49
47
  toValue(value_0) {
50
- return _descriptor_4.toValue(value_0.bigR).concat(_descriptor_1.toValue(value_0.s).concat(_descriptor_5.toValue(value_0.recoveryId)));
48
+ return _descriptor_3.toValue(value_0.bigR).concat(_descriptor_0.toValue(value_0.s).concat(_descriptor_4.toValue(value_0.recoveryId)));
51
49
  }
52
50
  }
53
51
 
54
- const _descriptor_6 = new _Signature_0();
52
+ const _descriptor_5 = new _Signature_0();
55
53
 
56
- class _RespondBidirectionalEvent_0 {
54
+ class _RespondBidirectionalEventV1_0 {
57
55
  alignment() {
58
- return _descriptor_1.alignment().concat(_descriptor_2.alignment().concat(_descriptor_3.alignment().concat(_descriptor_2.alignment().concat(_descriptor_1.alignment().concat(_descriptor_6.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())))));
59
57
  }
60
58
  fromValue(value_0) {
61
59
  return {
62
- requestId: _descriptor_1.fromValue(value_0),
63
- blockHeight: _descriptor_2.fromValue(value_0),
64
- outputKind: _descriptor_3.fromValue(value_0),
65
- serializedOutputLength: _descriptor_2.fromValue(value_0),
66
- digest: _descriptor_1.fromValue(value_0),
67
- signature: _descriptor_6.fromValue(value_0)
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),
65
+ signature: _descriptor_5.fromValue(value_0)
68
66
  }
69
67
  }
70
68
  toValue(value_0) {
71
- return _descriptor_1.toValue(value_0.requestId).concat(_descriptor_2.toValue(value_0.blockHeight).concat(_descriptor_3.toValue(value_0.outputKind).concat(_descriptor_2.toValue(value_0.serializedOutputLength).concat(_descriptor_1.toValue(value_0.digest).concat(_descriptor_6.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))))));
72
70
  }
73
71
  }
74
72
 
75
- const _descriptor_7 = new _RespondBidirectionalEvent_0();
73
+ const _descriptor_6 = new _RespondBidirectionalEventV1_0();
76
74
 
77
- const _descriptor_8 = __compactRuntime.CompactTypeSecp256k1Point;
75
+ const _descriptor_7 = __compactRuntime.CompactTypeSecp256k1Point;
78
76
 
79
- const _descriptor_9 = __compactRuntime.CompactTypeBoolean;
77
+ const _descriptor_8 = __compactRuntime.CompactTypeBoolean;
80
78
 
81
- const _descriptor_10 = new __compactRuntime.CompactTypeBytes(100);
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
+ }
82
92
 
83
- const _descriptor_11 = new __compactRuntime.CompactTypeBytes(1);
93
+ const _descriptor_9 = new _ContractAddress_0();
84
94
 
85
- const _descriptor_12 = new __compactRuntime.CompactTypeBytes(2);
95
+ const _descriptor_10 = new __compactRuntime.CompactTypeEnum(1, 1);
86
96
 
87
- const _descriptor_13 = new __compactRuntime.CompactTypeUnsignedInteger(340282366920938463463374607431768211455n, 16);
97
+ const _descriptor_11 = new __compactRuntime.CompactTypeEnum(1, 1);
88
98
 
89
- const _descriptor_14 = new __compactRuntime.CompactTypeBytes(20);
99
+ const _descriptor_12 = new __compactRuntime.CompactTypeUnsignedInteger(340282366920938463463374607431768211455n, 16);
90
100
 
91
- const _descriptor_15 = __compactRuntime.CompactTypeSecp256k1Scalar;
101
+ const _descriptor_13 = new __compactRuntime.CompactTypeBytes(20);
92
102
 
93
- class _ContractAddress_0 {
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 {
110
+ alignment() {
111
+ return _descriptor_14.alignment().concat(_descriptor_15.alignment().concat(_descriptor_16.alignment()));
112
+ }
113
+ fromValue(value_0) {
114
+ return {
115
+ selector: _descriptor_14.fromValue(value_0),
116
+ noWords: _descriptor_15.fromValue(value_0),
117
+ words: _descriptor_16.fromValue(value_0)
118
+ }
119
+ }
120
+ toValue(value_0) {
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 {
94
263
  alignment() {
95
- return _descriptor_1.alignment();
264
+ return _descriptor_13.alignment().concat(_descriptor_4.alignment().concat(_descriptor_30.alignment()));
96
265
  }
97
266
  fromValue(value_0) {
98
267
  return {
99
- bytes: _descriptor_1.fromValue(value_0)
268
+ address: _descriptor_13.fromValue(value_0),
269
+ storageKeyCount: _descriptor_4.fromValue(value_0),
270
+ storageKeys: _descriptor_30.fromValue(value_0)
100
271
  }
101
272
  }
102
273
  toValue(value_0) {
103
- return _descriptor_1.toValue(value_0.bytes);
274
+ return _descriptor_13.toValue(value_0.address).concat(_descriptor_4.toValue(value_0.storageKeyCount).concat(_descriptor_30.toValue(value_0.storageKeys)));
104
275
  }
105
276
  }
106
277
 
107
- const _descriptor_16 = new _ContractAddress_0();
278
+ const _descriptor_31 = new _EvmAccessListEntry_1();
108
279
 
109
- const _descriptor_17 = new __compactRuntime.CompactTypeVector(4, _descriptor_5);
280
+ const _descriptor_32 = new __compactRuntime.CompactTypeVector(0, _descriptor_31);
110
281
 
111
- const _descriptor_18 = new __compactRuntime.CompactTypeBytes(128);
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))))))))));
302
+ }
303
+ }
304
+
305
+ const _descriptor_33 = new _EvmType2TxParams_1();
306
+
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);
340
+
341
+ const _descriptor_39 = new __compactRuntime.CompactTypeBytes(128);
112
342
 
113
343
  class _SignBidirectionalEventNotification_0 {
114
344
  alignment() {
115
- return _descriptor_5.alignment().concat(_descriptor_18.alignment());
345
+ return _descriptor_4.alignment().concat(_descriptor_39.alignment());
346
+ }
347
+ fromValue(value_0) {
348
+ return {
349
+ version: _descriptor_4.fromValue(value_0),
350
+ payload: _descriptor_39.fromValue(value_0)
351
+ }
352
+ }
353
+ toValue(value_0) {
354
+ return _descriptor_4.toValue(value_0.version).concat(_descriptor_39.toValue(value_0.payload));
355
+ }
356
+ }
357
+
358
+ const _descriptor_40 = new _SignBidirectionalEventNotification_0();
359
+
360
+ const _descriptor_41 = __compactRuntime.CompactTypeSecp256k1Scalar;
361
+
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()))))));
116
365
  }
117
366
  fromValue(value_0) {
118
367
  return {
119
- version: _descriptor_5.fromValue(value_0),
120
- payload: _descriptor_18.fromValue(value_0)
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)
121
375
  }
122
376
  }
123
377
  toValue(value_0) {
124
- return _descriptor_5.toValue(value_0.version).concat(_descriptor_18.toValue(value_0.payload));
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)))))));
125
379
  }
126
380
  }
127
381
 
128
- const _descriptor_19 = new _SignBidirectionalEventNotification_0();
382
+ const _descriptor_42 = new _RequestIdPreimageV1_0();
129
383
 
130
- const _descriptor_20 = __compactRuntime.CompactTypeSecp256k1Base;
384
+ const _descriptor_43 = __compactRuntime.CompactTypeSecp256k1Base;
131
385
 
132
- const _descriptor_21 = __compactRuntime.CompactTypeField;
386
+ const _descriptor_44 = __compactRuntime.CompactTypeField;
133
387
 
134
388
  class _tuple_0 {
135
389
  alignment() {
136
- return _descriptor_1.alignment().concat(_descriptor_2.alignment().concat(_descriptor_3.alignment().concat(_descriptor_2.alignment().concat(_descriptor_0.alignment()))));
390
+ return _descriptor_0.alignment().concat(_descriptor_1.alignment().concat(_descriptor_2.alignment().concat(_descriptor_1.alignment().concat(_descriptor_0.alignment()))));
137
391
  }
138
392
  fromValue(value_0) {
139
393
  return [
394
+ _descriptor_0.fromValue(value_0),
140
395
  _descriptor_1.fromValue(value_0),
141
396
  _descriptor_2.fromValue(value_0),
142
- _descriptor_3.fromValue(value_0),
143
- _descriptor_2.fromValue(value_0),
397
+ _descriptor_1.fromValue(value_0),
144
398
  _descriptor_0.fromValue(value_0)
145
399
  ]
146
400
  }
147
401
  toValue(value_0) {
148
- return _descriptor_1.toValue(value_0[0]).concat(_descriptor_2.toValue(value_0[1]).concat(_descriptor_3.toValue(value_0[2]).concat(_descriptor_2.toValue(value_0[3]).concat(_descriptor_0.toValue(value_0[4])))));
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])))));
149
403
  }
150
404
  }
151
405
 
152
- const _descriptor_22 = new _tuple_0();
406
+ const _descriptor_45 = new _tuple_0();
153
407
 
154
408
  class _tuple_1 {
155
409
  alignment() {
156
- return _descriptor_1.alignment().concat(_descriptor_2.alignment().concat(_descriptor_3.alignment().concat(_descriptor_2.alignment().concat(_descriptor_1.alignment()))));
410
+ return _descriptor_44.alignment().concat(_descriptor_13.alignment().concat(_descriptor_4.alignment().concat(_descriptor_44.alignment())));
157
411
  }
158
412
  fromValue(value_0) {
159
413
  return [
160
- _descriptor_1.fromValue(value_0),
161
- _descriptor_2.fromValue(value_0),
162
- _descriptor_3.fromValue(value_0),
163
- _descriptor_2.fromValue(value_0),
164
- _descriptor_1.fromValue(value_0)
414
+ _descriptor_44.fromValue(value_0),
415
+ _descriptor_13.fromValue(value_0),
416
+ _descriptor_4.fromValue(value_0),
417
+ _descriptor_44.fromValue(value_0)
165
418
  ]
166
419
  }
167
420
  toValue(value_0) {
168
- return _descriptor_1.toValue(value_0[0]).concat(_descriptor_2.toValue(value_0[1]).concat(_descriptor_3.toValue(value_0[2]).concat(_descriptor_2.toValue(value_0[3]).concat(_descriptor_1.toValue(value_0[4])))));
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]))));
169
422
  }
170
423
  }
171
424
 
172
- const _descriptor_23 = new _tuple_1();
425
+ const _descriptor_46 = new _tuple_1();
173
426
 
174
427
  class _tuple_2 {
175
428
  alignment() {
176
- return _descriptor_1.alignment().concat(_descriptor_2.alignment().concat(_descriptor_3.alignment().concat(_descriptor_2.alignment().concat(_descriptor_12.alignment()))));
429
+ return _descriptor_0.alignment().concat(_descriptor_1.alignment().concat(_descriptor_2.alignment().concat(_descriptor_1.alignment().concat(_descriptor_26.alignment()))));
177
430
  }
178
431
  fromValue(value_0) {
179
432
  return [
433
+ _descriptor_0.fromValue(value_0),
180
434
  _descriptor_1.fromValue(value_0),
181
435
  _descriptor_2.fromValue(value_0),
182
- _descriptor_3.fromValue(value_0),
183
- _descriptor_2.fromValue(value_0),
184
- _descriptor_12.fromValue(value_0)
436
+ _descriptor_1.fromValue(value_0),
437
+ _descriptor_26.fromValue(value_0)
185
438
  ]
186
439
  }
187
440
  toValue(value_0) {
188
- return _descriptor_1.toValue(value_0[0]).concat(_descriptor_2.toValue(value_0[1]).concat(_descriptor_3.toValue(value_0[2]).concat(_descriptor_2.toValue(value_0[3]).concat(_descriptor_12.toValue(value_0[4])))));
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])))));
189
442
  }
190
443
  }
191
444
 
192
- const _descriptor_24 = new _tuple_2();
445
+ const _descriptor_47 = new _tuple_2();
193
446
 
194
447
  class _tuple_3 {
195
448
  alignment() {
196
- return _descriptor_1.alignment().concat(_descriptor_2.alignment().concat(_descriptor_3.alignment().concat(_descriptor_2.alignment().concat(_descriptor_10.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),
480
+ _descriptor_0.fromValue(value_0)
481
+ ]
482
+ }
483
+ toValue(value_0) {
484
+ return _descriptor_44.toValue(value_0[0]).concat(_descriptor_0.toValue(value_0[1]));
485
+ }
486
+ }
487
+
488
+ const _descriptor_49 = new _tuple_4();
489
+
490
+ class _tuple_5 {
491
+ alignment() {
492
+ return _descriptor_0.alignment().concat(_descriptor_1.alignment().concat(_descriptor_2.alignment().concat(_descriptor_1.alignment().concat(_descriptor_36.alignment()))));
197
493
  }
198
494
  fromValue(value_0) {
199
495
  return [
496
+ _descriptor_0.fromValue(value_0),
200
497
  _descriptor_1.fromValue(value_0),
201
498
  _descriptor_2.fromValue(value_0),
202
- _descriptor_3.fromValue(value_0),
499
+ _descriptor_1.fromValue(value_0),
500
+ _descriptor_36.fromValue(value_0)
501
+ ]
502
+ }
503
+ toValue(value_0) {
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])))));
505
+ }
506
+ }
507
+
508
+ const _descriptor_50 = new _tuple_5();
509
+
510
+ class _tuple_6 {
511
+ alignment() {
512
+ return _descriptor_0.alignment().concat(_descriptor_1.alignment().concat(_descriptor_2.alignment().concat(_descriptor_1.alignment().concat(_descriptor_35.alignment()))));
513
+ }
514
+ fromValue(value_0) {
515
+ return [
516
+ _descriptor_0.fromValue(value_0),
517
+ _descriptor_1.fromValue(value_0),
203
518
  _descriptor_2.fromValue(value_0),
204
- _descriptor_10.fromValue(value_0)
519
+ _descriptor_1.fromValue(value_0),
520
+ _descriptor_35.fromValue(value_0)
205
521
  ]
206
522
  }
207
523
  toValue(value_0) {
208
- return _descriptor_1.toValue(value_0[0]).concat(_descriptor_2.toValue(value_0[1]).concat(_descriptor_3.toValue(value_0[2]).concat(_descriptor_2.toValue(value_0[3]).concat(_descriptor_10.toValue(value_0[4])))));
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])))));
209
525
  }
210
526
  }
211
527
 
212
- const _descriptor_25 = new _tuple_3();
528
+ const _descriptor_51 = new _tuple_6();
213
529
 
214
530
  class _Secp256k1EcdsaSignature_0 {
215
531
  alignment() {
216
- return _descriptor_15.alignment().concat(_descriptor_15.alignment());
532
+ return _descriptor_41.alignment().concat(_descriptor_41.alignment());
217
533
  }
218
534
  fromValue(value_0) {
219
535
  return {
220
- r: _descriptor_15.fromValue(value_0),
221
- s: _descriptor_15.fromValue(value_0)
536
+ r: _descriptor_41.fromValue(value_0),
537
+ s: _descriptor_41.fromValue(value_0)
222
538
  }
223
539
  }
224
540
  toValue(value_0) {
225
- return _descriptor_15.toValue(value_0.r).concat(_descriptor_15.toValue(value_0.s));
541
+ return _descriptor_41.toValue(value_0.r).concat(_descriptor_41.toValue(value_0.s));
226
542
  }
227
543
  }
228
544
 
229
- const _descriptor_26 = new _Secp256k1EcdsaSignature_0();
545
+ const _descriptor_52 = new _Secp256k1EcdsaSignature_0();
230
546
 
231
- class _tuple_4 {
547
+ class _tuple_7 {
232
548
  alignment() {
233
- return _descriptor_1.alignment().concat(_descriptor_2.alignment().concat(_descriptor_3.alignment().concat(_descriptor_2.alignment().concat(_descriptor_11.alignment()))));
549
+ return _descriptor_0.alignment().concat(_descriptor_1.alignment().concat(_descriptor_2.alignment().concat(_descriptor_1.alignment().concat(_descriptor_37.alignment()))));
234
550
  }
235
551
  fromValue(value_0) {
236
552
  return [
553
+ _descriptor_0.fromValue(value_0),
237
554
  _descriptor_1.fromValue(value_0),
238
555
  _descriptor_2.fromValue(value_0),
239
- _descriptor_3.fromValue(value_0),
240
- _descriptor_2.fromValue(value_0),
241
- _descriptor_11.fromValue(value_0)
556
+ _descriptor_1.fromValue(value_0),
557
+ _descriptor_37.fromValue(value_0)
242
558
  ]
243
559
  }
244
560
  toValue(value_0) {
245
- return _descriptor_1.toValue(value_0[0]).concat(_descriptor_2.toValue(value_0[1]).concat(_descriptor_3.toValue(value_0[2]).concat(_descriptor_2.toValue(value_0[3]).concat(_descriptor_11.toValue(value_0[4])))));
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])))));
246
562
  }
247
563
  }
248
564
 
249
- const _descriptor_27 = new _tuple_4();
565
+ const _descriptor_53 = new _tuple_7();
250
566
 
251
567
  class _Either_0 {
252
568
  alignment() {
253
- return _descriptor_9.alignment().concat(_descriptor_1.alignment().concat(_descriptor_1.alignment()));
569
+ return _descriptor_8.alignment().concat(_descriptor_0.alignment().concat(_descriptor_0.alignment()));
254
570
  }
255
571
  fromValue(value_0) {
256
572
  return {
257
- is_left: _descriptor_9.fromValue(value_0),
258
- left: _descriptor_1.fromValue(value_0),
259
- right: _descriptor_1.fromValue(value_0)
573
+ is_left: _descriptor_8.fromValue(value_0),
574
+ left: _descriptor_0.fromValue(value_0),
575
+ right: _descriptor_0.fromValue(value_0)
260
576
  }
261
577
  }
262
578
  toValue(value_0) {
263
- return _descriptor_9.toValue(value_0.is_left).concat(_descriptor_1.toValue(value_0.left).concat(_descriptor_1.toValue(value_0.right)));
579
+ return _descriptor_8.toValue(value_0.is_left).concat(_descriptor_0.toValue(value_0.left).concat(_descriptor_0.toValue(value_0.right)));
264
580
  }
265
581
  }
266
582
 
267
- const _descriptor_28 = new _Either_0();
583
+ const _descriptor_54 = new _Either_0();
268
584
 
269
- const _descriptor_29 = new __compactRuntime.CompactTypeUnsignedInteger(4294967295n, 4);
585
+ const _descriptor_55 = new __compactRuntime.CompactTypeUnsignedInteger(4294967295n, 4);
270
586
 
271
587
  export class Contract {
272
588
  witnesses;
@@ -280,6 +596,9 @@ export class Contract {
280
596
  }
281
597
  this.witnesses = witnesses_0;
282
598
  this.circuits = {
599
+ async calculateRequestIdV1(context, ...args_1) {
600
+ return { result: pureCircuits.calculateRequestIdV1(...args_1), context };
601
+ },
283
602
  async constructSignBidirectionalEventNotificationV1(context, ...args_1) {
284
603
  return { result: pureCircuits.constructSignBidirectionalEventNotificationV1(...args_1), context };
285
604
  },
@@ -316,6 +635,18 @@ export class Contract {
316
635
  async calculateSignetAttestationDigest100(context, ...args_1) {
317
636
  return { result: pureCircuits.calculateSignetAttestationDigest100(...args_1), context };
318
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
+ },
319
650
  async verifyRespondBidirectionalEvent0(context, ...args_1) {
320
651
  return { result: pureCircuits.verifyRespondBidirectionalEvent0(...args_1), context };
321
652
  },
@@ -419,23 +750,39 @@ export class Contract {
419
750
  r_0;
420
751
  }
421
752
  _transientHash_0(value_0) {
422
- const result_0 = __compactRuntime.transientHash(_descriptor_27, value_0);
753
+ const result_0 = __compactRuntime.transientHash(_descriptor_53, value_0);
423
754
  return result_0;
424
755
  }
425
756
  _transientHash_1(value_0) {
426
- const result_0 = __compactRuntime.transientHash(_descriptor_24, value_0);
757
+ const result_0 = __compactRuntime.transientHash(_descriptor_50, value_0);
427
758
  return result_0;
428
759
  }
429
760
  _transientHash_2(value_0) {
430
- const result_0 = __compactRuntime.transientHash(_descriptor_25, value_0);
761
+ const result_0 = __compactRuntime.transientHash(_descriptor_51, value_0);
431
762
  return result_0;
432
763
  }
433
764
  _transientHash_3(value_0) {
434
- const result_0 = __compactRuntime.transientHash(_descriptor_22, value_0);
765
+ const result_0 = __compactRuntime.transientHash(_descriptor_48, value_0);
435
766
  return result_0;
436
767
  }
437
768
  _transientHash_4(value_0) {
438
- const result_0 = __compactRuntime.transientHash(_descriptor_23, 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);
439
786
  return result_0;
440
787
  }
441
788
  _upgradeFromTransient_0(x_0) {
@@ -466,6 +813,9 @@ export class Contract {
466
813
  const result_0 = __compactRuntime.secp256k1MulGenerator(b_0);
467
814
  return result_0;
468
815
  }
816
+ _calculateRequestIdV1_0(preimage_0) {
817
+ return this._upgradeFromTransient_0(this._transientHash_8(preimage_0));
818
+ }
469
819
  _constructSignBidirectionalEventNotificationV1_0(callerAddress_0,
470
820
  requestsPathDepth_0,
471
821
  requestsPath_0)
@@ -481,10 +831,10 @@ export class Contract {
481
831
  ...Array.from(new Uint8Array(91), BigInt)],
482
832
  Number) };
483
833
  }
484
- _calculateSignetAttestationDigest_0(requestId_0,
485
- blockHeight_0,
486
- outputKind_0,
487
- serializedOutput_0)
834
+ _calculateSignetAttestationDigestV1_0(requestId_0,
835
+ blockHeight_0,
836
+ outputKind_0,
837
+ serializedOutput_0)
488
838
  {
489
839
  return this._upgradeFromTransient_0(this._transientHash_0([requestId_0,
490
840
  blockHeight_0,
@@ -492,10 +842,10 @@ export class Contract {
492
842
  1n,
493
843
  serializedOutput_0]));
494
844
  }
495
- _calculateSignetAttestationDigest_1(requestId_0,
496
- blockHeight_0,
497
- outputKind_0,
498
- serializedOutput_0)
845
+ _calculateSignetAttestationDigestV1_1(requestId_0,
846
+ blockHeight_0,
847
+ outputKind_0,
848
+ serializedOutput_0)
499
849
  {
500
850
  return this._upgradeFromTransient_0(this._transientHash_1([requestId_0,
501
851
  blockHeight_0,
@@ -503,10 +853,10 @@ export class Contract {
503
853
  2n,
504
854
  serializedOutput_0]));
505
855
  }
506
- _calculateSignetAttestationDigest_2(requestId_0,
507
- blockHeight_0,
508
- outputKind_0,
509
- serializedOutput_0)
856
+ _calculateSignetAttestationDigestV1_2(requestId_0,
857
+ blockHeight_0,
858
+ outputKind_0,
859
+ serializedOutput_0)
510
860
  {
511
861
  return this._upgradeFromTransient_0(this._transientHash_2([requestId_0,
512
862
  blockHeight_0,
@@ -514,77 +864,327 @@ export class Contract {
514
864
  100n,
515
865
  serializedOutput_0]));
516
866
  }
517
- _calculateSignetAttestationDigest_3(requestId_0,
518
- blockHeight_0,
519
- outputKind_0,
520
- serializedOutput_0)
867
+ _calculateSignetAttestationDigestV1_3(requestId_0,
868
+ blockHeight_0,
869
+ outputKind_0,
870
+ serializedOutput_0)
521
871
  {
522
- return this._upgradeFromTransient_0(this._transientHash_3([requestId_0,
872
+ return this._upgradeFromTransient_0(this._transientHash_6([requestId_0,
523
873
  blockHeight_0,
524
874
  outputKind_0,
525
875
  0n,
526
876
  serializedOutput_0]));
527
877
  }
528
- _calculateSignetAttestationDigest_4(requestId_0,
529
- blockHeight_0,
530
- outputKind_0,
531
- serializedOutput_0)
878
+ _calculateSignetAttestationDigestV1_4(requestId_0,
879
+ blockHeight_0,
880
+ outputKind_0,
881
+ serializedOutput_0)
532
882
  {
533
- return this._upgradeFromTransient_0(this._transientHash_4([requestId_0,
883
+ return this._upgradeFromTransient_0(this._transientHash_7([requestId_0,
534
884
  blockHeight_0,
535
885
  outputKind_0,
536
886
  32n,
537
887
  serializedOutput_0]));
538
888
  }
539
- _verifyRespondBidirectionalEvent_0(serializedOutput_0,
540
- respondBidirectionalEvent_0,
541
- mpcResponseKey_0)
889
+ _verifyRespondBidirectionalEventV1_0(serializedOutput_0,
890
+ respondBidirectionalEvent_0,
891
+ mpcResponseKey_0)
542
892
  {
543
- const digest_0 = this._calculateSignetAttestationDigest_3(respondBidirectionalEvent_0.requestId,
544
- respondBidirectionalEvent_0.blockHeight,
545
- respondBidirectionalEvent_0.outputKind,
546
- serializedOutput_0);
893
+ const digest_0 = this._calculateSignetAttestationDigestV1_3(respondBidirectionalEvent_0.requestId,
894
+ respondBidirectionalEvent_0.blockHeight,
895
+ respondBidirectionalEvent_0.outputKind,
896
+ serializedOutput_0);
547
897
  return this._secp256k1EcdsaVerify_0(digest_0,
548
898
  { r:
549
899
  __compactRuntime.convertBytesToField(115792089237316195423570985008687907852837564279074904382605163141518161494336n,
550
900
  32,
551
901
  respondBidirectionalEvent_0.signature.bigR.x,
552
902
  'Secp256k1Scalar',
553
- 'Signet.compact line 415 char 12'),
903
+ 'Signet.compact line 416 char 12'),
554
904
  s:
555
905
  __compactRuntime.convertBytesToField(115792089237316195423570985008687907852837564279074904382605163141518161494336n,
556
906
  32,
557
907
  respondBidirectionalEvent_0.signature.s,
558
908
  'Secp256k1Scalar',
559
- 'Signet.compact line 416 char 12') },
909
+ 'Signet.compact line 417 char 12') },
560
910
  mpcResponseKey_0);
561
911
  }
562
- _verifyRespondBidirectionalEvent_1(serializedOutput_0,
563
- respondBidirectionalEvent_0,
564
- mpcResponseKey_0)
912
+ _verifyRespondBidirectionalEventV1_1(serializedOutput_0,
913
+ respondBidirectionalEvent_0,
914
+ mpcResponseKey_0)
565
915
  {
566
- const digest_0 = this._calculateSignetAttestationDigest_4(respondBidirectionalEvent_0.requestId,
567
- respondBidirectionalEvent_0.blockHeight,
568
- respondBidirectionalEvent_0.outputKind,
569
- serializedOutput_0);
916
+ const digest_0 = this._calculateSignetAttestationDigestV1_4(respondBidirectionalEvent_0.requestId,
917
+ respondBidirectionalEvent_0.blockHeight,
918
+ respondBidirectionalEvent_0.outputKind,
919
+ serializedOutput_0);
570
920
  return this._secp256k1EcdsaVerify_0(digest_0,
571
921
  { r:
572
922
  __compactRuntime.convertBytesToField(115792089237316195423570985008687907852837564279074904382605163141518161494336n,
573
923
  32,
574
924
  respondBidirectionalEvent_0.signature.bigR.x,
575
925
  'Secp256k1Scalar',
576
- 'Signet.compact line 415 char 12'),
926
+ 'Signet.compact line 416 char 12'),
577
927
  s:
578
928
  __compactRuntime.convertBytesToField(115792089237316195423570985008687907852837564279074904382605163141518161494336n,
579
929
  32,
580
930
  respondBidirectionalEvent_0.signature.s,
581
931
  'Secp256k1Scalar',
582
- 'Signet.compact line 416 char 12') },
932
+ 'Signet.compact line 417 char 12') },
583
933
  mpcResponseKey_0);
584
934
  }
585
935
  _ethereumCaip2Id_0() {
586
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]);
587
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
+ }
588
1188
  _evmAddressAbiWord_0(addr_0) {
589
1189
  return Uint8Array.from([...Array.from(new Uint8Array(12), BigInt),
590
1190
  ...Array.from(addr_0, BigInt)],
@@ -593,7 +1193,7 @@ export class Contract {
593
1193
  _numericAbiWord_0(value_0) {
594
1194
  const le_0 = Array.from(__compactRuntime.convertBigintToBytes(16,
595
1195
  value_0,
596
- 'Signet.compact line 505 char 17'),
1196
+ 'Signet.compact line 614 char 17'),
597
1197
  BigInt);
598
1198
  return Uint8Array.from([...Array.from(new Uint8Array(16), BigInt),
599
1199
  le_0[15],
@@ -675,7 +1275,7 @@ export class Contract {
675
1275
  v_0[31]);
676
1276
  return ((t1) => {
677
1277
  if (t1 > 340282366920938463463374607431768211455n) {
678
- throw new __compactRuntime.CompactError('Signet.compact line 557 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');
679
1279
  }
680
1280
  return t1;
681
1281
  })(b15_0);
@@ -686,7 +1286,7 @@ export class Contract {
686
1286
  ((e, i) => e.slice(i, i+31))(word_0,
687
1287
  Number(0n)),
688
1288
  'Field',
689
- 'Signet.compact line 563 char 12')
1289
+ 'Signet.compact line 672 char 12')
690
1290
  ===
691
1291
  0n,
692
1292
  'ABI word is not a canonical Boolean');
@@ -695,7 +1295,7 @@ export class Contract {
695
1295
  ((e, i) => e.slice(i, i+1))(word_0,
696
1296
  Number(31n)),
697
1297
  'Field',
698
- 'Signet.compact line 564 char 18');
1298
+ 'Signet.compact line 673 char 18');
699
1299
  __compactRuntime.assert(last_0 === 0n || last_0 === 1n,
700
1300
  'ABI word is not a canonical Boolean');
701
1301
  return last_0 === 1n;
@@ -705,66 +1305,110 @@ export class Contract {
705
1305
  outputKind_0,
706
1306
  serializedOutput_0)
707
1307
  {
708
- return this._calculateSignetAttestationDigest_3(requestId_0,
709
- blockHeight_0,
710
- outputKind_0,
711
- serializedOutput_0);
1308
+ return this._calculateSignetAttestationDigestV1_3(requestId_0,
1309
+ blockHeight_0,
1310
+ outputKind_0,
1311
+ serializedOutput_0);
712
1312
  }
713
1313
  _calculateSignetAttestationDigest1_0(requestId_0,
714
1314
  blockHeight_0,
715
1315
  outputKind_0,
716
1316
  serializedOutput_0)
717
1317
  {
718
- return this._calculateSignetAttestationDigest_0(requestId_0,
719
- blockHeight_0,
720
- outputKind_0,
721
- serializedOutput_0);
1318
+ return this._calculateSignetAttestationDigestV1_0(requestId_0,
1319
+ blockHeight_0,
1320
+ outputKind_0,
1321
+ serializedOutput_0);
722
1322
  }
723
1323
  _calculateSignetAttestationDigest2_0(requestId_0,
724
1324
  blockHeight_0,
725
1325
  outputKind_0,
726
1326
  serializedOutput_0)
727
1327
  {
728
- return this._calculateSignetAttestationDigest_1(requestId_0,
729
- blockHeight_0,
730
- outputKind_0,
731
- serializedOutput_0);
1328
+ return this._calculateSignetAttestationDigestV1_1(requestId_0,
1329
+ blockHeight_0,
1330
+ outputKind_0,
1331
+ serializedOutput_0);
732
1332
  }
733
1333
  _calculateSignetAttestationDigest32_0(requestId_0,
734
1334
  blockHeight_0,
735
1335
  outputKind_0,
736
1336
  serializedOutput_0)
737
1337
  {
738
- return this._calculateSignetAttestationDigest_4(requestId_0,
739
- blockHeight_0,
740
- outputKind_0,
741
- serializedOutput_0);
1338
+ return this._calculateSignetAttestationDigestV1_4(requestId_0,
1339
+ blockHeight_0,
1340
+ outputKind_0,
1341
+ serializedOutput_0);
742
1342
  }
743
1343
  _calculateSignetAttestationDigest100_0(requestId_0,
744
1344
  blockHeight_0,
745
1345
  outputKind_0,
746
1346
  serializedOutput_0)
747
1347
  {
748
- return this._calculateSignetAttestationDigest_2(requestId_0,
749
- blockHeight_0,
750
- outputKind_0,
751
- serializedOutput_0);
1348
+ return this._calculateSignetAttestationDigestV1_2(requestId_0,
1349
+ blockHeight_0,
1350
+ outputKind_0,
1351
+ serializedOutput_0);
1352
+ }
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);
752
1364
  }
753
1365
  _verifyRespondBidirectionalEvent0_0(serializedOutput_0,
754
1366
  respondBidirectionalEvent_0,
755
1367
  mpcResponseKey_0)
756
1368
  {
757
- return this._verifyRespondBidirectionalEvent_0(serializedOutput_0,
758
- respondBidirectionalEvent_0,
759
- mpcResponseKey_0);
1369
+ return this._verifyRespondBidirectionalEventV1_0(serializedOutput_0,
1370
+ respondBidirectionalEvent_0,
1371
+ mpcResponseKey_0);
760
1372
  }
761
1373
  _verifyRespondBidirectionalEvent32_0(serializedOutput_0,
762
1374
  respondBidirectionalEvent_0,
763
1375
  mpcResponseKey_0)
764
1376
  {
765
- return this._verifyRespondBidirectionalEvent_1(serializedOutput_0,
766
- respondBidirectionalEvent_0,
767
- 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;
768
1412
  }
769
1413
  }
770
1414
  export function ledger(stateOrChargedState) {
@@ -788,6 +1432,20 @@ const _emptyContext = {
788
1432
  };
789
1433
  const _dummyContract = new Contract({ });
790
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
+ },
791
1449
  constructSignBidirectionalEventNotificationV1: (...args_0) => {
792
1450
  if (args_0.length !== 3) {
793
1451
  throw new __compactRuntime.CompactError(`constructSignBidirectionalEventNotificationV1: expected 3 arguments (as invoked from Typescript), received ${args_0.length}`);
@@ -798,21 +1456,21 @@ export const pureCircuits = {
798
1456
  if (!(typeof(callerAddress_0) === 'object' && callerAddress_0.bytes.buffer instanceof ArrayBuffer && callerAddress_0.bytes.BYTES_PER_ELEMENT === 1 && callerAddress_0.bytes.length === 32)) {
799
1457
  __compactRuntime.typeError('constructSignBidirectionalEventNotificationV1',
800
1458
  'argument 1',
801
- 'Signet.compact line 268 char 3',
1459
+ 'Signet.compact line 269 char 3',
802
1460
  'struct ContractAddress<bytes: Bytes<32>>',
803
1461
  callerAddress_0)
804
1462
  }
805
1463
  if (!(typeof(requestsPathDepth_0) === 'bigint' && requestsPathDepth_0 >= 0n && requestsPathDepth_0 <= 255n)) {
806
1464
  __compactRuntime.typeError('constructSignBidirectionalEventNotificationV1',
807
1465
  'argument 2',
808
- 'Signet.compact line 268 char 3',
1466
+ 'Signet.compact line 269 char 3',
809
1467
  'Uint<0..256>',
810
1468
  requestsPathDepth_0)
811
1469
  }
812
1470
  if (!(Array.isArray(requestsPath_0) && requestsPath_0.length === 4 && requestsPath_0.every((t) => typeof(t) === 'bigint' && t >= 0n && t <= 255n))) {
813
1471
  __compactRuntime.typeError('constructSignBidirectionalEventNotificationV1',
814
1472
  'argument 3',
815
- 'Signet.compact line 268 char 3',
1473
+ 'Signet.compact line 269 char 3',
816
1474
  'Vector<4, Uint<0..256>>',
817
1475
  requestsPath_0)
818
1476
  }
@@ -834,7 +1492,7 @@ export const pureCircuits = {
834
1492
  if (!(addr_0.buffer instanceof ArrayBuffer && addr_0.BYTES_PER_ELEMENT === 1 && addr_0.length === 20)) {
835
1493
  __compactRuntime.typeError('evmAddressAbiWord',
836
1494
  'argument 1',
837
- 'Signet.compact line 496 char 3',
1495
+ 'Signet.compact line 605 char 3',
838
1496
  'Bytes<20>',
839
1497
  addr_0)
840
1498
  }
@@ -848,7 +1506,7 @@ export const pureCircuits = {
848
1506
  if (!(typeof(value_0) === 'bigint' && value_0 >= 0n && value_0 <= 340282366920938463463374607431768211455n)) {
849
1507
  __compactRuntime.typeError('numericAbiWord',
850
1508
  'argument 1',
851
- 'Signet.compact line 502 char 3',
1509
+ 'Signet.compact line 611 char 3',
852
1510
  'Uint<0..340282366920938463463374607431768211456>',
853
1511
  value_0)
854
1512
  }
@@ -862,7 +1520,7 @@ export const pureCircuits = {
862
1520
  if (!(typeof(value_0) === 'boolean')) {
863
1521
  __compactRuntime.typeError('boolAbiWord',
864
1522
  'argument 1',
865
- 'Signet.compact line 515 char 3',
1523
+ 'Signet.compact line 624 char 3',
866
1524
  'Boolean',
867
1525
  value_0)
868
1526
  }
@@ -876,7 +1534,7 @@ export const pureCircuits = {
876
1534
  if (!(word_0.buffer instanceof ArrayBuffer && word_0.BYTES_PER_ELEMENT === 1 && word_0.length === 32)) {
877
1535
  __compactRuntime.typeError('abiWordToUint128',
878
1536
  'argument 1',
879
- 'Signet.compact line 523 char 3',
1537
+ 'Signet.compact line 632 char 3',
880
1538
  'Bytes<32>',
881
1539
  word_0)
882
1540
  }
@@ -890,7 +1548,7 @@ export const pureCircuits = {
890
1548
  if (!(word_0.buffer instanceof ArrayBuffer && word_0.BYTES_PER_ELEMENT === 1 && word_0.length === 32)) {
891
1549
  __compactRuntime.typeError('abiWordToBool',
892
1550
  'argument 1',
893
- 'Signet.compact line 562 char 3',
1551
+ 'Signet.compact line 671 char 3',
894
1552
  'Bytes<32>',
895
1553
  word_0)
896
1554
  }
@@ -907,28 +1565,28 @@ export const pureCircuits = {
907
1565
  if (!(requestId_0.buffer instanceof ArrayBuffer && requestId_0.BYTES_PER_ELEMENT === 1 && requestId_0.length === 32)) {
908
1566
  __compactRuntime.typeError('calculateSignetAttestationDigest0',
909
1567
  'argument 1',
910
- 'circuits.compact line 29 char 1',
1568
+ 'circuits.compact line 30 char 1',
911
1569
  'Bytes<32>',
912
1570
  requestId_0)
913
1571
  }
914
1572
  if (!(typeof(blockHeight_0) === 'bigint' && blockHeight_0 >= 0n && blockHeight_0 <= 18446744073709551615n)) {
915
1573
  __compactRuntime.typeError('calculateSignetAttestationDigest0',
916
1574
  'argument 2',
917
- 'circuits.compact line 29 char 1',
1575
+ 'circuits.compact line 30 char 1',
918
1576
  'Uint<0..18446744073709551616>',
919
1577
  blockHeight_0)
920
1578
  }
921
1579
  if (!(typeof(outputKind_0) === 'number' && outputKind_0 >= 0 && outputKind_0 <= 2)) {
922
1580
  __compactRuntime.typeError('calculateSignetAttestationDigest0',
923
1581
  'argument 3',
924
- 'circuits.compact line 29 char 1',
1582
+ 'circuits.compact line 30 char 1',
925
1583
  'Enum<OutputKind, executed, failed, unviable>',
926
1584
  outputKind_0)
927
1585
  }
928
1586
  if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 0)) {
929
1587
  __compactRuntime.typeError('calculateSignetAttestationDigest0',
930
1588
  'argument 4',
931
- 'circuits.compact line 29 char 1',
1589
+ 'circuits.compact line 30 char 1',
932
1590
  'Bytes<0>',
933
1591
  serializedOutput_0)
934
1592
  }
@@ -948,28 +1606,28 @@ export const pureCircuits = {
948
1606
  if (!(requestId_0.buffer instanceof ArrayBuffer && requestId_0.BYTES_PER_ELEMENT === 1 && requestId_0.length === 32)) {
949
1607
  __compactRuntime.typeError('calculateSignetAttestationDigest1',
950
1608
  'argument 1',
951
- 'circuits.compact line 38 char 1',
1609
+ 'circuits.compact line 39 char 1',
952
1610
  'Bytes<32>',
953
1611
  requestId_0)
954
1612
  }
955
1613
  if (!(typeof(blockHeight_0) === 'bigint' && blockHeight_0 >= 0n && blockHeight_0 <= 18446744073709551615n)) {
956
1614
  __compactRuntime.typeError('calculateSignetAttestationDigest1',
957
1615
  'argument 2',
958
- 'circuits.compact line 38 char 1',
1616
+ 'circuits.compact line 39 char 1',
959
1617
  'Uint<0..18446744073709551616>',
960
1618
  blockHeight_0)
961
1619
  }
962
1620
  if (!(typeof(outputKind_0) === 'number' && outputKind_0 >= 0 && outputKind_0 <= 2)) {
963
1621
  __compactRuntime.typeError('calculateSignetAttestationDigest1',
964
1622
  'argument 3',
965
- 'circuits.compact line 38 char 1',
1623
+ 'circuits.compact line 39 char 1',
966
1624
  'Enum<OutputKind, executed, failed, unviable>',
967
1625
  outputKind_0)
968
1626
  }
969
1627
  if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 1)) {
970
1628
  __compactRuntime.typeError('calculateSignetAttestationDigest1',
971
1629
  'argument 4',
972
- 'circuits.compact line 38 char 1',
1630
+ 'circuits.compact line 39 char 1',
973
1631
  'Bytes<1>',
974
1632
  serializedOutput_0)
975
1633
  }
@@ -989,28 +1647,28 @@ export const pureCircuits = {
989
1647
  if (!(requestId_0.buffer instanceof ArrayBuffer && requestId_0.BYTES_PER_ELEMENT === 1 && requestId_0.length === 32)) {
990
1648
  __compactRuntime.typeError('calculateSignetAttestationDigest2',
991
1649
  'argument 1',
992
- 'circuits.compact line 47 char 1',
1650
+ 'circuits.compact line 48 char 1',
993
1651
  'Bytes<32>',
994
1652
  requestId_0)
995
1653
  }
996
1654
  if (!(typeof(blockHeight_0) === 'bigint' && blockHeight_0 >= 0n && blockHeight_0 <= 18446744073709551615n)) {
997
1655
  __compactRuntime.typeError('calculateSignetAttestationDigest2',
998
1656
  'argument 2',
999
- 'circuits.compact line 47 char 1',
1657
+ 'circuits.compact line 48 char 1',
1000
1658
  'Uint<0..18446744073709551616>',
1001
1659
  blockHeight_0)
1002
1660
  }
1003
1661
  if (!(typeof(outputKind_0) === 'number' && outputKind_0 >= 0 && outputKind_0 <= 2)) {
1004
1662
  __compactRuntime.typeError('calculateSignetAttestationDigest2',
1005
1663
  'argument 3',
1006
- 'circuits.compact line 47 char 1',
1664
+ 'circuits.compact line 48 char 1',
1007
1665
  'Enum<OutputKind, executed, failed, unviable>',
1008
1666
  outputKind_0)
1009
1667
  }
1010
1668
  if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 2)) {
1011
1669
  __compactRuntime.typeError('calculateSignetAttestationDigest2',
1012
1670
  'argument 4',
1013
- 'circuits.compact line 47 char 1',
1671
+ 'circuits.compact line 48 char 1',
1014
1672
  'Bytes<2>',
1015
1673
  serializedOutput_0)
1016
1674
  }
@@ -1030,28 +1688,28 @@ export const pureCircuits = {
1030
1688
  if (!(requestId_0.buffer instanceof ArrayBuffer && requestId_0.BYTES_PER_ELEMENT === 1 && requestId_0.length === 32)) {
1031
1689
  __compactRuntime.typeError('calculateSignetAttestationDigest32',
1032
1690
  'argument 1',
1033
- 'circuits.compact line 56 char 1',
1691
+ 'circuits.compact line 57 char 1',
1034
1692
  'Bytes<32>',
1035
1693
  requestId_0)
1036
1694
  }
1037
1695
  if (!(typeof(blockHeight_0) === 'bigint' && blockHeight_0 >= 0n && blockHeight_0 <= 18446744073709551615n)) {
1038
1696
  __compactRuntime.typeError('calculateSignetAttestationDigest32',
1039
1697
  'argument 2',
1040
- 'circuits.compact line 56 char 1',
1698
+ 'circuits.compact line 57 char 1',
1041
1699
  'Uint<0..18446744073709551616>',
1042
1700
  blockHeight_0)
1043
1701
  }
1044
1702
  if (!(typeof(outputKind_0) === 'number' && outputKind_0 >= 0 && outputKind_0 <= 2)) {
1045
1703
  __compactRuntime.typeError('calculateSignetAttestationDigest32',
1046
1704
  'argument 3',
1047
- 'circuits.compact line 56 char 1',
1705
+ 'circuits.compact line 57 char 1',
1048
1706
  'Enum<OutputKind, executed, failed, unviable>',
1049
1707
  outputKind_0)
1050
1708
  }
1051
1709
  if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 32)) {
1052
1710
  __compactRuntime.typeError('calculateSignetAttestationDigest32',
1053
1711
  'argument 4',
1054
- 'circuits.compact line 56 char 1',
1712
+ 'circuits.compact line 57 char 1',
1055
1713
  'Bytes<32>',
1056
1714
  serializedOutput_0)
1057
1715
  }
@@ -1071,28 +1729,28 @@ export const pureCircuits = {
1071
1729
  if (!(requestId_0.buffer instanceof ArrayBuffer && requestId_0.BYTES_PER_ELEMENT === 1 && requestId_0.length === 32)) {
1072
1730
  __compactRuntime.typeError('calculateSignetAttestationDigest100',
1073
1731
  'argument 1',
1074
- 'circuits.compact line 65 char 1',
1732
+ 'circuits.compact line 66 char 1',
1075
1733
  'Bytes<32>',
1076
1734
  requestId_0)
1077
1735
  }
1078
1736
  if (!(typeof(blockHeight_0) === 'bigint' && blockHeight_0 >= 0n && blockHeight_0 <= 18446744073709551615n)) {
1079
1737
  __compactRuntime.typeError('calculateSignetAttestationDigest100',
1080
1738
  'argument 2',
1081
- 'circuits.compact line 65 char 1',
1739
+ 'circuits.compact line 66 char 1',
1082
1740
  'Uint<0..18446744073709551616>',
1083
1741
  blockHeight_0)
1084
1742
  }
1085
1743
  if (!(typeof(outputKind_0) === 'number' && outputKind_0 >= 0 && outputKind_0 <= 2)) {
1086
1744
  __compactRuntime.typeError('calculateSignetAttestationDigest100',
1087
1745
  'argument 3',
1088
- 'circuits.compact line 65 char 1',
1746
+ 'circuits.compact line 66 char 1',
1089
1747
  'Enum<OutputKind, executed, failed, unviable>',
1090
1748
  outputKind_0)
1091
1749
  }
1092
1750
  if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 100)) {
1093
1751
  __compactRuntime.typeError('calculateSignetAttestationDigest100',
1094
1752
  'argument 4',
1095
- 'circuits.compact line 65 char 1',
1753
+ 'circuits.compact line 66 char 1',
1096
1754
  'Bytes<100>',
1097
1755
  serializedOutput_0)
1098
1756
  }
@@ -1101,6 +1759,62 @@ export const pureCircuits = {
1101
1759
  outputKind_0,
1102
1760
  serializedOutput_0);
1103
1761
  },
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}`);
1765
+ }
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',
1769
+ 'argument 1',
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)
1773
+ }
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
+ },
1104
1818
  verifyRespondBidirectionalEvent0: (...args_0) => {
1105
1819
  if (args_0.length !== 3) {
1106
1820
  throw new __compactRuntime.CompactError(`verifyRespondBidirectionalEvent0: expected 3 arguments (as invoked from Typescript), received ${args_0.length}`);
@@ -1111,15 +1825,15 @@ export const pureCircuits = {
1111
1825
  if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 0)) {
1112
1826
  __compactRuntime.typeError('verifyRespondBidirectionalEvent0',
1113
1827
  'argument 1',
1114
- 'circuits.compact line 74 char 1',
1828
+ 'circuits.compact line 107 char 1',
1115
1829
  'Bytes<0>',
1116
1830
  serializedOutput_0)
1117
1831
  }
1118
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)) {
1119
1833
  __compactRuntime.typeError('verifyRespondBidirectionalEvent0',
1120
1834
  'argument 2',
1121
- 'circuits.compact line 74 char 1',
1122
- 'struct RespondBidirectionalEvent<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>>>',
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>>>',
1123
1837
  respondBidirectionalEvent_0)
1124
1838
  }
1125
1839
  return _dummyContract._verifyRespondBidirectionalEvent0_0(serializedOutput_0,
@@ -1136,15 +1850,15 @@ export const pureCircuits = {
1136
1850
  if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 32)) {
1137
1851
  __compactRuntime.typeError('verifyRespondBidirectionalEvent32',
1138
1852
  'argument 1',
1139
- 'circuits.compact line 86 char 1',
1853
+ 'circuits.compact line 119 char 1',
1140
1854
  'Bytes<32>',
1141
1855
  serializedOutput_0)
1142
1856
  }
1143
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)) {
1144
1858
  __compactRuntime.typeError('verifyRespondBidirectionalEvent32',
1145
1859
  'argument 2',
1146
- 'circuits.compact line 86 char 1',
1147
- 'struct RespondBidirectionalEvent<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>>>',
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>>>',
1148
1862
  respondBidirectionalEvent_0)
1149
1863
  }
1150
1864
  return _dummyContract._verifyRespondBidirectionalEvent32_0(serializedOutput_0,