referrerpolicy=no-referrer-when-downgrade

Type Alias pallet_democracy::BoundedCallOf

source ·
pub type BoundedCallOf<T> = Bounded<CallOf<T>, <T as Config>::Hashing>;

Aliased Type§

enum BoundedCallOf<T> {
    Legacy {
        hash: <<T as Config>::Hashing as Hash>::Output,
        dummy: PhantomData<<T as Config>::RuntimeCall>,
    },
    Inline(BoundedVec<u8, ConstU32<128>>),
    Lookup {
        hash: <<T as Config>::Hashing as Hash>::Output,
        len: u32,
    },
}

Variants§

§

Legacy

A hash with no preimage length. We do not support creation of this except for transitioning from legacy state. In the future we will make this a pure Dummy item storing only the final dummy field.

Fields

§hash: <<T as Config>::Hashing as Hash>::Output
§dummy: PhantomData<<T as Config>::RuntimeCall>
§

Inline(BoundedVec<u8, ConstU32<128>>)

A an bounded Call. Its encoding must be at most 128 bytes.

§

Lookup

A hash of the call together with an upper limit for its size.`

Fields

§hash: <<T as Config>::Hashing as Hash>::Output
§len: u32