8000 Handling of custom ganache-cli package · Issue #285 · clearmatics/zeth · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Handling of custom ganache-cli package #285
Closed
@dtebbs

Description

@dtebbs

#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, since npm install does not perform the above build, and devDependencies 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 custom ganache-cli github repo, with a prepare script that runs npm run build). Some variation of this approach seems possible, with more investigation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildTask related to the compilation and execution of the projecttoolingTask related to the tooling used in the repository

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0