Skip to content

GJim/appworksHW

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AppworksHW

Clone project

git clone --recurse-submodules https://github.com/GJim/appworksHW.git

HW6

cd HW6
# test weth
forge test --mc WETHTest -vvvv
# test bayc
forge test --mc BAYCTest -vvvv

# deploy on devnet(anvil)
anvil
# copy private key into .env
forge script script/WETH.s.sol:WETHScript --rpc-url http://localhost:8545 --broadcast --verify -vvvv
# use send to mint weth token with interative
cast send 0x5fbdb2315678afecb367f032d93f642f64180aa3 "deposit()" --value 10ether -i
# call total supply with private key
cast call 0x5fbdb2315678afecb367f032d93f642f64180aa3 "totalSupply()(uint256)" --private-key 0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d

HW7

cd HW7
# test question 1
forge test --mc Receiver -vvvv
# test question 2
forge test --mc RNDNFT -vvvv

HW8

cd HW8
# test question 1
forge test --mc TradingCenter -vvvv
# test question 2
forge test --mc USDCv3 -vvvv
# Experimental implementation (solmate ERC20 & MultiRolesAuthority)
forge test --mc USDCv2 -vvvv

HW9

cd HW9
# generate report
forge test --mc BenchmarkTest --gas-report

HW10

# homework
cd SimpleSwap
forge test
# practice on class
cd UniswapV2Practice
forge test

HW11

# practice 1 on class
cd UniswapV2Practice
forge test --mc BankTest
# practice 2 on class
cd FlashSwapPractice
forge test --mc FlashSwapPracticeTest
# homework
cd FlashSwapPractice
forge test --mc ArbitragePracticeTest

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages