Allow two Parachains to swap (#4772)
* add support for parachain to parachain swap * enable swaps on kusama * sanity test in paras_registrar * express more errors * finish up tests * fmt * make fields pub * refactor integration tests to use real accounts * Update Crowdloan Account to FundIndex (#4824) * update fund account to use index * fix integration tests * Update runtime/common/src/crowdloan.rs * finish parachain swap test * format * fix warning * fix spacing * fix formatting * write migrations * add migration * fixes * more fixes to migration * Update runtime/common/src/crowdloan/mod.rs Co-authored-by:Zeke Mostov <z.mostov@gmail.com> * Update runtime/common/src/paras_registrar.rs * Update migration.rs * extract swap function Co-authored-by:
Zeke Mostov <z.mostov@gmail.com>
Showing
- polkadot/runtime/common/src/crowdloan/migration.rs 130 additions, 0 deletionspolkadot/runtime/common/src/crowdloan/migration.rs
- polkadot/runtime/common/src/crowdloan/mod.rs 65 additions, 53 deletionspolkadot/runtime/common/src/crowdloan/mod.rs
- polkadot/runtime/common/src/integration_tests.rs 349 additions, 153 deletionspolkadot/runtime/common/src/integration_tests.rs
- polkadot/runtime/common/src/paras_registrar.rs 188 additions, 34 deletionspolkadot/runtime/common/src/paras_registrar.rs
- polkadot/runtime/kusama/src/lib.rs 22 additions, 4 deletionspolkadot/runtime/kusama/src/lib.rs
- polkadot/runtime/polkadot/src/lib.rs 19 additions, 1 deletionpolkadot/runtime/polkadot/src/lib.rs
- polkadot/runtime/rococo/src/lib.rs 19 additions, 1 deletionpolkadot/runtime/rococo/src/lib.rs
- polkadot/runtime/westend/src/lib.rs 19 additions, 1 deletionpolkadot/runtime/westend/src/lib.rs
Please register or sign in to comment