From f747618632ad9a30a79ea7505a7c21c412d5c402 Mon Sep 17 00:00:00 2001 From: Max Andreev Date: Mon, 12 Jun 2023 09:30:48 +0000 Subject: [PATCH] Update readme --- --- a/tests/src/migrations/942057-appPromotion/README.md +++ b/tests/src/migrations/942057-appPromotion/README.md @@ -1,25 +1,40 @@ +# Update Procedure + +- Enable maintenance mode +- [Collect migration data using ChainQL](#stakers-data-loading) +- ❗️❗️❗️ Initiate the runtime upgrade only at this point ❗️❗️❗️ +- Wait for the upgrade to complete +- [Execute offchain migration](#execute-offchain-migration) +- Disable maintenance mode + ## Stakers Data Loading Set the environment variable (WS_RPC). For example, ws://localhost:9944. Execute the following command: +```sh chainql --tla-str=chainUrl= stakersParser.jsonnet > output.json +``` - where - is the network address. +where `` - is the network address. Example for Opal: -: +```sh chainql --tla-str=chainUrl=wss://eu-ws-opal.unique.network:443 stakersParser.jsonnet > output.json +``` To install chainql, execute the following command: - +```sh cargo install chainql +``` ## Execute offchain migration -To run, you need to add an environment variable (SUPERUSER_SEED) with the sudo key seed. +To run, you need to add an environment variable (`SUPERUSER_SEED`) with the sudo key seed. Run the script by executing the following command: -npx ts-node lockedToFreeze.ts \ No newline at end of file +```sh +npx ts-node --esm lockedToFreeze.ts +``` \ No newline at end of file -- gitstuff