upgrade-airlock / foundry.toml
foundry.toml53 lines · 1558 bytes
| 1 | # Ethereum (Sepolia) build. `FOUNDRY_PROFILE=eth` selects [profile.eth], which is identical to the default. |
| 2 | [profile.default] |
| 3 | src = "src" |
| 4 | out = "out" |
| 5 | libs = ["lib"] |
| 6 | test = "test" |
| 7 | script = "script" |
| 8 | |
| 9 | solc_version = "0.8.37" # pinned; must already be in the local svm cache for --offline builds |
| 10 | evm_version = "osaka" |
| 11 | network = "ethereum" |
| 12 | optimizer = true |
| 13 | optimizer_runs = 10_000 |
| 14 | via_ir = false |
| 15 | |
| 16 | # Keep the default metadata hash: Sourcify returns `exact_match` only when the CBOR metadata is present. |
| 17 | bytecode_hash = "ipfs" |
| 18 | cbor_metadata = true |
| 19 | |
| 20 | # Remappings are explicit (remappings.txt). Auto-detection would pick up the upgradeable package's own |
| 21 | # remapping to its (empty) git-submodule copy of openzeppelin-contracts. |
| 22 | auto_detect_remappings = false |
| 23 | |
| 24 | fs_permissions = [ |
| 25 | { access = "read", path = "./" }, |
| 26 | { access = "read-write", path = "./deployments" }, |
| 27 | { access = "read-write", path = "./cache" }, |
| 28 | ] |
| 29 | |
| 30 | [fuzz] |
| 31 | runs = 1_000 |
| 32 | |
| 33 | [invariant] |
| 34 | runs = 256 |
| 35 | depth = 64 |
| 36 | fail_on_revert = false |
| 37 | |
| 38 | # Kept so `FOUNDRY_PROFILE=eth` keeps working in scripts; everything else is inherited from the default profile. |
| 39 | [profile.eth] |
| 40 | network = "ethereum" |
| 41 | |
| 42 | # Use with `--rpc-url sepolia` (or any other key below). |
| 43 | [rpc_endpoints] |
| 44 | sepolia = "https://ethereum-sepolia-rpc.publicnode.com" |
| 45 | sepolia_drpc = "https://sepolia.drpc.org" |
| 46 | sepolia_1rpc = "https://1rpc.io/sepolia" |
| 47 | |
| 48 | # Contract verification (Sourcify): |
| 49 | # FOUNDRY_PROFILE=eth forge verify-contract <address> src/AirlockAdmin.sol:AirlockAdmin --chain sepolia \ |
| 50 | # --verifier sourcify --watch |
| 51 | |
| 52 | [fmt] |
| 53 | line_length = 120 |