-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathfoundry.toml
More file actions
72 lines (62 loc) · 3.08 KB
/
foundry.toml
File metadata and controls
72 lines (62 loc) · 3.08 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
67
68
69
70
71
72
[profile.default]
src = 'src'
out = 'out'
libs = ['lib']
# See more config options https://github.com/foundry-rs/foundry/tree/master/config
ffi = true
solc = "0.8.25"
evm_version = "cancun"
# optimizer settings for debugging
# via_ir = false
# optimizer = false
# optimizer_runs = 0
# optimizer_steps = 0
# optimizer settings for snapshotting.
optimizer = true
# Lowered from 1000000 → 1000 → 800 to stay under the EIP-170 24KB contract
# size limit. At 1000 runs OrderBookV6 was 24,650 bytes (74 over); at 800 it
# is 23,437 bytes (1,139 under).
optimizer_runs = 800
bytecode_hash = "none"
cbor_metadata = false
# Build metadata used for testing rain meta aware contracts in this folder rather
# than expose ffi to forge.
fs_permissions = [
{ access = "read", path = "./meta"}, {access = "read", path = "./lib/rain.interpreter/meta/RainterpreterExpressionDeployerNPE2.rain.meta"},
{ access = "read", path = "./lib/rain.interpreter/deployments/latest/RainterpreterParserNPE2" },
{ access = "read", path = "./lib/rain.interpreter/deployments/latest/RainterpreterStoreNPE2" },
{ access = "read", path = "./lib/rain.interpreter/deployments/latest/RainterpreterNPE2" },
{ access = "read", path = "./lib/rain.interpreter/deployments/latest/RainterpreterExpressionDeployerNPE2" },
{ access = "read-write", path = "./meta/OrderBookV6SubParserAuthoringMeta.rain.meta"},
{ access = "read-write", path = "src/generated" },
{ access = "read", path = "./subgraph" },
]
remappings = [
"forge-std/=lib/rain.interpreter/lib/rain.interpreter.interface/lib/forge-std/src/",
"openzeppelin-contracts/=lib/rain.raindex.interface/lib/rain.interpreter.interface/lib/openzeppelin-contracts/",
"rain.interpreter/=lib/rain.interpreter/src/",
"rain.metadata/=lib/rain.interpreter/lib/rain.metadata/src/",
"rain.interpreter.interface/=lib/rain.raindex.interface/lib/rain.interpreter.interface/src/",
"rain.intorastring/=lib/rain.interpreter/lib/rain.interpreter.interface/lib/rain.intorastring/src/",
"rain.sol.codegen/=lib/rain.interpreter/lib/rain.interpreter.interface/lib/rain.sol.codegen/src/",
"rain.solmem/=lib/rain.raindex.interface/lib/rain.interpreter.interface/lib/rain.solmem/src",
"rain.math.float/=lib/rain.raindex.interface/lib/rain.interpreter.interface/lib/rain.math.float/src/",
"rain.tofu.erc20-decimals/=lib/rain.interpreter/lib/rain.tofu.erc20-decimals/src/",
"rain.deploy/=lib/rain.deploy/src/",
"rain.lib.typecast/=lib/rain.raindex.interface/lib/rain.interpreter.interface/lib/rain.lib.typecast/src/",
"sushixswap-v2/=lib/sushixswap-v2/",
]
[fuzz]
runs = 5096
[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}" }