Type Alias MaxKeyLen

Source
pub type MaxKeyLen = ConstU32<512>;
Expand description

Upper bound on the length of a storage key handed around as a migration cursor.

The longest key any of these migrations sees is twox_128(pallet) ++ twox_128(item) ++ hasher(key), i.e. 72 bytes for ContractInfoOf. Measured over every live key on both mainnets; 512 leaves ~7x headroom.

Aliased Typeยง

struct MaxKeyLen;