Skip to content

Commit 6e87f53

Browse files
authoredMar 17, 2023
1 parent f50aba1 commit 6e87f53

File tree

5 files changed

+5812
-15644
lines changed

5 files changed

+5812
-15644
lines changed
 

‎scripts/run-fork-chain.sh

-138
This file was deleted.

‎scripts/run-fork-test.sh

-193
This file was deleted.

‎tests/README.md

+2-23
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ Those tests are intended to run using an exported state from an existing network
177177
They require to specify the exported state, the runtime name and the parachain id.
178178
Also the exported state needs to be modified using the state-modifier.ts script.
179179

180+
> N.B. The most uptodate way of forking live chain state can be found in our tools-repo: https://github.com/PureStake/moonbeam-tools
181+
180182
### End to end script (automated)
181183

182184
You can run the full process using the docker image:
@@ -193,29 +195,6 @@ ROOT_FOLDER=/tmp/moonbeam-states GIT_TAG=perm-runtime-1604 NETWORK=moonbase-alph
193195

194196
Where `ROOT_FOLDER` should be an empty folder
195197

196-
### Retrieving exported state (manual step 1)
197-
198-
```
199-
mkdir -p ~/projects/moonbeam-states
200-
for network in moonbase-alpha moonriver moonbeam; do wget https://s3.us-east-2.amazonaws.com/snapshots.moonbeam.network/${network}/latest/${network}-state.json -O ~/projects/moonbeam-states/${network}-state.json; done
201-
```
202-
203-
### Modifying exported state (manual step 2)
204-
205-
```
206-
for network in moonbase-alpha moonriver moonbeam; do node_modules/.bin/ts-node state-modifier.ts ~/projects/moonbeam-states/${network}-state.json; done
207-
```
208-
209-
### Executing the tests (manual step 3a)
210-
211-
Here is an exemple of the command to run:
212-
213-
```
214-
SKIP_INTERMEDIATE_RUNTIME=true RUNTIME_NAME=moonbeam SPEC_FILE=~/projects/moonbeam-states/moonbeam-state.mod.json PARA_ID=2004 PORT_PREFIX=51 npm run fork-test
215-
SKIP_INTERMEDIATE_RUNTIME=true RUNTIME_NAME=moonbase SPEC_FILE=~/projects/moonbeam-states/moonbase-alpha-state.mod.json PARA_ID=1000 PORT_PREFIX=52 npm run fork-test
216-
217-
SKIP_INTERMEDIATE_RUNTIME=true RUNTIME_NAME=moonriver SPEC_FILE=~/projects/moonbeam-states/moonriver-state.mod.json PARA_ID=2023 PORT_PREFIX=53 npm run fork-test
218-
```
219198

220199
### Starting the node separately
221200

0 commit comments

Comments
 (0)