@sig-net/midnight 0.26.0-rc.9 → 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/compact-descriptors.d.ts +8 -0
- package/dist/compact-descriptors.d.ts.map +1 -1
- package/dist/compact-descriptors.js +13 -1
- package/dist/compact-descriptors.js.map +1 -1
- package/dist/constants.d.ts +0 -3
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +19 -29
- package/dist/constants.js.map +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/managed/compiler/contract-info.json +1158 -5
- package/dist/managed/compiler/contract-manifest.json +8 -8
- package/dist/managed/contract/index.d.ts +270 -1
- package/dist/managed/contract/index.js +798 -312
- 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-requests-state-reader.d.ts +3 -3
- package/dist/signature-requests-state-reader.d.ts.map +1 -1
- package/dist/signature-requests-state-reader.js +6 -2
- package/dist/signature-requests-state-reader.js.map +1 -1
- package/dist/signature-response-verification.d.ts +29 -11
- package/dist/signature-response-verification.d.ts.map +1 -1
- package/dist/signature-response-verification.js +66 -24
- package/dist/signature-response-verification.js.map +1 -1
- package/dist/signet-contract-events.d.ts +6 -0
- package/dist/signet-contract-events.d.ts.map +1 -1
- package/dist/signet-contract-events.js +9 -7
- package/dist/signet-contract-events.js.map +1 -1
- package/dist/signet-evtype2tx-requests.d.ts +1 -1
- package/dist/signet-evtype2tx-requests.d.ts.map +1 -1
- package/dist/signet-evtype2tx-requests.js +2 -8
- package/dist/signet-evtype2tx-requests.js.map +1 -1
- package/dist/signet-request-id.d.ts +2 -2
- package/dist/signet-request-id.d.ts.map +1 -1
- package/dist/signet-request-id.js +18 -8
- package/dist/signet-request-id.js.map +1 -1
- package/dist/signet-request-response-reader.d.ts +51 -25
- package/dist/signet-request-response-reader.d.ts.map +1 -1
- package/dist/signet-request-response-reader.js +119 -71
- package/dist/signet-request-response-reader.js.map +1 -1
- package/dist/signet-requests.d.ts +18 -10
- package/dist/signet-requests.d.ts.map +1 -1
- package/dist/signet-requests.js +19 -10
- package/dist/signet-requests.js.map +1 -1
- package/dist/signet-tron-record-decoding.d.ts +11 -0
- package/dist/signet-tron-record-decoding.d.ts.map +1 -0
- package/dist/signet-tron-record-decoding.js +29 -0
- package/dist/signet-tron-record-decoding.js.map +1 -0
- package/dist/signet-tron-requests.d.ts +36 -0
- package/dist/signet-tron-requests.d.ts.map +1 -0
- package/dist/signet-tron-requests.js +76 -0
- package/dist/signet-tron-requests.js.map +1 -0
- package/dist/tron-transactions.d.ts +59 -0
- package/dist/tron-transactions.d.ts.map +1 -0
- package/dist/tron-transactions.js +195 -0
- package/dist/tron-transactions.js.map +1 -0
- package/dist/url-redaction.d.ts +11 -0
- package/dist/url-redaction.d.ts.map +1 -0
- package/dist/url-redaction.js +21 -0
- package/dist/url-redaction.js.map +1 -0
- package/package.json +2 -2
- package/src/Signet.compact +71 -1
- package/src/circuits.compact +38 -0
|
@@ -8,26 +8,26 @@
|
|
|
8
8
|
"type": "directory",
|
|
9
9
|
"contract-info.json": {
|
|
10
10
|
"type": "file",
|
|
11
|
-
"size":
|
|
12
|
-
"hash": "
|
|
11
|
+
"size": 100412,
|
|
12
|
+
"hash": "06fcfbfbabad10eecca41b8123f18d73b5431c2ef26da9de0d16f1bc57091ec7"
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"contract": {
|
|
16
16
|
"type": "directory",
|
|
17
17
|
"index.d.ts": {
|
|
18
18
|
"type": "file",
|
|
19
|
-
"size":
|
|
20
|
-
"hash": "
|
|
19
|
+
"size": 66998,
|
|
20
|
+
"hash": "6f879923de6515c81d955d4d389a0970041fd699cbbc46efb9bff16a7aafba6d"
|
|
21
21
|
},
|
|
22
22
|
"index.js": {
|
|
23
23
|
"type": "file",
|
|
24
|
-
"size":
|
|
25
|
-
"hash": "
|
|
24
|
+
"size": 211718,
|
|
25
|
+
"hash": "823d73afb4a292f8cb7ff6060a990b414dd697e338c32e78a04c1e13a9b96763"
|
|
26
26
|
},
|
|
27
27
|
"index.js.map": {
|
|
28
28
|
"type": "file",
|
|
29
|
-
"size":
|
|
30
|
-
"hash": "
|
|
29
|
+
"size": 13513,
|
|
30
|
+
"hash": "059cdf4f1a955a3400dbc1bd42803ab1a8b17592aa3a1c09f291f394d02b9f3a"
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
}
|
|
@@ -6,7 +6,9 @@ export enum HashDomain { requestId = 0,
|
|
|
6
6
|
evmType2TxWord = 3,
|
|
7
7
|
evmType2TxAccessEntry = 4,
|
|
8
8
|
evmType2TxStorageKey = 5,
|
|
9
|
-
attestedOutput = 6
|
|
9
|
+
attestedOutput = 6,
|
|
10
|
+
tronTxHeader = 7,
|
|
11
|
+
tronTxWord = 8
|
|
10
12
|
}
|
|
11
13
|
|
|
12
14
|
export enum OutputKind { executed = 0, failed = 1, unviable = 2 }
|
|
@@ -55,6 +57,8 @@ export type PureCircuits = {
|
|
|
55
57
|
},
|
|
56
58
|
mpcResponseKey_0: __compactRuntime.Secp256k1Point): boolean;
|
|
57
59
|
ethereumCaip2Id(): Uint8Array;
|
|
60
|
+
tronCaip2Id(): Uint8Array;
|
|
61
|
+
tronAddress(evmAddress_0: Uint8Array): Uint8Array;
|
|
58
62
|
evmAddressAbiWord(addr_0: Uint8Array): Uint8Array;
|
|
59
63
|
numericAbiWord(value_0: bigint): Uint8Array;
|
|
60
64
|
boolAbiWord(value_0: boolean): Uint8Array;
|
|
@@ -263,6 +267,134 @@ export type PureCircuits = {
|
|
|
263
267
|
outputDeserializationSchema: Uint8Array,
|
|
264
268
|
respondSerializationSchema: Uint8Array
|
|
265
269
|
};
|
|
270
|
+
calculateTronTxParamsDigestV1_1(txParams_0: { refBlockBytes: Uint8Array,
|
|
271
|
+
refBlockHash: Uint8Array,
|
|
272
|
+
timestamp: bigint,
|
|
273
|
+
expiration: bigint,
|
|
274
|
+
feeLimit: bigint,
|
|
275
|
+
contractAddress: Uint8Array,
|
|
276
|
+
callValue: bigint,
|
|
277
|
+
calldata: { is_some: boolean,
|
|
278
|
+
value: { selector: Uint8Array,
|
|
279
|
+
noWords: bigint,
|
|
280
|
+
words: Uint8Array[]
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}): Uint8Array;
|
|
284
|
+
calculateTronTxParamsDigestV1_2(txParams_0: { refBlockBytes: Uint8Array,
|
|
285
|
+
refBlockHash: Uint8Array,
|
|
286
|
+
timestamp: bigint,
|
|
287
|
+
expiration: bigint,
|
|
288
|
+
feeLimit: bigint,
|
|
289
|
+
contractAddress: Uint8Array,
|
|
290
|
+
callValue: bigint,
|
|
291
|
+
calldata: { is_some: boolean,
|
|
292
|
+
value: { selector: Uint8Array,
|
|
293
|
+
noWords: bigint,
|
|
294
|
+
words: Uint8Array[]
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}): Uint8Array;
|
|
298
|
+
calculateTronRequestIdV1_1_0(request_0: { keyVersion: bigint,
|
|
299
|
+
sender: { bytes: Uint8Array },
|
|
300
|
+
path: Uint8Array,
|
|
301
|
+
algo: number,
|
|
302
|
+
txParamType: number,
|
|
303
|
+
txParams: { refBlockBytes: Uint8Array,
|
|
304
|
+
refBlockHash: Uint8Array,
|
|
305
|
+
timestamp: bigint,
|
|
306
|
+
expiration: bigint,
|
|
307
|
+
feeLimit: bigint,
|
|
308
|
+
contractAddress: Uint8Array,
|
|
309
|
+
callValue: bigint,
|
|
310
|
+
calldata: { is_some: boolean,
|
|
311
|
+
value: { selector: Uint8Array,
|
|
312
|
+
noWords: bigint,
|
|
313
|
+
words: Uint8Array[]
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
executionDest: Uint8Array,
|
|
318
|
+
signatureDest: number,
|
|
319
|
+
params: Uint8Array,
|
|
320
|
+
outputDeserializationSchema: Uint8Array,
|
|
321
|
+
respondSerializationSchema: Uint8Array
|
|
322
|
+
}): Uint8Array;
|
|
323
|
+
calculateTronRequestIdV1_2_0(request_0: { keyVersion: bigint,
|
|
324
|
+
sender: { bytes: Uint8Array },
|
|
325
|
+
path: Uint8Array,
|
|
326
|
+
algo: number,
|
|
327
|
+
txParamType: number,
|
|
328
|
+
txParams: { refBlockBytes: Uint8Array,
|
|
329
|
+
refBlockHash: Uint8Array,
|
|
330
|
+
timestamp: bigint,
|
|
331
|
+
expiration: bigint,
|
|
332
|
+
feeLimit: bigint,
|
|
333
|
+
contractAddress: Uint8Array,
|
|
334
|
+
callValue: bigint,
|
|
335
|
+
calldata: { is_some: boolean,
|
|
336
|
+
value: { selector: Uint8Array,
|
|
337
|
+
noWords: bigint,
|
|
338
|
+
words: Uint8Array[]
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
},
|
|
342
|
+
executionDest: Uint8Array,
|
|
343
|
+
signatureDest: number,
|
|
344
|
+
params: Uint8Array,
|
|
345
|
+
outputDeserializationSchema: Uint8Array,
|
|
346
|
+
respondSerializationSchema: Uint8Array
|
|
347
|
+
}): Uint8Array;
|
|
348
|
+
calculateTronRequestIdV1_1_34(request_0: { keyVersion: bigint,
|
|
349
|
+
sender: { bytes: Uint8Array },
|
|
350
|
+
path: Uint8Array,
|
|
351
|
+
algo: number,
|
|
352
|
+
txParamType: number,
|
|
353
|
+
txParams: { refBlockBytes: Uint8Array,
|
|
354
|
+
refBlockHash: Uint8Array,
|
|
355
|
+
timestamp: bigint,
|
|
356
|
+
expiration: bigint,
|
|
357
|
+
feeLimit: bigint,
|
|
358
|
+
contractAddress: Uint8Array,
|
|
359
|
+
callValue: bigint,
|
|
360
|
+
calldata: { is_some: boolean,
|
|
361
|
+
value: { selector: Uint8Array,
|
|
362
|
+
noWords: bigint,
|
|
363
|
+
words: Uint8Array[]
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
executionDest: Uint8Array,
|
|
368
|
+
signatureDest: number,
|
|
369
|
+
params: Uint8Array,
|
|
370
|
+
outputDeserializationSchema: Uint8Array,
|
|
371
|
+
respondSerializationSchema: Uint8Array
|
|
372
|
+
}): Uint8Array;
|
|
373
|
+
calculateTronRequestIdV1_2_34(request_0: { keyVersion: bigint,
|
|
374
|
+
sender: { bytes: Uint8Array },
|
|
375
|
+
path: Uint8Array,
|
|
376
|
+
algo: number,
|
|
377
|
+
txParamType: number,
|
|
378
|
+
txParams: { refBlockBytes: Uint8Array,
|
|
379
|
+
refBlockHash: Uint8Array,
|
|
380
|
+
timestamp: bigint,
|
|
381
|
+
expiration: bigint,
|
|
382
|
+
feeLimit: bigint,
|
|
383
|
+
contractAddress: Uint8Array,
|
|
384
|
+
callValue: bigint,
|
|
385
|
+
calldata: { is_some: boolean,
|
|
386
|
+
value: { selector: Uint8Array,
|
|
387
|
+
noWords: bigint,
|
|
388
|
+
words: Uint8Array[]
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
executionDest: Uint8Array,
|
|
393
|
+
signatureDest: number,
|
|
394
|
+
params: Uint8Array,
|
|
395
|
+
outputDeserializationSchema: Uint8Array,
|
|
396
|
+
respondSerializationSchema: Uint8Array
|
|
397
|
+
}): Uint8Array;
|
|
266
398
|
}
|
|
267
399
|
|
|
268
400
|
export type Circuits<PS> = {
|
|
@@ -304,6 +436,9 @@ export type Circuits<PS> = {
|
|
|
304
436
|
},
|
|
305
437
|
mpcResponseKey_0: __compactRuntime.Secp256k1Point): Promise<__compactRuntime.CircuitResults<PS, boolean>>;
|
|
306
438
|
ethereumCaip2Id(context: __compactRuntime.CircuitContext<PS>): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
|
|
439
|
+
tronCaip2Id(context: __compactRuntime.CircuitContext<PS>): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
|
|
440
|
+
tronAddress(context: __compactRuntime.CircuitContext<PS>,
|
|
441
|
+
evmAddress_0: Uint8Array): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
|
|
307
442
|
evmAddressAbiWord(context: __compactRuntime.CircuitContext<PS>,
|
|
308
443
|
addr_0: Uint8Array): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
|
|
309
444
|
numericAbiWord(context: __compactRuntime.CircuitContext<PS>, value_0: bigint): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
|
|
@@ -529,6 +664,140 @@ export type Circuits<PS> = {
|
|
|
529
664
|
outputDeserializationSchema: Uint8Array,
|
|
530
665
|
respondSerializationSchema: Uint8Array
|
|
531
666
|
}>>;
|
|
667
|
+
calculateTronTxParamsDigestV1_1(context: __compactRuntime.CircuitContext<PS>,
|
|
668
|
+
txParams_0: { refBlockBytes: Uint8Array,
|
|
669
|
+
refBlockHash: Uint8Array,
|
|
670
|
+
timestamp: bigint,
|
|
671
|
+
expiration: bigint,
|
|
672
|
+
feeLimit: bigint,
|
|
673
|
+
contractAddress: Uint8Array,
|
|
674
|
+
callValue: bigint,
|
|
675
|
+
calldata: { is_some: boolean,
|
|
676
|
+
value: { selector: Uint8Array,
|
|
677
|
+
noWords: bigint,
|
|
678
|
+
words: Uint8Array[]
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
}): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
|
|
682
|
+
calculateTronTxParamsDigestV1_2(context: __compactRuntime.CircuitContext<PS>,
|
|
683
|
+
txParams_0: { refBlockBytes: Uint8Array,
|
|
684
|
+
refBlockHash: Uint8Array,
|
|
685
|
+
timestamp: bigint,
|
|
686
|
+
expiration: bigint,
|
|
687
|
+
feeLimit: bigint,
|
|
688
|
+
contractAddress: Uint8Array,
|
|
689
|
+
callValue: bigint,
|
|
690
|
+
calldata: { is_some: boolean,
|
|
691
|
+
value: { selector: Uint8Array,
|
|
692
|
+
noWords: bigint,
|
|
693
|
+
words: Uint8Array[]
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
}): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
|
|
697
|
+
calculateTronRequestIdV1_1_0(context: __compactRuntime.CircuitContext<PS>,
|
|
698
|
+
request_0: { keyVersion: bigint,
|
|
699
|
+
sender: { bytes: Uint8Array },
|
|
700
|
+
path: Uint8Array,
|
|
701
|
+
algo: number,
|
|
702
|
+
txParamType: number,
|
|
703
|
+
txParams: { refBlockBytes: Uint8Array,
|
|
704
|
+
refBlockHash: Uint8Array,
|
|
705
|
+
timestamp: bigint,
|
|
706
|
+
expiration: bigint,
|
|
707
|
+
feeLimit: bigint,
|
|
708
|
+
contractAddress: Uint8Array,
|
|
709
|
+
callValue: bigint,
|
|
710
|
+
calldata: { is_some: boolean,
|
|
711
|
+
value: { selector: Uint8Array,
|
|
712
|
+
noWords: bigint,
|
|
713
|
+
words: Uint8Array[]
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
},
|
|
717
|
+
executionDest: Uint8Array,
|
|
718
|
+
signatureDest: number,
|
|
719
|
+
params: Uint8Array,
|
|
720
|
+
outputDeserializationSchema: Uint8Array,
|
|
721
|
+
respondSerializationSchema: Uint8Array
|
|
722
|
+
}): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
|
|
723
|
+
calculateTronRequestIdV1_2_0(context: __compactRuntime.CircuitContext<PS>,
|
|
724
|
+
request_0: { keyVersion: bigint,
|
|
725
|
+
sender: { bytes: Uint8Array },
|
|
726
|
+
path: Uint8Array,
|
|
727
|
+
algo: number,
|
|
728
|
+
txParamType: number,
|
|
729
|
+
txParams: { refBlockBytes: Uint8Array,
|
|
730
|
+
refBlockHash: Uint8Array,
|
|
731
|
+
timestamp: bigint,
|
|
732
|
+
expiration: bigint,
|
|
733
|
+
feeLimit: bigint,
|
|
734
|
+
contractAddress: Uint8Array,
|
|
735
|
+
callValue: bigint,
|
|
736
|
+
calldata: { is_some: boolean,
|
|
737
|
+
value: { selector: Uint8Array,
|
|
738
|
+
noWords: bigint,
|
|
739
|
+
words: Uint8Array[]
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
},
|
|
743
|
+
executionDest: Uint8Array,
|
|
744
|
+
signatureDest: number,
|
|
745
|
+
params: Uint8Array,
|
|
746
|
+
outputDeserializationSchema: Uint8Array,
|
|
747
|
+
respondSerializationSchema: Uint8Array
|
|
748
|
+
}): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
|
|
749
|
+
calculateTronRequestIdV1_1_34(context: __compactRuntime.CircuitContext<PS>,
|
|
750
|
+
request_0: { keyVersion: bigint,
|
|
751
|
+
sender: { bytes: Uint8Array },
|
|
752
|
+
path: Uint8Array,
|
|
753
|
+
algo: number,
|
|
754
|
+
txParamType: number,
|
|
755
|
+
txParams: { refBlockBytes: Uint8Array,
|
|
756
|
+
refBlockHash: Uint8Array,
|
|
757
|
+
timestamp: bigint,
|
|
758
|
+
expiration: bigint,
|
|
759
|
+
feeLimit: bigint,
|
|
760
|
+
contractAddress: Uint8Array,
|
|
761
|
+
callValue: bigint,
|
|
762
|
+
calldata: { is_some: boolean,
|
|
763
|
+
value: { selector: Uint8Array,
|
|
764
|
+
noWords: bigint,
|
|
765
|
+
words: Uint8Array[]
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
},
|
|
769
|
+
executionDest: Uint8Array,
|
|
770
|
+
signatureDest: number,
|
|
771
|
+
params: Uint8Array,
|
|
772
|
+
outputDeserializationSchema: Uint8Array,
|
|
773
|
+
respondSerializationSchema: Uint8Array
|
|
774
|
+
}): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
|
|
775
|
+
calculateTronRequestIdV1_2_34(context: __compactRuntime.CircuitContext<PS>,
|
|
776
|
+
request_0: { keyVersion: bigint,
|
|
777
|
+
sender: { bytes: Uint8Array },
|
|
778
|
+
path: Uint8Array,
|
|
779
|
+
algo: number,
|
|
780
|
+
txParamType: number,
|
|
781
|
+
txParams: { refBlockBytes: Uint8Array,
|
|
782
|
+
refBlockHash: Uint8Array,
|
|
783
|
+
timestamp: bigint,
|
|
784
|
+
expiration: bigint,
|
|
785
|
+
feeLimit: bigint,
|
|
786
|
+
contractAddress: Uint8Array,
|
|
787
|
+
callValue: bigint,
|
|
788
|
+
calldata: { is_some: boolean,
|
|
789
|
+
value: { selector: Uint8Array,
|
|
790
|
+
noWords: bigint,
|
|
791
|
+
words: Uint8Array[]
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
},
|
|
795
|
+
executionDest: Uint8Array,
|
|
796
|
+
signatureDest: number,
|
|
797
|
+
params: Uint8Array,
|
|
798
|
+
outputDeserializationSchema: Uint8Array,
|
|
799
|
+
respondSerializationSchema: Uint8Array
|
|
800
|
+
}): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
|
|
532
801
|
}
|
|
533
802
|
|
|
534
803
|
export type Ledger = {
|