7. Hardhat | Fund Me
Linting
Hardhat Deploy
deploy/01-deploy-fund-me.js
// Method 1
// function deployFunc() {
// console.log("Hi!")
// }
// module.exports.default = deployFunc
// Method 2
// module.exports = async (hre) => {
// // hre.getNamedAccounts, hre.deployments
// const { getNamedAccounts, deployments } = hre
// }
// Method 3
module.exports = async ({ getNamedAccounts, deployments }) => {
const { deploy, log } = deployments
const { deployer } = await getNamedAccounts()
const chainId = network.config.chainId
}Mocking & helper-hardhat-config
contracts/FundMe.sol
contracts/PriceConverter.sol
contracts/test/MockV3Aggregator.sol
helper-hardhat-config.js
deploy/00-deploy-mocks.js
01-deploy-fund-me.js
Utils Folder
utils/verify.js
deploy/01-deploy-fund-me.js
Solidity Style Guide
Test FundMe
Debugging & Breakpoints
Solidity-Console-Log
Storage in Solidity
getStorageAt
Gas & OpCodes
Solidity Chainlink Style Guide
Reference Code
Last updated