@dapp-stack/compiler
This package allows to compile your solidity contracts.
Installation
# Yarn
yarn add @dapp-stack/compiler
# NPM
npm install @dapp-stack/compiler
Usage
Required directories:
my-dapp
└── contracts
└── src
The output will be in my-dapp/contracts/build
import * as compiler from "@dapp-stack/compiler";
compiler.run({ "0.5.2": ["SimpleStorage.sol"] }, ["Token.vy"], { enabled: true, runs: 200 })
If you call the function compiler.run
without any arguments,
we will try to fetch the list contracts to compile from
the environment file at:
environments/[DAPP_ENV].js
See: Environment for more detail.
We currently support the following Smart Contract language: