@sig-net/midnight 0.27.0-rc.3 → 0.27.0-rc.5
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 +4 -3
- package/dist/abi-serde.d.ts +18 -0
- package/dist/abi-serde.d.ts.map +1 -1
- package/dist/abi-serde.js +28 -0
- package/dist/abi-serde.js.map +1 -1
- package/dist/compact-descriptors.d.ts +6 -5
- package/dist/compact-descriptors.d.ts.map +1 -1
- package/dist/compact-descriptors.js +4 -4
- package/dist/compact-descriptors.js.map +1 -1
- package/dist/constants.d.ts +2 -2
- package/dist/constants.js +2 -2
- package/dist/ecdsa-attestation.d.ts +2 -1
- package/dist/ecdsa-attestation.d.ts.map +1 -1
- package/dist/ecdsa-attestation.js +4 -1
- package/dist/ecdsa-attestation.js.map +1 -1
- package/dist/epsilon-derivation.d.ts +8 -8
- package/dist/epsilon-derivation.js +7 -7
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/managed/compiler/contract-info.json +181 -0
- package/dist/managed/compiler/contract-manifest.json +16 -8
- package/dist/managed/contract/index.d.ts +48 -0
- package/dist/managed/contract/index.js +561 -349
- package/dist/managed/contract/index.js.map +2 -2
- package/dist/managed/zkir/assertTronExpirationWindowV1.zkir +63 -0
- package/dist/signature-requests-state-reader.d.ts +16 -10
- package/dist/signature-requests-state-reader.d.ts.map +1 -1
- package/dist/signature-requests-state-reader.js +31 -13
- package/dist/signature-requests-state-reader.js.map +1 -1
- package/dist/signature-response-verification.d.ts +52 -7
- package/dist/signature-response-verification.d.ts.map +1 -1
- package/dist/signature-response-verification.js +63 -13
- package/dist/signature-response-verification.js.map +1 -1
- package/dist/signet-contract-events.d.ts +1 -1
- package/dist/signet-request-id.js +3 -3
- package/dist/signet-request-id.js.map +1 -1
- package/dist/signet-request-response-reader.d.ts +112 -34
- package/dist/signet-request-response-reader.d.ts.map +1 -1
- package/dist/signet-request-response-reader.js +279 -96
- package/dist/signet-request-response-reader.js.map +1 -1
- package/dist/signet-requests.d.ts +9 -5
- package/dist/signet-requests.d.ts.map +1 -1
- package/dist/signet-requests.js +6 -2
- package/dist/signet-requests.js.map +1 -1
- package/dist/signet-tron-record-decoding.d.ts +2 -0
- package/dist/signet-tron-record-decoding.d.ts.map +1 -1
- package/dist/signet-tron-record-decoding.js +2 -0
- package/dist/signet-tron-record-decoding.js.map +1 -1
- package/dist/signet-tron-requests.d.ts +7 -3
- package/dist/signet-tron-requests.d.ts.map +1 -1
- package/dist/signet-tron-requests.js +6 -2
- package/dist/signet-tron-requests.js.map +1 -1
- package/dist/tron-node-api.d.ts +83 -0
- package/dist/tron-node-api.d.ts.map +1 -0
- package/dist/tron-node-api.js +134 -0
- package/dist/tron-node-api.js.map +1 -0
- package/dist/tron-transactions.d.ts +38 -1
- package/dist/tron-transactions.d.ts.map +1 -1
- package/dist/tron-transactions.js +35 -0
- package/dist/tron-transactions.js.map +1 -1
- package/package.json +2 -2
- package/src/Signet.compact +79 -10
- package/src/circuits.compact +9 -0
|
@@ -372,6 +372,68 @@
|
|
|
372
372
|
"length": 21
|
|
373
373
|
}
|
|
374
374
|
},
|
|
375
|
+
{
|
|
376
|
+
"name": "tronInt64Max",
|
|
377
|
+
"pure": true,
|
|
378
|
+
"proof": false,
|
|
379
|
+
"arguments": [
|
|
380
|
+
],
|
|
381
|
+
"result-type": {
|
|
382
|
+
"type-name": "Uint",
|
|
383
|
+
"maxval": 18446744073709551615
|
|
384
|
+
}
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
"name": "tronMaxExpirationSpanSeconds",
|
|
388
|
+
"pure": true,
|
|
389
|
+
"proof": false,
|
|
390
|
+
"arguments": [
|
|
391
|
+
],
|
|
392
|
+
"result-type": {
|
|
393
|
+
"type-name": "Uint",
|
|
394
|
+
"maxval": 18446744073709551615
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"name": "assertTronExpirationWindowV1",
|
|
399
|
+
"pure": false,
|
|
400
|
+
"proof": true,
|
|
401
|
+
"arguments": [
|
|
402
|
+
{
|
|
403
|
+
"name": "expiration",
|
|
404
|
+
"type": {
|
|
405
|
+
"type-name": "Uint",
|
|
406
|
+
"maxval": 18446744073709551615
|
|
407
|
+
}
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"name": "expirationSeconds",
|
|
411
|
+
"type": {
|
|
412
|
+
"type-name": "Uint",
|
|
413
|
+
"maxval": 18446744073709551615
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
"name": "minRemainingSeconds",
|
|
418
|
+
"type": {
|
|
419
|
+
"type-name": "Uint",
|
|
420
|
+
"maxval": 18446744073709551615
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"name": "capMarginSeconds",
|
|
425
|
+
"type": {
|
|
426
|
+
"type-name": "Uint",
|
|
427
|
+
"maxval": 18446744073709551615
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
],
|
|
431
|
+
"result-type": {
|
|
432
|
+
"type-name": "Tuple",
|
|
433
|
+
"types": [
|
|
434
|
+
]
|
|
435
|
+
}
|
|
436
|
+
},
|
|
375
437
|
{
|
|
376
438
|
"name": "evmAddressAbiWord",
|
|
377
439
|
"pure": true,
|
|
@@ -3379,6 +3441,125 @@
|
|
|
3379
3441
|
"length": 32
|
|
3380
3442
|
}
|
|
3381
3443
|
}
|
|
3444
|
+
},
|
|
3445
|
+
{
|
|
3446
|
+
"name": "assertTronTxParamsV1_2",
|
|
3447
|
+
"pure": true,
|
|
3448
|
+
"proof": false,
|
|
3449
|
+
"arguments": [
|
|
3450
|
+
{
|
|
3451
|
+
"name": "txParams",
|
|
3452
|
+
"type": {
|
|
3453
|
+
"type-name": "Struct",
|
|
3454
|
+
"name": "TronTxParams",
|
|
3455
|
+
"elements": [
|
|
3456
|
+
{
|
|
3457
|
+
"name": "refBlockBytes",
|
|
3458
|
+
"type": {
|
|
3459
|
+
"type-name": "Bytes",
|
|
3460
|
+
"length": 2
|
|
3461
|
+
}
|
|
3462
|
+
},
|
|
3463
|
+
{
|
|
3464
|
+
"name": "refBlockHash",
|
|
3465
|
+
"type": {
|
|
3466
|
+
"type-name": "Bytes",
|
|
3467
|
+
"length": 8
|
|
3468
|
+
}
|
|
3469
|
+
},
|
|
3470
|
+
{
|
|
3471
|
+
"name": "timestamp",
|
|
3472
|
+
"type": {
|
|
3473
|
+
"type-name": "Uint",
|
|
3474
|
+
"maxval": 18446744073709551615
|
|
3475
|
+
}
|
|
3476
|
+
},
|
|
3477
|
+
{
|
|
3478
|
+
"name": "expiration",
|
|
3479
|
+
"type": {
|
|
3480
|
+
"type-name": "Uint",
|
|
3481
|
+
"maxval": 18446744073709551615
|
|
3482
|
+
}
|
|
3483
|
+
},
|
|
3484
|
+
{
|
|
3485
|
+
"name": "feeLimit",
|
|
3486
|
+
"type": {
|
|
3487
|
+
"type-name": "Uint",
|
|
3488
|
+
"maxval": 18446744073709551615
|
|
3489
|
+
}
|
|
3490
|
+
},
|
|
3491
|
+
{
|
|
3492
|
+
"name": "contractAddress",
|
|
3493
|
+
"type": {
|
|
3494
|
+
"type-name": "Bytes",
|
|
3495
|
+
"length": 21
|
|
3496
|
+
}
|
|
3497
|
+
},
|
|
3498
|
+
{
|
|
3499
|
+
"name": "callValue",
|
|
3500
|
+
"type": {
|
|
3501
|
+
"type-name": "Uint",
|
|
3502
|
+
"maxval": 18446744073709551615
|
|
3503
|
+
}
|
|
3504
|
+
},
|
|
3505
|
+
{
|
|
3506
|
+
"name": "calldata",
|
|
3507
|
+
"type": {
|
|
3508
|
+
"type-name": "Struct",
|
|
3509
|
+
"name": "Maybe",
|
|
3510
|
+
"elements": [
|
|
3511
|
+
{
|
|
3512
|
+
"name": "is_some",
|
|
3513
|
+
"type": {
|
|
3514
|
+
"type-name": "Boolean"
|
|
3515
|
+
}
|
|
3516
|
+
},
|
|
3517
|
+
{
|
|
3518
|
+
"name": "value",
|
|
3519
|
+
"type": {
|
|
3520
|
+
"type-name": "Struct",
|
|
3521
|
+
"name": "EvmCalldata",
|
|
3522
|
+
"elements": [
|
|
3523
|
+
{
|
|
3524
|
+
"name": "selector",
|
|
3525
|
+
"type": {
|
|
3526
|
+
"type-name": "Bytes",
|
|
3527
|
+
"length": 4
|
|
3528
|
+
}
|
|
3529
|
+
},
|
|
3530
|
+
{
|
|
3531
|
+
"name": "noWords",
|
|
3532
|
+
"type": {
|
|
3533
|
+
"type-name": "Uint",
|
|
3534
|
+
"maxval": 65535
|
|
3535
|
+
}
|
|
3536
|
+
},
|
|
3537
|
+
{
|
|
3538
|
+
"name": "words",
|
|
3539
|
+
"type": {
|
|
3540
|
+
"type-name": "Vector",
|
|
3541
|
+
"length": 2,
|
|
3542
|
+
"type": {
|
|
3543
|
+
"type-name": "Bytes",
|
|
3544
|
+
"length": 32
|
|
3545
|
+
}
|
|
3546
|
+
}
|
|
3547
|
+
}
|
|
3548
|
+
]
|
|
3549
|
+
}
|
|
3550
|
+
}
|
|
3551
|
+
]
|
|
3552
|
+
}
|
|
3553
|
+
}
|
|
3554
|
+
]
|
|
3555
|
+
}
|
|
3556
|
+
}
|
|
3557
|
+
],
|
|
3558
|
+
"result-type": {
|
|
3559
|
+
"type-name": "Tuple",
|
|
3560
|
+
"types": [
|
|
3561
|
+
]
|
|
3562
|
+
}
|
|
3382
3563
|
}
|
|
3383
3564
|
],
|
|
3384
3565
|
"witnesses": [
|
|
@@ -8,26 +8,34 @@
|
|
|
8
8
|
"type": "directory",
|
|
9
9
|
"contract-info.json": {
|
|
10
10
|
"type": "file",
|
|
11
|
-
"size":
|
|
12
|
-
"hash": "
|
|
11
|
+
"size": 105222,
|
|
12
|
+
"hash": "c3b226ad944f2070e149292e375194434c5c0683479af6cb8e9621ef5f35d80d"
|
|
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": 70307,
|
|
20
|
+
"hash": "3c1b2bda54775f5d402e927285198153a4b3b994fff58ca0a714843dead8bab0"
|
|
21
21
|
},
|
|
22
22
|
"index.js": {
|
|
23
23
|
"type": "file",
|
|
24
|
-
"size":
|
|
25
|
-
"hash": "
|
|
24
|
+
"size": 228446,
|
|
25
|
+
"hash": "3f5cb3177026768a055a81d931652ffcca90963d9676f0a8462c054a7f6ff514"
|
|
26
26
|
},
|
|
27
27
|
"index.js.map": {
|
|
28
28
|
"type": "file",
|
|
29
|
-
"size":
|
|
30
|
-
"hash": "
|
|
29
|
+
"size": 14825,
|
|
30
|
+
"hash": "d7780b68f9b8a4fbaf6be21b9cbd87ef5bafee11a66539811186885fcabb0e20"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"zkir": {
|
|
34
|
+
"type": "directory",
|
|
35
|
+
"assertTronExpirationWindowV1.zkir": {
|
|
36
|
+
"type": "file",
|
|
37
|
+
"size": 4324,
|
|
38
|
+
"hash": "1d963176dd0e11d92f5ca83e17ebf9c0556b238b983ead2a1cd3f14acf9578a5"
|
|
31
39
|
}
|
|
32
40
|
}
|
|
33
41
|
}
|
|
@@ -17,9 +17,19 @@ export type Witnesses<PS> = {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export type ImpureCircuits<PS> = {
|
|
20
|
+
assertTronExpirationWindowV1(context: __compactRuntime.CircuitContext<PS>,
|
|
21
|
+
expiration_0: bigint,
|
|
22
|
+
expirationSeconds_0: bigint,
|
|
23
|
+
minRemainingSeconds_0: bigint,
|
|
24
|
+
capMarginSeconds_0: bigint): Promise<__compactRuntime.CircuitResults<PS, []>>;
|
|
20
25
|
}
|
|
21
26
|
|
|
22
27
|
export type ProvableCircuits<PS> = {
|
|
28
|
+
assertTronExpirationWindowV1(context: __compactRuntime.CircuitContext<PS>,
|
|
29
|
+
expiration_0: bigint,
|
|
30
|
+
expirationSeconds_0: bigint,
|
|
31
|
+
minRemainingSeconds_0: bigint,
|
|
32
|
+
capMarginSeconds_0: bigint): Promise<__compactRuntime.CircuitResults<PS, []>>;
|
|
23
33
|
}
|
|
24
34
|
|
|
25
35
|
export type PureCircuits = {
|
|
@@ -59,6 +69,8 @@ export type PureCircuits = {
|
|
|
59
69
|
ethereumCaip2Id(): Uint8Array;
|
|
60
70
|
tronCaip2Id(): Uint8Array;
|
|
61
71
|
tronAddress(evmAddress_0: Uint8Array): Uint8Array;
|
|
72
|
+
tronInt64Max(): bigint;
|
|
73
|
+
tronMaxExpirationSpanSeconds(): bigint;
|
|
62
74
|
evmAddressAbiWord(addr_0: Uint8Array): Uint8Array;
|
|
63
75
|
numericAbiWord(value_0: bigint): Uint8Array;
|
|
64
76
|
boolAbiWord(value_0: boolean): Uint8Array;
|
|
@@ -395,6 +407,20 @@ export type PureCircuits = {
|
|
|
395
407
|
outputDeserializationSchema: Uint8Array,
|
|
396
408
|
respondSerializationSchema: Uint8Array
|
|
397
409
|
}): Uint8Array;
|
|
410
|
+
assertTronTxParamsV1_2(txParams_0: { refBlockBytes: Uint8Array,
|
|
411
|
+
refBlockHash: Uint8Array,
|
|
412
|
+
timestamp: bigint,
|
|
413
|
+
expiration: bigint,
|
|
414
|
+
feeLimit: bigint,
|
|
415
|
+
contractAddress: Uint8Array,
|
|
416
|
+
callValue: bigint,
|
|
417
|
+
calldata: { is_some: boolean,
|
|
418
|
+
value: { selector: Uint8Array,
|
|
419
|
+
noWords: bigint,
|
|
420
|
+
words: Uint8Array[]
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
}): [];
|
|
398
424
|
}
|
|
399
425
|
|
|
400
426
|
export type Circuits<PS> = {
|
|
@@ -439,6 +465,13 @@ export type Circuits<PS> = {
|
|
|
439
465
|
tronCaip2Id(context: __compactRuntime.CircuitContext<PS>): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
|
|
440
466
|
tronAddress(context: __compactRuntime.CircuitContext<PS>,
|
|
441
467
|
evmAddress_0: Uint8Array): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
|
|
468
|
+
tronInt64Max(context: __compactRuntime.CircuitContext<PS>): Promise<__compactRuntime.CircuitResults<PS, bigint>>;
|
|
469
|
+
tronMaxExpirationSpanSeconds(context: __compactRuntime.CircuitContext<PS>): Promise<__compactRuntime.CircuitResults<PS, bigint>>;
|
|
470
|
+
assertTronExpirationWindowV1(context: __compactRuntime.CircuitContext<PS>,
|
|
471
|
+
expiration_0: bigint,
|
|
472
|
+
expirationSeconds_0: bigint,
|
|
473
|
+
minRemainingSeconds_0: bigint,
|
|
474
|
+
capMarginSeconds_0: bigint): Promise<__compactRuntime.CircuitResults<PS, []>>;
|
|
442
475
|
evmAddressAbiWord(context: __compactRuntime.CircuitContext<PS>,
|
|
443
476
|
addr_0: Uint8Array): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
|
|
444
477
|
numericAbiWord(context: __compactRuntime.CircuitContext<PS>, value_0: bigint): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
|
|
@@ -798,6 +831,21 @@ export type Circuits<PS> = {
|
|
|
798
831
|
outputDeserializationSchema: Uint8Array,
|
|
799
832
|
respondSerializationSchema: Uint8Array
|
|
800
833
|
}): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
|
|
834
|
+
assertTronTxParamsV1_2(context: __compactRuntime.CircuitContext<PS>,
|
|
835
|
+
txParams_0: { refBlockBytes: Uint8Array,
|
|
836
|
+
refBlockHash: Uint8Array,
|
|
837
|
+
timestamp: bigint,
|
|
838
|
+
expiration: bigint,
|
|
839
|
+
feeLimit: bigint,
|
|
840
|
+
contractAddress: Uint8Array,
|
|
841
|
+
callValue: bigint,
|
|
842
|
+
calldata: { is_some: boolean,
|
|
843
|
+
value: { selector: Uint8Array,
|
|
844
|
+
noWords: bigint,
|
|
845
|
+
words: Uint8Array[]
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
}): Promise<__compactRuntime.CircuitResults<PS, []>>;
|
|
801
849
|
}
|
|
802
850
|
|
|
803
851
|
export type Ledger = {
|