@dcntrlzd/helios

Solidity compilation tools for dapp development

Stats

StarsIssuesVersionUpdatedCreatedSize
@dcntrlzd/helios
100.2.0-beta.23 years ago4 years agoMinified + gzip package size for @dcntrlzd/helios in KB

Readme

Helios

Solidity compilation tools for dapp development

  • A wrapper around the solc compiler with import support
  • Webpack loader using the compiler for importing solidity files
  • SOON: jest transformer for importing solidity files

TODO

  • Convert to monorepo with a core package, webpack loader package and a jest transformer package

How to use

  • npm install @dcntrlzd/helios

  • Configure webpack to use helios/loader for sol files

    {
    test: /\.sol$/,
    use: { loader: '@dcntrlzd/helios/loader' },
    }
    
  • To import your solidity files from your dapp just import them with es6 import syntax

    import { SimpleStorage } from '../contracts/SimpleStorage.sol';
    
  • To import your solidity files from your tests use the async compile method of @dcntrlzd/helios/runner

    import Compiler from '@dcntrlzd/helios/compiler';
    
    const compiler = new Compiler();
    const { SimpleStorage } = await compiler.compileFile('../contracts/SimpleStorage.sol');
    

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.