-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into ccip-2379/capjobspec-migrations
- Loading branch information
Showing
46 changed files
with
884 additions
and
232 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": patch | ||
--- | ||
|
||
#internal Use audited version of OCR2Base.sol in OCR3Capability.sol |
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 | ||
--- | ||
|
||
#internal remove shared secret from transmission schedule |
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 @@ | ||
<!--- Does this work have a corresponding ticket? --> | ||
|
||
https://smartcontract-it.atlassian.net/browse/... | ||
|
||
<!--- Does this work depend on other open PRs? --> | ||
|
||
Requires: | ||
- https://github.com/smartcontractkit/chainlink-common/pull/123456 | ||
|
||
<!--- Does this work support other open PRs? --> | ||
|
||
Supports: | ||
- https://github.com/smartcontractkit/ccip/pull/456789 |
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 |
---|---|---|
|
@@ -88,7 +88,7 @@ jobs: | |
with: | ||
ref: ${{ github.head_ref || github.ref_name }} | ||
- name: Setup GAP for Grafana | ||
uses: smartcontractkit/.github/actions/setup-gap@main | ||
uses: smartcontractkit/.github/actions/setup-gap@6c9d62fdad050cfb8b59376ded291f1350705944 # [email protected] | ||
with: | ||
# aws inputs | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
|
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 |
---|---|---|
|
@@ -218,7 +218,7 @@ jobs: | |
echo "version=${{ inputs.chainlinkVersionUpdate }}" >>$GITHUB_OUTPUT | ||
fi | ||
- name: Setup GAP for Grafana | ||
uses: smartcontractkit/.github/actions/setup-gap@main | ||
uses: smartcontractkit/.github/actions/setup-gap@6c9d62fdad050cfb8b59376ded291f1350705944 # [email protected] | ||
with: | ||
# aws inputs | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
|
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 |
---|---|---|
|
@@ -229,7 +229,7 @@ jobs: | |
echo "run_command=./smoke/${{ matrix.evm_node.product }}_test.go" >> "$GITHUB_OUTPUT" | ||
fi | ||
- name: Setup GAP for Grafana | ||
uses: smartcontractkit/.github/actions/setup-gap@main | ||
uses: smartcontractkit/.github/actions/setup-gap@6c9d62fdad050cfb8b59376ded291f1350705944 # [email protected] | ||
with: | ||
# aws inputs | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
|
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 |
---|---|---|
|
@@ -322,7 +322,7 @@ jobs: | |
echo "run_command=./smoke/${{ matrix.product.name }}_test.go" >> "$GITHUB_OUTPUT" | ||
fi | ||
- name: Setup GAP for Grafana | ||
uses: smartcontractkit/.github/actions/setup-gap@main | ||
uses: smartcontractkit/.github/actions/setup-gap@6c9d62fdad050cfb8b59376ded291f1350705944 # [email protected] | ||
with: | ||
# aws inputs | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
|
@@ -437,7 +437,7 @@ jobs: | |
echo "run_command=./smoke/${{ matrix.product.name }}_test.go" >> "$GITHUB_OUTPUT" | ||
fi | ||
- name: Setup GAP for Grafana | ||
uses: smartcontractkit/.github/actions/setup-gap@main | ||
uses: smartcontractkit/.github/actions/setup-gap@6c9d62fdad050cfb8b59376ded291f1350705944 # [email protected] | ||
with: | ||
# aws inputs | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
|
@@ -660,7 +660,7 @@ jobs: | |
run: | | ||
docker logs otel-collector | ||
- name: Setup GAP for Grafana | ||
uses: smartcontractkit/.github/actions/setup-gap@main | ||
uses: smartcontractkit/.github/actions/setup-gap@6c9d62fdad050cfb8b59376ded291f1350705944 # [email protected] | ||
with: | ||
# aws inputs | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
|
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 |
---|---|---|
|
@@ -248,7 +248,7 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
- name: Setup GAP for Grafana | ||
uses: smartcontractkit/.github/actions/setup-gap@main | ||
uses: smartcontractkit/.github/actions/setup-gap@6c9d62fdad050cfb8b59376ded291f1350705944 # [email protected] | ||
with: | ||
# aws inputs | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
|
@@ -331,7 +331,7 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
- name: Setup GAP for Grafana | ||
uses: smartcontractkit/.github/actions/setup-gap@main | ||
uses: smartcontractkit/.github/actions/setup-gap@6c9d62fdad050cfb8b59376ded291f1350705944 # [email protected] | ||
with: | ||
# aws inputs | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
|
@@ -414,7 +414,7 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
- name: Setup GAP for Grafana | ||
uses: smartcontractkit/.github/actions/setup-gap@main | ||
uses: smartcontractkit/.github/actions/setup-gap@6c9d62fdad050cfb8b59376ded291f1350705944 # [email protected] | ||
with: | ||
# aws inputs | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
|
@@ -497,7 +497,7 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
- name: Setup GAP for Grafana | ||
uses: smartcontractkit/.github/actions/setup-gap@main | ||
uses: smartcontractkit/.github/actions/setup-gap@6c9d62fdad050cfb8b59376ded291f1350705944 # [email protected] | ||
with: | ||
# aws inputs | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
|
@@ -576,7 +576,7 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
- name: Setup GAP for Grafana | ||
uses: smartcontractkit/.github/actions/setup-gap@main | ||
uses: smartcontractkit/.github/actions/setup-gap@6c9d62fdad050cfb8b59376ded291f1350705944 # [email protected] | ||
with: | ||
# aws inputs | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
|
@@ -659,7 +659,7 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
- name: Setup GAP for Grafana | ||
uses: smartcontractkit/.github/actions/setup-gap@main | ||
uses: smartcontractkit/.github/actions/setup-gap@6c9d62fdad050cfb8b59376ded291f1350705944 # [email protected] | ||
with: | ||
# aws inputs | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
|
@@ -742,7 +742,7 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
- name: Setup GAP for Grafana | ||
uses: smartcontractkit/.github/actions/setup-gap@main | ||
uses: smartcontractkit/.github/actions/setup-gap@6c9d62fdad050cfb8b59376ded291f1350705944 # [email protected] | ||
with: | ||
# aws inputs | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
|
@@ -825,7 +825,7 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
- name: Setup GAP for Grafana | ||
uses: smartcontractkit/.github/actions/setup-gap@main | ||
uses: smartcontractkit/.github/actions/setup-gap@6c9d62fdad050cfb8b59376ded291f1350705944 # [email protected] | ||
with: | ||
# aws inputs | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
|
@@ -904,7 +904,7 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
- name: Setup GAP for Grafana | ||
uses: smartcontractkit/.github/actions/setup-gap@main | ||
uses: smartcontractkit/.github/actions/setup-gap@6c9d62fdad050cfb8b59376ded291f1350705944 # [email protected] | ||
with: | ||
# aws inputs | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
|
@@ -983,7 +983,7 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
- name: Setup GAP for Grafana | ||
uses: smartcontractkit/.github/actions/setup-gap@main | ||
uses: smartcontractkit/.github/actions/setup-gap@6c9d62fdad050cfb8b59376ded291f1350705944 # [email protected] | ||
with: | ||
# aws inputs | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
|
@@ -1062,7 +1062,7 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
- name: Setup GAP for Grafana | ||
uses: smartcontractkit/.github/actions/setup-gap@main | ||
uses: smartcontractkit/.github/actions/setup-gap@6c9d62fdad050cfb8b59376ded291f1350705944 # [email protected] | ||
with: | ||
# aws inputs | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
|
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 |
---|---|---|
|
@@ -139,7 +139,7 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
- name: Setup GAP for Grafana | ||
uses: smartcontractkit/.github/actions/setup-gap@main | ||
uses: smartcontractkit/.github/actions/setup-gap@6c9d62fdad050cfb8b59376ded291f1350705944 # [email protected] | ||
with: | ||
# aws inputs | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
|
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,5 @@ | ||
--- | ||
'@chainlink/contracts': patch | ||
--- | ||
|
||
#internal Use audited version of OCR2Base.sol in OCR3Capability.sol |
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,103 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.19; | ||
|
||
import {ITypeAndVersion} from "../../shared/interfaces/ITypeAndVersion.sol"; | ||
|
||
abstract contract OCR2Abstract is ITypeAndVersion { | ||
// Maximum number of oracles the offchain reporting protocol is designed for | ||
uint256 internal constant MAX_NUM_ORACLES = 31; | ||
|
||
/** | ||
* @notice triggers a new run of the offchain reporting protocol | ||
* @param previousConfigBlockNumber block in which the previous config was set, to simplify historic analysis | ||
* @param configDigest configDigest of this configuration | ||
* @param configCount ordinal number of this config setting among all config settings over the life of this contract | ||
* @param signers ith element is address ith oracle uses to sign a report | ||
* @param transmitters ith element is address ith oracle uses to transmit a report via the transmit method | ||
* @param f maximum number of faulty/dishonest oracles the protocol can tolerate while still working correctly | ||
* @param onchainConfig serialized configuration used by the contract (and possibly oracles) | ||
* @param offchainConfigVersion version of the serialization format used for "offchainConfig" parameter | ||
* @param offchainConfig serialized configuration used by the oracles exclusively and only passed through the contract | ||
*/ | ||
event ConfigSet( | ||
uint32 previousConfigBlockNumber, | ||
bytes32 configDigest, | ||
uint64 configCount, | ||
address[] signers, | ||
address[] transmitters, | ||
uint8 f, | ||
bytes onchainConfig, | ||
uint64 offchainConfigVersion, | ||
bytes offchainConfig | ||
); | ||
|
||
/** | ||
* @notice sets offchain reporting protocol configuration incl. participating oracles | ||
* @param signers addresses with which oracles sign the reports | ||
* @param transmitters addresses oracles use to transmit the reports | ||
* @param f number of faulty oracles the system can tolerate | ||
* @param onchainConfig serialized configuration used by the contract (and possibly oracles) | ||
* @param offchainConfigVersion version number for offchainEncoding schema | ||
* @param offchainConfig serialized configuration used by the oracles exclusively and only passed through the contract | ||
*/ | ||
function setConfig( | ||
address[] memory signers, | ||
address[] memory transmitters, | ||
uint8 f, | ||
bytes memory onchainConfig, | ||
uint64 offchainConfigVersion, | ||
bytes memory offchainConfig | ||
) external virtual; | ||
|
||
/** | ||
* @notice information about current offchain reporting protocol configuration | ||
* @return configCount ordinal number of current config, out of all configs applied to this contract so far | ||
* @return blockNumber block at which this config was set | ||
* @return configDigest domain-separation tag for current config (see _configDigestFromConfigData) | ||
*/ | ||
function latestConfigDetails() | ||
external | ||
view | ||
virtual | ||
returns (uint32 configCount, uint32 blockNumber, bytes32 configDigest); | ||
|
||
/** | ||
* @notice optionally emited to indicate the latest configDigest and epoch for | ||
which a report was successfully transmited. Alternatively, the contract may | ||
use latestConfigDigestAndEpoch with scanLogs set to false. | ||
*/ | ||
event Transmitted(bytes32 configDigest, uint32 epoch); | ||
|
||
/** | ||
* @notice optionally returns the latest configDigest and epoch for which a | ||
report was successfully transmitted. Alternatively, the contract may return | ||
scanLogs set to true and use Transmitted events to provide this information | ||
to offchain watchers. | ||
* @return scanLogs indicates whether to rely on the configDigest and epoch | ||
returned or whether to scan logs for the Transmitted event instead. | ||
* @return configDigest | ||
* @return epoch | ||
*/ | ||
function latestConfigDigestAndEpoch() | ||
external | ||
view | ||
virtual | ||
returns (bool scanLogs, bytes32 configDigest, uint32 epoch); | ||
|
||
/** | ||
* @notice transmit is called to post a new report to the contract | ||
* @param report serialized report, which the signatures are signing. | ||
* @param rs ith element is the R components of the ith signature on report. Must have at most maxNumOracles entries | ||
* @param ss ith element is the S components of the ith signature on report. Must have at most maxNumOracles entries | ||
* @param rawVs ith element is the the V component of the ith signature | ||
*/ | ||
function transmit( | ||
// NOTE: If these parameters are changed, expectedMsgDataLength and/or | ||
// TRANSMIT_MSGDATA_CONSTANT_LENGTH_COMPONENT need to be changed accordingly | ||
bytes32[3] calldata reportContext, | ||
bytes calldata report, | ||
bytes32[] calldata rs, | ||
bytes32[] calldata ss, | ||
bytes32 rawVs // signatures | ||
) external virtual; | ||
} |
Oops, something went wrong.