pub type MigrateV1ToV2<T, P, B, M> = VersionedMigration<1, 2, InnerMigrateV1ToV2<T, P, B, M>, Pallet<T>, <T as Config>::DbWeight>;Expand description
V1 to V2 migration: seeds BudgetAllocation, credits a one-shot catch-up drip
for the window [P::get(), now], and initializes LastIssuanceTimestamp to
now so regular drips start a fresh cadence from here.
T: DAP pallet configP:Get<u64>providing the last inflation timestamp before DAP activation (e.g.ActiveEra.startfrom staking). Only used as an input to the catch-up drip — not persisted.B:Get<BudgetAllocationMap>providing the initial budget allocation.M:Get<u64>providing the maximum elapsed window (ms) the catch-up is allowed to credit. Should usually be max staking era length.
Idempotent: the catch-up is skipped if LastIssuanceTimestamp is already
non-zero, so a re-entry does not double-credit.
The catch-up drip bypasses MaxElapsedPerDrip but is clamped by M as the
one-shot safety ceiling.
Aliased Type§
pub struct MigrateV1ToV2<T, P, B, M> { /* private fields */ }