forked from galacticcouncil/hydration-node
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
34 lines (34 loc) · 1.85 KB
/
Copy pathpackage.json
File metadata and controls
34 lines (34 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
"name": "fork",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"state:get": "./get-state.sh",
"state:download": "wget -O data/state.json ${STATE_SOURCE:-https://snapshots.play.hydration.cloud/state.json}",
"state:scrape": "../../target/release/scraper save-chainspec --uri ${STATE_RPC:-wss://node.parm.hydration.cloud} ${STATE_BLOCK:+--at=${STATE_BLOCK}} --exclude Ismp IsmpParachain --path ./ && mkdir -p data && mv SNAPSHOT.json data/state.json",
"state:prepare": "node prepare-state-for-zombienet.js data/state.json data/forked-chainspec.json",
"zombie:init": "zombienet -l text -fd data spawn config.json",
"para:alice": "tail -F data/alice-1.log",
"para:bob": "tail -F data/bob-1.log",
"relay:alice": "tail -F data/alice.log",
"relay:bob": "tail -F data/bob.log",
"relay:charlie": "tail -F data/charlie.log",
"relay:dave": "tail -F data/dave.log",
"zombienet": "run-p -lr zombie:init para:* relay:*",
"start": "run-s -n state:get state:prepare zombienet",
"start:raw": "run-s -n state:prepare zombienet",
"start:live": "run-s -n state:scrape state:prepare zombienet",
"docker:build": "docker build --no-cache -t galacticcouncil/fork:latest .",
"docker:build:next": "docker build --no-cache --build-arg HYDRATION_BIN_URL=https://snapshots.play.hydration.cloud -t galacticcouncil/fork:next .",
"docker:build:version": "docker build --no-cache --build-arg HYDRATION_BIN_URL=https://github.com/galacticcouncil/hydration-node/releases/download/v$VERSION -t galacticcouncil/fork:$VERSION .",
"docker:push": "docker push galacticcouncil/fork:latest",
"docker:push:next": "docker push galacticcouncil/fork:next",
"docker:release": "run-s -n docker:build docker:push"
},
"author": "",
"license": "ISC",
"dependencies": {
"@polkadot/types": "^15.0.2",
"npm-run-all": "^4.1.5"
}
}