1.0.0-rc.4 • Published 6 years ago

test-kemusin-template v1.0.0-rc.4

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

Build Status

Tokyo Solidity Template

Make solidity contract based on user input

Usage

in Terminal

beta version doesn't support npm

$ git clone https://github.com/Onther-Tech/tokyo-solidity-template.git
$ cd tokyo-solidity-template && git submodule update --init --recursive
$ npm install && npm run build

# install tokyo-solidity-template as global package
$ npm install -g .

# generate sample tokyo project
$ tokyo-solidity-template -i ./submodules/tokyo-test-data/sample1.json

as node package

# ES5
const Template = require("tokyo-solidity-template").default 

# ES6
import Template from "tokyo-solidity-template";

const options = {
    input: "./input.json", # input json file pah
    output: "./out"        # truffle project directory path
};

Template(options, () => {
    console.log("generated");
});