@sig-net/midnight 0.23.0 → 0.24.0-rc.10

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 (62) hide show
  1. package/README.md +52 -24
  2. package/dist/abi-serde.d.ts +198 -57
  3. package/dist/abi-serde.d.ts.map +1 -1
  4. package/dist/abi-serde.js +478 -367
  5. package/dist/abi-serde.js.map +1 -1
  6. package/dist/compact-descriptors.d.ts +25 -8
  7. package/dist/compact-descriptors.d.ts.map +1 -1
  8. package/dist/compact-descriptors.js +42 -25
  9. package/dist/compact-descriptors.js.map +1 -1
  10. package/dist/constants.d.ts +3 -22
  11. package/dist/constants.d.ts.map +1 -1
  12. package/dist/constants.js +3 -25
  13. package/dist/constants.js.map +1 -1
  14. package/dist/ecdsa-attestation.d.ts +44 -14
  15. package/dist/ecdsa-attestation.d.ts.map +1 -1
  16. package/dist/ecdsa-attestation.js +50 -15
  17. package/dist/ecdsa-attestation.js.map +1 -1
  18. package/dist/index.d.ts +6 -6
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +5 -5
  21. package/dist/index.js.map +1 -1
  22. package/dist/managed/compiler/contract-info.json +1808 -48
  23. package/dist/managed/compiler/contract-manifest.json +8 -8
  24. package/dist/managed/contract/index.d.ts +424 -5
  25. package/dist/managed/contract/index.js +1311 -171
  26. package/dist/managed/contract/index.js.map +1 -1
  27. package/dist/mpc-output-cache.js +2 -2
  28. package/dist/mpc-output-cache.js.map +1 -1
  29. package/dist/signature-requests-state-reader.d.ts +6 -13
  30. package/dist/signature-requests-state-reader.d.ts.map +1 -1
  31. package/dist/signature-requests-state-reader.js +10 -16
  32. package/dist/signature-requests-state-reader.js.map +1 -1
  33. package/dist/signet-contract-events.d.ts +52 -12
  34. package/dist/signet-contract-events.d.ts.map +1 -1
  35. package/dist/signet-contract-events.js +89 -34
  36. package/dist/signet-contract-events.js.map +1 -1
  37. package/dist/signet-evtype2tx-record-decoding.d.ts.map +1 -1
  38. package/dist/signet-evtype2tx-record-decoding.js +7 -6
  39. package/dist/signet-evtype2tx-record-decoding.js.map +1 -1
  40. package/dist/signet-evtype2tx-requests.d.ts +17 -12
  41. package/dist/signet-evtype2tx-requests.d.ts.map +1 -1
  42. package/dist/signet-evtype2tx-requests.js +92 -16
  43. package/dist/signet-evtype2tx-requests.js.map +1 -1
  44. package/dist/signet-request-id.d.ts +5 -2
  45. package/dist/signet-request-id.d.ts.map +1 -1
  46. package/dist/signet-request-id.js +27 -9
  47. package/dist/signet-request-id.js.map +1 -1
  48. package/dist/signet-request-response-reader.d.ts +8 -0
  49. package/dist/signet-request-response-reader.d.ts.map +1 -1
  50. package/dist/signet-request-response-reader.js +8 -7
  51. package/dist/signet-request-response-reader.js.map +1 -1
  52. package/dist/signet-requests.d.ts +48 -19
  53. package/dist/signet-requests.d.ts.map +1 -1
  54. package/dist/signet-requests.js +19 -8
  55. package/dist/signet-requests.js.map +1 -1
  56. package/dist/testing.d.ts +1 -1
  57. package/dist/testing.d.ts.map +1 -1
  58. package/dist/testing.js +3 -8
  59. package/dist/testing.js.map +1 -1
  60. package/package.json +2 -2
  61. package/src/Signet.compact +299 -101
  62. package/src/circuits.compact +92 -12
@@ -1,228 +1,625 @@
1
1
  import * as __compactRuntime from '@midnight-ntwrk/compact-runtime';
2
2
  __compactRuntime.checkRuntimeVersion('0.18.0-rc.1');
3
3
 
4
- const _descriptor_0 = new __compactRuntime.CompactTypeBytes(32);
4
+ export var HashDomain;
5
+ (function (HashDomain) {
6
+ HashDomain[HashDomain['requestId'] = 0] = 'requestId';
7
+ HashDomain[HashDomain['attestationDigest'] = 1] = 'attestationDigest';
8
+ HashDomain[HashDomain['evmType2TxHeader'] = 2] = 'evmType2TxHeader';
9
+ HashDomain[HashDomain['evmType2TxWord'] = 3] = 'evmType2TxWord';
10
+ HashDomain[HashDomain['evmType2TxAccessEntry'] = 4] = 'evmType2TxAccessEntry';
11
+ HashDomain[HashDomain['evmType2TxStorageKey'] = 5] = 'evmType2TxStorageKey';
12
+ })(HashDomain || (HashDomain = {}));
5
13
 
6
- const _descriptor_1 = new __compactRuntime.CompactTypeBytes(100);
14
+ export var OutputKind;
15
+ (function (OutputKind) {
16
+ OutputKind[OutputKind['executed'] = 0] = 'executed';
17
+ OutputKind[OutputKind['failed'] = 1] = 'failed';
18
+ OutputKind[OutputKind['unviable'] = 2] = 'unviable';
19
+ })(OutputKind || (OutputKind = {}));
7
20
 
8
- class _AffinePoint_0 {
21
+ const _descriptor_0 = new __compactRuntime.CompactTypeUnsignedInteger(255n, 1);
22
+
23
+ const _descriptor_1 = new __compactRuntime.CompactTypeBytes(32);
24
+
25
+ class _ContractAddress_0 {
26
+ alignment() {
27
+ return _descriptor_1.alignment();
28
+ }
29
+ fromValue(value_0) {
30
+ return {
31
+ bytes: _descriptor_1.fromValue(value_0)
32
+ }
33
+ }
34
+ toValue(value_0) {
35
+ return _descriptor_1.toValue(value_0.bytes);
36
+ }
37
+ }
38
+
39
+ const _descriptor_2 = new _ContractAddress_0();
40
+
41
+ const _descriptor_3 = new __compactRuntime.CompactTypeEnum(1, 1);
42
+
43
+ const _descriptor_4 = new __compactRuntime.CompactTypeEnum(1, 1);
44
+
45
+ const _descriptor_5 = new __compactRuntime.CompactTypeUnsignedInteger(18446744073709551615n, 8);
46
+
47
+ const _descriptor_6 = new __compactRuntime.CompactTypeUnsignedInteger(340282366920938463463374607431768211455n, 16);
48
+
49
+ const _descriptor_7 = new __compactRuntime.CompactTypeBytes(20);
50
+
51
+ const _descriptor_8 = __compactRuntime.CompactTypeBoolean;
52
+
53
+ const _descriptor_9 = new __compactRuntime.CompactTypeBytes(4);
54
+
55
+ const _descriptor_10 = new __compactRuntime.CompactTypeUnsignedInteger(65535n, 2);
56
+
57
+ const _descriptor_11 = new __compactRuntime.CompactTypeVector(1, _descriptor_1);
58
+
59
+ class _EvmCalldata_0 {
60
+ alignment() {
61
+ return _descriptor_9.alignment().concat(_descriptor_10.alignment().concat(_descriptor_11.alignment()));
62
+ }
63
+ fromValue(value_0) {
64
+ return {
65
+ selector: _descriptor_9.fromValue(value_0),
66
+ noWords: _descriptor_10.fromValue(value_0),
67
+ words: _descriptor_11.fromValue(value_0)
68
+ }
69
+ }
70
+ toValue(value_0) {
71
+ return _descriptor_9.toValue(value_0.selector).concat(_descriptor_10.toValue(value_0.noWords).concat(_descriptor_11.toValue(value_0.words)));
72
+ }
73
+ }
74
+
75
+ const _descriptor_12 = new _EvmCalldata_0();
76
+
77
+ class _Maybe_0 {
78
+ alignment() {
79
+ return _descriptor_8.alignment().concat(_descriptor_12.alignment());
80
+ }
81
+ fromValue(value_0) {
82
+ return {
83
+ is_some: _descriptor_8.fromValue(value_0),
84
+ value: _descriptor_12.fromValue(value_0)
85
+ }
86
+ }
87
+ toValue(value_0) {
88
+ return _descriptor_8.toValue(value_0.is_some).concat(_descriptor_12.toValue(value_0.value));
89
+ }
90
+ }
91
+
92
+ const _descriptor_13 = new _Maybe_0();
93
+
94
+ const _descriptor_14 = new __compactRuntime.CompactTypeVector(0, _descriptor_1);
95
+
96
+ class _EvmAccessListEntry_0 {
97
+ alignment() {
98
+ return _descriptor_7.alignment().concat(_descriptor_0.alignment().concat(_descriptor_14.alignment()));
99
+ }
100
+ fromValue(value_0) {
101
+ return {
102
+ address: _descriptor_7.fromValue(value_0),
103
+ storageKeyCount: _descriptor_0.fromValue(value_0),
104
+ storageKeys: _descriptor_14.fromValue(value_0)
105
+ }
106
+ }
107
+ toValue(value_0) {
108
+ return _descriptor_7.toValue(value_0.address).concat(_descriptor_0.toValue(value_0.storageKeyCount).concat(_descriptor_14.toValue(value_0.storageKeys)));
109
+ }
110
+ }
111
+
112
+ const _descriptor_15 = new _EvmAccessListEntry_0();
113
+
114
+ const _descriptor_16 = new __compactRuntime.CompactTypeVector(0, _descriptor_15);
115
+
116
+ class _EvmType2TxParams_0 {
117
+ alignment() {
118
+ return _descriptor_5.alignment().concat(_descriptor_5.alignment().concat(_descriptor_6.alignment().concat(_descriptor_6.alignment().concat(_descriptor_5.alignment().concat(_descriptor_7.alignment().concat(_descriptor_6.alignment().concat(_descriptor_13.alignment().concat(_descriptor_0.alignment().concat(_descriptor_16.alignment())))))))));
119
+ }
120
+ fromValue(value_0) {
121
+ return {
122
+ chainId: _descriptor_5.fromValue(value_0),
123
+ nonce: _descriptor_5.fromValue(value_0),
124
+ maxPriorityFeePerGas: _descriptor_6.fromValue(value_0),
125
+ maxFeePerGas: _descriptor_6.fromValue(value_0),
126
+ gasLimit: _descriptor_5.fromValue(value_0),
127
+ to: _descriptor_7.fromValue(value_0),
128
+ value: _descriptor_6.fromValue(value_0),
129
+ calldata: _descriptor_13.fromValue(value_0),
130
+ accessListEntryCount: _descriptor_0.fromValue(value_0),
131
+ accessList: _descriptor_16.fromValue(value_0)
132
+ }
133
+ }
134
+ toValue(value_0) {
135
+ return _descriptor_5.toValue(value_0.chainId).concat(_descriptor_5.toValue(value_0.nonce).concat(_descriptor_6.toValue(value_0.maxPriorityFeePerGas).concat(_descriptor_6.toValue(value_0.maxFeePerGas).concat(_descriptor_5.toValue(value_0.gasLimit).concat(_descriptor_7.toValue(value_0.to).concat(_descriptor_6.toValue(value_0.value).concat(_descriptor_13.toValue(value_0.calldata).concat(_descriptor_0.toValue(value_0.accessListEntryCount).concat(_descriptor_16.toValue(value_0.accessList))))))))));
136
+ }
137
+ }
138
+
139
+ const _descriptor_17 = new _EvmType2TxParams_0();
140
+
141
+ const _descriptor_18 = new __compactRuntime.CompactTypeEnum(1, 1);
142
+
143
+ const _descriptor_19 = new __compactRuntime.CompactTypeBytes(64);
144
+
145
+ const _descriptor_20 = new __compactRuntime.CompactTypeBytes(34);
146
+
147
+ const _descriptor_21 = new __compactRuntime.CompactTypeBytes(0);
148
+
149
+ class _SignBidirectionalEventV1_0 {
9
150
  alignment() {
10
- return _descriptor_0.alignment().concat(_descriptor_0.alignment());
151
+ return _descriptor_0.alignment().concat(_descriptor_2.alignment().concat(_descriptor_1.alignment().concat(_descriptor_3.alignment().concat(_descriptor_4.alignment().concat(_descriptor_17.alignment().concat(_descriptor_1.alignment().concat(_descriptor_18.alignment().concat(_descriptor_19.alignment().concat(_descriptor_20.alignment().concat(_descriptor_21.alignment()))))))))));
11
152
  }
12
153
  fromValue(value_0) {
13
154
  return {
14
- x: _descriptor_0.fromValue(value_0),
15
- y: _descriptor_0.fromValue(value_0)
155
+ keyVersion: _descriptor_0.fromValue(value_0),
156
+ sender: _descriptor_2.fromValue(value_0),
157
+ path: _descriptor_1.fromValue(value_0),
158
+ algo: _descriptor_3.fromValue(value_0),
159
+ txParamType: _descriptor_4.fromValue(value_0),
160
+ txParams: _descriptor_17.fromValue(value_0),
161
+ executionDest: _descriptor_1.fromValue(value_0),
162
+ signatureDest: _descriptor_18.fromValue(value_0),
163
+ params: _descriptor_19.fromValue(value_0),
164
+ outputDeserializationSchema: _descriptor_20.fromValue(value_0),
165
+ respondSerializationSchema: _descriptor_21.fromValue(value_0)
16
166
  }
17
167
  }
18
168
  toValue(value_0) {
19
- return _descriptor_0.toValue(value_0.x).concat(_descriptor_0.toValue(value_0.y));
169
+ return _descriptor_0.toValue(value_0.keyVersion).concat(_descriptor_2.toValue(value_0.sender).concat(_descriptor_1.toValue(value_0.path).concat(_descriptor_3.toValue(value_0.algo).concat(_descriptor_4.toValue(value_0.txParamType).concat(_descriptor_17.toValue(value_0.txParams).concat(_descriptor_1.toValue(value_0.executionDest).concat(_descriptor_18.toValue(value_0.signatureDest).concat(_descriptor_19.toValue(value_0.params).concat(_descriptor_20.toValue(value_0.outputDeserializationSchema).concat(_descriptor_21.toValue(value_0.respondSerializationSchema)))))))))));
20
170
  }
21
171
  }
22
172
 
23
- const _descriptor_2 = new _AffinePoint_0();
173
+ const _descriptor_22 = new _SignBidirectionalEventV1_0();
24
174
 
25
- const _descriptor_3 = new __compactRuntime.CompactTypeUnsignedInteger(255n, 1);
175
+ const _descriptor_23 = new __compactRuntime.CompactTypeEnum(2, 1);
176
+
177
+ class _AffinePoint_0 {
178
+ alignment() {
179
+ return _descriptor_1.alignment().concat(_descriptor_1.alignment());
180
+ }
181
+ fromValue(value_0) {
182
+ return {
183
+ x: _descriptor_1.fromValue(value_0),
184
+ y: _descriptor_1.fromValue(value_0)
185
+ }
186
+ }
187
+ toValue(value_0) {
188
+ return _descriptor_1.toValue(value_0.x).concat(_descriptor_1.toValue(value_0.y));
189
+ }
190
+ }
191
+
192
+ const _descriptor_24 = new _AffinePoint_0();
26
193
 
27
194
  class _Signature_0 {
28
195
  alignment() {
29
- return _descriptor_2.alignment().concat(_descriptor_0.alignment().concat(_descriptor_3.alignment()));
196
+ return _descriptor_24.alignment().concat(_descriptor_1.alignment().concat(_descriptor_0.alignment()));
197
+ }
198
+ fromValue(value_0) {
199
+ return {
200
+ bigR: _descriptor_24.fromValue(value_0),
201
+ s: _descriptor_1.fromValue(value_0),
202
+ recoveryId: _descriptor_0.fromValue(value_0)
203
+ }
204
+ }
205
+ toValue(value_0) {
206
+ return _descriptor_24.toValue(value_0.bigR).concat(_descriptor_1.toValue(value_0.s).concat(_descriptor_0.toValue(value_0.recoveryId)));
207
+ }
208
+ }
209
+
210
+ const _descriptor_25 = new _Signature_0();
211
+
212
+ class _RespondBidirectionalEventV1_0 {
213
+ alignment() {
214
+ return _descriptor_1.alignment().concat(_descriptor_5.alignment().concat(_descriptor_23.alignment().concat(_descriptor_5.alignment().concat(_descriptor_1.alignment().concat(_descriptor_25.alignment())))));
30
215
  }
31
216
  fromValue(value_0) {
32
217
  return {
33
- bigR: _descriptor_2.fromValue(value_0),
34
- s: _descriptor_0.fromValue(value_0),
35
- recoveryId: _descriptor_3.fromValue(value_0)
218
+ requestId: _descriptor_1.fromValue(value_0),
219
+ blockHeight: _descriptor_5.fromValue(value_0),
220
+ outputKind: _descriptor_23.fromValue(value_0),
221
+ serializedOutputLength: _descriptor_5.fromValue(value_0),
222
+ digest: _descriptor_1.fromValue(value_0),
223
+ signature: _descriptor_25.fromValue(value_0)
36
224
  }
37
225
  }
38
226
  toValue(value_0) {
39
- return _descriptor_2.toValue(value_0.bigR).concat(_descriptor_0.toValue(value_0.s).concat(_descriptor_3.toValue(value_0.recoveryId)));
227
+ return _descriptor_1.toValue(value_0.requestId).concat(_descriptor_5.toValue(value_0.blockHeight).concat(_descriptor_23.toValue(value_0.outputKind).concat(_descriptor_5.toValue(value_0.serializedOutputLength).concat(_descriptor_1.toValue(value_0.digest).concat(_descriptor_25.toValue(value_0.signature))))));
40
228
  }
41
229
  }
42
230
 
43
- const _descriptor_4 = new _Signature_0();
231
+ const _descriptor_26 = new _RespondBidirectionalEventV1_0();
232
+
233
+ const _descriptor_27 = __compactRuntime.CompactTypeSecp256k1Point;
44
234
 
45
- class _RespondBidirectionalEvent_0 {
235
+ const _descriptor_28 = new __compactRuntime.CompactTypeVector(2, _descriptor_1);
236
+
237
+ class _EvmCalldata_1 {
46
238
  alignment() {
47
- return _descriptor_4.alignment();
239
+ return _descriptor_9.alignment().concat(_descriptor_10.alignment().concat(_descriptor_28.alignment()));
48
240
  }
49
241
  fromValue(value_0) {
50
242
  return {
51
- signature: _descriptor_4.fromValue(value_0)
243
+ selector: _descriptor_9.fromValue(value_0),
244
+ noWords: _descriptor_10.fromValue(value_0),
245
+ words: _descriptor_28.fromValue(value_0)
52
246
  }
53
247
  }
54
248
  toValue(value_0) {
55
- return _descriptor_4.toValue(value_0.signature);
249
+ return _descriptor_9.toValue(value_0.selector).concat(_descriptor_10.toValue(value_0.noWords).concat(_descriptor_28.toValue(value_0.words)));
56
250
  }
57
251
  }
58
252
 
59
- const _descriptor_5 = new _RespondBidirectionalEvent_0();
253
+ const _descriptor_29 = new _EvmCalldata_1();
60
254
 
61
- const _descriptor_6 = __compactRuntime.CompactTypeSecp256k1Point;
255
+ class _Maybe_1 {
256
+ alignment() {
257
+ return _descriptor_8.alignment().concat(_descriptor_29.alignment());
258
+ }
259
+ fromValue(value_0) {
260
+ return {
261
+ is_some: _descriptor_8.fromValue(value_0),
262
+ value: _descriptor_29.fromValue(value_0)
263
+ }
264
+ }
265
+ toValue(value_0) {
266
+ return _descriptor_8.toValue(value_0.is_some).concat(_descriptor_29.toValue(value_0.value));
267
+ }
268
+ }
62
269
 
63
- const _descriptor_7 = __compactRuntime.CompactTypeBoolean;
270
+ const _descriptor_30 = new _Maybe_1();
64
271
 
65
- const _descriptor_8 = new __compactRuntime.CompactTypeBytes(2);
272
+ class _EvmAccessListEntry_1 {
273
+ alignment() {
274
+ return _descriptor_7.alignment().concat(_descriptor_0.alignment().concat(_descriptor_28.alignment()));
275
+ }
276
+ fromValue(value_0) {
277
+ return {
278
+ address: _descriptor_7.fromValue(value_0),
279
+ storageKeyCount: _descriptor_0.fromValue(value_0),
280
+ storageKeys: _descriptor_28.fromValue(value_0)
281
+ }
282
+ }
283
+ toValue(value_0) {
284
+ return _descriptor_7.toValue(value_0.address).concat(_descriptor_0.toValue(value_0.storageKeyCount).concat(_descriptor_28.toValue(value_0.storageKeys)));
285
+ }
286
+ }
66
287
 
67
- const _descriptor_9 = new __compactRuntime.CompactTypeBytes(1);
288
+ const _descriptor_31 = new _EvmAccessListEntry_1();
68
289
 
69
- const _descriptor_10 = new __compactRuntime.CompactTypeUnsignedInteger(340282366920938463463374607431768211455n, 16);
290
+ const _descriptor_32 = new __compactRuntime.CompactTypeVector(1, _descriptor_31);
70
291
 
71
- const _descriptor_11 = new __compactRuntime.CompactTypeBytes(20);
292
+ class _EvmType2TxParams_1 {
293
+ alignment() {
294
+ return _descriptor_5.alignment().concat(_descriptor_5.alignment().concat(_descriptor_6.alignment().concat(_descriptor_6.alignment().concat(_descriptor_5.alignment().concat(_descriptor_7.alignment().concat(_descriptor_6.alignment().concat(_descriptor_30.alignment().concat(_descriptor_0.alignment().concat(_descriptor_32.alignment())))))))));
295
+ }
296
+ fromValue(value_0) {
297
+ return {
298
+ chainId: _descriptor_5.fromValue(value_0),
299
+ nonce: _descriptor_5.fromValue(value_0),
300
+ maxPriorityFeePerGas: _descriptor_6.fromValue(value_0),
301
+ maxFeePerGas: _descriptor_6.fromValue(value_0),
302
+ gasLimit: _descriptor_5.fromValue(value_0),
303
+ to: _descriptor_7.fromValue(value_0),
304
+ value: _descriptor_6.fromValue(value_0),
305
+ calldata: _descriptor_30.fromValue(value_0),
306
+ accessListEntryCount: _descriptor_0.fromValue(value_0),
307
+ accessList: _descriptor_32.fromValue(value_0)
308
+ }
309
+ }
310
+ toValue(value_0) {
311
+ return _descriptor_5.toValue(value_0.chainId).concat(_descriptor_5.toValue(value_0.nonce).concat(_descriptor_6.toValue(value_0.maxPriorityFeePerGas).concat(_descriptor_6.toValue(value_0.maxFeePerGas).concat(_descriptor_5.toValue(value_0.gasLimit).concat(_descriptor_7.toValue(value_0.to).concat(_descriptor_6.toValue(value_0.value).concat(_descriptor_30.toValue(value_0.calldata).concat(_descriptor_0.toValue(value_0.accessListEntryCount).concat(_descriptor_32.toValue(value_0.accessList))))))))));
312
+ }
313
+ }
72
314
 
73
- const _descriptor_12 = __compactRuntime.CompactTypeSecp256k1Scalar;
315
+ const _descriptor_33 = new _EvmType2TxParams_1();
74
316
 
75
- class _ContractAddress_0 {
317
+ class _SignBidirectionalEventV1_1 {
76
318
  alignment() {
77
- return _descriptor_0.alignment();
319
+ return _descriptor_0.alignment().concat(_descriptor_2.alignment().concat(_descriptor_1.alignment().concat(_descriptor_3.alignment().concat(_descriptor_4.alignment().concat(_descriptor_33.alignment().concat(_descriptor_1.alignment().concat(_descriptor_18.alignment().concat(_descriptor_19.alignment().concat(_descriptor_20.alignment().concat(_descriptor_21.alignment()))))))))));
78
320
  }
79
321
  fromValue(value_0) {
80
322
  return {
81
- bytes: _descriptor_0.fromValue(value_0)
323
+ keyVersion: _descriptor_0.fromValue(value_0),
324
+ sender: _descriptor_2.fromValue(value_0),
325
+ path: _descriptor_1.fromValue(value_0),
326
+ algo: _descriptor_3.fromValue(value_0),
327
+ txParamType: _descriptor_4.fromValue(value_0),
328
+ txParams: _descriptor_33.fromValue(value_0),
329
+ executionDest: _descriptor_1.fromValue(value_0),
330
+ signatureDest: _descriptor_18.fromValue(value_0),
331
+ params: _descriptor_19.fromValue(value_0),
332
+ outputDeserializationSchema: _descriptor_20.fromValue(value_0),
333
+ respondSerializationSchema: _descriptor_21.fromValue(value_0)
82
334
  }
83
335
  }
84
336
  toValue(value_0) {
85
- return _descriptor_0.toValue(value_0.bytes);
337
+ return _descriptor_0.toValue(value_0.keyVersion).concat(_descriptor_2.toValue(value_0.sender).concat(_descriptor_1.toValue(value_0.path).concat(_descriptor_3.toValue(value_0.algo).concat(_descriptor_4.toValue(value_0.txParamType).concat(_descriptor_33.toValue(value_0.txParams).concat(_descriptor_1.toValue(value_0.executionDest).concat(_descriptor_18.toValue(value_0.signatureDest).concat(_descriptor_19.toValue(value_0.params).concat(_descriptor_20.toValue(value_0.outputDeserializationSchema).concat(_descriptor_21.toValue(value_0.respondSerializationSchema)))))))))));
86
338
  }
87
339
  }
88
340
 
89
- const _descriptor_13 = new _ContractAddress_0();
341
+ const _descriptor_34 = new _SignBidirectionalEventV1_1();
90
342
 
91
- const _descriptor_14 = new __compactRuntime.CompactTypeVector(4, _descriptor_3);
343
+ const _descriptor_35 = new __compactRuntime.CompactTypeBytes(100);
92
344
 
93
- const _descriptor_15 = new __compactRuntime.CompactTypeBytes(128);
345
+ const _descriptor_36 = new __compactRuntime.CompactTypeBytes(1);
346
+
347
+ const _descriptor_37 = new __compactRuntime.CompactTypeBytes(2);
348
+
349
+ const _descriptor_38 = new __compactRuntime.CompactTypeVector(4, _descriptor_0);
350
+
351
+ const _descriptor_39 = new __compactRuntime.CompactTypeBytes(128);
94
352
 
95
353
  class _SignBidirectionalEventNotification_0 {
96
354
  alignment() {
97
- return _descriptor_3.alignment().concat(_descriptor_15.alignment());
355
+ return _descriptor_0.alignment().concat(_descriptor_39.alignment());
356
+ }
357
+ fromValue(value_0) {
358
+ return {
359
+ version: _descriptor_0.fromValue(value_0),
360
+ payload: _descriptor_39.fromValue(value_0)
361
+ }
362
+ }
363
+ toValue(value_0) {
364
+ return _descriptor_0.toValue(value_0.version).concat(_descriptor_39.toValue(value_0.payload));
365
+ }
366
+ }
367
+
368
+ const _descriptor_40 = new _SignBidirectionalEventNotification_0();
369
+
370
+ class _RequestIdPreimageV1_0 {
371
+ alignment() {
372
+ return _descriptor_0.alignment().concat(_descriptor_2.alignment().concat(_descriptor_1.alignment().concat(_descriptor_3.alignment().concat(_descriptor_4.alignment().concat(_descriptor_1.alignment().concat(_descriptor_1.alignment()))))));
98
373
  }
99
374
  fromValue(value_0) {
100
375
  return {
101
- version: _descriptor_3.fromValue(value_0),
102
- payload: _descriptor_15.fromValue(value_0)
376
+ keyVersion: _descriptor_0.fromValue(value_0),
377
+ sender: _descriptor_2.fromValue(value_0),
378
+ path: _descriptor_1.fromValue(value_0),
379
+ algo: _descriptor_3.fromValue(value_0),
380
+ txParamType: _descriptor_4.fromValue(value_0),
381
+ txParamsDigest: _descriptor_1.fromValue(value_0),
382
+ executionDest: _descriptor_1.fromValue(value_0)
103
383
  }
104
384
  }
105
385
  toValue(value_0) {
106
- return _descriptor_3.toValue(value_0.version).concat(_descriptor_15.toValue(value_0.payload));
386
+ return _descriptor_0.toValue(value_0.keyVersion).concat(_descriptor_2.toValue(value_0.sender).concat(_descriptor_1.toValue(value_0.path).concat(_descriptor_3.toValue(value_0.algo).concat(_descriptor_4.toValue(value_0.txParamType).concat(_descriptor_1.toValue(value_0.txParamsDigest).concat(_descriptor_1.toValue(value_0.executionDest)))))));
107
387
  }
108
388
  }
109
389
 
110
- const _descriptor_16 = new _SignBidirectionalEventNotification_0();
390
+ const _descriptor_41 = new _RequestIdPreimageV1_0();
111
391
 
112
- const _descriptor_17 = __compactRuntime.CompactTypeSecp256k1Base;
392
+ const _descriptor_42 = __compactRuntime.CompactTypeSecp256k1Scalar;
113
393
 
114
- const _descriptor_18 = __compactRuntime.CompactTypeField;
394
+ const _descriptor_43 = __compactRuntime.CompactTypeSecp256k1Base;
115
395
 
116
- const _descriptor_19 = new __compactRuntime.CompactTypeUnsignedInteger(18446744073709551615n, 8);
396
+ const _descriptor_44 = new __compactRuntime.CompactTypeEnum(5, 1);
117
397
 
118
398
  class _tuple_0 {
119
399
  alignment() {
120
- return _descriptor_0.alignment().concat(_descriptor_19.alignment().concat(_descriptor_1.alignment()));
400
+ return _descriptor_44.alignment().concat(_descriptor_41.alignment());
121
401
  }
122
402
  fromValue(value_0) {
123
403
  return [
124
- _descriptor_0.fromValue(value_0),
125
- _descriptor_19.fromValue(value_0),
126
- _descriptor_1.fromValue(value_0)
404
+ _descriptor_44.fromValue(value_0),
405
+ _descriptor_41.fromValue(value_0)
127
406
  ]
128
407
  }
129
408
  toValue(value_0) {
130
- return _descriptor_0.toValue(value_0[0]).concat(_descriptor_19.toValue(value_0[1]).concat(_descriptor_1.toValue(value_0[2])));
409
+ return _descriptor_44.toValue(value_0[0]).concat(_descriptor_41.toValue(value_0[1]));
131
410
  }
132
411
  }
133
412
 
134
- const _descriptor_20 = new _tuple_0();
413
+ const _descriptor_45 = new _tuple_0();
414
+
415
+ const _descriptor_46 = __compactRuntime.CompactTypeField;
135
416
 
136
417
  class _tuple_1 {
137
418
  alignment() {
138
- return _descriptor_0.alignment().concat(_descriptor_19.alignment().concat(_descriptor_0.alignment()));
419
+ return _descriptor_44.alignment().concat(_descriptor_1.alignment().concat(_descriptor_5.alignment().concat(_descriptor_23.alignment().concat(_descriptor_5.alignment().concat(_descriptor_21.alignment())))));
139
420
  }
140
421
  fromValue(value_0) {
141
422
  return [
142
- _descriptor_0.fromValue(value_0),
143
- _descriptor_19.fromValue(value_0),
144
- _descriptor_0.fromValue(value_0)
423
+ _descriptor_44.fromValue(value_0),
424
+ _descriptor_1.fromValue(value_0),
425
+ _descriptor_5.fromValue(value_0),
426
+ _descriptor_23.fromValue(value_0),
427
+ _descriptor_5.fromValue(value_0),
428
+ _descriptor_21.fromValue(value_0)
145
429
  ]
146
430
  }
147
431
  toValue(value_0) {
148
- return _descriptor_0.toValue(value_0[0]).concat(_descriptor_19.toValue(value_0[1]).concat(_descriptor_0.toValue(value_0[2])));
432
+ return _descriptor_44.toValue(value_0[0]).concat(_descriptor_1.toValue(value_0[1]).concat(_descriptor_5.toValue(value_0[2]).concat(_descriptor_23.toValue(value_0[3]).concat(_descriptor_5.toValue(value_0[4]).concat(_descriptor_21.toValue(value_0[5]))))));
149
433
  }
150
434
  }
151
435
 
152
- const _descriptor_21 = new _tuple_1();
436
+ const _descriptor_47 = new _tuple_1();
153
437
 
154
438
  class _tuple_2 {
155
439
  alignment() {
156
- return _descriptor_0.alignment().concat(_descriptor_19.alignment().concat(_descriptor_9.alignment()));
440
+ return _descriptor_44.alignment().concat(_descriptor_1.alignment().concat(_descriptor_5.alignment().concat(_descriptor_23.alignment().concat(_descriptor_5.alignment().concat(_descriptor_1.alignment())))));
157
441
  }
158
442
  fromValue(value_0) {
159
443
  return [
160
- _descriptor_0.fromValue(value_0),
161
- _descriptor_19.fromValue(value_0),
162
- _descriptor_9.fromValue(value_0)
444
+ _descriptor_44.fromValue(value_0),
445
+ _descriptor_1.fromValue(value_0),
446
+ _descriptor_5.fromValue(value_0),
447
+ _descriptor_23.fromValue(value_0),
448
+ _descriptor_5.fromValue(value_0),
449
+ _descriptor_1.fromValue(value_0)
163
450
  ]
164
451
  }
165
452
  toValue(value_0) {
166
- return _descriptor_0.toValue(value_0[0]).concat(_descriptor_19.toValue(value_0[1]).concat(_descriptor_9.toValue(value_0[2])));
453
+ return _descriptor_44.toValue(value_0[0]).concat(_descriptor_1.toValue(value_0[1]).concat(_descriptor_5.toValue(value_0[2]).concat(_descriptor_23.toValue(value_0[3]).concat(_descriptor_5.toValue(value_0[4]).concat(_descriptor_1.toValue(value_0[5]))))));
167
454
  }
168
455
  }
169
456
 
170
- const _descriptor_22 = new _tuple_2();
457
+ const _descriptor_48 = new _tuple_2();
171
458
 
172
459
  class _tuple_3 {
173
460
  alignment() {
174
- return _descriptor_0.alignment().concat(_descriptor_19.alignment().concat(_descriptor_8.alignment()));
461
+ return _descriptor_44.alignment().concat(_descriptor_46.alignment().concat(_descriptor_1.alignment()));
175
462
  }
176
463
  fromValue(value_0) {
177
464
  return [
465
+ _descriptor_44.fromValue(value_0),
466
+ _descriptor_46.fromValue(value_0),
467
+ _descriptor_1.fromValue(value_0)
468
+ ]
469
+ }
470
+ toValue(value_0) {
471
+ return _descriptor_44.toValue(value_0[0]).concat(_descriptor_46.toValue(value_0[1]).concat(_descriptor_1.toValue(value_0[2])));
472
+ }
473
+ }
474
+
475
+ const _descriptor_49 = new _tuple_3();
476
+
477
+ class _tuple_4 {
478
+ alignment() {
479
+ return _descriptor_44.alignment().concat(_descriptor_46.alignment().concat(_descriptor_7.alignment().concat(_descriptor_0.alignment().concat(_descriptor_46.alignment()))));
480
+ }
481
+ fromValue(value_0) {
482
+ return [
483
+ _descriptor_44.fromValue(value_0),
484
+ _descriptor_46.fromValue(value_0),
485
+ _descriptor_7.fromValue(value_0),
178
486
  _descriptor_0.fromValue(value_0),
179
- _descriptor_19.fromValue(value_0),
180
- _descriptor_8.fromValue(value_0)
487
+ _descriptor_46.fromValue(value_0)
488
+ ]
489
+ }
490
+ toValue(value_0) {
491
+ return _descriptor_44.toValue(value_0[0]).concat(_descriptor_46.toValue(value_0[1]).concat(_descriptor_7.toValue(value_0[2]).concat(_descriptor_0.toValue(value_0[3]).concat(_descriptor_46.toValue(value_0[4])))));
492
+ }
493
+ }
494
+
495
+ const _descriptor_50 = new _tuple_4();
496
+
497
+ class _tuple_5 {
498
+ alignment() {
499
+ return _descriptor_44.alignment().concat(_descriptor_1.alignment().concat(_descriptor_5.alignment().concat(_descriptor_23.alignment().concat(_descriptor_5.alignment().concat(_descriptor_35.alignment())))));
500
+ }
501
+ fromValue(value_0) {
502
+ return [
503
+ _descriptor_44.fromValue(value_0),
504
+ _descriptor_1.fromValue(value_0),
505
+ _descriptor_5.fromValue(value_0),
506
+ _descriptor_23.fromValue(value_0),
507
+ _descriptor_5.fromValue(value_0),
508
+ _descriptor_35.fromValue(value_0)
181
509
  ]
182
510
  }
183
511
  toValue(value_0) {
184
- return _descriptor_0.toValue(value_0[0]).concat(_descriptor_19.toValue(value_0[1]).concat(_descriptor_8.toValue(value_0[2])));
512
+ return _descriptor_44.toValue(value_0[0]).concat(_descriptor_1.toValue(value_0[1]).concat(_descriptor_5.toValue(value_0[2]).concat(_descriptor_23.toValue(value_0[3]).concat(_descriptor_5.toValue(value_0[4]).concat(_descriptor_35.toValue(value_0[5]))))));
185
513
  }
186
514
  }
187
515
 
188
- const _descriptor_23 = new _tuple_3();
516
+ const _descriptor_51 = new _tuple_5();
517
+
518
+ class _tuple_6 {
519
+ alignment() {
520
+ return _descriptor_44.alignment().concat(_descriptor_5.alignment().concat(_descriptor_5.alignment().concat(_descriptor_6.alignment().concat(_descriptor_6.alignment().concat(_descriptor_5.alignment().concat(_descriptor_7.alignment().concat(_descriptor_6.alignment().concat(_descriptor_8.alignment().concat(_descriptor_9.alignment().concat(_descriptor_10.alignment().concat(_descriptor_0.alignment())))))))))));
521
+ }
522
+ fromValue(value_0) {
523
+ return [
524
+ _descriptor_44.fromValue(value_0),
525
+ _descriptor_5.fromValue(value_0),
526
+ _descriptor_5.fromValue(value_0),
527
+ _descriptor_6.fromValue(value_0),
528
+ _descriptor_6.fromValue(value_0),
529
+ _descriptor_5.fromValue(value_0),
530
+ _descriptor_7.fromValue(value_0),
531
+ _descriptor_6.fromValue(value_0),
532
+ _descriptor_8.fromValue(value_0),
533
+ _descriptor_9.fromValue(value_0),
534
+ _descriptor_10.fromValue(value_0),
535
+ _descriptor_0.fromValue(value_0)
536
+ ]
537
+ }
538
+ toValue(value_0) {
539
+ return _descriptor_44.toValue(value_0[0]).concat(_descriptor_5.toValue(value_0[1]).concat(_descriptor_5.toValue(value_0[2]).concat(_descriptor_6.toValue(value_0[3]).concat(_descriptor_6.toValue(value_0[4]).concat(_descriptor_5.toValue(value_0[5]).concat(_descriptor_7.toValue(value_0[6]).concat(_descriptor_6.toValue(value_0[7]).concat(_descriptor_8.toValue(value_0[8]).concat(_descriptor_9.toValue(value_0[9]).concat(_descriptor_10.toValue(value_0[10]).concat(_descriptor_0.toValue(value_0[11]))))))))))));
540
+ }
541
+ }
542
+
543
+ const _descriptor_52 = new _tuple_6();
544
+
545
+ class _tuple_7 {
546
+ alignment() {
547
+ return _descriptor_44.alignment().concat(_descriptor_1.alignment().concat(_descriptor_5.alignment().concat(_descriptor_23.alignment().concat(_descriptor_5.alignment().concat(_descriptor_36.alignment())))));
548
+ }
549
+ fromValue(value_0) {
550
+ return [
551
+ _descriptor_44.fromValue(value_0),
552
+ _descriptor_1.fromValue(value_0),
553
+ _descriptor_5.fromValue(value_0),
554
+ _descriptor_23.fromValue(value_0),
555
+ _descriptor_5.fromValue(value_0),
556
+ _descriptor_36.fromValue(value_0)
557
+ ]
558
+ }
559
+ toValue(value_0) {
560
+ return _descriptor_44.toValue(value_0[0]).concat(_descriptor_1.toValue(value_0[1]).concat(_descriptor_5.toValue(value_0[2]).concat(_descriptor_23.toValue(value_0[3]).concat(_descriptor_5.toValue(value_0[4]).concat(_descriptor_36.toValue(value_0[5]))))));
561
+ }
562
+ }
563
+
564
+ const _descriptor_53 = new _tuple_7();
565
+
566
+ class _tuple_8 {
567
+ alignment() {
568
+ return _descriptor_44.alignment().concat(_descriptor_1.alignment().concat(_descriptor_5.alignment().concat(_descriptor_23.alignment().concat(_descriptor_5.alignment().concat(_descriptor_37.alignment())))));
569
+ }
570
+ fromValue(value_0) {
571
+ return [
572
+ _descriptor_44.fromValue(value_0),
573
+ _descriptor_1.fromValue(value_0),
574
+ _descriptor_5.fromValue(value_0),
575
+ _descriptor_23.fromValue(value_0),
576
+ _descriptor_5.fromValue(value_0),
577
+ _descriptor_37.fromValue(value_0)
578
+ ]
579
+ }
580
+ toValue(value_0) {
581
+ return _descriptor_44.toValue(value_0[0]).concat(_descriptor_1.toValue(value_0[1]).concat(_descriptor_5.toValue(value_0[2]).concat(_descriptor_23.toValue(value_0[3]).concat(_descriptor_5.toValue(value_0[4]).concat(_descriptor_37.toValue(value_0[5]))))));
582
+ }
583
+ }
584
+
585
+ const _descriptor_54 = new _tuple_8();
189
586
 
190
587
  class _Secp256k1EcdsaSignature_0 {
191
588
  alignment() {
192
- return _descriptor_12.alignment().concat(_descriptor_12.alignment());
589
+ return _descriptor_42.alignment().concat(_descriptor_42.alignment());
193
590
  }
194
591
  fromValue(value_0) {
195
592
  return {
196
- r: _descriptor_12.fromValue(value_0),
197
- s: _descriptor_12.fromValue(value_0)
593
+ r: _descriptor_42.fromValue(value_0),
594
+ s: _descriptor_42.fromValue(value_0)
198
595
  }
199
596
  }
200
597
  toValue(value_0) {
201
- return _descriptor_12.toValue(value_0.r).concat(_descriptor_12.toValue(value_0.s));
598
+ return _descriptor_42.toValue(value_0.r).concat(_descriptor_42.toValue(value_0.s));
202
599
  }
203
600
  }
204
601
 
205
- const _descriptor_24 = new _Secp256k1EcdsaSignature_0();
602
+ const _descriptor_55 = new _Secp256k1EcdsaSignature_0();
206
603
 
207
604
  class _Either_0 {
208
605
  alignment() {
209
- return _descriptor_7.alignment().concat(_descriptor_0.alignment().concat(_descriptor_0.alignment()));
606
+ return _descriptor_8.alignment().concat(_descriptor_1.alignment().concat(_descriptor_1.alignment()));
210
607
  }
211
608
  fromValue(value_0) {
212
609
  return {
213
- is_left: _descriptor_7.fromValue(value_0),
214
- left: _descriptor_0.fromValue(value_0),
215
- right: _descriptor_0.fromValue(value_0)
610
+ is_left: _descriptor_8.fromValue(value_0),
611
+ left: _descriptor_1.fromValue(value_0),
612
+ right: _descriptor_1.fromValue(value_0)
216
613
  }
217
614
  }
218
615
  toValue(value_0) {
219
- return _descriptor_7.toValue(value_0.is_left).concat(_descriptor_0.toValue(value_0.left).concat(_descriptor_0.toValue(value_0.right)));
616
+ return _descriptor_8.toValue(value_0.is_left).concat(_descriptor_1.toValue(value_0.left).concat(_descriptor_1.toValue(value_0.right)));
220
617
  }
221
618
  }
222
619
 
223
- const _descriptor_25 = new _Either_0();
620
+ const _descriptor_56 = new _Either_0();
224
621
 
225
- const _descriptor_26 = new __compactRuntime.CompactTypeUnsignedInteger(4294967295n, 4);
622
+ const _descriptor_57 = new __compactRuntime.CompactTypeUnsignedInteger(4294967295n, 4);
226
623
 
227
624
  export class Contract {
228
625
  witnesses;
@@ -236,6 +633,9 @@ export class Contract {
236
633
  }
237
634
  this.witnesses = witnesses_0;
238
635
  this.circuits = {
636
+ async calculateRequestIdV1(context, ...args_1) {
637
+ return { result: pureCircuits.calculateRequestIdV1(...args_1), context };
638
+ },
239
639
  async constructSignBidirectionalEventNotificationV1(context, ...args_1) {
240
640
  return { result: pureCircuits.constructSignBidirectionalEventNotificationV1(...args_1), context };
241
641
  },
@@ -254,9 +654,15 @@ export class Contract {
254
654
  async abiWordToUint128(context, ...args_1) {
255
655
  return { result: pureCircuits.abiWordToUint128(...args_1), context };
256
656
  },
657
+ async checkedTruncationU128(context, ...args_1) {
658
+ return { result: pureCircuits.checkedTruncationU128(...args_1), context };
659
+ },
257
660
  async abiWordToBool(context, ...args_1) {
258
661
  return { result: pureCircuits.abiWordToBool(...args_1), context };
259
662
  },
663
+ async calculateSignetAttestationDigest0(context, ...args_1) {
664
+ return { result: pureCircuits.calculateSignetAttestationDigest0(...args_1), context };
665
+ },
260
666
  async calculateSignetAttestationDigest1(context, ...args_1) {
261
667
  return { result: pureCircuits.calculateSignetAttestationDigest1(...args_1), context };
262
668
  },
@@ -269,8 +675,26 @@ export class Contract {
269
675
  async calculateSignetAttestationDigest100(context, ...args_1) {
270
676
  return { result: pureCircuits.calculateSignetAttestationDigest100(...args_1), context };
271
677
  },
678
+ async calculateEvmType2TxParamsDigestV1_1_0_0(context, ...args_1) {
679
+ return { result: pureCircuits.calculateEvmType2TxParamsDigestV1_1_0_0(...args_1), context };
680
+ },
681
+ async calculateEvmType2TxParamsDigestV1_2_1_2(context, ...args_1) {
682
+ return { result: pureCircuits.calculateEvmType2TxParamsDigestV1_2_1_2(...args_1), context };
683
+ },
684
+ async calculateEvmType2RequestIdV1_1_0_0_34(context, ...args_1) {
685
+ return { result: pureCircuits.calculateEvmType2RequestIdV1_1_0_0_34(...args_1), context };
686
+ },
687
+ async calculateEvmType2RequestIdV1_2_1_2_34(context, ...args_1) {
688
+ return { result: pureCircuits.calculateEvmType2RequestIdV1_2_1_2_34(...args_1), context };
689
+ },
690
+ async verifyRespondBidirectionalEvent0(context, ...args_1) {
691
+ return { result: pureCircuits.verifyRespondBidirectionalEvent0(...args_1), context };
692
+ },
272
693
  async verifyRespondBidirectionalEvent32(context, ...args_1) {
273
694
  return { result: pureCircuits.verifyRespondBidirectionalEvent32(...args_1), context };
695
+ },
696
+ async constructSignBidirectionalEventV1_1_0_0_34(context, ...args_1) {
697
+ return { result: pureCircuits.constructSignBidirectionalEventV1_1_0_0_34(...args_1), context };
274
698
  }
275
699
  };
276
700
  this.impureCircuits = {};
@@ -369,19 +793,39 @@ export class Contract {
369
793
  r_0;
370
794
  }
371
795
  _transientHash_0(value_0) {
372
- const result_0 = __compactRuntime.transientHash(_descriptor_22, value_0);
796
+ const result_0 = __compactRuntime.transientHash(_descriptor_53, value_0);
373
797
  return result_0;
374
798
  }
375
799
  _transientHash_1(value_0) {
376
- const result_0 = __compactRuntime.transientHash(_descriptor_23, value_0);
800
+ const result_0 = __compactRuntime.transientHash(_descriptor_54, value_0);
377
801
  return result_0;
378
802
  }
379
803
  _transientHash_2(value_0) {
380
- const result_0 = __compactRuntime.transientHash(_descriptor_20, value_0);
804
+ const result_0 = __compactRuntime.transientHash(_descriptor_51, value_0);
381
805
  return result_0;
382
806
  }
383
807
  _transientHash_3(value_0) {
384
- const result_0 = __compactRuntime.transientHash(_descriptor_21, value_0);
808
+ const result_0 = __compactRuntime.transientHash(_descriptor_52, value_0);
809
+ return result_0;
810
+ }
811
+ _transientHash_4(value_0) {
812
+ const result_0 = __compactRuntime.transientHash(_descriptor_49, value_0);
813
+ return result_0;
814
+ }
815
+ _transientHash_5(value_0) {
816
+ const result_0 = __compactRuntime.transientHash(_descriptor_50, value_0);
817
+ return result_0;
818
+ }
819
+ _transientHash_6(value_0) {
820
+ const result_0 = __compactRuntime.transientHash(_descriptor_47, value_0);
821
+ return result_0;
822
+ }
823
+ _transientHash_7(value_0) {
824
+ const result_0 = __compactRuntime.transientHash(_descriptor_48, value_0);
825
+ return result_0;
826
+ }
827
+ _transientHash_8(value_0) {
828
+ const result_0 = __compactRuntime.transientHash(_descriptor_45, value_0);
385
829
  return result_0;
386
830
  }
387
831
  _upgradeFromTransient_0(x_0) {
@@ -412,6 +856,40 @@ export class Contract {
412
856
  const result_0 = __compactRuntime.secp256k1MulGenerator(b_0);
413
857
  return result_0;
414
858
  }
859
+ _constructSignBidirectionalEventV1_0(keyVersion_0,
860
+ sender_0,
861
+ path_0,
862
+ algo_0,
863
+ txParamType_0,
864
+ txParams_0,
865
+ executionDest_0,
866
+ signatureDest_0,
867
+ params_0,
868
+ outputDeserializationSchema_0)
869
+ {
870
+ __compactRuntime.assert(keyVersion_0 >= 1n, 'keyVersion must be >= 1');
871
+ __compactRuntime.assert(signatureDest_0 === 0,
872
+ 'signatureDest must be unused');
873
+ __compactRuntime.assert(this._equal_0(params_0, new Uint8Array(64)),
874
+ 'params must be zero');
875
+ __compactRuntime.assert(!this._equal_1(path_0,
876
+ new Uint8Array([109, 105, 100, 110, 105, 103, 104, 116, 32, 114, 101, 115, 112, 111, 110, 115, 101, 32, 107, 101, 121, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])),
877
+ 'path is reserved for the MPC response key');
878
+ return { keyVersion: keyVersion_0,
879
+ sender: sender_0,
880
+ path: path_0,
881
+ algo: algo_0,
882
+ txParamType: txParamType_0,
883
+ txParams: txParams_0,
884
+ executionDest: executionDest_0,
885
+ signatureDest: signatureDest_0,
886
+ params: params_0,
887
+ outputDeserializationSchema: outputDeserializationSchema_0,
888
+ respondSerializationSchema: new Uint8Array(0) };
889
+ }
890
+ _calculateRequestIdV1_0(preimage_0) {
891
+ return this._upgradeFromTransient_0(this._transientHash_8([0, preimage_0]));
892
+ }
415
893
  _constructSignBidirectionalEventNotificationV1_0(callerAddress_0,
416
894
  requestsPathDepth_0,
417
895
  requestsPath_0)
@@ -427,51 +905,373 @@ export class Contract {
427
905
  ...Array.from(new Uint8Array(91), BigInt)],
428
906
  Number) };
429
907
  }
430
- _calculateSignetAttestationDigest_0(requestId_0, serializedOutput_0) {
431
- return this._upgradeFromTransient_0(this._transientHash_0([requestId_0,
908
+ _calculateSignetAttestationDigestV1_0(requestId_0,
909
+ blockHeight_0,
910
+ outputKind_0,
911
+ serializedOutput_0)
912
+ {
913
+ return this._upgradeFromTransient_0(this._transientHash_0([1,
914
+ requestId_0,
915
+ blockHeight_0,
916
+ outputKind_0,
432
917
  1n,
433
918
  serializedOutput_0]));
434
919
  }
435
- _calculateSignetAttestationDigest_1(requestId_0, serializedOutput_0) {
436
- return this._upgradeFromTransient_0(this._transientHash_1([requestId_0,
920
+ _calculateSignetAttestationDigestV1_1(requestId_0,
921
+ blockHeight_0,
922
+ outputKind_0,
923
+ serializedOutput_0)
924
+ {
925
+ return this._upgradeFromTransient_0(this._transientHash_1([1,
926
+ requestId_0,
927
+ blockHeight_0,
928
+ outputKind_0,
437
929
  2n,
438
930
  serializedOutput_0]));
439
931
  }
440
- _calculateSignetAttestationDigest_2(requestId_0, serializedOutput_0) {
441
- return this._upgradeFromTransient_0(this._transientHash_2([requestId_0,
932
+ _calculateSignetAttestationDigestV1_2(requestId_0,
933
+ blockHeight_0,
934
+ outputKind_0,
935
+ serializedOutput_0)
936
+ {
937
+ return this._upgradeFromTransient_0(this._transientHash_2([1,
938
+ requestId_0,
939
+ blockHeight_0,
940
+ outputKind_0,
442
941
  100n,
443
942
  serializedOutput_0]));
444
943
  }
445
- _calculateSignetAttestationDigest_3(requestId_0, serializedOutput_0) {
446
- return this._upgradeFromTransient_0(this._transientHash_3([requestId_0,
944
+ _calculateSignetAttestationDigestV1_3(requestId_0,
945
+ blockHeight_0,
946
+ outputKind_0,
947
+ serializedOutput_0)
948
+ {
949
+ return this._upgradeFromTransient_0(this._transientHash_6([1,
950
+ requestId_0,
951
+ blockHeight_0,
952
+ outputKind_0,
953
+ 0n,
954
+ serializedOutput_0]));
955
+ }
956
+ _calculateSignetAttestationDigestV1_4(requestId_0,
957
+ blockHeight_0,
958
+ outputKind_0,
959
+ serializedOutput_0)
960
+ {
961
+ return this._upgradeFromTransient_0(this._transientHash_7([1,
962
+ requestId_0,
963
+ blockHeight_0,
964
+ outputKind_0,
447
965
  32n,
448
966
  serializedOutput_0]));
449
967
  }
450
- _verifyRespondBidirectionalEvent_0(requestId_0,
451
- serializedOutput_0,
452
- respondBidirectionalEvent_0,
453
- mpcResponseKey_0)
968
+ _verifyRespondBidirectionalEventV1_0(serializedOutput_0,
969
+ respondBidirectionalEvent_0,
970
+ mpcResponseKey_0)
454
971
  {
455
- const digest_0 = this._calculateSignetAttestationDigest_3(requestId_0,
456
- serializedOutput_0);
972
+ const digest_0 = this._calculateSignetAttestationDigestV1_3(respondBidirectionalEvent_0.requestId,
973
+ respondBidirectionalEvent_0.blockHeight,
974
+ respondBidirectionalEvent_0.outputKind,
975
+ serializedOutput_0);
976
+ return this._secp256k1EcdsaVerify_0(digest_0,
977
+ { r:
978
+ __compactRuntime.convertBytesToField(115792089237316195423570985008687907852837564279074904382605163141518161494336n,
979
+ 32,
980
+ respondBidirectionalEvent_0.signature.bigR.x,
981
+ 'Secp256k1Scalar',
982
+ 'Signet.compact line 424 char 12'),
983
+ s:
984
+ __compactRuntime.convertBytesToField(115792089237316195423570985008687907852837564279074904382605163141518161494336n,
985
+ 32,
986
+ respondBidirectionalEvent_0.signature.s,
987
+ 'Secp256k1Scalar',
988
+ 'Signet.compact line 425 char 12') },
989
+ mpcResponseKey_0);
990
+ }
991
+ _verifyRespondBidirectionalEventV1_1(serializedOutput_0,
992
+ respondBidirectionalEvent_0,
993
+ mpcResponseKey_0)
994
+ {
995
+ const digest_0 = this._calculateSignetAttestationDigestV1_4(respondBidirectionalEvent_0.requestId,
996
+ respondBidirectionalEvent_0.blockHeight,
997
+ respondBidirectionalEvent_0.outputKind,
998
+ serializedOutput_0);
457
999
  return this._secp256k1EcdsaVerify_0(digest_0,
458
1000
  { r:
459
1001
  __compactRuntime.convertBytesToField(115792089237316195423570985008687907852837564279074904382605163141518161494336n,
460
1002
  32,
461
1003
  respondBidirectionalEvent_0.signature.bigR.x,
462
1004
  'Secp256k1Scalar',
463
- 'Signet.compact line 347 char 12'),
1005
+ 'Signet.compact line 424 char 12'),
464
1006
  s:
465
1007
  __compactRuntime.convertBytesToField(115792089237316195423570985008687907852837564279074904382605163141518161494336n,
466
1008
  32,
467
1009
  respondBidirectionalEvent_0.signature.s,
468
1010
  'Secp256k1Scalar',
469
- 'Signet.compact line 348 char 12') },
1011
+ 'Signet.compact line 425 char 12') },
470
1012
  mpcResponseKey_0);
471
1013
  }
472
1014
  _ethereumCaip2Id_0() {
473
1015
  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]);
474
1016
  }
1017
+ _calculateEvmType2TxParamsDigestV1_0(txParams_0) {
1018
+ const calldata_0 = txParams_0.calldata;
1019
+ const noWords_0 = calldata_0.is_some ? calldata_0.value.noWords : 0n;
1020
+ const selector_0 = calldata_0.is_some ?
1021
+ calldata_0.value.selector :
1022
+ new Uint8Array(4);
1023
+ __compactRuntime.assert(noWords_0 <= 1n, 'calldata noWords exceeds capacity');
1024
+ let t_0;
1025
+ __compactRuntime.assert((t_0 = txParams_0.accessListEntryCount, t_0 <= 0n),
1026
+ 'accessListEntryCount exceeds capacity');
1027
+ const keyCountsFit_0 = this._folder_0(((acc_0, entry_0) =>
1028
+ {
1029
+ let t_1, t_2;
1030
+ return [((t1) => {
1031
+ if (t1 > 255n) {
1032
+ throw new __compactRuntime.CompactError('Signet.compact line 527 char 10: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
1033
+ }
1034
+ return t1;
1035
+ })(acc_0[0] + 1n),
1036
+ acc_0[1]
1037
+ &&
1038
+ ((t_2 = acc_0[0],
1039
+ t_2
1040
+ >=
1041
+ txParams_0.accessListEntryCount)
1042
+ ||
1043
+ (t_1 = entry_0.storageKeyCount,
1044
+ t_1 <= 0n))];
1045
+ }),
1046
+ [0n, true],
1047
+ txParams_0.accessList);
1048
+ __compactRuntime.assert(keyCountsFit_0[1],
1049
+ "a used entry's storageKeyCount exceeds capacity");
1050
+ const head_0 = this._transientHash_3([2,
1051
+ txParams_0.chainId,
1052
+ txParams_0.nonce,
1053
+ txParams_0.maxPriorityFeePerGas,
1054
+ txParams_0.maxFeePerGas,
1055
+ txParams_0.gasLimit,
1056
+ txParams_0.to,
1057
+ txParams_0.value,
1058
+ calldata_0.is_some,
1059
+ selector_0,
1060
+ noWords_0,
1061
+ txParams_0.accessListEntryCount]);
1062
+ const wordsScan_0 = this._folder_1(((acc_1, word_0) =>
1063
+ {
1064
+ let t_3;
1065
+ return [((t1) => {
1066
+ if (t1 > 65535n) {
1067
+ throw new __compactRuntime.CompactError('Signet.compact line 554 char 10: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 65535');
1068
+ }
1069
+ return t1;
1070
+ })(acc_1[0] + 1n),
1071
+ (t_3 = acc_1[0],
1072
+ t_3 < noWords_0)
1073
+ ?
1074
+ this._transientHash_4([3,
1075
+ acc_1[1],
1076
+ word_0])
1077
+ :
1078
+ acc_1[1]];
1079
+ }),
1080
+ [0n, head_0],
1081
+ calldata_0.value.words);
1082
+ const listScan_0 = this._folder_3(((acc_2, entry_1) =>
1083
+ {
1084
+ let t_4;
1085
+ return [((t1) => {
1086
+ if (t1 > 255n) {
1087
+ throw new __compactRuntime.CompactError('Signet.compact line 565 char 11: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
1088
+ }
1089
+ return t1;
1090
+ })(acc_2[0] + 1n),
1091
+ (t_4 = acc_2[0],
1092
+ t_4
1093
+ <
1094
+ txParams_0.accessListEntryCount)
1095
+ ?
1096
+ this._transientHash_5([4,
1097
+ acc_2[1],
1098
+ entry_1.address,
1099
+ entry_1.storageKeyCount,
1100
+ this._folder_2(((keyAcc_0,
1101
+ key_0) =>
1102
+ {
1103
+ let t_5;
1104
+ return [((t1) => {
1105
+ if (t1 > 255n) {
1106
+ throw new __compactRuntime.CompactError('Signet.compact line 574 char 22: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
1107
+ }
1108
+ return t1;
1109
+ })(keyAcc_0[0]
1110
+ +
1111
+ 1n),
1112
+ (t_5 = keyAcc_0[0],
1113
+ t_5
1114
+ <
1115
+ entry_1.storageKeyCount)
1116
+ ?
1117
+ this._transientHash_4([5,
1118
+ keyAcc_0[1],
1119
+ key_0])
1120
+ :
1121
+ keyAcc_0[1]];
1122
+ }),
1123
+ [0n,
1124
+ 0n],
1125
+ entry_1.storageKeys)[1]])
1126
+ :
1127
+ acc_2[1]];
1128
+ }),
1129
+ [0n, wordsScan_0[1]],
1130
+ txParams_0.accessList);
1131
+ return this._upgradeFromTransient_0(listScan_0[1]);
1132
+ }
1133
+ _calculateEvmType2TxParamsDigestV1_1(txParams_0) {
1134
+ const calldata_0 = txParams_0.calldata;
1135
+ const noWords_0 = calldata_0.is_some ? calldata_0.value.noWords : 0n;
1136
+ const selector_0 = calldata_0.is_some ?
1137
+ calldata_0.value.selector :
1138
+ new Uint8Array(4);
1139
+ __compactRuntime.assert(noWords_0 <= 2n, 'calldata noWords exceeds capacity');
1140
+ let t_0;
1141
+ __compactRuntime.assert((t_0 = txParams_0.accessListEntryCount, t_0 <= 1n),
1142
+ 'accessListEntryCount exceeds capacity');
1143
+ const keyCountsFit_0 = this._folder_4(((acc_0, entry_0) =>
1144
+ {
1145
+ let t_1, t_2;
1146
+ return [((t1) => {
1147
+ if (t1 > 255n) {
1148
+ throw new __compactRuntime.CompactError('Signet.compact line 527 char 10: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
1149
+ }
1150
+ return t1;
1151
+ })(acc_0[0] + 1n),
1152
+ acc_0[1]
1153
+ &&
1154
+ ((t_2 = acc_0[0],
1155
+ t_2
1156
+ >=
1157
+ txParams_0.accessListEntryCount)
1158
+ ||
1159
+ (t_1 = entry_0.storageKeyCount,
1160
+ t_1 <= 2n))];
1161
+ }),
1162
+ [0n, true],
1163
+ txParams_0.accessList);
1164
+ __compactRuntime.assert(keyCountsFit_0[1],
1165
+ "a used entry's storageKeyCount exceeds capacity");
1166
+ const head_0 = this._transientHash_3([2,
1167
+ txParams_0.chainId,
1168
+ txParams_0.nonce,
1169
+ txParams_0.maxPriorityFeePerGas,
1170
+ txParams_0.maxFeePerGas,
1171
+ txParams_0.gasLimit,
1172
+ txParams_0.to,
1173
+ txParams_0.value,
1174
+ calldata_0.is_some,
1175
+ selector_0,
1176
+ noWords_0,
1177
+ txParams_0.accessListEntryCount]);
1178
+ const wordsScan_0 = this._folder_5(((acc_1, word_0) =>
1179
+ {
1180
+ let t_3;
1181
+ return [((t1) => {
1182
+ if (t1 > 65535n) {
1183
+ throw new __compactRuntime.CompactError('Signet.compact line 554 char 10: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 65535');
1184
+ }
1185
+ return t1;
1186
+ })(acc_1[0] + 1n),
1187
+ (t_3 = acc_1[0],
1188
+ t_3 < noWords_0)
1189
+ ?
1190
+ this._transientHash_4([3,
1191
+ acc_1[1],
1192
+ word_0])
1193
+ :
1194
+ acc_1[1]];
1195
+ }),
1196
+ [0n, head_0],
1197
+ calldata_0.value.words);
1198
+ const listScan_0 = this._folder_7(((acc_2, entry_1) =>
1199
+ {
1200
+ let t_4;
1201
+ return [((t1) => {
1202
+ if (t1 > 255n) {
1203
+ throw new __compactRuntime.CompactError('Signet.compact line 565 char 11: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
1204
+ }
1205
+ return t1;
1206
+ })(acc_2[0] + 1n),
1207
+ (t_4 = acc_2[0],
1208
+ t_4
1209
+ <
1210
+ txParams_0.accessListEntryCount)
1211
+ ?
1212
+ this._transientHash_5([4,
1213
+ acc_2[1],
1214
+ entry_1.address,
1215
+ entry_1.storageKeyCount,
1216
+ this._folder_6(((keyAcc_0,
1217
+ key_0) =>
1218
+ {
1219
+ let t_5;
1220
+ return [((t1) => {
1221
+ if (t1 > 255n) {
1222
+ throw new __compactRuntime.CompactError('Signet.compact line 574 char 22: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
1223
+ }
1224
+ return t1;
1225
+ })(keyAcc_0[0]
1226
+ +
1227
+ 1n),
1228
+ (t_5 = keyAcc_0[0],
1229
+ t_5
1230
+ <
1231
+ entry_1.storageKeyCount)
1232
+ ?
1233
+ this._transientHash_4([5,
1234
+ keyAcc_0[1],
1235
+ key_0])
1236
+ :
1237
+ keyAcc_0[1]];
1238
+ }),
1239
+ [0n,
1240
+ 0n],
1241
+ entry_1.storageKeys)[1]])
1242
+ :
1243
+ acc_2[1]];
1244
+ }),
1245
+ [0n, wordsScan_0[1]],
1246
+ txParams_0.accessList);
1247
+ return this._upgradeFromTransient_0(listScan_0[1]);
1248
+ }
1249
+ _calculateEvmType2RequestIdV1_0(request_0) {
1250
+ __compactRuntime.assert(request_0.txParamType === 0,
1251
+ 'txParamType must tag txParams as evmType2');
1252
+ const preimage_0 = { keyVersion: request_0.keyVersion,
1253
+ sender: request_0.sender,
1254
+ path: request_0.path,
1255
+ algo: request_0.algo,
1256
+ txParamType: request_0.txParamType,
1257
+ txParamsDigest:
1258
+ this._calculateEvmType2TxParamsDigestV1_0(request_0.txParams),
1259
+ executionDest: request_0.executionDest };
1260
+ return this._calculateRequestIdV1_0(preimage_0);
1261
+ }
1262
+ _calculateEvmType2RequestIdV1_1(request_0) {
1263
+ __compactRuntime.assert(request_0.txParamType === 0,
1264
+ 'txParamType must tag txParams as evmType2');
1265
+ const preimage_0 = { keyVersion: request_0.keyVersion,
1266
+ sender: request_0.sender,
1267
+ path: request_0.path,
1268
+ algo: request_0.algo,
1269
+ txParamType: request_0.txParamType,
1270
+ txParamsDigest:
1271
+ this._calculateEvmType2TxParamsDigestV1_1(request_0.txParams),
1272
+ executionDest: request_0.executionDest };
1273
+ return this._calculateRequestIdV1_0(preimage_0);
1274
+ }
475
1275
  _evmAddressAbiWord_0(addr_0) {
476
1276
  return Uint8Array.from([...Array.from(new Uint8Array(12), BigInt),
477
1277
  ...Array.from(addr_0, BigInt)],
@@ -480,7 +1280,7 @@ export class Contract {
480
1280
  _numericAbiWord_0(value_0) {
481
1281
  const le_0 = Array.from(__compactRuntime.convertBigintToBytes(16,
482
1282
  value_0,
483
- 'Signet.compact line 437 char 17'),
1283
+ 'Signet.compact line 624 char 17'),
484
1284
  BigInt);
485
1285
  return Uint8Array.from([...Array.from(new Uint8Array(16), BigInt),
486
1286
  le_0[15],
@@ -562,18 +1362,27 @@ export class Contract {
562
1362
  v_0[31]);
563
1363
  return ((t1) => {
564
1364
  if (t1 > 340282366920938463463374607431768211455n) {
565
- throw new __compactRuntime.CompactError('Signet.compact line 489 char 12: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 340282366920938463463374607431768211455');
1365
+ throw new __compactRuntime.CompactError('Signet.compact line 676 char 12: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 340282366920938463463374607431768211455');
566
1366
  }
567
1367
  return t1;
568
1368
  })(b15_0);
569
1369
  }
1370
+ _checkedTruncationU128_0(x_0) {
1371
+ const v_0 = Array.from(x_0, BigInt);
1372
+ __compactRuntime.assert(v_0[31] === 0n, 'Value exceeds Uint<128>');
1373
+ return __compactRuntime.convertBytesToUint(340282366920938463463374607431768211455n,
1374
+ 32,
1375
+ x_0,
1376
+ 'Uint<0..340282366920938463463374607431768211456>',
1377
+ 'Signet.compact line 687 char 12');
1378
+ }
570
1379
  _abiWordToBool_0(word_0) {
571
1380
  __compactRuntime.assert(__compactRuntime.convertBytesToUint(52435875175126190479447740508185965837690552500527637822603658699938581184512n,
572
1381
  31,
573
1382
  ((e, i) => e.slice(i, i+31))(word_0,
574
1383
  Number(0n)),
575
1384
  'Field',
576
- 'Signet.compact line 495 char 12')
1385
+ 'Signet.compact line 693 char 12')
577
1386
  ===
578
1387
  0n,
579
1388
  'ABI word is not a canonical Boolean');
@@ -582,36 +1391,140 @@ export class Contract {
582
1391
  ((e, i) => e.slice(i, i+1))(word_0,
583
1392
  Number(31n)),
584
1393
  'Field',
585
- 'Signet.compact line 496 char 18');
1394
+ 'Signet.compact line 694 char 18');
586
1395
  __compactRuntime.assert(last_0 === 0n || last_0 === 1n,
587
1396
  'ABI word is not a canonical Boolean');
588
1397
  return last_0 === 1n;
589
1398
  }
590
- _calculateSignetAttestationDigest1_0(requestId_0, serializedOutput_0) {
591
- return this._calculateSignetAttestationDigest_0(requestId_0,
592
- serializedOutput_0);
1399
+ _calculateSignetAttestationDigest0_0(requestId_0,
1400
+ blockHeight_0,
1401
+ outputKind_0,
1402
+ serializedOutput_0)
1403
+ {
1404
+ return this._calculateSignetAttestationDigestV1_3(requestId_0,
1405
+ blockHeight_0,
1406
+ outputKind_0,
1407
+ serializedOutput_0);
1408
+ }
1409
+ _calculateSignetAttestationDigest1_0(requestId_0,
1410
+ blockHeight_0,
1411
+ outputKind_0,
1412
+ serializedOutput_0)
1413
+ {
1414
+ return this._calculateSignetAttestationDigestV1_0(requestId_0,
1415
+ blockHeight_0,
1416
+ outputKind_0,
1417
+ serializedOutput_0);
1418
+ }
1419
+ _calculateSignetAttestationDigest2_0(requestId_0,
1420
+ blockHeight_0,
1421
+ outputKind_0,
1422
+ serializedOutput_0)
1423
+ {
1424
+ return this._calculateSignetAttestationDigestV1_1(requestId_0,
1425
+ blockHeight_0,
1426
+ outputKind_0,
1427
+ serializedOutput_0);
1428
+ }
1429
+ _calculateSignetAttestationDigest32_0(requestId_0,
1430
+ blockHeight_0,
1431
+ outputKind_0,
1432
+ serializedOutput_0)
1433
+ {
1434
+ return this._calculateSignetAttestationDigestV1_4(requestId_0,
1435
+ blockHeight_0,
1436
+ outputKind_0,
1437
+ serializedOutput_0);
1438
+ }
1439
+ _calculateSignetAttestationDigest100_0(requestId_0,
1440
+ blockHeight_0,
1441
+ outputKind_0,
1442
+ serializedOutput_0)
1443
+ {
1444
+ return this._calculateSignetAttestationDigestV1_2(requestId_0,
1445
+ blockHeight_0,
1446
+ outputKind_0,
1447
+ serializedOutput_0);
1448
+ }
1449
+ _calculateEvmType2TxParamsDigestV1_1_0_0_0(txParams_0) {
1450
+ return this._calculateEvmType2TxParamsDigestV1_0(txParams_0);
1451
+ }
1452
+ _calculateEvmType2TxParamsDigestV1_2_1_2_0(txParams_0) {
1453
+ return this._calculateEvmType2TxParamsDigestV1_1(txParams_0);
593
1454
  }
594
- _calculateSignetAttestationDigest2_0(requestId_0, serializedOutput_0) {
595
- return this._calculateSignetAttestationDigest_1(requestId_0,
596
- serializedOutput_0);
1455
+ _calculateEvmType2RequestIdV1_1_0_0_34_0(request_0) {
1456
+ return this._calculateEvmType2RequestIdV1_0(request_0);
597
1457
  }
598
- _calculateSignetAttestationDigest32_0(requestId_0, serializedOutput_0) {
599
- return this._calculateSignetAttestationDigest_3(requestId_0,
600
- serializedOutput_0);
1458
+ _calculateEvmType2RequestIdV1_2_1_2_34_0(request_0) {
1459
+ return this._calculateEvmType2RequestIdV1_1(request_0);
601
1460
  }
602
- _calculateSignetAttestationDigest100_0(requestId_0, serializedOutput_0) {
603
- return this._calculateSignetAttestationDigest_2(requestId_0,
604
- serializedOutput_0);
1461
+ _verifyRespondBidirectionalEvent0_0(serializedOutput_0,
1462
+ respondBidirectionalEvent_0,
1463
+ mpcResponseKey_0)
1464
+ {
1465
+ return this._verifyRespondBidirectionalEventV1_0(serializedOutput_0,
1466
+ respondBidirectionalEvent_0,
1467
+ mpcResponseKey_0);
605
1468
  }
606
- _verifyRespondBidirectionalEvent32_0(requestId_0,
607
- serializedOutput_0,
1469
+ _verifyRespondBidirectionalEvent32_0(serializedOutput_0,
608
1470
  respondBidirectionalEvent_0,
609
1471
  mpcResponseKey_0)
610
1472
  {
611
- return this._verifyRespondBidirectionalEvent_0(requestId_0,
612
- serializedOutput_0,
613
- respondBidirectionalEvent_0,
614
- mpcResponseKey_0);
1473
+ return this._verifyRespondBidirectionalEventV1_1(serializedOutput_0,
1474
+ respondBidirectionalEvent_0,
1475
+ mpcResponseKey_0);
1476
+ }
1477
+ _constructSignBidirectionalEventV1_1_0_0_34_0(request_0) {
1478
+ return this._constructSignBidirectionalEventV1_0(request_0.keyVersion,
1479
+ request_0.sender,
1480
+ request_0.path,
1481
+ request_0.algo,
1482
+ request_0.txParamType,
1483
+ request_0.txParams,
1484
+ request_0.executionDest,
1485
+ request_0.signatureDest,
1486
+ request_0.params,
1487
+ request_0.outputDeserializationSchema);
1488
+ }
1489
+ _equal_0(x0, y0) {
1490
+ if (!x0.every((x, i) => y0[i] === x)) { return false; }
1491
+ return true;
1492
+ }
1493
+ _equal_1(x0, y0) {
1494
+ if (!x0.every((x, i) => y0[i] === x)) { return false; }
1495
+ return true;
1496
+ }
1497
+ _folder_0(f, x, a0) {
1498
+ for (let i = 0; i < 0; i++) { x = f(x, a0[i]); }
1499
+ return x;
1500
+ }
1501
+ _folder_1(f, x, a0) {
1502
+ for (let i = 0; i < 1; i++) { x = f(x, a0[i]); }
1503
+ return x;
1504
+ }
1505
+ _folder_2(f, x, a0) {
1506
+ for (let i = 0; i < 0; i++) { x = f(x, a0[i]); }
1507
+ return x;
1508
+ }
1509
+ _folder_3(f, x, a0) {
1510
+ for (let i = 0; i < 0; i++) { x = f(x, a0[i]); }
1511
+ return x;
1512
+ }
1513
+ _folder_4(f, x, a0) {
1514
+ for (let i = 0; i < 1; i++) { x = f(x, a0[i]); }
1515
+ return x;
1516
+ }
1517
+ _folder_5(f, x, a0) {
1518
+ for (let i = 0; i < 2; i++) { x = f(x, a0[i]); }
1519
+ return x;
1520
+ }
1521
+ _folder_6(f, x, a0) {
1522
+ for (let i = 0; i < 2; i++) { x = f(x, a0[i]); }
1523
+ return x;
1524
+ }
1525
+ _folder_7(f, x, a0) {
1526
+ for (let i = 0; i < 1; i++) { x = f(x, a0[i]); }
1527
+ return x;
615
1528
  }
616
1529
  }
617
1530
  export function ledger(stateOrChargedState) {
@@ -635,6 +1548,20 @@ const _emptyContext = {
635
1548
  };
636
1549
  const _dummyContract = new Contract({ });
637
1550
  export const pureCircuits = {
1551
+ calculateRequestIdV1: (...args_0) => {
1552
+ if (args_0.length !== 1) {
1553
+ throw new __compactRuntime.CompactError(`calculateRequestIdV1: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
1554
+ }
1555
+ const preimage_0 = args_0[0];
1556
+ 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)) {
1557
+ __compactRuntime.typeError('calculateRequestIdV1',
1558
+ 'argument 1',
1559
+ 'Signet.compact line 226 char 3',
1560
+ '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>>',
1561
+ preimage_0)
1562
+ }
1563
+ return _dummyContract._calculateRequestIdV1_0(preimage_0);
1564
+ },
638
1565
  constructSignBidirectionalEventNotificationV1: (...args_0) => {
639
1566
  if (args_0.length !== 3) {
640
1567
  throw new __compactRuntime.CompactError(`constructSignBidirectionalEventNotificationV1: expected 3 arguments (as invoked from Typescript), received ${args_0.length}`);
@@ -645,21 +1572,21 @@ export const pureCircuits = {
645
1572
  if (!(typeof(callerAddress_0) === 'object' && callerAddress_0.bytes.buffer instanceof ArrayBuffer && callerAddress_0.bytes.BYTES_PER_ELEMENT === 1 && callerAddress_0.bytes.length === 32)) {
646
1573
  __compactRuntime.typeError('constructSignBidirectionalEventNotificationV1',
647
1574
  'argument 1',
648
- 'Signet.compact line 240 char 3',
1575
+ 'Signet.compact line 277 char 3',
649
1576
  'struct ContractAddress<bytes: Bytes<32>>',
650
1577
  callerAddress_0)
651
1578
  }
652
1579
  if (!(typeof(requestsPathDepth_0) === 'bigint' && requestsPathDepth_0 >= 0n && requestsPathDepth_0 <= 255n)) {
653
1580
  __compactRuntime.typeError('constructSignBidirectionalEventNotificationV1',
654
1581
  'argument 2',
655
- 'Signet.compact line 240 char 3',
1582
+ 'Signet.compact line 277 char 3',
656
1583
  'Uint<0..256>',
657
1584
  requestsPathDepth_0)
658
1585
  }
659
1586
  if (!(Array.isArray(requestsPath_0) && requestsPath_0.length === 4 && requestsPath_0.every((t) => typeof(t) === 'bigint' && t >= 0n && t <= 255n))) {
660
1587
  __compactRuntime.typeError('constructSignBidirectionalEventNotificationV1',
661
1588
  'argument 3',
662
- 'Signet.compact line 240 char 3',
1589
+ 'Signet.compact line 277 char 3',
663
1590
  'Vector<4, Uint<0..256>>',
664
1591
  requestsPath_0)
665
1592
  }
@@ -681,7 +1608,7 @@ export const pureCircuits = {
681
1608
  if (!(addr_0.buffer instanceof ArrayBuffer && addr_0.BYTES_PER_ELEMENT === 1 && addr_0.length === 20)) {
682
1609
  __compactRuntime.typeError('evmAddressAbiWord',
683
1610
  'argument 1',
684
- 'Signet.compact line 428 char 3',
1611
+ 'Signet.compact line 615 char 3',
685
1612
  'Bytes<20>',
686
1613
  addr_0)
687
1614
  }
@@ -695,7 +1622,7 @@ export const pureCircuits = {
695
1622
  if (!(typeof(value_0) === 'bigint' && value_0 >= 0n && value_0 <= 340282366920938463463374607431768211455n)) {
696
1623
  __compactRuntime.typeError('numericAbiWord',
697
1624
  'argument 1',
698
- 'Signet.compact line 434 char 3',
1625
+ 'Signet.compact line 621 char 3',
699
1626
  'Uint<0..340282366920938463463374607431768211456>',
700
1627
  value_0)
701
1628
  }
@@ -709,7 +1636,7 @@ export const pureCircuits = {
709
1636
  if (!(typeof(value_0) === 'boolean')) {
710
1637
  __compactRuntime.typeError('boolAbiWord',
711
1638
  'argument 1',
712
- 'Signet.compact line 447 char 3',
1639
+ 'Signet.compact line 634 char 3',
713
1640
  'Boolean',
714
1641
  value_0)
715
1642
  }
@@ -723,12 +1650,26 @@ export const pureCircuits = {
723
1650
  if (!(word_0.buffer instanceof ArrayBuffer && word_0.BYTES_PER_ELEMENT === 1 && word_0.length === 32)) {
724
1651
  __compactRuntime.typeError('abiWordToUint128',
725
1652
  'argument 1',
726
- 'Signet.compact line 455 char 3',
1653
+ 'Signet.compact line 642 char 3',
727
1654
  'Bytes<32>',
728
1655
  word_0)
729
1656
  }
730
1657
  return _dummyContract._abiWordToUint128_0(word_0);
731
1658
  },
1659
+ checkedTruncationU128: (...args_0) => {
1660
+ if (args_0.length !== 1) {
1661
+ throw new __compactRuntime.CompactError(`checkedTruncationU128: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
1662
+ }
1663
+ const x_0 = args_0[0];
1664
+ if (!(x_0.buffer instanceof ArrayBuffer && x_0.BYTES_PER_ELEMENT === 1 && x_0.length === 32)) {
1665
+ __compactRuntime.typeError('checkedTruncationU128',
1666
+ 'argument 1',
1667
+ 'Signet.compact line 683 char 3',
1668
+ 'Bytes<32>',
1669
+ x_0)
1670
+ }
1671
+ return _dummyContract._checkedTruncationU128_0(x_0);
1672
+ },
732
1673
  abiWordToBool: (...args_0) => {
733
1674
  if (args_0.length !== 1) {
734
1675
  throw new __compactRuntime.CompactError(`abiWordToBool: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
@@ -737,137 +1678,336 @@ export const pureCircuits = {
737
1678
  if (!(word_0.buffer instanceof ArrayBuffer && word_0.BYTES_PER_ELEMENT === 1 && word_0.length === 32)) {
738
1679
  __compactRuntime.typeError('abiWordToBool',
739
1680
  'argument 1',
740
- 'Signet.compact line 494 char 3',
1681
+ 'Signet.compact line 692 char 3',
741
1682
  'Bytes<32>',
742
1683
  word_0)
743
1684
  }
744
1685
  return _dummyContract._abiWordToBool_0(word_0);
745
1686
  },
1687
+ calculateSignetAttestationDigest0: (...args_0) => {
1688
+ if (args_0.length !== 4) {
1689
+ throw new __compactRuntime.CompactError(`calculateSignetAttestationDigest0: expected 4 arguments (as invoked from Typescript), received ${args_0.length}`);
1690
+ }
1691
+ const requestId_0 = args_0[0];
1692
+ const blockHeight_0 = args_0[1];
1693
+ const outputKind_0 = args_0[2];
1694
+ const serializedOutput_0 = args_0[3];
1695
+ if (!(requestId_0.buffer instanceof ArrayBuffer && requestId_0.BYTES_PER_ELEMENT === 1 && requestId_0.length === 32)) {
1696
+ __compactRuntime.typeError('calculateSignetAttestationDigest0',
1697
+ 'argument 1',
1698
+ 'circuits.compact line 32 char 1',
1699
+ 'Bytes<32>',
1700
+ requestId_0)
1701
+ }
1702
+ if (!(typeof(blockHeight_0) === 'bigint' && blockHeight_0 >= 0n && blockHeight_0 <= 18446744073709551615n)) {
1703
+ __compactRuntime.typeError('calculateSignetAttestationDigest0',
1704
+ 'argument 2',
1705
+ 'circuits.compact line 32 char 1',
1706
+ 'Uint<0..18446744073709551616>',
1707
+ blockHeight_0)
1708
+ }
1709
+ if (!(typeof(outputKind_0) === 'number' && outputKind_0 >= 0 && outputKind_0 <= 2)) {
1710
+ __compactRuntime.typeError('calculateSignetAttestationDigest0',
1711
+ 'argument 3',
1712
+ 'circuits.compact line 32 char 1',
1713
+ 'Enum<OutputKind, executed, failed, unviable>',
1714
+ outputKind_0)
1715
+ }
1716
+ if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 0)) {
1717
+ __compactRuntime.typeError('calculateSignetAttestationDigest0',
1718
+ 'argument 4',
1719
+ 'circuits.compact line 32 char 1',
1720
+ 'Bytes<0>',
1721
+ serializedOutput_0)
1722
+ }
1723
+ return _dummyContract._calculateSignetAttestationDigest0_0(requestId_0,
1724
+ blockHeight_0,
1725
+ outputKind_0,
1726
+ serializedOutput_0);
1727
+ },
746
1728
  calculateSignetAttestationDigest1: (...args_0) => {
747
- if (args_0.length !== 2) {
748
- throw new __compactRuntime.CompactError(`calculateSignetAttestationDigest1: expected 2 arguments (as invoked from Typescript), received ${args_0.length}`);
1729
+ if (args_0.length !== 4) {
1730
+ throw new __compactRuntime.CompactError(`calculateSignetAttestationDigest1: expected 4 arguments (as invoked from Typescript), received ${args_0.length}`);
749
1731
  }
750
1732
  const requestId_0 = args_0[0];
751
- const serializedOutput_0 = args_0[1];
1733
+ const blockHeight_0 = args_0[1];
1734
+ const outputKind_0 = args_0[2];
1735
+ const serializedOutput_0 = args_0[3];
752
1736
  if (!(requestId_0.buffer instanceof ArrayBuffer && requestId_0.BYTES_PER_ELEMENT === 1 && requestId_0.length === 32)) {
753
1737
  __compactRuntime.typeError('calculateSignetAttestationDigest1',
754
1738
  'argument 1',
755
- 'circuits.compact line 28 char 1',
1739
+ 'circuits.compact line 41 char 1',
756
1740
  'Bytes<32>',
757
1741
  requestId_0)
758
1742
  }
759
- if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 1)) {
1743
+ if (!(typeof(blockHeight_0) === 'bigint' && blockHeight_0 >= 0n && blockHeight_0 <= 18446744073709551615n)) {
760
1744
  __compactRuntime.typeError('calculateSignetAttestationDigest1',
761
1745
  'argument 2',
762
- 'circuits.compact line 28 char 1',
1746
+ 'circuits.compact line 41 char 1',
1747
+ 'Uint<0..18446744073709551616>',
1748
+ blockHeight_0)
1749
+ }
1750
+ if (!(typeof(outputKind_0) === 'number' && outputKind_0 >= 0 && outputKind_0 <= 2)) {
1751
+ __compactRuntime.typeError('calculateSignetAttestationDigest1',
1752
+ 'argument 3',
1753
+ 'circuits.compact line 41 char 1',
1754
+ 'Enum<OutputKind, executed, failed, unviable>',
1755
+ outputKind_0)
1756
+ }
1757
+ if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 1)) {
1758
+ __compactRuntime.typeError('calculateSignetAttestationDigest1',
1759
+ 'argument 4',
1760
+ 'circuits.compact line 41 char 1',
763
1761
  'Bytes<1>',
764
1762
  serializedOutput_0)
765
1763
  }
766
1764
  return _dummyContract._calculateSignetAttestationDigest1_0(requestId_0,
1765
+ blockHeight_0,
1766
+ outputKind_0,
767
1767
  serializedOutput_0);
768
1768
  },
769
1769
  calculateSignetAttestationDigest2: (...args_0) => {
770
- if (args_0.length !== 2) {
771
- throw new __compactRuntime.CompactError(`calculateSignetAttestationDigest2: expected 2 arguments (as invoked from Typescript), received ${args_0.length}`);
1770
+ if (args_0.length !== 4) {
1771
+ throw new __compactRuntime.CompactError(`calculateSignetAttestationDigest2: expected 4 arguments (as invoked from Typescript), received ${args_0.length}`);
772
1772
  }
773
1773
  const requestId_0 = args_0[0];
774
- const serializedOutput_0 = args_0[1];
1774
+ const blockHeight_0 = args_0[1];
1775
+ const outputKind_0 = args_0[2];
1776
+ const serializedOutput_0 = args_0[3];
775
1777
  if (!(requestId_0.buffer instanceof ArrayBuffer && requestId_0.BYTES_PER_ELEMENT === 1 && requestId_0.length === 32)) {
776
1778
  __compactRuntime.typeError('calculateSignetAttestationDigest2',
777
1779
  'argument 1',
778
- 'circuits.compact line 35 char 1',
1780
+ 'circuits.compact line 50 char 1',
779
1781
  'Bytes<32>',
780
1782
  requestId_0)
781
1783
  }
782
- if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 2)) {
1784
+ if (!(typeof(blockHeight_0) === 'bigint' && blockHeight_0 >= 0n && blockHeight_0 <= 18446744073709551615n)) {
783
1785
  __compactRuntime.typeError('calculateSignetAttestationDigest2',
784
1786
  'argument 2',
785
- 'circuits.compact line 35 char 1',
1787
+ 'circuits.compact line 50 char 1',
1788
+ 'Uint<0..18446744073709551616>',
1789
+ blockHeight_0)
1790
+ }
1791
+ if (!(typeof(outputKind_0) === 'number' && outputKind_0 >= 0 && outputKind_0 <= 2)) {
1792
+ __compactRuntime.typeError('calculateSignetAttestationDigest2',
1793
+ 'argument 3',
1794
+ 'circuits.compact line 50 char 1',
1795
+ 'Enum<OutputKind, executed, failed, unviable>',
1796
+ outputKind_0)
1797
+ }
1798
+ if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 2)) {
1799
+ __compactRuntime.typeError('calculateSignetAttestationDigest2',
1800
+ 'argument 4',
1801
+ 'circuits.compact line 50 char 1',
786
1802
  'Bytes<2>',
787
1803
  serializedOutput_0)
788
1804
  }
789
1805
  return _dummyContract._calculateSignetAttestationDigest2_0(requestId_0,
1806
+ blockHeight_0,
1807
+ outputKind_0,
790
1808
  serializedOutput_0);
791
1809
  },
792
1810
  calculateSignetAttestationDigest32: (...args_0) => {
793
- if (args_0.length !== 2) {
794
- throw new __compactRuntime.CompactError(`calculateSignetAttestationDigest32: expected 2 arguments (as invoked from Typescript), received ${args_0.length}`);
1811
+ if (args_0.length !== 4) {
1812
+ throw new __compactRuntime.CompactError(`calculateSignetAttestationDigest32: expected 4 arguments (as invoked from Typescript), received ${args_0.length}`);
795
1813
  }
796
1814
  const requestId_0 = args_0[0];
797
- const serializedOutput_0 = args_0[1];
1815
+ const blockHeight_0 = args_0[1];
1816
+ const outputKind_0 = args_0[2];
1817
+ const serializedOutput_0 = args_0[3];
798
1818
  if (!(requestId_0.buffer instanceof ArrayBuffer && requestId_0.BYTES_PER_ELEMENT === 1 && requestId_0.length === 32)) {
799
1819
  __compactRuntime.typeError('calculateSignetAttestationDigest32',
800
1820
  'argument 1',
801
- 'circuits.compact line 42 char 1',
1821
+ 'circuits.compact line 59 char 1',
802
1822
  'Bytes<32>',
803
1823
  requestId_0)
804
1824
  }
805
- if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 32)) {
1825
+ if (!(typeof(blockHeight_0) === 'bigint' && blockHeight_0 >= 0n && blockHeight_0 <= 18446744073709551615n)) {
806
1826
  __compactRuntime.typeError('calculateSignetAttestationDigest32',
807
1827
  'argument 2',
808
- 'circuits.compact line 42 char 1',
1828
+ 'circuits.compact line 59 char 1',
1829
+ 'Uint<0..18446744073709551616>',
1830
+ blockHeight_0)
1831
+ }
1832
+ if (!(typeof(outputKind_0) === 'number' && outputKind_0 >= 0 && outputKind_0 <= 2)) {
1833
+ __compactRuntime.typeError('calculateSignetAttestationDigest32',
1834
+ 'argument 3',
1835
+ 'circuits.compact line 59 char 1',
1836
+ 'Enum<OutputKind, executed, failed, unviable>',
1837
+ outputKind_0)
1838
+ }
1839
+ if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 32)) {
1840
+ __compactRuntime.typeError('calculateSignetAttestationDigest32',
1841
+ 'argument 4',
1842
+ 'circuits.compact line 59 char 1',
809
1843
  'Bytes<32>',
810
1844
  serializedOutput_0)
811
1845
  }
812
1846
  return _dummyContract._calculateSignetAttestationDigest32_0(requestId_0,
1847
+ blockHeight_0,
1848
+ outputKind_0,
813
1849
  serializedOutput_0);
814
1850
  },
815
1851
  calculateSignetAttestationDigest100: (...args_0) => {
816
- if (args_0.length !== 2) {
817
- throw new __compactRuntime.CompactError(`calculateSignetAttestationDigest100: expected 2 arguments (as invoked from Typescript), received ${args_0.length}`);
1852
+ if (args_0.length !== 4) {
1853
+ throw new __compactRuntime.CompactError(`calculateSignetAttestationDigest100: expected 4 arguments (as invoked from Typescript), received ${args_0.length}`);
818
1854
  }
819
1855
  const requestId_0 = args_0[0];
820
- const serializedOutput_0 = args_0[1];
1856
+ const blockHeight_0 = args_0[1];
1857
+ const outputKind_0 = args_0[2];
1858
+ const serializedOutput_0 = args_0[3];
821
1859
  if (!(requestId_0.buffer instanceof ArrayBuffer && requestId_0.BYTES_PER_ELEMENT === 1 && requestId_0.length === 32)) {
822
1860
  __compactRuntime.typeError('calculateSignetAttestationDigest100',
823
1861
  'argument 1',
824
- 'circuits.compact line 49 char 1',
1862
+ 'circuits.compact line 68 char 1',
825
1863
  'Bytes<32>',
826
1864
  requestId_0)
827
1865
  }
828
- if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 100)) {
1866
+ if (!(typeof(blockHeight_0) === 'bigint' && blockHeight_0 >= 0n && blockHeight_0 <= 18446744073709551615n)) {
829
1867
  __compactRuntime.typeError('calculateSignetAttestationDigest100',
830
1868
  'argument 2',
831
- 'circuits.compact line 49 char 1',
1869
+ 'circuits.compact line 68 char 1',
1870
+ 'Uint<0..18446744073709551616>',
1871
+ blockHeight_0)
1872
+ }
1873
+ if (!(typeof(outputKind_0) === 'number' && outputKind_0 >= 0 && outputKind_0 <= 2)) {
1874
+ __compactRuntime.typeError('calculateSignetAttestationDigest100',
1875
+ 'argument 3',
1876
+ 'circuits.compact line 68 char 1',
1877
+ 'Enum<OutputKind, executed, failed, unviable>',
1878
+ outputKind_0)
1879
+ }
1880
+ if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 100)) {
1881
+ __compactRuntime.typeError('calculateSignetAttestationDigest100',
1882
+ 'argument 4',
1883
+ 'circuits.compact line 68 char 1',
832
1884
  'Bytes<100>',
833
1885
  serializedOutput_0)
834
1886
  }
835
1887
  return _dummyContract._calculateSignetAttestationDigest100_0(requestId_0,
1888
+ blockHeight_0,
1889
+ outputKind_0,
836
1890
  serializedOutput_0);
837
1891
  },
838
- verifyRespondBidirectionalEvent32: (...args_0) => {
839
- if (args_0.length !== 4) {
840
- throw new __compactRuntime.CompactError(`verifyRespondBidirectionalEvent32: expected 4 arguments (as invoked from Typescript), received ${args_0.length}`);
1892
+ calculateEvmType2TxParamsDigestV1_1_0_0: (...args_0) => {
1893
+ if (args_0.length !== 1) {
1894
+ throw new __compactRuntime.CompactError(`calculateEvmType2TxParamsDigestV1_1_0_0: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
841
1895
  }
842
- const requestId_0 = args_0[0];
843
- const serializedOutput_0 = args_0[1];
844
- const respondBidirectionalEvent_0 = args_0[2];
845
- const mpcResponseKey_0 = args_0[3];
846
- if (!(requestId_0.buffer instanceof ArrayBuffer && requestId_0.BYTES_PER_ELEMENT === 1 && requestId_0.length === 32)) {
847
- __compactRuntime.typeError('verifyRespondBidirectionalEvent32',
1896
+ const txParams_0 = args_0[0];
1897
+ 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)))) {
1898
+ __compactRuntime.typeError('calculateEvmType2TxParamsDigestV1_1_0_0',
848
1899
  'argument 1',
849
- 'circuits.compact line 56 char 1',
850
- 'Bytes<32>',
851
- requestId_0)
1900
+ 'circuits.compact line 82 char 1',
1901
+ '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>>>>>',
1902
+ txParams_0)
1903
+ }
1904
+ return _dummyContract._calculateEvmType2TxParamsDigestV1_1_0_0_0(txParams_0);
1905
+ },
1906
+ calculateEvmType2TxParamsDigestV1_2_1_2: (...args_0) => {
1907
+ if (args_0.length !== 1) {
1908
+ throw new __compactRuntime.CompactError(`calculateEvmType2TxParamsDigestV1_2_1_2: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
1909
+ }
1910
+ const txParams_0 = args_0[0];
1911
+ 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)))) {
1912
+ __compactRuntime.typeError('calculateEvmType2TxParamsDigestV1_2_1_2',
1913
+ 'argument 1',
1914
+ 'circuits.compact line 88 char 1',
1915
+ '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>>>>>',
1916
+ txParams_0)
1917
+ }
1918
+ return _dummyContract._calculateEvmType2TxParamsDigestV1_2_1_2_0(txParams_0);
1919
+ },
1920
+ calculateEvmType2RequestIdV1_1_0_0_34: (...args_0) => {
1921
+ if (args_0.length !== 1) {
1922
+ throw new __compactRuntime.CompactError(`calculateEvmType2RequestIdV1_1_0_0_34: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
1923
+ }
1924
+ const request_0 = args_0[0];
1925
+ 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 === 0)) {
1926
+ __compactRuntime.typeError('calculateEvmType2RequestIdV1_1_0_0_34',
1927
+ 'argument 1',
1928
+ 'circuits.compact line 97 char 1',
1929
+ '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<0>>',
1930
+ request_0)
1931
+ }
1932
+ return _dummyContract._calculateEvmType2RequestIdV1_1_0_0_34_0(request_0);
1933
+ },
1934
+ calculateEvmType2RequestIdV1_2_1_2_34: (...args_0) => {
1935
+ if (args_0.length !== 1) {
1936
+ throw new __compactRuntime.CompactError(`calculateEvmType2RequestIdV1_2_1_2_34: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
1937
+ }
1938
+ const request_0 = args_0[0];
1939
+ 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 === 0)) {
1940
+ __compactRuntime.typeError('calculateEvmType2RequestIdV1_2_1_2_34',
1941
+ 'argument 1',
1942
+ 'circuits.compact line 103 char 1',
1943
+ '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<0>>',
1944
+ request_0)
852
1945
  }
1946
+ return _dummyContract._calculateEvmType2RequestIdV1_2_1_2_34_0(request_0);
1947
+ },
1948
+ verifyRespondBidirectionalEvent0: (...args_0) => {
1949
+ if (args_0.length !== 3) {
1950
+ throw new __compactRuntime.CompactError(`verifyRespondBidirectionalEvent0: expected 3 arguments (as invoked from Typescript), received ${args_0.length}`);
1951
+ }
1952
+ const serializedOutput_0 = args_0[0];
1953
+ const respondBidirectionalEvent_0 = args_0[1];
1954
+ const mpcResponseKey_0 = args_0[2];
1955
+ if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 0)) {
1956
+ __compactRuntime.typeError('verifyRespondBidirectionalEvent0',
1957
+ 'argument 1',
1958
+ 'circuits.compact line 109 char 1',
1959
+ 'Bytes<0>',
1960
+ serializedOutput_0)
1961
+ }
1962
+ 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)) {
1963
+ __compactRuntime.typeError('verifyRespondBidirectionalEvent0',
1964
+ 'argument 2',
1965
+ 'circuits.compact line 109 char 1',
1966
+ '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>>>',
1967
+ respondBidirectionalEvent_0)
1968
+ }
1969
+ return _dummyContract._verifyRespondBidirectionalEvent0_0(serializedOutput_0,
1970
+ respondBidirectionalEvent_0,
1971
+ mpcResponseKey_0);
1972
+ },
1973
+ verifyRespondBidirectionalEvent32: (...args_0) => {
1974
+ if (args_0.length !== 3) {
1975
+ throw new __compactRuntime.CompactError(`verifyRespondBidirectionalEvent32: expected 3 arguments (as invoked from Typescript), received ${args_0.length}`);
1976
+ }
1977
+ const serializedOutput_0 = args_0[0];
1978
+ const respondBidirectionalEvent_0 = args_0[1];
1979
+ const mpcResponseKey_0 = args_0[2];
853
1980
  if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 32)) {
854
1981
  __compactRuntime.typeError('verifyRespondBidirectionalEvent32',
855
- 'argument 2',
856
- 'circuits.compact line 56 char 1',
1982
+ 'argument 1',
1983
+ 'circuits.compact line 121 char 1',
857
1984
  'Bytes<32>',
858
1985
  serializedOutput_0)
859
1986
  }
860
- if (!(typeof(respondBidirectionalEvent_0) === 'object' && typeof(respondBidirectionalEvent_0.signature) === 'object' && typeof(respondBidirectionalEvent_0.signature.bigR) === 'object' && respondBidirectionalEvent_0.signature.bigR.x.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.signature.bigR.x.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.signature.bigR.x.length === 32 && respondBidirectionalEvent_0.signature.bigR.y.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.signature.bigR.y.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.signature.bigR.y.length === 32 && respondBidirectionalEvent_0.signature.s.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.signature.s.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.signature.s.length === 32 && typeof(respondBidirectionalEvent_0.signature.recoveryId) === 'bigint' && respondBidirectionalEvent_0.signature.recoveryId >= 0n && respondBidirectionalEvent_0.signature.recoveryId <= 255n)) {
1987
+ 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)) {
861
1988
  __compactRuntime.typeError('verifyRespondBidirectionalEvent32',
862
- 'argument 3',
863
- 'circuits.compact line 56 char 1',
864
- 'struct RespondBidirectionalEvent<signature: struct Signature<bigR: struct AffinePoint<x: Bytes<32>, y: Bytes<32>>, s: Bytes<32>, recoveryId: Uint<0..256>>>',
1989
+ 'argument 2',
1990
+ 'circuits.compact line 121 char 1',
1991
+ '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>>>',
865
1992
  respondBidirectionalEvent_0)
866
1993
  }
867
- return _dummyContract._verifyRespondBidirectionalEvent32_0(requestId_0,
868
- serializedOutput_0,
1994
+ return _dummyContract._verifyRespondBidirectionalEvent32_0(serializedOutput_0,
869
1995
  respondBidirectionalEvent_0,
870
1996
  mpcResponseKey_0);
1997
+ },
1998
+ constructSignBidirectionalEventV1_1_0_0_34: (...args_0) => {
1999
+ if (args_0.length !== 1) {
2000
+ throw new __compactRuntime.CompactError(`constructSignBidirectionalEventV1_1_0_0_34: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
2001
+ }
2002
+ const request_0 = args_0[0];
2003
+ 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 === 0)) {
2004
+ __compactRuntime.typeError('constructSignBidirectionalEventV1_1_0_0_34',
2005
+ 'argument 1',
2006
+ 'circuits.compact line 133 char 1',
2007
+ '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<0>>',
2008
+ request_0)
2009
+ }
2010
+ return _dummyContract._constructSignBidirectionalEventV1_1_0_0_34_0(request_0);
871
2011
  }
872
2012
  };
873
2013
  export const contractReferenceLocations =