Ethereum Virtual Machine Projects
Browse around Projects tab for various smart contracts in Solidity and testing
scripts in Node.js
How to compile, deploy and test Smart Contracts There are two possible ways to write, compile and deploy a Solidity Smart Contract:
How to compile, deploy and test Smart Contracts There are two possible ways to write, compile and deploy a Solidity Smart Contract:
- Remix online compiler
- Open Remix
- Create a new work-space
- Create a new contract and write up your code
- Complie your contract by opening on Solidity compiler on the right hand strip of buttons and clicking Complie and Run Script
- Deploy your contract by opening Deployer on the right hand strip of buttons and clicking Deploy That's it!
- Using Truffle frame-work
- For step-by-step guide on using Truffle-suite, read documentation here
- Text Editor Recommended: VS-Code (Download here)
- Solidity Plug-in (Installation link here)
- Local Block-chain Recommended: Ganache (Download here)
- Node.js (Download here)
- NPM to install any other dependencies
- Truffle-npm (Click here to read Installation procedure)
How to test some of my code from here?
Step1: Go to GitHub and checkout the repository (click
here)
Step2: Follow the instructions from Readme file
Step2: Follow the instructions from Readme file
Send and receive ETH to and from a Smart Contract
Syntax to deploy another smart contract from a contract
ContractDeploy: main contract
1. Use function deployOne() to deploy Contract One
2. Use function deployTwo() to deploy Contract two