Skip to content

Commit 2e8c919

Browse files
Merge pull request #1153 from multiversx/sovereign-deploy-doc-update-30-sept
Deploy sovereign chain documentation updated
2 parents a8eb15e + 1f029fc commit 2e8c919

File tree

1 file changed

+18
-20
lines changed

1 file changed

+18
-20
lines changed

docs/sovereign/local-setup.md

Lines changed: 18 additions & 20 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+
# Main chain network config
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,16 +109,27 @@ 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, one should 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
115124
```
116125

117-
:::info
118-
`deploySovereignWithCrossChainContracts` command will:
119-
- deploy all main chain smart contracts and update sovereign configs
120-
- 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
126+
:::info
127+
`deploySovereignWithCrossChainContracts` command will:
128+
- deploy all smart contracts on the main chain and update the sovereign chain configuration
129+
- set up sovereign nodes and deploy the main chain observer
130+
- use `sov` as the default prefix for ESDT tokens on the sovereign chain
131+
(can be changed to any 1–4 character lowercase alphanumeric string and **must be unique across all deployed sovereign chains**)
132+
- if no prefix is provided, a random one will be generated
122133
:::
123134

124135
### Step 3: Deploy services
@@ -139,16 +150,3 @@ ___
139150
```bash
140151
stopAndCleanSovereign
141152
```
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)