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

    Work Item which is a part of some work package.

    https://graypaper.fluffylabs.dev/#/579bd12/198b00199600

    Hierarchy (View Summary)

    Index

    Properties

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

    a: accumulate execution gas limit

    codeHash: OpaqueHash & pvm.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[] & pvm.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> & pvm.WithOpaque<
        "ServiceGas[u64]",
    >

    g: refine execution gas limit

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

    s: related service

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

    Methods