Skip to content
Loosely opinionated distributed app development library.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
test
.gitignore
LICENSE.md
README.md
package-lock.json
package.json
tsconfig.json
tslint.json

README.md

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');
You can’t perform that action at this time.