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

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