trufflesuite / ganache

:warning: The Truffle Suite is being sunset. For information on ongoing support, migration options and FAQs, visit the Consensys blog. Thank you for all the support over the years.
https://consensys.io/blog/consensys-announces-the-sunset-of-truffle-and-ganache-and-new-hardhat?utm_source=github&utm_medium=referral&utm_campaign=2023_Sep_truffle-sunset-2023_announcement_
MIT License
2.62k stars 678 forks source link

feat: genesis dot json #3884

Open tenthirtyone opened 1 year ago

tenthirtyone commented 1 year ago

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)