@typeberry/lib 0.5.0-89f6b41 → 0.5.0-8cdbecc

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 +1424 -766
  2. package/index.d.ts +162 -123
  3. package/index.js +1424 -766
  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
  *
@@ -1963,6 +1960,8 @@ declare class TruncatedHashDictionary<T extends OpaqueHash, V> {
1963
1960
  set(key: T | TruncatedHash, value: V): void;
1964
1961
  /** Remove a value that matches the key on `TRUNCATED_HASH_SIZE`. */
1965
1962
  delete(key: T | TruncatedHash): void;
1963
+ /** Iterator over keys of the dictionary. */
1964
+ keys(): Iterator<TruncatedHash, any, any> & Iterable<TruncatedHash>;
1966
1965
  /** Iterator over values of the dictionary. */
1967
1966
  values(): Iterator<V, any, any> & Iterable<V>;
1968
1967
  /** Iterator over entries of the dictionary (with truncated keys) */
@@ -2008,21 +2007,11 @@ declare namespace index$v {
2008
2007
  }
2009
2008
 
2010
2009
  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 };
2010
+ 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
2011
  export type { InitInput$2 as InitInput, InitOutput$2 as InitOutput, SyncInitInput$2 as SyncInitInput };
2013
2012
  }
2014
2013
  /* tslint:disable */
2015
2014
  /* 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
2015
  /**
2027
2016
  * Seal verification as defined in:
2028
2017
  * https://graypaper.fluffylabs.dev/#/68eaa1f/0eff000eff00?v=0.6.4
@@ -2037,13 +2026,67 @@ declare function verify_seal(signer_key: Uint8Array, seal_data: Uint8Array, payl
2037
2026
  * NOTE: the aux_data of VRF function is empty!
2038
2027
  */
2039
2028
  declare function batch_verify_tickets(ring_size: number, commitment: Uint8Array, tickets_data: Uint8Array, vrf_input_data_len: number): Uint8Array;
2029
+ /**
2030
+ * Generate seal that is verifiable using `verify_seal` function.
2031
+ *
2032
+ * # Arguments
2033
+ * * `secret_seed` - Seed used to derive the secret key
2034
+ * * `input` - VRF input data
2035
+ * * `aux_data` - Auxiliary data for the VRF proof
2036
+ *
2037
+ * # Returns
2038
+ * A byte vector with the following format:
2039
+ * - On success (97 bytes):
2040
+ * - Byte 0: Status code `0` (RESULT_OK)
2041
+ * - Bytes 1-32: Serialized VRF output (32 bytes, compressed) NOTE: not output hash!
2042
+ * - Bytes 33-96: Serialized IETF VRF proof (64 bytes, compressed)
2043
+ * - On error (1 byte):
2044
+ * - Byte 0: Status code `1` (RESULT_ERR)
2045
+ *
2046
+ * Returns an error if the input cannot be converted to a valid VRF input point
2047
+ * or if serialization of the output or proof fails.
2048
+ */
2049
+ declare function generate_seal(secret_seed: Uint8Array, input: Uint8Array, aux_data: Uint8Array): Uint8Array;
2050
+ /**
2051
+ * Derive Private and Public Key from Seed
2052
+ *
2053
+ * returns: `Vec<u8>` containing the exit (1 byte) status followed by the (32 bytes) public key
2054
+ */
2055
+ declare function derive_public_key(seed: Uint8Array): Uint8Array;
2056
+ /**
2057
+ * Compute VRF output hash from a secret seed and input data.
2058
+ *
2059
+ * This function derives a deterministic VRF output hash without generating a proof.
2060
+ * Unlike `generate_seal`, this produces only the output hash, not a verifiable signature.
2061
+ *
2062
+ * # Arguments
2063
+ * * `secret_seed` - Seed used to derive the secret key
2064
+ * * `input` - VRF input data to be hashed
2065
+ *
2066
+ * # Returns
2067
+ * A byte vector with the following format:
2068
+ * - On success (33 bytes):
2069
+ * - Byte 0: Status code `0` (RESULT_OK)
2070
+ * - Bytes 1-32: VRF output hash (32 bytes)
2071
+ * - On error (1 byte):
2072
+ * - Byte 0: Status code `1` (RESULT_ERR)
2073
+ *
2074
+ * Returns an error if the input cannot be converted to a valid VRF input point.
2075
+ */
2076
+ declare function vrf_output_hash(secret_seed: Uint8Array, input: Uint8Array): Uint8Array;
2077
+ /**
2078
+ * Generate ring commitment given concatenation of ring keys.
2079
+ */
2080
+ declare function ring_commitment(keys: Uint8Array): Uint8Array;
2040
2081
  type InitInput$2 = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
2041
2082
  interface InitOutput$2 {
2042
2083
  readonly memory: WebAssembly.Memory;
2043
- readonly ring_commitment: (a: number, b: number) => [number, number];
2084
+ readonly batch_verify_tickets: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
2044
2085
  readonly derive_public_key: (a: number, b: number) => [number, number];
2086
+ readonly generate_seal: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
2087
+ readonly ring_commitment: (a: number, b: number) => [number, number];
2045
2088
  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];
2089
+ readonly vrf_output_hash: (a: number, b: number, c: number, d: number) => [number, number];
2047
2090
  readonly __wbindgen_export_0: WebAssembly.Table;
2048
2091
  readonly __wbindgen_malloc: (a: number, b: number) => number;
2049
2092
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
@@ -2693,7 +2736,7 @@ declare const encodeUnsealedHeader: (view: HeaderView) => BytesBlob;
2693
2736
  /**
2694
2737
  * The header of the JAM block.
2695
2738
  *
2696
- * https://graypaper.fluffylabs.dev/#/579bd12/0c66000c7200
2739
+ * https://graypaper.fluffylabs.dev/#/ab2cdbd/0c66000c7200?v=0.7.2
2697
2740
  */
2698
2741
  declare class Header extends WithDebug {
2699
2742
  static Codec: Descriptor<Header & CodecRecord<Header>, ViewOf<Header & CodecRecord<Header>, {
@@ -2715,9 +2758,9 @@ declare class Header extends WithDebug {
2715
2758
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
2716
2759
  }>>>;
2717
2760
  }> | null>;
2718
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
2719
2761
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
2720
2762
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
2763
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
2721
2764
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
2722
2765
  }>>;
2723
2766
  static create(h: CodecRecord<Header>): Header & CodecRecord<Header>;
@@ -2726,35 +2769,35 @@ declare class Header extends WithDebug {
2726
2769
  *
2727
2770
  * In case of the genesis block, the hash will be zero.
2728
2771
  */
2729
- parentHeaderHash: HeaderHash;
2772
+ readonly parentHeaderHash: HeaderHash;
2730
2773
  /** `H_r`: The state trie root hash before executing that block. */
2731
- priorStateRoot: StateRootHash;
2774
+ readonly priorStateRoot: StateRootHash;
2732
2775
  /** `H_x`: The hash of block extrinsic. */
2733
- extrinsicHash: ExtrinsicHash;
2776
+ readonly extrinsicHash: ExtrinsicHash;
2734
2777
  /** `H_t`: JAM time-slot index. */
2735
- timeSlotIndex: TimeSlot;
2778
+ readonly timeSlotIndex: TimeSlot;
2736
2779
  /**
2737
2780
  * `H_e`: Key and entropy relevant to the following epoch in case the ticket
2738
2781
  * contest does not complete adequately.
2739
2782
  */
2740
- epochMarker: EpochMarker | null;
2783
+ readonly epochMarker: EpochMarker | null;
2741
2784
  /**
2742
2785
  * `H_w`: Winning tickets provides the series of 600 slot sealing "tickets"
2743
2786
  * for the next epoch.
2744
2787
  */
2745
- ticketsMarker: TicketsMarker | null;
2788
+ readonly ticketsMarker: TicketsMarker | null;
2746
2789
  /** `H_i`: Block author's index in the current validator set. */
2747
- bandersnatchBlockAuthorIndex: ValidatorIndex;
2790
+ readonly bandersnatchBlockAuthorIndex: ValidatorIndex;
2748
2791
  /** `H_v`: Entropy-yielding VRF signature. */
2749
- entropySource: BandersnatchVrfSignature;
2792
+ readonly entropySource: BandersnatchVrfSignature;
2750
2793
  /** `H_o`: Sequence of keys of newly misbehaving validators. */
2751
- offendersMarker: Ed25519Key[];
2794
+ readonly offendersMarker: Ed25519Key[];
2752
2795
  /**
2753
2796
  * `H_s`: Block seal.
2754
2797
  *
2755
2798
  * https://graypaper.fluffylabs.dev/#/579bd12/0d0c010d1101
2756
2799
  */
2757
- seal: BandersnatchVrfSignature;
2800
+ readonly seal: BandersnatchVrfSignature;
2758
2801
  private constructor();
2759
2802
  /** Create an empty header with some dummy values. */
2760
2803
  static empty(): Header;
@@ -2781,9 +2824,9 @@ declare const headerViewWithHashCodec: Descriptor<WithHash<OpaqueHash & WithOpaq
2781
2824
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
2782
2825
  }>>>;
2783
2826
  }> | null>;
2784
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
2785
2827
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
2786
2828
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
2829
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
2787
2830
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
2788
2831
  }>>, ViewOf<WithHash<OpaqueHash & WithOpaque<"HeaderHash">, ViewOf<Header & CodecRecord<Header>, {
2789
2832
  parentHeaderHash: Descriptor<Bytes<32> & WithOpaque<"HeaderHash">, Bytes<32>>;
@@ -2804,9 +2847,9 @@ declare const headerViewWithHashCodec: Descriptor<WithHash<OpaqueHash & WithOpaq
2804
2847
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
2805
2848
  }>>>;
2806
2849
  }> | null>;
2807
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
2808
2850
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
2809
2851
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
2852
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
2810
2853
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
2811
2854
  }>>, {
2812
2855
  hash: Descriptor<Bytes<32> & WithOpaque<"HeaderHash">, Bytes<32>>;
@@ -2829,9 +2872,9 @@ declare const headerViewWithHashCodec: Descriptor<WithHash<OpaqueHash & WithOpaq
2829
2872
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
2830
2873
  }>>>;
2831
2874
  }> | null>;
2832
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
2833
2875
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
2834
2876
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
2877
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
2835
2878
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
2836
2879
  }>, ViewOf<Header & CodecRecord<Header>, {
2837
2880
  parentHeaderHash: Descriptor<Bytes<32> & WithOpaque<"HeaderHash">, Bytes<32>>;
@@ -2852,9 +2895,9 @@ declare const headerViewWithHashCodec: Descriptor<WithHash<OpaqueHash & WithOpaq
2852
2895
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
2853
2896
  }>>>;
2854
2897
  }> | null>;
2855
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
2856
2898
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
2857
2899
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
2900
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
2858
2901
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
2859
2902
  }>>;
2860
2903
  }>>;
@@ -3290,7 +3333,7 @@ declare function workItemExtrinsicsCodec(workItems: WorkItem[]): Descriptor<read
3290
3333
  /**
3291
3334
  * Work Item which is a part of some work package.
3292
3335
  *
3293
- * https://graypaper.fluffylabs.dev/#/579bd12/198b00199600
3336
+ * https://graypaper.fluffylabs.dev/#/ab2cdbd/1a86001a9100?v=0.7.2
3294
3337
  */
3295
3338
  declare class WorkItem extends WithDebug {
3296
3339
  /** `s`: related service */
@@ -3457,16 +3500,16 @@ declare class WorkPackageSpec extends WithDebug {
3457
3500
  /**
3458
3501
  * A report of execution of some work package.
3459
3502
  *
3460
- * https://graypaper.fluffylabs.dev/#/cc517d7/131c01132401?v=0.6.5
3503
+ * https://graypaper.fluffylabs.dev/#/ab2cdbd/13bb0113c301?v=0.7.2
3461
3504
  */
3462
- declare class WorkReportNoCodec extends WithDebug {
3505
+ declare class WorkReport extends WithDebug {
3463
3506
  /** `s`: Work package specification. */
3464
3507
  readonly workPackageSpec: WorkPackageSpec;
3465
- /** `x`: Refinement context. */
3508
+ /** `c`: Refinement context. */
3466
3509
  readonly context: RefineContext;
3467
- /** `c`: Core index on which the work is done. */
3510
+ /** *`c`*: Core index on which the work is done. */
3468
3511
  readonly coreIndex: CoreIndex;
3469
- /** `a`: Hash of the authorizer. */
3512
+ /** *`a`*: Hash of the authorizer. */
3470
3513
  readonly authorizerHash: AuthorizerHash;
3471
3514
  /** `o`: Authorization output. */
3472
3515
  readonly authorizationOutput: BytesBlob;
@@ -3477,17 +3520,56 @@ declare class WorkReportNoCodec extends WithDebug {
3477
3520
  readonly segmentRootLookup: readonly WorkPackageInfo[];
3478
3521
  /** `r`: The results of evaluation of each of the items in the work package. */
3479
3522
  readonly results: FixedSizeArray<WorkResult, WorkItemsCount>;
3480
- /** `g`: Gas used during authorization. */
3523
+ /** *`g`*: Gas used during authorization. */
3481
3524
  readonly authorizationGasUsed: ServiceGas;
3482
- static create({ workPackageSpec, context, coreIndex, authorizerHash, authorizationOutput, segmentRootLookup, results, authorizationGasUsed, }: CodecRecord<WorkReportNoCodec>): WorkReportNoCodec;
3525
+ static Codec: Descriptor<WorkReport, ViewOf<WorkReport, {
3526
+ workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
3527
+ hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
3528
+ length: Descriptor<U32, Bytes<4>>;
3529
+ erasureRoot: Descriptor<Bytes<32>, Bytes<32>>;
3530
+ exportsRoot: Descriptor<Bytes<32> & WithOpaque<"ExportsRootHash">, Bytes<32>>;
3531
+ exportsCount: Descriptor<U16, Bytes<2>>;
3532
+ }>>;
3533
+ context: Descriptor<RefineContext, ViewOf<RefineContext, {
3534
+ anchor: Descriptor<Bytes<32> & WithOpaque<"HeaderHash">, Bytes<32>>;
3535
+ stateRoot: Descriptor<Bytes<32> & WithOpaque<"StateRootHash">, Bytes<32>>;
3536
+ beefyRoot: Descriptor<Bytes<32> & WithOpaque<"BeefyHash">, Bytes<32>>;
3537
+ lookupAnchor: Descriptor<Bytes<32> & WithOpaque<"HeaderHash">, Bytes<32>>;
3538
+ lookupAnchorSlot: Descriptor<number & WithBytesRepresentation<4> & WithOpaque<"TimeSlot[u32]">, Bytes<4>>;
3539
+ prerequisites: Descriptor<(Bytes<32> & WithOpaque<"WorkPackageHash">)[], SequenceView<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>>;
3540
+ }>>;
3541
+ coreIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"CoreIndex[u16]">, U32>;
3542
+ authorizerHash: Descriptor<Bytes<32> & WithOpaque<"AuthorizerHash">, Bytes<32>>;
3543
+ authorizationGasUsed: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, U64>;
3544
+ authorizationOutput: Descriptor<BytesBlob, BytesBlob>;
3545
+ segmentRootLookup: Descriptor<readonly WorkPackageInfo[], SequenceView<WorkPackageInfo, ViewOf<WorkPackageInfo, {
3546
+ workPackageHash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
3547
+ segmentTreeRoot: Descriptor<Bytes<32> & WithOpaque<"ExportsRootHash">, Bytes<32>>;
3548
+ }>>>;
3549
+ results: Descriptor<FixedSizeArray<WorkResult, U8>, SequenceView<WorkResult, ViewOf<WorkResult, {
3550
+ serviceId: Descriptor<number & WithBytesRepresentation<4> & WithOpaque<"ServiceId[u32]">, Bytes<4>>;
3551
+ codeHash: Descriptor<Bytes<32> & WithOpaque<"CodeHash">, Bytes<32>>;
3552
+ payloadHash: Descriptor<Bytes<32>, Bytes<32>>;
3553
+ gas: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, Bytes<8>>;
3554
+ result: Descriptor<WorkExecResult, WorkExecResult>;
3555
+ load: Descriptor<WorkRefineLoad, ViewOf<WorkRefineLoad, {
3556
+ gasUsed: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, U64>;
3557
+ importedSegments: Descriptor<U32, U32>;
3558
+ extrinsicCount: Descriptor<U32, U32>;
3559
+ extrinsicSize: Descriptor<U32, U32>;
3560
+ exportedSegments: Descriptor<U32, U32>;
3561
+ }>>;
3562
+ }>>>;
3563
+ }>>;
3564
+ static create({ workPackageSpec, context, coreIndex, authorizerHash, authorizationOutput, segmentRootLookup, results, authorizationGasUsed, }: CodecRecord<WorkReport>): WorkReport;
3483
3565
  protected constructor(
3484
3566
  /** `s`: Work package specification. */
3485
3567
  workPackageSpec: WorkPackageSpec,
3486
- /** `x`: Refinement context. */
3568
+ /** `c`: Refinement context. */
3487
3569
  context: RefineContext,
3488
- /** `c`: Core index on which the work is done. */
3570
+ /** *`c`*: Core index on which the work is done. */
3489
3571
  coreIndex: CoreIndex,
3490
- /** `a`: Hash of the authorizer. */
3572
+ /** *`a`*: Hash of the authorizer. */
3491
3573
  authorizerHash: AuthorizerHash,
3492
3574
  /** `o`: Authorization output. */
3493
3575
  authorizationOutput: BytesBlob,
@@ -3498,63 +3580,18 @@ declare class WorkReportNoCodec extends WithDebug {
3498
3580
  segmentRootLookup: readonly WorkPackageInfo[],
3499
3581
  /** `r`: The results of evaluation of each of the items in the work package. */
3500
3582
  results: FixedSizeArray<WorkResult, WorkItemsCount>,
3501
- /** `g`: Gas used during authorization. */
3583
+ /** *`g`*: Gas used during authorization. */
3502
3584
  authorizationGasUsed: ServiceGas);
3503
3585
  }
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
3586
 
3547
3587
  type workReport_WorkPackageSpec = WorkPackageSpec;
3548
3588
  declare const workReport_WorkPackageSpec: typeof WorkPackageSpec;
3549
3589
  type workReport_WorkReport = WorkReport;
3550
3590
  declare const workReport_WorkReport: typeof WorkReport;
3551
- type workReport_WorkReportNoCodec = WorkReportNoCodec;
3552
- declare const workReport_WorkReportNoCodec: typeof WorkReportNoCodec;
3553
3591
  declare namespace workReport {
3554
3592
  export {
3555
3593
  workReport_WorkPackageSpec as WorkPackageSpec,
3556
3594
  workReport_WorkReport as WorkReport,
3557
- workReport_WorkReportNoCodec as WorkReportNoCodec,
3558
3595
  };
3559
3596
  }
3560
3597
 
@@ -3602,7 +3639,7 @@ declare class ReportGuarantee extends WithDebug {
3602
3639
  */
3603
3640
  readonly credentials: KnownSizeArray<Credential, `${REQUIRED_CREDENTIALS}`>;
3604
3641
  static Codec: Descriptor<ReportGuarantee, ViewOf<ReportGuarantee, {
3605
- report: Descriptor<WorkReportNoCodec, ViewOf<WorkReportNoCodec, {
3642
+ report: Descriptor<WorkReport, ViewOf<WorkReport, {
3606
3643
  workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
3607
3644
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
3608
3645
  length: Descriptor<U32, Bytes<4>>;
@@ -3661,7 +3698,7 @@ declare const GuaranteesExtrinsicBounds = "[0..CoresCount)";
3661
3698
  */
3662
3699
  type GuaranteesExtrinsic = KnownSizeArray<ReportGuarantee, typeof GuaranteesExtrinsicBounds>;
3663
3700
  declare const guaranteesExtrinsicCodec: Descriptor<readonly ReportGuarantee[] & WithOpaque<"[0..CoresCount)">, SequenceView<ReportGuarantee, ViewOf<ReportGuarantee, {
3664
- report: Descriptor<WorkReportNoCodec, ViewOf<WorkReportNoCodec, {
3701
+ report: Descriptor<WorkReport, ViewOf<WorkReport, {
3665
3702
  workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
3666
3703
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
3667
3704
  length: Descriptor<U32, Bytes<4>>;
@@ -3806,7 +3843,7 @@ declare class Extrinsic extends WithDebug {
3806
3843
  blob: Descriptor<BytesBlob, BytesBlob>;
3807
3844
  }>>>;
3808
3845
  guarantees: Descriptor<readonly ReportGuarantee[] & WithOpaque<"[0..CoresCount)">, SequenceView<ReportGuarantee, ViewOf<ReportGuarantee, {
3809
- report: Descriptor<WorkReportNoCodec, ViewOf<WorkReportNoCodec, {
3846
+ report: Descriptor<WorkReport, ViewOf<WorkReport, {
3810
3847
  workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
3811
3848
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
3812
3849
  length: Descriptor<U32, Bytes<4>>;
@@ -3916,9 +3953,9 @@ declare class Block extends WithDebug {
3916
3953
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
3917
3954
  }>>>;
3918
3955
  }> | null>;
3919
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
3920
3956
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
3921
3957
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
3958
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
3922
3959
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
3923
3960
  }>>;
3924
3961
  extrinsic: Descriptor<Extrinsic, ViewOf<Extrinsic, {
@@ -3931,7 +3968,7 @@ declare class Block extends WithDebug {
3931
3968
  blob: Descriptor<BytesBlob, BytesBlob>;
3932
3969
  }>>>;
3933
3970
  guarantees: Descriptor<readonly ReportGuarantee[] & WithOpaque<"[0..CoresCount)">, SequenceView<ReportGuarantee, ViewOf<ReportGuarantee, {
3934
- report: Descriptor<WorkReportNoCodec, ViewOf<WorkReportNoCodec, {
3971
+ report: Descriptor<WorkReport, ViewOf<WorkReport, {
3935
3972
  workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
3936
3973
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
3937
3974
  length: Descriptor<U32, Bytes<4>>;
@@ -4273,10 +4310,8 @@ declare class JipChainSpec extends WithDebug {
4273
4310
 
4274
4311
  /** Block authorship options. */
4275
4312
  declare class AuthorshipOptions {
4276
- /** Use fake seal verification instead of running bandersnatch. */
4277
- readonly omitSealVerification: boolean;
4278
4313
  static fromJson: FromJsonWithParser<unknown, AuthorshipOptions>;
4279
- static new({ omit_seal_verification }: JsonObject<AuthorshipOptions>): AuthorshipOptions;
4314
+ static new(): AuthorshipOptions;
4280
4315
  private constructor();
4281
4316
  }
4282
4317
 
@@ -4658,7 +4693,7 @@ declare class NotYetAccumulatedReport extends WithDebug {
4658
4693
  */
4659
4694
  readonly dependencies: KnownSizeArray<WorkPackageHash, `[0..${MAX_REPORT_DEPENDENCIES})`>;
4660
4695
  static Codec: Descriptor<NotYetAccumulatedReport, ViewOf<NotYetAccumulatedReport, {
4661
- report: Descriptor<WorkReportNoCodec, ViewOf<WorkReportNoCodec, {
4696
+ report: Descriptor<WorkReport, ViewOf<WorkReport, {
4662
4697
  workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
4663
4698
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
4664
4699
  length: Descriptor<U32, Bytes<4>>;
@@ -4707,7 +4742,7 @@ declare class NotYetAccumulatedReport extends WithDebug {
4707
4742
  */
4708
4743
  type AccumulationQueue = PerEpochBlock<readonly NotYetAccumulatedReport[]>;
4709
4744
  declare const accumulationQueueCodec: Descriptor<readonly (readonly NotYetAccumulatedReport[])[] & WithOpaque<"EpochLength">, SequenceView<readonly NotYetAccumulatedReport[], SequenceView<NotYetAccumulatedReport, ViewOf<NotYetAccumulatedReport, {
4710
- report: Descriptor<WorkReportNoCodec, ViewOf<WorkReportNoCodec, {
4745
+ report: Descriptor<WorkReport, ViewOf<WorkReport, {
4711
4746
  workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
4712
4747
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
4713
4748
  length: Descriptor<U32, Bytes<4>>;
@@ -4764,7 +4799,7 @@ declare class AvailabilityAssignment extends WithDebug {
4764
4799
  /** Time slot at which the report becomes obsolete. */
4765
4800
  readonly timeout: TimeSlot;
4766
4801
  static Codec: Descriptor<AvailabilityAssignment, ViewOf<AvailabilityAssignment, {
4767
- workReport: Descriptor<WorkReportNoCodec, ViewOf<WorkReportNoCodec, {
4802
+ workReport: Descriptor<WorkReport, ViewOf<WorkReport, {
4768
4803
  workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
4769
4804
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
4770
4805
  length: Descriptor<U32, Bytes<4>>;
@@ -4809,7 +4844,7 @@ declare class AvailabilityAssignment extends WithDebug {
4809
4844
  private constructor();
4810
4845
  }
4811
4846
  declare const availabilityAssignmentsCodec: Descriptor<readonly (AvailabilityAssignment | null)[] & WithOpaque<"number of cores">, SequenceView<AvailabilityAssignment | null, ViewOf<AvailabilityAssignment, {
4812
- workReport: Descriptor<WorkReportNoCodec, ViewOf<WorkReportNoCodec, {
4847
+ workReport: Descriptor<WorkReport, ViewOf<WorkReport, {
4813
4848
  workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
4814
4849
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
4815
4850
  length: Descriptor<U32, Bytes<4>>;
@@ -5305,7 +5340,7 @@ declare class ValidatorStatistics {
5305
5340
  * Single core statistics.
5306
5341
  * Updated per block, based on incoming work reports (`w`).
5307
5342
  *
5308
- * https://graypaper.fluffylabs.dev/#/68eaa1f/18f10318f103?v=0.6.4
5343
+ * https://graypaper.fluffylabs.dev/#/ab2cdbd/197902197902?v=0.7.2
5309
5344
  * https://github.com/gavofyork/graypaper/blob/9bffb08f3ea7b67832019176754df4fb36b9557d/text/statistics.tex#L65
5310
5345
  */
5311
5346
  declare class CoreStatistics {
@@ -5343,7 +5378,7 @@ declare class CoreStatistics {
5343
5378
  * Service statistics.
5344
5379
  * Updated per block, based on available work reports (`W`).
5345
5380
  *
5346
- * https://graypaper.fluffylabs.dev/#/1c979cb/199802199802?v=0.7.1
5381
+ * https://graypaper.fluffylabs.dev/#/ab2cdbd/19e20219e202?v=0.7.2
5347
5382
  */
5348
5383
  declare class ServiceStatistics {
5349
5384
  /** `p.0` */
@@ -6204,7 +6239,7 @@ declare function serializeStateUpdate(spec: ChainSpec, blake2b: Blake2b, update:
6204
6239
  * State entries may be wrapped into `SerializedState` to access the contained values.
6205
6240
  */
6206
6241
  declare class StateEntries {
6207
- private readonly entries;
6242
+ private readonly dictionary;
6208
6243
  static Codec: Descriptor<StateEntries, StateEntries>;
6209
6244
  /** Turn in-memory state into it's serialized form. */
6210
6245
  static serializeInMemory(spec: ChainSpec, blake2b: Blake2b, state: InMemoryState): StateEntries;
@@ -6225,6 +6260,12 @@ declare class StateEntries {
6225
6260
  private constructor();
6226
6261
  /** When comparing, we can safely ignore `trieCache` and just use entries. */
6227
6262
  [TEST_COMPARE_USING](): any;
6263
+ /** Iterator over entries */
6264
+ entries(): Generator<[TruncatedHash, BytesBlob]>;
6265
+ /** Iterator over entries keys */
6266
+ keys(): Generator<TruncatedHash>;
6267
+ /** Iterator over entries values */
6268
+ values(): Generator<BytesBlob>;
6228
6269
  /** Dump state entries to JSON string (format compatible with stf vectors). */
6229
6270
  toString(): string;
6230
6271
  [Symbol.iterator](): Generator<[TruncatedHash, BytesBlob], any, any>;
@@ -6922,9 +6963,9 @@ declare class Initialize extends WithDebug {
6922
6963
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
6923
6964
  }>>>;
6924
6965
  }> | null>;
6925
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
6926
6966
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
6927
6967
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
6968
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
6928
6969
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
6929
6970
  }>>;
6930
6971
  keyvals: Descriptor<KeyValue[], SequenceView<KeyValue, ViewOf<KeyValue, {
@@ -9813,7 +9854,7 @@ declare class OnChain {
9813
9854
  /** Pre-populate things worth caching for the next epoch. */
9814
9855
  prepareForNextEpoch(): Promise<void>;
9815
9856
  private verifySeal;
9816
- transition(block: BlockView, headerHash: HeaderHash, omitSealVerification?: boolean): Promise<Result<Ok, StfError>>;
9857
+ transition(block: BlockView, headerHash: HeaderHash): Promise<Result<Ok, StfError>>;
9817
9858
  private getUsedAuthorizerHashes;
9818
9859
  }
9819
9860
 
@@ -9885,20 +9926,20 @@ declare class AccumulateExternalities implements PartialState, AccountsWrite, Ac
9885
9926
  /**
9886
9927
  * The set of wrangled operand tuples, used as an operand to the PVM Accumulation function.
9887
9928
  *
9888
- * https://graypaper.fluffylabs.dev/#/7e6ff6a/173d03173d03?v=0.6.7
9929
+ * https://graypaper.fluffylabs.dev/#/ab2cdbd/176b00176b00?v=0.7.2
9889
9930
  */
9890
9931
  declare class Operand extends WithDebug {
9891
9932
  static Codec: Descriptor<Operand, ViewOf<Operand, {
9892
9933
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
9893
9934
  exportsRoot: Descriptor<Bytes<32> & WithOpaque<"ExportsRootHash">, Bytes<32>>;
9894
9935
  authorizerHash: Descriptor<Bytes<32> & WithOpaque<"AuthorizerHash">, Bytes<32>>;
9895
- authorizationOutput: Descriptor<BytesBlob, BytesBlob>;
9896
9936
  payloadHash: Descriptor<Bytes<32>, Bytes<32>>;
9897
9937
  gas: Descriptor<bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">, U64>;
9898
9938
  result: Descriptor<WorkExecResult, WorkExecResult>;
9939
+ authorizationOutput: Descriptor<BytesBlob, BytesBlob>;
9899
9940
  }>>;
9900
9941
  /**
9901
- * https://graypaper.fluffylabs.dev/#/7e6ff6a/181801189d01?v=0.6.7
9942
+ * https://graypaper.fluffylabs.dev/#/ab2cdbd/18680118eb01?v=0.7.2
9902
9943
  */
9903
9944
  hash: WorkPackageHash;
9904
9945
  exportsRoot: ExportsRootHash;
@@ -10093,8 +10134,8 @@ declare class Importer {
10093
10134
  constructor(spec: ChainSpec, pvm: PvmBackend, hasher: TransitionHasher, logger: Logger, blocks: BlocksDb, states: StatesDb<SerializedState<LeafDb>>);
10094
10135
  /** Do some extra work for preparation for the next epoch. */
10095
10136
  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>>;
10137
+ importBlockWithStateRoot(block: BlockView): Promise<Result<StateRootHash, ImporterError>>;
10138
+ importBlock(block: BlockView): Promise<Result<WithHash<HeaderHash, HeaderView>, ImporterError>>;
10098
10139
  private importBlockInternal;
10099
10140
  getBestStateRootHash(): (OpaqueHash & WithOpaque<"StateRootHash">) | null;
10100
10141
  getBestBlockHash(): OpaqueHash & WithOpaque<"HeaderHash">;
@@ -10132,9 +10173,9 @@ declare const protocol: LousyProtocol<{
10132
10173
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
10133
10174
  }>>>;
10134
10175
  }> | null>;
10135
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10136
10176
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
10137
10177
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10178
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10138
10179
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10139
10180
  }>>;
10140
10181
  extrinsic: Descriptor<Extrinsic, ViewOf<Extrinsic, {
@@ -10147,7 +10188,7 @@ declare const protocol: LousyProtocol<{
10147
10188
  blob: Descriptor<BytesBlob, BytesBlob>;
10148
10189
  }>>>;
10149
10190
  guarantees: Descriptor<readonly ReportGuarantee[] & WithOpaque<"[0..CoresCount)">, SequenceView<ReportGuarantee, ViewOf<ReportGuarantee, {
10150
- report: Descriptor<WorkReportNoCodec, ViewOf<WorkReportNoCodec, {
10191
+ report: Descriptor<WorkReport, ViewOf<WorkReport, {
10151
10192
  workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
10152
10193
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
10153
10194
  length: Descriptor<U32, Bytes<4>>;
@@ -10241,9 +10282,9 @@ declare const protocol: LousyProtocol<{
10241
10282
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
10242
10283
  }>>>;
10243
10284
  }> | null>;
10244
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10245
10285
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
10246
10286
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10287
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10247
10288
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10248
10289
  }>>;
10249
10290
  extrinsic: Descriptor<Extrinsic, ViewOf<Extrinsic, {
@@ -10256,7 +10297,7 @@ declare const protocol: LousyProtocol<{
10256
10297
  blob: Descriptor<BytesBlob, BytesBlob>;
10257
10298
  }>>>;
10258
10299
  guarantees: Descriptor<readonly ReportGuarantee[] & WithOpaque<"[0..CoresCount)">, SequenceView<ReportGuarantee, ViewOf<ReportGuarantee, {
10259
- report: Descriptor<WorkReportNoCodec, ViewOf<WorkReportNoCodec, {
10300
+ report: Descriptor<WorkReport, ViewOf<WorkReport, {
10260
10301
  workPackageSpec: Descriptor<WorkPackageSpec, ViewOf<WorkPackageSpec, {
10261
10302
  hash: Descriptor<Bytes<32> & WithOpaque<"WorkPackageHash">, Bytes<32>>;
10262
10303
  length: Descriptor<U32, Bytes<4>>;
@@ -10358,9 +10399,9 @@ declare const protocol: LousyProtocol<{
10358
10399
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
10359
10400
  }>>>;
10360
10401
  }> | null>;
10361
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10362
10402
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
10363
10403
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10404
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10364
10405
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10365
10406
  }>>, ViewOf<WithHash<OpaqueHash & WithOpaque<"HeaderHash">, ViewOf<Header & CodecRecord<Header>, {
10366
10407
  parentHeaderHash: Descriptor<Bytes<32> & WithOpaque<"HeaderHash">, Bytes<32>>;
@@ -10381,9 +10422,9 @@ declare const protocol: LousyProtocol<{
10381
10422
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
10382
10423
  }>>>;
10383
10424
  }> | null>;
10384
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10385
10425
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
10386
10426
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10427
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10387
10428
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10388
10429
  }>>, {
10389
10430
  hash: Descriptor<Bytes<32> & WithOpaque<"HeaderHash">, Bytes<32>>;
@@ -10406,9 +10447,9 @@ declare const protocol: LousyProtocol<{
10406
10447
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
10407
10448
  }>>>;
10408
10449
  }> | null>;
10409
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10410
10450
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
10411
10451
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10452
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10412
10453
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10413
10454
  }>, ViewOf<Header & CodecRecord<Header>, {
10414
10455
  parentHeaderHash: Descriptor<Bytes<32> & WithOpaque<"HeaderHash">, Bytes<32>>;
@@ -10429,9 +10470,9 @@ declare const protocol: LousyProtocol<{
10429
10470
  attempt: Descriptor<number & WithBytesRepresentation<1> & WithOpaque<"TicketAttempt[0|1|2]">, U8>;
10430
10471
  }>>>;
10431
10472
  }> | null>;
10432
- offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10433
10473
  bandersnatchBlockAuthorIndex: Descriptor<number & WithBytesRepresentation<2> & WithOpaque<"ValidatorIndex[u16]">, Bytes<2>>;
10434
10474
  entropySource: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10475
+ offendersMarker: Descriptor<(Bytes<32> & WithOpaque<"Ed25519Key">)[], SequenceView<Bytes<32> & WithOpaque<"Ed25519Key">, Bytes<32>>>;
10435
10476
  seal: Descriptor<Bytes<96> & WithOpaque<"BandersnatchVrfSignature">, Bytes<96>>;
10436
10477
  }>>;
10437
10478
  }>>;
@@ -10441,13 +10482,11 @@ declare const protocol: LousyProtocol<{
10441
10482
  type ImporterInternal = Internal<typeof protocol>;
10442
10483
  type ImporterApi = Api<typeof protocol>;
10443
10484
  declare class ImporterConfig {
10444
- readonly omitSealVerification: boolean;
10445
10485
  readonly pvm: PvmBackend;
10446
10486
  static Codec: Descriptor<ImporterConfig, ViewOf<ImporterConfig, {
10447
- omitSealVerification: Descriptor<boolean, boolean>;
10448
10487
  pvm: Descriptor<PvmBackend, U8>;
10449
10488
  }>>;
10450
- static create({ omitSealVerification, pvm }: CodecRecord<ImporterConfig>): ImporterConfig;
10489
+ static create({ pvm }: CodecRecord<ImporterConfig>): ImporterConfig;
10451
10490
  private constructor();
10452
10491
  }
10453
10492