Deploying with Foundry
What is Foundry
Setting up the development environment
curl -L https://foundry.paradigm.xyz | bash
forge --version
Project Config
## foundry.toml
[profile.default]
libs = ['lib']
out = 'out'
src = 'src'
optimizer = true
optimizer_runs = 200
solc_version = "0.8.13"
# See more config options https://github.com/foundry-rs/foundry/tree/master/config
[rpc_endpoints]
sixnet = "${SIXNET_RPC_URL}"
fivenet = "${FIVENET_RPC_URL}"
[etherscan]
fivenet = {key = "ANY STRING HERE", chain = 150, url="https://fivenet.evm.sixscan.io/api"}
sixnet = {key = "ANY STRING HERE", chain = 98, url="https://evm.sixscan.io/api"}Compiling your contract
Deploying your contract
Verify your contract
Last updated