@dapp-stack/compiler
TypeScript icon, indicating that this package has built-in type declarations

0.5.0 • Public • Published

@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:

/@dapp-stack/compiler/

    Package Sidebar

    Install

    npm i @dapp-stack/compiler

    Weekly Downloads

    1

    Version

    0.5.0

    License

    Apache-2.0

    Unpacked Size

    289 kB

    Total Files

    22

    Last publish

    Collaborators

    • john-solon