8000 GitHub - minhtran241/contract-template-truffle: A preconfigured project template for Ethereum smart contracts (Truffle) deployed on Goerli testnet
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

minhtran241/contract-template-truffle

Repository files navigation

contract-template

Use this pre-configured template for smart contract projects on Goerli network.

Features:

  • Truffle Framework
  • Ganache (development)
  • Infura
  • Web3

Setup

Requirements:

  • Node >= v12
  • Yarn
npm i -g yarn       # Install yarn if you don't already have it
yarn install        # Install dependencies
yarn setup          # Setup Git hooks

Testing

First, make sure Ganache is running.

yarn ganache

Compile

yarn compile

Run all tests:

yarn test

To run tests in a specific file, run:

yarn test [path/to/file]

Deploy by connecting to Infura node (specific provider)

⚠️ You have to set up all the environment variables before doing this step

yarn deploy

MIT License

About

A preconfigured project template for Ethereum smart contracts (Truffle) deployed on Goerli testnet

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published
0