sushkov / truffle-boilerplate

Simple boilerplate for smart-contracts development with using Truffle framework.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Truffle boilerplate

Simple boilerplate for smart-contracts development with using Truffle framework.

Usage

Requirements

  • Linux
  • Node v10.14.1, NPM v6.9.0

Install

npm i

Compile contracts

npm run compile

Run tests

npm run test

Configure before deploy

For deploy contracts to Ropsten or Mainnet fill out the .env file as in .env.example: configure Infura API key, mnenonic phrase for deployer wallet, limit and price of gas.

Deploy contracts

npx truffle migrate --network <netName>

netNames:

[
  "development",
  "ropsten",
  "mainnet"
]

Flatten contracts code

Flattened contracts are needed for example for verification on Etherscan.

Configure contracts for flatten in script scripts/flatten.sh.

npm run flatten

About

Simple boilerplate for smart-contracts development with using Truffle framework.


Languages

Language:JavaScript 77.9%Language:Solidity 19.1%Language:Shell 2.9%