-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathfoundry.toml
More file actions
66 lines (55 loc) · 2.25 KB
/
foundry.toml
File metadata and controls
66 lines (55 loc) · 2.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
[profile.default]
src = 'src'
out = 'out'
libs = ['lib']
# See more config options https://github.com/foundry-rs/foundry/tree/master/config
solc = "0.8.25"
evm_version = "cancun"
# Try to make sure the optimizer doesn't touch the output in a way that can break
# source maps for debugging.
# via_ir = true
# optimizer = false
# optimizer_runs = 0
# optimizer_steps = 0
# These settings should be used for snapshots
optimizer = true
optimizer_runs = 1000000
ffi = true
bytecode_hash = "none"
cbor_metadata = false
fs_permissions = [
{access="read-write", path="./out/test/"},
{ access = "read-write", path = "./meta" },
{ access = "read-write", path = "src/generated" },
{ access = "write", path = "./deployments/latest/RainlangParser" },
{ access = "write", path = "./deployments/latest/RainlangStore" },
{ access = "write", path = "./deployments/latest/RainlangInterpreter" },
{ access = "write", path = "./deployments/latest/RainlangExpressionDeployer" }
]
remappings = [
# The auto remapping wasn't appending /src/ for some reason.
"forge-std/=lib/rain.interpreter.interface/lib/forge-std/src/",
"rain.metadata/=lib/rain.metadata/src/",
"rain.sol.codegen/=lib/rain.interpreter.interface/lib/rain.sol.codegen/src/",
"rain.solmem/=lib/rain.interpreter.interface/lib/rain.solmem/src/",
"openzeppelin-contracts/=lib/rain.interpreter.interface/lib/openzeppelin-contracts/",
"rain.math.float/=lib/rain.interpreter.interface/lib/rain.math.float/src/",
"rain.intorastring/=lib/rain.interpreter.interface/lib/rain.intorastring/src/",
"rain.deploy/=lib/rain.deploy/src/",
"rain.tofu.erc20-decimals/=lib/rain.tofu.erc20-decimals/src/",
]
gas_limit = "18446744073709551615"
[fuzz]
runs = 2048
[rpc_endpoints]
arbitrum = "${CI_DEPLOY_ARBITRUM_RPC_URL}"
base = "${CI_DEPLOY_BASE_RPC_URL}"
base_sepolia = "${CI_DEPLOY_BASE_SEPOLIA_RPC_URL}"
flare = "${CI_DEPLOY_FLARE_RPC_URL}"
polygon = "${CI_DEPLOY_POLYGON_RPC_URL}"
[etherscan]
arbitrum = { key = "${CI_DEPLOY_ARBITRUM_ETHERSCAN_API_KEY}" }
base = { key = "${CI_DEPLOY_BASE_ETHERSCAN_API_KEY}" }
base_sepolia = { key = "${CI_DEPLOY_BASE_SEPOLIA_ETHERSCAN_API_KEY}" }
flare = { key = "${CI_DEPLOY_FLARE_ETHERSCAN_API_KEY}" }
polygon = { key = "${CI_DEPLOY_POLYGON_ETHERSCAN_API_KEY}" }