KO
|
EN
gitlite — search
Search
#javascript
#python
#hacktoberfest
#react
#ai
#typescript
#llm
#go
#golang
#android
#machine-learning
#rust
#deep-learning
#linux
SecureDevelopmentWorkshop
★ 9
Open GitHub ↗
No description available.
Download README (.md)
Explore Similar Repositories
materialistic-knife-835
:
This is a project of an E-commerce website where customers can register, login and show product and add to cart. this project is a clone from the website https://bluemercury.com
ShangMeiCuiXue
:
一个微信云开发的校园论坛小程序
hilfsmittel-api
:
No description available.
awesome-dots
:
My custom AwesomeWM desktop.
vue3-learn
:
Vue3源码阅读
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
SecureDevelopmentWorkshop
?
Download (.md)
# Secure DeFi smart contract development on Ethereum ## Setup ### Alchemy * Go to [Alchemy](ttps://dashboard.alchemyapi.io/). * Create an API key for Alchemy by creating a new app. ### Docker or install Foundry For Docker: ``docker pull ghcr.io/foundry-rs/foundry:latest`` ``docker run --rm -v $PWD:/shared/ -it --entrypoint /bin/sh ghcr.io/foundry-rs/foundry`` For [Foundry](https://github.com/foundry-rs/foundry): ``curl -L https://foundry.paradigm.xyz | bash`` and then restart your terminal and run ``foundryup``. ### Last Step You should be able to run successfully the following command: ``forge test --fork-url https://eth-mainnet.alchemyapi.io/v2/<API_KEY> --match Fork`` ## Foundry Cheatsheet * ``vm.prank(address)``: execute the next call as an arbitrary address * ``vm.startPrank(address)`` * ``vm.stopPrank()`` ### Fuzzing * ``function foo(fuzzedValue)`` * ``vm.assume(bool)`` ### Mainnet fork * ``forge test --fork-url https://eth-mainnet.alchemyapi.io/v2/<API_KEY> --match <test_name>``