-
Notifications
You must be signed in to change notification settings - Fork 419
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'v3' into nambrot/fix-artifacts
- Loading branch information
Showing
15 changed files
with
3,337 additions
and
863 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{{/* | ||
We truncate at 63 chars - (11 + (len $suffix)) because the controller-revision-hash label adds an 11 character suffix | ||
to the pod name, and we want the -validator suffix to still be present, but are happy to truncate the preceding name. | ||
See https://github.com/kubernetes/kubernetes/issues/64023 for controller-revision-hash details. | ||
*/}} | ||
{{- define "validator.fullname" -}} | ||
{{- $suffix := "-validator" }} | ||
{{- include "agent-common.fullname" . | trunc (int (sub 63 (add 11 (len $suffix)))) | trimSuffix "-" }}{{ print $suffix }} | ||
{{- end }} |
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 |
---|---|---|
|
@@ -11,3 +11,4 @@ coverage.json | |
out | ||
forge-cache | ||
docs | ||
flattened/ |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
LICENSE="// SPDX-License-Identifier: MIT OR Apache-2.0" | ||
|
||
rm -rf flattened | ||
mkdir -p flattened | ||
|
||
# flatten contracts | ||
yarn hardhat flatten > flattened/flattened.sol | ||
|
||
# remove duplicate licenses | ||
grep -vE "// SPDX.*" flattened/flattened.sol > flattened/delicensed.sol | ||
|
||
# add license | ||
echo "$LICENSE" | cat - flattened/delicensed.sol > flattened/licensed.sol | ||
|
||
# compile | ||
solc flattened/licensed.sol | ||
|
||
# TODO: automate this? | ||
if [ $? -ne 0 ]; then | ||
echo "Remove @openzeppelin/../ICrossDomainMessenger and replace Optimism_Bridge with ICrossDomainMessenger" | ||
echo "Then try compiling again with solc flattened/licensed.sol" | ||
exit 1 | ||
fi |
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
Oops, something went wrong.