Skip to content

Commit

Permalink
fix contract names and types (#15033)
Browse files Browse the repository at this point in the history
* fix contract names and types

* Update gethwrappers

* fix prettier

* fix tests

---------

Co-authored-by: app-token-issuer-infra-releng[bot] <120227048+app-token-issuer-infra-releng[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 9c72299 commit 035893b
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 11 deletions.
5 changes: 5 additions & 0 deletions contracts/.changeset/wicked-fireants-explain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@chainlink/contracts': patch
---

#internal fix contract names and versions
2 changes: 1 addition & 1 deletion contracts/src/v0.8/keystone/CapabilitiesRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ contract CapabilitiesRegistry is INodeInfoProvider, OwnerIsCreator, ITypeAndVers
/// @param hashedCapabilityId The hashed ID of the deprecated capability
event CapabilityDeprecated(bytes32 indexed hashedCapabilityId);

string public constant override typeAndVersion = "CapabilitiesRegistry 1.0.1";
string public constant override typeAndVersion = "CapabilitiesRegistry 1.1.0";

/// @notice Mapping of capabilities
mapping(bytes32 hashedCapabilityId => Capability capability) private s_capabilities;
Expand Down
2 changes: 1 addition & 1 deletion contracts/src/v0.8/keystone/KeystoneForwarder.sol
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ contract KeystoneForwarder is OwnerIsCreator, ITypeAndVersion, IRouter {

event ConfigSet(uint32 indexed donId, uint32 indexed configVersion, uint8 f, address[] signers);

string public constant override typeAndVersion = "Forwarder and Router 1.0.0";
string public constant override typeAndVersion = "KeystoneForwarder 1.0.0";

constructor() OwnerIsCreator() {
s_forwarders[address(this)] = true;
Expand Down
2 changes: 1 addition & 1 deletion contracts/src/v0.8/keystone/OCR3Capability.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ contract OCR3Capability is OwnerIsCreator, OCR2Abstract {
error InvalidConfig(string message);
error ReportingUnsupported();

string public constant override typeAndVersion = "Keystone 1.0.0";
string public constant override typeAndVersion = "OCR3Capability 1.0.0";

// incremented each time a new config is posted. This count is incorporated
// into the config digest, to prevent replay attacks.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ import {BaseTest} from "./BaseTest.t.sol";

contract CapabilitiesRegistry_TypeAndVersionTest is BaseTest {
function test_TypeAndVersion() public view {
assertEq(s_CapabilitiesRegistry.typeAndVersion(), "CapabilitiesRegistry 1.0.1");
assertEq(s_CapabilitiesRegistry.typeAndVersion(), "CapabilitiesRegistry 1.1.0");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ import {BaseTest} from "./KeystoneForwarderBaseTest.t.sol";

contract KeystoneForwarder_TypeAndVersionTest is BaseTest {
function test_TypeAndVersion() public view {
assertEq(s_forwarder.typeAndVersion(), "Forwarder and Router 1.0.0");
assertEq(s_forwarder.typeAndVersion(), "KeystoneForwarder 1.0.0");
}
}

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
GETH_VERSION: 1.13.8
capabilities_registry: ../../../contracts/solc/v0.8.24/CapabilitiesRegistry/CapabilitiesRegistry.abi ../../../contracts/solc/v0.8.24/CapabilitiesRegistry/CapabilitiesRegistry.bin 1250614381238d54ec35070c4eaed2884d6fba28ebb75e890600c820e44fc98c
capabilities_registry: ../../../contracts/solc/v0.8.24/CapabilitiesRegistry/CapabilitiesRegistry.abi ../../../contracts/solc/v0.8.24/CapabilitiesRegistry/CapabilitiesRegistry.bin 07e0115065e833b29352017fe808dd149952b0b7fe73d0af87020966d2ece57c
feeds_consumer: ../../../contracts/solc/v0.8.24/KeystoneFeedsConsumer/KeystoneFeedsConsumer.abi ../../../contracts/solc/v0.8.24/KeystoneFeedsConsumer/KeystoneFeedsConsumer.bin 6ac5b12eff3b022a35c3c40d5ed0285bf9bfec0e3669a4b12307332a216048ca
forwarder: ../../../contracts/solc/v0.8.24/KeystoneForwarder/KeystoneForwarder.abi ../../../contracts/solc/v0.8.24/KeystoneForwarder/KeystoneForwarder.bin 03911334d0c88f8ee8ee2d9832fd312bc8a48c824fcda5c807585af2d0e6a148
ocr3_capability: ../../../contracts/solc/v0.8.24/OCR3Capability/OCR3Capability.abi ../../../contracts/solc/v0.8.24/OCR3Capability/OCR3Capability.bin 509af20993cc8d7f4e84d55a3f1316d4bb9ab706f9a50a91ac72de96dbc1244e
forwarder: ../../../contracts/solc/v0.8.24/KeystoneForwarder/KeystoneForwarder.abi ../../../contracts/solc/v0.8.24/KeystoneForwarder/KeystoneForwarder.bin cb728d316f6392ae0d07e6ad94ec93897a4706f6ced7120f79f7e61282ef8152
ocr3_capability: ../../../contracts/solc/v0.8.24/OCR3Capability/OCR3Capability.abi ../../../contracts/solc/v0.8.24/OCR3Capability/OCR3Capability.bin a0adf579d004fe4d4116539cf4bc52d6b1cca9626e91329f552d04f89de9dc84

0 comments on commit 035893b

Please sign in to comment.