@sig-net/midnight 0.26.0-rc.8 → 0.27.0-rc.2

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 (71) hide show
  1. package/README.md +6 -6
  2. package/dist/compact-descriptors.d.ts +8 -0
  3. package/dist/compact-descriptors.d.ts.map +1 -1
  4. package/dist/compact-descriptors.js +13 -1
  5. package/dist/compact-descriptors.js.map +1 -1
  6. package/dist/constants.d.ts +6 -8
  7. package/dist/constants.d.ts.map +1 -1
  8. package/dist/constants.js +29 -29
  9. package/dist/constants.js.map +1 -1
  10. package/dist/index.d.ts +5 -1
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +7 -2
  13. package/dist/index.js.map +1 -1
  14. package/dist/managed/compiler/contract-info.json +714 -5
  15. package/dist/managed/compiler/contract-manifest.json +8 -8
  16. package/dist/managed/contract/index.d.ts +168 -1
  17. package/dist/managed/contract/index.js +678 -312
  18. package/dist/managed/contract/index.js.map +1 -1
  19. package/dist/mpc-output-cache.d.ts +3 -3
  20. package/dist/mpc-output-cache.d.ts.map +1 -1
  21. package/dist/mpc-output-cache.js +2 -2
  22. package/dist/record-contract-address.d.ts +4 -4
  23. package/dist/record-contract-address.d.ts.map +1 -1
  24. package/dist/record-contract-address.js +4 -4
  25. package/dist/record-contract-address.js.map +1 -1
  26. package/dist/signature-requests-state-reader.d.ts +3 -3
  27. package/dist/signature-requests-state-reader.d.ts.map +1 -1
  28. package/dist/signature-requests-state-reader.js +6 -2
  29. package/dist/signature-requests-state-reader.js.map +1 -1
  30. package/dist/signature-response-verification.d.ts +24 -9
  31. package/dist/signature-response-verification.d.ts.map +1 -1
  32. package/dist/signature-response-verification.js +35 -12
  33. package/dist/signature-response-verification.js.map +1 -1
  34. package/dist/signet-contract-events.d.ts +8 -2
  35. package/dist/signet-contract-events.d.ts.map +1 -1
  36. package/dist/signet-contract-events.js +10 -8
  37. package/dist/signet-contract-events.js.map +1 -1
  38. package/dist/signet-evtype2tx-requests.d.ts.map +1 -1
  39. package/dist/signet-evtype2tx-requests.js +1 -7
  40. package/dist/signet-evtype2tx-requests.js.map +1 -1
  41. package/dist/signet-request-id.d.ts +2 -2
  42. package/dist/signet-request-id.d.ts.map +1 -1
  43. package/dist/signet-request-id.js +18 -8
  44. package/dist/signet-request-id.js.map +1 -1
  45. package/dist/signet-request-response-reader.d.ts +35 -11
  46. package/dist/signet-request-response-reader.d.ts.map +1 -1
  47. package/dist/signet-request-response-reader.js +76 -29
  48. package/dist/signet-request-response-reader.js.map +1 -1
  49. package/dist/signet-requests.d.ts +18 -10
  50. package/dist/signet-requests.d.ts.map +1 -1
  51. package/dist/signet-requests.js +19 -10
  52. package/dist/signet-requests.js.map +1 -1
  53. package/dist/signet-tron-record-decoding.d.ts +11 -0
  54. package/dist/signet-tron-record-decoding.d.ts.map +1 -0
  55. package/dist/signet-tron-record-decoding.js +29 -0
  56. package/dist/signet-tron-record-decoding.js.map +1 -0
  57. package/dist/signet-tron-requests.d.ts +36 -0
  58. package/dist/signet-tron-requests.d.ts.map +1 -0
  59. package/dist/signet-tron-requests.js +76 -0
  60. package/dist/signet-tron-requests.js.map +1 -0
  61. package/dist/tron-transactions.d.ts +52 -0
  62. package/dist/tron-transactions.d.ts.map +1 -0
  63. package/dist/tron-transactions.js +181 -0
  64. package/dist/tron-transactions.js.map +1 -0
  65. package/dist/url-redaction.d.ts +11 -0
  66. package/dist/url-redaction.d.ts.map +1 -0
  67. package/dist/url-redaction.js +21 -0
  68. package/dist/url-redaction.js.map +1 -0
  69. package/package.json +2 -2
  70. package/src/Signet.compact +78 -8
  71. package/src/circuits.compact +26 -0
@@ -10,6 +10,8 @@ export var HashDomain;
10
10
  HashDomain[HashDomain['evmType2TxAccessEntry'] = 4] = 'evmType2TxAccessEntry';
11
11
  HashDomain[HashDomain['evmType2TxStorageKey'] = 5] = 'evmType2TxStorageKey';
12
12
  HashDomain[HashDomain['attestedOutput'] = 6] = 'attestedOutput';
13
+ HashDomain[HashDomain['tronTxHeader'] = 7] = 'tronTxHeader';
14
+ HashDomain[HashDomain['tronTxWord'] = 8] = 'tronTxWord';
13
15
  })(HashDomain || (HashDomain = {}));
14
16
 
15
17
  export var OutputKind;
@@ -43,113 +45,175 @@ const _descriptor_3 = new __compactRuntime.CompactTypeEnum(1, 1);
43
45
 
44
46
  const _descriptor_4 = new __compactRuntime.CompactTypeEnum(1, 1);
45
47
 
46
- const _descriptor_5 = new __compactRuntime.CompactTypeUnsignedInteger(18446744073709551615n, 8);
48
+ const _descriptor_5 = new __compactRuntime.CompactTypeBytes(2);
47
49
 
48
- const _descriptor_6 = new __compactRuntime.CompactTypeUnsignedInteger(340282366920938463463374607431768211455n, 16);
50
+ const _descriptor_6 = new __compactRuntime.CompactTypeBytes(8);
49
51
 
50
- const _descriptor_7 = new __compactRuntime.CompactTypeBytes(20);
52
+ const _descriptor_7 = new __compactRuntime.CompactTypeUnsignedInteger(18446744073709551615n, 8);
51
53
 
52
- const _descriptor_8 = __compactRuntime.CompactTypeBoolean;
54
+ const _descriptor_8 = new __compactRuntime.CompactTypeBytes(21);
53
55
 
54
- const _descriptor_9 = new __compactRuntime.CompactTypeBytes(4);
56
+ const _descriptor_9 = __compactRuntime.CompactTypeBoolean;
55
57
 
56
- const _descriptor_10 = new __compactRuntime.CompactTypeUnsignedInteger(65535n, 2);
58
+ const _descriptor_10 = new __compactRuntime.CompactTypeBytes(4);
57
59
 
58
- const _descriptor_11 = new __compactRuntime.CompactTypeVector(1, _descriptor_1);
60
+ const _descriptor_11 = new __compactRuntime.CompactTypeUnsignedInteger(65535n, 2);
61
+
62
+ const _descriptor_12 = new __compactRuntime.CompactTypeVector(1, _descriptor_1);
59
63
 
60
64
  class _EvmCalldata_0 {
61
65
  alignment() {
62
- return _descriptor_9.alignment().concat(_descriptor_10.alignment().concat(_descriptor_11.alignment()));
66
+ return _descriptor_10.alignment().concat(_descriptor_11.alignment().concat(_descriptor_12.alignment()));
63
67
  }
64
68
  fromValue(value_0) {
65
69
  return {
66
- selector: _descriptor_9.fromValue(value_0),
67
- noWords: _descriptor_10.fromValue(value_0),
68
- words: _descriptor_11.fromValue(value_0)
70
+ selector: _descriptor_10.fromValue(value_0),
71
+ noWords: _descriptor_11.fromValue(value_0),
72
+ words: _descriptor_12.fromValue(value_0)
69
73
  }
70
74
  }
71
75
  toValue(value_0) {
72
- return _descriptor_9.toValue(value_0.selector).concat(_descriptor_10.toValue(value_0.noWords).concat(_descriptor_11.toValue(value_0.words)));
76
+ return _descriptor_10.toValue(value_0.selector).concat(_descriptor_11.toValue(value_0.noWords).concat(_descriptor_12.toValue(value_0.words)));
73
77
  }
74
78
  }
75
79
 
76
- const _descriptor_12 = new _EvmCalldata_0();
80
+ const _descriptor_13 = new _EvmCalldata_0();
77
81
 
78
82
  class _Maybe_0 {
79
83
  alignment() {
80
- return _descriptor_8.alignment().concat(_descriptor_12.alignment());
84
+ return _descriptor_9.alignment().concat(_descriptor_13.alignment());
81
85
  }
82
86
  fromValue(value_0) {
83
87
  return {
84
- is_some: _descriptor_8.fromValue(value_0),
85
- value: _descriptor_12.fromValue(value_0)
88
+ is_some: _descriptor_9.fromValue(value_0),
89
+ value: _descriptor_13.fromValue(value_0)
86
90
  }
87
91
  }
88
92
  toValue(value_0) {
89
- return _descriptor_8.toValue(value_0.is_some).concat(_descriptor_12.toValue(value_0.value));
93
+ return _descriptor_9.toValue(value_0.is_some).concat(_descriptor_13.toValue(value_0.value));
90
94
  }
91
95
  }
92
96
 
93
- const _descriptor_13 = new _Maybe_0();
97
+ const _descriptor_14 = new _Maybe_0();
94
98
 
95
- const _descriptor_14 = new __compactRuntime.CompactTypeVector(0, _descriptor_1);
99
+ class _TronTxParams_0 {
100
+ alignment() {
101
+ return _descriptor_5.alignment().concat(_descriptor_6.alignment().concat(_descriptor_7.alignment().concat(_descriptor_7.alignment().concat(_descriptor_7.alignment().concat(_descriptor_8.alignment().concat(_descriptor_7.alignment().concat(_descriptor_14.alignment())))))));
102
+ }
103
+ fromValue(value_0) {
104
+ return {
105
+ refBlockBytes: _descriptor_5.fromValue(value_0),
106
+ refBlockHash: _descriptor_6.fromValue(value_0),
107
+ timestamp: _descriptor_7.fromValue(value_0),
108
+ expiration: _descriptor_7.fromValue(value_0),
109
+ feeLimit: _descriptor_7.fromValue(value_0),
110
+ contractAddress: _descriptor_8.fromValue(value_0),
111
+ callValue: _descriptor_7.fromValue(value_0),
112
+ calldata: _descriptor_14.fromValue(value_0)
113
+ }
114
+ }
115
+ toValue(value_0) {
116
+ return _descriptor_5.toValue(value_0.refBlockBytes).concat(_descriptor_6.toValue(value_0.refBlockHash).concat(_descriptor_7.toValue(value_0.timestamp).concat(_descriptor_7.toValue(value_0.expiration).concat(_descriptor_7.toValue(value_0.feeLimit).concat(_descriptor_8.toValue(value_0.contractAddress).concat(_descriptor_7.toValue(value_0.callValue).concat(_descriptor_14.toValue(value_0.calldata))))))));
117
+ }
118
+ }
96
119
 
97
- class _EvmAccessListEntry_0 {
120
+ const _descriptor_15 = new _TronTxParams_0();
121
+
122
+ const _descriptor_16 = new __compactRuntime.CompactTypeBytes(64);
123
+
124
+ const _descriptor_17 = new __compactRuntime.CompactTypeEnum(1, 1);
125
+
126
+ const _descriptor_18 = new __compactRuntime.CompactTypeBytes(0);
127
+
128
+ class _SignBidirectionalEventV1_0 {
98
129
  alignment() {
99
- return _descriptor_7.alignment().concat(_descriptor_0.alignment().concat(_descriptor_14.alignment()));
130
+ return _descriptor_0.alignment().concat(_descriptor_2.alignment().concat(_descriptor_1.alignment().concat(_descriptor_3.alignment().concat(_descriptor_4.alignment().concat(_descriptor_15.alignment().concat(_descriptor_16.alignment().concat(_descriptor_17.alignment().concat(_descriptor_16.alignment().concat(_descriptor_18.alignment().concat(_descriptor_18.alignment()))))))))));
100
131
  }
101
132
  fromValue(value_0) {
102
133
  return {
103
- address: _descriptor_7.fromValue(value_0),
104
- storageKeyCount: _descriptor_0.fromValue(value_0),
105
- storageKeys: _descriptor_14.fromValue(value_0)
134
+ keyVersion: _descriptor_0.fromValue(value_0),
135
+ sender: _descriptor_2.fromValue(value_0),
136
+ path: _descriptor_1.fromValue(value_0),
137
+ algo: _descriptor_3.fromValue(value_0),
138
+ txParamType: _descriptor_4.fromValue(value_0),
139
+ txParams: _descriptor_15.fromValue(value_0),
140
+ executionDest: _descriptor_16.fromValue(value_0),
141
+ signatureDest: _descriptor_17.fromValue(value_0),
142
+ params: _descriptor_16.fromValue(value_0),
143
+ outputDeserializationSchema: _descriptor_18.fromValue(value_0),
144
+ respondSerializationSchema: _descriptor_18.fromValue(value_0)
106
145
  }
107
146
  }
108
147
  toValue(value_0) {
109
- return _descriptor_7.toValue(value_0.address).concat(_descriptor_0.toValue(value_0.storageKeyCount).concat(_descriptor_14.toValue(value_0.storageKeys)));
148
+ 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_15.toValue(value_0.txParams).concat(_descriptor_16.toValue(value_0.executionDest).concat(_descriptor_17.toValue(value_0.signatureDest).concat(_descriptor_16.toValue(value_0.params).concat(_descriptor_18.toValue(value_0.outputDeserializationSchema).concat(_descriptor_18.toValue(value_0.respondSerializationSchema)))))))))));
110
149
  }
111
150
  }
112
151
 
113
- const _descriptor_15 = new _EvmAccessListEntry_0();
152
+ const _descriptor_19 = new _SignBidirectionalEventV1_0();
114
153
 
115
- const _descriptor_16 = new __compactRuntime.CompactTypeVector(0, _descriptor_15);
154
+ const _descriptor_20 = new __compactRuntime.CompactTypeVector(2, _descriptor_1);
116
155
 
117
- class _EvmType2TxParams_0 {
156
+ class _EvmCalldata_1 {
118
157
  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())))))))));
158
+ return _descriptor_10.alignment().concat(_descriptor_11.alignment().concat(_descriptor_20.alignment()));
120
159
  }
121
160
  fromValue(value_0) {
122
161
  return {
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)
162
+ selector: _descriptor_10.fromValue(value_0),
163
+ noWords: _descriptor_11.fromValue(value_0),
164
+ words: _descriptor_20.fromValue(value_0)
133
165
  }
134
166
  }
135
167
  toValue(value_0) {
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))))))))));
168
+ return _descriptor_10.toValue(value_0.selector).concat(_descriptor_11.toValue(value_0.noWords).concat(_descriptor_20.toValue(value_0.words)));
137
169
  }
138
170
  }
139
171
 
140
- const _descriptor_17 = new _EvmType2TxParams_0();
172
+ const _descriptor_21 = new _EvmCalldata_1();
141
173
 
142
- const _descriptor_18 = new __compactRuntime.CompactTypeBytes(64);
174
+ class _Maybe_1 {
175
+ alignment() {
176
+ return _descriptor_9.alignment().concat(_descriptor_21.alignment());
177
+ }
178
+ fromValue(value_0) {
179
+ return {
180
+ is_some: _descriptor_9.fromValue(value_0),
181
+ value: _descriptor_21.fromValue(value_0)
182
+ }
183
+ }
184
+ toValue(value_0) {
185
+ return _descriptor_9.toValue(value_0.is_some).concat(_descriptor_21.toValue(value_0.value));
186
+ }
187
+ }
143
188
 
144
- const _descriptor_19 = new __compactRuntime.CompactTypeEnum(1, 1);
189
+ const _descriptor_22 = new _Maybe_1();
145
190
 
146
- const _descriptor_20 = new __compactRuntime.CompactTypeBytes(34);
191
+ class _TronTxParams_1 {
192
+ alignment() {
193
+ return _descriptor_5.alignment().concat(_descriptor_6.alignment().concat(_descriptor_7.alignment().concat(_descriptor_7.alignment().concat(_descriptor_7.alignment().concat(_descriptor_8.alignment().concat(_descriptor_7.alignment().concat(_descriptor_22.alignment())))))));
194
+ }
195
+ fromValue(value_0) {
196
+ return {
197
+ refBlockBytes: _descriptor_5.fromValue(value_0),
198
+ refBlockHash: _descriptor_6.fromValue(value_0),
199
+ timestamp: _descriptor_7.fromValue(value_0),
200
+ expiration: _descriptor_7.fromValue(value_0),
201
+ feeLimit: _descriptor_7.fromValue(value_0),
202
+ contractAddress: _descriptor_8.fromValue(value_0),
203
+ callValue: _descriptor_7.fromValue(value_0),
204
+ calldata: _descriptor_22.fromValue(value_0)
205
+ }
206
+ }
207
+ toValue(value_0) {
208
+ return _descriptor_5.toValue(value_0.refBlockBytes).concat(_descriptor_6.toValue(value_0.refBlockHash).concat(_descriptor_7.toValue(value_0.timestamp).concat(_descriptor_7.toValue(value_0.expiration).concat(_descriptor_7.toValue(value_0.feeLimit).concat(_descriptor_8.toValue(value_0.contractAddress).concat(_descriptor_7.toValue(value_0.callValue).concat(_descriptor_22.toValue(value_0.calldata))))))));
209
+ }
210
+ }
147
211
 
148
- const _descriptor_21 = new __compactRuntime.CompactTypeBytes(0);
212
+ const _descriptor_23 = new _TronTxParams_1();
149
213
 
150
- class _SignBidirectionalEventV1_0 {
214
+ class _SignBidirectionalEventV1_1 {
151
215
  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()))))))))));
216
+ return _descriptor_0.alignment().concat(_descriptor_2.alignment().concat(_descriptor_1.alignment().concat(_descriptor_3.alignment().concat(_descriptor_4.alignment().concat(_descriptor_23.alignment().concat(_descriptor_16.alignment().concat(_descriptor_17.alignment().concat(_descriptor_16.alignment().concat(_descriptor_18.alignment().concat(_descriptor_18.alignment()))))))))));
153
217
  }
154
218
  fromValue(value_0) {
155
219
  return {
@@ -158,22 +222,22 @@ class _SignBidirectionalEventV1_0 {
158
222
  path: _descriptor_1.fromValue(value_0),
159
223
  algo: _descriptor_3.fromValue(value_0),
160
224
  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)
225
+ txParams: _descriptor_23.fromValue(value_0),
226
+ executionDest: _descriptor_16.fromValue(value_0),
227
+ signatureDest: _descriptor_17.fromValue(value_0),
228
+ params: _descriptor_16.fromValue(value_0),
229
+ outputDeserializationSchema: _descriptor_18.fromValue(value_0),
230
+ respondSerializationSchema: _descriptor_18.fromValue(value_0)
167
231
  }
168
232
  }
169
233
  toValue(value_0) {
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)))))))))));
234
+ 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_23.toValue(value_0.txParams).concat(_descriptor_16.toValue(value_0.executionDest).concat(_descriptor_17.toValue(value_0.signatureDest).concat(_descriptor_16.toValue(value_0.params).concat(_descriptor_18.toValue(value_0.outputDeserializationSchema).concat(_descriptor_18.toValue(value_0.respondSerializationSchema)))))))))));
171
235
  }
172
236
  }
173
237
 
174
- const _descriptor_22 = new _SignBidirectionalEventV1_0();
238
+ const _descriptor_24 = new _SignBidirectionalEventV1_1();
175
239
 
176
- const _descriptor_23 = new __compactRuntime.CompactTypeEnum(2, 1);
240
+ const _descriptor_25 = new __compactRuntime.CompactTypeEnum(2, 1);
177
241
 
178
242
  class _AffinePoint_0 {
179
243
  alignment() {
@@ -190,135 +254,177 @@ class _AffinePoint_0 {
190
254
  }
191
255
  }
192
256
 
193
- const _descriptor_24 = new _AffinePoint_0();
257
+ const _descriptor_26 = new _AffinePoint_0();
194
258
 
195
259
  class _Signature_0 {
196
260
  alignment() {
197
- return _descriptor_24.alignment().concat(_descriptor_1.alignment().concat(_descriptor_0.alignment()));
261
+ return _descriptor_26.alignment().concat(_descriptor_1.alignment().concat(_descriptor_0.alignment()));
198
262
  }
199
263
  fromValue(value_0) {
200
264
  return {
201
- bigR: _descriptor_24.fromValue(value_0),
265
+ bigR: _descriptor_26.fromValue(value_0),
202
266
  s: _descriptor_1.fromValue(value_0),
203
267
  recoveryId: _descriptor_0.fromValue(value_0)
204
268
  }
205
269
  }
206
270
  toValue(value_0) {
207
- return _descriptor_24.toValue(value_0.bigR).concat(_descriptor_1.toValue(value_0.s).concat(_descriptor_0.toValue(value_0.recoveryId)));
271
+ return _descriptor_26.toValue(value_0.bigR).concat(_descriptor_1.toValue(value_0.s).concat(_descriptor_0.toValue(value_0.recoveryId)));
208
272
  }
209
273
  }
210
274
 
211
- const _descriptor_25 = new _Signature_0();
275
+ const _descriptor_27 = new _Signature_0();
212
276
 
213
277
  class _RespondBidirectionalEventV1_0 {
214
278
  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()))))));
279
+ return _descriptor_1.alignment().concat(_descriptor_7.alignment().concat(_descriptor_25.alignment().concat(_descriptor_7.alignment().concat(_descriptor_1.alignment().concat(_descriptor_1.alignment().concat(_descriptor_27.alignment()))))));
216
280
  }
217
281
  fromValue(value_0) {
218
282
  return {
219
283
  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),
284
+ blockHeight: _descriptor_7.fromValue(value_0),
285
+ outputKind: _descriptor_25.fromValue(value_0),
286
+ serializedOutputLength: _descriptor_7.fromValue(value_0),
223
287
  outputHash: _descriptor_1.fromValue(value_0),
224
288
  digest: _descriptor_1.fromValue(value_0),
225
- signature: _descriptor_25.fromValue(value_0)
289
+ signature: _descriptor_27.fromValue(value_0)
226
290
  }
227
291
  }
228
292
  toValue(value_0) {
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)))))));
293
+ return _descriptor_1.toValue(value_0.requestId).concat(_descriptor_7.toValue(value_0.blockHeight).concat(_descriptor_25.toValue(value_0.outputKind).concat(_descriptor_7.toValue(value_0.serializedOutputLength).concat(_descriptor_1.toValue(value_0.outputHash).concat(_descriptor_1.toValue(value_0.digest).concat(_descriptor_27.toValue(value_0.signature)))))));
230
294
  }
231
295
  }
232
296
 
233
- const _descriptor_26 = new _RespondBidirectionalEventV1_0();
297
+ const _descriptor_28 = new _RespondBidirectionalEventV1_0();
234
298
 
235
- const _descriptor_27 = __compactRuntime.CompactTypeSecp256k1Point;
299
+ const _descriptor_29 = __compactRuntime.CompactTypeSecp256k1Point;
236
300
 
237
- const _descriptor_28 = new __compactRuntime.CompactTypeVector(2, _descriptor_1);
301
+ const _descriptor_30 = new __compactRuntime.CompactTypeUnsignedInteger(340282366920938463463374607431768211455n, 16);
238
302
 
239
- class _EvmCalldata_1 {
303
+ const _descriptor_31 = new __compactRuntime.CompactTypeBytes(20);
304
+
305
+ const _descriptor_32 = new __compactRuntime.CompactTypeVector(0, _descriptor_1);
306
+
307
+ class _EvmAccessListEntry_0 {
240
308
  alignment() {
241
- return _descriptor_9.alignment().concat(_descriptor_10.alignment().concat(_descriptor_28.alignment()));
309
+ return _descriptor_31.alignment().concat(_descriptor_0.alignment().concat(_descriptor_32.alignment()));
242
310
  }
243
311
  fromValue(value_0) {
244
312
  return {
245
- selector: _descriptor_9.fromValue(value_0),
246
- noWords: _descriptor_10.fromValue(value_0),
247
- words: _descriptor_28.fromValue(value_0)
313
+ address: _descriptor_31.fromValue(value_0),
314
+ storageKeyCount: _descriptor_0.fromValue(value_0),
315
+ storageKeys: _descriptor_32.fromValue(value_0)
248
316
  }
249
317
  }
250
318
  toValue(value_0) {
251
- return _descriptor_9.toValue(value_0.selector).concat(_descriptor_10.toValue(value_0.noWords).concat(_descriptor_28.toValue(value_0.words)));
319
+ return _descriptor_31.toValue(value_0.address).concat(_descriptor_0.toValue(value_0.storageKeyCount).concat(_descriptor_32.toValue(value_0.storageKeys)));
252
320
  }
253
321
  }
254
322
 
255
- const _descriptor_29 = new _EvmCalldata_1();
323
+ const _descriptor_33 = new _EvmAccessListEntry_0();
256
324
 
257
- class _Maybe_1 {
325
+ const _descriptor_34 = new __compactRuntime.CompactTypeVector(0, _descriptor_33);
326
+
327
+ class _EvmType2TxParams_0 {
258
328
  alignment() {
259
- return _descriptor_8.alignment().concat(_descriptor_29.alignment());
329
+ return _descriptor_7.alignment().concat(_descriptor_7.alignment().concat(_descriptor_30.alignment().concat(_descriptor_30.alignment().concat(_descriptor_7.alignment().concat(_descriptor_31.alignment().concat(_descriptor_30.alignment().concat(_descriptor_14.alignment().concat(_descriptor_0.alignment().concat(_descriptor_34.alignment())))))))));
260
330
  }
261
331
  fromValue(value_0) {
262
332
  return {
263
- is_some: _descriptor_8.fromValue(value_0),
264
- value: _descriptor_29.fromValue(value_0)
333
+ chainId: _descriptor_7.fromValue(value_0),
334
+ nonce: _descriptor_7.fromValue(value_0),
335
+ maxPriorityFeePerGas: _descriptor_30.fromValue(value_0),
336
+ maxFeePerGas: _descriptor_30.fromValue(value_0),
337
+ gasLimit: _descriptor_7.fromValue(value_0),
338
+ to: _descriptor_31.fromValue(value_0),
339
+ value: _descriptor_30.fromValue(value_0),
340
+ calldata: _descriptor_14.fromValue(value_0),
341
+ accessListEntryCount: _descriptor_0.fromValue(value_0),
342
+ accessList: _descriptor_34.fromValue(value_0)
265
343
  }
266
344
  }
267
345
  toValue(value_0) {
268
- return _descriptor_8.toValue(value_0.is_some).concat(_descriptor_29.toValue(value_0.value));
346
+ return _descriptor_7.toValue(value_0.chainId).concat(_descriptor_7.toValue(value_0.nonce).concat(_descriptor_30.toValue(value_0.maxPriorityFeePerGas).concat(_descriptor_30.toValue(value_0.maxFeePerGas).concat(_descriptor_7.toValue(value_0.gasLimit).concat(_descriptor_31.toValue(value_0.to).concat(_descriptor_30.toValue(value_0.value).concat(_descriptor_14.toValue(value_0.calldata).concat(_descriptor_0.toValue(value_0.accessListEntryCount).concat(_descriptor_34.toValue(value_0.accessList))))))))));
269
347
  }
270
348
  }
271
349
 
272
- const _descriptor_30 = new _Maybe_1();
350
+ const _descriptor_35 = new _EvmType2TxParams_0();
351
+
352
+ const _descriptor_36 = new __compactRuntime.CompactTypeBytes(34);
353
+
354
+ class _SignBidirectionalEventV1_2 {
355
+ alignment() {
356
+ return _descriptor_0.alignment().concat(_descriptor_2.alignment().concat(_descriptor_1.alignment().concat(_descriptor_3.alignment().concat(_descriptor_4.alignment().concat(_descriptor_35.alignment().concat(_descriptor_16.alignment().concat(_descriptor_17.alignment().concat(_descriptor_16.alignment().concat(_descriptor_36.alignment().concat(_descriptor_18.alignment()))))))))));
357
+ }
358
+ fromValue(value_0) {
359
+ return {
360
+ keyVersion: _descriptor_0.fromValue(value_0),
361
+ sender: _descriptor_2.fromValue(value_0),
362
+ path: _descriptor_1.fromValue(value_0),
363
+ algo: _descriptor_3.fromValue(value_0),
364
+ txParamType: _descriptor_4.fromValue(value_0),
365
+ txParams: _descriptor_35.fromValue(value_0),
366
+ executionDest: _descriptor_16.fromValue(value_0),
367
+ signatureDest: _descriptor_17.fromValue(value_0),
368
+ params: _descriptor_16.fromValue(value_0),
369
+ outputDeserializationSchema: _descriptor_36.fromValue(value_0),
370
+ respondSerializationSchema: _descriptor_18.fromValue(value_0)
371
+ }
372
+ }
373
+ toValue(value_0) {
374
+ 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_35.toValue(value_0.txParams).concat(_descriptor_16.toValue(value_0.executionDest).concat(_descriptor_17.toValue(value_0.signatureDest).concat(_descriptor_16.toValue(value_0.params).concat(_descriptor_36.toValue(value_0.outputDeserializationSchema).concat(_descriptor_18.toValue(value_0.respondSerializationSchema)))))))))));
375
+ }
376
+ }
377
+
378
+ const _descriptor_37 = new _SignBidirectionalEventV1_2();
273
379
 
274
380
  class _EvmAccessListEntry_1 {
275
381
  alignment() {
276
- return _descriptor_7.alignment().concat(_descriptor_0.alignment().concat(_descriptor_28.alignment()));
382
+ return _descriptor_31.alignment().concat(_descriptor_0.alignment().concat(_descriptor_20.alignment()));
277
383
  }
278
384
  fromValue(value_0) {
279
385
  return {
280
- address: _descriptor_7.fromValue(value_0),
386
+ address: _descriptor_31.fromValue(value_0),
281
387
  storageKeyCount: _descriptor_0.fromValue(value_0),
282
- storageKeys: _descriptor_28.fromValue(value_0)
388
+ storageKeys: _descriptor_20.fromValue(value_0)
283
389
  }
284
390
  }
285
391
  toValue(value_0) {
286
- return _descriptor_7.toValue(value_0.address).concat(_descriptor_0.toValue(value_0.storageKeyCount).concat(_descriptor_28.toValue(value_0.storageKeys)));
392
+ return _descriptor_31.toValue(value_0.address).concat(_descriptor_0.toValue(value_0.storageKeyCount).concat(_descriptor_20.toValue(value_0.storageKeys)));
287
393
  }
288
394
  }
289
395
 
290
- const _descriptor_31 = new _EvmAccessListEntry_1();
396
+ const _descriptor_38 = new _EvmAccessListEntry_1();
291
397
 
292
- const _descriptor_32 = new __compactRuntime.CompactTypeVector(1, _descriptor_31);
398
+ const _descriptor_39 = new __compactRuntime.CompactTypeVector(1, _descriptor_38);
293
399
 
294
400
  class _EvmType2TxParams_1 {
295
401
  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())))))))));
402
+ return _descriptor_7.alignment().concat(_descriptor_7.alignment().concat(_descriptor_30.alignment().concat(_descriptor_30.alignment().concat(_descriptor_7.alignment().concat(_descriptor_31.alignment().concat(_descriptor_30.alignment().concat(_descriptor_22.alignment().concat(_descriptor_0.alignment().concat(_descriptor_39.alignment())))))))));
297
403
  }
298
404
  fromValue(value_0) {
299
405
  return {
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
- calldata: _descriptor_30.fromValue(value_0),
406
+ chainId: _descriptor_7.fromValue(value_0),
407
+ nonce: _descriptor_7.fromValue(value_0),
408
+ maxPriorityFeePerGas: _descriptor_30.fromValue(value_0),
409
+ maxFeePerGas: _descriptor_30.fromValue(value_0),
410
+ gasLimit: _descriptor_7.fromValue(value_0),
411
+ to: _descriptor_31.fromValue(value_0),
412
+ value: _descriptor_30.fromValue(value_0),
413
+ calldata: _descriptor_22.fromValue(value_0),
308
414
  accessListEntryCount: _descriptor_0.fromValue(value_0),
309
- accessList: _descriptor_32.fromValue(value_0)
415
+ accessList: _descriptor_39.fromValue(value_0)
310
416
  }
311
417
  }
312
418
  toValue(value_0) {
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))))))))));
419
+ return _descriptor_7.toValue(value_0.chainId).concat(_descriptor_7.toValue(value_0.nonce).concat(_descriptor_30.toValue(value_0.maxPriorityFeePerGas).concat(_descriptor_30.toValue(value_0.maxFeePerGas).concat(_descriptor_7.toValue(value_0.gasLimit).concat(_descriptor_31.toValue(value_0.to).concat(_descriptor_30.toValue(value_0.value).concat(_descriptor_22.toValue(value_0.calldata).concat(_descriptor_0.toValue(value_0.accessListEntryCount).concat(_descriptor_39.toValue(value_0.accessList))))))))));
314
420
  }
315
421
  }
316
422
 
317
- const _descriptor_33 = new _EvmType2TxParams_1();
423
+ const _descriptor_40 = new _EvmType2TxParams_1();
318
424
 
319
- class _SignBidirectionalEventV1_1 {
425
+ class _SignBidirectionalEventV1_3 {
320
426
  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()))))))))));
427
+ return _descriptor_0.alignment().concat(_descriptor_2.alignment().concat(_descriptor_1.alignment().concat(_descriptor_3.alignment().concat(_descriptor_4.alignment().concat(_descriptor_40.alignment().concat(_descriptor_16.alignment().concat(_descriptor_17.alignment().concat(_descriptor_16.alignment().concat(_descriptor_36.alignment().concat(_descriptor_18.alignment()))))))))));
322
428
  }
323
429
  fromValue(value_0) {
324
430
  return {
@@ -327,300 +433,324 @@ class _SignBidirectionalEventV1_1 {
327
433
  path: _descriptor_1.fromValue(value_0),
328
434
  algo: _descriptor_3.fromValue(value_0),
329
435
  txParamType: _descriptor_4.fromValue(value_0),
330
- txParams: _descriptor_33.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)
436
+ txParams: _descriptor_40.fromValue(value_0),
437
+ executionDest: _descriptor_16.fromValue(value_0),
438
+ signatureDest: _descriptor_17.fromValue(value_0),
439
+ params: _descriptor_16.fromValue(value_0),
440
+ outputDeserializationSchema: _descriptor_36.fromValue(value_0),
441
+ respondSerializationSchema: _descriptor_18.fromValue(value_0)
336
442
  }
337
443
  }
338
444
  toValue(value_0) {
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)))))))))));
445
+ 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_40.toValue(value_0.txParams).concat(_descriptor_16.toValue(value_0.executionDest).concat(_descriptor_17.toValue(value_0.signatureDest).concat(_descriptor_16.toValue(value_0.params).concat(_descriptor_36.toValue(value_0.outputDeserializationSchema).concat(_descriptor_18.toValue(value_0.respondSerializationSchema)))))))))));
340
446
  }
341
447
  }
342
448
 
343
- const _descriptor_34 = new _SignBidirectionalEventV1_1();
449
+ const _descriptor_41 = new _SignBidirectionalEventV1_3();
344
450
 
345
- const _descriptor_35 = new __compactRuntime.CompactTypeBytes(1);
451
+ const _descriptor_42 = new __compactRuntime.CompactTypeBytes(100);
346
452
 
347
- const _descriptor_36 = new __compactRuntime.CompactTypeBytes(2);
453
+ const _descriptor_43 = new __compactRuntime.CompactTypeBytes(1);
348
454
 
349
- const _descriptor_37 = new __compactRuntime.CompactTypeBytes(100);
350
-
351
- const _descriptor_38 = new __compactRuntime.CompactTypeVector(4, _descriptor_0);
352
-
353
- const _descriptor_39 = new __compactRuntime.CompactTypeBytes(128);
354
-
355
- class _SignBidirectionalEventNotification_0 {
455
+ class _RequestIdPreimageV1_0 {
356
456
  alignment() {
357
- return _descriptor_0.alignment().concat(_descriptor_39.alignment());
457
+ 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_16.alignment()))))));
358
458
  }
359
459
  fromValue(value_0) {
360
460
  return {
361
- version: _descriptor_0.fromValue(value_0),
362
- payload: _descriptor_39.fromValue(value_0)
461
+ keyVersion: _descriptor_0.fromValue(value_0),
462
+ sender: _descriptor_2.fromValue(value_0),
463
+ path: _descriptor_1.fromValue(value_0),
464
+ algo: _descriptor_3.fromValue(value_0),
465
+ txParamType: _descriptor_4.fromValue(value_0),
466
+ txParamsDigest: _descriptor_1.fromValue(value_0),
467
+ executionDest: _descriptor_16.fromValue(value_0)
363
468
  }
364
469
  }
365
470
  toValue(value_0) {
366
- return _descriptor_0.toValue(value_0.version).concat(_descriptor_39.toValue(value_0.payload));
471
+ 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_16.toValue(value_0.executionDest)))))));
367
472
  }
368
473
  }
369
474
 
370
- const _descriptor_40 = new _SignBidirectionalEventNotification_0();
475
+ const _descriptor_44 = new _RequestIdPreimageV1_0();
371
476
 
372
- class _RequestIdPreimageV1_0 {
477
+ const _descriptor_45 = new __compactRuntime.CompactTypeVector(4, _descriptor_0);
478
+
479
+ const _descriptor_46 = new __compactRuntime.CompactTypeBytes(128);
480
+
481
+ class _SignBidirectionalEventNotification_0 {
373
482
  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()))))));
483
+ return _descriptor_0.alignment().concat(_descriptor_46.alignment());
375
484
  }
376
485
  fromValue(value_0) {
377
486
  return {
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)
487
+ version: _descriptor_0.fromValue(value_0),
488
+ payload: _descriptor_46.fromValue(value_0)
385
489
  }
386
490
  }
387
491
  toValue(value_0) {
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)))))));
492
+ return _descriptor_0.toValue(value_0.version).concat(_descriptor_46.toValue(value_0.payload));
389
493
  }
390
494
  }
391
495
 
392
- const _descriptor_41 = new _RequestIdPreimageV1_0();
496
+ const _descriptor_47 = new _SignBidirectionalEventNotification_0();
393
497
 
394
- const _descriptor_42 = __compactRuntime.CompactTypeSecp256k1Scalar;
498
+ const _descriptor_48 = __compactRuntime.CompactTypeSecp256k1Scalar;
395
499
 
396
- const _descriptor_43 = __compactRuntime.CompactTypeSecp256k1Base;
500
+ const _descriptor_49 = __compactRuntime.CompactTypeSecp256k1Base;
397
501
 
398
- const _descriptor_44 = __compactRuntime.CompactTypeField;
399
-
400
- const _descriptor_45 = new __compactRuntime.CompactTypeEnum(6, 1);
502
+ const _descriptor_50 = new __compactRuntime.CompactTypeEnum(8, 1);
401
503
 
402
504
  class _tuple_0 {
403
505
  alignment() {
404
- return _descriptor_45.alignment().concat(_descriptor_41.alignment());
506
+ return _descriptor_50.alignment().concat(_descriptor_1.alignment().concat(_descriptor_7.alignment().concat(_descriptor_25.alignment().concat(_descriptor_7.alignment().concat(_descriptor_1.alignment())))));
405
507
  }
406
508
  fromValue(value_0) {
407
509
  return [
408
- _descriptor_45.fromValue(value_0),
409
- _descriptor_41.fromValue(value_0)
510
+ _descriptor_50.fromValue(value_0),
511
+ _descriptor_1.fromValue(value_0),
512
+ _descriptor_7.fromValue(value_0),
513
+ _descriptor_25.fromValue(value_0),
514
+ _descriptor_7.fromValue(value_0),
515
+ _descriptor_1.fromValue(value_0)
410
516
  ]
411
517
  }
412
518
  toValue(value_0) {
413
- return _descriptor_45.toValue(value_0[0]).concat(_descriptor_41.toValue(value_0[1]));
519
+ return _descriptor_50.toValue(value_0[0]).concat(_descriptor_1.toValue(value_0[1]).concat(_descriptor_7.toValue(value_0[2]).concat(_descriptor_25.toValue(value_0[3]).concat(_descriptor_7.toValue(value_0[4]).concat(_descriptor_1.toValue(value_0[5]))))));
414
520
  }
415
521
  }
416
522
 
417
- const _descriptor_46 = new _tuple_0();
523
+ const _descriptor_51 = new _tuple_0();
524
+
525
+ const _descriptor_52 = __compactRuntime.CompactTypeField;
418
526
 
419
527
  class _tuple_1 {
420
528
  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())))));
529
+ return _descriptor_50.alignment().concat(_descriptor_52.alignment().concat(_descriptor_1.alignment()));
422
530
  }
423
531
  fromValue(value_0) {
424
532
  return [
425
- _descriptor_45.fromValue(value_0),
426
- _descriptor_1.fromValue(value_0),
427
- _descriptor_5.fromValue(value_0),
428
- _descriptor_23.fromValue(value_0),
429
- _descriptor_5.fromValue(value_0),
533
+ _descriptor_50.fromValue(value_0),
534
+ _descriptor_52.fromValue(value_0),
430
535
  _descriptor_1.fromValue(value_0)
431
536
  ]
432
537
  }
433
538
  toValue(value_0) {
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]))))));
539
+ return _descriptor_50.toValue(value_0[0]).concat(_descriptor_52.toValue(value_0[1]).concat(_descriptor_1.toValue(value_0[2])));
435
540
  }
436
541
  }
437
542
 
438
- const _descriptor_47 = new _tuple_1();
543
+ const _descriptor_53 = new _tuple_1();
439
544
 
440
545
  class _tuple_2 {
441
546
  alignment() {
442
- return _descriptor_45.alignment().concat(_descriptor_21.alignment());
547
+ return _descriptor_50.alignment().concat(_descriptor_44.alignment());
443
548
  }
444
549
  fromValue(value_0) {
445
550
  return [
446
- _descriptor_45.fromValue(value_0),
447
- _descriptor_21.fromValue(value_0)
551
+ _descriptor_50.fromValue(value_0),
552
+ _descriptor_44.fromValue(value_0)
448
553
  ]
449
554
  }
450
555
  toValue(value_0) {
451
- return _descriptor_45.toValue(value_0[0]).concat(_descriptor_21.toValue(value_0[1]));
556
+ return _descriptor_50.toValue(value_0[0]).concat(_descriptor_44.toValue(value_0[1]));
452
557
  }
453
558
  }
454
559
 
455
- const _descriptor_48 = new _tuple_2();
560
+ const _descriptor_54 = new _tuple_2();
456
561
 
457
562
  class _tuple_3 {
458
563
  alignment() {
459
- return _descriptor_45.alignment().concat(_descriptor_1.alignment());
564
+ return _descriptor_50.alignment().concat(_descriptor_1.alignment());
460
565
  }
461
566
  fromValue(value_0) {
462
567
  return [
463
- _descriptor_45.fromValue(value_0),
568
+ _descriptor_50.fromValue(value_0),
464
569
  _descriptor_1.fromValue(value_0)
465
570
  ]
466
571
  }
467
572
  toValue(value_0) {
468
- return _descriptor_45.toValue(value_0[0]).concat(_descriptor_1.toValue(value_0[1]));
573
+ return _descriptor_50.toValue(value_0[0]).concat(_descriptor_1.toValue(value_0[1]));
469
574
  }
470
575
  }
471
576
 
472
- const _descriptor_49 = new _tuple_3();
577
+ const _descriptor_55 = new _tuple_3();
473
578
 
474
579
  class _tuple_4 {
475
580
  alignment() {
476
- return _descriptor_45.alignment().concat(_descriptor_44.alignment().concat(_descriptor_1.alignment()));
581
+ return _descriptor_50.alignment().concat(_descriptor_5.alignment().concat(_descriptor_6.alignment().concat(_descriptor_7.alignment().concat(_descriptor_7.alignment().concat(_descriptor_7.alignment().concat(_descriptor_8.alignment().concat(_descriptor_7.alignment().concat(_descriptor_9.alignment().concat(_descriptor_10.alignment().concat(_descriptor_11.alignment()))))))))));
477
582
  }
478
583
  fromValue(value_0) {
479
584
  return [
480
- _descriptor_45.fromValue(value_0),
481
- _descriptor_44.fromValue(value_0),
482
- _descriptor_1.fromValue(value_0)
585
+ _descriptor_50.fromValue(value_0),
586
+ _descriptor_5.fromValue(value_0),
587
+ _descriptor_6.fromValue(value_0),
588
+ _descriptor_7.fromValue(value_0),
589
+ _descriptor_7.fromValue(value_0),
590
+ _descriptor_7.fromValue(value_0),
591
+ _descriptor_8.fromValue(value_0),
592
+ _descriptor_7.fromValue(value_0),
593
+ _descriptor_9.fromValue(value_0),
594
+ _descriptor_10.fromValue(value_0),
595
+ _descriptor_11.fromValue(value_0)
483
596
  ]
484
597
  }
485
598
  toValue(value_0) {
486
- return _descriptor_45.toValue(value_0[0]).concat(_descriptor_44.toValue(value_0[1]).concat(_descriptor_1.toValue(value_0[2])));
599
+ return _descriptor_50.toValue(value_0[0]).concat(_descriptor_5.toValue(value_0[1]).concat(_descriptor_6.toValue(value_0[2]).concat(_descriptor_7.toValue(value_0[3]).concat(_descriptor_7.toValue(value_0[4]).concat(_descriptor_7.toValue(value_0[5]).concat(_descriptor_8.toValue(value_0[6]).concat(_descriptor_7.toValue(value_0[7]).concat(_descriptor_9.toValue(value_0[8]).concat(_descriptor_10.toValue(value_0[9]).concat(_descriptor_11.toValue(value_0[10])))))))))));
487
600
  }
488
601
  }
489
602
 
490
- const _descriptor_50 = new _tuple_4();
603
+ const _descriptor_56 = new _tuple_4();
491
604
 
492
605
  class _tuple_5 {
493
606
  alignment() {
494
- return _descriptor_45.alignment().concat(_descriptor_44.alignment().concat(_descriptor_7.alignment().concat(_descriptor_0.alignment().concat(_descriptor_44.alignment()))));
607
+ return _descriptor_50.alignment().concat(_descriptor_52.alignment().concat(_descriptor_31.alignment().concat(_descriptor_0.alignment().concat(_descriptor_52.alignment()))));
495
608
  }
496
609
  fromValue(value_0) {
497
610
  return [
498
- _descriptor_45.fromValue(value_0),
499
- _descriptor_44.fromValue(value_0),
500
- _descriptor_7.fromValue(value_0),
611
+ _descriptor_50.fromValue(value_0),
612
+ _descriptor_52.fromValue(value_0),
613
+ _descriptor_31.fromValue(value_0),
501
614
  _descriptor_0.fromValue(value_0),
502
- _descriptor_44.fromValue(value_0)
615
+ _descriptor_52.fromValue(value_0)
503
616
  ]
504
617
  }
505
618
  toValue(value_0) {
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])))));
619
+ return _descriptor_50.toValue(value_0[0]).concat(_descriptor_52.toValue(value_0[1]).concat(_descriptor_31.toValue(value_0[2]).concat(_descriptor_0.toValue(value_0[3]).concat(_descriptor_52.toValue(value_0[4])))));
507
620
  }
508
621
  }
509
622
 
510
- const _descriptor_51 = new _tuple_5();
623
+ const _descriptor_57 = new _tuple_5();
511
624
 
512
625
  class _tuple_6 {
513
626
  alignment() {
514
- return _descriptor_45.alignment().concat(_descriptor_36.alignment());
627
+ return _descriptor_50.alignment().concat(_descriptor_18.alignment());
515
628
  }
516
629
  fromValue(value_0) {
517
630
  return [
518
- _descriptor_45.fromValue(value_0),
519
- _descriptor_36.fromValue(value_0)
631
+ _descriptor_50.fromValue(value_0),
632
+ _descriptor_18.fromValue(value_0)
520
633
  ]
521
634
  }
522
635
  toValue(value_0) {
523
- return _descriptor_45.toValue(value_0[0]).concat(_descriptor_36.toValue(value_0[1]));
636
+ return _descriptor_50.toValue(value_0[0]).concat(_descriptor_18.toValue(value_0[1]));
524
637
  }
525
638
  }
526
639
 
527
- const _descriptor_52 = new _tuple_6();
640
+ const _descriptor_58 = new _tuple_6();
528
641
 
529
642
  class _tuple_7 {
530
643
  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())))))))))));
644
+ return _descriptor_50.alignment().concat(_descriptor_5.alignment());
532
645
  }
533
646
  fromValue(value_0) {
534
647
  return [
535
- _descriptor_45.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),
648
+ _descriptor_50.fromValue(value_0),
649
+ _descriptor_5.fromValue(value_0)
650
+ ]
651
+ }
652
+ toValue(value_0) {
653
+ return _descriptor_50.toValue(value_0[0]).concat(_descriptor_5.toValue(value_0[1]));
654
+ }
655
+ }
656
+
657
+ const _descriptor_59 = new _tuple_7();
658
+
659
+ class _tuple_8 {
660
+ alignment() {
661
+ return _descriptor_50.alignment().concat(_descriptor_7.alignment().concat(_descriptor_7.alignment().concat(_descriptor_30.alignment().concat(_descriptor_30.alignment().concat(_descriptor_7.alignment().concat(_descriptor_31.alignment().concat(_descriptor_30.alignment().concat(_descriptor_9.alignment().concat(_descriptor_10.alignment().concat(_descriptor_11.alignment().concat(_descriptor_0.alignment())))))))))));
662
+ }
663
+ fromValue(value_0) {
664
+ return [
665
+ _descriptor_50.fromValue(value_0),
541
666
  _descriptor_7.fromValue(value_0),
542
- _descriptor_6.fromValue(value_0),
543
- _descriptor_8.fromValue(value_0),
667
+ _descriptor_7.fromValue(value_0),
668
+ _descriptor_30.fromValue(value_0),
669
+ _descriptor_30.fromValue(value_0),
670
+ _descriptor_7.fromValue(value_0),
671
+ _descriptor_31.fromValue(value_0),
672
+ _descriptor_30.fromValue(value_0),
544
673
  _descriptor_9.fromValue(value_0),
545
674
  _descriptor_10.fromValue(value_0),
675
+ _descriptor_11.fromValue(value_0),
546
676
  _descriptor_0.fromValue(value_0)
547
677
  ]
548
678
  }
549
679
  toValue(value_0) {
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]))))))))))));
680
+ return _descriptor_50.toValue(value_0[0]).concat(_descriptor_7.toValue(value_0[1]).concat(_descriptor_7.toValue(value_0[2]).concat(_descriptor_30.toValue(value_0[3]).concat(_descriptor_30.toValue(value_0[4]).concat(_descriptor_7.toValue(value_0[5]).concat(_descriptor_31.toValue(value_0[6]).concat(_descriptor_30.toValue(value_0[7]).concat(_descriptor_9.toValue(value_0[8]).concat(_descriptor_10.toValue(value_0[9]).concat(_descriptor_11.toValue(value_0[10]).concat(_descriptor_0.toValue(value_0[11]))))))))))));
551
681
  }
552
682
  }
553
683
 
554
- const _descriptor_53 = new _tuple_7();
684
+ const _descriptor_60 = new _tuple_8();
555
685
 
556
- class _tuple_8 {
686
+ class _tuple_9 {
557
687
  alignment() {
558
- return _descriptor_45.alignment().concat(_descriptor_37.alignment());
688
+ return _descriptor_50.alignment().concat(_descriptor_42.alignment());
559
689
  }
560
690
  fromValue(value_0) {
561
691
  return [
562
- _descriptor_45.fromValue(value_0),
563
- _descriptor_37.fromValue(value_0)
692
+ _descriptor_50.fromValue(value_0),
693
+ _descriptor_42.fromValue(value_0)
564
694
  ]
565
695
  }
566
696
  toValue(value_0) {
567
- return _descriptor_45.toValue(value_0[0]).concat(_descriptor_37.toValue(value_0[1]));
697
+ return _descriptor_50.toValue(value_0[0]).concat(_descriptor_42.toValue(value_0[1]));
568
698
  }
569
699
  }
570
700
 
571
- const _descriptor_54 = new _tuple_8();
701
+ const _descriptor_61 = new _tuple_9();
572
702
 
573
- class _tuple_9 {
703
+ class _tuple_10 {
574
704
  alignment() {
575
- return _descriptor_45.alignment().concat(_descriptor_35.alignment());
705
+ return _descriptor_50.alignment().concat(_descriptor_43.alignment());
576
706
  }
577
707
  fromValue(value_0) {
578
708
  return [
579
- _descriptor_45.fromValue(value_0),
580
- _descriptor_35.fromValue(value_0)
709
+ _descriptor_50.fromValue(value_0),
710
+ _descriptor_43.fromValue(value_0)
581
711
  ]
582
712
  }
583
713
  toValue(value_0) {
584
- return _descriptor_45.toValue(value_0[0]).concat(_descriptor_35.toValue(value_0[1]));
714
+ return _descriptor_50.toValue(value_0[0]).concat(_descriptor_43.toValue(value_0[1]));
585
715
  }
586
716
  }
587
717
 
588
- const _descriptor_55 = new _tuple_9();
718
+ const _descriptor_62 = new _tuple_10();
589
719
 
590
720
  class _Secp256k1EcdsaSignature_0 {
591
721
  alignment() {
592
- return _descriptor_42.alignment().concat(_descriptor_42.alignment());
722
+ return _descriptor_48.alignment().concat(_descriptor_48.alignment());
593
723
  }
594
724
  fromValue(value_0) {
595
725
  return {
596
- r: _descriptor_42.fromValue(value_0),
597
- s: _descriptor_42.fromValue(value_0)
726
+ r: _descriptor_48.fromValue(value_0),
727
+ s: _descriptor_48.fromValue(value_0)
598
728
  }
599
729
  }
600
730
  toValue(value_0) {
601
- return _descriptor_42.toValue(value_0.r).concat(_descriptor_42.toValue(value_0.s));
731
+ return _descriptor_48.toValue(value_0.r).concat(_descriptor_48.toValue(value_0.s));
602
732
  }
603
733
  }
604
734
 
605
- const _descriptor_56 = new _Secp256k1EcdsaSignature_0();
735
+ const _descriptor_63 = new _Secp256k1EcdsaSignature_0();
606
736
 
607
737
  class _Either_0 {
608
738
  alignment() {
609
- return _descriptor_8.alignment().concat(_descriptor_1.alignment().concat(_descriptor_1.alignment()));
739
+ return _descriptor_9.alignment().concat(_descriptor_1.alignment().concat(_descriptor_1.alignment()));
610
740
  }
611
741
  fromValue(value_0) {
612
742
  return {
613
- is_left: _descriptor_8.fromValue(value_0),
743
+ is_left: _descriptor_9.fromValue(value_0),
614
744
  left: _descriptor_1.fromValue(value_0),
615
745
  right: _descriptor_1.fromValue(value_0)
616
746
  }
617
747
  }
618
748
  toValue(value_0) {
619
- return _descriptor_8.toValue(value_0.is_left).concat(_descriptor_1.toValue(value_0.left).concat(_descriptor_1.toValue(value_0.right)));
749
+ return _descriptor_9.toValue(value_0.is_left).concat(_descriptor_1.toValue(value_0.left).concat(_descriptor_1.toValue(value_0.right)));
620
750
  }
621
751
  }
622
752
 
623
- const _descriptor_57 = new _Either_0();
753
+ const _descriptor_64 = new _Either_0();
624
754
 
625
755
  class _UserAddress_0 {
626
756
  alignment() {
@@ -636,44 +766,44 @@ class _UserAddress_0 {
636
766
  }
637
767
  }
638
768
 
639
- const _descriptor_58 = new _UserAddress_0();
769
+ const _descriptor_65 = new _UserAddress_0();
640
770
 
641
771
  class _Either_1 {
642
772
  alignment() {
643
- return _descriptor_8.alignment().concat(_descriptor_2.alignment().concat(_descriptor_58.alignment()));
773
+ return _descriptor_9.alignment().concat(_descriptor_2.alignment().concat(_descriptor_65.alignment()));
644
774
  }
645
775
  fromValue(value_0) {
646
776
  return {
647
- is_left: _descriptor_8.fromValue(value_0),
777
+ is_left: _descriptor_9.fromValue(value_0),
648
778
  left: _descriptor_2.fromValue(value_0),
649
- right: _descriptor_58.fromValue(value_0)
779
+ right: _descriptor_65.fromValue(value_0)
650
780
  }
651
781
  }
652
782
  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)));
783
+ return _descriptor_9.toValue(value_0.is_left).concat(_descriptor_2.toValue(value_0.left).concat(_descriptor_65.toValue(value_0.right)));
654
784
  }
655
785
  }
656
786
 
657
- const _descriptor_59 = new _Either_1();
787
+ const _descriptor_66 = new _Either_1();
658
788
 
659
789
  class _Maybe_2 {
660
790
  alignment() {
661
- return _descriptor_8.alignment().concat(_descriptor_59.alignment());
791
+ return _descriptor_9.alignment().concat(_descriptor_66.alignment());
662
792
  }
663
793
  fromValue(value_0) {
664
794
  return {
665
- is_some: _descriptor_8.fromValue(value_0),
666
- value: _descriptor_59.fromValue(value_0)
795
+ is_some: _descriptor_9.fromValue(value_0),
796
+ value: _descriptor_66.fromValue(value_0)
667
797
  }
668
798
  }
669
799
  toValue(value_0) {
670
- return _descriptor_8.toValue(value_0.is_some).concat(_descriptor_59.toValue(value_0.value));
800
+ return _descriptor_9.toValue(value_0.is_some).concat(_descriptor_66.toValue(value_0.value));
671
801
  }
672
802
  }
673
803
 
674
- const _descriptor_60 = new _Maybe_2();
804
+ const _descriptor_67 = new _Maybe_2();
675
805
 
676
- const _descriptor_61 = new __compactRuntime.CompactTypeUnsignedInteger(4294967295n, 4);
806
+ const _descriptor_68 = new __compactRuntime.CompactTypeUnsignedInteger(4294967295n, 4);
677
807
 
678
808
  export class Contract {
679
809
  witnesses;
@@ -702,6 +832,12 @@ export class Contract {
702
832
  async ethereumCaip2Id(context, ...args_1) {
703
833
  return { result: pureCircuits.ethereumCaip2Id(...args_1), context };
704
834
  },
835
+ async tronCaip2Id(context, ...args_1) {
836
+ return { result: pureCircuits.tronCaip2Id(...args_1), context };
837
+ },
838
+ async tronAddress(context, ...args_1) {
839
+ return { result: pureCircuits.tronAddress(...args_1), context };
840
+ },
705
841
  async evmAddressAbiWord(context, ...args_1) {
706
842
  return { result: pureCircuits.evmAddressAbiWord(...args_1), context };
707
843
  },
@@ -761,6 +897,18 @@ export class Contract {
761
897
  },
762
898
  async constructSignBidirectionalEventV1_1_0_0_34(context, ...args_1) {
763
899
  return { result: pureCircuits.constructSignBidirectionalEventV1_1_0_0_34(...args_1), context };
900
+ },
901
+ async calculateTronTxParamsDigestV1_1(context, ...args_1) {
902
+ return { result: pureCircuits.calculateTronTxParamsDigestV1_1(...args_1), context };
903
+ },
904
+ async calculateTronTxParamsDigestV1_2(context, ...args_1) {
905
+ return { result: pureCircuits.calculateTronTxParamsDigestV1_2(...args_1), context };
906
+ },
907
+ async calculateTronRequestIdV1_1_0(context, ...args_1) {
908
+ return { result: pureCircuits.calculateTronRequestIdV1_1_0(...args_1), context };
909
+ },
910
+ async calculateTronRequestIdV1_2_0(context, ...args_1) {
911
+ return { result: pureCircuits.calculateTronRequestIdV1_2_0(...args_1), context };
764
912
  }
765
913
  };
766
914
  this.impureCircuits = {};
@@ -861,43 +1009,47 @@ export class Contract {
861
1009
  r_0;
862
1010
  }
863
1011
  _transientHash_0(value_0) {
864
- const result_0 = __compactRuntime.transientHash(_descriptor_54, value_0);
1012
+ const result_0 = __compactRuntime.transientHash(_descriptor_61, value_0);
865
1013
  return result_0;
866
1014
  }
867
1015
  _transientHash_1(value_0) {
868
- const result_0 = __compactRuntime.transientHash(_descriptor_55, value_0);
1016
+ const result_0 = __compactRuntime.transientHash(_descriptor_62, value_0);
869
1017
  return result_0;
870
1018
  }
871
1019
  _transientHash_2(value_0) {
872
- const result_0 = __compactRuntime.transientHash(_descriptor_52, value_0);
1020
+ const result_0 = __compactRuntime.transientHash(_descriptor_59, value_0);
873
1021
  return result_0;
874
1022
  }
875
1023
  _transientHash_3(value_0) {
876
- const result_0 = __compactRuntime.transientHash(_descriptor_53, value_0);
1024
+ const result_0 = __compactRuntime.transientHash(_descriptor_60, value_0);
877
1025
  return result_0;
878
1026
  }
879
1027
  _transientHash_4(value_0) {
880
- const result_0 = __compactRuntime.transientHash(_descriptor_50, value_0);
1028
+ const result_0 = __compactRuntime.transientHash(_descriptor_57, value_0);
881
1029
  return result_0;
882
1030
  }
883
1031
  _transientHash_5(value_0) {
884
- const result_0 = __compactRuntime.transientHash(_descriptor_51, value_0);
1032
+ const result_0 = __compactRuntime.transientHash(_descriptor_58, value_0);
885
1033
  return result_0;
886
1034
  }
887
1035
  _transientHash_6(value_0) {
888
- const result_0 = __compactRuntime.transientHash(_descriptor_48, value_0);
1036
+ const result_0 = __compactRuntime.transientHash(_descriptor_55, value_0);
889
1037
  return result_0;
890
1038
  }
891
1039
  _transientHash_7(value_0) {
892
- const result_0 = __compactRuntime.transientHash(_descriptor_49, value_0);
1040
+ const result_0 = __compactRuntime.transientHash(_descriptor_56, value_0);
893
1041
  return result_0;
894
1042
  }
895
1043
  _transientHash_8(value_0) {
896
- const result_0 = __compactRuntime.transientHash(_descriptor_46, value_0);
1044
+ const result_0 = __compactRuntime.transientHash(_descriptor_53, value_0);
897
1045
  return result_0;
898
1046
  }
899
1047
  _transientHash_9(value_0) {
900
- const result_0 = __compactRuntime.transientHash(_descriptor_47, value_0);
1048
+ const result_0 = __compactRuntime.transientHash(_descriptor_54, value_0);
1049
+ return result_0;
1050
+ }
1051
+ _transientHash_10(value_0) {
1052
+ const result_0 = __compactRuntime.transientHash(_descriptor_51, value_0);
901
1053
  return result_0;
902
1054
  }
903
1055
  _upgradeFromTransient_0(x_0) {
@@ -956,7 +1108,7 @@ export class Contract {
956
1108
  respondSerializationSchema: new Uint8Array(0) };
957
1109
  }
958
1110
  _calculateRequestIdV1_0(preimage_0) {
959
- return this._upgradeFromTransient_0(this._transientHash_8([0, preimage_0]));
1111
+ return this._upgradeFromTransient_0(this._transientHash_9([0, preimage_0]));
960
1112
  }
961
1113
  _constructSignBidirectionalEventNotificationV1_0(callerAddress_0,
962
1114
  requestsPathDepth_0,
@@ -986,11 +1138,11 @@ export class Contract {
986
1138
  serializedOutput_0]));
987
1139
  }
988
1140
  _calculateAttestedOutputHashV1_3(serializedOutput_0) {
989
- return this._upgradeFromTransient_0(this._transientHash_6([6,
1141
+ return this._upgradeFromTransient_0(this._transientHash_5([6,
990
1142
  serializedOutput_0]));
991
1143
  }
992
1144
  _calculateAttestedOutputHashV1_4(serializedOutput_0) {
993
- return this._upgradeFromTransient_0(this._transientHash_7([6,
1145
+ return this._upgradeFromTransient_0(this._transientHash_6([6,
994
1146
  serializedOutput_0]));
995
1147
  }
996
1148
  _calculateSignetAttestationDigestV1_0(requestId_0,
@@ -999,12 +1151,12 @@ export class Contract {
999
1151
  serializedOutputLength_0,
1000
1152
  outputHash_0)
1001
1153
  {
1002
- return this._upgradeFromTransient_0(this._transientHash_9([1,
1003
- requestId_0,
1004
- blockHeight_0,
1005
- outputKind_0,
1006
- serializedOutputLength_0,
1007
- outputHash_0]));
1154
+ return this._upgradeFromTransient_0(this._transientHash_10([1,
1155
+ requestId_0,
1156
+ blockHeight_0,
1157
+ outputKind_0,
1158
+ serializedOutputLength_0,
1159
+ outputHash_0]));
1008
1160
  }
1009
1161
  _verifyRespondBidirectionalAttestationV1_0(respondBidirectionalEvent_0,
1010
1162
  mpcResponseKey_0)
@@ -1022,13 +1174,13 @@ export class Contract {
1022
1174
  32,
1023
1175
  respondBidirectionalEvent_0.signature.bigR.x,
1024
1176
  'Secp256k1Scalar',
1025
- 'Signet.compact line 458 char 12'),
1177
+ 'Signet.compact line 460 char 12'),
1026
1178
  s:
1027
1179
  __compactRuntime.convertBytesToField(115792089237316195423570985008687907852837564279074904382605163141518161494336n,
1028
1180
  32,
1029
1181
  respondBidirectionalEvent_0.signature.s,
1030
1182
  'Secp256k1Scalar',
1031
- 'Signet.compact line 459 char 12') },
1183
+ 'Signet.compact line 461 char 12') },
1032
1184
  mpcResponseKey_0);
1033
1185
  }
1034
1186
  _verifyAttestedOutputV1_0(serializedOutput_0,
@@ -1107,7 +1259,7 @@ export class Contract {
1107
1259
  let t_1, t_2;
1108
1260
  return [((t1) => {
1109
1261
  if (t1 > 255n) {
1110
- throw new __compactRuntime.CompactError('Signet.compact line 601 char 10: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
1262
+ throw new __compactRuntime.CompactError('Signet.compact line 603 char 10: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
1111
1263
  }
1112
1264
  return t1;
1113
1265
  })(acc_0[0] + 1n),
@@ -1142,14 +1294,14 @@ export class Contract {
1142
1294
  let t_3;
1143
1295
  return [((t1) => {
1144
1296
  if (t1 > 65535n) {
1145
- throw new __compactRuntime.CompactError('Signet.compact line 628 char 10: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 65535');
1297
+ throw new __compactRuntime.CompactError('Signet.compact line 630 char 10: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 65535');
1146
1298
  }
1147
1299
  return t1;
1148
1300
  })(acc_1[0] + 1n),
1149
1301
  (t_3 = acc_1[0],
1150
1302
  t_3 < noWords_0)
1151
1303
  ?
1152
- this._transientHash_4([3,
1304
+ this._transientHash_8([3,
1153
1305
  acc_1[1],
1154
1306
  word_0])
1155
1307
  :
@@ -1162,7 +1314,7 @@ export class Contract {
1162
1314
  let t_4;
1163
1315
  return [((t1) => {
1164
1316
  if (t1 > 255n) {
1165
- throw new __compactRuntime.CompactError('Signet.compact line 639 char 11: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
1317
+ throw new __compactRuntime.CompactError('Signet.compact line 641 char 11: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
1166
1318
  }
1167
1319
  return t1;
1168
1320
  })(acc_2[0] + 1n),
@@ -1171,7 +1323,7 @@ export class Contract {
1171
1323
  <
1172
1324
  txParams_0.accessListEntryCount)
1173
1325
  ?
1174
- this._transientHash_5([4,
1326
+ this._transientHash_4([4,
1175
1327
  acc_2[1],
1176
1328
  entry_1.address,
1177
1329
  entry_1.storageKeyCount,
@@ -1181,7 +1333,7 @@ export class Contract {
1181
1333
  let t_5;
1182
1334
  return [((t1) => {
1183
1335
  if (t1 > 255n) {
1184
- throw new __compactRuntime.CompactError('Signet.compact line 648 char 22: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
1336
+ throw new __compactRuntime.CompactError('Signet.compact line 650 char 22: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
1185
1337
  }
1186
1338
  return t1;
1187
1339
  })(keyAcc_0[0]
@@ -1192,7 +1344,7 @@ export class Contract {
1192
1344
  <
1193
1345
  entry_1.storageKeyCount)
1194
1346
  ?
1195
- this._transientHash_4([5,
1347
+ this._transientHash_8([5,
1196
1348
  keyAcc_0[1],
1197
1349
  key_0])
1198
1350
  :
@@ -1223,7 +1375,7 @@ export class Contract {
1223
1375
  let t_1, t_2;
1224
1376
  return [((t1) => {
1225
1377
  if (t1 > 255n) {
1226
- throw new __compactRuntime.CompactError('Signet.compact line 601 char 10: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
1378
+ throw new __compactRuntime.CompactError('Signet.compact line 603 char 10: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
1227
1379
  }
1228
1380
  return t1;
1229
1381
  })(acc_0[0] + 1n),
@@ -1258,14 +1410,14 @@ export class Contract {
1258
1410
  let t_3;
1259
1411
  return [((t1) => {
1260
1412
  if (t1 > 65535n) {
1261
- throw new __compactRuntime.CompactError('Signet.compact line 628 char 10: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 65535');
1413
+ throw new __compactRuntime.CompactError('Signet.compact line 630 char 10: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 65535');
1262
1414
  }
1263
1415
  return t1;
1264
1416
  })(acc_1[0] + 1n),
1265
1417
  (t_3 = acc_1[0],
1266
1418
  t_3 < noWords_0)
1267
1419
  ?
1268
- this._transientHash_4([3,
1420
+ this._transientHash_8([3,
1269
1421
  acc_1[1],
1270
1422
  word_0])
1271
1423
  :
@@ -1278,7 +1430,7 @@ export class Contract {
1278
1430
  let t_4;
1279
1431
  return [((t1) => {
1280
1432
  if (t1 > 255n) {
1281
- throw new __compactRuntime.CompactError('Signet.compact line 639 char 11: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
1433
+ throw new __compactRuntime.CompactError('Signet.compact line 641 char 11: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
1282
1434
  }
1283
1435
  return t1;
1284
1436
  })(acc_2[0] + 1n),
@@ -1287,7 +1439,7 @@ export class Contract {
1287
1439
  <
1288
1440
  txParams_0.accessListEntryCount)
1289
1441
  ?
1290
- this._transientHash_5([4,
1442
+ this._transientHash_4([4,
1291
1443
  acc_2[1],
1292
1444
  entry_1.address,
1293
1445
  entry_1.storageKeyCount,
@@ -1297,7 +1449,7 @@ export class Contract {
1297
1449
  let t_5;
1298
1450
  return [((t1) => {
1299
1451
  if (t1 > 255n) {
1300
- throw new __compactRuntime.CompactError('Signet.compact line 648 char 22: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
1452
+ throw new __compactRuntime.CompactError('Signet.compact line 650 char 22: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
1301
1453
  }
1302
1454
  return t1;
1303
1455
  })(keyAcc_0[0]
@@ -1308,7 +1460,7 @@ export class Contract {
1308
1460
  <
1309
1461
  entry_1.storageKeyCount)
1310
1462
  ?
1311
- this._transientHash_4([5,
1463
+ this._transientHash_8([5,
1312
1464
  keyAcc_0[1],
1313
1465
  key_0])
1314
1466
  :
@@ -1350,6 +1502,118 @@ export class Contract {
1350
1502
  executionDest: request_0.executionDest };
1351
1503
  return this._calculateRequestIdV1_0(preimage_0);
1352
1504
  }
1505
+ _tronCaip2Id_0() {
1506
+ return new Uint8Array([116, 114, 111, 110, 58, 109, 97, 105, 110, 110, 101, 116, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
1507
+ }
1508
+ _tronAddress_0(evmAddress_0) {
1509
+ return Uint8Array.from([65n, ...Array.from(evmAddress_0, BigInt)], Number);
1510
+ }
1511
+ _calculateTronTxParamsDigestV1_0(txParams_0) {
1512
+ const calldata_0 = txParams_0.calldata;
1513
+ const noWords_0 = calldata_0.is_some ? calldata_0.value.noWords : 0n;
1514
+ const selector_0 = calldata_0.is_some ?
1515
+ calldata_0.value.selector :
1516
+ new Uint8Array(4);
1517
+ __compactRuntime.assert(noWords_0 <= 1n, 'calldata noWords exceeds capacity');
1518
+ const head_0 = this._transientHash_7([7,
1519
+ txParams_0.refBlockBytes,
1520
+ txParams_0.refBlockHash,
1521
+ txParams_0.timestamp,
1522
+ txParams_0.expiration,
1523
+ txParams_0.feeLimit,
1524
+ txParams_0.contractAddress,
1525
+ txParams_0.callValue,
1526
+ calldata_0.is_some,
1527
+ selector_0,
1528
+ noWords_0]);
1529
+ const wordsScan_0 = this._folder_8(((acc_0, word_0) =>
1530
+ {
1531
+ let t_0;
1532
+ return [((t1) => {
1533
+ if (t1 > 65535n) {
1534
+ throw new __compactRuntime.CompactError('Signet.compact line 728 char 10: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 65535');
1535
+ }
1536
+ return t1;
1537
+ })(acc_0[0] + 1n),
1538
+ (t_0 = acc_0[0],
1539
+ t_0 < noWords_0)
1540
+ ?
1541
+ this._transientHash_8([8,
1542
+ acc_0[1],
1543
+ word_0])
1544
+ :
1545
+ acc_0[1]];
1546
+ }),
1547
+ [0n, head_0],
1548
+ calldata_0.value.words);
1549
+ return this._upgradeFromTransient_0(wordsScan_0[1]);
1550
+ }
1551
+ _calculateTronTxParamsDigestV1_1(txParams_0) {
1552
+ const calldata_0 = txParams_0.calldata;
1553
+ const noWords_0 = calldata_0.is_some ? calldata_0.value.noWords : 0n;
1554
+ const selector_0 = calldata_0.is_some ?
1555
+ calldata_0.value.selector :
1556
+ new Uint8Array(4);
1557
+ __compactRuntime.assert(noWords_0 <= 2n, 'calldata noWords exceeds capacity');
1558
+ const head_0 = this._transientHash_7([7,
1559
+ txParams_0.refBlockBytes,
1560
+ txParams_0.refBlockHash,
1561
+ txParams_0.timestamp,
1562
+ txParams_0.expiration,
1563
+ txParams_0.feeLimit,
1564
+ txParams_0.contractAddress,
1565
+ txParams_0.callValue,
1566
+ calldata_0.is_some,
1567
+ selector_0,
1568
+ noWords_0]);
1569
+ const wordsScan_0 = this._folder_9(((acc_0, word_0) =>
1570
+ {
1571
+ let t_0;
1572
+ return [((t1) => {
1573
+ if (t1 > 65535n) {
1574
+ throw new __compactRuntime.CompactError('Signet.compact line 728 char 10: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 65535');
1575
+ }
1576
+ return t1;
1577
+ })(acc_0[0] + 1n),
1578
+ (t_0 = acc_0[0],
1579
+ t_0 < noWords_0)
1580
+ ?
1581
+ this._transientHash_8([8,
1582
+ acc_0[1],
1583
+ word_0])
1584
+ :
1585
+ acc_0[1]];
1586
+ }),
1587
+ [0n, head_0],
1588
+ calldata_0.value.words);
1589
+ return this._upgradeFromTransient_0(wordsScan_0[1]);
1590
+ }
1591
+ _calculateTronRequestIdV1_0(request_0) {
1592
+ __compactRuntime.assert(request_0.txParamType === 1,
1593
+ 'txParamType must tag txParams as tron');
1594
+ const preimage_0 = { keyVersion: request_0.keyVersion,
1595
+ sender: request_0.sender,
1596
+ path: request_0.path,
1597
+ algo: request_0.algo,
1598
+ txParamType: request_0.txParamType,
1599
+ txParamsDigest:
1600
+ this._calculateTronTxParamsDigestV1_0(request_0.txParams),
1601
+ executionDest: request_0.executionDest };
1602
+ return this._calculateRequestIdV1_0(preimage_0);
1603
+ }
1604
+ _calculateTronRequestIdV1_1(request_0) {
1605
+ __compactRuntime.assert(request_0.txParamType === 1,
1606
+ 'txParamType must tag txParams as tron');
1607
+ const preimage_0 = { keyVersion: request_0.keyVersion,
1608
+ sender: request_0.sender,
1609
+ path: request_0.path,
1610
+ algo: request_0.algo,
1611
+ txParamType: request_0.txParamType,
1612
+ txParamsDigest:
1613
+ this._calculateTronTxParamsDigestV1_1(request_0.txParams),
1614
+ executionDest: request_0.executionDest };
1615
+ return this._calculateRequestIdV1_0(preimage_0);
1616
+ }
1353
1617
  _evmAddressAbiWord_0(addr_0) {
1354
1618
  return Uint8Array.from([...Array.from(new Uint8Array(12), BigInt),
1355
1619
  ...Array.from(addr_0, BigInt)],
@@ -1358,7 +1622,7 @@ export class Contract {
1358
1622
  _numericAbiWord_0(value_0) {
1359
1623
  const le_0 = Array.from(__compactRuntime.convertBigintToBytes(16,
1360
1624
  value_0,
1361
- 'Signet.compact line 698 char 17'),
1625
+ 'Signet.compact line 768 char 17'),
1362
1626
  BigInt);
1363
1627
  return Uint8Array.from([...Array.from(new Uint8Array(16), BigInt),
1364
1628
  le_0[15],
@@ -1440,7 +1704,7 @@ export class Contract {
1440
1704
  v_0[31]);
1441
1705
  return ((t1) => {
1442
1706
  if (t1 > 340282366920938463463374607431768211455n) {
1443
- throw new __compactRuntime.CompactError('Signet.compact line 750 char 12: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 340282366920938463463374607431768211455');
1707
+ throw new __compactRuntime.CompactError('Signet.compact line 820 char 12: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 340282366920938463463374607431768211455');
1444
1708
  }
1445
1709
  return t1;
1446
1710
  })(b15_0);
@@ -1452,7 +1716,7 @@ export class Contract {
1452
1716
  32,
1453
1717
  x_0,
1454
1718
  'Uint<0..340282366920938463463374607431768211456>',
1455
- 'Signet.compact line 761 char 12');
1719
+ 'Signet.compact line 831 char 12');
1456
1720
  }
1457
1721
  _abiWordToBool_0(word_0) {
1458
1722
  __compactRuntime.assert(__compactRuntime.convertBytesToUint(52435875175126190479447740508185965837690552500527637822603658699938581184512n,
@@ -1460,7 +1724,7 @@ export class Contract {
1460
1724
  ((e, i) => e.slice(i, i+31))(word_0,
1461
1725
  Number(0n)),
1462
1726
  'Field',
1463
- 'Signet.compact line 767 char 12')
1727
+ 'Signet.compact line 837 char 12')
1464
1728
  ===
1465
1729
  0n,
1466
1730
  'ABI word is not a canonical Boolean');
@@ -1469,7 +1733,7 @@ export class Contract {
1469
1733
  ((e, i) => e.slice(i, i+1))(word_0,
1470
1734
  Number(31n)),
1471
1735
  'Field',
1472
- 'Signet.compact line 768 char 18');
1736
+ 'Signet.compact line 838 char 18');
1473
1737
  __compactRuntime.assert(last_0 === 0n || last_0 === 1n,
1474
1738
  'ABI word is not a canonical Boolean');
1475
1739
  return last_0 === 1n;
@@ -1545,6 +1809,18 @@ export class Contract {
1545
1809
  request_0.params,
1546
1810
  request_0.outputDeserializationSchema);
1547
1811
  }
1812
+ _calculateTronTxParamsDigestV1_1_0(txParams_0) {
1813
+ return this._calculateTronTxParamsDigestV1_0(txParams_0);
1814
+ }
1815
+ _calculateTronTxParamsDigestV1_2_0(txParams_0) {
1816
+ return this._calculateTronTxParamsDigestV1_1(txParams_0);
1817
+ }
1818
+ _calculateTronRequestIdV1_1_0_0(request_0) {
1819
+ return this._calculateTronRequestIdV1_0(request_0);
1820
+ }
1821
+ _calculateTronRequestIdV1_2_0_0(request_0) {
1822
+ return this._calculateTronRequestIdV1_1(request_0);
1823
+ }
1548
1824
  _equal_0(x0, y0) {
1549
1825
  if (x0.identity) { return y0.identity; }
1550
1826
  if (y0.identity || x0.x != y0.x || x0.y != y0.y) {
@@ -1615,6 +1891,14 @@ export class Contract {
1615
1891
  for (let i = 0; i < 1; i++) { x = f(x, a0[i]); }
1616
1892
  return x;
1617
1893
  }
1894
+ _folder_8(f, x, a0) {
1895
+ for (let i = 0; i < 1; i++) { x = f(x, a0[i]); }
1896
+ return x;
1897
+ }
1898
+ _folder_9(f, x, a0) {
1899
+ for (let i = 0; i < 2; i++) { x = f(x, a0[i]); }
1900
+ return x;
1901
+ }
1618
1902
  }
1619
1903
  export function ledger(stateOrChargedState) {
1620
1904
  const state = stateOrChargedState instanceof __compactRuntime.StateValue ? stateOrChargedState : stateOrChargedState.state;
@@ -1645,8 +1929,8 @@ export const pureCircuits = {
1645
1929
  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 === 64)) {
1646
1930
  __compactRuntime.typeError('calculateRequestIdV1',
1647
1931
  'argument 1',
1648
- 'Signet.compact line 232 char 3',
1649
- '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<64>>',
1932
+ 'Signet.compact line 234 char 3',
1933
+ 'struct RequestIdPreimageV1<keyVersion: Uint<0..256>, sender: struct ContractAddress<bytes: Bytes<32>>, path: Bytes<32>, algo: Enum<MPCSignatureAlgorithm, ecdsa, reserved>, txParamType: Enum<TxParamType, evmType2, tron>, txParamsDigest: Bytes<32>, executionDest: Bytes<64>>',
1650
1934
  preimage_0)
1651
1935
  }
1652
1936
  return _dummyContract._calculateRequestIdV1_0(preimage_0);
@@ -1661,21 +1945,21 @@ export const pureCircuits = {
1661
1945
  if (!(typeof(callerAddress_0) === 'object' && callerAddress_0.bytes.buffer instanceof ArrayBuffer && callerAddress_0.bytes.BYTES_PER_ELEMENT === 1 && callerAddress_0.bytes.length === 32)) {
1662
1946
  __compactRuntime.typeError('constructSignBidirectionalEventNotificationV1',
1663
1947
  'argument 1',
1664
- 'Signet.compact line 283 char 3',
1948
+ 'Signet.compact line 285 char 3',
1665
1949
  'struct ContractAddress<bytes: Bytes<32>>',
1666
1950
  callerAddress_0)
1667
1951
  }
1668
1952
  if (!(typeof(requestsPathDepth_0) === 'bigint' && requestsPathDepth_0 >= 0n && requestsPathDepth_0 <= 255n)) {
1669
1953
  __compactRuntime.typeError('constructSignBidirectionalEventNotificationV1',
1670
1954
  'argument 2',
1671
- 'Signet.compact line 283 char 3',
1955
+ 'Signet.compact line 285 char 3',
1672
1956
  'Uint<0..256>',
1673
1957
  requestsPathDepth_0)
1674
1958
  }
1675
1959
  if (!(Array.isArray(requestsPath_0) && requestsPath_0.length === 4 && requestsPath_0.every((t) => typeof(t) === 'bigint' && t >= 0n && t <= 255n))) {
1676
1960
  __compactRuntime.typeError('constructSignBidirectionalEventNotificationV1',
1677
1961
  'argument 3',
1678
- 'Signet.compact line 283 char 3',
1962
+ 'Signet.compact line 285 char 3',
1679
1963
  'Vector<4, Uint<0..256>>',
1680
1964
  requestsPath_0)
1681
1965
  }
@@ -1695,35 +1979,35 @@ export const pureCircuits = {
1695
1979
  if (!(requestId_0.buffer instanceof ArrayBuffer && requestId_0.BYTES_PER_ELEMENT === 1 && requestId_0.length === 32)) {
1696
1980
  __compactRuntime.typeError('calculateSignetAttestationDigestV1',
1697
1981
  'argument 1',
1698
- 'Signet.compact line 409 char 3',
1982
+ 'Signet.compact line 411 char 3',
1699
1983
  'Bytes<32>',
1700
1984
  requestId_0)
1701
1985
  }
1702
1986
  if (!(typeof(blockHeight_0) === 'bigint' && blockHeight_0 >= 0n && blockHeight_0 <= 18446744073709551615n)) {
1703
1987
  __compactRuntime.typeError('calculateSignetAttestationDigestV1',
1704
1988
  'argument 2',
1705
- 'Signet.compact line 409 char 3',
1989
+ 'Signet.compact line 411 char 3',
1706
1990
  'Uint<0..18446744073709551616>',
1707
1991
  blockHeight_0)
1708
1992
  }
1709
1993
  if (!(typeof(outputKind_0) === 'number' && outputKind_0 >= 0 && outputKind_0 <= 2)) {
1710
1994
  __compactRuntime.typeError('calculateSignetAttestationDigestV1',
1711
1995
  'argument 3',
1712
- 'Signet.compact line 409 char 3',
1996
+ 'Signet.compact line 411 char 3',
1713
1997
  'Enum<OutputKind, executed, failed, unviable>',
1714
1998
  outputKind_0)
1715
1999
  }
1716
2000
  if (!(typeof(serializedOutputLength_0) === 'bigint' && serializedOutputLength_0 >= 0n && serializedOutputLength_0 <= 18446744073709551615n)) {
1717
2001
  __compactRuntime.typeError('calculateSignetAttestationDigestV1',
1718
2002
  'argument 4',
1719
- 'Signet.compact line 409 char 3',
2003
+ 'Signet.compact line 411 char 3',
1720
2004
  'Uint<0..18446744073709551616>',
1721
2005
  serializedOutputLength_0)
1722
2006
  }
1723
2007
  if (!(outputHash_0.buffer instanceof ArrayBuffer && outputHash_0.BYTES_PER_ELEMENT === 1 && outputHash_0.length === 32)) {
1724
2008
  __compactRuntime.typeError('calculateSignetAttestationDigestV1',
1725
2009
  'argument 5',
1726
- 'Signet.compact line 409 char 3',
2010
+ 'Signet.compact line 411 char 3',
1727
2011
  'Bytes<32>',
1728
2012
  outputHash_0)
1729
2013
  }
@@ -1742,14 +2026,14 @@ export const pureCircuits = {
1742
2026
  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.outputHash.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.outputHash.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.outputHash.length === 32 && 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)) {
1743
2027
  __compactRuntime.typeError('verifyRespondBidirectionalAttestationV1',
1744
2028
  'argument 1',
1745
- 'Signet.compact line 441 char 3',
2029
+ 'Signet.compact line 443 char 3',
1746
2030
  '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>>>',
1747
2031
  respondBidirectionalEvent_0)
1748
2032
  }
1749
2033
  if (!(__compactRuntime.isValidSecp256k1Point(mpcResponseKey_0))) {
1750
2034
  __compactRuntime.typeError('verifyRespondBidirectionalAttestationV1',
1751
2035
  'argument 2',
1752
- 'Signet.compact line 441 char 3',
2036
+ 'Signet.compact line 443 char 3',
1753
2037
  'Secp256k1Point',
1754
2038
  mpcResponseKey_0)
1755
2039
  }
@@ -1762,6 +2046,26 @@ export const pureCircuits = {
1762
2046
  }
1763
2047
  return _dummyContract._ethereumCaip2Id_0();
1764
2048
  },
2049
+ tronCaip2Id: (...args_0) => {
2050
+ if (args_0.length !== 0) {
2051
+ throw new __compactRuntime.CompactError(`tronCaip2Id: expected 0 arguments (as invoked from Typescript), received ${args_0.length}`);
2052
+ }
2053
+ return _dummyContract._tronCaip2Id_0();
2054
+ },
2055
+ tronAddress: (...args_0) => {
2056
+ if (args_0.length !== 1) {
2057
+ throw new __compactRuntime.CompactError(`tronAddress: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
2058
+ }
2059
+ const evmAddress_0 = args_0[0];
2060
+ if (!(evmAddress_0.buffer instanceof ArrayBuffer && evmAddress_0.BYTES_PER_ELEMENT === 1 && evmAddress_0.length === 20)) {
2061
+ __compactRuntime.typeError('tronAddress',
2062
+ 'argument 1',
2063
+ 'Signet.compact line 688 char 3',
2064
+ 'Bytes<20>',
2065
+ evmAddress_0)
2066
+ }
2067
+ return _dummyContract._tronAddress_0(evmAddress_0);
2068
+ },
1765
2069
  evmAddressAbiWord: (...args_0) => {
1766
2070
  if (args_0.length !== 1) {
1767
2071
  throw new __compactRuntime.CompactError(`evmAddressAbiWord: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
@@ -1770,7 +2074,7 @@ export const pureCircuits = {
1770
2074
  if (!(addr_0.buffer instanceof ArrayBuffer && addr_0.BYTES_PER_ELEMENT === 1 && addr_0.length === 20)) {
1771
2075
  __compactRuntime.typeError('evmAddressAbiWord',
1772
2076
  'argument 1',
1773
- 'Signet.compact line 689 char 3',
2077
+ 'Signet.compact line 759 char 3',
1774
2078
  'Bytes<20>',
1775
2079
  addr_0)
1776
2080
  }
@@ -1784,7 +2088,7 @@ export const pureCircuits = {
1784
2088
  if (!(typeof(value_0) === 'bigint' && value_0 >= 0n && value_0 <= 340282366920938463463374607431768211455n)) {
1785
2089
  __compactRuntime.typeError('numericAbiWord',
1786
2090
  'argument 1',
1787
- 'Signet.compact line 695 char 3',
2091
+ 'Signet.compact line 765 char 3',
1788
2092
  'Uint<0..340282366920938463463374607431768211456>',
1789
2093
  value_0)
1790
2094
  }
@@ -1798,7 +2102,7 @@ export const pureCircuits = {
1798
2102
  if (!(typeof(value_0) === 'boolean')) {
1799
2103
  __compactRuntime.typeError('boolAbiWord',
1800
2104
  'argument 1',
1801
- 'Signet.compact line 708 char 3',
2105
+ 'Signet.compact line 778 char 3',
1802
2106
  'Boolean',
1803
2107
  value_0)
1804
2108
  }
@@ -1812,7 +2116,7 @@ export const pureCircuits = {
1812
2116
  if (!(word_0.buffer instanceof ArrayBuffer && word_0.BYTES_PER_ELEMENT === 1 && word_0.length === 32)) {
1813
2117
  __compactRuntime.typeError('abiWordToUint128',
1814
2118
  'argument 1',
1815
- 'Signet.compact line 716 char 3',
2119
+ 'Signet.compact line 786 char 3',
1816
2120
  'Bytes<32>',
1817
2121
  word_0)
1818
2122
  }
@@ -1826,7 +2130,7 @@ export const pureCircuits = {
1826
2130
  if (!(x_0.buffer instanceof ArrayBuffer && x_0.BYTES_PER_ELEMENT === 1 && x_0.length === 32)) {
1827
2131
  __compactRuntime.typeError('checkedTruncationU128',
1828
2132
  'argument 1',
1829
- 'Signet.compact line 757 char 3',
2133
+ 'Signet.compact line 827 char 3',
1830
2134
  'Bytes<32>',
1831
2135
  x_0)
1832
2136
  }
@@ -1840,7 +2144,7 @@ export const pureCircuits = {
1840
2144
  if (!(word_0.buffer instanceof ArrayBuffer && word_0.BYTES_PER_ELEMENT === 1 && word_0.length === 32)) {
1841
2145
  __compactRuntime.typeError('abiWordToBool',
1842
2146
  'argument 1',
1843
- 'Signet.compact line 766 char 3',
2147
+ 'Signet.compact line 836 char 3',
1844
2148
  'Bytes<32>',
1845
2149
  word_0)
1846
2150
  }
@@ -1854,7 +2158,7 @@ export const pureCircuits = {
1854
2158
  if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 0)) {
1855
2159
  __compactRuntime.typeError('calculateAttestedOutputHash0',
1856
2160
  'argument 1',
1857
- 'circuits.compact line 35 char 1',
2161
+ 'circuits.compact line 37 char 1',
1858
2162
  'Bytes<0>',
1859
2163
  serializedOutput_0)
1860
2164
  }
@@ -1868,7 +2172,7 @@ export const pureCircuits = {
1868
2172
  if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 1)) {
1869
2173
  __compactRuntime.typeError('calculateAttestedOutputHash1',
1870
2174
  'argument 1',
1871
- 'circuits.compact line 41 char 1',
2175
+ 'circuits.compact line 43 char 1',
1872
2176
  'Bytes<1>',
1873
2177
  serializedOutput_0)
1874
2178
  }
@@ -1882,7 +2186,7 @@ export const pureCircuits = {
1882
2186
  if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 2)) {
1883
2187
  __compactRuntime.typeError('calculateAttestedOutputHash2',
1884
2188
  'argument 1',
1885
- 'circuits.compact line 47 char 1',
2189
+ 'circuits.compact line 49 char 1',
1886
2190
  'Bytes<2>',
1887
2191
  serializedOutput_0)
1888
2192
  }
@@ -1896,7 +2200,7 @@ export const pureCircuits = {
1896
2200
  if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 32)) {
1897
2201
  __compactRuntime.typeError('calculateAttestedOutputHash32',
1898
2202
  'argument 1',
1899
- 'circuits.compact line 53 char 1',
2203
+ 'circuits.compact line 55 char 1',
1900
2204
  'Bytes<32>',
1901
2205
  serializedOutput_0)
1902
2206
  }
@@ -1910,7 +2214,7 @@ export const pureCircuits = {
1910
2214
  if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 100)) {
1911
2215
  __compactRuntime.typeError('calculateAttestedOutputHash100',
1912
2216
  'argument 1',
1913
- 'circuits.compact line 59 char 1',
2217
+ 'circuits.compact line 61 char 1',
1914
2218
  'Bytes<100>',
1915
2219
  serializedOutput_0)
1916
2220
  }
@@ -1926,21 +2230,21 @@ export const pureCircuits = {
1926
2230
  if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 1)) {
1927
2231
  __compactRuntime.typeError('verifyAttestedOutput1',
1928
2232
  'argument 1',
1929
- 'circuits.compact line 69 char 1',
2233
+ 'circuits.compact line 71 char 1',
1930
2234
  'Bytes<1>',
1931
2235
  serializedOutput_0)
1932
2236
  }
1933
2237
  if (!(typeof(attestedOutputLength_0) === 'bigint' && attestedOutputLength_0 >= 0n && attestedOutputLength_0 <= 18446744073709551615n)) {
1934
2238
  __compactRuntime.typeError('verifyAttestedOutput1',
1935
2239
  'argument 2',
1936
- 'circuits.compact line 69 char 1',
2240
+ 'circuits.compact line 71 char 1',
1937
2241
  'Uint<0..18446744073709551616>',
1938
2242
  attestedOutputLength_0)
1939
2243
  }
1940
2244
  if (!(attestedOutputHash_0.buffer instanceof ArrayBuffer && attestedOutputHash_0.BYTES_PER_ELEMENT === 1 && attestedOutputHash_0.length === 32)) {
1941
2245
  __compactRuntime.typeError('verifyAttestedOutput1',
1942
2246
  'argument 3',
1943
- 'circuits.compact line 69 char 1',
2247
+ 'circuits.compact line 71 char 1',
1944
2248
  'Bytes<32>',
1945
2249
  attestedOutputHash_0)
1946
2250
  }
@@ -1958,21 +2262,21 @@ export const pureCircuits = {
1958
2262
  if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 2)) {
1959
2263
  __compactRuntime.typeError('verifyAttestedOutput2',
1960
2264
  'argument 1',
1961
- 'circuits.compact line 77 char 1',
2265
+ 'circuits.compact line 79 char 1',
1962
2266
  'Bytes<2>',
1963
2267
  serializedOutput_0)
1964
2268
  }
1965
2269
  if (!(typeof(attestedOutputLength_0) === 'bigint' && attestedOutputLength_0 >= 0n && attestedOutputLength_0 <= 18446744073709551615n)) {
1966
2270
  __compactRuntime.typeError('verifyAttestedOutput2',
1967
2271
  'argument 2',
1968
- 'circuits.compact line 77 char 1',
2272
+ 'circuits.compact line 79 char 1',
1969
2273
  'Uint<0..18446744073709551616>',
1970
2274
  attestedOutputLength_0)
1971
2275
  }
1972
2276
  if (!(attestedOutputHash_0.buffer instanceof ArrayBuffer && attestedOutputHash_0.BYTES_PER_ELEMENT === 1 && attestedOutputHash_0.length === 32)) {
1973
2277
  __compactRuntime.typeError('verifyAttestedOutput2',
1974
2278
  'argument 3',
1975
- 'circuits.compact line 77 char 1',
2279
+ 'circuits.compact line 79 char 1',
1976
2280
  'Bytes<32>',
1977
2281
  attestedOutputHash_0)
1978
2282
  }
@@ -1988,7 +2292,7 @@ export const pureCircuits = {
1988
2292
  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)))) {
1989
2293
  __compactRuntime.typeError('calculateEvmType2TxParamsDigestV1_1_0_0',
1990
2294
  'argument 1',
1991
- 'circuits.compact line 90 char 1',
2295
+ 'circuits.compact line 92 char 1',
1992
2296
  '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>>>>>',
1993
2297
  txParams_0)
1994
2298
  }
@@ -2002,7 +2306,7 @@ export const pureCircuits = {
2002
2306
  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)))) {
2003
2307
  __compactRuntime.typeError('calculateEvmType2TxParamsDigestV1_2_1_2',
2004
2308
  'argument 1',
2005
- 'circuits.compact line 96 char 1',
2309
+ 'circuits.compact line 98 char 1',
2006
2310
  '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>>>>>',
2007
2311
  txParams_0)
2008
2312
  }
@@ -2016,8 +2320,8 @@ export const pureCircuits = {
2016
2320
  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 === 64 && typeof(request_0.signatureDest) === 'number' && request_0.signatureDest >= 0 && request_0.signatureDest <= 1 && request_0.params.buffer instanceof ArrayBuffer && request_0.params.BYTES_PER_ELEMENT === 1 && request_0.params.length === 64 && request_0.outputDeserializationSchema.buffer instanceof ArrayBuffer && request_0.outputDeserializationSchema.BYTES_PER_ELEMENT === 1 && request_0.outputDeserializationSchema.length === 34 && request_0.respondSerializationSchema.buffer instanceof ArrayBuffer && request_0.respondSerializationSchema.BYTES_PER_ELEMENT === 1 && request_0.respondSerializationSchema.length === 0)) {
2017
2321
  __compactRuntime.typeError('calculateEvmType2RequestIdV1_1_0_0_34',
2018
2322
  'argument 1',
2019
- 'circuits.compact line 105 char 1',
2020
- '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<64>, signatureDest: Enum<MPCDestination, unused, reserved>, params: Bytes<64>, outputDeserializationSchema: Bytes<34>, respondSerializationSchema: Bytes<0>>',
2323
+ 'circuits.compact line 107 char 1',
2324
+ 'struct SignBidirectionalEventV1<keyVersion: Uint<0..256>, sender: struct ContractAddress<bytes: Bytes<32>>, path: Bytes<32>, algo: Enum<MPCSignatureAlgorithm, ecdsa, reserved>, txParamType: Enum<TxParamType, evmType2, tron>, 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<64>, signatureDest: Enum<MPCDestination, unused, reserved>, params: Bytes<64>, outputDeserializationSchema: Bytes<34>, respondSerializationSchema: Bytes<0>>',
2021
2325
  request_0)
2022
2326
  }
2023
2327
  return _dummyContract._calculateEvmType2RequestIdV1_1_0_0_34_0(request_0);
@@ -2030,8 +2334,8 @@ export const pureCircuits = {
2030
2334
  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 === 64 && typeof(request_0.signatureDest) === 'number' && request_0.signatureDest >= 0 && request_0.signatureDest <= 1 && request_0.params.buffer instanceof ArrayBuffer && request_0.params.BYTES_PER_ELEMENT === 1 && request_0.params.length === 64 && request_0.outputDeserializationSchema.buffer instanceof ArrayBuffer && request_0.outputDeserializationSchema.BYTES_PER_ELEMENT === 1 && request_0.outputDeserializationSchema.length === 34 && request_0.respondSerializationSchema.buffer instanceof ArrayBuffer && request_0.respondSerializationSchema.BYTES_PER_ELEMENT === 1 && request_0.respondSerializationSchema.length === 0)) {
2031
2335
  __compactRuntime.typeError('calculateEvmType2RequestIdV1_2_1_2_34',
2032
2336
  'argument 1',
2033
- 'circuits.compact line 111 char 1',
2034
- '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<64>, signatureDest: Enum<MPCDestination, unused, reserved>, params: Bytes<64>, outputDeserializationSchema: Bytes<34>, respondSerializationSchema: Bytes<0>>',
2337
+ 'circuits.compact line 113 char 1',
2338
+ 'struct SignBidirectionalEventV1<keyVersion: Uint<0..256>, sender: struct ContractAddress<bytes: Bytes<32>>, path: Bytes<32>, algo: Enum<MPCSignatureAlgorithm, ecdsa, reserved>, txParamType: Enum<TxParamType, evmType2, tron>, 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<64>, signatureDest: Enum<MPCDestination, unused, reserved>, params: Bytes<64>, outputDeserializationSchema: Bytes<34>, respondSerializationSchema: Bytes<0>>',
2035
2339
  request_0)
2036
2340
  }
2037
2341
  return _dummyContract._calculateEvmType2RequestIdV1_2_1_2_34_0(request_0);
@@ -2046,21 +2350,21 @@ export const pureCircuits = {
2046
2350
  if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 0)) {
2047
2351
  __compactRuntime.typeError('verifyRespondBidirectionalEvent0',
2048
2352
  'argument 1',
2049
- 'circuits.compact line 117 char 1',
2353
+ 'circuits.compact line 119 char 1',
2050
2354
  'Bytes<0>',
2051
2355
  serializedOutput_0)
2052
2356
  }
2053
2357
  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.outputHash.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.outputHash.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.outputHash.length === 32 && 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)) {
2054
2358
  __compactRuntime.typeError('verifyRespondBidirectionalEvent0',
2055
2359
  'argument 2',
2056
- 'circuits.compact line 117 char 1',
2360
+ 'circuits.compact line 119 char 1',
2057
2361
  '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>>>',
2058
2362
  respondBidirectionalEvent_0)
2059
2363
  }
2060
2364
  if (!(__compactRuntime.isValidSecp256k1Point(mpcResponseKey_0))) {
2061
2365
  __compactRuntime.typeError('verifyRespondBidirectionalEvent0',
2062
2366
  'argument 3',
2063
- 'circuits.compact line 117 char 1',
2367
+ 'circuits.compact line 119 char 1',
2064
2368
  'Secp256k1Point',
2065
2369
  mpcResponseKey_0)
2066
2370
  }
@@ -2078,21 +2382,21 @@ export const pureCircuits = {
2078
2382
  if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 32)) {
2079
2383
  __compactRuntime.typeError('verifyRespondBidirectionalEvent32',
2080
2384
  'argument 1',
2081
- 'circuits.compact line 129 char 1',
2385
+ 'circuits.compact line 131 char 1',
2082
2386
  'Bytes<32>',
2083
2387
  serializedOutput_0)
2084
2388
  }
2085
2389
  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.outputHash.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.outputHash.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.outputHash.length === 32 && 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)) {
2086
2390
  __compactRuntime.typeError('verifyRespondBidirectionalEvent32',
2087
2391
  'argument 2',
2088
- 'circuits.compact line 129 char 1',
2392
+ 'circuits.compact line 131 char 1',
2089
2393
  '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>>>',
2090
2394
  respondBidirectionalEvent_0)
2091
2395
  }
2092
2396
  if (!(__compactRuntime.isValidSecp256k1Point(mpcResponseKey_0))) {
2093
2397
  __compactRuntime.typeError('verifyRespondBidirectionalEvent32',
2094
2398
  'argument 3',
2095
- 'circuits.compact line 129 char 1',
2399
+ 'circuits.compact line 131 char 1',
2096
2400
  'Secp256k1Point',
2097
2401
  mpcResponseKey_0)
2098
2402
  }
@@ -2108,21 +2412,79 @@ export const pureCircuits = {
2108
2412
  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 === 64 && typeof(request_0.signatureDest) === 'number' && request_0.signatureDest >= 0 && request_0.signatureDest <= 1 && request_0.params.buffer instanceof ArrayBuffer && request_0.params.BYTES_PER_ELEMENT === 1 && request_0.params.length === 64 && request_0.outputDeserializationSchema.buffer instanceof ArrayBuffer && request_0.outputDeserializationSchema.BYTES_PER_ELEMENT === 1 && request_0.outputDeserializationSchema.length === 34 && request_0.respondSerializationSchema.buffer instanceof ArrayBuffer && request_0.respondSerializationSchema.BYTES_PER_ELEMENT === 1 && request_0.respondSerializationSchema.length === 0)) {
2109
2413
  __compactRuntime.typeError('constructSignBidirectionalEventV1_1_0_0_34',
2110
2414
  'argument 1',
2111
- 'circuits.compact line 141 char 1',
2112
- '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<64>, signatureDest: Enum<MPCDestination, unused, reserved>, params: Bytes<64>, outputDeserializationSchema: Bytes<34>, respondSerializationSchema: Bytes<0>>',
2415
+ 'circuits.compact line 143 char 1',
2416
+ 'struct SignBidirectionalEventV1<keyVersion: Uint<0..256>, sender: struct ContractAddress<bytes: Bytes<32>>, path: Bytes<32>, algo: Enum<MPCSignatureAlgorithm, ecdsa, reserved>, txParamType: Enum<TxParamType, evmType2, tron>, 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<64>, signatureDest: Enum<MPCDestination, unused, reserved>, params: Bytes<64>, outputDeserializationSchema: Bytes<34>, respondSerializationSchema: Bytes<0>>',
2113
2417
  request_0)
2114
2418
  }
2115
2419
  return _dummyContract._constructSignBidirectionalEventV1_1_0_0_34_0(request_0);
2420
+ },
2421
+ calculateTronTxParamsDigestV1_1: (...args_0) => {
2422
+ if (args_0.length !== 1) {
2423
+ throw new __compactRuntime.CompactError(`calculateTronTxParamsDigestV1_1: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
2424
+ }
2425
+ const txParams_0 = args_0[0];
2426
+ if (!(typeof(txParams_0) === 'object' && txParams_0.refBlockBytes.buffer instanceof ArrayBuffer && txParams_0.refBlockBytes.BYTES_PER_ELEMENT === 1 && txParams_0.refBlockBytes.length === 2 && txParams_0.refBlockHash.buffer instanceof ArrayBuffer && txParams_0.refBlockHash.BYTES_PER_ELEMENT === 1 && txParams_0.refBlockHash.length === 8 && typeof(txParams_0.timestamp) === 'bigint' && txParams_0.timestamp >= 0n && txParams_0.timestamp <= 18446744073709551615n && typeof(txParams_0.expiration) === 'bigint' && txParams_0.expiration >= 0n && txParams_0.expiration <= 18446744073709551615n && typeof(txParams_0.feeLimit) === 'bigint' && txParams_0.feeLimit >= 0n && txParams_0.feeLimit <= 18446744073709551615n && txParams_0.contractAddress.buffer instanceof ArrayBuffer && txParams_0.contractAddress.BYTES_PER_ELEMENT === 1 && txParams_0.contractAddress.length === 21 && typeof(txParams_0.callValue) === 'bigint' && txParams_0.callValue >= 0n && txParams_0.callValue <= 18446744073709551615n && 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))) {
2427
+ __compactRuntime.typeError('calculateTronTxParamsDigestV1_1',
2428
+ 'argument 1',
2429
+ 'circuits.compact line 160 char 1',
2430
+ 'struct TronTxParams<refBlockBytes: Bytes<2>, refBlockHash: Bytes<8>, timestamp: Uint<0..18446744073709551616>, expiration: Uint<0..18446744073709551616>, feeLimit: Uint<0..18446744073709551616>, contractAddress: Bytes<21>, callValue: Uint<0..18446744073709551616>, calldata: struct Maybe<is_some: Boolean, value: struct EvmCalldata<selector: Bytes<4>, noWords: Uint<0..65536>, words: Vector<1, Bytes<32>>>>>',
2431
+ txParams_0)
2432
+ }
2433
+ return _dummyContract._calculateTronTxParamsDigestV1_1_0(txParams_0);
2434
+ },
2435
+ calculateTronTxParamsDigestV1_2: (...args_0) => {
2436
+ if (args_0.length !== 1) {
2437
+ throw new __compactRuntime.CompactError(`calculateTronTxParamsDigestV1_2: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
2438
+ }
2439
+ const txParams_0 = args_0[0];
2440
+ if (!(typeof(txParams_0) === 'object' && txParams_0.refBlockBytes.buffer instanceof ArrayBuffer && txParams_0.refBlockBytes.BYTES_PER_ELEMENT === 1 && txParams_0.refBlockBytes.length === 2 && txParams_0.refBlockHash.buffer instanceof ArrayBuffer && txParams_0.refBlockHash.BYTES_PER_ELEMENT === 1 && txParams_0.refBlockHash.length === 8 && typeof(txParams_0.timestamp) === 'bigint' && txParams_0.timestamp >= 0n && txParams_0.timestamp <= 18446744073709551615n && typeof(txParams_0.expiration) === 'bigint' && txParams_0.expiration >= 0n && txParams_0.expiration <= 18446744073709551615n && typeof(txParams_0.feeLimit) === 'bigint' && txParams_0.feeLimit >= 0n && txParams_0.feeLimit <= 18446744073709551615n && txParams_0.contractAddress.buffer instanceof ArrayBuffer && txParams_0.contractAddress.BYTES_PER_ELEMENT === 1 && txParams_0.contractAddress.length === 21 && typeof(txParams_0.callValue) === 'bigint' && txParams_0.callValue >= 0n && txParams_0.callValue <= 18446744073709551615n && 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))) {
2441
+ __compactRuntime.typeError('calculateTronTxParamsDigestV1_2',
2442
+ 'argument 1',
2443
+ 'circuits.compact line 166 char 1',
2444
+ 'struct TronTxParams<refBlockBytes: Bytes<2>, refBlockHash: Bytes<8>, timestamp: Uint<0..18446744073709551616>, expiration: Uint<0..18446744073709551616>, feeLimit: Uint<0..18446744073709551616>, contractAddress: Bytes<21>, callValue: Uint<0..18446744073709551616>, calldata: struct Maybe<is_some: Boolean, value: struct EvmCalldata<selector: Bytes<4>, noWords: Uint<0..65536>, words: Vector<2, Bytes<32>>>>>',
2445
+ txParams_0)
2446
+ }
2447
+ return _dummyContract._calculateTronTxParamsDigestV1_2_0(txParams_0);
2448
+ },
2449
+ calculateTronRequestIdV1_1_0: (...args_0) => {
2450
+ if (args_0.length !== 1) {
2451
+ throw new __compactRuntime.CompactError(`calculateTronRequestIdV1_1_0: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
2452
+ }
2453
+ const request_0 = args_0[0];
2454
+ 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' && request_0.txParams.refBlockBytes.buffer instanceof ArrayBuffer && request_0.txParams.refBlockBytes.BYTES_PER_ELEMENT === 1 && request_0.txParams.refBlockBytes.length === 2 && request_0.txParams.refBlockHash.buffer instanceof ArrayBuffer && request_0.txParams.refBlockHash.BYTES_PER_ELEMENT === 1 && request_0.txParams.refBlockHash.length === 8 && typeof(request_0.txParams.timestamp) === 'bigint' && request_0.txParams.timestamp >= 0n && request_0.txParams.timestamp <= 18446744073709551615n && typeof(request_0.txParams.expiration) === 'bigint' && request_0.txParams.expiration >= 0n && request_0.txParams.expiration <= 18446744073709551615n && typeof(request_0.txParams.feeLimit) === 'bigint' && request_0.txParams.feeLimit >= 0n && request_0.txParams.feeLimit <= 18446744073709551615n && request_0.txParams.contractAddress.buffer instanceof ArrayBuffer && request_0.txParams.contractAddress.BYTES_PER_ELEMENT === 1 && request_0.txParams.contractAddress.length === 21 && typeof(request_0.txParams.callValue) === 'bigint' && request_0.txParams.callValue >= 0n && request_0.txParams.callValue <= 18446744073709551615n && 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) && request_0.executionDest.buffer instanceof ArrayBuffer && request_0.executionDest.BYTES_PER_ELEMENT === 1 && request_0.executionDest.length === 64 && 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 === 0 && request_0.respondSerializationSchema.buffer instanceof ArrayBuffer && request_0.respondSerializationSchema.BYTES_PER_ELEMENT === 1 && request_0.respondSerializationSchema.length === 0)) {
2455
+ __compactRuntime.typeError('calculateTronRequestIdV1_1_0',
2456
+ 'argument 1',
2457
+ 'circuits.compact line 172 char 1',
2458
+ 'struct SignBidirectionalEventV1<keyVersion: Uint<0..256>, sender: struct ContractAddress<bytes: Bytes<32>>, path: Bytes<32>, algo: Enum<MPCSignatureAlgorithm, ecdsa, reserved>, txParamType: Enum<TxParamType, evmType2, tron>, txParams: struct TronTxParams<refBlockBytes: Bytes<2>, refBlockHash: Bytes<8>, timestamp: Uint<0..18446744073709551616>, expiration: Uint<0..18446744073709551616>, feeLimit: Uint<0..18446744073709551616>, contractAddress: Bytes<21>, callValue: Uint<0..18446744073709551616>, calldata: struct Maybe<is_some: Boolean, value: struct EvmCalldata<selector: Bytes<4>, noWords: Uint<0..65536>, words: Vector<1, Bytes<32>>>>>, executionDest: Bytes<64>, signatureDest: Enum<MPCDestination, unused, reserved>, params: Bytes<64>, outputDeserializationSchema: Bytes<0>, respondSerializationSchema: Bytes<0>>',
2459
+ request_0)
2460
+ }
2461
+ return _dummyContract._calculateTronRequestIdV1_1_0_0(request_0);
2462
+ },
2463
+ calculateTronRequestIdV1_2_0: (...args_0) => {
2464
+ if (args_0.length !== 1) {
2465
+ throw new __compactRuntime.CompactError(`calculateTronRequestIdV1_2_0: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
2466
+ }
2467
+ const request_0 = args_0[0];
2468
+ 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' && request_0.txParams.refBlockBytes.buffer instanceof ArrayBuffer && request_0.txParams.refBlockBytes.BYTES_PER_ELEMENT === 1 && request_0.txParams.refBlockBytes.length === 2 && request_0.txParams.refBlockHash.buffer instanceof ArrayBuffer && request_0.txParams.refBlockHash.BYTES_PER_ELEMENT === 1 && request_0.txParams.refBlockHash.length === 8 && typeof(request_0.txParams.timestamp) === 'bigint' && request_0.txParams.timestamp >= 0n && request_0.txParams.timestamp <= 18446744073709551615n && typeof(request_0.txParams.expiration) === 'bigint' && request_0.txParams.expiration >= 0n && request_0.txParams.expiration <= 18446744073709551615n && typeof(request_0.txParams.feeLimit) === 'bigint' && request_0.txParams.feeLimit >= 0n && request_0.txParams.feeLimit <= 18446744073709551615n && request_0.txParams.contractAddress.buffer instanceof ArrayBuffer && request_0.txParams.contractAddress.BYTES_PER_ELEMENT === 1 && request_0.txParams.contractAddress.length === 21 && typeof(request_0.txParams.callValue) === 'bigint' && request_0.txParams.callValue >= 0n && request_0.txParams.callValue <= 18446744073709551615n && 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) && request_0.executionDest.buffer instanceof ArrayBuffer && request_0.executionDest.BYTES_PER_ELEMENT === 1 && request_0.executionDest.length === 64 && 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 === 0 && request_0.respondSerializationSchema.buffer instanceof ArrayBuffer && request_0.respondSerializationSchema.BYTES_PER_ELEMENT === 1 && request_0.respondSerializationSchema.length === 0)) {
2469
+ __compactRuntime.typeError('calculateTronRequestIdV1_2_0',
2470
+ 'argument 1',
2471
+ 'circuits.compact line 178 char 1',
2472
+ 'struct SignBidirectionalEventV1<keyVersion: Uint<0..256>, sender: struct ContractAddress<bytes: Bytes<32>>, path: Bytes<32>, algo: Enum<MPCSignatureAlgorithm, ecdsa, reserved>, txParamType: Enum<TxParamType, evmType2, tron>, txParams: struct TronTxParams<refBlockBytes: Bytes<2>, refBlockHash: Bytes<8>, timestamp: Uint<0..18446744073709551616>, expiration: Uint<0..18446744073709551616>, feeLimit: Uint<0..18446744073709551616>, contractAddress: Bytes<21>, callValue: Uint<0..18446744073709551616>, calldata: struct Maybe<is_some: Boolean, value: struct EvmCalldata<selector: Bytes<4>, noWords: Uint<0..65536>, words: Vector<2, Bytes<32>>>>>, executionDest: Bytes<64>, signatureDest: Enum<MPCDestination, unused, reserved>, params: Bytes<64>, outputDeserializationSchema: Bytes<0>, respondSerializationSchema: Bytes<0>>',
2473
+ request_0)
2474
+ }
2475
+ return _dummyContract._calculateTronRequestIdV1_2_0_0(request_0);
2116
2476
  }
2117
2477
  };
2118
2478
  export const expectedVk = {};
2119
2479
 
2120
2480
  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}}},
2481
+ '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', 'tron']}}, {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
2482
  '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
2483
  '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
2484
  '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
2485
  'ethereumCaip2Id': {pure: true, provable: false, argumentTypes: [], resultType: {tag: 'Bytes', length: 64}},
2486
+ 'tronCaip2Id': {pure: true, provable: false, argumentTypes: [], resultType: {tag: 'Bytes', length: 64}},
2487
+ 'tronAddress': {pure: true, provable: false, argumentTypes: [{tag: 'Bytes', length: 20}], resultType: {tag: 'Bytes', length: 21}},
2126
2488
  'evmAddressAbiWord': {pure: true, provable: false, argumentTypes: [{tag: 'Bytes', length: 20}], resultType: {tag: 'Bytes', length: 32}},
2127
2489
  'numericAbiWord': {pure: true, provable: false, argumentTypes: [{tag: 'Uint', maxval: '340282366920938463463374607431768211455'}], resultType: {tag: 'Bytes', length: 32}},
2128
2490
  'boolAbiWord': {pure: true, provable: false, argumentTypes: [{tag: 'Boolean'}], resultType: {tag: 'Bytes', length: 32}},
@@ -2138,11 +2500,15 @@ export const circuitSignatures = {
2138
2500
  'verifyAttestedOutput2': {pure: true, provable: false, argumentTypes: [{tag: 'Bytes', length: 2}, {tag: 'Uint', maxval: '18446744073709551615'}, {tag: 'Bytes', length: 32}], resultType: {tag: 'Boolean'}},
2139
2501
  '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
2502
  '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}}},
2503
+ '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', 'tron']}}, {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}}},
2504
+ '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', 'tron']}}, {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
2505
  '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
2506
  '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}}]}},
2507
+ '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', 'tron']}}, {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', 'tron']}}, {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}}]}},
2508
+ 'calculateTronTxParamsDigestV1_1': {pure: true, provable: false, argumentTypes: [{tag: 'Struct', name: 'TronTxParams', elements: [{name: 'refBlockBytes', type: {tag: 'Bytes', length: 2}}, {name: 'refBlockHash', type: {tag: 'Bytes', length: 8}}, {name: 'timestamp', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'expiration', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'feeLimit', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'contractAddress', type: {tag: 'Bytes', length: 21}}, {name: 'callValue', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {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}}}]}}]}}]}], resultType: {tag: 'Bytes', length: 32}},
2509
+ 'calculateTronTxParamsDigestV1_2': {pure: true, provable: false, argumentTypes: [{tag: 'Struct', name: 'TronTxParams', elements: [{name: 'refBlockBytes', type: {tag: 'Bytes', length: 2}}, {name: 'refBlockHash', type: {tag: 'Bytes', length: 8}}, {name: 'timestamp', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'expiration', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'feeLimit', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'contractAddress', type: {tag: 'Bytes', length: 21}}, {name: 'callValue', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {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}}}]}}]}}]}], resultType: {tag: 'Bytes', length: 32}},
2510
+ 'calculateTronRequestIdV1_1_0': {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', 'tron']}}, {name: 'txParams', type: {tag: 'Struct', name: 'TronTxParams', elements: [{name: 'refBlockBytes', type: {tag: 'Bytes', length: 2}}, {name: 'refBlockHash', type: {tag: 'Bytes', length: 8}}, {name: 'timestamp', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'expiration', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'feeLimit', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'contractAddress', type: {tag: 'Bytes', length: 21}}, {name: 'callValue', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {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: '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: 0}}, {name: 'respondSerializationSchema', type: {tag: 'Bytes', length: 0}}]}], resultType: {tag: 'Alias', name: 'RequestId', type: {tag: 'Bytes', length: 32}}},
2511
+ 'calculateTronRequestIdV1_2_0': {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', 'tron']}}, {name: 'txParams', type: {tag: 'Struct', name: 'TronTxParams', elements: [{name: 'refBlockBytes', type: {tag: 'Bytes', length: 2}}, {name: 'refBlockHash', type: {tag: 'Bytes', length: 8}}, {name: 'timestamp', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'expiration', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'feeLimit', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'contractAddress', type: {tag: 'Bytes', length: 21}}, {name: 'callValue', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {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: '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: 0}}, {name: 'respondSerializationSchema', type: {tag: 'Bytes', length: 0}}]}], resultType: {tag: 'Alias', name: 'RequestId', type: {tag: 'Bytes', length: 32}}},
2146
2512
  };
2147
2513
 
2148
2514
  export const declaredInterfaces = {};