Writing, compiling, and deploying a smart contract in a local environment
In this section, we will start writing a smart contract with Solidity. We will also go through how to use Hardhat to build the smart contract and run it in a local EVM environment.
Here, you can use your favorite integrated development environment (IDE) to work on the project. One recommendation is Microsoft Visual Studio Code (https://code.visualstudio.com/) and you can install Solidity support for Visual Studio Code (https://marketplace.visualstudio.com/items?itemName=JuanBlanco.solidity) for better experiences in developing Solidity smart contracts. Visual Studio Code is also a great IDE for JavaScript development and we can use it for full stack DeFi application development. Once you have gotten your IDE ready, let’s start writing!
Writing and compiling a smart contract
Before writing a smart contract, we need to install the OpenZeppelin (https://www.openzeppelin.com/) package with the following...