Type Alias pallet_referenda::BoundedCallOf
source · pub type BoundedCallOf<T, I> = Bounded<<T as Config<I>>::RuntimeCall, <T as Config>::Hashing>;
Aliased Type§
enum BoundedCallOf<T, I> {
Legacy {
hash: <<T as Config>::Hashing as Hash>::Output,
dummy: PhantomData<<T as Config<I>>::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<I>>::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.`