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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/dist/compact-descriptors.d.ts +8 -0
  2. package/dist/compact-descriptors.d.ts.map +1 -1
  3. package/dist/compact-descriptors.js +13 -1
  4. package/dist/compact-descriptors.js.map +1 -1
  5. package/dist/constants.d.ts.map +1 -1
  6. package/dist/constants.js +18 -9
  7. package/dist/constants.js.map +1 -1
  8. package/dist/index.d.ts +5 -1
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/index.js +7 -2
  11. package/dist/index.js.map +1 -1
  12. package/dist/managed/compiler/contract-info.json +714 -5
  13. package/dist/managed/compiler/contract-manifest.json +8 -8
  14. package/dist/managed/contract/index.d.ts +168 -1
  15. package/dist/managed/contract/index.js +678 -312
  16. package/dist/managed/contract/index.js.map +1 -1
  17. package/dist/signature-requests-state-reader.d.ts +3 -3
  18. package/dist/signature-requests-state-reader.d.ts.map +1 -1
  19. package/dist/signature-requests-state-reader.js +6 -2
  20. package/dist/signature-requests-state-reader.js.map +1 -1
  21. package/dist/signature-response-verification.d.ts +24 -9
  22. package/dist/signature-response-verification.d.ts.map +1 -1
  23. package/dist/signature-response-verification.js +35 -12
  24. package/dist/signature-response-verification.js.map +1 -1
  25. package/dist/signet-contract-events.d.ts +6 -0
  26. package/dist/signet-contract-events.d.ts.map +1 -1
  27. package/dist/signet-contract-events.js +8 -6
  28. package/dist/signet-contract-events.js.map +1 -1
  29. package/dist/signet-evtype2tx-requests.d.ts.map +1 -1
  30. package/dist/signet-evtype2tx-requests.js +1 -7
  31. package/dist/signet-evtype2tx-requests.js.map +1 -1
  32. package/dist/signet-request-id.d.ts +2 -2
  33. package/dist/signet-request-id.d.ts.map +1 -1
  34. package/dist/signet-request-id.js +18 -8
  35. package/dist/signet-request-id.js.map +1 -1
  36. package/dist/signet-request-response-reader.d.ts +35 -11
  37. package/dist/signet-request-response-reader.d.ts.map +1 -1
  38. package/dist/signet-request-response-reader.js +76 -29
  39. package/dist/signet-request-response-reader.js.map +1 -1
  40. package/dist/signet-requests.d.ts +18 -10
  41. package/dist/signet-requests.d.ts.map +1 -1
  42. package/dist/signet-requests.js +19 -10
  43. package/dist/signet-requests.js.map +1 -1
  44. package/dist/signet-tron-record-decoding.d.ts +11 -0
  45. package/dist/signet-tron-record-decoding.d.ts.map +1 -0
  46. package/dist/signet-tron-record-decoding.js +29 -0
  47. package/dist/signet-tron-record-decoding.js.map +1 -0
  48. package/dist/signet-tron-requests.d.ts +36 -0
  49. package/dist/signet-tron-requests.d.ts.map +1 -0
  50. package/dist/signet-tron-requests.js +76 -0
  51. package/dist/signet-tron-requests.js.map +1 -0
  52. package/dist/tron-transactions.d.ts +52 -0
  53. package/dist/tron-transactions.d.ts.map +1 -0
  54. package/dist/tron-transactions.js +181 -0
  55. package/dist/tron-transactions.js.map +1 -0
  56. package/dist/url-redaction.d.ts +11 -0
  57. package/dist/url-redaction.d.ts.map +1 -0
  58. package/dist/url-redaction.js +21 -0
  59. package/dist/url-redaction.js.map +1 -0
  60. package/package.json +2 -2
  61. package/src/Signet.compact +71 -1
  62. package/src/circuits.compact +26 -0
@@ -8,26 +8,26 @@
8
8
  "type": "directory",
9
9
  "contract-info.json": {
10
10
  "type": "file",
11
- "size": 65099,
12
- "hash": "b6360d41cfd72971305f1615a64d05ce53b33bee8213e10100856f1e495e3467"
11
+ "size": 86492,
12
+ "hash": "94481ce6e5682dc79f2ac275437177865a572ae09f884b0d6f4e3ed8cb168726"
13
13
  }
14
14
  },
15
15
  "contract": {
16
16
  "type": "directory",
17
17
  "index.d.ts": {
18
18
  "type": "file",
19
- "size": 46552,
20
- "hash": "22ce8bc5624983728bb171b56c6bdd5f24598b5a86a208f2bf3dccaa5bbf2529"
19
+ "size": 59130,
20
+ "hash": "d99f6774e42c3d4bbde09a1c318560209bc6fd7eaa525485a99192aa079e1ad3"
21
21
  },
22
22
  "index.js": {
23
23
  "type": "file",
24
- "size": 154246,
25
- "hash": "b3828bd9cac94b615eb5b2daeeac95890a946f00650c5910a2fac45d8a6c5872"
24
+ "size": 192758,
25
+ "hash": "9d5bdb0aefda3c3c8f65d7a73858f1a4539fdce03369a578781afbb0614b0a72"
26
26
  },
27
27
  "index.js.map": {
28
28
  "type": "file",
29
- "size": 10920,
30
- "hash": "d996306a40c2ef5bd201c201be9a34009fc807ed7b51cf98306d82ac744ba187"
29
+ "size": 12919,
30
+ "hash": "ffbd7f74ee79f3eea8cbd3f3f8c59b536512e00ee088965c628cf522cfe0ab5e"
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,84 @@ 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;
266
348
  }
267
349
 
268
350
  export type Circuits<PS> = {
@@ -304,6 +386,9 @@ export type Circuits<PS> = {
304
386
  },
305
387
  mpcResponseKey_0: __compactRuntime.Secp256k1Point): Promise<__compactRuntime.CircuitResults<PS, boolean>>;
306
388
  ethereumCaip2Id(context: __compactRuntime.CircuitContext<PS>): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
389
+ tronCaip2Id(context: __compactRuntime.CircuitContext<PS>): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
390
+ tronAddress(context: __compactRuntime.CircuitContext<PS>,
391
+ evmAddress_0: Uint8Array): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
307
392
  evmAddressAbiWord(context: __compactRuntime.CircuitContext<PS>,
308
393
  addr_0: Uint8Array): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
309
394
  numericAbiWord(context: __compactRuntime.CircuitContext<PS>, value_0: bigint): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
@@ -529,6 +614,88 @@ export type Circuits<PS> = {
529
614
  outputDeserializationSchema: Uint8Array,
530
615
  respondSerializationSchema: Uint8Array
531
616
  }>>;
617
+ calculateTronTxParamsDigestV1_1(context: __compactRuntime.CircuitContext<PS>,
618
+ txParams_0: { refBlockBytes: Uint8Array,
619
+ refBlockHash: Uint8Array,
620
+ timestamp: bigint,
621
+ expiration: bigint,
622
+ feeLimit: bigint,
623
+ contractAddress: Uint8Array,
624
+ callValue: bigint,
625
+ calldata: { is_some: boolean,
626
+ value: { selector: Uint8Array,
627
+ noWords: bigint,
628
+ words: Uint8Array[]
629
+ }
630
+ }
631
+ }): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
632
+ calculateTronTxParamsDigestV1_2(context: __compactRuntime.CircuitContext<PS>,
633
+ txParams_0: { refBlockBytes: Uint8Array,
634
+ refBlockHash: Uint8Array,
635
+ timestamp: bigint,
636
+ expiration: bigint,
637
+ feeLimit: bigint,
638
+ contractAddress: Uint8Array,
639
+ callValue: bigint,
640
+ calldata: { is_some: boolean,
641
+ value: { selector: Uint8Array,
642
+ noWords: bigint,
643
+ words: Uint8Array[]
644
+ }
645
+ }
646
+ }): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
647
+ calculateTronRequestIdV1_1_0(context: __compactRuntime.CircuitContext<PS>,
648
+ request_0: { keyVersion: bigint,
649
+ sender: { bytes: Uint8Array },
650
+ path: Uint8Array,
651
+ algo: number,
652
+ txParamType: number,
653
+ txParams: { refBlockBytes: Uint8Array,
654
+ refBlockHash: Uint8Array,
655
+ timestamp: bigint,
656
+ expiration: bigint,
657
+ feeLimit: bigint,
658
+ contractAddress: Uint8Array,
659
+ callValue: bigint,
660
+ calldata: { is_some: boolean,
661
+ value: { selector: Uint8Array,
662
+ noWords: bigint,
663
+ words: Uint8Array[]
664
+ }
665
+ }
666
+ },
667
+ executionDest: Uint8Array,
668
+ signatureDest: number,
669
+ params: Uint8Array,
670
+ outputDeserializationSchema: Uint8Array,
671
+ respondSerializationSchema: Uint8Array
672
+ }): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
673
+ calculateTronRequestIdV1_2_0(context: __compactRuntime.CircuitContext<PS>,
674
+ request_0: { keyVersion: bigint,
675
+ sender: { bytes: Uint8Array },
676
+ path: Uint8Array,
677
+ algo: number,
678
+ txParamType: number,
679
+ txParams: { refBlockBytes: Uint8Array,
680
+ refBlockHash: Uint8Array,
681
+ timestamp: bigint,
682
+ expiration: bigint,
683
+ feeLimit: bigint,
684
+ contractAddress: Uint8Array,
685
+ callValue: bigint,
686
+ calldata: { is_some: boolean,
687
+ value: { selector: Uint8Array,
688
+ noWords: bigint,
689
+ words: Uint8Array[]
690
+ }
691
+ }
692
+ },
693
+ executionDest: Uint8Array,
694
+ signatureDest: number,
695
+ params: Uint8Array,
696
+ outputDeserializationSchema: Uint8Array,
697
+ respondSerializationSchema: Uint8Array
698
+ }): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
532
699
  }
533
700
 
534
701
  export type Ledger = {