-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR attempts to standardize the `via-ir` settings used throughout the repo. We set consistent configs for the `ir` Foundry profile in each of the sub-projects. In CI and the deploy scripts, we also switch to using the `ir` Foundry profile instead of relying on `via-ir`.
- Loading branch information
1 parent
1afeb4e
commit 7d4a98c
Showing
14 changed files
with
262 additions
and
234 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
[profile.default] | ||
solc = "0.8.27" | ||
evm_version = "cancun" | ||
|
||
libs = [ "./lib" ] | ||
bytecode_hash = "none" | ||
cbor_metadata = false | ||
|
||
# output intermediate representation | ||
[profile.ir] | ||
extra_output = ["ir"] | ||
extra_output_files = ["ir"] | ||
via_ir = true | ||
optimizer = true | ||
optimizer_runs = 100000000 | ||
extra_output = [ "ir" ] | ||
extra_output_files = [ "ir" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/bash | ||
|
||
forge snapshot --via-ir | ||
FOUNDRY_PROFILE=ir forge snapshot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
[profile.default] | ||
solc = "0.8.27" | ||
evm_version = "cancun" | ||
|
||
libs = [ "../../lib" ] | ||
|
||
src = "src" | ||
out = "out" | ||
test = "../../test/codejar" | ||
|
||
[profile.ir] | ||
via_ir = true | ||
optimizer = true | ||
optimizer_runs = 100000000 | ||
extra_output = [ "ir" ] | ||
extra_output_files = [ "ir" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
[profile.default] | ||
solc = "0.8.27" | ||
evm_version = "cancun" | ||
|
||
libs = [ "../../lib" ] | ||
|
||
src = "src" | ||
out = "out" | ||
test = "../../test/quark-core-scripts/" | ||
bytecode_hash = "none" | ||
cbor_metadata = false | ||
|
||
[profile.ir] | ||
via_ir = true | ||
optimizer = true | ||
optimizer_runs = 100000000 | ||
extra_output = [ "ir" ] | ||
extra_output_files = [ "ir" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
[profile.default] | ||
solc = "0.8.27" | ||
evm_version = "cancun" | ||
|
||
libs = [ "../../lib" ] | ||
|
||
src = "src" | ||
out = "out" | ||
test = "../../test/quark-core" | ||
bytecode_hash = "none" | ||
cbor_metadata = false | ||
|
||
[profile.ir] | ||
via_ir = true | ||
optimizer = true | ||
optimizer_runs = 100000000 | ||
extra_output = [ "ir" ] | ||
extra_output_files = [ "ir" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
[profile.default] | ||
solc = "0.8.27" | ||
evm_version = "cancun" | ||
|
||
libs = [ "../../lib" ] | ||
|
||
src = "src" | ||
out = "out" | ||
test = "../../test/quark-factory/" | ||
bytecode_hash = "none" | ||
cbor_metadata = false | ||
|
||
[profile.ir] | ||
via_ir = true | ||
optimizer = true | ||
optimizer_runs = 100000000 | ||
extra_output = [ "ir" ] | ||
extra_output_files = [ "ir" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,17 @@ | ||
[profile.default] | ||
solc = "0.8.27" | ||
evm_version = "cancun" | ||
|
||
libs = [ "../../lib" ] | ||
|
||
src = "src" | ||
out = "out" | ||
test = "../../test/quark-proxy" | ||
|
||
# optimizer config | ||
optimizer = true | ||
optimizer_runs = 1 | ||
cbor_metadata = false | ||
bytecode_hash = "none" | ||
|
||
[profile.ir] | ||
via_ir = true | ||
optimizer = true | ||
# We optimize for deployment cost over runtime gas efficiency | ||
optimizer_runs = 1 | ||
extra_output = [ "ir" ] | ||
extra_output_files = [ "ir" ] |