@sig-net/midnight 0.24.0-rc.2 → 0.24.0-rc.4

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