-
Notifications
You must be signed in to change notification settings - Fork 593
Expand file tree
/
Copy pathfoundry.toml
More file actions
125 lines (116 loc) · 4.08 KB
/
foundry.toml
File metadata and controls
125 lines (116 loc) · 4.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
[profile.default]
src = 'src'
test = 'test'
script = 'script'
out = 'out'
libs = ['lib']
# NOTE!: This line defines the solc version used.
# It is downloaded by bootstrap.sh, but the version string here is parsed.
solc = "./solc-0.8.30"
evm_version = 'prague'
optimizer = true
optimizer_runs = 100
match_path = "test/**/*.t.sol"
# Helper to get all the contract names in the src/governance and src/core directories
# find ./src/governance ./src/core -type f -name "*.sol" -exec grep -h "^contract [A-Za-z]" {} \; | sed -E 's/contract ([A-Za-z0-9_]+).*/"\1"/' | tr "\n" ", "
gas_reports = [
"BN254KeyTest",
"CoinIssuer",
"FeeJuicePortal",
"Governance",
"TestGov",
"GovernanceProposer",
"GSE",
"Inbox",
"Multicall3",
"Outbox",
"Registry",
"RewardDistributor",
"Rollup",
"RollupCore",
"Slasher",
"RollupWithPreheating",
"SlashingProposer",
"MultiAdder",
]
remappings = [
"@oz/=lib/openzeppelin-contracts/contracts/",
"@aztec/=src",
"@test/=test",
"@generated/=generated/",
"@zkpassport/=lib/circuits/src/solidity/src/",
"@zkpassport-test/=lib/circuits/src/solidity/test",
"@aztec-blob-lib/=src/mock/libraries",
]
# See more config options https://github.com/foundry-rs/foundry/tree/master/config
fs_permissions = [
{ access = "read", path = "./test/fixtures/bn254_constants.json" },
{ access = "read", path = "./test/fixtures/mixed_checkpoint_1.json" },
{ access = "read", path = "./test/fixtures/mixed_checkpoint_2.json" },
{ access = "read", path = "./test/fixtures/single_tx_checkpoint_1.json" },
{ access = "read", path = "./test/fixtures/single_tx_checkpoint_2.json" },
{ access = "read", path = "./test/fixtures/empty_checkpoint_1.json" },
{ access = "read", path = "./test/fixtures/empty_checkpoint_2.json" },
{ access = "read", path = "./test/fixtures/fee_data_points.json" },
{ access = "read", path = "./test/staking_asset_handler/zkpassport/fixtures/valid_proof.hex" },
{ access = "read", path = "./test/staking_asset_handler/zkpassport/fixtures/valid_committed_inputs.hex" },
{ access = "read", path = "./test/staking_asset_handler/zkpassport/fixtures/valid_public_inputs.json" },
{ access = "read", path = "./test/fixtures/boosted_rewards/shares.json" },
{ access = "read", path = "./test/fixtures/boosted_rewards/activity_scores.json" },
{ access = "read", path = "./script/registration_data.json" },
# Network defaults - copied from spartan/environments/default.json by bootstrap.sh
{ access = "read", path = "./generated/default.json" }
]
no_match_contract = "(ScreamAndShoutTest|UniswapPortalTest|MerkleCheck)"
[fmt]
line_length = 120
tab_width = 2
variable_override_spacing = false
wrap_comments = true
number_underscore = "thousands"
override_spacing = false
[lint]
ignore = ["./lib/**"]
exclude_lints = [
"unused-import", # Mostly in test code
"incorrect-shift", # Throws warnings on construction of bitmasks
"asm-keccak256", # https://github.com/AztecProtocol/aztec-packages/issues/16808
# Silencing due to just being style changes
"mixed-case-variable",
"mixed-case-function",
"screaming-snake-case-const",
"screaming-snake-case-immutable",
]
[rpc_endpoints]
mainnet_fork = "https://mainnet.infura.io/v3/9928b52099854248b3a096be07a6b23c"
[profile.production]
remappings = [
"@oz/=lib/openzeppelin-contracts/contracts/",
"@aztec/=src",
"@test/=test",
"@generated/=generated/",
"@zkpassport/=lib/circuits/src/solidity/src/",
"@zkpassport-test/=lib/circuits/src/solidity/test",
"@aztec-blob-lib/=src/core/libraries/rollup/",
]
[profile.coverage]
script = "coverage-script"
sparse_mode = true
skip = [
"shouting.t.sol",
"test/benchmark/happy.t.sol",
"test/script",
"script/deploy/DeployAztecL1Contracts.s.sol",
"test/staking/move.t.sol",
"test/validator-selection/setupEpoch.t.sol",
"test/validator-selection/setupSampleSeed.t.sol",
]
remappings = [
"@oz/=lib/openzeppelin-contracts/contracts/",
"@aztec/=src",
"@test/=test",
"@generated/=src/mock/coverage/generated/",
"@zkpassport/=src/mock/coverage/zkpassport/",
"@zkpassport-test/=lib/circuits/src/solidity/test",
"@aztec-blob-lib/=src/mock/libraries",
]