diff --git a/ops/stage0-to-stage1.md b/ops/stage0-to-stage1.md index de2d42e..ab41614 100644 --- a/ops/stage0-to-stage1.md +++ b/ops/stage0-to-stage1.md @@ -24,21 +24,50 @@ Once all the participants have completed their onboarding, stage0 laconicd chain laconic-so fetch-stack git.vdb.to/cerc-io/testnet-laconicd-stack --pull ``` -* Create a CSV with subscribers who have onboarded as participants: +* List the participants on stage0: ```bash - # Change to scripts dir - cd ~/cerc/testnet-laconicd-stack/scripts - - # Install dependencies and build - yarn && yarn build - - # Run script - yarn map-subscribers-to-participants --subscribers-csv /srv/laconicd/csvs/subscribers.csv --output /srv/laconicd/csvs/subscribed-participants.csv - - # This should create the CSV file at /srv/laconicd/csvs/subscribed-participants.csv + cd /src/laconicd + + laconic-so deployment --dir stage0-deployment exec laconicd "laconicd query onboarding list" ``` +* Create a CSV with subscribers who have onboarded as participants: + + NOTE: The following script can be run locally (as it will use endpoint by default) + + * Clone this repo + + ```bash + git clone git@git.vdb.to:cerc-io/testnet-laconicd-stack.git + ``` + + * Build + + ```bash + # Change to scripts dir + cd testnet-laconicd-stack/scripts + + # Install dependencies and build + yarn && yarn build + ``` + + * Run script + + ```bash + # subscribers.csv is the CSV from beehiv + yarn map-subscribers-to-participants --subscribers-csv /path/to/subscribers.csv --output subscribed-participants.csv + + # This should create the CSV file at subscribed-participants.csv + # The participants in CSV can be filtered further + ``` + + * Copy over the file to deployments VM + + ```bash + scp ./subscribed-participants.csv dev@:/srv/laconicd/csvs/subscribed-participants.csv + ``` + ## Halt stage0 * Confirm the the currently running node is for stage0 chain: @@ -49,12 +78,6 @@ Once all the participants have completed their onboarding, stage0 laconicd chain laconic-so deployment --dir stage0-deployment logs laconicd -f --tail 30 ``` -* List the participants on stage0: - - ```bash - laconic-so deployment --dir stage0-deployment exec laconicd "laconicd query onboarding list" - ``` - * Stop the stage0 deployment: ```bash