mirror of
https://github.com/datahaven-xyz/datahaven
synced 2026-05-24 09:50:01 +00:00
## Summary Removes old runtime migrations that have already been executed on Stagenet and Testnet environments, reducing code complexity and maintenance burden. ## Changes ### Migration Cleanup - **Removed `evm_alias::EvmAliasMigration`** (~532 lines) - Multi-block migration that renamed the Frontier EVM pallet alias from `Evm` to `EVM` - Migrated AccountCodes, AccountCodesMetadata, and AccountStorages - **Removed `evm_chain_id::EvmChainIdMigration`** - Single-step migration that updated stored EVM chain IDs to match new configuration - Applied to testnet (55931) and stagenet (55932) ### Runtime Updates - **Simplified `MultiBlockMigrationList`** to empty tuple `()` in `runtime/common/src/migrations.rs` - **Updated all runtime configs** to use simplified migration list: - `runtime/mainnet/src/configs/mod.rs` - `runtime/stagenet/src/configs/mod.rs` - `runtime/testnet/src/configs/mod.rs` - Removed `Runtime` type parameter from migration configurations ### What Remains - `pallet_migrations` infrastructure stays in place for future migrations - Migration test file (`mainnet/tests/migrations.rs`) preserved for testing pallet administrative functions - Configuration types and constants (cursor/identifier lengths, handlers) ## Impact - **Code reduction**: 532 lines removed - **No functional change**: These migrations have already executed successfully - **Future-ready**: Migration infrastructure remains for new migrations when needed Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Ahmad Kaouk <56095276+ahmadkaouk@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||