Background
#3785 (#3293) added a one-time migration helper, stamp_expiry_on_legacy_mocks, that stamps an expiry on pre-existing stored MockAttestation entries so the standard cleanup flow can evict them. It now lives in the version-specific migration module crates/contract/src/v3_13_0_state.rs (a free fn, called from the From<MpcContract> impl there).
It is transitional: the migration module is deleted once the migration source version moves past 3.13.0 (routine migration cleanup, cf. #3771), and the helper is removed together with it. Leaving it is harmless (idempotent — with_expiry never extends an existing expiry).
Acceptance Criteria
Resources & Additional Notes
Background
#3785 (#3293) added a one-time migration helper,
stamp_expiry_on_legacy_mocks, that stamps an expiry on pre-existing storedMockAttestationentries so the standard cleanup flow can evict them. It now lives in the version-specific migration modulecrates/contract/src/v3_13_0_state.rs(a free fn, called from theFrom<MpcContract>impl there).It is transitional: the migration module is deleted once the migration source version moves past
3.13.0(routine migration cleanup, cf. #3771), and the helper is removed together with it. Leaving it is harmless (idempotent —with_expirynever extends an existing expiry).Acceptance Criteria
stamp_expiry_on_legacy_mocks(itsFrom-impl call site and its test) is removed together with thev3_13_0_statemigration module when the pre-expiry migration is retired.Resources & Additional Notes
crates/contract/src/v3_13_0_state.rs. Introduced by fix(contract): make mock attestations cleanable via expiry #3785.