Closed
Description
#280 uses a custom version of the ganache-cli npm package which exposees some extrac precompiled contracts (for BLS12-377 and BW6-761 operations).
If possible, it would be nice to use npm rather than the submodule approach used for now.
Some notes:
- Depenencies take the form
ganache-cli
->ganache-core
->ethereumjs-vm
->libff.js
- ganache-cli uses a build step to compact all JS code into a single file, hence injecting custom npm packages into the hierarchy tree does not work (the built package is downloaded from npm without referencing any of the dependencies above, which are listed as
devDependenies
) - referencing a github repo with a custom version of
ganache-cli
(clearmatics/ganache-cli) does not work, sincenpm install
does not perform the above build, anddevDependencies
are not kept by the install process - there is an indication that a
prepare
script can cause the devDependencies to be installed, but a quick test of this did not work (i.e.zeth_contracts
references a customganache-cli
github repo, with aprepare
script that runsnpm run build
). Some variation of this approach seems possible, with more investigation.