ganache icon indicating copy to clipboard operation
ganache copied to clipboard

feat: genesis dot json

Open tenthirtyone opened this issue 2 years ago • 0 comments

Description

Adds a genesisPath option and j switch to cli that takes in a path to a genesis.json.

Relevant Files

This branch has had some force pushin' The files who matter are

blockchain.ts chain-options.ts

To use

npm run start -- -j ./genesis.json

Callouts

Using process.cwd() so running the above command in the top-level repo this will resolve to packages/ganache

Todo

Accounts Side Effects from ganache default options

Questions

cross-option exclusions? option requires?

Feasibility

resolving which hardfork is set retro-setting ganache-options with genesis.json values where applicable (e.g. chainId)

tenthirtyone avatar Nov 08 '22 07:11 tenthirtyone