@typeberry/lib 0.5.0-968a029 → 0.5.0-aae80ac

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 (4) hide show
  1. package/index.cjs +123 -261
  2. package/index.d.ts +81 -90
  3. package/index.js +123 -261
  4. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -142,14 +142,12 @@ declare namespace index$A {
142
142
  }
143
143
 
144
144
  declare enum GpVersion {
145
- V0_6_7 = "0.6.7",
146
145
  V0_7_0 = "0.7.0",
147
146
  V0_7_1 = "0.7.1",
148
147
  V0_7_2 = "0.7.2"
149
148
  }
150
149
  declare enum TestSuite {
151
- W3F_DAVXY = "w3f-davxy",
152
- JAMDUNA = "jamduna"
150
+ W3F_DAVXY = "w3f-davxy"
153
151
  }
154
152
  declare const DEFAULT_SUITE = TestSuite.W3F_DAVXY;
155
153
  declare const DEFAULT_VERSION = GpVersion.V0_7_2;
@@ -161,7 +159,6 @@ declare class Compatibility {
161
159
  static is(...version: GpVersion[]): boolean;
162
160
  static isSuite(suite: TestSuite, version?: GpVersion): boolean;
163
161
  static isGreaterOrEqual(version: GpVersion): boolean;
164
- static isLessThan(version: GpVersion): boolean;
165
162
  /**
166
163
  * Allows selecting different values for different Gray Paper versions from one record.
167
164
  *
@@ -2693,7 +2690,7 @@ declare const encodeUnsealedHeader: (view: HeaderView) => BytesBlob;
2693
2690
  /**
2694
2691
  * The header of the JAM block.
2695
2692
  *
2696
- * https://graypaper.fluffylabs.dev/#/579bd12/0c66000c7200
2693
+ * https://graypaper.fluffylabs.dev/#/ab2cdbd/0c66000c7200?v=0.7.2
2697
2694
  */
2698
2695
  declare class Header extends WithDebug {
2699
2696
  static Codec: Descriptor<Header & CodecRecord<Header>, ViewOf<Header & CodecRecord<Header>, {
@@ -2715,9 +2712,9 @@ declare class Header extends WithDebug {
2715
2712
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
2716
2713
  }>>>;
2717
2714
  }> | null>;
2718
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
2719
2715
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
2720
2716
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
2717
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
2721
2718
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
2722
2719
  }>>;
2723
2720
  static create(h: CodecRecord<Header>): Header & CodecRecord<Header>;
@@ -2781,9 +2778,9 @@ declare const headerViewWithHashCodec: Descriptor<WithHash<OpaqueHash & WithOpaq
2781
2778
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
2782
2779
  }>>>;
2783
2780
  }> | null>;
2784
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
2785
2781
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
2786
2782
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
2783
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
2787
2784
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
2788
2785
  }>>, ViewOf<WithHash<OpaqueHash & WithOpaque<"HeaderHash">, ViewOf<Header & CodecRecord<Header>, {
2789
2786
  parentHeaderHash: Descriptor<Bytes<32> & WithOpaque<"HeaderHash">, Bytes<32>>;
@@ -2804,9 +2801,9 @@ declare const headerViewWithHashCodec: Descriptor<WithHash<OpaqueHash & WithOpaq
2804
2801
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
2805
2802
  }>>>;
2806
2803
  }> | null>;
2807
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
2808
2804
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
2809
2805
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
2806
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
2810
2807
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
2811
2808
  }>>, {
2812
2809
  hash: Descriptor<Bytes<32> & WithOpaque<"HeaderHash">, Bytes<32>>;
@@ -2829,9 +2826,9 @@ declare const headerViewWithHashCodec: Descriptor<WithHash<OpaqueHash & WithOpaq
2829
2826
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
2830
2827
  }>>>;
2831
2828
  }> | null>;
2832
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
2833
2829
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
2834
2830
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
2831
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
2835
2832
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
2836
2833
  }>, ViewOf<Header & CodecRecord<Header>, {
2837
2834
  parentHeaderHash: Descriptor<Bytes<32> & WithOpaque<"HeaderHash">, Bytes<32>>;
@@ -2852,9 +2849,9 @@ declare const headerViewWithHashCodec: Descriptor<WithHash<OpaqueHash & WithOpaq
2852
2849
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
2853
2850
  }>>>;
2854
2851
  }> | null>;
2855
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
2856
2852
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
2857
2853
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
2854
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
2858
2855
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
2859
2856
  }>>;
2860
2857
  }>>;
@@ -3290,7 +3287,7 @@ declare function workItemExtrinsicsCodec(workItems: WorkItem[]): Descriptor<read
3290
3287
  /**
3291
3288
  * Work Item which is a part of some work package.
3292
3289
  *
3293
- * https://graypaper.fluffylabs.dev/#/579bd12/198b00199600
3290
+ * https://graypaper.fluffylabs.dev/#/ab2cdbd/1a86001a9100?v=0.7.2
3294
3291
  */
3295
3292
  declare class WorkItem extends WithDebug {
3296
3293
  /** `s`: related service */
@@ -3457,16 +3454,16 @@ declare class WorkPackageSpec extends WithDebug {
3457
3454
  /**
3458
3455
  * A report of execution of some work package.
3459
3456
  *
3460
- * https://graypaper.fluffylabs.dev/#/cc517d7/131c01132401?v=0.6.5
3457
+ * https://graypaper.fluffylabs.dev/#/ab2cdbd/13bb0113c301?v=0.7.2
3461
3458
  */
3462
- declare class WorkReportNoCodec extends WithDebug {
3459
+ declare class WorkReport extends WithDebug {
3463
3460
  /** `s`: Work package specification. */
3464
3461
  readonly workPackageSpec: WorkPackageSpec;
3465
- /** `x`: Refinement context. */
3462
+ /** `c`: Refinement context. */
3466
3463
  readonly context: RefineContext;
3467
- /** `c`: Core index on which the work is done. */
3464
+ /** *`c`*: Core index on which the work is done. */
3468
3465
  readonly coreIndex: CoreIndex;
3469
- /** `a`: Hash of the authorizer. */
3466
+ /** *`a`*: Hash of the authorizer. */
3470
3467
  readonly authorizerHash: AuthorizerHash;
3471
3468
  /** `o`: Authorization output. */
3472
3469
  readonly authorizationOutput: BytesBlob;
@@ -3477,17 +3474,56 @@ declare class WorkReportNoCodec extends WithDebug {
3477
3474
  readonly segmentRootLookup: readonly WorkPackageInfo[];
3478
3475
  /** `r`: The results of evaluation of each of the items in the work package. */
3479
3476
  readonly results: FixedSizeArray<WorkResult, WorkItemsCount>;
3480
- /** `g`: Gas used during authorization. */
3477
+ /** *`g`*: Gas used during authorization. */
3481
3478
  readonly authorizationGasUsed: ServiceGas;
3482
- static create({ workPackageSpec, context, coreIndex, authorizerHash, authorizationOutput, segmentRootLookup, results, authorizationGasUsed, }: CodecRecord<WorkReportNoCodec>): WorkReportNoCodec;
3479
+ static Codec: Descriptor<WorkReport, ViewOf<WorkReport, {
3480
+ workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
3481
+ hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
3482
+ length: Descriptor<U32, Bytes<4>>;
3483
+ erasureRoot: Descriptor<Bytes<32>, Bytes<32>>;
3484
+ exportsRoot: Descriptor<Bytes<32> & WithOpaque<"ExportsRootHash">, Bytes<32>>;
3485
+ exportsCount: Descriptor<U16, Bytes<2>>;
3486
+ }>>;
3487
+ context: Descriptor<RefineContext, ViewOf<RefineContext, {
3488
+ anchor: Descriptor<Bytes<32> & WithOpaque<"HeaderHash">, Bytes<32>>;
3489
+ stateRoot: Descriptor<Bytes<32> & WithOpaque<"StateRootHash">, Bytes<32>>;
3490
+ beefyRoot: Descriptor<Bytes<32> & WithOpaque<"BeefyHash">, Bytes<32>>;
3491
+ lookupAnchor: Descriptor<Bytes<32> & WithOpaque<"HeaderHash">, Bytes<32>>;
3492
+ lookupAnchorSlot: Descriptor<number & WithBytesRepresentation<4> & WithOpaque<"TimeSlot[u32]">, Bytes<4>>;
3493
+ prerequisites: Descriptor<(Bytes<32> & WithOpaque<"WorkPackageHash">)[], SequenceView<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>>;
3494
+ }>>;
3495
+ coreIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"CoreIndex[u16]">, U32>;
3496
+ authorizerHash: Descriptor<Bytes<32> & WithOpaque<"AuthorizerHash">, Bytes<32>>;
3497
+ authorizationGasUsed: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, U64>;
3498
+ authorizationOutput: Descriptor<BytesBlob, BytesBlob>;
3499
+ segmentRootLookup: Descriptor<readonly WorkPackageInfo[], SequenceView<WorkPackageInfo, ViewOf<WorkPackageInfo, {
3500
+ workPackageHash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
3501
+ segmentTreeRoot: Descriptor<Bytes<32> & WithOpaque<"ExportsRootHash">, Bytes<32>>;
3502
+ }>>>;
3503
+ results: Descriptor<FixedSizeArray<WorkResult, U8>, SequenceView<WorkResult, ViewOf<WorkResult, {
3504
+ serviceId: Descriptor<number & WithBytesRepresentation<4> & WithOpaque<"ServiceId[u32]">, Bytes<4>>;
3505
+ codeHash: Descriptor<Bytes<32> & WithOpaque<"CodeHash">, Bytes<32>>;
3506
+ payloadHash: Descriptor<Bytes<32>, Bytes<32>>;
3507
+ gas: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, Bytes<8>>;
3508
+ result: Descriptor<WorkExecResult, WorkExecResult>;
3509
+ load: Descriptor<WorkRefineLoad, ViewOf<WorkRefineLoad, {
3510
+ gasUsed: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, U64>;
3511
+ importedSegments: Descriptor<U32, U32>;
3512
+ extrinsicCount: Descriptor<U32, U32>;
3513
+ extrinsicSize: Descriptor<U32, U32>;
3514
+ exportedSegments: Descriptor<U32, U32>;
3515
+ }>>;
3516
+ }>>>;
3517
+ }>>;
3518
+ static create({ workPackageSpec, context, coreIndex, authorizerHash, authorizationOutput, segmentRootLookup, results, authorizationGasUsed, }: CodecRecord<WorkReport>): WorkReport;
3483
3519
  protected constructor(
3484
3520
  /** `s`: Work package specification. */
3485
3521
  workPackageSpec: WorkPackageSpec,
3486
- /** `x`: Refinement context. */
3522
+ /** `c`: Refinement context. */
3487
3523
  context: RefineContext,
3488
- /** `c`: Core index on which the work is done. */
3524
+ /** *`c`*: Core index on which the work is done. */
3489
3525
  coreIndex: CoreIndex,
3490
- /** `a`: Hash of the authorizer. */
3526
+ /** *`a`*: Hash of the authorizer. */
3491
3527
  authorizerHash: AuthorizerHash,
3492
3528
  /** `o`: Authorization output. */
3493
3529
  authorizationOutput: BytesBlob,
@@ -3498,63 +3534,18 @@ declare class WorkReportNoCodec extends WithDebug {
3498
3534
  segmentRootLookup: readonly WorkPackageInfo[],
3499
3535
  /** `r`: The results of evaluation of each of the items in the work package. */
3500
3536
  results: FixedSizeArray<WorkResult, WorkItemsCount>,
3501
- /** `g`: Gas used during authorization. */
3537
+ /** *`g`*: Gas used during authorization. */
3502
3538
  authorizationGasUsed: ServiceGas);
3503
3539
  }
3504
- declare const WorkReportCodec: Descriptor<WorkReportNoCodec, ViewOf<WorkReportNoCodec, {
3505
- workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
3506
- hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
3507
- length: Descriptor<U32, Bytes<4>>;
3508
- erasureRoot: Descriptor<Bytes<32>, Bytes<32>>;
3509
- exportsRoot: Descriptor<Bytes<32> & WithOpaque<"ExportsRootHash">, Bytes<32>>;
3510
- exportsCount: Descriptor<U16, Bytes<2>>;
3511
- }>>;
3512
- context: Descriptor<RefineContext, ViewOf<RefineContext, {
3513
- anchor: Descriptor<Bytes<32> & WithOpaque<"HeaderHash">, Bytes<32>>;
3514
- stateRoot: Descriptor<Bytes<32> & WithOpaque<"StateRootHash">, Bytes<32>>;
3515
- beefyRoot: Descriptor<Bytes<32> & WithOpaque<"BeefyHash">, Bytes<32>>;
3516
- lookupAnchor: Descriptor<Bytes<32> & WithOpaque<"HeaderHash">, Bytes<32>>;
3517
- lookupAnchorSlot: Descriptor<number & WithBytesRepresentation<4> & WithOpaque<"TimeSlot[u32]">, Bytes<4>>;
3518
- prerequisites: Descriptor<(Bytes<32> & WithOpaque<"WorkPackageHash">)[], SequenceView<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>>;
3519
- }>>;
3520
- coreIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"CoreIndex[u16]">, U32>;
3521
- authorizerHash: Descriptor<Bytes<32> & WithOpaque<"AuthorizerHash">, Bytes<32>>;
3522
- authorizationGasUsed: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, U64>;
3523
- authorizationOutput: Descriptor<BytesBlob, BytesBlob>;
3524
- segmentRootLookup: Descriptor<readonly WorkPackageInfo[], SequenceView<WorkPackageInfo, ViewOf<WorkPackageInfo, {
3525
- workPackageHash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
3526
- segmentTreeRoot: Descriptor<Bytes<32> & WithOpaque<"ExportsRootHash">, Bytes<32>>;
3527
- }>>>;
3528
- results: Descriptor<FixedSizeArray<WorkResult, U8>, SequenceView<WorkResult, ViewOf<WorkResult, {
3529
- serviceId: Descriptor<number & WithBytesRepresentation<4> & WithOpaque<"ServiceId[u32]">, Bytes<4>>;
3530
- codeHash: Descriptor<Bytes<32> & WithOpaque<"CodeHash">, Bytes<32>>;
3531
- payloadHash: Descriptor<Bytes<32>, Bytes<32>>;
3532
- gas: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, Bytes<8>>;
3533
- result: Descriptor<WorkExecResult, WorkExecResult>;
3534
- load: Descriptor<WorkRefineLoad, ViewOf<WorkRefineLoad, {
3535
- gasUsed: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, U64>;
3536
- importedSegments: Descriptor<U32, U32>;
3537
- extrinsicCount: Descriptor<U32, U32>;
3538
- extrinsicSize: Descriptor<U32, U32>;
3539
- exportedSegments: Descriptor<U32, U32>;
3540
- }>>;
3541
- }>>>;
3542
- }>>;
3543
- declare class WorkReport extends WorkReportNoCodec {
3544
- static Codec: typeof WorkReportCodec;
3545
- }
3546
3540
 
3547
3541
  type workReport_WorkPackageSpec = WorkPackageSpec;
3548
3542
  declare const workReport_WorkPackageSpec: typeof WorkPackageSpec;
3549
3543
  type workReport_WorkReport = WorkReport;
3550
3544
  declare const workReport_WorkReport: typeof WorkReport;
3551
- type workReport_WorkReportNoCodec = WorkReportNoCodec;
3552
- declare const workReport_WorkReportNoCodec: typeof WorkReportNoCodec;
3553
3545
  declare namespace workReport {
3554
3546
  export {
3555
3547
  workReport_WorkPackageSpec as WorkPackageSpec,
3556
3548
  workReport_WorkReport as WorkReport,
3557
- workReport_WorkReportNoCodec as WorkReportNoCodec,
3558
3549
  };
3559
3550
  }
3560
3551
 
@@ -3602,7 +3593,7 @@ declare class ReportGuarantee extends WithDebug {
3602
3593
  */
3603
3594
  readonly credentials: KnownSizeArray<Credential, `${REQUIRED_CREDENTIALS}`>;
3604
3595
  static Codec: Descriptor<ReportGuarantee, ViewOf<ReportGuarantee, {
3605
- report: Descriptor<WorkReportNoCodec, ViewOf<WorkReportNoCodec, {
3596
+ report: Descriptor<WorkReport, ViewOf<WorkReport, {
3606
3597
  workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
3607
3598
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
3608
3599
  length: Descriptor<U32, Bytes<4>>;
@@ -3661,7 +3652,7 @@ declare const GuaranteesExtrinsicBounds = "[0..CoresCount)";
3661
3652
  */
3662
3653
  type GuaranteesExtrinsic = KnownSizeArray<ReportGuarantee, typeof GuaranteesExtrinsicBounds>;
3663
3654
  declare const guaranteesExtrinsicCodec: Descriptor<readonly ReportGuarantee[] & WithOpaque<"[0..CoresCount)">, SequenceView<ReportGuarantee, ViewOf<ReportGuarantee, {
3664
- report: Descriptor<WorkReportNoCodec, ViewOf<WorkReportNoCodec, {
3655
+ report: Descriptor<WorkReport, ViewOf<WorkReport, {
3665
3656
  workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
3666
3657
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
3667
3658
  length: Descriptor<U32, Bytes<4>>;
@@ -3806,7 +3797,7 @@ declare class Extrinsic extends WithDebug {
3806
3797
  blob: Descriptor<BytesBlob, BytesBlob>;
3807
3798
  }>>>;
3808
3799
  guarantees: Descriptor<readonly ReportGuarantee[] & WithOpaque<"[0..CoresCount)">, SequenceView<ReportGuarantee, ViewOf<ReportGuarantee, {
3809
- report: Descriptor<WorkReportNoCodec, ViewOf<WorkReportNoCodec, {
3800
+ report: Descriptor<WorkReport, ViewOf<WorkReport, {
3810
3801
  workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
3811
3802
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
3812
3803
  length: Descriptor<U32, Bytes<4>>;
@@ -3916,9 +3907,9 @@ declare class Block extends WithDebug {
3916
3907
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
3917
3908
  }>>>;
3918
3909
  }> | null>;
3919
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
3920
3910
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
3921
3911
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
3912
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
3922
3913
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
3923
3914
  }>>;
3924
3915
  extrinsic: Descriptor<Extrinsic, ViewOf<Extrinsic, {
@@ -3931,7 +3922,7 @@ declare class Block extends WithDebug {
3931
3922
  blob: Descriptor<BytesBlob, BytesBlob>;
3932
3923
  }>>>;
3933
3924
  guarantees: Descriptor<readonly ReportGuarantee[] & WithOpaque<"[0..CoresCount)">, SequenceView<ReportGuarantee, ViewOf<ReportGuarantee, {
3934
- report: Descriptor<WorkReportNoCodec, ViewOf<WorkReportNoCodec, {
3925
+ report: Descriptor<WorkReport, ViewOf<WorkReport, {
3935
3926
  workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
3936
3927
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
3937
3928
  length: Descriptor<U32, Bytes<4>>;
@@ -4658,7 +4649,7 @@ declare class NotYetAccumulatedReport extends WithDebug {
4658
4649
  */
4659
4650
  readonly dependencies: KnownSizeArray<WorkPackageHash, `[0..${MAX_REPORT_DEPENDENCIES})`>;
4660
4651
  static Codec: Descriptor<NotYetAccumulatedReport, ViewOf<NotYetAccumulatedReport, {
4661
- report: Descriptor<WorkReportNoCodec, ViewOf<WorkReportNoCodec, {
4652
+ report: Descriptor<WorkReport, ViewOf<WorkReport, {
4662
4653
  workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
4663
4654
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
4664
4655
  length: Descriptor<U32, Bytes<4>>;
@@ -4707,7 +4698,7 @@ declare class NotYetAccumulatedReport extends WithDebug {
4707
4698
  */
4708
4699
  type AccumulationQueue = PerEpochBlock<readonly NotYetAccumulatedReport[]>;
4709
4700
  declare const accumulationQueueCodec: Descriptor<readonly (readonly NotYetAccumulatedReport[])[] & WithOpaque<"EpochLength">, SequenceView<readonly NotYetAccumulatedReport[], SequenceView<NotYetAccumulatedReport, ViewOf<NotYetAccumulatedReport, {
4710
- report: Descriptor<WorkReportNoCodec, ViewOf<WorkReportNoCodec, {
4701
+ report: Descriptor<WorkReport, ViewOf<WorkReport, {
4711
4702
  workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
4712
4703
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
4713
4704
  length: Descriptor<U32, Bytes<4>>;
@@ -4764,7 +4755,7 @@ declare class AvailabilityAssignment extends WithDebug {
4764
4755
  /** Time slot at which the report becomes obsolete. */
4765
4756
  readonly timeout: TimeSlot;
4766
4757
  static Codec: Descriptor<AvailabilityAssignment, ViewOf<AvailabilityAssignment, {
4767
- workReport: Descriptor<WorkReportNoCodec, ViewOf<WorkReportNoCodec, {
4758
+ workReport: Descriptor<WorkReport, ViewOf<WorkReport, {
4768
4759
  workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
4769
4760
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
4770
4761
  length: Descriptor<U32, Bytes<4>>;
@@ -4809,7 +4800,7 @@ declare class AvailabilityAssignment extends WithDebug {
4809
4800
  private constructor();
4810
4801
  }
4811
4802
  declare const availabilityAssignmentsCodec: Descriptor<readonly (AvailabilityAssignment | null)[] & WithOpaque<"number of cores">, SequenceView<AvailabilityAssignment | null, ViewOf<AvailabilityAssignment, {
4812
- workReport: Descriptor<WorkReportNoCodec, ViewOf<WorkReportNoCodec, {
4803
+ workReport: Descriptor<WorkReport, ViewOf<WorkReport, {
4813
4804
  workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
4814
4805
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
4815
4806
  length: Descriptor<U32, Bytes<4>>;
@@ -5305,7 +5296,7 @@ declare class ValidatorStatistics {
5305
5296
  * Single core statistics.
5306
5297
  * Updated per block, based on incoming work reports (`w`).
5307
5298
  *
5308
- * https://graypaper.fluffylabs.dev/#/68eaa1f/18f10318f103?v=0.6.4
5299
+ * https://graypaper.fluffylabs.dev/#/ab2cdbd/197902197902?v=0.7.2
5309
5300
  * https://github.com/gavofyork/graypaper/blob/9bffb08f3ea7b67832019176754df4fb36b9557d/text/statistics.tex#L65
5310
5301
  */
5311
5302
  declare class CoreStatistics {
@@ -5343,7 +5334,7 @@ declare class CoreStatistics {
5343
5334
  * Service statistics.
5344
5335
  * Updated per block, based on available work reports (`W`).
5345
5336
  *
5346
- * https://graypaper.fluffylabs.dev/#/1c979cb/199802199802?v=0.7.1
5337
+ * https://graypaper.fluffylabs.dev/#/ab2cdbd/19e20219e202?v=0.7.2
5347
5338
  */
5348
5339
  declare class ServiceStatistics {
5349
5340
  /** `p.0` */
@@ -6922,9 +6913,9 @@ declare class Initialize extends WithDebug {
6922
6913
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
6923
6914
  }>>>;
6924
6915
  }> | null>;
6925
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
6926
6916
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
6927
6917
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
6918
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
6928
6919
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
6929
6920
  }>>;
6930
6921
  keyvals: Descriptor<KeyValue[], SequenceView<KeyValue, ViewOf<KeyValue, {
@@ -9885,20 +9876,20 @@ declare class AccumulateExternalities implements PartialState, AccountsWrite, Ac
9885
9876
  /**
9886
9877
  * The set of wrangled operand tuples, used as an operand to the PVM Accumulation function.
9887
9878
  *
9888
- * https://graypaper.fluffylabs.dev/#/7e6ff6a/173d03173d03?v=0.6.7
9879
+ * https://graypaper.fluffylabs.dev/#/ab2cdbd/176b00176b00?v=0.7.2
9889
9880
  */
9890
9881
  declare class Operand extends WithDebug {
9891
9882
  static Codec: Descriptor<Operand, ViewOf<Operand, {
9892
9883
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
9893
9884
  exportsRoot: Descriptor<Bytes<32> & WithOpaque<"ExportsRootHash">, Bytes<32>>;
9894
9885
  authorizerHash: Descriptor<Bytes<32> & WithOpaque<"AuthorizerHash">, Bytes<32>>;
9895
- authorizationOutput: Descriptor<BytesBlob, BytesBlob>;
9896
9886
  payloadHash: Descriptor<Bytes<32>, Bytes<32>>;
9897
9887
  gas: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, U64>;
9898
9888
  result: Descriptor<WorkExecResult, WorkExecResult>;
9889
+ authorizationOutput: Descriptor<BytesBlob, BytesBlob>;
9899
9890
  }>>;
9900
9891
  /**
9901
- * https://graypaper.fluffylabs.dev/#/7e6ff6a/181801189d01?v=0.6.7
9892
+ * https://graypaper.fluffylabs.dev/#/ab2cdbd/18680118eb01?v=0.7.2
9902
9893
  */
9903
9894
  hash: WorkPackageHash;
9904
9895
  exportsRoot: ExportsRootHash;
@@ -10132,9 +10123,9 @@ declare const protocol: LousyProtocol<{
10132
10123
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
10133
10124
  }>>>;
10134
10125
  }> | null>;
10135
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10136
10126
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
10137
10127
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10128
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10138
10129
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10139
10130
  }>>;
10140
10131
  extrinsic: Descriptor<Extrinsic, ViewOf<Extrinsic, {
@@ -10147,7 +10138,7 @@ declare const protocol: LousyProtocol<{
10147
10138
  blob: Descriptor<BytesBlob, BytesBlob>;
10148
10139
  }>>>;
10149
10140
  guarantees: Descriptor<readonly ReportGuarantee[] & WithOpaque<"[0..CoresCount)">, SequenceView<ReportGuarantee, ViewOf<ReportGuarantee, {
10150
- report: Descriptor<WorkReportNoCodec, ViewOf<WorkReportNoCodec, {
10141
+ report: Descriptor<WorkReport, ViewOf<WorkReport, {
10151
10142
  workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
10152
10143
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
10153
10144
  length: Descriptor<U32, Bytes<4>>;
@@ -10241,9 +10232,9 @@ declare const protocol: LousyProtocol<{
10241
10232
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
10242
10233
  }>>>;
10243
10234
  }> | null>;
10244
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10245
10235
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
10246
10236
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10237
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10247
10238
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10248
10239
  }>>;
10249
10240
  extrinsic: Descriptor<Extrinsic, ViewOf<Extrinsic, {
@@ -10256,7 +10247,7 @@ declare const protocol: LousyProtocol<{
10256
10247
  blob: Descriptor<BytesBlob, BytesBlob>;
10257
10248
  }>>>;
10258
10249
  guarantees: Descriptor<readonly ReportGuarantee[] & WithOpaque<"[0..CoresCount)">, SequenceView<ReportGuarantee, ViewOf<ReportGuarantee, {
10259
- report: Descriptor<WorkReportNoCodec, ViewOf<WorkReportNoCodec, {
10250
+ report: Descriptor<WorkReport, ViewOf<WorkReport, {
10260
10251
  workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
10261
10252
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
10262
10253
  length: Descriptor<U32, Bytes<4>>;
@@ -10358,9 +10349,9 @@ declare const protocol: LousyProtocol<{
10358
10349
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
10359
10350
  }>>>;
10360
10351
  }> | null>;
10361
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10362
10352
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
10363
10353
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10354
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10364
10355
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10365
10356
  }>>, ViewOf<WithHash<OpaqueHash & WithOpaque<"HeaderHash">, ViewOf<Header & CodecRecord<Header>, {
10366
10357
  parentHeaderHash: Descriptor<Bytes<32> & WithOpaque<"HeaderHash">, Bytes<32>>;
@@ -10381,9 +10372,9 @@ declare const protocol: LousyProtocol<{
10381
10372
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
10382
10373
  }>>>;
10383
10374
  }> | null>;
10384
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10385
10375
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
10386
10376
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10377
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10387
10378
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10388
10379
  }>>, {
10389
10380
  hash: Descriptor<Bytes<32> & WithOpaque<"HeaderHash">, Bytes<32>>;
@@ -10406,9 +10397,9 @@ declare const protocol: LousyProtocol<{
10406
10397
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
10407
10398
  }>>>;
10408
10399
  }> | null>;
10409
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10410
10400
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
10411
10401
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10402
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10412
10403
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10413
10404
  }>, ViewOf<Header & CodecRecord<Header>, {
10414
10405
  parentHeaderHash: Descriptor<Bytes<32> & WithOpaque<"HeaderHash">, Bytes<32>>;
@@ -10429,9 +10420,9 @@ declare const protocol: LousyProtocol<{
10429
10420
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
10430
10421
  }>>>;
10431
10422
  }> | null>;
10432
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10433
10423
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
10434
10424
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10425
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10435
10426
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10436
10427
  }>>;
10437
10428
  }>>;