Giter Site home page Giter Site logo

appworkshw's Introduction

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

appworkshw's People

Contributors

gjim avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.