@sig-net/midnight 0.26.0-rc.3 → 0.26.0-rc.6

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 (32) hide show
  1. package/README.md +5 -6
  2. package/dist/constants.d.ts +5 -18
  3. package/dist/constants.d.ts.map +1 -1
  4. package/dist/constants.js +4 -32
  5. package/dist/constants.js.map +1 -1
  6. package/dist/ecdsa-attestation.d.ts +1 -1
  7. package/dist/ecdsa-attestation.js +1 -1
  8. package/dist/managed/compiler/contract-info.json +7 -21
  9. package/dist/managed/compiler/contract-manifest.json +12 -11
  10. package/dist/managed/contract/index.d.ts +2 -4
  11. package/dist/managed/contract/index.js +417 -313
  12. package/dist/managed/contract/index.js.map +1 -1
  13. package/dist/raw-contract-state.d.ts +2 -2
  14. package/dist/record-contract-address.d.ts +10 -27
  15. package/dist/record-contract-address.d.ts.map +1 -1
  16. package/dist/record-contract-address.js +17 -54
  17. package/dist/record-contract-address.js.map +1 -1
  18. package/dist/signature-requests-state-reader.d.ts +2 -2
  19. package/dist/signature-requests-state-reader.js +2 -2
  20. package/dist/signature-response-verification.js +3 -3
  21. package/dist/signature-response-verification.js.map +1 -1
  22. package/dist/signet-contract-events.d.ts +7 -7
  23. package/dist/signet-contract-events.d.ts.map +1 -1
  24. package/dist/signet-contract-events.js +9 -11
  25. package/dist/signet-contract-events.js.map +1 -1
  26. package/dist/signet-request-response-reader.d.ts +15 -19
  27. package/dist/signet-request-response-reader.d.ts.map +1 -1
  28. package/dist/signet-request-response-reader.js +11 -9
  29. package/dist/signet-request-response-reader.js.map +1 -1
  30. package/package.json +5 -5
  31. package/src/Signet.compact +15 -14
  32. package/src/circuits.compact +1 -1
@@ -1,5 +1,5 @@
1
1
  import * as __compactRuntime from '@midnight-ntwrk/compact-runtime';
2
- __compactRuntime.checkRuntimeVersion('0.18.0-rc.1');
2
+ __compactRuntime.checkRuntimeVersion('0.21.0');
3
3
 
4
4
  export var HashDomain;
5
5
  (function (HashDomain) {
@@ -19,236 +19,236 @@ export var OutputKind;
19
19
  OutputKind[OutputKind['unviable'] = 2] = 'unviable';
20
20
  })(OutputKind || (OutputKind = {}));
21
21
 
22
- const _descriptor_0 = new __compactRuntime.CompactTypeBytes(32);
22
+ const _descriptor_0 = new __compactRuntime.CompactTypeUnsignedInteger(255n, 1);
23
23
 
24
- const _descriptor_1 = new __compactRuntime.CompactTypeUnsignedInteger(18446744073709551615n, 8);
24
+ const _descriptor_1 = new __compactRuntime.CompactTypeBytes(32);
25
25
 
26
- const _descriptor_2 = new __compactRuntime.CompactTypeEnum(2, 1);
27
-
28
- class _AffinePoint_0 {
26
+ class _ContractAddress_0 {
29
27
  alignment() {
30
- return _descriptor_0.alignment().concat(_descriptor_0.alignment());
28
+ return _descriptor_1.alignment();
31
29
  }
32
30
  fromValue(value_0) {
33
31
  return {
34
- x: _descriptor_0.fromValue(value_0),
35
- y: _descriptor_0.fromValue(value_0)
32
+ bytes: _descriptor_1.fromValue(value_0)
36
33
  }
37
34
  }
38
35
  toValue(value_0) {
39
- return _descriptor_0.toValue(value_0.x).concat(_descriptor_0.toValue(value_0.y));
36
+ return _descriptor_1.toValue(value_0.bytes);
40
37
  }
41
38
  }
42
39
 
43
- const _descriptor_3 = new _AffinePoint_0();
40
+ const _descriptor_2 = new _ContractAddress_0();
44
41
 
45
- const _descriptor_4 = new __compactRuntime.CompactTypeUnsignedInteger(255n, 1);
42
+ const _descriptor_3 = new __compactRuntime.CompactTypeEnum(1, 1);
46
43
 
47
- class _Signature_0 {
44
+ const _descriptor_4 = new __compactRuntime.CompactTypeEnum(1, 1);
45
+
46
+ const _descriptor_5 = new __compactRuntime.CompactTypeUnsignedInteger(18446744073709551615n, 8);
47
+
48
+ const _descriptor_6 = new __compactRuntime.CompactTypeUnsignedInteger(340282366920938463463374607431768211455n, 16);
49
+
50
+ const _descriptor_7 = new __compactRuntime.CompactTypeBytes(20);
51
+
52
+ const _descriptor_8 = __compactRuntime.CompactTypeBoolean;
53
+
54
+ const _descriptor_9 = new __compactRuntime.CompactTypeBytes(4);
55
+
56
+ const _descriptor_10 = new __compactRuntime.CompactTypeUnsignedInteger(65535n, 2);
57
+
58
+ const _descriptor_11 = new __compactRuntime.CompactTypeVector(1, _descriptor_1);
59
+
60
+ class _EvmCalldata_0 {
48
61
  alignment() {
49
- return _descriptor_3.alignment().concat(_descriptor_0.alignment().concat(_descriptor_4.alignment()));
62
+ return _descriptor_9.alignment().concat(_descriptor_10.alignment().concat(_descriptor_11.alignment()));
50
63
  }
51
64
  fromValue(value_0) {
52
65
  return {
53
- bigR: _descriptor_3.fromValue(value_0),
54
- s: _descriptor_0.fromValue(value_0),
55
- recoveryId: _descriptor_4.fromValue(value_0)
66
+ selector: _descriptor_9.fromValue(value_0),
67
+ noWords: _descriptor_10.fromValue(value_0),
68
+ words: _descriptor_11.fromValue(value_0)
56
69
  }
57
70
  }
58
71
  toValue(value_0) {
59
- return _descriptor_3.toValue(value_0.bigR).concat(_descriptor_0.toValue(value_0.s).concat(_descriptor_4.toValue(value_0.recoveryId)));
72
+ return _descriptor_9.toValue(value_0.selector).concat(_descriptor_10.toValue(value_0.noWords).concat(_descriptor_11.toValue(value_0.words)));
60
73
  }
61
74
  }
62
75
 
63
- const _descriptor_5 = new _Signature_0();
76
+ const _descriptor_12 = new _EvmCalldata_0();
64
77
 
65
- class _RespondBidirectionalEventV1_0 {
78
+ class _Maybe_0 {
66
79
  alignment() {
67
- return _descriptor_0.alignment().concat(_descriptor_1.alignment().concat(_descriptor_2.alignment().concat(_descriptor_1.alignment().concat(_descriptor_0.alignment().concat(_descriptor_0.alignment().concat(_descriptor_5.alignment()))))));
80
+ return _descriptor_8.alignment().concat(_descriptor_12.alignment());
68
81
  }
69
82
  fromValue(value_0) {
70
83
  return {
71
- requestId: _descriptor_0.fromValue(value_0),
72
- blockHeight: _descriptor_1.fromValue(value_0),
73
- outputKind: _descriptor_2.fromValue(value_0),
74
- serializedOutputLength: _descriptor_1.fromValue(value_0),
75
- outputHash: _descriptor_0.fromValue(value_0),
76
- digest: _descriptor_0.fromValue(value_0),
77
- signature: _descriptor_5.fromValue(value_0)
84
+ is_some: _descriptor_8.fromValue(value_0),
85
+ value: _descriptor_12.fromValue(value_0)
78
86
  }
79
87
  }
80
88
  toValue(value_0) {
81
- 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.outputHash).concat(_descriptor_0.toValue(value_0.digest).concat(_descriptor_5.toValue(value_0.signature)))))));
89
+ return _descriptor_8.toValue(value_0.is_some).concat(_descriptor_12.toValue(value_0.value));
82
90
  }
83
91
  }
84
92
 
85
- const _descriptor_6 = new _RespondBidirectionalEventV1_0();
86
-
87
- const _descriptor_7 = __compactRuntime.CompactTypeSecp256k1Point;
93
+ const _descriptor_13 = new _Maybe_0();
88
94
 
89
- const _descriptor_8 = __compactRuntime.CompactTypeBoolean;
95
+ const _descriptor_14 = new __compactRuntime.CompactTypeVector(0, _descriptor_1);
90
96
 
91
- class _ContractAddress_0 {
97
+ class _EvmAccessListEntry_0 {
92
98
  alignment() {
93
- return _descriptor_0.alignment();
99
+ return _descriptor_7.alignment().concat(_descriptor_0.alignment().concat(_descriptor_14.alignment()));
94
100
  }
95
101
  fromValue(value_0) {
96
102
  return {
97
- bytes: _descriptor_0.fromValue(value_0)
103
+ address: _descriptor_7.fromValue(value_0),
104
+ storageKeyCount: _descriptor_0.fromValue(value_0),
105
+ storageKeys: _descriptor_14.fromValue(value_0)
98
106
  }
99
107
  }
100
108
  toValue(value_0) {
101
- return _descriptor_0.toValue(value_0.bytes);
109
+ return _descriptor_7.toValue(value_0.address).concat(_descriptor_0.toValue(value_0.storageKeyCount).concat(_descriptor_14.toValue(value_0.storageKeys)));
102
110
  }
103
111
  }
104
112
 
105
- const _descriptor_9 = new _ContractAddress_0();
113
+ const _descriptor_15 = new _EvmAccessListEntry_0();
106
114
 
107
- const _descriptor_10 = new __compactRuntime.CompactTypeEnum(1, 1);
115
+ const _descriptor_16 = new __compactRuntime.CompactTypeVector(0, _descriptor_15);
108
116
 
109
- const _descriptor_11 = new __compactRuntime.CompactTypeEnum(1, 1);
110
-
111
- const _descriptor_12 = new __compactRuntime.CompactTypeUnsignedInteger(340282366920938463463374607431768211455n, 16);
112
-
113
- const _descriptor_13 = new __compactRuntime.CompactTypeBytes(20);
114
-
115
- const _descriptor_14 = new __compactRuntime.CompactTypeBytes(4);
116
-
117
- const _descriptor_15 = new __compactRuntime.CompactTypeUnsignedInteger(65535n, 2);
118
-
119
- const _descriptor_16 = new __compactRuntime.CompactTypeVector(1, _descriptor_0);
120
-
121
- class _EvmCalldata_0 {
117
+ class _EvmType2TxParams_0 {
122
118
  alignment() {
123
- return _descriptor_14.alignment().concat(_descriptor_15.alignment().concat(_descriptor_16.alignment()));
119
+ return _descriptor_5.alignment().concat(_descriptor_5.alignment().concat(_descriptor_6.alignment().concat(_descriptor_6.alignment().concat(_descriptor_5.alignment().concat(_descriptor_7.alignment().concat(_descriptor_6.alignment().concat(_descriptor_13.alignment().concat(_descriptor_0.alignment().concat(_descriptor_16.alignment())))))))));
124
120
  }
125
121
  fromValue(value_0) {
126
122
  return {
127
- selector: _descriptor_14.fromValue(value_0),
128
- noWords: _descriptor_15.fromValue(value_0),
129
- words: _descriptor_16.fromValue(value_0)
123
+ chainId: _descriptor_5.fromValue(value_0),
124
+ nonce: _descriptor_5.fromValue(value_0),
125
+ maxPriorityFeePerGas: _descriptor_6.fromValue(value_0),
126
+ maxFeePerGas: _descriptor_6.fromValue(value_0),
127
+ gasLimit: _descriptor_5.fromValue(value_0),
128
+ to: _descriptor_7.fromValue(value_0),
129
+ value: _descriptor_6.fromValue(value_0),
130
+ calldata: _descriptor_13.fromValue(value_0),
131
+ accessListEntryCount: _descriptor_0.fromValue(value_0),
132
+ accessList: _descriptor_16.fromValue(value_0)
130
133
  }
131
134
  }
132
135
  toValue(value_0) {
133
- return _descriptor_14.toValue(value_0.selector).concat(_descriptor_15.toValue(value_0.noWords).concat(_descriptor_16.toValue(value_0.words)));
136
+ return _descriptor_5.toValue(value_0.chainId).concat(_descriptor_5.toValue(value_0.nonce).concat(_descriptor_6.toValue(value_0.maxPriorityFeePerGas).concat(_descriptor_6.toValue(value_0.maxFeePerGas).concat(_descriptor_5.toValue(value_0.gasLimit).concat(_descriptor_7.toValue(value_0.to).concat(_descriptor_6.toValue(value_0.value).concat(_descriptor_13.toValue(value_0.calldata).concat(_descriptor_0.toValue(value_0.accessListEntryCount).concat(_descriptor_16.toValue(value_0.accessList))))))))));
134
137
  }
135
138
  }
136
139
 
137
- const _descriptor_17 = new _EvmCalldata_0();
140
+ const _descriptor_17 = new _EvmType2TxParams_0();
138
141
 
139
- class _Maybe_0 {
142
+ const _descriptor_18 = new __compactRuntime.CompactTypeBytes(64);
143
+
144
+ const _descriptor_19 = new __compactRuntime.CompactTypeEnum(1, 1);
145
+
146
+ const _descriptor_20 = new __compactRuntime.CompactTypeBytes(34);
147
+
148
+ const _descriptor_21 = new __compactRuntime.CompactTypeBytes(0);
149
+
150
+ class _SignBidirectionalEventV1_0 {
140
151
  alignment() {
141
- return _descriptor_8.alignment().concat(_descriptor_17.alignment());
152
+ return _descriptor_0.alignment().concat(_descriptor_2.alignment().concat(_descriptor_1.alignment().concat(_descriptor_3.alignment().concat(_descriptor_4.alignment().concat(_descriptor_17.alignment().concat(_descriptor_18.alignment().concat(_descriptor_19.alignment().concat(_descriptor_18.alignment().concat(_descriptor_20.alignment().concat(_descriptor_21.alignment()))))))))));
142
153
  }
143
154
  fromValue(value_0) {
144
155
  return {
145
- is_some: _descriptor_8.fromValue(value_0),
146
- value: _descriptor_17.fromValue(value_0)
156
+ keyVersion: _descriptor_0.fromValue(value_0),
157
+ sender: _descriptor_2.fromValue(value_0),
158
+ path: _descriptor_1.fromValue(value_0),
159
+ algo: _descriptor_3.fromValue(value_0),
160
+ txParamType: _descriptor_4.fromValue(value_0),
161
+ txParams: _descriptor_17.fromValue(value_0),
162
+ executionDest: _descriptor_18.fromValue(value_0),
163
+ signatureDest: _descriptor_19.fromValue(value_0),
164
+ params: _descriptor_18.fromValue(value_0),
165
+ outputDeserializationSchema: _descriptor_20.fromValue(value_0),
166
+ respondSerializationSchema: _descriptor_21.fromValue(value_0)
147
167
  }
148
168
  }
149
169
  toValue(value_0) {
150
- return _descriptor_8.toValue(value_0.is_some).concat(_descriptor_17.toValue(value_0.value));
170
+ return _descriptor_0.toValue(value_0.keyVersion).concat(_descriptor_2.toValue(value_0.sender).concat(_descriptor_1.toValue(value_0.path).concat(_descriptor_3.toValue(value_0.algo).concat(_descriptor_4.toValue(value_0.txParamType).concat(_descriptor_17.toValue(value_0.txParams).concat(_descriptor_18.toValue(value_0.executionDest).concat(_descriptor_19.toValue(value_0.signatureDest).concat(_descriptor_18.toValue(value_0.params).concat(_descriptor_20.toValue(value_0.outputDeserializationSchema).concat(_descriptor_21.toValue(value_0.respondSerializationSchema)))))))))));
151
171
  }
152
172
  }
153
173
 
154
- const _descriptor_18 = new _Maybe_0();
174
+ const _descriptor_22 = new _SignBidirectionalEventV1_0();
155
175
 
156
- const _descriptor_19 = new __compactRuntime.CompactTypeVector(0, _descriptor_0);
176
+ const _descriptor_23 = new __compactRuntime.CompactTypeEnum(2, 1);
157
177
 
158
- class _EvmAccessListEntry_0 {
178
+ class _AffinePoint_0 {
159
179
  alignment() {
160
- return _descriptor_13.alignment().concat(_descriptor_4.alignment().concat(_descriptor_19.alignment()));
180
+ return _descriptor_1.alignment().concat(_descriptor_1.alignment());
161
181
  }
162
182
  fromValue(value_0) {
163
183
  return {
164
- address: _descriptor_13.fromValue(value_0),
165
- storageKeyCount: _descriptor_4.fromValue(value_0),
166
- storageKeys: _descriptor_19.fromValue(value_0)
184
+ x: _descriptor_1.fromValue(value_0),
185
+ y: _descriptor_1.fromValue(value_0)
167
186
  }
168
187
  }
169
188
  toValue(value_0) {
170
- return _descriptor_13.toValue(value_0.address).concat(_descriptor_4.toValue(value_0.storageKeyCount).concat(_descriptor_19.toValue(value_0.storageKeys)));
189
+ return _descriptor_1.toValue(value_0.x).concat(_descriptor_1.toValue(value_0.y));
171
190
  }
172
191
  }
173
192
 
174
- const _descriptor_20 = new _EvmAccessListEntry_0();
175
-
176
- const _descriptor_21 = new __compactRuntime.CompactTypeVector(0, _descriptor_20);
193
+ const _descriptor_24 = new _AffinePoint_0();
177
194
 
178
- class _EvmType2TxParams_0 {
195
+ class _Signature_0 {
179
196
  alignment() {
180
- 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())))))))));
197
+ return _descriptor_24.alignment().concat(_descriptor_1.alignment().concat(_descriptor_0.alignment()));
181
198
  }
182
199
  fromValue(value_0) {
183
200
  return {
184
- chainId: _descriptor_1.fromValue(value_0),
185
- nonce: _descriptor_1.fromValue(value_0),
186
- maxPriorityFeePerGas: _descriptor_12.fromValue(value_0),
187
- maxFeePerGas: _descriptor_12.fromValue(value_0),
188
- gasLimit: _descriptor_1.fromValue(value_0),
189
- to: _descriptor_13.fromValue(value_0),
190
- value: _descriptor_12.fromValue(value_0),
191
- calldata: _descriptor_18.fromValue(value_0),
192
- accessListEntryCount: _descriptor_4.fromValue(value_0),
193
- accessList: _descriptor_21.fromValue(value_0)
201
+ bigR: _descriptor_24.fromValue(value_0),
202
+ s: _descriptor_1.fromValue(value_0),
203
+ recoveryId: _descriptor_0.fromValue(value_0)
194
204
  }
195
205
  }
196
206
  toValue(value_0) {
197
- 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))))))))));
207
+ return _descriptor_24.toValue(value_0.bigR).concat(_descriptor_1.toValue(value_0.s).concat(_descriptor_0.toValue(value_0.recoveryId)));
198
208
  }
199
209
  }
200
210
 
201
- const _descriptor_22 = new _EvmType2TxParams_0();
211
+ const _descriptor_25 = new _Signature_0();
202
212
 
203
- const _descriptor_23 = new __compactRuntime.CompactTypeBytes(64);
204
-
205
- const _descriptor_24 = new __compactRuntime.CompactTypeEnum(1, 1);
206
-
207
- const _descriptor_25 = new __compactRuntime.CompactTypeBytes(34);
208
-
209
- const _descriptor_26 = new __compactRuntime.CompactTypeBytes(0);
210
-
211
- class _SignBidirectionalEventV1_0 {
213
+ class _RespondBidirectionalEventV1_0 {
212
214
  alignment() {
213
- 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_23.alignment().concat(_descriptor_24.alignment().concat(_descriptor_23.alignment().concat(_descriptor_25.alignment().concat(_descriptor_26.alignment()))))))))));
215
+ return _descriptor_1.alignment().concat(_descriptor_5.alignment().concat(_descriptor_23.alignment().concat(_descriptor_5.alignment().concat(_descriptor_1.alignment().concat(_descriptor_1.alignment().concat(_descriptor_25.alignment()))))));
214
216
  }
215
217
  fromValue(value_0) {
216
218
  return {
217
- keyVersion: _descriptor_4.fromValue(value_0),
218
- sender: _descriptor_9.fromValue(value_0),
219
- path: _descriptor_0.fromValue(value_0),
220
- algo: _descriptor_10.fromValue(value_0),
221
- txParamType: _descriptor_11.fromValue(value_0),
222
- txParams: _descriptor_22.fromValue(value_0),
223
- executionDest: _descriptor_23.fromValue(value_0),
224
- signatureDest: _descriptor_24.fromValue(value_0),
225
- params: _descriptor_23.fromValue(value_0),
226
- outputDeserializationSchema: _descriptor_25.fromValue(value_0),
227
- respondSerializationSchema: _descriptor_26.fromValue(value_0)
219
+ requestId: _descriptor_1.fromValue(value_0),
220
+ blockHeight: _descriptor_5.fromValue(value_0),
221
+ outputKind: _descriptor_23.fromValue(value_0),
222
+ serializedOutputLength: _descriptor_5.fromValue(value_0),
223
+ outputHash: _descriptor_1.fromValue(value_0),
224
+ digest: _descriptor_1.fromValue(value_0),
225
+ signature: _descriptor_25.fromValue(value_0)
228
226
  }
229
227
  }
230
228
  toValue(value_0) {
231
- 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_23.toValue(value_0.executionDest).concat(_descriptor_24.toValue(value_0.signatureDest).concat(_descriptor_23.toValue(value_0.params).concat(_descriptor_25.toValue(value_0.outputDeserializationSchema).concat(_descriptor_26.toValue(value_0.respondSerializationSchema)))))))))));
229
+ return _descriptor_1.toValue(value_0.requestId).concat(_descriptor_5.toValue(value_0.blockHeight).concat(_descriptor_23.toValue(value_0.outputKind).concat(_descriptor_5.toValue(value_0.serializedOutputLength).concat(_descriptor_1.toValue(value_0.outputHash).concat(_descriptor_1.toValue(value_0.digest).concat(_descriptor_25.toValue(value_0.signature)))))));
232
230
  }
233
231
  }
234
232
 
235
- const _descriptor_27 = new _SignBidirectionalEventV1_0();
233
+ const _descriptor_26 = new _RespondBidirectionalEventV1_0();
234
+
235
+ const _descriptor_27 = __compactRuntime.CompactTypeSecp256k1Point;
236
236
 
237
- const _descriptor_28 = new __compactRuntime.CompactTypeVector(2, _descriptor_0);
237
+ const _descriptor_28 = new __compactRuntime.CompactTypeVector(2, _descriptor_1);
238
238
 
239
239
  class _EvmCalldata_1 {
240
240
  alignment() {
241
- return _descriptor_14.alignment().concat(_descriptor_15.alignment().concat(_descriptor_28.alignment()));
241
+ return _descriptor_9.alignment().concat(_descriptor_10.alignment().concat(_descriptor_28.alignment()));
242
242
  }
243
243
  fromValue(value_0) {
244
244
  return {
245
- selector: _descriptor_14.fromValue(value_0),
246
- noWords: _descriptor_15.fromValue(value_0),
245
+ selector: _descriptor_9.fromValue(value_0),
246
+ noWords: _descriptor_10.fromValue(value_0),
247
247
  words: _descriptor_28.fromValue(value_0)
248
248
  }
249
249
  }
250
250
  toValue(value_0) {
251
- return _descriptor_14.toValue(value_0.selector).concat(_descriptor_15.toValue(value_0.noWords).concat(_descriptor_28.toValue(value_0.words)));
251
+ return _descriptor_9.toValue(value_0.selector).concat(_descriptor_10.toValue(value_0.noWords).concat(_descriptor_28.toValue(value_0.words)));
252
252
  }
253
253
  }
254
254
 
@@ -273,17 +273,17 @@ const _descriptor_30 = new _Maybe_1();
273
273
 
274
274
  class _EvmAccessListEntry_1 {
275
275
  alignment() {
276
- return _descriptor_13.alignment().concat(_descriptor_4.alignment().concat(_descriptor_28.alignment()));
276
+ return _descriptor_7.alignment().concat(_descriptor_0.alignment().concat(_descriptor_28.alignment()));
277
277
  }
278
278
  fromValue(value_0) {
279
279
  return {
280
- address: _descriptor_13.fromValue(value_0),
281
- storageKeyCount: _descriptor_4.fromValue(value_0),
280
+ address: _descriptor_7.fromValue(value_0),
281
+ storageKeyCount: _descriptor_0.fromValue(value_0),
282
282
  storageKeys: _descriptor_28.fromValue(value_0)
283
283
  }
284
284
  }
285
285
  toValue(value_0) {
286
- return _descriptor_13.toValue(value_0.address).concat(_descriptor_4.toValue(value_0.storageKeyCount).concat(_descriptor_28.toValue(value_0.storageKeys)));
286
+ return _descriptor_7.toValue(value_0.address).concat(_descriptor_0.toValue(value_0.storageKeyCount).concat(_descriptor_28.toValue(value_0.storageKeys)));
287
287
  }
288
288
  }
289
289
 
@@ -293,24 +293,24 @@ const _descriptor_32 = new __compactRuntime.CompactTypeVector(1, _descriptor_31)
293
293
 
294
294
  class _EvmType2TxParams_1 {
295
295
  alignment() {
296
- 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_30.alignment().concat(_descriptor_4.alignment().concat(_descriptor_32.alignment())))))))));
296
+ return _descriptor_5.alignment().concat(_descriptor_5.alignment().concat(_descriptor_6.alignment().concat(_descriptor_6.alignment().concat(_descriptor_5.alignment().concat(_descriptor_7.alignment().concat(_descriptor_6.alignment().concat(_descriptor_30.alignment().concat(_descriptor_0.alignment().concat(_descriptor_32.alignment())))))))));
297
297
  }
298
298
  fromValue(value_0) {
299
299
  return {
300
- chainId: _descriptor_1.fromValue(value_0),
301
- nonce: _descriptor_1.fromValue(value_0),
302
- maxPriorityFeePerGas: _descriptor_12.fromValue(value_0),
303
- maxFeePerGas: _descriptor_12.fromValue(value_0),
304
- gasLimit: _descriptor_1.fromValue(value_0),
305
- to: _descriptor_13.fromValue(value_0),
306
- value: _descriptor_12.fromValue(value_0),
300
+ chainId: _descriptor_5.fromValue(value_0),
301
+ nonce: _descriptor_5.fromValue(value_0),
302
+ maxPriorityFeePerGas: _descriptor_6.fromValue(value_0),
303
+ maxFeePerGas: _descriptor_6.fromValue(value_0),
304
+ gasLimit: _descriptor_5.fromValue(value_0),
305
+ to: _descriptor_7.fromValue(value_0),
306
+ value: _descriptor_6.fromValue(value_0),
307
307
  calldata: _descriptor_30.fromValue(value_0),
308
- accessListEntryCount: _descriptor_4.fromValue(value_0),
308
+ accessListEntryCount: _descriptor_0.fromValue(value_0),
309
309
  accessList: _descriptor_32.fromValue(value_0)
310
310
  }
311
311
  }
312
312
  toValue(value_0) {
313
- 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_30.toValue(value_0.calldata).concat(_descriptor_4.toValue(value_0.accessListEntryCount).concat(_descriptor_32.toValue(value_0.accessList))))))))));
313
+ return _descriptor_5.toValue(value_0.chainId).concat(_descriptor_5.toValue(value_0.nonce).concat(_descriptor_6.toValue(value_0.maxPriorityFeePerGas).concat(_descriptor_6.toValue(value_0.maxFeePerGas).concat(_descriptor_5.toValue(value_0.gasLimit).concat(_descriptor_7.toValue(value_0.to).concat(_descriptor_6.toValue(value_0.value).concat(_descriptor_30.toValue(value_0.calldata).concat(_descriptor_0.toValue(value_0.accessListEntryCount).concat(_descriptor_32.toValue(value_0.accessList))))))))));
314
314
  }
315
315
  }
316
316
 
@@ -318,78 +318,78 @@ const _descriptor_33 = new _EvmType2TxParams_1();
318
318
 
319
319
  class _SignBidirectionalEventV1_1 {
320
320
  alignment() {
321
- return _descriptor_4.alignment().concat(_descriptor_9.alignment().concat(_descriptor_0.alignment().concat(_descriptor_10.alignment().concat(_descriptor_11.alignment().concat(_descriptor_33.alignment().concat(_descriptor_23.alignment().concat(_descriptor_24.alignment().concat(_descriptor_23.alignment().concat(_descriptor_25.alignment().concat(_descriptor_26.alignment()))))))))));
321
+ return _descriptor_0.alignment().concat(_descriptor_2.alignment().concat(_descriptor_1.alignment().concat(_descriptor_3.alignment().concat(_descriptor_4.alignment().concat(_descriptor_33.alignment().concat(_descriptor_18.alignment().concat(_descriptor_19.alignment().concat(_descriptor_18.alignment().concat(_descriptor_20.alignment().concat(_descriptor_21.alignment()))))))))));
322
322
  }
323
323
  fromValue(value_0) {
324
324
  return {
325
- keyVersion: _descriptor_4.fromValue(value_0),
326
- sender: _descriptor_9.fromValue(value_0),
327
- path: _descriptor_0.fromValue(value_0),
328
- algo: _descriptor_10.fromValue(value_0),
329
- txParamType: _descriptor_11.fromValue(value_0),
325
+ keyVersion: _descriptor_0.fromValue(value_0),
326
+ sender: _descriptor_2.fromValue(value_0),
327
+ path: _descriptor_1.fromValue(value_0),
328
+ algo: _descriptor_3.fromValue(value_0),
329
+ txParamType: _descriptor_4.fromValue(value_0),
330
330
  txParams: _descriptor_33.fromValue(value_0),
331
- executionDest: _descriptor_23.fromValue(value_0),
332
- signatureDest: _descriptor_24.fromValue(value_0),
333
- params: _descriptor_23.fromValue(value_0),
334
- outputDeserializationSchema: _descriptor_25.fromValue(value_0),
335
- respondSerializationSchema: _descriptor_26.fromValue(value_0)
331
+ executionDest: _descriptor_18.fromValue(value_0),
332
+ signatureDest: _descriptor_19.fromValue(value_0),
333
+ params: _descriptor_18.fromValue(value_0),
334
+ outputDeserializationSchema: _descriptor_20.fromValue(value_0),
335
+ respondSerializationSchema: _descriptor_21.fromValue(value_0)
336
336
  }
337
337
  }
338
338
  toValue(value_0) {
339
- return _descriptor_4.toValue(value_0.keyVersion).concat(_descriptor_9.toValue(value_0.sender).concat(_descriptor_0.toValue(value_0.path).concat(_descriptor_10.toValue(value_0.algo).concat(_descriptor_11.toValue(value_0.txParamType).concat(_descriptor_33.toValue(value_0.txParams).concat(_descriptor_23.toValue(value_0.executionDest).concat(_descriptor_24.toValue(value_0.signatureDest).concat(_descriptor_23.toValue(value_0.params).concat(_descriptor_25.toValue(value_0.outputDeserializationSchema).concat(_descriptor_26.toValue(value_0.respondSerializationSchema)))))))))));
339
+ return _descriptor_0.toValue(value_0.keyVersion).concat(_descriptor_2.toValue(value_0.sender).concat(_descriptor_1.toValue(value_0.path).concat(_descriptor_3.toValue(value_0.algo).concat(_descriptor_4.toValue(value_0.txParamType).concat(_descriptor_33.toValue(value_0.txParams).concat(_descriptor_18.toValue(value_0.executionDest).concat(_descriptor_19.toValue(value_0.signatureDest).concat(_descriptor_18.toValue(value_0.params).concat(_descriptor_20.toValue(value_0.outputDeserializationSchema).concat(_descriptor_21.toValue(value_0.respondSerializationSchema)))))))))));
340
340
  }
341
341
  }
342
342
 
343
343
  const _descriptor_34 = new _SignBidirectionalEventV1_1();
344
344
 
345
- const _descriptor_35 = new __compactRuntime.CompactTypeBytes(2);
345
+ const _descriptor_35 = new __compactRuntime.CompactTypeBytes(1);
346
346
 
347
- const _descriptor_36 = new __compactRuntime.CompactTypeBytes(100);
347
+ const _descriptor_36 = new __compactRuntime.CompactTypeBytes(2);
348
348
 
349
- const _descriptor_37 = new __compactRuntime.CompactTypeBytes(1);
349
+ const _descriptor_37 = new __compactRuntime.CompactTypeBytes(100);
350
350
 
351
- class _RequestIdPreimageV1_0 {
351
+ const _descriptor_38 = new __compactRuntime.CompactTypeVector(4, _descriptor_0);
352
+
353
+ const _descriptor_39 = new __compactRuntime.CompactTypeBytes(128);
354
+
355
+ class _SignBidirectionalEventNotification_0 {
352
356
  alignment() {
353
- 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_23.alignment()))))));
357
+ return _descriptor_0.alignment().concat(_descriptor_39.alignment());
354
358
  }
355
359
  fromValue(value_0) {
356
360
  return {
357
- keyVersion: _descriptor_4.fromValue(value_0),
358
- sender: _descriptor_9.fromValue(value_0),
359
- path: _descriptor_0.fromValue(value_0),
360
- algo: _descriptor_10.fromValue(value_0),
361
- txParamType: _descriptor_11.fromValue(value_0),
362
- txParamsDigest: _descriptor_0.fromValue(value_0),
363
- executionDest: _descriptor_23.fromValue(value_0)
361
+ version: _descriptor_0.fromValue(value_0),
362
+ payload: _descriptor_39.fromValue(value_0)
364
363
  }
365
364
  }
366
365
  toValue(value_0) {
367
- 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_23.toValue(value_0.executionDest)))))));
366
+ return _descriptor_0.toValue(value_0.version).concat(_descriptor_39.toValue(value_0.payload));
368
367
  }
369
368
  }
370
369
 
371
- const _descriptor_38 = new _RequestIdPreimageV1_0();
372
-
373
- const _descriptor_39 = new __compactRuntime.CompactTypeVector(4, _descriptor_4);
374
-
375
- const _descriptor_40 = new __compactRuntime.CompactTypeBytes(128);
370
+ const _descriptor_40 = new _SignBidirectionalEventNotification_0();
376
371
 
377
- class _SignBidirectionalEventNotification_0 {
372
+ class _RequestIdPreimageV1_0 {
378
373
  alignment() {
379
- return _descriptor_4.alignment().concat(_descriptor_40.alignment());
374
+ return _descriptor_0.alignment().concat(_descriptor_2.alignment().concat(_descriptor_1.alignment().concat(_descriptor_3.alignment().concat(_descriptor_4.alignment().concat(_descriptor_1.alignment().concat(_descriptor_18.alignment()))))));
380
375
  }
381
376
  fromValue(value_0) {
382
377
  return {
383
- version: _descriptor_4.fromValue(value_0),
384
- payload: _descriptor_40.fromValue(value_0)
378
+ keyVersion: _descriptor_0.fromValue(value_0),
379
+ sender: _descriptor_2.fromValue(value_0),
380
+ path: _descriptor_1.fromValue(value_0),
381
+ algo: _descriptor_3.fromValue(value_0),
382
+ txParamType: _descriptor_4.fromValue(value_0),
383
+ txParamsDigest: _descriptor_1.fromValue(value_0),
384
+ executionDest: _descriptor_18.fromValue(value_0)
385
385
  }
386
386
  }
387
387
  toValue(value_0) {
388
- return _descriptor_4.toValue(value_0.version).concat(_descriptor_40.toValue(value_0.payload));
388
+ return _descriptor_0.toValue(value_0.keyVersion).concat(_descriptor_2.toValue(value_0.sender).concat(_descriptor_1.toValue(value_0.path).concat(_descriptor_3.toValue(value_0.algo).concat(_descriptor_4.toValue(value_0.txParamType).concat(_descriptor_1.toValue(value_0.txParamsDigest).concat(_descriptor_18.toValue(value_0.executionDest)))))));
389
389
  }
390
390
  }
391
391
 
392
- const _descriptor_41 = new _SignBidirectionalEventNotification_0();
392
+ const _descriptor_41 = new _RequestIdPreimageV1_0();
393
393
 
394
394
  const _descriptor_42 = __compactRuntime.CompactTypeSecp256k1Scalar;
395
395
 
@@ -401,16 +401,16 @@ const _descriptor_45 = new __compactRuntime.CompactTypeEnum(6, 1);
401
401
 
402
402
  class _tuple_0 {
403
403
  alignment() {
404
- return _descriptor_45.alignment().concat(_descriptor_38.alignment());
404
+ return _descriptor_45.alignment().concat(_descriptor_41.alignment());
405
405
  }
406
406
  fromValue(value_0) {
407
407
  return [
408
408
  _descriptor_45.fromValue(value_0),
409
- _descriptor_38.fromValue(value_0)
409
+ _descriptor_41.fromValue(value_0)
410
410
  ]
411
411
  }
412
412
  toValue(value_0) {
413
- return _descriptor_45.toValue(value_0[0]).concat(_descriptor_38.toValue(value_0[1]));
413
+ return _descriptor_45.toValue(value_0[0]).concat(_descriptor_41.toValue(value_0[1]));
414
414
  }
415
415
  }
416
416
 
@@ -418,20 +418,20 @@ const _descriptor_46 = new _tuple_0();
418
418
 
419
419
  class _tuple_1 {
420
420
  alignment() {
421
- return _descriptor_45.alignment().concat(_descriptor_0.alignment().concat(_descriptor_1.alignment().concat(_descriptor_2.alignment().concat(_descriptor_1.alignment().concat(_descriptor_0.alignment())))));
421
+ return _descriptor_45.alignment().concat(_descriptor_1.alignment().concat(_descriptor_5.alignment().concat(_descriptor_23.alignment().concat(_descriptor_5.alignment().concat(_descriptor_1.alignment())))));
422
422
  }
423
423
  fromValue(value_0) {
424
424
  return [
425
425
  _descriptor_45.fromValue(value_0),
426
- _descriptor_0.fromValue(value_0),
427
- _descriptor_1.fromValue(value_0),
428
- _descriptor_2.fromValue(value_0),
429
426
  _descriptor_1.fromValue(value_0),
430
- _descriptor_0.fromValue(value_0)
427
+ _descriptor_5.fromValue(value_0),
428
+ _descriptor_23.fromValue(value_0),
429
+ _descriptor_5.fromValue(value_0),
430
+ _descriptor_1.fromValue(value_0)
431
431
  ]
432
432
  }
433
433
  toValue(value_0) {
434
- return _descriptor_45.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]))))));
434
+ return _descriptor_45.toValue(value_0[0]).concat(_descriptor_1.toValue(value_0[1]).concat(_descriptor_5.toValue(value_0[2]).concat(_descriptor_23.toValue(value_0[3]).concat(_descriptor_5.toValue(value_0[4]).concat(_descriptor_1.toValue(value_0[5]))))));
435
435
  }
436
436
  }
437
437
 
@@ -439,16 +439,16 @@ const _descriptor_47 = new _tuple_1();
439
439
 
440
440
  class _tuple_2 {
441
441
  alignment() {
442
- return _descriptor_45.alignment().concat(_descriptor_26.alignment());
442
+ return _descriptor_45.alignment().concat(_descriptor_21.alignment());
443
443
  }
444
444
  fromValue(value_0) {
445
445
  return [
446
446
  _descriptor_45.fromValue(value_0),
447
- _descriptor_26.fromValue(value_0)
447
+ _descriptor_21.fromValue(value_0)
448
448
  ]
449
449
  }
450
450
  toValue(value_0) {
451
- return _descriptor_45.toValue(value_0[0]).concat(_descriptor_26.toValue(value_0[1]));
451
+ return _descriptor_45.toValue(value_0[0]).concat(_descriptor_21.toValue(value_0[1]));
452
452
  }
453
453
  }
454
454
 
@@ -456,16 +456,16 @@ const _descriptor_48 = new _tuple_2();
456
456
 
457
457
  class _tuple_3 {
458
458
  alignment() {
459
- return _descriptor_45.alignment().concat(_descriptor_0.alignment());
459
+ return _descriptor_45.alignment().concat(_descriptor_1.alignment());
460
460
  }
461
461
  fromValue(value_0) {
462
462
  return [
463
463
  _descriptor_45.fromValue(value_0),
464
- _descriptor_0.fromValue(value_0)
464
+ _descriptor_1.fromValue(value_0)
465
465
  ]
466
466
  }
467
467
  toValue(value_0) {
468
- return _descriptor_45.toValue(value_0[0]).concat(_descriptor_0.toValue(value_0[1]));
468
+ return _descriptor_45.toValue(value_0[0]).concat(_descriptor_1.toValue(value_0[1]));
469
469
  }
470
470
  }
471
471
 
@@ -473,17 +473,17 @@ const _descriptor_49 = new _tuple_3();
473
473
 
474
474
  class _tuple_4 {
475
475
  alignment() {
476
- return _descriptor_45.alignment().concat(_descriptor_44.alignment().concat(_descriptor_0.alignment()));
476
+ return _descriptor_45.alignment().concat(_descriptor_44.alignment().concat(_descriptor_1.alignment()));
477
477
  }
478
478
  fromValue(value_0) {
479
479
  return [
480
480
  _descriptor_45.fromValue(value_0),
481
481
  _descriptor_44.fromValue(value_0),
482
- _descriptor_0.fromValue(value_0)
482
+ _descriptor_1.fromValue(value_0)
483
483
  ]
484
484
  }
485
485
  toValue(value_0) {
486
- return _descriptor_45.toValue(value_0[0]).concat(_descriptor_44.toValue(value_0[1]).concat(_descriptor_0.toValue(value_0[2])));
486
+ return _descriptor_45.toValue(value_0[0]).concat(_descriptor_44.toValue(value_0[1]).concat(_descriptor_1.toValue(value_0[2])));
487
487
  }
488
488
  }
489
489
 
@@ -491,19 +491,19 @@ const _descriptor_50 = new _tuple_4();
491
491
 
492
492
  class _tuple_5 {
493
493
  alignment() {
494
- return _descriptor_45.alignment().concat(_descriptor_44.alignment().concat(_descriptor_13.alignment().concat(_descriptor_4.alignment().concat(_descriptor_44.alignment()))));
494
+ return _descriptor_45.alignment().concat(_descriptor_44.alignment().concat(_descriptor_7.alignment().concat(_descriptor_0.alignment().concat(_descriptor_44.alignment()))));
495
495
  }
496
496
  fromValue(value_0) {
497
497
  return [
498
498
  _descriptor_45.fromValue(value_0),
499
499
  _descriptor_44.fromValue(value_0),
500
- _descriptor_13.fromValue(value_0),
501
- _descriptor_4.fromValue(value_0),
500
+ _descriptor_7.fromValue(value_0),
501
+ _descriptor_0.fromValue(value_0),
502
502
  _descriptor_44.fromValue(value_0)
503
503
  ]
504
504
  }
505
505
  toValue(value_0) {
506
- return _descriptor_45.toValue(value_0[0]).concat(_descriptor_44.toValue(value_0[1]).concat(_descriptor_13.toValue(value_0[2]).concat(_descriptor_4.toValue(value_0[3]).concat(_descriptor_44.toValue(value_0[4])))));
506
+ return _descriptor_45.toValue(value_0[0]).concat(_descriptor_44.toValue(value_0[1]).concat(_descriptor_7.toValue(value_0[2]).concat(_descriptor_0.toValue(value_0[3]).concat(_descriptor_44.toValue(value_0[4])))));
507
507
  }
508
508
  }
509
509
 
@@ -511,16 +511,16 @@ const _descriptor_51 = new _tuple_5();
511
511
 
512
512
  class _tuple_6 {
513
513
  alignment() {
514
- return _descriptor_45.alignment().concat(_descriptor_35.alignment());
514
+ return _descriptor_45.alignment().concat(_descriptor_36.alignment());
515
515
  }
516
516
  fromValue(value_0) {
517
517
  return [
518
518
  _descriptor_45.fromValue(value_0),
519
- _descriptor_35.fromValue(value_0)
519
+ _descriptor_36.fromValue(value_0)
520
520
  ]
521
521
  }
522
522
  toValue(value_0) {
523
- return _descriptor_45.toValue(value_0[0]).concat(_descriptor_35.toValue(value_0[1]));
523
+ return _descriptor_45.toValue(value_0[0]).concat(_descriptor_36.toValue(value_0[1]));
524
524
  }
525
525
  }
526
526
 
@@ -528,26 +528,26 @@ const _descriptor_52 = new _tuple_6();
528
528
 
529
529
  class _tuple_7 {
530
530
  alignment() {
531
- return _descriptor_45.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())))))))))));
531
+ return _descriptor_45.alignment().concat(_descriptor_5.alignment().concat(_descriptor_5.alignment().concat(_descriptor_6.alignment().concat(_descriptor_6.alignment().concat(_descriptor_5.alignment().concat(_descriptor_7.alignment().concat(_descriptor_6.alignment().concat(_descriptor_8.alignment().concat(_descriptor_9.alignment().concat(_descriptor_10.alignment().concat(_descriptor_0.alignment())))))))))));
532
532
  }
533
533
  fromValue(value_0) {
534
534
  return [
535
535
  _descriptor_45.fromValue(value_0),
536
- _descriptor_1.fromValue(value_0),
537
- _descriptor_1.fromValue(value_0),
538
- _descriptor_12.fromValue(value_0),
539
- _descriptor_12.fromValue(value_0),
540
- _descriptor_1.fromValue(value_0),
541
- _descriptor_13.fromValue(value_0),
542
- _descriptor_12.fromValue(value_0),
536
+ _descriptor_5.fromValue(value_0),
537
+ _descriptor_5.fromValue(value_0),
538
+ _descriptor_6.fromValue(value_0),
539
+ _descriptor_6.fromValue(value_0),
540
+ _descriptor_5.fromValue(value_0),
541
+ _descriptor_7.fromValue(value_0),
542
+ _descriptor_6.fromValue(value_0),
543
543
  _descriptor_8.fromValue(value_0),
544
- _descriptor_14.fromValue(value_0),
545
- _descriptor_15.fromValue(value_0),
546
- _descriptor_4.fromValue(value_0)
544
+ _descriptor_9.fromValue(value_0),
545
+ _descriptor_10.fromValue(value_0),
546
+ _descriptor_0.fromValue(value_0)
547
547
  ]
548
548
  }
549
549
  toValue(value_0) {
550
- return _descriptor_45.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]))))))))))));
550
+ return _descriptor_45.toValue(value_0[0]).concat(_descriptor_5.toValue(value_0[1]).concat(_descriptor_5.toValue(value_0[2]).concat(_descriptor_6.toValue(value_0[3]).concat(_descriptor_6.toValue(value_0[4]).concat(_descriptor_5.toValue(value_0[5]).concat(_descriptor_7.toValue(value_0[6]).concat(_descriptor_6.toValue(value_0[7]).concat(_descriptor_8.toValue(value_0[8]).concat(_descriptor_9.toValue(value_0[9]).concat(_descriptor_10.toValue(value_0[10]).concat(_descriptor_0.toValue(value_0[11]))))))))))));
551
551
  }
552
552
  }
553
553
 
@@ -555,16 +555,16 @@ const _descriptor_53 = new _tuple_7();
555
555
 
556
556
  class _tuple_8 {
557
557
  alignment() {
558
- return _descriptor_45.alignment().concat(_descriptor_36.alignment());
558
+ return _descriptor_45.alignment().concat(_descriptor_37.alignment());
559
559
  }
560
560
  fromValue(value_0) {
561
561
  return [
562
562
  _descriptor_45.fromValue(value_0),
563
- _descriptor_36.fromValue(value_0)
563
+ _descriptor_37.fromValue(value_0)
564
564
  ]
565
565
  }
566
566
  toValue(value_0) {
567
- return _descriptor_45.toValue(value_0[0]).concat(_descriptor_36.toValue(value_0[1]));
567
+ return _descriptor_45.toValue(value_0[0]).concat(_descriptor_37.toValue(value_0[1]));
568
568
  }
569
569
  }
570
570
 
@@ -572,16 +572,16 @@ const _descriptor_54 = new _tuple_8();
572
572
 
573
573
  class _tuple_9 {
574
574
  alignment() {
575
- return _descriptor_45.alignment().concat(_descriptor_37.alignment());
575
+ return _descriptor_45.alignment().concat(_descriptor_35.alignment());
576
576
  }
577
577
  fromValue(value_0) {
578
578
  return [
579
579
  _descriptor_45.fromValue(value_0),
580
- _descriptor_37.fromValue(value_0)
580
+ _descriptor_35.fromValue(value_0)
581
581
  ]
582
582
  }
583
583
  toValue(value_0) {
584
- return _descriptor_45.toValue(value_0[0]).concat(_descriptor_37.toValue(value_0[1]));
584
+ return _descriptor_45.toValue(value_0[0]).concat(_descriptor_35.toValue(value_0[1]));
585
585
  }
586
586
  }
587
587
 
@@ -606,23 +606,74 @@ const _descriptor_56 = new _Secp256k1EcdsaSignature_0();
606
606
 
607
607
  class _Either_0 {
608
608
  alignment() {
609
- return _descriptor_8.alignment().concat(_descriptor_0.alignment().concat(_descriptor_0.alignment()));
609
+ return _descriptor_8.alignment().concat(_descriptor_1.alignment().concat(_descriptor_1.alignment()));
610
610
  }
611
611
  fromValue(value_0) {
612
612
  return {
613
613
  is_left: _descriptor_8.fromValue(value_0),
614
- left: _descriptor_0.fromValue(value_0),
615
- right: _descriptor_0.fromValue(value_0)
614
+ left: _descriptor_1.fromValue(value_0),
615
+ right: _descriptor_1.fromValue(value_0)
616
616
  }
617
617
  }
618
618
  toValue(value_0) {
619
- return _descriptor_8.toValue(value_0.is_left).concat(_descriptor_0.toValue(value_0.left).concat(_descriptor_0.toValue(value_0.right)));
619
+ return _descriptor_8.toValue(value_0.is_left).concat(_descriptor_1.toValue(value_0.left).concat(_descriptor_1.toValue(value_0.right)));
620
620
  }
621
621
  }
622
622
 
623
623
  const _descriptor_57 = new _Either_0();
624
624
 
625
- const _descriptor_58 = new __compactRuntime.CompactTypeUnsignedInteger(4294967295n, 4);
625
+ class _UserAddress_0 {
626
+ alignment() {
627
+ return _descriptor_1.alignment();
628
+ }
629
+ fromValue(value_0) {
630
+ return {
631
+ bytes: _descriptor_1.fromValue(value_0)
632
+ }
633
+ }
634
+ toValue(value_0) {
635
+ return _descriptor_1.toValue(value_0.bytes);
636
+ }
637
+ }
638
+
639
+ const _descriptor_58 = new _UserAddress_0();
640
+
641
+ class _Either_1 {
642
+ alignment() {
643
+ return _descriptor_8.alignment().concat(_descriptor_2.alignment().concat(_descriptor_58.alignment()));
644
+ }
645
+ fromValue(value_0) {
646
+ return {
647
+ is_left: _descriptor_8.fromValue(value_0),
648
+ left: _descriptor_2.fromValue(value_0),
649
+ right: _descriptor_58.fromValue(value_0)
650
+ }
651
+ }
652
+ toValue(value_0) {
653
+ return _descriptor_8.toValue(value_0.is_left).concat(_descriptor_2.toValue(value_0.left).concat(_descriptor_58.toValue(value_0.right)));
654
+ }
655
+ }
656
+
657
+ const _descriptor_59 = new _Either_1();
658
+
659
+ class _Maybe_2 {
660
+ alignment() {
661
+ return _descriptor_8.alignment().concat(_descriptor_59.alignment());
662
+ }
663
+ fromValue(value_0) {
664
+ return {
665
+ is_some: _descriptor_8.fromValue(value_0),
666
+ value: _descriptor_59.fromValue(value_0)
667
+ }
668
+ }
669
+ toValue(value_0) {
670
+ return _descriptor_8.toValue(value_0.is_some).concat(_descriptor_59.toValue(value_0.value));
671
+ }
672
+ }
673
+
674
+ const _descriptor_60 = new _Maybe_2();
675
+
676
+ const _descriptor_61 = new __compactRuntime.CompactTypeUnsignedInteger(4294967295n, 4);
626
677
 
627
678
  export class Contract {
628
679
  witnesses;
@@ -732,7 +783,7 @@ export class Contract {
732
783
  const state_0 = new __compactRuntime.ContractState();
733
784
  let stateValue_0 = __compactRuntime.StateValue.newArray();
734
785
  state_0.data = new __compactRuntime.ChargedState(stateValue_0);
735
- const context = __compactRuntime.createCircuitContext('constructor', __compactRuntime.dummyContractAddress(), constructorContext_0.initialZswapLocalState.coinPublicKey, state_0.data, constructorContext_0.initialPrivateState);
786
+ const context = __compactRuntime.createCircuitContext({circuitId: 'constructor', contractAddress: __compactRuntime.dummyContractAddress(), coinPublicKeyOrZswapState: constructorContext_0.initialZswapLocalState.coinPublicKey, contractState: state_0.data, privateState: constructorContext_0.initialPrivateState});
736
787
  const partialProofData = {
737
788
  input: { value: [], alignment: [] },
738
789
  output: undefined,
@@ -746,55 +797,57 @@ export class Contract {
746
797
  currentZswapLocalState: context.callContext.currentZswapLocalState
747
798
  }
748
799
  }
749
- _hashToSecp256k1Scalar_0(digest_0) {
750
- const v_0 = Array.from(digest_0, BigInt);
751
- const beReversed_0 = Uint8Array.from([v_0[31],
752
- v_0[30],
753
- v_0[29],
754
- v_0[28],
755
- v_0[27],
756
- v_0[26],
757
- v_0[25],
758
- v_0[24],
759
- v_0[23],
760
- v_0[22],
761
- v_0[21],
762
- v_0[20],
763
- v_0[19],
764
- v_0[18],
765
- v_0[17],
766
- v_0[16],
767
- v_0[15],
768
- v_0[14],
769
- v_0[13],
770
- v_0[12],
771
- v_0[11],
772
- v_0[10],
773
- v_0[9],
774
- v_0[8],
775
- v_0[7],
776
- v_0[6],
777
- v_0[5],
778
- v_0[4],
779
- v_0[3],
780
- v_0[2],
781
- v_0[1],
782
- v_0[0]],
783
- Number);
784
- return __compactRuntime.convertBytesToField(115792089237316195423570985008687907852837564279074904382605163141518161494336n,
785
- 32,
786
- beReversed_0,
787
- 'Secp256k1Scalar',
788
- '<standard library>');
800
+ _reverseBytes32_0(b_0) {
801
+ const v_0 = Array.from(b_0, BigInt);
802
+ return Uint8Array.from([v_0[31],
803
+ v_0[30],
804
+ v_0[29],
805
+ v_0[28],
806
+ v_0[27],
807
+ v_0[26],
808
+ v_0[25],
809
+ v_0[24],
810
+ v_0[23],
811
+ v_0[22],
812
+ v_0[21],
813
+ v_0[20],
814
+ v_0[19],
815
+ v_0[18],
816
+ v_0[17],
817
+ v_0[16],
818
+ v_0[15],
819
+ v_0[14],
820
+ v_0[13],
821
+ v_0[12],
822
+ v_0[11],
823
+ v_0[10],
824
+ v_0[9],
825
+ v_0[8],
826
+ v_0[7],
827
+ v_0[6],
828
+ v_0[5],
829
+ v_0[4],
830
+ v_0[3],
831
+ v_0[2],
832
+ v_0[1],
833
+ v_0[0]],
834
+ Number);
789
835
  }
790
836
  _secp256k1EcdsaVerify_0(msgHash_0, sig_0, pk_0) {
791
- const z_0 = this._hashToSecp256k1Scalar_0(msgHash_0);
792
- const __compact_pattern_tmp1_0 = sig_0;
793
- const r_0 = __compact_pattern_tmp1_0.r;
794
- const s_0 = __compact_pattern_tmp1_0.s;
837
+ __compactRuntime.assert(!this._equal_0(pk_0,
838
+ ({x: 0n, y: 0n, identity: true})),
839
+ 'Secp256k1Point identity is not a permitted secp256k1EcdsaVerify verification key');
840
+ const z_0 = __compactRuntime.convertBytesToField(115792089237316195423570985008687907852837564279074904382605163141518161494336n,
841
+ 32,
842
+ this._reverseBytes32_0(msgHash_0),
843
+ 'Secp256k1Scalar',
844
+ '<standard library>');
845
+ const __compact_pattern_tmp3_0 = sig_0;
846
+ const r_0 = __compact_pattern_tmp3_0.r;
847
+ const s_0 = __compact_pattern_tmp3_0.s;
795
848
  const w_0 = this._inv_0(s_0);
796
- const u1_0 = this._mul_0(z_0, w_0);
797
- const u2_0 = this._mul_0(r_0, w_0);
849
+ const u1_0 = __compactRuntime.secp256k1ScalarMul(z_0, w_0);
850
+ const u2_0 = __compactRuntime.secp256k1ScalarMul(r_0, w_0);
798
851
  const point_0 = this._ecAdd_0(this._ecMulGenerator_0(u1_0),
799
852
  this._ecMul_0(pk_0, u2_0));
800
853
  return __compactRuntime.convertBytesToField(115792089237316195423570985008687907852837564279074904382605163141518161494336n,
@@ -851,10 +904,6 @@ export class Contract {
851
904
  const result_0 = __compactRuntime.upgradeFromTransient(x_0);
852
905
  return result_0;
853
906
  }
854
- _mul_0(x_0, y_0) {
855
- const result_0 = __compactRuntime.secp256k1ScalarMul(x_0, y_0);
856
- return result_0;
857
- }
858
907
  _inv_0(s_0) {
859
908
  const result_0 = __compactRuntime.secp256k1ScalarInv(s_0);
860
909
  return result_0;
@@ -889,9 +938,9 @@ export class Contract {
889
938
  __compactRuntime.assert(keyVersion_0 >= 1n, 'keyVersion must be >= 1');
890
939
  __compactRuntime.assert(signatureDest_0 === 0,
891
940
  'signatureDest must be unused');
892
- __compactRuntime.assert(this._equal_0(params_0, new Uint8Array(64)),
941
+ __compactRuntime.assert(this._equal_1(params_0, new Uint8Array(64)),
893
942
  'params must be zero');
894
- __compactRuntime.assert(!this._equal_1(path_0,
943
+ __compactRuntime.assert(!this._equal_2(path_0,
895
944
  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])),
896
945
  'path is reserved for the MPC response key');
897
946
  return { keyVersion: keyVersion_0,
@@ -965,30 +1014,29 @@ export class Contract {
965
1014
  respondBidirectionalEvent_0.outputKind,
966
1015
  respondBidirectionalEvent_0.serializedOutputLength,
967
1016
  respondBidirectionalEvent_0.outputHash);
968
- const signatureVerifies_0 = this._secp256k1EcdsaVerify_0(digest_0,
969
- { r:
970
- __compactRuntime.convertBytesToField(115792089237316195423570985008687907852837564279074904382605163141518161494336n,
971
- 32,
972
- respondBidirectionalEvent_0.signature.bigR.x,
973
- 'Secp256k1Scalar',
974
- 'Signet.compact line 453 char 12'),
975
- s:
976
- __compactRuntime.convertBytesToField(115792089237316195423570985008687907852837564279074904382605163141518161494336n,
977
- 32,
978
- respondBidirectionalEvent_0.signature.s,
979
- 'Secp256k1Scalar',
980
- 'Signet.compact line 454 char 12') },
981
- mpcResponseKey_0);
982
- return !this._equal_2(mpcResponseKey_0, ({x: 0n, y: 0n, identity: true}))
1017
+ return !this._equal_3(mpcResponseKey_0, ({x: 0n, y: 0n, identity: true}))
983
1018
  &&
984
- signatureVerifies_0;
1019
+ this._secp256k1EcdsaVerify_0(digest_0,
1020
+ { r:
1021
+ __compactRuntime.convertBytesToField(115792089237316195423570985008687907852837564279074904382605163141518161494336n,
1022
+ 32,
1023
+ respondBidirectionalEvent_0.signature.bigR.x,
1024
+ 'Secp256k1Scalar',
1025
+ 'Signet.compact line 455 char 12'),
1026
+ s:
1027
+ __compactRuntime.convertBytesToField(115792089237316195423570985008687907852837564279074904382605163141518161494336n,
1028
+ 32,
1029
+ respondBidirectionalEvent_0.signature.s,
1030
+ 'Secp256k1Scalar',
1031
+ 'Signet.compact line 456 char 12') },
1032
+ mpcResponseKey_0);
985
1033
  }
986
1034
  _verifyAttestedOutputV1_0(serializedOutput_0,
987
1035
  attestedOutputLength_0,
988
1036
  attestedOutputHash_0)
989
1037
  {
990
1038
  const lengthMatches_0 = attestedOutputLength_0 === 1n;
991
- const hashMatches_0 = this._equal_3(attestedOutputHash_0,
1039
+ const hashMatches_0 = this._equal_4(attestedOutputHash_0,
992
1040
  this._calculateAttestedOutputHashV1_1(serializedOutput_0));
993
1041
  return lengthMatches_0 && hashMatches_0;
994
1042
  }
@@ -997,7 +1045,7 @@ export class Contract {
997
1045
  attestedOutputHash_0)
998
1046
  {
999
1047
  const lengthMatches_0 = attestedOutputLength_0 === 2n;
1000
- const hashMatches_0 = this._equal_4(attestedOutputHash_0,
1048
+ const hashMatches_0 = this._equal_5(attestedOutputHash_0,
1001
1049
  this._calculateAttestedOutputHashV1_2(serializedOutput_0));
1002
1050
  return lengthMatches_0 && hashMatches_0;
1003
1051
  }
@@ -1006,7 +1054,7 @@ export class Contract {
1006
1054
  attestedOutputHash_0)
1007
1055
  {
1008
1056
  const lengthMatches_0 = attestedOutputLength_0 === 0n;
1009
- const hashMatches_0 = this._equal_5(attestedOutputHash_0,
1057
+ const hashMatches_0 = this._equal_6(attestedOutputHash_0,
1010
1058
  this._calculateAttestedOutputHashV1_3(serializedOutput_0));
1011
1059
  return lengthMatches_0 && hashMatches_0;
1012
1060
  }
@@ -1015,7 +1063,7 @@ export class Contract {
1015
1063
  attestedOutputHash_0)
1016
1064
  {
1017
1065
  const lengthMatches_0 = attestedOutputLength_0 === 32n;
1018
- const hashMatches_0 = this._equal_6(attestedOutputHash_0,
1066
+ const hashMatches_0 = this._equal_7(attestedOutputHash_0,
1019
1067
  this._calculateAttestedOutputHashV1_4(serializedOutput_0));
1020
1068
  return lengthMatches_0 && hashMatches_0;
1021
1069
  }
@@ -1059,7 +1107,7 @@ export class Contract {
1059
1107
  let t_1, t_2;
1060
1108
  return [((t1) => {
1061
1109
  if (t1 > 255n) {
1062
- throw new __compactRuntime.CompactError('Signet.compact line 597 char 10: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
1110
+ throw new __compactRuntime.CompactError('Signet.compact line 598 char 10: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
1063
1111
  }
1064
1112
  return t1;
1065
1113
  })(acc_0[0] + 1n),
@@ -1094,7 +1142,7 @@ export class Contract {
1094
1142
  let t_3;
1095
1143
  return [((t1) => {
1096
1144
  if (t1 > 65535n) {
1097
- throw new __compactRuntime.CompactError('Signet.compact line 624 char 10: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 65535');
1145
+ throw new __compactRuntime.CompactError('Signet.compact line 625 char 10: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 65535');
1098
1146
  }
1099
1147
  return t1;
1100
1148
  })(acc_1[0] + 1n),
@@ -1114,7 +1162,7 @@ export class Contract {
1114
1162
  let t_4;
1115
1163
  return [((t1) => {
1116
1164
  if (t1 > 255n) {
1117
- throw new __compactRuntime.CompactError('Signet.compact line 635 char 11: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
1165
+ throw new __compactRuntime.CompactError('Signet.compact line 636 char 11: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
1118
1166
  }
1119
1167
  return t1;
1120
1168
  })(acc_2[0] + 1n),
@@ -1133,7 +1181,7 @@ export class Contract {
1133
1181
  let t_5;
1134
1182
  return [((t1) => {
1135
1183
  if (t1 > 255n) {
1136
- throw new __compactRuntime.CompactError('Signet.compact line 644 char 22: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
1184
+ throw new __compactRuntime.CompactError('Signet.compact line 645 char 22: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
1137
1185
  }
1138
1186
  return t1;
1139
1187
  })(keyAcc_0[0]
@@ -1175,7 +1223,7 @@ export class Contract {
1175
1223
  let t_1, t_2;
1176
1224
  return [((t1) => {
1177
1225
  if (t1 > 255n) {
1178
- throw new __compactRuntime.CompactError('Signet.compact line 597 char 10: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
1226
+ throw new __compactRuntime.CompactError('Signet.compact line 598 char 10: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
1179
1227
  }
1180
1228
  return t1;
1181
1229
  })(acc_0[0] + 1n),
@@ -1210,7 +1258,7 @@ export class Contract {
1210
1258
  let t_3;
1211
1259
  return [((t1) => {
1212
1260
  if (t1 > 65535n) {
1213
- throw new __compactRuntime.CompactError('Signet.compact line 624 char 10: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 65535');
1261
+ throw new __compactRuntime.CompactError('Signet.compact line 625 char 10: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 65535');
1214
1262
  }
1215
1263
  return t1;
1216
1264
  })(acc_1[0] + 1n),
@@ -1230,7 +1278,7 @@ export class Contract {
1230
1278
  let t_4;
1231
1279
  return [((t1) => {
1232
1280
  if (t1 > 255n) {
1233
- throw new __compactRuntime.CompactError('Signet.compact line 635 char 11: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
1281
+ throw new __compactRuntime.CompactError('Signet.compact line 636 char 11: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
1234
1282
  }
1235
1283
  return t1;
1236
1284
  })(acc_2[0] + 1n),
@@ -1249,7 +1297,7 @@ export class Contract {
1249
1297
  let t_5;
1250
1298
  return [((t1) => {
1251
1299
  if (t1 > 255n) {
1252
- throw new __compactRuntime.CompactError('Signet.compact line 644 char 22: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
1300
+ throw new __compactRuntime.CompactError('Signet.compact line 645 char 22: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
1253
1301
  }
1254
1302
  return t1;
1255
1303
  })(keyAcc_0[0]
@@ -1310,7 +1358,7 @@ export class Contract {
1310
1358
  _numericAbiWord_0(value_0) {
1311
1359
  const le_0 = Array.from(__compactRuntime.convertBigintToBytes(16,
1312
1360
  value_0,
1313
- 'Signet.compact line 694 char 17'),
1361
+ 'Signet.compact line 695 char 17'),
1314
1362
  BigInt);
1315
1363
  return Uint8Array.from([...Array.from(new Uint8Array(16), BigInt),
1316
1364
  le_0[15],
@@ -1392,7 +1440,7 @@ export class Contract {
1392
1440
  v_0[31]);
1393
1441
  return ((t1) => {
1394
1442
  if (t1 > 340282366920938463463374607431768211455n) {
1395
- throw new __compactRuntime.CompactError('Signet.compact line 746 char 12: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 340282366920938463463374607431768211455');
1443
+ throw new __compactRuntime.CompactError('Signet.compact line 747 char 12: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 340282366920938463463374607431768211455');
1396
1444
  }
1397
1445
  return t1;
1398
1446
  })(b15_0);
@@ -1404,7 +1452,7 @@ export class Contract {
1404
1452
  32,
1405
1453
  x_0,
1406
1454
  'Uint<0..340282366920938463463374607431768211456>',
1407
- 'Signet.compact line 757 char 12');
1455
+ 'Signet.compact line 758 char 12');
1408
1456
  }
1409
1457
  _abiWordToBool_0(word_0) {
1410
1458
  __compactRuntime.assert(__compactRuntime.convertBytesToUint(52435875175126190479447740508185965837690552500527637822603658699938581184512n,
@@ -1412,7 +1460,7 @@ export class Contract {
1412
1460
  ((e, i) => e.slice(i, i+31))(word_0,
1413
1461
  Number(0n)),
1414
1462
  'Field',
1415
- 'Signet.compact line 763 char 12')
1463
+ 'Signet.compact line 764 char 12')
1416
1464
  ===
1417
1465
  0n,
1418
1466
  'ABI word is not a canonical Boolean');
@@ -1421,7 +1469,7 @@ export class Contract {
1421
1469
  ((e, i) => e.slice(i, i+1))(word_0,
1422
1470
  Number(31n)),
1423
1471
  'Field',
1424
- 'Signet.compact line 764 char 18');
1472
+ 'Signet.compact line 765 char 18');
1425
1473
  __compactRuntime.assert(last_0 === 0n || last_0 === 1n,
1426
1474
  'ABI word is not a canonical Boolean');
1427
1475
  return last_0 === 1n;
@@ -1498,7 +1546,10 @@ export class Contract {
1498
1546
  request_0.outputDeserializationSchema);
1499
1547
  }
1500
1548
  _equal_0(x0, y0) {
1501
- if (!x0.every((x, i) => y0[i] === x)) { return false; }
1549
+ if (x0.identity) { return y0.identity; }
1550
+ if (y0.identity || x0.x != y0.x || x0.y != y0.y) {
1551
+ return false;
1552
+ }
1502
1553
  return true;
1503
1554
  }
1504
1555
  _equal_1(x0, y0) {
@@ -1506,16 +1557,16 @@ export class Contract {
1506
1557
  return true;
1507
1558
  }
1508
1559
  _equal_2(x0, y0) {
1560
+ if (!x0.every((x, i) => y0[i] === x)) { return false; }
1561
+ return true;
1562
+ }
1563
+ _equal_3(x0, y0) {
1509
1564
  if (x0.identity) { return y0.identity; }
1510
1565
  if (y0.identity || x0.x != y0.x || x0.y != y0.y) {
1511
1566
  return false;
1512
1567
  }
1513
1568
  return true;
1514
1569
  }
1515
- _equal_3(x0, y0) {
1516
- if (!x0.every((x, i) => y0[i] === x)) { return false; }
1517
- return true;
1518
- }
1519
1570
  _equal_4(x0, y0) {
1520
1571
  if (!x0.every((x, i) => y0[i] === x)) { return false; }
1521
1572
  return true;
@@ -1528,6 +1579,10 @@ export class Contract {
1528
1579
  if (!x0.every((x, i) => y0[i] === x)) { return false; }
1529
1580
  return true;
1530
1581
  }
1582
+ _equal_7(x0, y0) {
1583
+ if (!x0.every((x, i) => y0[i] === x)) { return false; }
1584
+ return true;
1585
+ }
1531
1586
  _folder_0(f, x, a0) {
1532
1587
  for (let i = 0; i < 0; i++) { x = f(x, a0[i]); }
1533
1588
  return x;
@@ -1691,6 +1746,13 @@ export const pureCircuits = {
1691
1746
  'struct RespondBidirectionalEventV1<requestId: Bytes<32>, blockHeight: Uint<0..18446744073709551616>, outputKind: Enum<OutputKind, executed, failed, unviable>, serializedOutputLength: Uint<0..18446744073709551616>, outputHash: Bytes<32>, digest: Bytes<32>, signature: struct Signature<bigR: struct AffinePoint<x: Bytes<32>, y: Bytes<32>>, s: Bytes<32>, recoveryId: Uint<0..256>>>',
1692
1747
  respondBidirectionalEvent_0)
1693
1748
  }
1749
+ if (!(__compactRuntime.isValidSecp256k1Point(mpcResponseKey_0))) {
1750
+ __compactRuntime.typeError('verifyRespondBidirectionalAttestationV1',
1751
+ 'argument 2',
1752
+ 'Signet.compact line 438 char 3',
1753
+ 'Secp256k1Point',
1754
+ mpcResponseKey_0)
1755
+ }
1694
1756
  return _dummyContract._verifyRespondBidirectionalAttestationV1_0(respondBidirectionalEvent_0,
1695
1757
  mpcResponseKey_0);
1696
1758
  },
@@ -1708,7 +1770,7 @@ export const pureCircuits = {
1708
1770
  if (!(addr_0.buffer instanceof ArrayBuffer && addr_0.BYTES_PER_ELEMENT === 1 && addr_0.length === 20)) {
1709
1771
  __compactRuntime.typeError('evmAddressAbiWord',
1710
1772
  'argument 1',
1711
- 'Signet.compact line 685 char 3',
1773
+ 'Signet.compact line 686 char 3',
1712
1774
  'Bytes<20>',
1713
1775
  addr_0)
1714
1776
  }
@@ -1722,7 +1784,7 @@ export const pureCircuits = {
1722
1784
  if (!(typeof(value_0) === 'bigint' && value_0 >= 0n && value_0 <= 340282366920938463463374607431768211455n)) {
1723
1785
  __compactRuntime.typeError('numericAbiWord',
1724
1786
  'argument 1',
1725
- 'Signet.compact line 691 char 3',
1787
+ 'Signet.compact line 692 char 3',
1726
1788
  'Uint<0..340282366920938463463374607431768211456>',
1727
1789
  value_0)
1728
1790
  }
@@ -1736,7 +1798,7 @@ export const pureCircuits = {
1736
1798
  if (!(typeof(value_0) === 'boolean')) {
1737
1799
  __compactRuntime.typeError('boolAbiWord',
1738
1800
  'argument 1',
1739
- 'Signet.compact line 704 char 3',
1801
+ 'Signet.compact line 705 char 3',
1740
1802
  'Boolean',
1741
1803
  value_0)
1742
1804
  }
@@ -1750,7 +1812,7 @@ export const pureCircuits = {
1750
1812
  if (!(word_0.buffer instanceof ArrayBuffer && word_0.BYTES_PER_ELEMENT === 1 && word_0.length === 32)) {
1751
1813
  __compactRuntime.typeError('abiWordToUint128',
1752
1814
  'argument 1',
1753
- 'Signet.compact line 712 char 3',
1815
+ 'Signet.compact line 713 char 3',
1754
1816
  'Bytes<32>',
1755
1817
  word_0)
1756
1818
  }
@@ -1764,7 +1826,7 @@ export const pureCircuits = {
1764
1826
  if (!(x_0.buffer instanceof ArrayBuffer && x_0.BYTES_PER_ELEMENT === 1 && x_0.length === 32)) {
1765
1827
  __compactRuntime.typeError('checkedTruncationU128',
1766
1828
  'argument 1',
1767
- 'Signet.compact line 753 char 3',
1829
+ 'Signet.compact line 754 char 3',
1768
1830
  'Bytes<32>',
1769
1831
  x_0)
1770
1832
  }
@@ -1778,7 +1840,7 @@ export const pureCircuits = {
1778
1840
  if (!(word_0.buffer instanceof ArrayBuffer && word_0.BYTES_PER_ELEMENT === 1 && word_0.length === 32)) {
1779
1841
  __compactRuntime.typeError('abiWordToBool',
1780
1842
  'argument 1',
1781
- 'Signet.compact line 762 char 3',
1843
+ 'Signet.compact line 763 char 3',
1782
1844
  'Bytes<32>',
1783
1845
  word_0)
1784
1846
  }
@@ -1995,6 +2057,13 @@ export const pureCircuits = {
1995
2057
  'struct RespondBidirectionalEventV1<requestId: Bytes<32>, blockHeight: Uint<0..18446744073709551616>, outputKind: Enum<OutputKind, executed, failed, unviable>, serializedOutputLength: Uint<0..18446744073709551616>, outputHash: Bytes<32>, digest: Bytes<32>, signature: struct Signature<bigR: struct AffinePoint<x: Bytes<32>, y: Bytes<32>>, s: Bytes<32>, recoveryId: Uint<0..256>>>',
1996
2058
  respondBidirectionalEvent_0)
1997
2059
  }
2060
+ if (!(__compactRuntime.isValidSecp256k1Point(mpcResponseKey_0))) {
2061
+ __compactRuntime.typeError('verifyRespondBidirectionalEvent0',
2062
+ 'argument 3',
2063
+ 'circuits.compact line 117 char 1',
2064
+ 'Secp256k1Point',
2065
+ mpcResponseKey_0)
2066
+ }
1998
2067
  return _dummyContract._verifyRespondBidirectionalEvent0_0(serializedOutput_0,
1999
2068
  respondBidirectionalEvent_0,
2000
2069
  mpcResponseKey_0);
@@ -2020,6 +2089,13 @@ export const pureCircuits = {
2020
2089
  'struct RespondBidirectionalEventV1<requestId: Bytes<32>, blockHeight: Uint<0..18446744073709551616>, outputKind: Enum<OutputKind, executed, failed, unviable>, serializedOutputLength: Uint<0..18446744073709551616>, outputHash: Bytes<32>, digest: Bytes<32>, signature: struct Signature<bigR: struct AffinePoint<x: Bytes<32>, y: Bytes<32>>, s: Bytes<32>, recoveryId: Uint<0..256>>>',
2021
2090
  respondBidirectionalEvent_0)
2022
2091
  }
2092
+ if (!(__compactRuntime.isValidSecp256k1Point(mpcResponseKey_0))) {
2093
+ __compactRuntime.typeError('verifyRespondBidirectionalEvent32',
2094
+ 'argument 3',
2095
+ 'circuits.compact line 129 char 1',
2096
+ 'Secp256k1Point',
2097
+ mpcResponseKey_0)
2098
+ }
2023
2099
  return _dummyContract._verifyRespondBidirectionalEvent32_0(serializedOutput_0,
2024
2100
  respondBidirectionalEvent_0,
2025
2101
  mpcResponseKey_0);
@@ -2039,8 +2115,36 @@ export const pureCircuits = {
2039
2115
  return _dummyContract._constructSignBidirectionalEventV1_1_0_0_34_0(request_0);
2040
2116
  }
2041
2117
  };
2042
- export const contractReferenceLocations =
2043
- { tag: 'publicLedgerArray', indices: { } };
2044
2118
  export const expectedVk = {};
2045
2119
 
2120
+ export const circuitSignatures = {
2121
+ 'calculateRequestIdV1': {pure: true, provable: false, argumentTypes: [{tag: 'Struct', name: 'RequestIdPreimageV1', elements: [{name: 'keyVersion', type: {tag: 'Uint', maxval: '255'}}, {name: 'sender', type: {tag: 'Struct', name: 'ContractAddress', elements: [{name: 'bytes', type: {tag: 'Bytes', length: 32}}]}}, {name: 'path', type: {tag: 'Bytes', length: 32}}, {name: 'algo', type: {tag: 'Enum', name: 'MPCSignatureAlgorithm', elements: ['ecdsa', 'reserved']}}, {name: 'txParamType', type: {tag: 'Enum', name: 'TxParamType', elements: ['evmType2', 'reserved']}}, {name: 'txParamsDigest', type: {tag: 'Bytes', length: 32}}, {name: 'executionDest', type: {tag: 'Bytes', length: 64}}]}], resultType: {tag: 'Alias', name: 'RequestId', type: {tag: 'Bytes', length: 32}}},
2122
+ 'constructSignBidirectionalEventNotificationV1': {pure: true, provable: false, argumentTypes: [{tag: 'Struct', name: 'ContractAddress', elements: [{name: 'bytes', type: {tag: 'Bytes', length: 32}}]}, {tag: 'Uint', maxval: '255'}, {tag: 'Vector', length: 4, type: {tag: 'Uint', maxval: '255'}}], resultType: {tag: 'Struct', name: 'SignBidirectionalEventNotification', elements: [{name: 'version', type: {tag: 'Uint', maxval: '255'}}, {name: 'payload', type: {tag: 'Bytes', length: 128}}]}},
2123
+ 'calculateSignetAttestationDigestV1': {pure: true, provable: false, argumentTypes: [{tag: 'Alias', name: 'RequestId', type: {tag: 'Bytes', length: 32}}, {tag: 'Uint', maxval: '18446744073709551615'}, {tag: 'Enum', name: 'OutputKind', elements: ['executed', 'failed', 'unviable']}, {tag: 'Uint', maxval: '18446744073709551615'}, {tag: 'Bytes', length: 32}], resultType: {tag: 'Bytes', length: 32}},
2124
+ 'verifyRespondBidirectionalAttestationV1': {pure: true, provable: false, argumentTypes: [{tag: 'Struct', name: 'RespondBidirectionalEventV1', elements: [{name: 'requestId', type: {tag: 'Alias', name: 'RequestId', type: {tag: 'Bytes', length: 32}}}, {name: 'blockHeight', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'outputKind', type: {tag: 'Enum', name: 'OutputKind', elements: ['executed', 'failed', 'unviable']}}, {name: 'serializedOutputLength', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'outputHash', type: {tag: 'Bytes', length: 32}}, {name: 'digest', type: {tag: 'Bytes', length: 32}}, {name: 'signature', type: {tag: 'Struct', name: 'Signature', elements: [{name: 'bigR', type: {tag: 'Struct', name: 'AffinePoint', elements: [{name: 'x', type: {tag: 'Bytes', length: 32}}, {name: 'y', type: {tag: 'Bytes', length: 32}}]}}, {name: 's', type: {tag: 'Bytes', length: 32}}, {name: 'recoveryId', type: {tag: 'Uint', maxval: '255'}}]}}]}, {tag: 'Secp256k1Point'}], resultType: {tag: 'Boolean'}},
2125
+ 'ethereumCaip2Id': {pure: true, provable: false, argumentTypes: [], resultType: {tag: 'Bytes', length: 64}},
2126
+ 'evmAddressAbiWord': {pure: true, provable: false, argumentTypes: [{tag: 'Bytes', length: 20}], resultType: {tag: 'Bytes', length: 32}},
2127
+ 'numericAbiWord': {pure: true, provable: false, argumentTypes: [{tag: 'Uint', maxval: '340282366920938463463374607431768211455'}], resultType: {tag: 'Bytes', length: 32}},
2128
+ 'boolAbiWord': {pure: true, provable: false, argumentTypes: [{tag: 'Boolean'}], resultType: {tag: 'Bytes', length: 32}},
2129
+ 'abiWordToUint128': {pure: true, provable: false, argumentTypes: [{tag: 'Bytes', length: 32}], resultType: {tag: 'Uint', maxval: '340282366920938463463374607431768211455'}},
2130
+ 'checkedTruncationU128': {pure: true, provable: false, argumentTypes: [{tag: 'Bytes', length: 32}], resultType: {tag: 'Uint', maxval: '340282366920938463463374607431768211455'}},
2131
+ 'abiWordToBool': {pure: true, provable: false, argumentTypes: [{tag: 'Bytes', length: 32}], resultType: {tag: 'Boolean'}},
2132
+ 'calculateAttestedOutputHash0': {pure: true, provable: false, argumentTypes: [{tag: 'Bytes', length: 0}], resultType: {tag: 'Bytes', length: 32}},
2133
+ 'calculateAttestedOutputHash1': {pure: true, provable: false, argumentTypes: [{tag: 'Bytes', length: 1}], resultType: {tag: 'Bytes', length: 32}},
2134
+ 'calculateAttestedOutputHash2': {pure: true, provable: false, argumentTypes: [{tag: 'Bytes', length: 2}], resultType: {tag: 'Bytes', length: 32}},
2135
+ 'calculateAttestedOutputHash32': {pure: true, provable: false, argumentTypes: [{tag: 'Bytes', length: 32}], resultType: {tag: 'Bytes', length: 32}},
2136
+ 'calculateAttestedOutputHash100': {pure: true, provable: false, argumentTypes: [{tag: 'Bytes', length: 100}], resultType: {tag: 'Bytes', length: 32}},
2137
+ 'verifyAttestedOutput1': {pure: true, provable: false, argumentTypes: [{tag: 'Bytes', length: 1}, {tag: 'Uint', maxval: '18446744073709551615'}, {tag: 'Bytes', length: 32}], resultType: {tag: 'Boolean'}},
2138
+ 'verifyAttestedOutput2': {pure: true, provable: false, argumentTypes: [{tag: 'Bytes', length: 2}, {tag: 'Uint', maxval: '18446744073709551615'}, {tag: 'Bytes', length: 32}], resultType: {tag: 'Boolean'}},
2139
+ 'calculateEvmType2TxParamsDigestV1_1_0_0': {pure: true, provable: false, argumentTypes: [{tag: 'Struct', name: 'EvmType2TxParams', elements: [{name: 'chainId', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'nonce', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'maxPriorityFeePerGas', type: {tag: 'Uint', maxval: '340282366920938463463374607431768211455'}}, {name: 'maxFeePerGas', type: {tag: 'Uint', maxval: '340282366920938463463374607431768211455'}}, {name: 'gasLimit', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'to', type: {tag: 'Bytes', length: 20}}, {name: 'value', type: {tag: 'Uint', maxval: '340282366920938463463374607431768211455'}}, {name: 'calldata', type: {tag: 'Struct', name: 'Maybe', elements: [{name: 'is_some', type: {tag: 'Boolean'}}, {name: 'value', type: {tag: 'Struct', name: 'EvmCalldata', elements: [{name: 'selector', type: {tag: 'Bytes', length: 4}}, {name: 'noWords', type: {tag: 'Uint', maxval: '65535'}}, {name: 'words', type: {tag: 'Vector', length: 1, type: {tag: 'Bytes', length: 32}}}]}}]}}, {name: 'accessListEntryCount', type: {tag: 'Uint', maxval: '255'}}, {name: 'accessList', type: {tag: 'Tuple', types: []}}]}], resultType: {tag: 'Bytes', length: 32}},
2140
+ 'calculateEvmType2TxParamsDigestV1_2_1_2': {pure: true, provable: false, argumentTypes: [{tag: 'Struct', name: 'EvmType2TxParams', elements: [{name: 'chainId', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'nonce', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'maxPriorityFeePerGas', type: {tag: 'Uint', maxval: '340282366920938463463374607431768211455'}}, {name: 'maxFeePerGas', type: {tag: 'Uint', maxval: '340282366920938463463374607431768211455'}}, {name: 'gasLimit', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'to', type: {tag: 'Bytes', length: 20}}, {name: 'value', type: {tag: 'Uint', maxval: '340282366920938463463374607431768211455'}}, {name: 'calldata', type: {tag: 'Struct', name: 'Maybe', elements: [{name: 'is_some', type: {tag: 'Boolean'}}, {name: 'value', type: {tag: 'Struct', name: 'EvmCalldata', elements: [{name: 'selector', type: {tag: 'Bytes', length: 4}}, {name: 'noWords', type: {tag: 'Uint', maxval: '65535'}}, {name: 'words', type: {tag: 'Vector', length: 2, type: {tag: 'Bytes', length: 32}}}]}}]}}, {name: 'accessListEntryCount', type: {tag: 'Uint', maxval: '255'}}, {name: 'accessList', type: {tag: 'Vector', length: 1, type: {tag: 'Struct', name: 'EvmAccessListEntry', elements: [{name: 'address', type: {tag: 'Bytes', length: 20}}, {name: 'storageKeyCount', type: {tag: 'Uint', maxval: '255'}}, {name: 'storageKeys', type: {tag: 'Vector', length: 2, type: {tag: 'Bytes', length: 32}}}]}}}]}], resultType: {tag: 'Bytes', length: 32}},
2141
+ 'calculateEvmType2RequestIdV1_1_0_0_34': {pure: true, provable: false, argumentTypes: [{tag: 'Struct', name: 'SignBidirectionalEventV1', elements: [{name: 'keyVersion', type: {tag: 'Uint', maxval: '255'}}, {name: 'sender', type: {tag: 'Struct', name: 'ContractAddress', elements: [{name: 'bytes', type: {tag: 'Bytes', length: 32}}]}}, {name: 'path', type: {tag: 'Bytes', length: 32}}, {name: 'algo', type: {tag: 'Enum', name: 'MPCSignatureAlgorithm', elements: ['ecdsa', 'reserved']}}, {name: 'txParamType', type: {tag: 'Enum', name: 'TxParamType', elements: ['evmType2', 'reserved']}}, {name: 'txParams', type: {tag: 'Struct', name: 'EvmType2TxParams', elements: [{name: 'chainId', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'nonce', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'maxPriorityFeePerGas', type: {tag: 'Uint', maxval: '340282366920938463463374607431768211455'}}, {name: 'maxFeePerGas', type: {tag: 'Uint', maxval: '340282366920938463463374607431768211455'}}, {name: 'gasLimit', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'to', type: {tag: 'Bytes', length: 20}}, {name: 'value', type: {tag: 'Uint', maxval: '340282366920938463463374607431768211455'}}, {name: 'calldata', type: {tag: 'Struct', name: 'Maybe', elements: [{name: 'is_some', type: {tag: 'Boolean'}}, {name: 'value', type: {tag: 'Struct', name: 'EvmCalldata', elements: [{name: 'selector', type: {tag: 'Bytes', length: 4}}, {name: 'noWords', type: {tag: 'Uint', maxval: '65535'}}, {name: 'words', type: {tag: 'Vector', length: 1, type: {tag: 'Bytes', length: 32}}}]}}]}}, {name: 'accessListEntryCount', type: {tag: 'Uint', maxval: '255'}}, {name: 'accessList', type: {tag: 'Tuple', types: []}}]}}, {name: 'executionDest', type: {tag: 'Bytes', length: 64}}, {name: 'signatureDest', type: {tag: 'Enum', name: 'MPCDestination', elements: ['unused', 'reserved']}}, {name: 'params', type: {tag: 'Bytes', length: 64}}, {name: 'outputDeserializationSchema', type: {tag: 'Bytes', length: 34}}, {name: 'respondSerializationSchema', type: {tag: 'Bytes', length: 0}}]}], resultType: {tag: 'Alias', name: 'RequestId', type: {tag: 'Bytes', length: 32}}},
2142
+ 'calculateEvmType2RequestIdV1_2_1_2_34': {pure: true, provable: false, argumentTypes: [{tag: 'Struct', name: 'SignBidirectionalEventV1', elements: [{name: 'keyVersion', type: {tag: 'Uint', maxval: '255'}}, {name: 'sender', type: {tag: 'Struct', name: 'ContractAddress', elements: [{name: 'bytes', type: {tag: 'Bytes', length: 32}}]}}, {name: 'path', type: {tag: 'Bytes', length: 32}}, {name: 'algo', type: {tag: 'Enum', name: 'MPCSignatureAlgorithm', elements: ['ecdsa', 'reserved']}}, {name: 'txParamType', type: {tag: 'Enum', name: 'TxParamType', elements: ['evmType2', 'reserved']}}, {name: 'txParams', type: {tag: 'Struct', name: 'EvmType2TxParams', elements: [{name: 'chainId', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'nonce', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'maxPriorityFeePerGas', type: {tag: 'Uint', maxval: '340282366920938463463374607431768211455'}}, {name: 'maxFeePerGas', type: {tag: 'Uint', maxval: '340282366920938463463374607431768211455'}}, {name: 'gasLimit', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'to', type: {tag: 'Bytes', length: 20}}, {name: 'value', type: {tag: 'Uint', maxval: '340282366920938463463374607431768211455'}}, {name: 'calldata', type: {tag: 'Struct', name: 'Maybe', elements: [{name: 'is_some', type: {tag: 'Boolean'}}, {name: 'value', type: {tag: 'Struct', name: 'EvmCalldata', elements: [{name: 'selector', type: {tag: 'Bytes', length: 4}}, {name: 'noWords', type: {tag: 'Uint', maxval: '65535'}}, {name: 'words', type: {tag: 'Vector', length: 2, type: {tag: 'Bytes', length: 32}}}]}}]}}, {name: 'accessListEntryCount', type: {tag: 'Uint', maxval: '255'}}, {name: 'accessList', type: {tag: 'Vector', length: 1, type: {tag: 'Struct', name: 'EvmAccessListEntry', elements: [{name: 'address', type: {tag: 'Bytes', length: 20}}, {name: 'storageKeyCount', type: {tag: 'Uint', maxval: '255'}}, {name: 'storageKeys', type: {tag: 'Vector', length: 2, type: {tag: 'Bytes', length: 32}}}]}}}]}}, {name: 'executionDest', type: {tag: 'Bytes', length: 64}}, {name: 'signatureDest', type: {tag: 'Enum', name: 'MPCDestination', elements: ['unused', 'reserved']}}, {name: 'params', type: {tag: 'Bytes', length: 64}}, {name: 'outputDeserializationSchema', type: {tag: 'Bytes', length: 34}}, {name: 'respondSerializationSchema', type: {tag: 'Bytes', length: 0}}]}], resultType: {tag: 'Alias', name: 'RequestId', type: {tag: 'Bytes', length: 32}}},
2143
+ 'verifyRespondBidirectionalEvent0': {pure: true, provable: false, argumentTypes: [{tag: 'Bytes', length: 0}, {tag: 'Struct', name: 'RespondBidirectionalEventV1', elements: [{name: 'requestId', type: {tag: 'Alias', name: 'RequestId', type: {tag: 'Bytes', length: 32}}}, {name: 'blockHeight', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'outputKind', type: {tag: 'Enum', name: 'OutputKind', elements: ['executed', 'failed', 'unviable']}}, {name: 'serializedOutputLength', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'outputHash', type: {tag: 'Bytes', length: 32}}, {name: 'digest', type: {tag: 'Bytes', length: 32}}, {name: 'signature', type: {tag: 'Struct', name: 'Signature', elements: [{name: 'bigR', type: {tag: 'Struct', name: 'AffinePoint', elements: [{name: 'x', type: {tag: 'Bytes', length: 32}}, {name: 'y', type: {tag: 'Bytes', length: 32}}]}}, {name: 's', type: {tag: 'Bytes', length: 32}}, {name: 'recoveryId', type: {tag: 'Uint', maxval: '255'}}]}}]}, {tag: 'Secp256k1Point'}], resultType: {tag: 'Boolean'}},
2144
+ 'verifyRespondBidirectionalEvent32': {pure: true, provable: false, argumentTypes: [{tag: 'Bytes', length: 32}, {tag: 'Struct', name: 'RespondBidirectionalEventV1', elements: [{name: 'requestId', type: {tag: 'Alias', name: 'RequestId', type: {tag: 'Bytes', length: 32}}}, {name: 'blockHeight', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'outputKind', type: {tag: 'Enum', name: 'OutputKind', elements: ['executed', 'failed', 'unviable']}}, {name: 'serializedOutputLength', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'outputHash', type: {tag: 'Bytes', length: 32}}, {name: 'digest', type: {tag: 'Bytes', length: 32}}, {name: 'signature', type: {tag: 'Struct', name: 'Signature', elements: [{name: 'bigR', type: {tag: 'Struct', name: 'AffinePoint', elements: [{name: 'x', type: {tag: 'Bytes', length: 32}}, {name: 'y', type: {tag: 'Bytes', length: 32}}]}}, {name: 's', type: {tag: 'Bytes', length: 32}}, {name: 'recoveryId', type: {tag: 'Uint', maxval: '255'}}]}}]}, {tag: 'Secp256k1Point'}], resultType: {tag: 'Boolean'}},
2145
+ 'constructSignBidirectionalEventV1_1_0_0_34': {pure: true, provable: false, argumentTypes: [{tag: 'Struct', name: 'SignBidirectionalEventV1', elements: [{name: 'keyVersion', type: {tag: 'Uint', maxval: '255'}}, {name: 'sender', type: {tag: 'Struct', name: 'ContractAddress', elements: [{name: 'bytes', type: {tag: 'Bytes', length: 32}}]}}, {name: 'path', type: {tag: 'Bytes', length: 32}}, {name: 'algo', type: {tag: 'Enum', name: 'MPCSignatureAlgorithm', elements: ['ecdsa', 'reserved']}}, {name: 'txParamType', type: {tag: 'Enum', name: 'TxParamType', elements: ['evmType2', 'reserved']}}, {name: 'txParams', type: {tag: 'Struct', name: 'EvmType2TxParams', elements: [{name: 'chainId', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'nonce', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'maxPriorityFeePerGas', type: {tag: 'Uint', maxval: '340282366920938463463374607431768211455'}}, {name: 'maxFeePerGas', type: {tag: 'Uint', maxval: '340282366920938463463374607431768211455'}}, {name: 'gasLimit', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'to', type: {tag: 'Bytes', length: 20}}, {name: 'value', type: {tag: 'Uint', maxval: '340282366920938463463374607431768211455'}}, {name: 'calldata', type: {tag: 'Struct', name: 'Maybe', elements: [{name: 'is_some', type: {tag: 'Boolean'}}, {name: 'value', type: {tag: 'Struct', name: 'EvmCalldata', elements: [{name: 'selector', type: {tag: 'Bytes', length: 4}}, {name: 'noWords', type: {tag: 'Uint', maxval: '65535'}}, {name: 'words', type: {tag: 'Vector', length: 1, type: {tag: 'Bytes', length: 32}}}]}}]}}, {name: 'accessListEntryCount', type: {tag: 'Uint', maxval: '255'}}, {name: 'accessList', type: {tag: 'Tuple', types: []}}]}}, {name: 'executionDest', type: {tag: 'Bytes', length: 64}}, {name: 'signatureDest', type: {tag: 'Enum', name: 'MPCDestination', elements: ['unused', 'reserved']}}, {name: 'params', type: {tag: 'Bytes', length: 64}}, {name: 'outputDeserializationSchema', type: {tag: 'Bytes', length: 34}}, {name: 'respondSerializationSchema', type: {tag: 'Bytes', length: 0}}]}], resultType: {tag: 'Struct', name: 'SignBidirectionalEventV1', elements: [{name: 'keyVersion', type: {tag: 'Uint', maxval: '255'}}, {name: 'sender', type: {tag: 'Struct', name: 'ContractAddress', elements: [{name: 'bytes', type: {tag: 'Bytes', length: 32}}]}}, {name: 'path', type: {tag: 'Bytes', length: 32}}, {name: 'algo', type: {tag: 'Enum', name: 'MPCSignatureAlgorithm', elements: ['ecdsa', 'reserved']}}, {name: 'txParamType', type: {tag: 'Enum', name: 'TxParamType', elements: ['evmType2', 'reserved']}}, {name: 'txParams', type: {tag: 'Struct', name: 'EvmType2TxParams', elements: [{name: 'chainId', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'nonce', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'maxPriorityFeePerGas', type: {tag: 'Uint', maxval: '340282366920938463463374607431768211455'}}, {name: 'maxFeePerGas', type: {tag: 'Uint', maxval: '340282366920938463463374607431768211455'}}, {name: 'gasLimit', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'to', type: {tag: 'Bytes', length: 20}}, {name: 'value', type: {tag: 'Uint', maxval: '340282366920938463463374607431768211455'}}, {name: 'calldata', type: {tag: 'Struct', name: 'Maybe', elements: [{name: 'is_some', type: {tag: 'Boolean'}}, {name: 'value', type: {tag: 'Struct', name: 'EvmCalldata', elements: [{name: 'selector', type: {tag: 'Bytes', length: 4}}, {name: 'noWords', type: {tag: 'Uint', maxval: '65535'}}, {name: 'words', type: {tag: 'Vector', length: 1, type: {tag: 'Bytes', length: 32}}}]}}]}}, {name: 'accessListEntryCount', type: {tag: 'Uint', maxval: '255'}}, {name: 'accessList', type: {tag: 'Tuple', types: []}}]}}, {name: 'executionDest', type: {tag: 'Bytes', length: 64}}, {name: 'signatureDest', type: {tag: 'Enum', name: 'MPCDestination', elements: ['unused', 'reserved']}}, {name: 'params', type: {tag: 'Bytes', length: 64}}, {name: 'outputDeserializationSchema', type: {tag: 'Bytes', length: 34}}, {name: 'respondSerializationSchema', type: {tag: 'Bytes', length: 0}}]}},
2146
+ };
2147
+
2148
+ export const declaredInterfaces = {};
2149
+
2046
2150
  //# sourceMappingURL=index.js.map