@dcntrlzd/helios
TypeScript icon, indicating that this package has built-in type declarations

0.2.0-beta.2 • Public • Published

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');

Readme

Keywords

Package Sidebar

Install

npm i @dcntrlzd/helios

Weekly Downloads

0

Version

0.2.0-beta.2

License

SEE LICENSE IN LICENSE.md

Unpacked Size

22.5 kB

Total Files

7

Last publish

Collaborators

  • matrushka