Skip to content

ubinix-warun/base-camp-goerli

Repository files navigation

Base 🔵 Camp -- Base Goerli

Solidity Testing

Base Camp's curriculum has been expertly crafted to equip you with the skills and knowledge needed to build and deploy smart contracts on Base, or any EVM-compatible chain, including Ethereum, Optimism, and many more. Plus, you'll be eligible to earn NFTs as you complete each module, showcasing your mastery of the material.

Try running some of the following tasks:

npx hardhat help
npx hardhat test
npx hardhat coverage

Complie & Deploy to Base Goerli

npx hardhat compile
npx hardhat run scripts/deploy.ts --network base-goerli

>> Lock with 0.001ETH and unlock timestamp 1686628428 deployed to <deployed address>

npx hardhat verify --network base-goerli <deployed address>

>> The contract <deployed address> has already been verified.
>> https://goerli.basescan.org/address/<deployed address>#code

npm run standard
npm run format

Note -- Setup toolkit and libraries

Install Hardhat and OpenZeppelin.
# Hardhat Toolkit.

npm install --save-dev hardhat
npm install --save-dev @nomicfoundation/hardhat-toolbox
npm install --save-dev @nomicfoundation/hardhat-verify

# OpenZeppelin Libraries.

npm install --save-dev dotenv 
npm install --save-dev solidity-math
npm install --save-dev solidity-coverage

npm install --save @openzeppelin/contracts
Install Mocha-Chai, ESlint and prettier (sol).
# Test Framework.

npm install mocha --save-dev
npm install chai --save-dev
npm install mocha -g

npm run test

# Coding Standard.

npm install --save-dev prettier prettier-plugin-solidity
npm install --save-dev eslint @typescript-eslint/parser @typescript-eslint/eslint-plugin

npm run lint
npm run prettier
npm run eslint
npm run eslint-fix
Install Solidity analyzer (mythril).
conda create -n py39-sol-analysis python=3.9
conda activate py39-sol-analysis

pip3 install mythril

myth analyze contracts/ArraysExercise.sol 
>> The analysis was completed successfully. No issues were detected.
Deploy to other networks (Linea).
npx hardhat run scripts/deploy.ts --network linea-goerli

>> Lock with 0.001ETH and unlock timestamp 1688729082 deployed to <deployed address>

### ERROR: npx hardhat verify --network linea-goerli <deployed address>

About

learning smart contract development and earn NFTs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors