tokyo-solidity-template
v1.1.17
Published
Make solidity contract based on user input
Downloads
51
Readme
Tokyo Solidity Template
Make solidity contract based on user input
Usage
in Terminal
beta version doesn't support npm
$ npm install tokyo-solidity-template
# install tokyo-solidity-template as global package
$ npm install -g tokyo-solidity-template
# 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");
});