AstarNetwork / astar-frame

Core frame modules for Astar & Shiden network.
Other
58 stars 38 forks source link

Staking festival end storage cleanup #33

Closed Dinonard closed 2 years ago

Dinonard commented 2 years ago

Pull Request Summary

Support for clearing old storage items from Astar once we end the staking festival. Solution has been tested on local network and works fine.

Upgrade Flow

  1. Using sudo, unregister all contracts
  2. Use binary built with try-runtime features to simulate runtime upgrade logic on Astar and confirm it works
  3. Initiate runtime upgrade for Astar network with latest dapps-staking
  4. Once new runtime is applied, pallet will enter maintenance mode
  5. We will need to call do_upgrade call a few times in order to cleanup old storage items
  6. Once last item is cleared, maintenance mode will be disabled an pallet will resume normal operation
  7. :tada: :tada: :tada: we've re-launched!

TODO

Check list