Skip to content

Example of a simple Solidity smart contract pipeline for writing, building, and testing

Notifications You must be signed in to change notification settings

casanovax7/solidity-smart-contract-example

Repository files navigation

Sample Solidity Smart contract

This repository is an example of writing a contract, compiling with Waffle, and testing with mocha/chai

Writing

Just edit the contract in contracts folder

Initial setup

To use this repo - clone and run npm ci to install dependencies before running the build or test scripts.

Compiling

Settings for waffle are in waffle.json - to compile simply run npm run build.

Testing

Tests are in the tests folder - to execute just run npm run test

Sharing

If you find this repo useful, please consider helping add to this repository with more tests/tricks/helpers/etc.

To dos:

  • Add example of using the contract output in a web interface
  • Add ERC721 example

About

Example of a simple Solidity smart contract pipeline for writing, building, and testing

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published