Skip to content

canister migration

Moritz Fuller edited this page Mar 31, 2023 · 2 revisions

steps

preparation

  • add methods to populate the canisters stable variable variables
    • should be turned on/off through a env variable
    • when turned on, only deployer of the canister should be able to make calls

test run

  • extract all important data from the legacy canister
  • this includes
    • stable variables (includes assets)
    • constants
  • map data to the correct power equalizer types locally
  • push data to a staging deployment of a power equaliser canister using the methods exposed through the env variables (includes assets)
  • run test suite that makes sure data is consistent

production

  • extract the data
    • should we disable transfers/trading first?
    • what about outstanding disbursements?
    • what about the cap rootBucketId
  • stop the canister
  • reinstall power equaliser code
  • run migration scripts
  • redeploy removing env variable for population
Clone this wiki locally