Typeberry by Fluffy Labs - v0.5.0
    Preparing search index...

    Work Item which is a part of some work package.

    https://graypaper.fluffylabs.dev/#/ab2cdbd/1a86001a9100?v=0.7.2

    Hierarchy (View Summary)

    Index

    Properties

    accumulateGasLimit: bigint & WithBytesRepresentation<8> & WithOpaque<
        "ServiceGas[u64]",
    >

    a: accumulate execution gas limit

    codeHash: OpaqueHash & WithOpaque<"CodeHash">

    c: code hash of the service at the time of reporting.

    preimage of that hash must be available from the perspective of the lookup anchor block.

    exportCount: U16

    e: number of data segments exported by this work item.

    x: sequence of blob hashes and lengths to be introduced in this block

    importSegments: readonly ImportSpec[] & WithOpaque<"Less than 2048">

    i: sequence of imported data segments, which identify a prior exported segment.

    payload: BytesBlob

    y: payload blob

    refineGasLimit: bigint & WithBytesRepresentation<8> & WithOpaque<
        "ServiceGas[u64]",
    >

    g: refine execution gas limit

    service: number & WithBytesRepresentation<4> & WithOpaque<"ServiceId[u32]">

    s: related service

    Codec: Descriptor<
        WorkItem,
        ViewOf<
            WorkItem,
            {
                accumulateGasLimit: Descriptor<
                    bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">,
                    Bytes<8>,
                >;
                codeHash: Descriptor<Bytes<32> & WithOpaque<"CodeHash">, Bytes<32>>;
                exportCount: Descriptor<U16, Bytes<2>>;
                extrinsic: Descriptor<
                    WorkItemExtrinsicSpec[],
                    SequenceView<
                        WorkItemExtrinsicSpec,
                        ViewOf<
                            WorkItemExtrinsicSpec,
                            {
                                hash: Descriptor<
                                    Bytes<32> & WithOpaque<"ExtrinsicHash">,
                                    Bytes<32>,
                                >;
                                len: Descriptor<U32, Bytes<4>>;
                            },
                        >,
                    >,
                >;
                importSegments: Descriptor<
                    readonly ImportSpec[] & WithOpaque<"Less than 2048">,
                    SequenceView<
                        ImportSpec,
                        ViewOf<
                            ImportSpec,
                            {
                                index: Descriptor<
                                    number & WithBytesRepresentation<2> & WithOpaque<
                                        "Segment Index [U16]",
                                    >,
                                    Bytes<2>,
                                >;
                                treeRoot: Descriptor<Bytes<32>, Bytes<32>>;
                            },
                        >,
                    >,
                >;
                payload: Descriptor<BytesBlob, BytesBlob>;
                refineGasLimit: Descriptor<
                    bigint & WithBytesRepresentation<8> & WithOpaque<"ServiceGas[u64]">,
                    Bytes<8>,
                >;
                service: Descriptor<
                    number & WithBytesRepresentation<4> & WithOpaque<"ServiceId[u32]">,
                    Bytes<4>,
                >;
            },
        >,
    > = ...

    Methods