git.delta.rocks / unique-network / refs/commits / 2332519c8f48

difftreelog

source

js-packages/tests/src/migrations/942057-appPromotion/README.md1.0 KiBsourcehistory
1# Update Procedure23- Enable maintenance mode4- [Collect migration data using ChainQL](#stakers-data-loading)5- ❗️❗️❗️ Initiate the runtime upgrade only at this point ❗️❗️❗️6- Wait for the upgrade to complete7- [Execute offchain migration](#execute-offchain-migration)8- Disable maintenance mode910## Stakers Data Loading1112Set the environment variable (WS_RPC). For example, ws://localhost:9944. Execute the following command:1314```sh15chainql --tla-str=chainUrl=<WS_RPC> stakersParser.jsonnet > output.json16```1718where `<WS_RPC>` - is the network address.1920Example for Opal:2122```sh23chainql --tla-str=chainUrl=wss://eu-ws-opal.unique.network:443 stakersParser.jsonnet > output.json24```2526To install chainql, execute the following command:2728```sh29cargo install chainql30```3132## Execute offchain migration3334To run, you need to set an environment variables:35- `SUPERUSER_SEED` – the sudo key seed.36- `WS_RPC` – the network address3738Run the migration by executing the following command:3940```sh41npx ts-node --esm executeMigration.ts42```