git.delta.rocks / unique-network / refs/commits / f747618632ad

difftreelog

Update readme

Max Andreev2023-06-12parent: #486521b.patch.diff
in: master

1 file changed

modifiedtests/src/migrations/942057-appPromotion/README.mddiffbeforeafterboth
1# Update Procedure
2
3- Enable maintenance mode
4- [Collect migration data using ChainQL](#stakers-data-loading)
5- ❗️❗️❗️ Initiate the runtime upgrade only at this point ❗️❗️❗️
6- Wait for the upgrade to complete
7- [Execute offchain migration](#execute-offchain-migration)
8- Disable maintenance mode
9
1## Stakers Data Loading10## Stakers Data Loading
211
3Set the environment variable (WS_RPC). For example, ws://localhost:9944. Execute the following command:12Set the environment variable (WS_RPC). For example, ws://localhost:9944. Execute the following command:
413
14```sh
5chainql --tla-str=chainUrl=<WS_RPC> stakersParser.jsonnet > output.json15chainql --tla-str=chainUrl=<WS_RPC> stakersParser.jsonnet > output.json
16```
617
7 where <WS_RPC> - is the network address.18where `<WS_RPC>` - is the network address.
819
9Example for Opal:20Example for Opal:
10:
1121
22```sh
12chainql --tla-str=chainUrl=wss://eu-ws-opal.unique.network:443 stakersParser.jsonnet > output.json23chainql --tla-str=chainUrl=wss://eu-ws-opal.unique.network:443 stakersParser.jsonnet > output.json
24```
1325
14To install chainql, execute the following command:26To install chainql, execute the following command:
15
1627
28```sh
17cargo install chainql29cargo install chainql
30```
1831
19## Execute offchain migration32## Execute offchain migration
2033
21To run, you need to add an environment variable (SUPERUSER_SEED) with the sudo key seed.34To run, you need to add an environment variable (`SUPERUSER_SEED`) with the sudo key seed.
2235
23Run the script by executing the following command:36Run the script by executing the following command:
2437
38```sh
25npx ts-node lockedToFreeze.ts39npx ts-node --esm lockedToFreeze.ts
40```