-
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 remote-tracking branch 'origin/develop' into KS-125-public-regi…
…stry-curse-capability-version # Conflicts: # contracts/src/v0.8/keystone/CapabilityRegistry.sol # core/gethwrappers/keystone/generated/keystone_capability_registry/keystone_capability_registry.go # core/gethwrappers/keystone/generation/generated-wrapper-dependency-versions-do-not-edit.txt
- Loading branch information
Showing
47 changed files
with
1,258 additions
and
582 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 | ||
--- | ||
|
||
#internal changes to core required by change BCF3168 in common to add relayer set |
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 Optimize workflow engine tests |
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 | ||
--- | ||
|
||
Improving LogPoller read queries by properly sorting by multiple columns #updated |
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 | ||
--- | ||
|
||
Support for retention in LogPoller's filters registered by ContractTransmitter #changed |
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 |
---|---|---|
|
@@ -16,6 +16,7 @@ jobs: | |
permissions: | ||
id-token: write | ||
contents: read | ||
actions: read | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 | ||
|
@@ -28,6 +29,31 @@ jobs: | |
core-changeset: | ||
- added: '.changeset/**' | ||
- name: Setup pnpm | ||
uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3.0.0 | ||
if: steps.changeset-added.outputs.core-changeset == 'true' | ||
with: | ||
version: ^8.0.0 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | ||
if: steps.changeset-added.outputs.core-changeset == 'true' | ||
with: | ||
node-version: 20 | ||
cache: pnpm | ||
cache-dependency-path: ./pnpm-lock.yaml | ||
|
||
- name: Run changeset version | ||
run: pnpm install && pnpm changeset version | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
if: steps.changeset-added.outputs.core-changeset == 'true' | ||
|
||
- name: Get release version | ||
if: steps.changeset-added.outputs.core-changeset == 'true' | ||
id: get-release-version | ||
run: echo "version=$(jq -r '.version' package.json)" >> $GITHUB_OUTPUT | ||
|
||
- name: cicd-changesets | ||
if: steps.changeset-added.outputs.core-changeset == 'true' | ||
uses: smartcontractkit/.github/actions/cicd-changesets@6da79c7b9f14bec077df2c1ad40d53823b409d9c # [email protected] | ||
|
@@ -37,7 +63,7 @@ jobs: | |
git-email: app-token-issuer-releng[bot]@users.noreply.github.com | ||
pnpm-use-cache: false | ||
pr-draft: true | ||
pr-title: "[DO NOT MERGE] Release Preview - Changeset" | ||
pr-title: "[DO NOT MERGE] Changeset Release Preview - v${{ steps.get-release-version.outputs.version }}" | ||
# aws inputs | ||
aws-region: ${{ secrets.AWS_REGION }} | ||
aws-role-arn: ${{ secrets.AWS_OIDC_CHAINLINK_CI_AUTO_PR_TOKEN_ISSUER_ROLE_ARN }} | ||
|
29 changes: 29 additions & 0 deletions
29
contracts/src/v0.8/keystone/test/CapabilityRegistry_GetCapabilityIds.t.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,29 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.19; | ||
|
||
import {BaseTest} from "./BaseTest.t.sol"; | ||
import {CapabilityRegistry} from "../CapabilityRegistry.sol"; | ||
|
||
contract CapabilityRegistry_GetCapabilitiesTest is BaseTest { | ||
function test_ReturnsCapabilities() public { | ||
s_capabilityRegistry.addCapability(s_basicCapability); | ||
s_capabilityRegistry.addCapability(s_capabilityWithConfigurationContract); | ||
|
||
CapabilityRegistry.Capability[] memory capabilities = s_capabilityRegistry.getCapabilities(); | ||
|
||
assertEq(capabilities.length, 2); | ||
|
||
assertEq(capabilities[0].capabilityType, "data-streams-reports"); | ||
assertEq(capabilities[0].version, "1.0.0"); | ||
assertEq(uint256(capabilities[0].responseType), uint256(CapabilityRegistry.CapabilityResponseType.REPORT)); | ||
assertEq(capabilities[0].configurationContract, address(0)); | ||
|
||
assertEq(capabilities[1].capabilityType, "read-ethereum-mainnet-gas-price"); | ||
assertEq(capabilities[1].version, "1.0.2"); | ||
assertEq( | ||
uint256(capabilities[1].responseType), | ||
uint256(CapabilityRegistry.CapabilityResponseType.OBSERVATION_IDENTICAL) | ||
); | ||
assertEq(capabilities[1].configurationContract, address(s_capabilityConfigurationContract)); | ||
} | ||
} |
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
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.