-
Notifications
You must be signed in to change notification settings - Fork 436
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: verify with deployment (#3255)
- Loading branch information
1 parent
3bd520e
commit 7d530fd
Showing
32 changed files
with
1,077 additions
and
730 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,13 @@ | ||
--- | ||
'@hyperlane-xyz/helloworld': minor | ||
'@hyperlane-xyz/infra': minor | ||
'@hyperlane-xyz/sdk': minor | ||
'@hyperlane-xyz/core': minor | ||
--- | ||
|
||
Enabled verification of contracts as part of the deployment flow. | ||
|
||
- Solidity build artifact is now included as part of the `@hyperlane-xyz/core` package. | ||
- Updated the `HyperlaneDeployer` to perform contract verification immediately after deploying a contract. A default verifier is instantiated using the core build artifact. | ||
- Updated the `HyperlaneIsmFactory` to re-use the `HyperlaneDeployer` for deployment where possible. | ||
- Minor logging improvements throughout deployers. |
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 |
---|---|---|
|
@@ -13,3 +13,4 @@ out | |
forge-cache | ||
docs | ||
flattened/ | ||
buildArtifact.json |
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,34 @@ | ||
#!/bin/sh | ||
|
||
# set script location as working directory | ||
cd "$(dirname "$0")" | ||
|
||
# Define the artifacts directory | ||
artifactsDir="./artifacts/build-info" | ||
# Define the output file | ||
outputFile="./buildArtifact.json" | ||
|
||
# log that we're in the script | ||
echo 'Finding and processing hardhat build artifact...' | ||
|
||
# Find most recently modified JSON build artifact | ||
if [[ $OSTYPE == 'darwin'* ]]; then | ||
# for local flow | ||
jsonFiles=$(find "$artifactsDir" -type f -name "*.json" -exec stat -f "%m %N" {} \; | sort -rn | head -n 1 | cut -d' ' -f2-) | ||
else | ||
# for CI flow | ||
jsonFiles=$(find "$artifactsDir" -type f -name "*.json" -exec stat -c "%Y %n" {} \; | sort -rn | head -n 1 | cut -d' ' -f2-) | ||
fi | ||
|
||
if [[ ! -f "$jsonFiles" ]]; then | ||
echo 'Failed to find build artifact' | ||
exit 1 | ||
fi | ||
|
||
# Extract required keys and write to outputFile | ||
if jq -c '{input, solcLongVersion}' "$jsonFiles" > "$outputFile"; then | ||
echo 'Finished processing build artifact.' | ||
else | ||
echo 'Failed to process build artifact with jq' | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
}, | ||
"exclude": ["./test", "hardhat.config.ts", "./dist"], | ||
"extends": "../tsconfig.json" | ||
} | ||
} |
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
Oops, something went wrong.