diff --git a/docs/run-first-validator.md b/docs/run-first-validator.md index 4ca33f8..27a101b 100644 --- a/docs/run-first-validator.md +++ b/docs/run-first-validator.md @@ -117,10 +117,16 @@ - Run the following steps in machine where the testnet node is already running (machine 1) +- Export the testnet deployment directory as environment variable: + + ```bash + export TESTNET_DEPLOYMENT_DIR= + ``` + - Get your private key from testnet deployment: ```bash - laconic-so deployment --dir exec laconicd "laconicd keys export --unarmored-hex --unsafe --keyring-backend test" + laconic-so deployment --dir $TESTNET_DEPLOYMENT_DIR exec laconicd "laconicd keys export --unarmored-hex --unsafe --keyring-backend test" ``` NOTE: Store this key securely as it is needed in later steps @@ -128,23 +134,16 @@ - Stop the node for SAPO testnet: ```bash - laconic-so deployment --dir stop + laconic-so deployment --dir $TESTNET_DEPLOYMENT_DIR stop ``` - Run script to export state from testnet chain: ```bash - ~/cerc/laconicd-stack/scripts/export-testnet-state.sh + ~/cerc/laconicd-stack/scripts/export-testnet-state.sh $TESTNET_DEPLOYMENT_DIR ``` - - The compressed zst file will be generated at `/export/testnet-state.zst` - -- Copy over the compressed `testnet-state.zst` file to the machine where the genesis file is to be generated (machine 3) - - ```bash - # Example command to transfer file from machine 1 to machine 3 (run on machine 1) - scp -C /export/testnet-state.zst @: - ``` + - The compressed zst file will be generated at `$TESTNET_DEPLOYMENT_DIR/export/testnet-state.zst` ## Generate mainnet genesis file @@ -165,13 +164,20 @@ export DATA_DIRECTORY= ``` +- Copy over the compressed `testnet-state.zst` file: + + ```bash + # Example command to transfer file from machine 1 to machine 3 + scp -C @:/export/testnet-state.zst + ``` + - Extract the testnet-state JSON file: ```bash - zstd -dc /testnet-state.zst > $EXPORTED_STATE_PATH + zstd -dc /testnet-state.zst > $EXPORTED_STATE_PATH # Remove zst folder - rm -rf /testnet-state.zst + rm -rf /testnet-state.zst ``` - Generate LPS lockup distribution JSON file diff --git a/docs/update-deployments.md b/docs/update-deployments.md index 97f3571..22a67df 100644 --- a/docs/update-deployments.md +++ b/docs/update-deployments.md @@ -121,6 +121,21 @@ Instructions to reset / update the deployments CERC_LACONICD_CHAIN_ID=laconic-mainnet ``` +* Update the code for shopify app in [theme/sections/main-product.liquid](https://git.vdb.to/cerc-io/shopify/pulls/13/files#diff-971bd0e0a616c3feaecf3205ac98a23296a5a0d7) to use the correct chain ID + + ```bash + ... +