A minimal environment for Solidity smart contract development.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Luiserebii 1918e2770a
Adding badges and pushing up to v1.0.0
1 month ago
contracts Calculator.sol modified for events. test.js finally works the way I want it to! 8 months ago
.gitattributes .gitattributes added for GitHub Solidity recognition 8 months ago
.gitignore .gitignore minor update 6 months ago
LICENSE Create LICENSE 8 months ago
README.md Adding badges and pushing up to v1.0.0 1 month ago
compile.js Added compile.js script for contract 8 months ago
package-lock.json More additions to test.js and package.json, especially with npm test 8 months ago
package.json Adding badges and pushing up to v1.0.0 1 month ago
test.js Calculator.sol modified for events. test.js finally works the way I want it to! 8 months ago

README.md

Minimal Solidity Environment

GitHub package.json version GitHub Total alerts

A minimal environment for Solidity smart contract development.

This was written in a way to make the simplest development environment possible, with minimum design choices. The focus is more on the basic structure of dApp projects, and less on advanced best practices. Ideally, anyone will be able to pick this up and learn the fundamentals of writing and testing Ethereum smart contracts in Solidity with Node.js and Mocha!


Overview:

-compile.js

  • Script for compiling Solidity smart contract code (Calculator.sol)

-test.js

  • Test scripts with Mocha to check for any potential issues

-contracts/

  • Folder for contract files
  • Calculator.sol: Basic calculator contract.

Bonus file: .gitattributes

  • Allows GitHub to recognize your .sol contract syntax! Credits to kinrezC for this tip.


Instructions:

  • Try to browse over the files written; what is going on in them? How do they relate to one another?
  • Install the required dependencies listed in package.json by running: npm install
  • Run the compile.js script through: npm run compile or node compile.js
  • Run the test.js script through: npm test or mocha -- test.js


Suggestions?

If you have any suggestions or ideas, email me at luis@serebii.io, or make a pull request! I am more than happy to chat :)
- Luiserebii