jam_types::types

Type Alias FatWorkItem

Source
pub type FatWorkItem = GenericWorkItem<Vec<u8>>;

Aliased Type§

struct FatWorkItem {
    pub service: u32,
    pub code_hash: CodeHash,
    pub payload: WorkPayload,
    pub gas_limit: i64,
    pub import_segments: BoundedVec<ImportSpec, ConstU32<2048>>,
    pub extrinsics: Vec<Vec<u8>>,
    pub export_count: u16,
}

Fields§

§service: u32

Service identifier to which this work item relates.

§code_hash: CodeHash

The service’s code hash at the time of reporting. This must be available in-core at the time of the lookup-anchor block.

§payload: WorkPayload

Payload blob.

§gas_limit: i64

Gas limit to execute this work item.

§import_segments: BoundedVec<ImportSpec, ConstU32<2048>>

Sequence of imported data segments.

§extrinsics: Vec<Vec<u8>>

Extrinsics.

§export_count: u16

Number of segments exported by this work item.