starts zombienet instance with forked state downloaded from either:
- rpc endpoint in
STATE_RPCand blockSTATE_BLOCK(latest block by default) - url of json defined in
STATE_SOURCE(by default loaded from latest snapshot available)
docker run -d -p 9988:9988 galacticcouncil/fork
- node >18 required
- you have to have all binaries present on correct paths in
config.json
npm i && npm start
- It gets the chainspec based on the latest best block of PROD environment then spins up the fork via zombienet
npm run start:live
If you want to run fork with a custom chainspec, do the followings:
- First save a chainspec by using the scraper. For more info about saving chainspec, check
hydration-node/scraper/README.md - Place it to
./datafolder with namestate.json - Run
npm run start:raw
besides the regular substrate test account //Alice there is also test evm wallet
which has privilege to deploy contracts on chain:
Private key: 42d8d953e4f9246093a33e9ca6daa078501012f784adfe4bbed57918ff13be14
Address: 0x222222ff7Be76052e023Ec1a306fCca8F9659D80
Account Id: 45544800222222ff7be76052e023ec1a306fcca8f9659d800000000000000000
SS58(63): 7KATdGakyhfBGnAt3XVgXTL7cYjzRXeSZHezKNtENcbwWibb
SS58(42): 5DdcCSDHubHuzYg92M2BbXkC3MjpGgRWbY2EQ2Nuef7hbxwp