-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
20 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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=<WS_RPC> stakersParser.jsonnet > output.json | ||
``` | ||
|
||
where <WS_RPC> - is the network address. | ||
where `<WS_RPC>` - 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 | ||
```sh | ||
npx ts-node --esm lockedToFreeze.ts | ||
``` |