Repository navigation
Expand file tree
/
Copy pathfoundry-tests.toml
More file actions
292 lines (253 loc) · 11.2 KB
/
Copy pathfoundry-tests.toml
File metadata and controls
292 lines (253 loc) · 11.2 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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
# Foundry project test configuration.
#
# Build systems:
# [build_systems]
# yarn = "<x.y.z>" # Pinned version installed globally once per run.
# pnpm = "<x.y.z>"
# bun = "<x.y.z>"
#
# Compilers:
# [compilers.<id>]
# name = "00.solc" # Display name in reports (hyphens become newlines).
# # Also interpreted by the PR-summary toolchain tables
# # (solx-benchmark-converter/src/toolchain_matrix.rs):
# # renaming a compiler here without updating them renders
# # every summary with a loud harness error.
# path = "./path/to/compiler" # Path to compiler executable
# description = "..." # Compiler description
# solidity_version = "0.8.30" # Override Solidity version (optional)
# is_correctness_reference = true/false # Reference for correctness checks
# is_correctness_candidate = true/false # Candidate for correctness checks
# disabled = true/false # Whether to skip this compiler
#
# Projects:
# [projects.<name>]
# url = "https://github.com/..." # Git repository URL
# commit = "abc123..." # Git commit SHA to pin (optional, HEAD if omitted)
# patch = "./path.patch" # Applied with `git apply` right after checkout
# description = "..." # Project description
# build_system = "yarn" # npm, yarn, pnpm, or bun that installs packages, from the lockfile if present (optional)
# rewrite_pragmas_in = ["..."] # Installed package directories whose pragmas are rewritten too
# disabled = true/false # Whether to skip this project
# [projects.<name>.env]
# VAR = "value" # Environment variables for build/test
#
# Comparisons:
# [[comparisons]]
# left = "03.solx-legacy" # Left toolchain: {compiler.name}-{codegen}
# right = "02.solx-main-legacy" # Right toolchain: {compiler.name}-{codegen}
# disabled = true/false # Whether to skip this comparison
[build_systems]
yarn = "1.22.22"
bun = "1.4.4"
[compilers.solc]
name = "00.solc-0.8.34"
path = "./temp-compilers/solc-0.8.34"
description = "solc the latest downloaded from the official repo"
disabled = true
[compilers.solx-latest]
name = "01.solx-latest"
path = "./temp-compilers/solx-latest"
description = "solx downloaded from the latest release"
disabled = true
[compilers.solx-main]
name = "02.solx-main"
path = "./temp-solx-main/target/release/slang"
description = "solx built from the main branch"
is_correctness_reference = true
disabled = false
[compilers.solx]
name = "03.solx"
path = "./target/release/slang"
description = "solx built from the current commit"
is_correctness_candidate = true
disabled = false
# Comparisons for Excel diff columns.
# Each comparison generates a diff column showing (left - right) / right as percentage.
# The 'left' and 'right' values should match the full toolchain name: "{compiler.name}-{codegen}".
# Comparisons are only included if both referenced compilers are enabled.
[[comparisons]]
left = "03.solx-legacy"
right = "01.solx-latest-legacy"
disabled = true
[[comparisons]]
left = "03.solx-viaIR"
right = "01.solx-latest-viaIR"
disabled = true
[[comparisons]]
left = "03.solx-legacy"
right = "02.solx-main-legacy"
disabled = false
[[comparisons]]
left = "03.solx-viaIR"
right = "02.solx-main-viaIR"
disabled = false
[[comparisons]]
left = "03.solx-legacy"
right = "00.solc-0.8.34-legacy"
disabled = false
[[comparisons]]
left = "03.solx-viaIR"
right = "00.solc-0.8.34-viaIR"
disabled = false
[projects.openzeppelin]
url = "https://github.com/OpenZeppelin/openzeppelin-contracts"
commit = "97430aa29ac10a70ee0c18f2a905c4925363b58f"
description = "A library for secure smart contract development."
build_system = "npm"
patch = "./solx-dev/foundry-patches/openzeppelin.patch"
[projects.lil-web3]
url = "https://github.com/m1guelpf/lil-web3"
commit = "7346bd28c2586da3b07102d5290175a276949b15"
description = "lil web3 aims to build really simple, intentionally-limited versions of web3 protocols & apps."
[projects.maple-erc20]
url = "https://github.com/maple-labs/erc20"
commit = "baf791a9f894b0b319a2d42d5b9f8d30349ebaad"
description = "Basic ERC-20 contract designed to be inherited and extended."
[projects.diamonds]
url = "https://github.com/Timidan/Foundry-Hardhat-Diamonds"
commit = "e9fdadc94d35c77611fd5788b99d0840cab7d3f8"
description = "A minimal template for Diamonds EIP-2535."
build_system = "yarn"
[projects.rollcall]
url = "https://github.com/withtally/rollcall"
commit = "f81b68cf02e0a2a8f2d30746cc1e3afd42e8e1eb"
description = "A set of cross chain governance solutions."
[projects.playpen]
url = "https://github.com/ZeframLou/playpen"
commit = "77d4fd2dd5399c97bb40eccc7cedd296376acf6a"
description = "A set of modern, gas optimized staking pool contracts."
[projects.playpen.env]
FOUNDRY_NO_MATCH_TEST = "testFail" # forge 1.x fails every `testFail*` test and skips the rest of its contract
[projects.solmate]
url = "https://github.com/transmissions11/solmate"
commit = "89365b880c4f3c786bdd453d4b8e8fe410344a69"
description = "Modern, opinionated, and gas optimized building blocks for smart contract development."
[projects.solmate.env]
FOUNDRY_NO_MATCH_TEST = "testFail" # forge 1.x fails every `testFail*` test and skips the rest of its contract
[projects.prb-math]
url = "https://github.com/paulrberg/prb-math"
commit = "dd349aaa5c75087f08125ef321c1df6c6cf41e78"
description = "Solidity library for advanced fixed-point math operations."
build_system = "bun"
[projects.solady]
url = "https://github.com/Vectorized/solady"
commit = "2afba69bf67b78dd4abeadcc696052b3a6f71499"
patch = "./solx-dev/foundry-patches/solady.patch"
description = "Gas optimized Solidity snippets."
[projects.unix]
url = "https://github.com/refcell/unix"
commit = "ebd26fea4e86544606bc0be58aaab0215c729382"
description = "A lightweight, extensible foundry library for shell scripting."
patch = "./solx-dev/foundry-patches/unix.patch"
[projects.unix.env]
EVM_DISABLE_MEMORY_SAFE_ASM_CHECK = "true"
[projects.foundry-upgrades]
url = "https://github.com/odyslam/foundry-upgrades"
commit = "e736e4f5d707c9d1227bb71a6f337d0bed2964bf"
description = "Helper smart contracts to deploy and manage upgradeable contracts."
[projects.art-gobblers]
url = "https://github.com/artgobblers/art-gobblers"
commit = "a18ea7fec3b766444a3277392c405e2a107a2d75"
patch = "./solx-dev/foundry-patches/art-gobblers.patch"
description = "A decentralized art factory and marketplace."
[projects.art-gobblers.env]
FOUNDRY_ISOLATE = "false" # setUp predicts deployment addresses from nonces that isolation bumps on every call
[projects.lens-core]
url = "https://github.com/lens-protocol/core"
commit = "d4c662aac780e669cd23769730cdc4f0189ee5be"
description = "Lens protocol, non-custodial social graph."
build_system = "npm"
[projects.lens-core.env]
EVM_DISABLE_MEMORY_SAFE_ASM_CHECK = "true"
[projects.balance-snapshot]
url = "https://github.com/pilagod/balance-snapshot"
commit = "1cec2c808500bffc9e00d73dadcb6207615e27a4"
description = "A Solidity library to improve balance change check in Foundry tests."
[projects.diamond-foundry]
url = "https://github.com/FydeTreasury/Diamond-Foundry"
commit = "bdba406856b7e099038b6a696a4fd5b9ac69c500"
description = "a reference implementation for EIP-2535 Diamonds."
patch = "./solx-dev/foundry-patches/diamond-foundry.patch"
[projects.diamond-foundry.env]
EVM_DISABLE_MEMORY_SAFE_ASM_CHECK = "true"
[projects.fixed-term-loan]
url = "https://github.com/maple-labs/fixed-term-loan"
commit = "8fb3675288897cb0b5748a5bbe90a12055bf9fa1"
description = "A set of contracts to facilitate on-chain loans."
# A nested submodule (maple-proxy-factory -> contract-test-utils) pins an SSH URL;
# the harness clone rewrites it to https (see GITHUB_SSH_INSTEAD_OF in utils.rs).
[projects.forge-std]
url = "https://github.com/foundry-rs/forge-std"
commit = "b013eff2ac4fce26f34d789e6f5c49021c5ee817"
description = "Forge Standard Library is a collection of helpful contracts and libraries for use with Forge and Foundry."
[projects.forge-std.env]
FOUNDRY_NO_MATCH_TEST = "test_RevertIf_ModError" # unused `%` by zero does not panic until NomicFoundation/solx#825
[projects.tokenlon]
url = "https://github.com/consenlabs/tokenlon-contracts"
commit = "ada28eb58dc50cde59f87fcb97165a0a5c6655cd"
description = "A decentralized exchange and payment settlement protocol."
[projects.tokenlon.env]
EVM_DISABLE_MEMORY_SAFE_ASM_CHECK = "true"
FOUNDRY_NO_MATCH_PATH = "test/forkMainnet/**" # needs a mainnet RPC
[projects.uniswap-v4]
url = "https://github.com/Uniswap/v4-core"
commit = "46c6834698c48bc4a463a86d8420f4eb1d7f3b75"
description = "A new automated market maker protocol."
[projects.beefy]
url = "https://github.com/beefyfinance/beefy-contracts"
commit = "e33f868e2d995c2db9219029c26d31cd8e7d5cb2"
description = "Official url for strategies and vaults from Beefy."
build_system = "yarn"
[projects.beefy.env]
EVM_DISABLE_MEMORY_SAFE_ASM_CHECK = "true"
FOUNDRY_MATCH_PATH = "forge/test/swapper/**" # every other suite needs a fork RPC or production env
[projects.gov-of-venice]
url = "https://github.com/pentagonxyz/gov-of-venice"
commit = "46ea4138d2296ac9433dc2ba6eb884f0c31e25ef"
description = "A new paradigm in DAO governance."
[projects.gov-of-venice.env]
FOUNDRY_NO_MATCH_TEST = "testFail" # forge 1.x fails every `testFail*` test and skips the rest of its contract
[projects.cicada]
url = "https://github.com/a16z/cicada"
commit = "dec37d732f8ef8a91119650c416ae9bfb531a64a"
description = "A private on-chain voting protocol based on homomorphic time-lock puzzles."
[projects.cicada.env]
EVM_DISABLE_MEMORY_SAFE_ASM_CHECK = "true"
FOUNDRY_NO_MATCH_TEST = "testReference" # compares through vm.ffi against a Python script that needs eth_abi
[projects.seaport]
url = "https://github.com/ProjectOpenSea/seaport"
commit = "7f966fe7bd75932beb0366f6485aa720512b1259"
description = "A marketplace protocol for safely and efficiently buying and selling NFTs."
[projects.seaport.env]
EVM_DISABLE_MEMORY_SAFE_ASM_CHECK = "true"
[projects.lens-v3]
url = "https://github.com/lens-protocol/lens-v3"
commit = "4ad9ab574efc589ac0b90ea103d3aa465bb6368c"
description = "Lens Protocol V3"
build_system = "yarn"
[projects.lens-v3.env]
EVM_DISABLE_MEMORY_SAFE_ASM_CHECK = "true"
[projects.morpho-blue]
url = "https://github.com/morpho-org/morpho-blue"
commit = "9cf6d5b844625ba108e36d1cf911f5d2faf7c136"
description = "Morpho Blue Protocol"
[projects.aave-v3]
url = "https://github.com/aave-dao/aave-v3-origin"
commit = "8305565ae342f1773c42cd2e4593f175fe5968a0"
description = "A non-custodial liquidity protocol on Ethereum."
build_system = "npm"
[projects.aave-v3.env]
EVM_DISABLE_MEMORY_SAFE_ASM_CHECK = "true"
[projects.wtf-gas]
url = "https://github.com/hedgar2017/WTF-gas-optimization"
commit = "1a2b0ca46d0ae04ffbd57cdbfe9f603ecdd61c25"
description = "WTF Solidity gas optimization techniques"
[projects.wtf-gas.env]
FOUNDRY_NO_MATCH_PATH = "15_RequireString/*" # both tests revert by design, to compare revert-string gas
[projects.swap-vm]
url = "https://github.com/1inch/swap-vm"
commit = "585f0541cfbf9a043b4a7b25b6b4c7d752915469"
description = "1inch SwapVM: opcode dispatch loop that re-enters itself through instruction handlers"
build_system = "yarn"
rewrite_pragmas_in = ["node_modules/@1inch/aqua"]