- 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
- 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