@sig-net/midnight 0.27.0-rc.2 → 0.27.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/abi-serde.d.ts +27 -0
- package/dist/abi-serde.d.ts.map +1 -1
- package/dist/abi-serde.js +101 -0
- package/dist/abi-serde.js.map +1 -1
- package/dist/constants.d.ts +0 -3
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +15 -34
- package/dist/constants.js.map +1 -1
- package/dist/managed/compiler/contract-info.json +444 -0
- package/dist/managed/compiler/contract-manifest.json +8 -8
- package/dist/managed/contract/index.d.ts +102 -0
- package/dist/managed/contract/index.js +298 -178
- package/dist/managed/contract/index.js.map +1 -1
- package/dist/mpc-output-cache.d.ts +2 -3
- package/dist/mpc-output-cache.d.ts.map +1 -1
- package/dist/mpc-output-cache.js +1 -2
- package/dist/mpc-output-cache.js.map +1 -1
- package/dist/signature-response-verification.d.ts +17 -14
- package/dist/signature-response-verification.d.ts.map +1 -1
- package/dist/signature-response-verification.js +53 -34
- package/dist/signature-response-verification.js.map +1 -1
- package/dist/signet-contract-events.js +1 -1
- package/dist/signet-contract-events.js.map +1 -1
- package/dist/signet-evtype2tx-requests.d.ts +1 -1
- package/dist/signet-evtype2tx-requests.js +1 -1
- package/dist/signet-request-response-reader.d.ts +33 -31
- package/dist/signet-request-response-reader.d.ts.map +1 -1
- package/dist/signet-request-response-reader.js +76 -75
- package/dist/signet-request-response-reader.js.map +1 -1
- package/dist/tron-transactions.d.ts +8 -1
- package/dist/tron-transactions.d.ts.map +1 -1
- package/dist/tron-transactions.js +17 -3
- package/dist/tron-transactions.js.map +1 -1
- package/package.json +2 -2
- package/src/circuits.compact +12 -0
|
@@ -123,11 +123,13 @@ const _descriptor_16 = new __compactRuntime.CompactTypeBytes(64);
|
|
|
123
123
|
|
|
124
124
|
const _descriptor_17 = new __compactRuntime.CompactTypeEnum(1, 1);
|
|
125
125
|
|
|
126
|
-
const _descriptor_18 = new __compactRuntime.CompactTypeBytes(
|
|
126
|
+
const _descriptor_18 = new __compactRuntime.CompactTypeBytes(34);
|
|
127
|
+
|
|
128
|
+
const _descriptor_19 = new __compactRuntime.CompactTypeBytes(0);
|
|
127
129
|
|
|
128
130
|
class _SignBidirectionalEventV1_0 {
|
|
129
131
|
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(
|
|
132
|
+
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_19.alignment()))))))))));
|
|
131
133
|
}
|
|
132
134
|
fromValue(value_0) {
|
|
133
135
|
return {
|
|
@@ -141,56 +143,56 @@ class _SignBidirectionalEventV1_0 {
|
|
|
141
143
|
signatureDest: _descriptor_17.fromValue(value_0),
|
|
142
144
|
params: _descriptor_16.fromValue(value_0),
|
|
143
145
|
outputDeserializationSchema: _descriptor_18.fromValue(value_0),
|
|
144
|
-
respondSerializationSchema:
|
|
146
|
+
respondSerializationSchema: _descriptor_19.fromValue(value_0)
|
|
145
147
|
}
|
|
146
148
|
}
|
|
147
149
|
toValue(value_0) {
|
|
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(
|
|
150
|
+
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_19.toValue(value_0.respondSerializationSchema)))))))))));
|
|
149
151
|
}
|
|
150
152
|
}
|
|
151
153
|
|
|
152
|
-
const
|
|
154
|
+
const _descriptor_20 = new _SignBidirectionalEventV1_0();
|
|
153
155
|
|
|
154
|
-
const
|
|
156
|
+
const _descriptor_21 = new __compactRuntime.CompactTypeVector(2, _descriptor_1);
|
|
155
157
|
|
|
156
158
|
class _EvmCalldata_1 {
|
|
157
159
|
alignment() {
|
|
158
|
-
return _descriptor_10.alignment().concat(_descriptor_11.alignment().concat(
|
|
160
|
+
return _descriptor_10.alignment().concat(_descriptor_11.alignment().concat(_descriptor_21.alignment()));
|
|
159
161
|
}
|
|
160
162
|
fromValue(value_0) {
|
|
161
163
|
return {
|
|
162
164
|
selector: _descriptor_10.fromValue(value_0),
|
|
163
165
|
noWords: _descriptor_11.fromValue(value_0),
|
|
164
|
-
words:
|
|
166
|
+
words: _descriptor_21.fromValue(value_0)
|
|
165
167
|
}
|
|
166
168
|
}
|
|
167
169
|
toValue(value_0) {
|
|
168
|
-
return _descriptor_10.toValue(value_0.selector).concat(_descriptor_11.toValue(value_0.noWords).concat(
|
|
170
|
+
return _descriptor_10.toValue(value_0.selector).concat(_descriptor_11.toValue(value_0.noWords).concat(_descriptor_21.toValue(value_0.words)));
|
|
169
171
|
}
|
|
170
172
|
}
|
|
171
173
|
|
|
172
|
-
const
|
|
174
|
+
const _descriptor_22 = new _EvmCalldata_1();
|
|
173
175
|
|
|
174
176
|
class _Maybe_1 {
|
|
175
177
|
alignment() {
|
|
176
|
-
return _descriptor_9.alignment().concat(
|
|
178
|
+
return _descriptor_9.alignment().concat(_descriptor_22.alignment());
|
|
177
179
|
}
|
|
178
180
|
fromValue(value_0) {
|
|
179
181
|
return {
|
|
180
182
|
is_some: _descriptor_9.fromValue(value_0),
|
|
181
|
-
value:
|
|
183
|
+
value: _descriptor_22.fromValue(value_0)
|
|
182
184
|
}
|
|
183
185
|
}
|
|
184
186
|
toValue(value_0) {
|
|
185
|
-
return _descriptor_9.toValue(value_0.is_some).concat(
|
|
187
|
+
return _descriptor_9.toValue(value_0.is_some).concat(_descriptor_22.toValue(value_0.value));
|
|
186
188
|
}
|
|
187
189
|
}
|
|
188
190
|
|
|
189
|
-
const
|
|
191
|
+
const _descriptor_23 = new _Maybe_1();
|
|
190
192
|
|
|
191
193
|
class _TronTxParams_1 {
|
|
192
194
|
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(
|
|
195
|
+
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_23.alignment())))))));
|
|
194
196
|
}
|
|
195
197
|
fromValue(value_0) {
|
|
196
198
|
return {
|
|
@@ -201,19 +203,19 @@ class _TronTxParams_1 {
|
|
|
201
203
|
feeLimit: _descriptor_7.fromValue(value_0),
|
|
202
204
|
contractAddress: _descriptor_8.fromValue(value_0),
|
|
203
205
|
callValue: _descriptor_7.fromValue(value_0),
|
|
204
|
-
calldata:
|
|
206
|
+
calldata: _descriptor_23.fromValue(value_0)
|
|
205
207
|
}
|
|
206
208
|
}
|
|
207
209
|
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(
|
|
210
|
+
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_23.toValue(value_0.calldata))))))));
|
|
209
211
|
}
|
|
210
212
|
}
|
|
211
213
|
|
|
212
|
-
const
|
|
214
|
+
const _descriptor_24 = new _TronTxParams_1();
|
|
213
215
|
|
|
214
216
|
class _SignBidirectionalEventV1_1 {
|
|
215
217
|
alignment() {
|
|
216
|
-
return _descriptor_0.alignment().concat(_descriptor_2.alignment().concat(_descriptor_1.alignment().concat(_descriptor_3.alignment().concat(_descriptor_4.alignment().concat(
|
|
218
|
+
return _descriptor_0.alignment().concat(_descriptor_2.alignment().concat(_descriptor_1.alignment().concat(_descriptor_3.alignment().concat(_descriptor_4.alignment().concat(_descriptor_24.alignment().concat(_descriptor_16.alignment().concat(_descriptor_17.alignment().concat(_descriptor_16.alignment().concat(_descriptor_18.alignment().concat(_descriptor_19.alignment()))))))))));
|
|
217
219
|
}
|
|
218
220
|
fromValue(value_0) {
|
|
219
221
|
return {
|
|
@@ -222,22 +224,74 @@ class _SignBidirectionalEventV1_1 {
|
|
|
222
224
|
path: _descriptor_1.fromValue(value_0),
|
|
223
225
|
algo: _descriptor_3.fromValue(value_0),
|
|
224
226
|
txParamType: _descriptor_4.fromValue(value_0),
|
|
225
|
-
txParams:
|
|
227
|
+
txParams: _descriptor_24.fromValue(value_0),
|
|
226
228
|
executionDest: _descriptor_16.fromValue(value_0),
|
|
227
229
|
signatureDest: _descriptor_17.fromValue(value_0),
|
|
228
230
|
params: _descriptor_16.fromValue(value_0),
|
|
229
231
|
outputDeserializationSchema: _descriptor_18.fromValue(value_0),
|
|
230
|
-
respondSerializationSchema:
|
|
232
|
+
respondSerializationSchema: _descriptor_19.fromValue(value_0)
|
|
231
233
|
}
|
|
232
234
|
}
|
|
233
235
|
toValue(value_0) {
|
|
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(
|
|
236
|
+
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_24.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_19.toValue(value_0.respondSerializationSchema)))))))))));
|
|
235
237
|
}
|
|
236
238
|
}
|
|
237
239
|
|
|
238
|
-
const
|
|
240
|
+
const _descriptor_25 = new _SignBidirectionalEventV1_1();
|
|
241
|
+
|
|
242
|
+
class _SignBidirectionalEventV1_2 {
|
|
243
|
+
alignment() {
|
|
244
|
+
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_19.alignment().concat(_descriptor_19.alignment()))))))))));
|
|
245
|
+
}
|
|
246
|
+
fromValue(value_0) {
|
|
247
|
+
return {
|
|
248
|
+
keyVersion: _descriptor_0.fromValue(value_0),
|
|
249
|
+
sender: _descriptor_2.fromValue(value_0),
|
|
250
|
+
path: _descriptor_1.fromValue(value_0),
|
|
251
|
+
algo: _descriptor_3.fromValue(value_0),
|
|
252
|
+
txParamType: _descriptor_4.fromValue(value_0),
|
|
253
|
+
txParams: _descriptor_15.fromValue(value_0),
|
|
254
|
+
executionDest: _descriptor_16.fromValue(value_0),
|
|
255
|
+
signatureDest: _descriptor_17.fromValue(value_0),
|
|
256
|
+
params: _descriptor_16.fromValue(value_0),
|
|
257
|
+
outputDeserializationSchema: _descriptor_19.fromValue(value_0),
|
|
258
|
+
respondSerializationSchema: _descriptor_19.fromValue(value_0)
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
toValue(value_0) {
|
|
262
|
+
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_19.toValue(value_0.outputDeserializationSchema).concat(_descriptor_19.toValue(value_0.respondSerializationSchema)))))))))));
|
|
263
|
+
}
|
|
264
|
+
}
|
|
239
265
|
|
|
240
|
-
const
|
|
266
|
+
const _descriptor_26 = new _SignBidirectionalEventV1_2();
|
|
267
|
+
|
|
268
|
+
class _SignBidirectionalEventV1_3 {
|
|
269
|
+
alignment() {
|
|
270
|
+
return _descriptor_0.alignment().concat(_descriptor_2.alignment().concat(_descriptor_1.alignment().concat(_descriptor_3.alignment().concat(_descriptor_4.alignment().concat(_descriptor_24.alignment().concat(_descriptor_16.alignment().concat(_descriptor_17.alignment().concat(_descriptor_16.alignment().concat(_descriptor_19.alignment().concat(_descriptor_19.alignment()))))))))));
|
|
271
|
+
}
|
|
272
|
+
fromValue(value_0) {
|
|
273
|
+
return {
|
|
274
|
+
keyVersion: _descriptor_0.fromValue(value_0),
|
|
275
|
+
sender: _descriptor_2.fromValue(value_0),
|
|
276
|
+
path: _descriptor_1.fromValue(value_0),
|
|
277
|
+
algo: _descriptor_3.fromValue(value_0),
|
|
278
|
+
txParamType: _descriptor_4.fromValue(value_0),
|
|
279
|
+
txParams: _descriptor_24.fromValue(value_0),
|
|
280
|
+
executionDest: _descriptor_16.fromValue(value_0),
|
|
281
|
+
signatureDest: _descriptor_17.fromValue(value_0),
|
|
282
|
+
params: _descriptor_16.fromValue(value_0),
|
|
283
|
+
outputDeserializationSchema: _descriptor_19.fromValue(value_0),
|
|
284
|
+
respondSerializationSchema: _descriptor_19.fromValue(value_0)
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
toValue(value_0) {
|
|
288
|
+
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_24.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_19.toValue(value_0.outputDeserializationSchema).concat(_descriptor_19.toValue(value_0.respondSerializationSchema)))))))))));
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
const _descriptor_27 = new _SignBidirectionalEventV1_3();
|
|
293
|
+
|
|
294
|
+
const _descriptor_28 = new __compactRuntime.CompactTypeEnum(2, 1);
|
|
241
295
|
|
|
242
296
|
class _AffinePoint_0 {
|
|
243
297
|
alignment() {
|
|
@@ -254,106 +308,104 @@ class _AffinePoint_0 {
|
|
|
254
308
|
}
|
|
255
309
|
}
|
|
256
310
|
|
|
257
|
-
const
|
|
311
|
+
const _descriptor_29 = new _AffinePoint_0();
|
|
258
312
|
|
|
259
313
|
class _Signature_0 {
|
|
260
314
|
alignment() {
|
|
261
|
-
return
|
|
315
|
+
return _descriptor_29.alignment().concat(_descriptor_1.alignment().concat(_descriptor_0.alignment()));
|
|
262
316
|
}
|
|
263
317
|
fromValue(value_0) {
|
|
264
318
|
return {
|
|
265
|
-
bigR:
|
|
319
|
+
bigR: _descriptor_29.fromValue(value_0),
|
|
266
320
|
s: _descriptor_1.fromValue(value_0),
|
|
267
321
|
recoveryId: _descriptor_0.fromValue(value_0)
|
|
268
322
|
}
|
|
269
323
|
}
|
|
270
324
|
toValue(value_0) {
|
|
271
|
-
return
|
|
325
|
+
return _descriptor_29.toValue(value_0.bigR).concat(_descriptor_1.toValue(value_0.s).concat(_descriptor_0.toValue(value_0.recoveryId)));
|
|
272
326
|
}
|
|
273
327
|
}
|
|
274
328
|
|
|
275
|
-
const
|
|
329
|
+
const _descriptor_30 = new _Signature_0();
|
|
276
330
|
|
|
277
331
|
class _RespondBidirectionalEventV1_0 {
|
|
278
332
|
alignment() {
|
|
279
|
-
return _descriptor_1.alignment().concat(_descriptor_7.alignment().concat(
|
|
333
|
+
return _descriptor_1.alignment().concat(_descriptor_7.alignment().concat(_descriptor_28.alignment().concat(_descriptor_7.alignment().concat(_descriptor_1.alignment().concat(_descriptor_1.alignment().concat(_descriptor_30.alignment()))))));
|
|
280
334
|
}
|
|
281
335
|
fromValue(value_0) {
|
|
282
336
|
return {
|
|
283
337
|
requestId: _descriptor_1.fromValue(value_0),
|
|
284
338
|
blockHeight: _descriptor_7.fromValue(value_0),
|
|
285
|
-
outputKind:
|
|
339
|
+
outputKind: _descriptor_28.fromValue(value_0),
|
|
286
340
|
serializedOutputLength: _descriptor_7.fromValue(value_0),
|
|
287
341
|
outputHash: _descriptor_1.fromValue(value_0),
|
|
288
342
|
digest: _descriptor_1.fromValue(value_0),
|
|
289
|
-
signature:
|
|
343
|
+
signature: _descriptor_30.fromValue(value_0)
|
|
290
344
|
}
|
|
291
345
|
}
|
|
292
346
|
toValue(value_0) {
|
|
293
|
-
return _descriptor_1.toValue(value_0.requestId).concat(_descriptor_7.toValue(value_0.blockHeight).concat(
|
|
347
|
+
return _descriptor_1.toValue(value_0.requestId).concat(_descriptor_7.toValue(value_0.blockHeight).concat(_descriptor_28.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_30.toValue(value_0.signature)))))));
|
|
294
348
|
}
|
|
295
349
|
}
|
|
296
350
|
|
|
297
|
-
const
|
|
351
|
+
const _descriptor_31 = new _RespondBidirectionalEventV1_0();
|
|
298
352
|
|
|
299
|
-
const
|
|
353
|
+
const _descriptor_32 = __compactRuntime.CompactTypeSecp256k1Point;
|
|
300
354
|
|
|
301
|
-
const
|
|
355
|
+
const _descriptor_33 = new __compactRuntime.CompactTypeUnsignedInteger(340282366920938463463374607431768211455n, 16);
|
|
302
356
|
|
|
303
|
-
const
|
|
357
|
+
const _descriptor_34 = new __compactRuntime.CompactTypeBytes(20);
|
|
304
358
|
|
|
305
|
-
const
|
|
359
|
+
const _descriptor_35 = new __compactRuntime.CompactTypeVector(0, _descriptor_1);
|
|
306
360
|
|
|
307
361
|
class _EvmAccessListEntry_0 {
|
|
308
362
|
alignment() {
|
|
309
|
-
return
|
|
363
|
+
return _descriptor_34.alignment().concat(_descriptor_0.alignment().concat(_descriptor_35.alignment()));
|
|
310
364
|
}
|
|
311
365
|
fromValue(value_0) {
|
|
312
366
|
return {
|
|
313
|
-
address:
|
|
367
|
+
address: _descriptor_34.fromValue(value_0),
|
|
314
368
|
storageKeyCount: _descriptor_0.fromValue(value_0),
|
|
315
|
-
storageKeys:
|
|
369
|
+
storageKeys: _descriptor_35.fromValue(value_0)
|
|
316
370
|
}
|
|
317
371
|
}
|
|
318
372
|
toValue(value_0) {
|
|
319
|
-
return
|
|
373
|
+
return _descriptor_34.toValue(value_0.address).concat(_descriptor_0.toValue(value_0.storageKeyCount).concat(_descriptor_35.toValue(value_0.storageKeys)));
|
|
320
374
|
}
|
|
321
375
|
}
|
|
322
376
|
|
|
323
|
-
const
|
|
377
|
+
const _descriptor_36 = new _EvmAccessListEntry_0();
|
|
324
378
|
|
|
325
|
-
const
|
|
379
|
+
const _descriptor_37 = new __compactRuntime.CompactTypeVector(0, _descriptor_36);
|
|
326
380
|
|
|
327
381
|
class _EvmType2TxParams_0 {
|
|
328
382
|
alignment() {
|
|
329
|
-
return _descriptor_7.alignment().concat(_descriptor_7.alignment().concat(
|
|
383
|
+
return _descriptor_7.alignment().concat(_descriptor_7.alignment().concat(_descriptor_33.alignment().concat(_descriptor_33.alignment().concat(_descriptor_7.alignment().concat(_descriptor_34.alignment().concat(_descriptor_33.alignment().concat(_descriptor_14.alignment().concat(_descriptor_0.alignment().concat(_descriptor_37.alignment())))))))));
|
|
330
384
|
}
|
|
331
385
|
fromValue(value_0) {
|
|
332
386
|
return {
|
|
333
387
|
chainId: _descriptor_7.fromValue(value_0),
|
|
334
388
|
nonce: _descriptor_7.fromValue(value_0),
|
|
335
|
-
maxPriorityFeePerGas:
|
|
336
|
-
maxFeePerGas:
|
|
389
|
+
maxPriorityFeePerGas: _descriptor_33.fromValue(value_0),
|
|
390
|
+
maxFeePerGas: _descriptor_33.fromValue(value_0),
|
|
337
391
|
gasLimit: _descriptor_7.fromValue(value_0),
|
|
338
|
-
to:
|
|
339
|
-
value:
|
|
392
|
+
to: _descriptor_34.fromValue(value_0),
|
|
393
|
+
value: _descriptor_33.fromValue(value_0),
|
|
340
394
|
calldata: _descriptor_14.fromValue(value_0),
|
|
341
395
|
accessListEntryCount: _descriptor_0.fromValue(value_0),
|
|
342
|
-
accessList:
|
|
396
|
+
accessList: _descriptor_37.fromValue(value_0)
|
|
343
397
|
}
|
|
344
398
|
}
|
|
345
399
|
toValue(value_0) {
|
|
346
|
-
return _descriptor_7.toValue(value_0.chainId).concat(_descriptor_7.toValue(value_0.nonce).concat(
|
|
400
|
+
return _descriptor_7.toValue(value_0.chainId).concat(_descriptor_7.toValue(value_0.nonce).concat(_descriptor_33.toValue(value_0.maxPriorityFeePerGas).concat(_descriptor_33.toValue(value_0.maxFeePerGas).concat(_descriptor_7.toValue(value_0.gasLimit).concat(_descriptor_34.toValue(value_0.to).concat(_descriptor_33.toValue(value_0.value).concat(_descriptor_14.toValue(value_0.calldata).concat(_descriptor_0.toValue(value_0.accessListEntryCount).concat(_descriptor_37.toValue(value_0.accessList))))))))));
|
|
347
401
|
}
|
|
348
402
|
}
|
|
349
403
|
|
|
350
|
-
const
|
|
404
|
+
const _descriptor_38 = new _EvmType2TxParams_0();
|
|
351
405
|
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
class _SignBidirectionalEventV1_2 {
|
|
406
|
+
class _SignBidirectionalEventV1_4 {
|
|
355
407
|
alignment() {
|
|
356
|
-
return _descriptor_0.alignment().concat(_descriptor_2.alignment().concat(_descriptor_1.alignment().concat(_descriptor_3.alignment().concat(_descriptor_4.alignment().concat(
|
|
408
|
+
return _descriptor_0.alignment().concat(_descriptor_2.alignment().concat(_descriptor_1.alignment().concat(_descriptor_3.alignment().concat(_descriptor_4.alignment().concat(_descriptor_38.alignment().concat(_descriptor_16.alignment().concat(_descriptor_17.alignment().concat(_descriptor_16.alignment().concat(_descriptor_18.alignment().concat(_descriptor_19.alignment()))))))))));
|
|
357
409
|
}
|
|
358
410
|
fromValue(value_0) {
|
|
359
411
|
return {
|
|
@@ -362,69 +414,69 @@ class _SignBidirectionalEventV1_2 {
|
|
|
362
414
|
path: _descriptor_1.fromValue(value_0),
|
|
363
415
|
algo: _descriptor_3.fromValue(value_0),
|
|
364
416
|
txParamType: _descriptor_4.fromValue(value_0),
|
|
365
|
-
txParams:
|
|
417
|
+
txParams: _descriptor_38.fromValue(value_0),
|
|
366
418
|
executionDest: _descriptor_16.fromValue(value_0),
|
|
367
419
|
signatureDest: _descriptor_17.fromValue(value_0),
|
|
368
420
|
params: _descriptor_16.fromValue(value_0),
|
|
369
|
-
outputDeserializationSchema:
|
|
370
|
-
respondSerializationSchema:
|
|
421
|
+
outputDeserializationSchema: _descriptor_18.fromValue(value_0),
|
|
422
|
+
respondSerializationSchema: _descriptor_19.fromValue(value_0)
|
|
371
423
|
}
|
|
372
424
|
}
|
|
373
425
|
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(
|
|
426
|
+
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_38.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_19.toValue(value_0.respondSerializationSchema)))))))))));
|
|
375
427
|
}
|
|
376
428
|
}
|
|
377
429
|
|
|
378
|
-
const
|
|
430
|
+
const _descriptor_39 = new _SignBidirectionalEventV1_4();
|
|
379
431
|
|
|
380
432
|
class _EvmAccessListEntry_1 {
|
|
381
433
|
alignment() {
|
|
382
|
-
return
|
|
434
|
+
return _descriptor_34.alignment().concat(_descriptor_0.alignment().concat(_descriptor_21.alignment()));
|
|
383
435
|
}
|
|
384
436
|
fromValue(value_0) {
|
|
385
437
|
return {
|
|
386
|
-
address:
|
|
438
|
+
address: _descriptor_34.fromValue(value_0),
|
|
387
439
|
storageKeyCount: _descriptor_0.fromValue(value_0),
|
|
388
|
-
storageKeys:
|
|
440
|
+
storageKeys: _descriptor_21.fromValue(value_0)
|
|
389
441
|
}
|
|
390
442
|
}
|
|
391
443
|
toValue(value_0) {
|
|
392
|
-
return
|
|
444
|
+
return _descriptor_34.toValue(value_0.address).concat(_descriptor_0.toValue(value_0.storageKeyCount).concat(_descriptor_21.toValue(value_0.storageKeys)));
|
|
393
445
|
}
|
|
394
446
|
}
|
|
395
447
|
|
|
396
|
-
const
|
|
448
|
+
const _descriptor_40 = new _EvmAccessListEntry_1();
|
|
397
449
|
|
|
398
|
-
const
|
|
450
|
+
const _descriptor_41 = new __compactRuntime.CompactTypeVector(1, _descriptor_40);
|
|
399
451
|
|
|
400
452
|
class _EvmType2TxParams_1 {
|
|
401
453
|
alignment() {
|
|
402
|
-
return _descriptor_7.alignment().concat(_descriptor_7.alignment().concat(
|
|
454
|
+
return _descriptor_7.alignment().concat(_descriptor_7.alignment().concat(_descriptor_33.alignment().concat(_descriptor_33.alignment().concat(_descriptor_7.alignment().concat(_descriptor_34.alignment().concat(_descriptor_33.alignment().concat(_descriptor_23.alignment().concat(_descriptor_0.alignment().concat(_descriptor_41.alignment())))))))));
|
|
403
455
|
}
|
|
404
456
|
fromValue(value_0) {
|
|
405
457
|
return {
|
|
406
458
|
chainId: _descriptor_7.fromValue(value_0),
|
|
407
459
|
nonce: _descriptor_7.fromValue(value_0),
|
|
408
|
-
maxPriorityFeePerGas:
|
|
409
|
-
maxFeePerGas:
|
|
460
|
+
maxPriorityFeePerGas: _descriptor_33.fromValue(value_0),
|
|
461
|
+
maxFeePerGas: _descriptor_33.fromValue(value_0),
|
|
410
462
|
gasLimit: _descriptor_7.fromValue(value_0),
|
|
411
|
-
to:
|
|
412
|
-
value:
|
|
413
|
-
calldata:
|
|
463
|
+
to: _descriptor_34.fromValue(value_0),
|
|
464
|
+
value: _descriptor_33.fromValue(value_0),
|
|
465
|
+
calldata: _descriptor_23.fromValue(value_0),
|
|
414
466
|
accessListEntryCount: _descriptor_0.fromValue(value_0),
|
|
415
|
-
accessList:
|
|
467
|
+
accessList: _descriptor_41.fromValue(value_0)
|
|
416
468
|
}
|
|
417
469
|
}
|
|
418
470
|
toValue(value_0) {
|
|
419
|
-
return _descriptor_7.toValue(value_0.chainId).concat(_descriptor_7.toValue(value_0.nonce).concat(
|
|
471
|
+
return _descriptor_7.toValue(value_0.chainId).concat(_descriptor_7.toValue(value_0.nonce).concat(_descriptor_33.toValue(value_0.maxPriorityFeePerGas).concat(_descriptor_33.toValue(value_0.maxFeePerGas).concat(_descriptor_7.toValue(value_0.gasLimit).concat(_descriptor_34.toValue(value_0.to).concat(_descriptor_33.toValue(value_0.value).concat(_descriptor_23.toValue(value_0.calldata).concat(_descriptor_0.toValue(value_0.accessListEntryCount).concat(_descriptor_41.toValue(value_0.accessList))))))))));
|
|
420
472
|
}
|
|
421
473
|
}
|
|
422
474
|
|
|
423
|
-
const
|
|
475
|
+
const _descriptor_42 = new _EvmType2TxParams_1();
|
|
424
476
|
|
|
425
|
-
class
|
|
477
|
+
class _SignBidirectionalEventV1_5 {
|
|
426
478
|
alignment() {
|
|
427
|
-
return _descriptor_0.alignment().concat(_descriptor_2.alignment().concat(_descriptor_1.alignment().concat(_descriptor_3.alignment().concat(_descriptor_4.alignment().concat(
|
|
479
|
+
return _descriptor_0.alignment().concat(_descriptor_2.alignment().concat(_descriptor_1.alignment().concat(_descriptor_3.alignment().concat(_descriptor_4.alignment().concat(_descriptor_42.alignment().concat(_descriptor_16.alignment().concat(_descriptor_17.alignment().concat(_descriptor_16.alignment().concat(_descriptor_18.alignment().concat(_descriptor_19.alignment()))))))))));
|
|
428
480
|
}
|
|
429
481
|
fromValue(value_0) {
|
|
430
482
|
return {
|
|
@@ -433,24 +485,24 @@ class _SignBidirectionalEventV1_3 {
|
|
|
433
485
|
path: _descriptor_1.fromValue(value_0),
|
|
434
486
|
algo: _descriptor_3.fromValue(value_0),
|
|
435
487
|
txParamType: _descriptor_4.fromValue(value_0),
|
|
436
|
-
txParams:
|
|
488
|
+
txParams: _descriptor_42.fromValue(value_0),
|
|
437
489
|
executionDest: _descriptor_16.fromValue(value_0),
|
|
438
490
|
signatureDest: _descriptor_17.fromValue(value_0),
|
|
439
491
|
params: _descriptor_16.fromValue(value_0),
|
|
440
|
-
outputDeserializationSchema:
|
|
441
|
-
respondSerializationSchema:
|
|
492
|
+
outputDeserializationSchema: _descriptor_18.fromValue(value_0),
|
|
493
|
+
respondSerializationSchema: _descriptor_19.fromValue(value_0)
|
|
442
494
|
}
|
|
443
495
|
}
|
|
444
496
|
toValue(value_0) {
|
|
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(
|
|
497
|
+
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_42.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_19.toValue(value_0.respondSerializationSchema)))))))))));
|
|
446
498
|
}
|
|
447
499
|
}
|
|
448
500
|
|
|
449
|
-
const
|
|
501
|
+
const _descriptor_43 = new _SignBidirectionalEventV1_5();
|
|
450
502
|
|
|
451
|
-
const
|
|
503
|
+
const _descriptor_44 = new __compactRuntime.CompactTypeBytes(100);
|
|
452
504
|
|
|
453
|
-
const
|
|
505
|
+
const _descriptor_45 = new __compactRuntime.CompactTypeBytes(1);
|
|
454
506
|
|
|
455
507
|
class _RequestIdPreimageV1_0 {
|
|
456
508
|
alignment() {
|
|
@@ -472,117 +524,117 @@ class _RequestIdPreimageV1_0 {
|
|
|
472
524
|
}
|
|
473
525
|
}
|
|
474
526
|
|
|
475
|
-
const
|
|
527
|
+
const _descriptor_46 = new _RequestIdPreimageV1_0();
|
|
476
528
|
|
|
477
|
-
const
|
|
529
|
+
const _descriptor_47 = new __compactRuntime.CompactTypeVector(4, _descriptor_0);
|
|
478
530
|
|
|
479
|
-
const
|
|
531
|
+
const _descriptor_48 = new __compactRuntime.CompactTypeBytes(128);
|
|
480
532
|
|
|
481
533
|
class _SignBidirectionalEventNotification_0 {
|
|
482
534
|
alignment() {
|
|
483
|
-
return _descriptor_0.alignment().concat(
|
|
535
|
+
return _descriptor_0.alignment().concat(_descriptor_48.alignment());
|
|
484
536
|
}
|
|
485
537
|
fromValue(value_0) {
|
|
486
538
|
return {
|
|
487
539
|
version: _descriptor_0.fromValue(value_0),
|
|
488
|
-
payload:
|
|
540
|
+
payload: _descriptor_48.fromValue(value_0)
|
|
489
541
|
}
|
|
490
542
|
}
|
|
491
543
|
toValue(value_0) {
|
|
492
|
-
return _descriptor_0.toValue(value_0.version).concat(
|
|
544
|
+
return _descriptor_0.toValue(value_0.version).concat(_descriptor_48.toValue(value_0.payload));
|
|
493
545
|
}
|
|
494
546
|
}
|
|
495
547
|
|
|
496
|
-
const
|
|
548
|
+
const _descriptor_49 = new _SignBidirectionalEventNotification_0();
|
|
497
549
|
|
|
498
|
-
const
|
|
550
|
+
const _descriptor_50 = __compactRuntime.CompactTypeSecp256k1Scalar;
|
|
499
551
|
|
|
500
|
-
const
|
|
552
|
+
const _descriptor_51 = __compactRuntime.CompactTypeSecp256k1Base;
|
|
501
553
|
|
|
502
|
-
const
|
|
554
|
+
const _descriptor_52 = new __compactRuntime.CompactTypeEnum(8, 1);
|
|
503
555
|
|
|
504
556
|
class _tuple_0 {
|
|
505
557
|
alignment() {
|
|
506
|
-
return
|
|
558
|
+
return _descriptor_52.alignment().concat(_descriptor_1.alignment().concat(_descriptor_7.alignment().concat(_descriptor_28.alignment().concat(_descriptor_7.alignment().concat(_descriptor_1.alignment())))));
|
|
507
559
|
}
|
|
508
560
|
fromValue(value_0) {
|
|
509
561
|
return [
|
|
510
|
-
|
|
562
|
+
_descriptor_52.fromValue(value_0),
|
|
511
563
|
_descriptor_1.fromValue(value_0),
|
|
512
564
|
_descriptor_7.fromValue(value_0),
|
|
513
|
-
|
|
565
|
+
_descriptor_28.fromValue(value_0),
|
|
514
566
|
_descriptor_7.fromValue(value_0),
|
|
515
567
|
_descriptor_1.fromValue(value_0)
|
|
516
568
|
]
|
|
517
569
|
}
|
|
518
570
|
toValue(value_0) {
|
|
519
|
-
return
|
|
571
|
+
return _descriptor_52.toValue(value_0[0]).concat(_descriptor_1.toValue(value_0[1]).concat(_descriptor_7.toValue(value_0[2]).concat(_descriptor_28.toValue(value_0[3]).concat(_descriptor_7.toValue(value_0[4]).concat(_descriptor_1.toValue(value_0[5]))))));
|
|
520
572
|
}
|
|
521
573
|
}
|
|
522
574
|
|
|
523
|
-
const
|
|
575
|
+
const _descriptor_53 = new _tuple_0();
|
|
524
576
|
|
|
525
|
-
const
|
|
577
|
+
const _descriptor_54 = __compactRuntime.CompactTypeField;
|
|
526
578
|
|
|
527
579
|
class _tuple_1 {
|
|
528
580
|
alignment() {
|
|
529
|
-
return
|
|
581
|
+
return _descriptor_52.alignment().concat(_descriptor_54.alignment().concat(_descriptor_1.alignment()));
|
|
530
582
|
}
|
|
531
583
|
fromValue(value_0) {
|
|
532
584
|
return [
|
|
533
|
-
_descriptor_50.fromValue(value_0),
|
|
534
585
|
_descriptor_52.fromValue(value_0),
|
|
586
|
+
_descriptor_54.fromValue(value_0),
|
|
535
587
|
_descriptor_1.fromValue(value_0)
|
|
536
588
|
]
|
|
537
589
|
}
|
|
538
590
|
toValue(value_0) {
|
|
539
|
-
return
|
|
591
|
+
return _descriptor_52.toValue(value_0[0]).concat(_descriptor_54.toValue(value_0[1]).concat(_descriptor_1.toValue(value_0[2])));
|
|
540
592
|
}
|
|
541
593
|
}
|
|
542
594
|
|
|
543
|
-
const
|
|
595
|
+
const _descriptor_55 = new _tuple_1();
|
|
544
596
|
|
|
545
597
|
class _tuple_2 {
|
|
546
598
|
alignment() {
|
|
547
|
-
return
|
|
599
|
+
return _descriptor_52.alignment().concat(_descriptor_46.alignment());
|
|
548
600
|
}
|
|
549
601
|
fromValue(value_0) {
|
|
550
602
|
return [
|
|
551
|
-
|
|
552
|
-
|
|
603
|
+
_descriptor_52.fromValue(value_0),
|
|
604
|
+
_descriptor_46.fromValue(value_0)
|
|
553
605
|
]
|
|
554
606
|
}
|
|
555
607
|
toValue(value_0) {
|
|
556
|
-
return
|
|
608
|
+
return _descriptor_52.toValue(value_0[0]).concat(_descriptor_46.toValue(value_0[1]));
|
|
557
609
|
}
|
|
558
610
|
}
|
|
559
611
|
|
|
560
|
-
const
|
|
612
|
+
const _descriptor_56 = new _tuple_2();
|
|
561
613
|
|
|
562
614
|
class _tuple_3 {
|
|
563
615
|
alignment() {
|
|
564
|
-
return
|
|
616
|
+
return _descriptor_52.alignment().concat(_descriptor_1.alignment());
|
|
565
617
|
}
|
|
566
618
|
fromValue(value_0) {
|
|
567
619
|
return [
|
|
568
|
-
|
|
620
|
+
_descriptor_52.fromValue(value_0),
|
|
569
621
|
_descriptor_1.fromValue(value_0)
|
|
570
622
|
]
|
|
571
623
|
}
|
|
572
624
|
toValue(value_0) {
|
|
573
|
-
return
|
|
625
|
+
return _descriptor_52.toValue(value_0[0]).concat(_descriptor_1.toValue(value_0[1]));
|
|
574
626
|
}
|
|
575
627
|
}
|
|
576
628
|
|
|
577
|
-
const
|
|
629
|
+
const _descriptor_57 = new _tuple_3();
|
|
578
630
|
|
|
579
631
|
class _tuple_4 {
|
|
580
632
|
alignment() {
|
|
581
|
-
return
|
|
633
|
+
return _descriptor_52.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()))))))))));
|
|
582
634
|
}
|
|
583
635
|
fromValue(value_0) {
|
|
584
636
|
return [
|
|
585
|
-
|
|
637
|
+
_descriptor_52.fromValue(value_0),
|
|
586
638
|
_descriptor_5.fromValue(value_0),
|
|
587
639
|
_descriptor_6.fromValue(value_0),
|
|
588
640
|
_descriptor_7.fromValue(value_0),
|
|
@@ -596,80 +648,80 @@ class _tuple_4 {
|
|
|
596
648
|
]
|
|
597
649
|
}
|
|
598
650
|
toValue(value_0) {
|
|
599
|
-
return
|
|
651
|
+
return _descriptor_52.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])))))))))));
|
|
600
652
|
}
|
|
601
653
|
}
|
|
602
654
|
|
|
603
|
-
const
|
|
655
|
+
const _descriptor_58 = new _tuple_4();
|
|
604
656
|
|
|
605
657
|
class _tuple_5 {
|
|
606
658
|
alignment() {
|
|
607
|
-
return
|
|
659
|
+
return _descriptor_52.alignment().concat(_descriptor_54.alignment().concat(_descriptor_34.alignment().concat(_descriptor_0.alignment().concat(_descriptor_54.alignment()))));
|
|
608
660
|
}
|
|
609
661
|
fromValue(value_0) {
|
|
610
662
|
return [
|
|
611
|
-
_descriptor_50.fromValue(value_0),
|
|
612
663
|
_descriptor_52.fromValue(value_0),
|
|
613
|
-
|
|
664
|
+
_descriptor_54.fromValue(value_0),
|
|
665
|
+
_descriptor_34.fromValue(value_0),
|
|
614
666
|
_descriptor_0.fromValue(value_0),
|
|
615
|
-
|
|
667
|
+
_descriptor_54.fromValue(value_0)
|
|
616
668
|
]
|
|
617
669
|
}
|
|
618
670
|
toValue(value_0) {
|
|
619
|
-
return
|
|
671
|
+
return _descriptor_52.toValue(value_0[0]).concat(_descriptor_54.toValue(value_0[1]).concat(_descriptor_34.toValue(value_0[2]).concat(_descriptor_0.toValue(value_0[3]).concat(_descriptor_54.toValue(value_0[4])))));
|
|
620
672
|
}
|
|
621
673
|
}
|
|
622
674
|
|
|
623
|
-
const
|
|
675
|
+
const _descriptor_59 = new _tuple_5();
|
|
624
676
|
|
|
625
677
|
class _tuple_6 {
|
|
626
678
|
alignment() {
|
|
627
|
-
return
|
|
679
|
+
return _descriptor_52.alignment().concat(_descriptor_19.alignment());
|
|
628
680
|
}
|
|
629
681
|
fromValue(value_0) {
|
|
630
682
|
return [
|
|
631
|
-
|
|
632
|
-
|
|
683
|
+
_descriptor_52.fromValue(value_0),
|
|
684
|
+
_descriptor_19.fromValue(value_0)
|
|
633
685
|
]
|
|
634
686
|
}
|
|
635
687
|
toValue(value_0) {
|
|
636
|
-
return
|
|
688
|
+
return _descriptor_52.toValue(value_0[0]).concat(_descriptor_19.toValue(value_0[1]));
|
|
637
689
|
}
|
|
638
690
|
}
|
|
639
691
|
|
|
640
|
-
const
|
|
692
|
+
const _descriptor_60 = new _tuple_6();
|
|
641
693
|
|
|
642
694
|
class _tuple_7 {
|
|
643
695
|
alignment() {
|
|
644
|
-
return
|
|
696
|
+
return _descriptor_52.alignment().concat(_descriptor_5.alignment());
|
|
645
697
|
}
|
|
646
698
|
fromValue(value_0) {
|
|
647
699
|
return [
|
|
648
|
-
|
|
700
|
+
_descriptor_52.fromValue(value_0),
|
|
649
701
|
_descriptor_5.fromValue(value_0)
|
|
650
702
|
]
|
|
651
703
|
}
|
|
652
704
|
toValue(value_0) {
|
|
653
|
-
return
|
|
705
|
+
return _descriptor_52.toValue(value_0[0]).concat(_descriptor_5.toValue(value_0[1]));
|
|
654
706
|
}
|
|
655
707
|
}
|
|
656
708
|
|
|
657
|
-
const
|
|
709
|
+
const _descriptor_61 = new _tuple_7();
|
|
658
710
|
|
|
659
711
|
class _tuple_8 {
|
|
660
712
|
alignment() {
|
|
661
|
-
return
|
|
713
|
+
return _descriptor_52.alignment().concat(_descriptor_7.alignment().concat(_descriptor_7.alignment().concat(_descriptor_33.alignment().concat(_descriptor_33.alignment().concat(_descriptor_7.alignment().concat(_descriptor_34.alignment().concat(_descriptor_33.alignment().concat(_descriptor_9.alignment().concat(_descriptor_10.alignment().concat(_descriptor_11.alignment().concat(_descriptor_0.alignment())))))))))));
|
|
662
714
|
}
|
|
663
715
|
fromValue(value_0) {
|
|
664
716
|
return [
|
|
665
|
-
|
|
717
|
+
_descriptor_52.fromValue(value_0),
|
|
666
718
|
_descriptor_7.fromValue(value_0),
|
|
667
719
|
_descriptor_7.fromValue(value_0),
|
|
668
|
-
|
|
669
|
-
|
|
720
|
+
_descriptor_33.fromValue(value_0),
|
|
721
|
+
_descriptor_33.fromValue(value_0),
|
|
670
722
|
_descriptor_7.fromValue(value_0),
|
|
671
|
-
|
|
672
|
-
|
|
723
|
+
_descriptor_34.fromValue(value_0),
|
|
724
|
+
_descriptor_33.fromValue(value_0),
|
|
673
725
|
_descriptor_9.fromValue(value_0),
|
|
674
726
|
_descriptor_10.fromValue(value_0),
|
|
675
727
|
_descriptor_11.fromValue(value_0),
|
|
@@ -677,62 +729,62 @@ class _tuple_8 {
|
|
|
677
729
|
]
|
|
678
730
|
}
|
|
679
731
|
toValue(value_0) {
|
|
680
|
-
return
|
|
732
|
+
return _descriptor_52.toValue(value_0[0]).concat(_descriptor_7.toValue(value_0[1]).concat(_descriptor_7.toValue(value_0[2]).concat(_descriptor_33.toValue(value_0[3]).concat(_descriptor_33.toValue(value_0[4]).concat(_descriptor_7.toValue(value_0[5]).concat(_descriptor_34.toValue(value_0[6]).concat(_descriptor_33.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]))))))))))));
|
|
681
733
|
}
|
|
682
734
|
}
|
|
683
735
|
|
|
684
|
-
const
|
|
736
|
+
const _descriptor_62 = new _tuple_8();
|
|
685
737
|
|
|
686
738
|
class _tuple_9 {
|
|
687
739
|
alignment() {
|
|
688
|
-
return
|
|
740
|
+
return _descriptor_52.alignment().concat(_descriptor_44.alignment());
|
|
689
741
|
}
|
|
690
742
|
fromValue(value_0) {
|
|
691
743
|
return [
|
|
692
|
-
|
|
693
|
-
|
|
744
|
+
_descriptor_52.fromValue(value_0),
|
|
745
|
+
_descriptor_44.fromValue(value_0)
|
|
694
746
|
]
|
|
695
747
|
}
|
|
696
748
|
toValue(value_0) {
|
|
697
|
-
return
|
|
749
|
+
return _descriptor_52.toValue(value_0[0]).concat(_descriptor_44.toValue(value_0[1]));
|
|
698
750
|
}
|
|
699
751
|
}
|
|
700
752
|
|
|
701
|
-
const
|
|
753
|
+
const _descriptor_63 = new _tuple_9();
|
|
702
754
|
|
|
703
755
|
class _tuple_10 {
|
|
704
756
|
alignment() {
|
|
705
|
-
return
|
|
757
|
+
return _descriptor_52.alignment().concat(_descriptor_45.alignment());
|
|
706
758
|
}
|
|
707
759
|
fromValue(value_0) {
|
|
708
760
|
return [
|
|
709
|
-
|
|
710
|
-
|
|
761
|
+
_descriptor_52.fromValue(value_0),
|
|
762
|
+
_descriptor_45.fromValue(value_0)
|
|
711
763
|
]
|
|
712
764
|
}
|
|
713
765
|
toValue(value_0) {
|
|
714
|
-
return
|
|
766
|
+
return _descriptor_52.toValue(value_0[0]).concat(_descriptor_45.toValue(value_0[1]));
|
|
715
767
|
}
|
|
716
768
|
}
|
|
717
769
|
|
|
718
|
-
const
|
|
770
|
+
const _descriptor_64 = new _tuple_10();
|
|
719
771
|
|
|
720
772
|
class _Secp256k1EcdsaSignature_0 {
|
|
721
773
|
alignment() {
|
|
722
|
-
return
|
|
774
|
+
return _descriptor_50.alignment().concat(_descriptor_50.alignment());
|
|
723
775
|
}
|
|
724
776
|
fromValue(value_0) {
|
|
725
777
|
return {
|
|
726
|
-
r:
|
|
727
|
-
s:
|
|
778
|
+
r: _descriptor_50.fromValue(value_0),
|
|
779
|
+
s: _descriptor_50.fromValue(value_0)
|
|
728
780
|
}
|
|
729
781
|
}
|
|
730
782
|
toValue(value_0) {
|
|
731
|
-
return
|
|
783
|
+
return _descriptor_50.toValue(value_0.r).concat(_descriptor_50.toValue(value_0.s));
|
|
732
784
|
}
|
|
733
785
|
}
|
|
734
786
|
|
|
735
|
-
const
|
|
787
|
+
const _descriptor_65 = new _Secp256k1EcdsaSignature_0();
|
|
736
788
|
|
|
737
789
|
class _Either_0 {
|
|
738
790
|
alignment() {
|
|
@@ -750,7 +802,7 @@ class _Either_0 {
|
|
|
750
802
|
}
|
|
751
803
|
}
|
|
752
804
|
|
|
753
|
-
const
|
|
805
|
+
const _descriptor_66 = new _Either_0();
|
|
754
806
|
|
|
755
807
|
class _UserAddress_0 {
|
|
756
808
|
alignment() {
|
|
@@ -766,44 +818,44 @@ class _UserAddress_0 {
|
|
|
766
818
|
}
|
|
767
819
|
}
|
|
768
820
|
|
|
769
|
-
const
|
|
821
|
+
const _descriptor_67 = new _UserAddress_0();
|
|
770
822
|
|
|
771
823
|
class _Either_1 {
|
|
772
824
|
alignment() {
|
|
773
|
-
return _descriptor_9.alignment().concat(_descriptor_2.alignment().concat(
|
|
825
|
+
return _descriptor_9.alignment().concat(_descriptor_2.alignment().concat(_descriptor_67.alignment()));
|
|
774
826
|
}
|
|
775
827
|
fromValue(value_0) {
|
|
776
828
|
return {
|
|
777
829
|
is_left: _descriptor_9.fromValue(value_0),
|
|
778
830
|
left: _descriptor_2.fromValue(value_0),
|
|
779
|
-
right:
|
|
831
|
+
right: _descriptor_67.fromValue(value_0)
|
|
780
832
|
}
|
|
781
833
|
}
|
|
782
834
|
toValue(value_0) {
|
|
783
|
-
return _descriptor_9.toValue(value_0.is_left).concat(_descriptor_2.toValue(value_0.left).concat(
|
|
835
|
+
return _descriptor_9.toValue(value_0.is_left).concat(_descriptor_2.toValue(value_0.left).concat(_descriptor_67.toValue(value_0.right)));
|
|
784
836
|
}
|
|
785
837
|
}
|
|
786
838
|
|
|
787
|
-
const
|
|
839
|
+
const _descriptor_68 = new _Either_1();
|
|
788
840
|
|
|
789
841
|
class _Maybe_2 {
|
|
790
842
|
alignment() {
|
|
791
|
-
return _descriptor_9.alignment().concat(
|
|
843
|
+
return _descriptor_9.alignment().concat(_descriptor_68.alignment());
|
|
792
844
|
}
|
|
793
845
|
fromValue(value_0) {
|
|
794
846
|
return {
|
|
795
847
|
is_some: _descriptor_9.fromValue(value_0),
|
|
796
|
-
value:
|
|
848
|
+
value: _descriptor_68.fromValue(value_0)
|
|
797
849
|
}
|
|
798
850
|
}
|
|
799
851
|
toValue(value_0) {
|
|
800
|
-
return _descriptor_9.toValue(value_0.is_some).concat(
|
|
852
|
+
return _descriptor_9.toValue(value_0.is_some).concat(_descriptor_68.toValue(value_0.value));
|
|
801
853
|
}
|
|
802
854
|
}
|
|
803
855
|
|
|
804
|
-
const
|
|
856
|
+
const _descriptor_69 = new _Maybe_2();
|
|
805
857
|
|
|
806
|
-
const
|
|
858
|
+
const _descriptor_70 = new __compactRuntime.CompactTypeUnsignedInteger(4294967295n, 4);
|
|
807
859
|
|
|
808
860
|
export class Contract {
|
|
809
861
|
witnesses;
|
|
@@ -909,6 +961,12 @@ export class Contract {
|
|
|
909
961
|
},
|
|
910
962
|
async calculateTronRequestIdV1_2_0(context, ...args_1) {
|
|
911
963
|
return { result: pureCircuits.calculateTronRequestIdV1_2_0(...args_1), context };
|
|
964
|
+
},
|
|
965
|
+
async calculateTronRequestIdV1_1_34(context, ...args_1) {
|
|
966
|
+
return { result: pureCircuits.calculateTronRequestIdV1_1_34(...args_1), context };
|
|
967
|
+
},
|
|
968
|
+
async calculateTronRequestIdV1_2_34(context, ...args_1) {
|
|
969
|
+
return { result: pureCircuits.calculateTronRequestIdV1_2_34(...args_1), context };
|
|
912
970
|
}
|
|
913
971
|
};
|
|
914
972
|
this.impureCircuits = {};
|
|
@@ -1009,47 +1067,47 @@ export class Contract {
|
|
|
1009
1067
|
r_0;
|
|
1010
1068
|
}
|
|
1011
1069
|
_transientHash_0(value_0) {
|
|
1012
|
-
const result_0 = __compactRuntime.transientHash(
|
|
1070
|
+
const result_0 = __compactRuntime.transientHash(_descriptor_63, value_0);
|
|
1013
1071
|
return result_0;
|
|
1014
1072
|
}
|
|
1015
1073
|
_transientHash_1(value_0) {
|
|
1016
|
-
const result_0 = __compactRuntime.transientHash(
|
|
1074
|
+
const result_0 = __compactRuntime.transientHash(_descriptor_64, value_0);
|
|
1017
1075
|
return result_0;
|
|
1018
1076
|
}
|
|
1019
1077
|
_transientHash_2(value_0) {
|
|
1020
|
-
const result_0 = __compactRuntime.transientHash(
|
|
1078
|
+
const result_0 = __compactRuntime.transientHash(_descriptor_61, value_0);
|
|
1021
1079
|
return result_0;
|
|
1022
1080
|
}
|
|
1023
1081
|
_transientHash_3(value_0) {
|
|
1024
|
-
const result_0 = __compactRuntime.transientHash(
|
|
1082
|
+
const result_0 = __compactRuntime.transientHash(_descriptor_62, value_0);
|
|
1025
1083
|
return result_0;
|
|
1026
1084
|
}
|
|
1027
1085
|
_transientHash_4(value_0) {
|
|
1028
|
-
const result_0 = __compactRuntime.transientHash(
|
|
1086
|
+
const result_0 = __compactRuntime.transientHash(_descriptor_59, value_0);
|
|
1029
1087
|
return result_0;
|
|
1030
1088
|
}
|
|
1031
1089
|
_transientHash_5(value_0) {
|
|
1032
|
-
const result_0 = __compactRuntime.transientHash(
|
|
1090
|
+
const result_0 = __compactRuntime.transientHash(_descriptor_60, value_0);
|
|
1033
1091
|
return result_0;
|
|
1034
1092
|
}
|
|
1035
1093
|
_transientHash_6(value_0) {
|
|
1036
|
-
const result_0 = __compactRuntime.transientHash(
|
|
1094
|
+
const result_0 = __compactRuntime.transientHash(_descriptor_57, value_0);
|
|
1037
1095
|
return result_0;
|
|
1038
1096
|
}
|
|
1039
1097
|
_transientHash_7(value_0) {
|
|
1040
|
-
const result_0 = __compactRuntime.transientHash(
|
|
1098
|
+
const result_0 = __compactRuntime.transientHash(_descriptor_58, value_0);
|
|
1041
1099
|
return result_0;
|
|
1042
1100
|
}
|
|
1043
1101
|
_transientHash_8(value_0) {
|
|
1044
|
-
const result_0 = __compactRuntime.transientHash(
|
|
1102
|
+
const result_0 = __compactRuntime.transientHash(_descriptor_55, value_0);
|
|
1045
1103
|
return result_0;
|
|
1046
1104
|
}
|
|
1047
1105
|
_transientHash_9(value_0) {
|
|
1048
|
-
const result_0 = __compactRuntime.transientHash(
|
|
1106
|
+
const result_0 = __compactRuntime.transientHash(_descriptor_56, value_0);
|
|
1049
1107
|
return result_0;
|
|
1050
1108
|
}
|
|
1051
1109
|
_transientHash_10(value_0) {
|
|
1052
|
-
const result_0 = __compactRuntime.transientHash(
|
|
1110
|
+
const result_0 = __compactRuntime.transientHash(_descriptor_53, value_0);
|
|
1053
1111
|
return result_0;
|
|
1054
1112
|
}
|
|
1055
1113
|
_upgradeFromTransient_0(x_0) {
|
|
@@ -1614,6 +1672,32 @@ export class Contract {
|
|
|
1614
1672
|
executionDest: request_0.executionDest };
|
|
1615
1673
|
return this._calculateRequestIdV1_0(preimage_0);
|
|
1616
1674
|
}
|
|
1675
|
+
_calculateTronRequestIdV1_2(request_0) {
|
|
1676
|
+
__compactRuntime.assert(request_0.txParamType === 1,
|
|
1677
|
+
'txParamType must tag txParams as tron');
|
|
1678
|
+
const preimage_0 = { keyVersion: request_0.keyVersion,
|
|
1679
|
+
sender: request_0.sender,
|
|
1680
|
+
path: request_0.path,
|
|
1681
|
+
algo: request_0.algo,
|
|
1682
|
+
txParamType: request_0.txParamType,
|
|
1683
|
+
txParamsDigest:
|
|
1684
|
+
this._calculateTronTxParamsDigestV1_0(request_0.txParams),
|
|
1685
|
+
executionDest: request_0.executionDest };
|
|
1686
|
+
return this._calculateRequestIdV1_0(preimage_0);
|
|
1687
|
+
}
|
|
1688
|
+
_calculateTronRequestIdV1_3(request_0) {
|
|
1689
|
+
__compactRuntime.assert(request_0.txParamType === 1,
|
|
1690
|
+
'txParamType must tag txParams as tron');
|
|
1691
|
+
const preimage_0 = { keyVersion: request_0.keyVersion,
|
|
1692
|
+
sender: request_0.sender,
|
|
1693
|
+
path: request_0.path,
|
|
1694
|
+
algo: request_0.algo,
|
|
1695
|
+
txParamType: request_0.txParamType,
|
|
1696
|
+
txParamsDigest:
|
|
1697
|
+
this._calculateTronTxParamsDigestV1_1(request_0.txParams),
|
|
1698
|
+
executionDest: request_0.executionDest };
|
|
1699
|
+
return this._calculateRequestIdV1_0(preimage_0);
|
|
1700
|
+
}
|
|
1617
1701
|
_evmAddressAbiWord_0(addr_0) {
|
|
1618
1702
|
return Uint8Array.from([...Array.from(new Uint8Array(12), BigInt),
|
|
1619
1703
|
...Array.from(addr_0, BigInt)],
|
|
@@ -1821,6 +1905,12 @@ export class Contract {
|
|
|
1821
1905
|
_calculateTronRequestIdV1_2_0_0(request_0) {
|
|
1822
1906
|
return this._calculateTronRequestIdV1_1(request_0);
|
|
1823
1907
|
}
|
|
1908
|
+
_calculateTronRequestIdV1_1_34_0(request_0) {
|
|
1909
|
+
return this._calculateTronRequestIdV1_2(request_0);
|
|
1910
|
+
}
|
|
1911
|
+
_calculateTronRequestIdV1_2_34_0(request_0) {
|
|
1912
|
+
return this._calculateTronRequestIdV1_3(request_0);
|
|
1913
|
+
}
|
|
1824
1914
|
_equal_0(x0, y0) {
|
|
1825
1915
|
if (x0.identity) { return y0.identity; }
|
|
1826
1916
|
if (y0.identity || x0.x != y0.x || x0.y != y0.y) {
|
|
@@ -2473,6 +2563,34 @@ export const pureCircuits = {
|
|
|
2473
2563
|
request_0)
|
|
2474
2564
|
}
|
|
2475
2565
|
return _dummyContract._calculateTronRequestIdV1_2_0_0(request_0);
|
|
2566
|
+
},
|
|
2567
|
+
calculateTronRequestIdV1_1_34: (...args_0) => {
|
|
2568
|
+
if (args_0.length !== 1) {
|
|
2569
|
+
throw new __compactRuntime.CompactError(`calculateTronRequestIdV1_1_34: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
|
|
2570
|
+
}
|
|
2571
|
+
const request_0 = args_0[0];
|
|
2572
|
+
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 === 34 && request_0.respondSerializationSchema.buffer instanceof ArrayBuffer && request_0.respondSerializationSchema.BYTES_PER_ELEMENT === 1 && request_0.respondSerializationSchema.length === 0)) {
|
|
2573
|
+
__compactRuntime.typeError('calculateTronRequestIdV1_1_34',
|
|
2574
|
+
'argument 1',
|
|
2575
|
+
'circuits.compact line 184 char 1',
|
|
2576
|
+
'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<34>, respondSerializationSchema: Bytes<0>>',
|
|
2577
|
+
request_0)
|
|
2578
|
+
}
|
|
2579
|
+
return _dummyContract._calculateTronRequestIdV1_1_34_0(request_0);
|
|
2580
|
+
},
|
|
2581
|
+
calculateTronRequestIdV1_2_34: (...args_0) => {
|
|
2582
|
+
if (args_0.length !== 1) {
|
|
2583
|
+
throw new __compactRuntime.CompactError(`calculateTronRequestIdV1_2_34: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
|
|
2584
|
+
}
|
|
2585
|
+
const request_0 = args_0[0];
|
|
2586
|
+
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 === 34 && request_0.respondSerializationSchema.buffer instanceof ArrayBuffer && request_0.respondSerializationSchema.BYTES_PER_ELEMENT === 1 && request_0.respondSerializationSchema.length === 0)) {
|
|
2587
|
+
__compactRuntime.typeError('calculateTronRequestIdV1_2_34',
|
|
2588
|
+
'argument 1',
|
|
2589
|
+
'circuits.compact line 190 char 1',
|
|
2590
|
+
'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<34>, respondSerializationSchema: Bytes<0>>',
|
|
2591
|
+
request_0)
|
|
2592
|
+
}
|
|
2593
|
+
return _dummyContract._calculateTronRequestIdV1_2_34_0(request_0);
|
|
2476
2594
|
}
|
|
2477
2595
|
};
|
|
2478
2596
|
export const expectedVk = {};
|
|
@@ -2509,6 +2627,8 @@ export const circuitSignatures = {
|
|
|
2509
2627
|
'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
2628
|
'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
2629
|
'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}}},
|
|
2630
|
+
'calculateTronRequestIdV1_1_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: '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: 34}}, {name: 'respondSerializationSchema', type: {tag: 'Bytes', length: 0}}]}], resultType: {tag: 'Alias', name: 'RequestId', type: {tag: 'Bytes', length: 32}}},
|
|
2631
|
+
'calculateTronRequestIdV1_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: '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: 34}}, {name: 'respondSerializationSchema', type: {tag: 'Bytes', length: 0}}]}], resultType: {tag: 'Alias', name: 'RequestId', type: {tag: 'Bytes', length: 32}}},
|
|
2512
2632
|
};
|
|
2513
2633
|
|
|
2514
2634
|
export const declaredInterfaces = {};
|