Skip to content

crazilazi/web3WithFoundry

Repository files navigation

web3WithFoundry

web3 development using foundry

Install foundry

foundry

Integrating foundry with VSCode

vscode

Build, Test and Deploy using foundry

# Build
forge build --contracts YourContract
 
# Test
forge test

# Deploy
forge script .\script\YourContractScript.s.sol:YourContractScript --fork-url [Your network rpc URL] --private-key [Your private key] --broadcast

Interact with contracts using foundry

# Call contract method
cast call [your contract address] "getSomethingFromYourContract()(string memory)" --rpc-url [Your network rpc URL]

Run node using foundry

anvil

About

web3 development using foundry

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published