Create lockup module JSON from LPS distribution excel file (#10)

Part of https://www.notion.so/Lockup-LPS-tokens-into-a-module-account-1f2a6b22d472802cbb35e8ce052d22ca?pvs=23

Co-authored-by: IshaVenikar <ishavenikar7@gmail.com>
Reviewed-on: #10
Co-authored-by: ishavenikar <ishavenikar@noreply.git.vdb.to>
Co-committed-by: ishavenikar <ishavenikar@noreply.git.vdb.to>
This commit was merged in pull request #10.
This commit is contained in:
ishavenikar
2025-06-04 10:55:10 +00:00
committed by nabarun
co-authored by IshaVenikar
parent b87609436a
commit 48939ffbd7
4 changed files with 205 additions and 3 deletions
+11 -3
View File
@@ -10,11 +10,11 @@
cargo install tmkms --features=softsign --version=0.14.0
```
- testnet-state.json ([exported testnet state](./run-first-validator.md#export-testnet-state))
- distribution.json (JSON containing the `lps_lockup` distribution)
- LPS distribution Google spreadsheet URL or CSV file path
## Steps
- In current working directory demo, keep exported `testnet-state.json` and `distribution.json` file from prerequisites
- In current working directory demo, keep exported `testnet-state.json` file from prerequisites
- Fetch stack:
@@ -22,6 +22,14 @@
laconic-so fetch-stack git.vdb.to/cerc-io/laconicd-stack --git-ssh --pull
```
- Generate LPS lockup distribution JSON file
```bash
~/cerc/laconicd-stack/scripts/generate-lps-lock.sh -i "<lps-distribution-spreadsheet-url-or-file-path>" -d "~/cerc/laconicd-stack/data"
```
- This will generate the `distribution.json` file
- Export current working directory
```bash
@@ -32,7 +40,7 @@
```bash
export EXPORTED_STATE_PATH=$CWD/testnet-state.json
export LPS_DISTRIBUTION_PATH=$CWD/distribution.json
export LPS_DISTRIBUTION_PATH=~/cerc/laconicd-stack/data/distribution.json
# Test address that does not exist on testnet chain
export EARLY_SUPPORTS_ACC_ADDR=laconic1gwytamfk3m5n0gsawh5vpwxkwd3vapmvzpp6nz
+9
View File
@@ -4,6 +4,7 @@
- [ansible](playbooks/README.md#ansible-installation)
- [laconic-so](https://github.com/cerc-io/stack-orchestrator/?tab=readme-ov-file#install)
- LPS distribution Google spreadsheet URL or CSV file path
## Export testnet state
@@ -45,6 +46,14 @@
- Copy over the exported `testnet-state.json` file to target machine
- Generate LPS lockup distribution JSON file
```bash
~/cerc/laconicd-stack/scripts/generate-lps-lock.sh -i "<lps-distribution-spreadsheet-url-or-file-path>" -d "<destination-folder-for-json-file>"
```
- This will generate the `distribution.json` file
- Copy over the LPS lockup distribution `distribution.json` file to target machine
- Set envs: