Update readme steps
This commit is contained in:
parent
5266f2dc63
commit
4515fba997
@ -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=<absolute/path/to/testnet/deployment>
|
||||
```
|
||||
|
||||
- Get your private key from testnet deployment:
|
||||
|
||||
```bash
|
||||
laconic-so deployment --dir <testnet-deployment-dir> exec laconicd "laconicd keys export <key-name> --unarmored-hex --unsafe --keyring-backend test"
|
||||
laconic-so deployment --dir $TESTNET_DEPLOYMENT_DIR exec laconicd "laconicd keys export <key-name> --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 <testnet-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 <absolute-path-to-testnet-deployment>
|
||||
~/cerc/laconicd-stack/scripts/export-testnet-state.sh $TESTNET_DEPLOYMENT_DIR
|
||||
```
|
||||
|
||||
- The compressed zst file will be generated at `<absolute-path-to-testnet-deployment>/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 <absolute-path-to-testnet-deployment>/export/testnet-state.zst <user>@<machine-ip-address>:<absolute-path-to-desired-destination-directory>
|
||||
```
|
||||
- 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 <user>@<machine-ip-address>:<absolute-path-to-testnet-deployment>/export/testnet-state.zst <absolute-path-to-compressed-file>
|
||||
```
|
||||
|
||||
- Extract the testnet-state JSON file:
|
||||
|
||||
```bash
|
||||
zstd -dc <path-to-compressed-file>/testnet-state.zst > $EXPORTED_STATE_PATH
|
||||
zstd -dc <absolute-path-to-compressed-file>/testnet-state.zst > $EXPORTED_STATE_PATH
|
||||
|
||||
# Remove zst folder
|
||||
rm -rf <path-to-compressed-file>/testnet-state.zst
|
||||
rm -rf <absolute-path-to-compressed-file>/testnet-state.zst
|
||||
```
|
||||
|
||||
- Generate LPS lockup distribution JSON file
|
||||
|
||||
@ -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
|
||||
...
|
||||
<script>
|
||||
// Function to send a message to the iframe to get or create wallet account
|
||||
function requestWalletAddress(iframe) {
|
||||
const message = {
|
||||
type: 'REQUEST_CREATE_OR_GET_ACCOUNTS',
|
||||
# Replace `laconic-testnet-2` with `laconic-mainnet`
|
||||
chainId: 'laconic-testnet-2',
|
||||
};
|
||||
...
|
||||
```
|
||||
|
||||
* Restart the deployment:
|
||||
|
||||
```bash
|
||||
|
||||
Loading…
Reference in New Issue
Block a user