Skip to content

In this part we create a solidity contract and test it using Mocha and convert it into ABI for second part

Notifications You must be signed in to change notification settings

thisismanishkumar/Ethereum-Lottery-Contract-part-1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ethereum-Lottery-Contract-part-1

  • In this part you can create Lottery contract,
  • Can test it with Mocha (JS Testing frame work) by running $ npm run test
  • Can compile solidty code to ABI (Interface) and bytecode in compile.js
  • Can deploy contract to the desired network using deploy.js

If you are cloning whole repo and some errors regarding npm is comming then delete node_modules and install

Installing few packages:-

  • npm init(Node.js version should be higher than 8.0.0 check by js -version)
  • npm install --save [email protected] (solidity compiler)
  • npm install --save mocha (test running framework)
  • npm install --save ganache-cli (local ethereum test network)
  • npm install --save [email protected]
  • (infura api key)
  • (Metamask plugin in google chrome) and save 12 word Mnemonics
  • npm install --save [email protected]

For interacting with your contract see Ethereum-Lottery-Contract-part-2

Contributors:-

About

In this part we create a solidity contract and test it using Mocha and convert it into ABI for second part

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published