Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set foundry profile #100

Merged
merged 2 commits into from
Jun 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ git-diff :
@mkdir -p diffs
@printf '%s\n%s\n%s\n' "\`\`\`diff" "$$(git diff --no-index --diff-algorithm=patience --ignore-space-at-eol ${before} ${after})" "\`\`\`" > diffs/${out}.md

mainnet-contract:; forge script ${contract_path} --rpc-url mainnet --sig "run(bool)" false -vv
optimism-contract:; forge script ${contract_path} --rpc-url optimism --sig "run(bool)" false -vv
polygon-contract:; forge script ${contract_path} --rpc-url polygon --sig "run(bool)" false -vv
arbitrum-contract:; forge script ${contract_path} --rpc-url arbitrum --sig "run(bool)" false -vv
metis-contract:; forge script ${contract_path} --rpc-url metis --sig "run(bool)" false -vv
base-contract:; forge script ${contract_path} --rpc-url base --sig "run(bool)" false -vv
mainnet-contract:; FOUNDRY_PROFILE=mainnet forge script ${contract_path} --rpc-url mainnet --sig "run(bool)" false -vv
optimism-contract:; FOUNDRY_PROFILE=optimism forge script ${contract_path} --rpc-url optimism --sig "run(bool)" false -vv
polygon-contract:; FOUNDRY_PROFILE=polygon forge script ${contract_path} --rpc-url polygon --sig "run(bool)" false -vv
arbitrum-contract:; FOUNDRY_PROFILE=arbitrum forge script ${contract_path} --rpc-url arbitrum --sig "run(bool)" false -vv
metis-contract:; FOUNDRY_PROFILE=metis forge script ${contract_path} --rpc-url metis --sig "run(bool)" false -vv
base-contract:; FOUNDRY_PROFILE=base forge script ${contract_path} --rpc-url base --sig "run(bool)" false -vv
gnosis-contract:; forge script ${contract_path} --rpc-url gnosis --sig "run(bool)" false -vv
scroll-contract:; forge script ${contract_path} --rpc-url scroll --sig "run(bool)" false -vv
bnb-contract:; forge script ${contract_path} --rpc-url bnb --sig "run(bool)" false -vv
Expand Down
22 changes: 22 additions & 0 deletions foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,28 @@ remappings = [
fs_permissions = [{ access = "write", path = "./reports" }]
ffi = true

# incomplete list at https://www.evmdiff.com/features?name=PUSH0&kind=opcode
[profile.metis]
evm_version = 'paris'

[profile.mainnet]
evm_version = 'shanghai'

[profile.arbitrum]
evm_version = 'shanghai'

[profile.optimism]
evm_version = 'shanghai'

[profile.base]
evm_version = 'shanghai'

[profile.polygon]
evm_version = 'shanghai'

[profile.avalanche]
evm_version = 'shanghai'

[rpc_endpoints]
mainnet = "${RPC_MAINNET}"
optimism = "${RPC_OPTIMISM}"
Expand Down
Loading