-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'ccip-develop' into cherry-pick-handle-errors-handling-f…
…or-gnosis-and-arbitrum
- Loading branch information
Showing
126 changed files
with
9,041 additions
and
1,476 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,5 @@ | ||
--- | ||
"chainlink": minor | ||
--- | ||
|
||
Updated ZK overflow detection to skip transactions with non-broadcasted attempts. Delayed detection for zkEVM using the MinAttempts config. Updated XLayer to use the same detection logic as zkEVM. #internal |
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 |
---|---|---|
|
@@ -7,3 +7,4 @@ helm 3.10.3 | |
zig 0.11.0 | ||
golangci-lint 1.59.1 | ||
protoc 25.1 | ||
python 3.10.5 |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
ROOT="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; cd ../../ && pwd -P )" | ||
|
||
contractName="$1" | ||
SOLC_VERSION="$2" | ||
destPath="$3" | ||
path="$ROOT"/contracts/solc/v$SOLC_VERSION/"$contractName" | ||
|
||
if [ -z "$contractName" ]; then | ||
echo "Error: contractName is not set." | ||
exit 1 | ||
fi | ||
|
||
if [ -z "$contractName" ]; then | ||
echo "Error: solc version is not set." | ||
exit 1 | ||
fi | ||
|
||
if [ -z "$destPath" ]; then | ||
echo "Error: destination path is not set." | ||
exit 1 | ||
fi | ||
|
||
if [ ! -e "$destPath" ]; then | ||
echo "Error: $destPath does not exist." | ||
exit 1 | ||
fi | ||
|
||
|
||
metadata=$(cat "$path/${contractName}_meta.json") | ||
fileName=$(echo "$metadata" | jq -r '.settings.compilationTarget | keys[0]') | ||
combined=$(cat "$path/combined.json") | ||
|
||
abi=$(cat "$path/${contractName}.abi") | ||
bytecode_object="0x$(cat "$path/${contractName}.bin" | tr -d '\n')" | ||
bytecode_sourceMap=$(echo "$combined" | jq -r ".contracts[\"$fileName:$contractName\"].srcmap") | ||
|
||
deployedBytecode_object="0x$(cat "$path/${contractName}.bin-runtime" | tr -d '\n')" | ||
deployedBytecode_sourceMap=$(echo "$combined" | jq -r ".contracts[\"$fileName:$contractName\"].\"srcmap-runtime\"") | ||
|
||
methodIdentifiers=$(echo "$combined" | jq -r ".contracts[\"$fileName:$contractName\"].hashes") | ||
rawMetadata=$(echo "$metadata" | jq -c '.') | ||
|
||
result=$(jq -n \ | ||
--argjson abi "$abi" \ | ||
--arg object "$bytecode_object" \ | ||
--arg sourceMap "$bytecode_sourceMap" \ | ||
--arg deployedObject "$deployedBytecode_object" \ | ||
--arg deployedSourceMap "$deployedBytecode_sourceMap" \ | ||
--argjson methodIdentifiers "$methodIdentifiers" \ | ||
--arg rawMetadata "$rawMetadata" \ | ||
--argjson metadata "$metadata" \ | ||
'{ | ||
abi: $abi, | ||
bytecode: { | ||
object: $object, | ||
sourceMap: $sourceMap | ||
}, | ||
deployedBytecode: { | ||
object: $deployedObject, | ||
sourceMap: $deployedSourceMap | ||
}, | ||
methodIdentifiers: $methodIdentifiers, | ||
rawMetadata: $rawMetadata, | ||
metadata: $metadata | ||
}' | ||
) | ||
|
||
echo "$result" > "$destPath" | ||
echo "Generated artifacts at $(realpath $destPath)" |
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
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.