Type Alias WorkPackage

Source
pub type WorkPackage = GenericWorkPackage<ExtrinsicSpec>;
Expand description

A work-package, a collection of work-items together with authorization and contextual information. This is processed in-core with Is-Authorized and Refine logic to produce a work-report.

This is a concrete version of the work-package, which only commits to extrinsic data but does not supply it.

Aliased Type§

struct WorkPackage {
    pub authorization: Authorization,
    pub auth_code_host: u32,
    pub authorizer: Authorizer,
    pub context: RefineContext,
    pub items: BoundedVec<GenericWorkItem<ExtrinsicSpec>, ConstU32<4>>,
}

Fields§

§authorization: Authorization

Authorization token.

§auth_code_host: u32

Service identifier.

§authorizer: Authorizer

Authorizer.

§context: RefineContext

Refinement context.

§items: BoundedVec<GenericWorkItem<ExtrinsicSpec>, ConstU32<4>>

Sequence of work items.