-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfoundry.toml
60 lines (52 loc) · 2.32 KB
/
foundry.toml
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
[profile.default]
out = "out"
test = "test"
script = "script"
libs = ["lib"]
auto_detect_solc = true
bytecode_hash = "none"
fuzz_runs = 256
gas_reports = ["*"]
optimizer = true
optimizer_runs = 10_000
legacy = true
fs_permissions = [
{ access = "read", path = "./broadcast" },
{ access = "read", path = "./out" },
{ access = "read", path = "./data" },
{ access = "read", path = "./script/upgrades/dependencies.json" },
{ access = "read", path = "./script/upgrades/MINIDROP/data/" },
]
via_ir = true
# There's a bug that occurs when trying to verify libraries in sourcify, on testnets.
# The verification fails for the library and it aborts the rest of the verifications
# for all contracts in that script run.
# The way to get around this is by running the script once, have it fail and then
# specify the libraries under the specific network here
#
# However, it is important to note that the first time a deployment is run on a network
# we will have to rerun a deployment after all libraries are deployed and linked here.
# If not then the metadata of contracts deployed **before** the libraries were added,
# contracts that do not require the libraries, will still have their bytecode different
# because of the metadata hash, and the verification will fail. This is because
# the metadata of a contract will contain the statically linked libraries during compilation
# irrespective of whether the contract uses them or not.
[profile.alfajores-deployment]
libraries = [
"lib/mento-core-2.0.0/contracts/common/linkedlists/AddressLinkedList.sol:AddressLinkedList:0x2F0F7686fFFEfc3C266403Ad600035581deaedff",
"lib/mento-core-2.0.0/contracts/common/linkedlists/AddressSortedLinkedListWithMedian.sol:AddressSortedLinkedListWithMedian:0x29B1B5e05217c751038861aF2C77494EAB10A257",
]
[profile.celo-deployment]
libraries = [
"lib/mento-core-2.0.0/contracts/common/linkedlists/AddressLinkedList.sol:AddressLinkedList:0x6200F54D73491d56b8d7A975C9ee18EFb4D518Df",
"lib/mento-core-2.0.0/contracts/common/linkedlists/AddressSortedLinkedListWithMedian.sol:AddressSortedLinkedListWithMedian:0xED477A99035d0c1e11369F1D7A4e587893cc002B",
]
[profile.ci]
fuzz_runs = 1_000
verbosity = 4
[profile.integration]
no_match_contract = "RandomTest"
match_contract = "Integration"
[rpc_endpoints]
celo = "${CELO_RPC_URL}"
alfajores = "${ALFAJORES_RPC_URL}"