@typeberry/lib 0.5.0-2a69cc5 → 0.5.0-3439612

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 +1398 -756
  2. package/index.d.ts +153 -122
  3. package/index.js +1398 -756
  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
  *
@@ -2008,21 +2005,11 @@ declare namespace index$v {
2008
2005
  }
2009
2006
 
2010
2007
  declare namespace bandersnatch_d_exports {
2011
- export { batch_verify_tickets, __wbg_init$2 as default, derive_public_key, initSync$2 as initSync, ring_commitment, verify_seal };
2008
+ export { batch_verify_tickets, __wbg_init$2 as default, derive_public_key, generate_seal, initSync$2 as initSync, ring_commitment, verify_seal, vrf_output_hash };
2012
2009
  export type { InitInput$2 as InitInput, InitOutput$2 as InitOutput, SyncInitInput$2 as SyncInitInput };
2013
2010
  }
2014
2011
  /* tslint:disable */
2015
2012
  /* eslint-disable */
2016
- /**
2017
- * Generate ring commitment given concatenation of ring keys.
2018
- */
2019
- declare function ring_commitment(keys: Uint8Array): Uint8Array;
2020
- /**
2021
- * Derive Private and Public Key from Seed
2022
- *
2023
- * returns: `Vec<u8>` containing the exit (1 byte) status followed by the (32 bytes) public key
2024
- */
2025
- declare function derive_public_key(seed: Uint8Array): Uint8Array;
2026
2013
  /**
2027
2014
  * Seal verification as defined in:
2028
2015
  * https://graypaper.fluffylabs.dev/#/68eaa1f/0eff000eff00?v=0.6.4
@@ -2037,13 +2024,67 @@ declare function verify_seal(signer_key: Uint8Array, seal_data: Uint8Array, payl
2037
2024
  * NOTE: the aux_data of VRF function is empty!
2038
2025
  */
2039
2026
  declare function batch_verify_tickets(ring_size: number, commitment: Uint8Array, tickets_data: Uint8Array, vrf_input_data_len: number): Uint8Array;
2027
+ /**
2028
+ * Generate seal that is verifiable using `verify_seal` function.
2029
+ *
2030
+ * # Arguments
2031
+ * * `secret_seed` - Seed used to derive the secret key
2032
+ * * `input` - VRF input data
2033
+ * * `aux_data` - Auxiliary data for the VRF proof
2034
+ *
2035
+ * # Returns
2036
+ * A byte vector with the following format:
2037
+ * - On success (97 bytes):
2038
+ * - Byte 0: Status code `0` (RESULT_OK)
2039
+ * - Bytes 1-32: Serialized VRF output (32 bytes, compressed) NOTE: not output hash!
2040
+ * - Bytes 33-96: Serialized IETF VRF proof (64 bytes, compressed)
2041
+ * - On error (1 byte):
2042
+ * - Byte 0: Status code `1` (RESULT_ERR)
2043
+ *
2044
+ * Returns an error if the input cannot be converted to a valid VRF input point
2045
+ * or if serialization of the output or proof fails.
2046
+ */
2047
+ declare function generate_seal(secret_seed: Uint8Array, input: Uint8Array, aux_data: Uint8Array): Uint8Array;
2048
+ /**
2049
+ * Derive Private and Public Key from Seed
2050
+ *
2051
+ * returns: `Vec<u8>` containing the exit (1 byte) status followed by the (32 bytes) public key
2052
+ */
2053
+ declare function derive_public_key(seed: Uint8Array): Uint8Array;
2054
+ /**
2055
+ * Compute VRF output hash from a secret seed and input data.
2056
+ *
2057
+ * This function derives a deterministic VRF output hash without generating a proof.
2058
+ * Unlike `generate_seal`, this produces only the output hash, not a verifiable signature.
2059
+ *
2060
+ * # Arguments
2061
+ * * `secret_seed` - Seed used to derive the secret key
2062
+ * * `input` - VRF input data to be hashed
2063
+ *
2064
+ * # Returns
2065
+ * A byte vector with the following format:
2066
+ * - On success (33 bytes):
2067
+ * - Byte 0: Status code `0` (RESULT_OK)
2068
+ * - Bytes 1-32: VRF output hash (32 bytes)
2069
+ * - On error (1 byte):
2070
+ * - Byte 0: Status code `1` (RESULT_ERR)
2071
+ *
2072
+ * Returns an error if the input cannot be converted to a valid VRF input point.
2073
+ */
2074
+ declare function vrf_output_hash(secret_seed: Uint8Array, input: Uint8Array): Uint8Array;
2075
+ /**
2076
+ * Generate ring commitment given concatenation of ring keys.
2077
+ */
2078
+ declare function ring_commitment(keys: Uint8Array): Uint8Array;
2040
2079
  type InitInput$2 = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
2041
2080
  interface InitOutput$2 {
2042
2081
  readonly memory: WebAssembly.Memory;
2043
- readonly ring_commitment: (a: number, b: number) => [number, number];
2082
+ readonly batch_verify_tickets: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
2044
2083
  readonly derive_public_key: (a: number, b: number) => [number, number];
2084
+ readonly generate_seal: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
2085
+ readonly ring_commitment: (a: number, b: number) => [number, number];
2045
2086
  readonly verify_seal: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => [number, number];
2046
- readonly batch_verify_tickets: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
2087
+ readonly vrf_output_hash: (a: number, b: number, c: number, d: number) => [number, number];
2047
2088
  readonly __wbindgen_export_0: WebAssembly.Table;
2048
2089
  readonly __wbindgen_malloc: (a: number, b: number) => number;
2049
2090
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
@@ -2693,7 +2734,7 @@ declare const encodeUnsealedHeader: (view: HeaderView) => BytesBlob;
2693
2734
  /**
2694
2735
  * The header of the JAM block.
2695
2736
  *
2696
- * https://graypaper.fluffylabs.dev/#/579bd12/0c66000c7200
2737
+ * https://graypaper.fluffylabs.dev/#/ab2cdbd/0c66000c7200?v=0.7.2
2697
2738
  */
2698
2739
  declare class Header extends WithDebug {
2699
2740
  static Codec: Descriptor<Header & CodecRecord<Header>, ViewOf<Header & CodecRecord<Header>, {
@@ -2715,9 +2756,9 @@ declare class Header extends WithDebug {
2715
2756
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
2716
2757
  }>>>;
2717
2758
  }> | null>;
2718
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
2719
2759
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
2720
2760
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
2761
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
2721
2762
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
2722
2763
  }>>;
2723
2764
  static create(h: CodecRecord<Header>): Header & CodecRecord<Header>;
@@ -2726,35 +2767,35 @@ declare class Header extends WithDebug {
2726
2767
  *
2727
2768
  * In case of the genesis block, the hash will be zero.
2728
2769
  */
2729
- parentHeaderHash: HeaderHash;
2770
+ readonly parentHeaderHash: HeaderHash;
2730
2771
  /** `H_r`: The state trie root hash before executing that block. */
2731
- priorStateRoot: StateRootHash;
2772
+ readonly priorStateRoot: StateRootHash;
2732
2773
  /** `H_x`: The hash of block extrinsic. */
2733
- extrinsicHash: ExtrinsicHash;
2774
+ readonly extrinsicHash: ExtrinsicHash;
2734
2775
  /** `H_t`: JAM time-slot index. */
2735
- timeSlotIndex: TimeSlot;
2776
+ readonly timeSlotIndex: TimeSlot;
2736
2777
  /**
2737
2778
  * `H_e`: Key and entropy relevant to the following epoch in case the ticket
2738
2779
  * contest does not complete adequately.
2739
2780
  */
2740
- epochMarker: EpochMarker | null;
2781
+ readonly epochMarker: EpochMarker | null;
2741
2782
  /**
2742
2783
  * `H_w`: Winning tickets provides the series of 600 slot sealing "tickets"
2743
2784
  * for the next epoch.
2744
2785
  */
2745
- ticketsMarker: TicketsMarker | null;
2786
+ readonly ticketsMarker: TicketsMarker | null;
2746
2787
  /** `H_i`: Block author's index in the current validator set. */
2747
- bandersnatchBlockAuthorIndex: ValidatorIndex;
2788
+ readonly bandersnatchBlockAuthorIndex: ValidatorIndex;
2748
2789
  /** `H_v`: Entropy-yielding VRF signature. */
2749
- entropySource: BandersnatchVrfSignature;
2790
+ readonly entropySource: BandersnatchVrfSignature;
2750
2791
  /** `H_o`: Sequence of keys of newly misbehaving validators. */
2751
- offendersMarker: Ed25519Key[];
2792
+ readonly offendersMarker: Ed25519Key[];
2752
2793
  /**
2753
2794
  * `H_s`: Block seal.
2754
2795
  *
2755
2796
  * https://graypaper.fluffylabs.dev/#/579bd12/0d0c010d1101
2756
2797
  */
2757
- seal: BandersnatchVrfSignature;
2798
+ readonly seal: BandersnatchVrfSignature;
2758
2799
  private constructor();
2759
2800
  /** Create an empty header with some dummy values. */
2760
2801
  static empty(): Header;
@@ -2781,9 +2822,9 @@ declare const headerViewWithHashCodec: Descriptor<WithHash<OpaqueHash & WithOpaq
2781
2822
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
2782
2823
  }>>>;
2783
2824
  }> | null>;
2784
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
2785
2825
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
2786
2826
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
2827
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
2787
2828
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
2788
2829
  }>>, ViewOf<WithHash<OpaqueHash & WithOpaque<"HeaderHash">, ViewOf<Header & CodecRecord<Header>, {
2789
2830
  parentHeaderHash: Descriptor<Bytes<32> & WithOpaque<"HeaderHash">, Bytes<32>>;
@@ -2804,9 +2845,9 @@ declare const headerViewWithHashCodec: Descriptor<WithHash<OpaqueHash & WithOpaq
2804
2845
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
2805
2846
  }>>>;
2806
2847
  }> | null>;
2807
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
2808
2848
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
2809
2849
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
2850
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
2810
2851
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
2811
2852
  }>>, {
2812
2853
  hash: Descriptor<Bytes<32> & WithOpaque<"HeaderHash">, Bytes<32>>;
@@ -2829,9 +2870,9 @@ declare const headerViewWithHashCodec: Descriptor<WithHash<OpaqueHash & WithOpaq
2829
2870
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
2830
2871
  }>>>;
2831
2872
  }> | null>;
2832
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
2833
2873
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
2834
2874
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
2875
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
2835
2876
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
2836
2877
  }>, ViewOf<Header & CodecRecord<Header>, {
2837
2878
  parentHeaderHash: Descriptor<Bytes<32> & WithOpaque<"HeaderHash">, Bytes<32>>;
@@ -2852,9 +2893,9 @@ declare const headerViewWithHashCodec: Descriptor<WithHash<OpaqueHash & WithOpaq
2852
2893
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
2853
2894
  }>>>;
2854
2895
  }> | null>;
2855
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
2856
2896
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
2857
2897
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
2898
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
2858
2899
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
2859
2900
  }>>;
2860
2901
  }>>;
@@ -3290,7 +3331,7 @@ declare function workItemExtrinsicsCodec(workItems: WorkItem[]): Descriptor<read
3290
3331
  /**
3291
3332
  * Work Item which is a part of some work package.
3292
3333
  *
3293
- * https://graypaper.fluffylabs.dev/#/579bd12/198b00199600
3334
+ * https://graypaper.fluffylabs.dev/#/ab2cdbd/1a86001a9100?v=0.7.2
3294
3335
  */
3295
3336
  declare class WorkItem extends WithDebug {
3296
3337
  /** `s`: related service */
@@ -3457,16 +3498,16 @@ declare class WorkPackageSpec extends WithDebug {
3457
3498
  /**
3458
3499
  * A report of execution of some work package.
3459
3500
  *
3460
- * https://graypaper.fluffylabs.dev/#/cc517d7/131c01132401?v=0.6.5
3501
+ * https://graypaper.fluffylabs.dev/#/ab2cdbd/13bb0113c301?v=0.7.2
3461
3502
  */
3462
- declare class WorkReportNoCodec extends WithDebug {
3503
+ declare class WorkReport extends WithDebug {
3463
3504
  /** `s`: Work package specification. */
3464
3505
  readonly workPackageSpec: WorkPackageSpec;
3465
- /** `x`: Refinement context. */
3506
+ /** `c`: Refinement context. */
3466
3507
  readonly context: RefineContext;
3467
- /** `c`: Core index on which the work is done. */
3508
+ /** *`c`*: Core index on which the work is done. */
3468
3509
  readonly coreIndex: CoreIndex;
3469
- /** `a`: Hash of the authorizer. */
3510
+ /** *`a`*: Hash of the authorizer. */
3470
3511
  readonly authorizerHash: AuthorizerHash;
3471
3512
  /** `o`: Authorization output. */
3472
3513
  readonly authorizationOutput: BytesBlob;
@@ -3477,17 +3518,56 @@ declare class WorkReportNoCodec extends WithDebug {
3477
3518
  readonly segmentRootLookup: readonly WorkPackageInfo[];
3478
3519
  /** `r`: The results of evaluation of each of the items in the work package. */
3479
3520
  readonly results: FixedSizeArray<WorkResult, WorkItemsCount>;
3480
- /** `g`: Gas used during authorization. */
3521
+ /** *`g`*: Gas used during authorization. */
3481
3522
  readonly authorizationGasUsed: ServiceGas;
3482
- static create({ workPackageSpec, context, coreIndex, authorizerHash, authorizationOutput, segmentRootLookup, results, authorizationGasUsed, }: CodecRecord<WorkReportNoCodec>): WorkReportNoCodec;
3523
+ static Codec: Descriptor<WorkReport, ViewOf<WorkReport, {
3524
+ workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
3525
+ hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
3526
+ length: Descriptor<U32, Bytes<4>>;
3527
+ erasureRoot: Descriptor<Bytes<32>, Bytes<32>>;
3528
+ exportsRoot: Descriptor<Bytes<32> & WithOpaque<"ExportsRootHash">, Bytes<32>>;
3529
+ exportsCount: Descriptor<U16, Bytes<2>>;
3530
+ }>>;
3531
+ context: Descriptor<RefineContext, ViewOf<RefineContext, {
3532
+ anchor: Descriptor<Bytes<32> & WithOpaque<"HeaderHash">, Bytes<32>>;
3533
+ stateRoot: Descriptor<Bytes<32> & WithOpaque<"StateRootHash">, Bytes<32>>;
3534
+ beefyRoot: Descriptor<Bytes<32> & WithOpaque<"BeefyHash">, Bytes<32>>;
3535
+ lookupAnchor: Descriptor<Bytes<32> & WithOpaque<"HeaderHash">, Bytes<32>>;
3536
+ lookupAnchorSlot: Descriptor<number & WithBytesRepresentation<4> & WithOpaque<"TimeSlot[u32]">, Bytes<4>>;
3537
+ prerequisites: Descriptor<(Bytes<32> & WithOpaque<"WorkPackageHash">)[], SequenceView<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>>;
3538
+ }>>;
3539
+ coreIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"CoreIndex[u16]">, U32>;
3540
+ authorizerHash: Descriptor<Bytes<32> & WithOpaque<"AuthorizerHash">, Bytes<32>>;
3541
+ authorizationGasUsed: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, U64>;
3542
+ authorizationOutput: Descriptor<BytesBlob, BytesBlob>;
3543
+ segmentRootLookup: Descriptor<readonly WorkPackageInfo[], SequenceView<WorkPackageInfo, ViewOf<WorkPackageInfo, {
3544
+ workPackageHash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
3545
+ segmentTreeRoot: Descriptor<Bytes<32> & WithOpaque<"ExportsRootHash">, Bytes<32>>;
3546
+ }>>>;
3547
+ results: Descriptor<FixedSizeArray<WorkResult, U8>, SequenceView<WorkResult, ViewOf<WorkResult, {
3548
+ serviceId: Descriptor<number & WithBytesRepresentation<4> & WithOpaque<"ServiceId[u32]">, Bytes<4>>;
3549
+ codeHash: Descriptor<Bytes<32> & WithOpaque<"CodeHash">, Bytes<32>>;
3550
+ payloadHash: Descriptor<Bytes<32>, Bytes<32>>;
3551
+ gas: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, Bytes<8>>;
3552
+ result: Descriptor<WorkExecResult, WorkExecResult>;
3553
+ load: Descriptor<WorkRefineLoad, ViewOf<WorkRefineLoad, {
3554
+ gasUsed: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, U64>;
3555
+ importedSegments: Descriptor<U32, U32>;
3556
+ extrinsicCount: Descriptor<U32, U32>;
3557
+ extrinsicSize: Descriptor<U32, U32>;
3558
+ exportedSegments: Descriptor<U32, U32>;
3559
+ }>>;
3560
+ }>>>;
3561
+ }>>;
3562
+ static create({ workPackageSpec, context, coreIndex, authorizerHash, authorizationOutput, segmentRootLookup, results, authorizationGasUsed, }: CodecRecord<WorkReport>): WorkReport;
3483
3563
  protected constructor(
3484
3564
  /** `s`: Work package specification. */
3485
3565
  workPackageSpec: WorkPackageSpec,
3486
- /** `x`: Refinement context. */
3566
+ /** `c`: Refinement context. */
3487
3567
  context: RefineContext,
3488
- /** `c`: Core index on which the work is done. */
3568
+ /** *`c`*: Core index on which the work is done. */
3489
3569
  coreIndex: CoreIndex,
3490
- /** `a`: Hash of the authorizer. */
3570
+ /** *`a`*: Hash of the authorizer. */
3491
3571
  authorizerHash: AuthorizerHash,
3492
3572
  /** `o`: Authorization output. */
3493
3573
  authorizationOutput: BytesBlob,
@@ -3498,63 +3578,18 @@ declare class WorkReportNoCodec extends WithDebug {
3498
3578
  segmentRootLookup: readonly WorkPackageInfo[],
3499
3579
  /** `r`: The results of evaluation of each of the items in the work package. */
3500
3580
  results: FixedSizeArray<WorkResult, WorkItemsCount>,
3501
- /** `g`: Gas used during authorization. */
3581
+ /** *`g`*: Gas used during authorization. */
3502
3582
  authorizationGasUsed: ServiceGas);
3503
3583
  }
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
3584
 
3547
3585
  type workReport_WorkPackageSpec = WorkPackageSpec;
3548
3586
  declare const workReport_WorkPackageSpec: typeof WorkPackageSpec;
3549
3587
  type workReport_WorkReport = WorkReport;
3550
3588
  declare const workReport_WorkReport: typeof WorkReport;
3551
- type workReport_WorkReportNoCodec = WorkReportNoCodec;
3552
- declare const workReport_WorkReportNoCodec: typeof WorkReportNoCodec;
3553
3589
  declare namespace workReport {
3554
3590
  export {
3555
3591
  workReport_WorkPackageSpec as WorkPackageSpec,
3556
3592
  workReport_WorkReport as WorkReport,
3557
- workReport_WorkReportNoCodec as WorkReportNoCodec,
3558
3593
  };
3559
3594
  }
3560
3595
 
@@ -3602,7 +3637,7 @@ declare class ReportGuarantee extends WithDebug {
3602
3637
  */
3603
3638
  readonly credentials: KnownSizeArray<Credential, `${REQUIRED_CREDENTIALS}`>;
3604
3639
  static Codec: Descriptor<ReportGuarantee, ViewOf<ReportGuarantee, {
3605
- report: Descriptor<WorkReportNoCodec, ViewOf<WorkReportNoCodec, {
3640
+ report: Descriptor<WorkReport, ViewOf<WorkReport, {
3606
3641
  workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
3607
3642
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
3608
3643
  length: Descriptor<U32, Bytes<4>>;
@@ -3661,7 +3696,7 @@ declare const GuaranteesExtrinsicBounds = "[0..CoresCount)";
3661
3696
  */
3662
3697
  type GuaranteesExtrinsic = KnownSizeArray<ReportGuarantee, typeof GuaranteesExtrinsicBounds>;
3663
3698
  declare const guaranteesExtrinsicCodec: Descriptor<readonly ReportGuarantee[] & WithOpaque<"[0..CoresCount)">, SequenceView<ReportGuarantee, ViewOf<ReportGuarantee, {
3664
- report: Descriptor<WorkReportNoCodec, ViewOf<WorkReportNoCodec, {
3699
+ report: Descriptor<WorkReport, ViewOf<WorkReport, {
3665
3700
  workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
3666
3701
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
3667
3702
  length: Descriptor<U32, Bytes<4>>;
@@ -3806,7 +3841,7 @@ declare class Extrinsic extends WithDebug {
3806
3841
  blob: Descriptor<BytesBlob, BytesBlob>;
3807
3842
  }>>>;
3808
3843
  guarantees: Descriptor<readonly ReportGuarantee[] & WithOpaque<"[0..CoresCount)">, SequenceView<ReportGuarantee, ViewOf<ReportGuarantee, {
3809
- report: Descriptor<WorkReportNoCodec, ViewOf<WorkReportNoCodec, {
3844
+ report: Descriptor<WorkReport, ViewOf<WorkReport, {
3810
3845
  workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
3811
3846
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
3812
3847
  length: Descriptor<U32, Bytes<4>>;
@@ -3916,9 +3951,9 @@ declare class Block extends WithDebug {
3916
3951
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
3917
3952
  }>>>;
3918
3953
  }> | null>;
3919
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
3920
3954
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
3921
3955
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
3956
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
3922
3957
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
3923
3958
  }>>;
3924
3959
  extrinsic: Descriptor<Extrinsic, ViewOf<Extrinsic, {
@@ -3931,7 +3966,7 @@ declare class Block extends WithDebug {
3931
3966
  blob: Descriptor<BytesBlob, BytesBlob>;
3932
3967
  }>>>;
3933
3968
  guarantees: Descriptor<readonly ReportGuarantee[] & WithOpaque<"[0..CoresCount)">, SequenceView<ReportGuarantee, ViewOf<ReportGuarantee, {
3934
- report: Descriptor<WorkReportNoCodec, ViewOf<WorkReportNoCodec, {
3969
+ report: Descriptor<WorkReport, ViewOf<WorkReport, {
3935
3970
  workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
3936
3971
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
3937
3972
  length: Descriptor<U32, Bytes<4>>;
@@ -4273,10 +4308,8 @@ declare class JipChainSpec extends WithDebug {
4273
4308
 
4274
4309
  /** Block authorship options. */
4275
4310
  declare class AuthorshipOptions {
4276
- /** Use fake seal verification instead of running bandersnatch. */
4277
- readonly omitSealVerification: boolean;
4278
4311
  static fromJson: FromJsonWithParser<unknown, AuthorshipOptions>;
4279
- static new({ omit_seal_verification }: JsonObject<AuthorshipOptions>): AuthorshipOptions;
4312
+ static new(): AuthorshipOptions;
4280
4313
  private constructor();
4281
4314
  }
4282
4315
 
@@ -4658,7 +4691,7 @@ declare class NotYetAccumulatedReport extends WithDebug {
4658
4691
  */
4659
4692
  readonly dependencies: KnownSizeArray<WorkPackageHash, `[0..${MAX_REPORT_DEPENDENCIES})`>;
4660
4693
  static Codec: Descriptor<NotYetAccumulatedReport, ViewOf<NotYetAccumulatedReport, {
4661
- report: Descriptor<WorkReportNoCodec, ViewOf<WorkReportNoCodec, {
4694
+ report: Descriptor<WorkReport, ViewOf<WorkReport, {
4662
4695
  workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
4663
4696
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
4664
4697
  length: Descriptor<U32, Bytes<4>>;
@@ -4707,7 +4740,7 @@ declare class NotYetAccumulatedReport extends WithDebug {
4707
4740
  */
4708
4741
  type AccumulationQueue = PerEpochBlock<readonly NotYetAccumulatedReport[]>;
4709
4742
  declare const accumulationQueueCodec: Descriptor<readonly (readonly NotYetAccumulatedReport[])[] & WithOpaque<"EpochLength">, SequenceView<readonly NotYetAccumulatedReport[], SequenceView<NotYetAccumulatedReport, ViewOf<NotYetAccumulatedReport, {
4710
- report: Descriptor<WorkReportNoCodec, ViewOf<WorkReportNoCodec, {
4743
+ report: Descriptor<WorkReport, ViewOf<WorkReport, {
4711
4744
  workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
4712
4745
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
4713
4746
  length: Descriptor<U32, Bytes<4>>;
@@ -4764,7 +4797,7 @@ declare class AvailabilityAssignment extends WithDebug {
4764
4797
  /** Time slot at which the report becomes obsolete. */
4765
4798
  readonly timeout: TimeSlot;
4766
4799
  static Codec: Descriptor<AvailabilityAssignment, ViewOf<AvailabilityAssignment, {
4767
- workReport: Descriptor<WorkReportNoCodec, ViewOf<WorkReportNoCodec, {
4800
+ workReport: Descriptor<WorkReport, ViewOf<WorkReport, {
4768
4801
  workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
4769
4802
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
4770
4803
  length: Descriptor<U32, Bytes<4>>;
@@ -4809,7 +4842,7 @@ declare class AvailabilityAssignment extends WithDebug {
4809
4842
  private constructor();
4810
4843
  }
4811
4844
  declare const availabilityAssignmentsCodec: Descriptor<readonly (AvailabilityAssignment | null)[] & WithOpaque<"number of cores">, SequenceView<AvailabilityAssignment | null, ViewOf<AvailabilityAssignment, {
4812
- workReport: Descriptor<WorkReportNoCodec, ViewOf<WorkReportNoCodec, {
4845
+ workReport: Descriptor<WorkReport, ViewOf<WorkReport, {
4813
4846
  workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
4814
4847
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
4815
4848
  length: Descriptor<U32, Bytes<4>>;
@@ -5305,7 +5338,7 @@ declare class ValidatorStatistics {
5305
5338
  * Single core statistics.
5306
5339
  * Updated per block, based on incoming work reports (`w`).
5307
5340
  *
5308
- * https://graypaper.fluffylabs.dev/#/68eaa1f/18f10318f103?v=0.6.4
5341
+ * https://graypaper.fluffylabs.dev/#/ab2cdbd/197902197902?v=0.7.2
5309
5342
  * https://github.com/gavofyork/graypaper/blob/9bffb08f3ea7b67832019176754df4fb36b9557d/text/statistics.tex#L65
5310
5343
  */
5311
5344
  declare class CoreStatistics {
@@ -5343,7 +5376,7 @@ declare class CoreStatistics {
5343
5376
  * Service statistics.
5344
5377
  * Updated per block, based on available work reports (`W`).
5345
5378
  *
5346
- * https://graypaper.fluffylabs.dev/#/1c979cb/199802199802?v=0.7.1
5379
+ * https://graypaper.fluffylabs.dev/#/ab2cdbd/19e20219e202?v=0.7.2
5347
5380
  */
5348
5381
  declare class ServiceStatistics {
5349
5382
  /** `p.0` */
@@ -6922,9 +6955,9 @@ declare class Initialize extends WithDebug {
6922
6955
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
6923
6956
  }>>>;
6924
6957
  }> | null>;
6925
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
6926
6958
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
6927
6959
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
6960
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
6928
6961
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
6929
6962
  }>>;
6930
6963
  keyvals: Descriptor<KeyValue[], SequenceView<KeyValue, ViewOf<KeyValue, {
@@ -9813,7 +9846,7 @@ declare class OnChain {
9813
9846
  /** Pre-populate things worth caching for the next epoch. */
9814
9847
  prepareForNextEpoch(): Promise<void>;
9815
9848
  private verifySeal;
9816
- transition(block: BlockView, headerHash: HeaderHash, omitSealVerification?: boolean): Promise<Result<Ok, StfError>>;
9849
+ transition(block: BlockView, headerHash: HeaderHash): Promise<Result<Ok, StfError>>;
9817
9850
  private getUsedAuthorizerHashes;
9818
9851
  }
9819
9852
 
@@ -9885,20 +9918,20 @@ declare class AccumulateExternalities implements PartialState, AccountsWrite, Ac
9885
9918
  /**
9886
9919
  * The set of wrangled operand tuples, used as an operand to the PVM Accumulation function.
9887
9920
  *
9888
- * https://graypaper.fluffylabs.dev/#/7e6ff6a/173d03173d03?v=0.6.7
9921
+ * https://graypaper.fluffylabs.dev/#/ab2cdbd/176b00176b00?v=0.7.2
9889
9922
  */
9890
9923
  declare class Operand extends WithDebug {
9891
9924
  static Codec: Descriptor<Operand, ViewOf<Operand, {
9892
9925
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
9893
9926
  exportsRoot: Descriptor<Bytes<32> & WithOpaque<"ExportsRootHash">, Bytes<32>>;
9894
9927
  authorizerHash: Descriptor<Bytes<32> & WithOpaque<"AuthorizerHash">, Bytes<32>>;
9895
- authorizationOutput: Descriptor<BytesBlob, BytesBlob>;
9896
9928
  payloadHash: Descriptor<Bytes<32>, Bytes<32>>;
9897
9929
  gas: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, U64>;
9898
9930
  result: Descriptor<WorkExecResult, WorkExecResult>;
9931
+ authorizationOutput: Descriptor<BytesBlob, BytesBlob>;
9899
9932
  }>>;
9900
9933
  /**
9901
- * https://graypaper.fluffylabs.dev/#/7e6ff6a/181801189d01?v=0.6.7
9934
+ * https://graypaper.fluffylabs.dev/#/ab2cdbd/18680118eb01?v=0.7.2
9902
9935
  */
9903
9936
  hash: WorkPackageHash;
9904
9937
  exportsRoot: ExportsRootHash;
@@ -10093,8 +10126,8 @@ declare class Importer {
10093
10126
  constructor(spec: ChainSpec, pvm: PvmBackend, hasher: TransitionHasher, logger: Logger, blocks: BlocksDb, states: StatesDb<SerializedState<LeafDb>>);
10094
10127
  /** Do some extra work for preparation for the next epoch. */
10095
10128
  prepareForNextEpoch(): Promise<void>;
10096
- importBlockWithStateRoot(block: BlockView, omitSealVerification: boolean): Promise<Result<StateRootHash, ImporterError>>;
10097
- importBlock(block: BlockView, omitSealVerification: boolean): Promise<Result<WithHash<HeaderHash, HeaderView>, ImporterError>>;
10129
+ importBlockWithStateRoot(block: BlockView): Promise<Result<StateRootHash, ImporterError>>;
10130
+ importBlock(block: BlockView): Promise<Result<WithHash<HeaderHash, HeaderView>, ImporterError>>;
10098
10131
  private importBlockInternal;
10099
10132
  getBestStateRootHash(): (OpaqueHash & WithOpaque<"StateRootHash">) | null;
10100
10133
  getBestBlockHash(): OpaqueHash & WithOpaque<"HeaderHash">;
@@ -10132,9 +10165,9 @@ declare const protocol: LousyProtocol<{
10132
10165
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
10133
10166
  }>>>;
10134
10167
  }> | null>;
10135
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10136
10168
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
10137
10169
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10170
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10138
10171
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10139
10172
  }>>;
10140
10173
  extrinsic: Descriptor<Extrinsic, ViewOf<Extrinsic, {
@@ -10147,7 +10180,7 @@ declare const protocol: LousyProtocol<{
10147
10180
  blob: Descriptor<BytesBlob, BytesBlob>;
10148
10181
  }>>>;
10149
10182
  guarantees: Descriptor<readonly ReportGuarantee[] & WithOpaque<"[0..CoresCount)">, SequenceView<ReportGuarantee, ViewOf<ReportGuarantee, {
10150
- report: Descriptor<WorkReportNoCodec, ViewOf<WorkReportNoCodec, {
10183
+ report: Descriptor<WorkReport, ViewOf<WorkReport, {
10151
10184
  workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
10152
10185
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
10153
10186
  length: Descriptor<U32, Bytes<4>>;
@@ -10241,9 +10274,9 @@ declare const protocol: LousyProtocol<{
10241
10274
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
10242
10275
  }>>>;
10243
10276
  }> | null>;
10244
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10245
10277
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
10246
10278
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10279
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10247
10280
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10248
10281
  }>>;
10249
10282
  extrinsic: Descriptor<Extrinsic, ViewOf<Extrinsic, {
@@ -10256,7 +10289,7 @@ declare const protocol: LousyProtocol<{
10256
10289
  blob: Descriptor<BytesBlob, BytesBlob>;
10257
10290
  }>>>;
10258
10291
  guarantees: Descriptor<readonly ReportGuarantee[] & WithOpaque<"[0..CoresCount)">, SequenceView<ReportGuarantee, ViewOf<ReportGuarantee, {
10259
- report: Descriptor<WorkReportNoCodec, ViewOf<WorkReportNoCodec, {
10292
+ report: Descriptor<WorkReport, ViewOf<WorkReport, {
10260
10293
  workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
10261
10294
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
10262
10295
  length: Descriptor<U32, Bytes<4>>;
@@ -10358,9 +10391,9 @@ declare const protocol: LousyProtocol<{
10358
10391
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
10359
10392
  }>>>;
10360
10393
  }> | null>;
10361
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10362
10394
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
10363
10395
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10396
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10364
10397
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10365
10398
  }>>, ViewOf<WithHash<OpaqueHash & WithOpaque<"HeaderHash">, ViewOf<Header & CodecRecord<Header>, {
10366
10399
  parentHeaderHash: Descriptor<Bytes<32> & WithOpaque<"HeaderHash">, Bytes<32>>;
@@ -10381,9 +10414,9 @@ declare const protocol: LousyProtocol<{
10381
10414
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
10382
10415
  }>>>;
10383
10416
  }> | null>;
10384
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10385
10417
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
10386
10418
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10419
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10387
10420
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10388
10421
  }>>, {
10389
10422
  hash: Descriptor<Bytes<32> & WithOpaque<"HeaderHash">, Bytes<32>>;
@@ -10406,9 +10439,9 @@ declare const protocol: LousyProtocol<{
10406
10439
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
10407
10440
  }>>>;
10408
10441
  }> | null>;
10409
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10410
10442
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
10411
10443
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10444
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10412
10445
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10413
10446
  }>, ViewOf<Header & CodecRecord<Header>, {
10414
10447
  parentHeaderHash: Descriptor<Bytes<32> & WithOpaque<"HeaderHash">, Bytes<32>>;
@@ -10429,9 +10462,9 @@ declare const protocol: LousyProtocol<{
10429
10462
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
10430
10463
  }>>>;
10431
10464
  }> | null>;
10432
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10433
10465
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
10434
10466
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10467
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10435
10468
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10436
10469
  }>>;
10437
10470
  }>>;
@@ -10441,13 +10474,11 @@ declare const protocol: LousyProtocol<{
10441
10474
  type ImporterInternal = Internal<typeof protocol>;
10442
10475
  type ImporterApi = Api<typeof protocol>;
10443
10476
  declare class ImporterConfig {
10444
- readonly omitSealVerification: boolean;
10445
10477
  readonly pvm: PvmBackend;
10446
10478
  static Codec: Descriptor<ImporterConfig, ViewOf<ImporterConfig, {
10447
- omitSealVerification: Descriptor<boolean, boolean>;
10448
10479
  pvm: Descriptor<PvmBackend, U8>;
10449
10480
  }>>;
10450
- static create({ omitSealVerification, pvm }: CodecRecord<ImporterConfig>): ImporterConfig;
10481
+ static create({ pvm }: CodecRecord<ImporterConfig>): ImporterConfig;
10451
10482
  private constructor();
10452
10483
  }
10453
10484