Skip to content

Commit 01a41c2

Browse files
Deploy sovereign chain documentation updated
1 parent 5388065 commit 01a41c2

1 file changed

Lines changed: 13 additions & 16 deletions

File tree

docs/sovereign/local-setup.md

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ cd sovereignBridge
8080
# Owner Configuration
8181
WALLET="~/wallet.pem"
8282

83-
# Main Chain Constants
83+
# Network Configuration
8484
MAIN_CHAIN_ELASTIC=https://testnet-index.multiversx.com
8585
PROXY = https://testnet-gateway.multiversx.com
8686
CHAIN_ID = T
@@ -91,7 +91,7 @@ cd sovereignBridge
9191
```
9292

9393
:::note
94-
- **SOVEREIGN_DIRECTORY, TXS_OUTFILE_DIRECTORY, CONTRACTS_DIRECTORY** - represent the paths to the location where the deployment scripts will generate the outputs.
94+
- **SOVEREIGN_DIRECTORY, OUTFILE_PATH, CONTRACTS_DIRECTORY** - represent the paths to the location where the deployment scripts will generate the outputs.
9595
- **WALLET** - should represent the wallet generated at Step 2.2.
9696
- **MAIN_CHAIN_ELASTIC** - represents the elasticsearch db from the main chain
9797
- **PROXY** - in this case, for the purpose of the test, the used proxy is the testnet one. Of course that the proper proxy should be used when deploying your own set of contracts depending on the development phase of your project.
@@ -109,6 +109,15 @@ cd sovereignBridge
109109
source script.sh
110110
```
111111

112+
6. Create and deploy main chain observer:
113+
```bash
114+
createAndDeployMainChainObserver
115+
```
116+
117+
:::info
118+
After running this command wait until the observer is fully synchronized.
119+
:::
120+
112121
6. Deploy all cross-chain contracts on main chain and deploy Sovereign Chain with all required services:
113122
```bash
114123
deploySovereignWithCrossChainContracts sov
@@ -118,7 +127,8 @@ cd sovereignBridge
118127
`deploySovereignWithCrossChainContracts` command will:
119128
- deploy all main chain smart contracts and update sovereign configs
120129
- deploy sovereign nodes and the main chain observer
121-
- `sov` is the prefix for ESDT tokens in the sovereign chain - it can be changed to any string consisting of 4 lowercase alphanumeric characters
130+
- `sov` is the prefix for ESDT tokens in the sovereign chain - it can be changed to any string consisting of 1-4 lowercase alphanumeric characters
131+
- if no prefix is provided, a random one will be generated
122132
:::
123133

124134
### Step 3: Deploy services
@@ -139,16 +149,3 @@ ___
139149
```bash
140150
stopAndCleanSovereign
141151
```
142-
143-
## Upgrade and reset local Sovereign Chain
144-
145-
1. Navigate to `mx-chain-sovereign-go/scripts/testnet/sovereignBridge`.
146-
Source the script:
147-
```bash
148-
source script.sh
149-
```
150-
151-
2. Upgrade and reset the chain, and all sovereign services:
152-
```bash
153-
sovereignUpgradeAndReset
154-
```

0 commit comments

Comments
 (0)