Skip to content

Commit

Permalink
put back 165
Browse files Browse the repository at this point in the history
  • Loading branch information
RensR committed Sep 20, 2024
1 parent 1bf0365 commit 40a891f
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 24 deletions.
40 changes: 20 additions & 20 deletions contracts/gas-snapshots/ccip.gas-snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,23 @@ BurnWithFromMintTokenPool_lockOrBurn:test_PoolBurn_Success() (gas: 244050)
BurnWithFromMintTokenPool_lockOrBurn:test_Setup_Success() (gas: 24170)
CCIPClientExample_sanity:test_ImmutableExamples_Success() (gas: 2052431)
CCIPHomeSetup:test_getCapabilityConfiguration_Success() (gas: 9485)
CCIPHome_ConfigStateMachine:test__computeConfigDigest_Success() (gas: 83249)
CCIPHome_ConfigStateMachine:test__computeNewConfigWithMeta_InitToRunning_Success() (gas: 354552)
CCIPHome_ConfigStateMachine:test__computeNewConfigWithMeta_RunningToStaging_Success() (gas: 466897)
CCIPHome_ConfigStateMachine:test__computeNewConfigWithMeta_StagingToRunning_Success() (gas: 433263)
CCIPHome_ConfigStateMachine:test__validateConfigStateTransition_Success() (gas: 8670)
CCIPHome_ConfigStateMachine:test__validateConfigTransition_InitToRunning_Success() (gas: 305949)
CCIPHome_ConfigStateMachine:test__validateConfigTransition_InitToRunning_WrongConfigCount_Reverts() (gas: 46160)
CCIPHome_ConfigStateMachine:test__computeConfigDigest_Success() (gas: 83337)
CCIPHome_ConfigStateMachine:test__computeNewConfigWithMeta_InitToRunning_Success() (gas: 354574)
CCIPHome_ConfigStateMachine:test__computeNewConfigWithMeta_RunningToStaging_Success() (gas: 466963)
CCIPHome_ConfigStateMachine:test__computeNewConfigWithMeta_StagingToRunning_Success() (gas: 433329)
CCIPHome_ConfigStateMachine:test__validateConfigStateTransition_Success() (gas: 8805)
CCIPHome_ConfigStateMachine:test__validateConfigTransition_InitToRunning_Success() (gas: 305971)
CCIPHome_ConfigStateMachine:test__validateConfigTransition_InitToRunning_WrongConfigCount_Reverts() (gas: 46182)
CCIPHome_ConfigStateMachine:test__validateConfigTransition_NonExistentConfigTransition_Reverts() (gas: 24996)
CCIPHome_ConfigStateMachine:test__validateConfigTransition_RunningToStaging_Success() (gas: 362424)
CCIPHome_ConfigStateMachine:test__validateConfigTransition_RunningToStaging_WrongConfigCount_Reverts() (gas: 109973)
CCIPHome_ConfigStateMachine:test__validateConfigTransition_RunningToStaging_WrongConfigDigestBlueGreen_Reverts() (gas: 141534)
CCIPHome_ConfigStateMachine:test__validateConfigTransition_StagingToRunning_Success() (gas: 362141)
CCIPHome_ConfigStateMachine:test__validateConfigTransition_StagingToRunning_WrongConfigDigest_Reverts() (gas: 141601)
CCIPHome_ConfigStateMachine:test__validateConfigTransition_RunningToStaging_Success() (gas: 362490)
CCIPHome_ConfigStateMachine:test__validateConfigTransition_RunningToStaging_WrongConfigCount_Reverts() (gas: 110039)
CCIPHome_ConfigStateMachine:test__validateConfigTransition_RunningToStaging_WrongConfigDigestBlueGreen_Reverts() (gas: 141644)
CCIPHome_ConfigStateMachine:test__validateConfigTransition_StagingToRunning_Success() (gas: 362207)
CCIPHome_ConfigStateMachine:test__validateConfigTransition_StagingToRunning_WrongConfigDigest_Reverts() (gas: 141711)
CCIPHome_ConfigStateMachine:test_getCapabilityConfiguration_Success() (gas: 9652)
CCIPHome_beforeCapabilityConfigSet:test_beforeCapabilityConfigSet_CommitAndExecConfig_Success() (gas: 1696904)
CCIPHome_beforeCapabilityConfigSet:test_beforeCapabilityConfigSet_CommitConfigOnly_Success() (gas: 990175)
CCIPHome_beforeCapabilityConfigSet:test_beforeCapabilityConfigSet_ExecConfigOnly_Success() (gas: 990209)
CCIPHome_beforeCapabilityConfigSet:test_beforeCapabilityConfigSet_CommitAndExecConfig_Success() (gas: 1696814)
CCIPHome_beforeCapabilityConfigSet:test_beforeCapabilityConfigSet_CommitConfigOnly_Success() (gas: 990130)
CCIPHome_beforeCapabilityConfigSet:test_beforeCapabilityConfigSet_ExecConfigOnly_Success() (gas: 990164)
CCIPHome_beforeCapabilityConfigSet:test_beforeCapabilityConfigSet_OnlyCapabilitiesRegistryCanCall_Reverts() (gas: 9665)
CCIPHome_beforeCapabilityConfigSet:test_beforeCapabilityConfigSet_ZeroLengthConfig_Success() (gas: 15592)
CCIPHome_beforeCapabilityConfigSet:test_getCapabilityConfiguration_Success() (gas: 9573)
Expand All @@ -63,14 +63,14 @@ CCIPHome_chainConfig:test_applyChainConfigUpdates_removeChainConfigs_Success() (
CCIPHome_chainConfig:test_applyChainConfigUpdates_selectorNotFound_Reverts() (gas: 14921)
CCIPHome_chainConfig:test_getCapabilityConfiguration_Success() (gas: 9594)
CCIPHome_chainConfig:test_getPaginatedCCIPHomes_Success() (gas: 370990)
CCIPHome_constructor:test_constructor_Success() (gas: 2957125)
CCIPHome_constructor:test_constructor_ZeroAddressNotAllowed_Revert() (gas: 60980)
CCIPHome_constructor:test_constructor_Success() (gas: 2988852)
CCIPHome_constructor:test_constructor_ZeroAddressNotAllowed_Revert() (gas: 61020)
CCIPHome_updatePluginConfig:test__updatePluginConfig_InvalidConfigLength_Reverts() (gas: 19611)
CCIPHome_updatePluginConfig:test__updatePluginConfig_InvalidConfigStateTransition_Reverts() (gas: 19418)
CCIPHome_updatePluginConfig:test_getCapabilityConfiguration_Success() (gas: 9631)
CCIPHome_updatePluginConfig:test_updatePluginConfig_InitToRunning_Success() (gas: 1038558)
CCIPHome_updatePluginConfig:test_updatePluginConfig_RunningToStaging_Success() (gas: 1921768)
CCIPHome_updatePluginConfig:test_updatePluginConfig_StagingToRunning_Success() (gas: 1921802)
CCIPHome_updatePluginConfig:test_updatePluginConfig_InitToRunning_Success() (gas: 1038535)
CCIPHome_updatePluginConfig:test_updatePluginConfig_RunningToStaging_Success() (gas: 1921767)
CCIPHome_updatePluginConfig:test_updatePluginConfig_StagingToRunning_Success() (gas: 1921801)
CCIPHome_validateConfig:test__validateConfigLessTransmittersThanSigners_Success() (gas: 333177)
CCIPHome_validateConfig:test__validateConfigSmallerFChain_Success() (gas: 464532)
CCIPHome_validateConfig:test__validateConfig_ABIEncodedAddress_OfframpAddressCannotBeZero_Reverts() (gas: 288463)
Expand Down
8 changes: 7 additions & 1 deletion contracts/src/v0.8/ccip/capability/CCIPHome.sol
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ import {ICapabilitiesRegistry} from "../interfaces/ICapabilitiesRegistry.sol";
import {OwnerIsCreator} from "../../shared/access/OwnerIsCreator.sol";
import {Internal} from "../libraries/Internal.sol";

import {IERC165} from "../../vendor/openzeppelin-solidity/v5.0.2/contracts/interfaces/IERC165.sol";
import {EnumerableSet} from "../../vendor/openzeppelin-solidity/v5.0.2/contracts/utils/structs/EnumerableSet.sol";

/// @notice CCIPHome stores the configuration for the CCIP capability.
/// We have two classes of configuration: chain configuration and DON (in the CapabilitiesRegistry sense) configuration.
/// Each chain will have a single configuration which includes information like the router address.
/// Each CR DON will have up to four configurations: for each of (commit, exec), one blue and one green configuration.
/// This is done in order to achieve "blue-green" deployments.
contract CCIPHome is ITypeAndVersion, ICapabilityConfiguration, OwnerIsCreator {
contract CCIPHome is ITypeAndVersion, ICapabilityConfiguration, OwnerIsCreator, IERC165 {
using EnumerableSet for EnumerableSet.UintSet;

/// @notice Emitted when a chain's configuration is set.
Expand Down Expand Up @@ -149,6 +150,11 @@ contract CCIPHome is ITypeAndVersion, ICapabilityConfiguration, OwnerIsCreator {
i_capabilitiesRegistry = capabilitiesRegistry;
}

/// @inheritdoc IERC165
function supportsInterface(bytes4 interfaceId) external pure override returns (bool) {
return interfaceId == type(ICapabilityConfiguration).interfaceId || interfaceId == type(IERC165).interfaceId;
}

// ================================================================
// │ Config Getters │
// ================================================================
Expand Down
28 changes: 26 additions & 2 deletions core/gethwrappers/ccip/generated/ccip_home/ccip_home.go

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ burn_mint_token_pool_and_proxy: ../../../contracts/solc/v0.8.24/BurnMintTokenPoo
burn_with_from_mint_token_pool: ../../../contracts/solc/v0.8.24/BurnWithFromMintTokenPool/BurnWithFromMintTokenPool.abi ../../../contracts/solc/v0.8.24/BurnWithFromMintTokenPool/BurnWithFromMintTokenPool.bin 6333d0314d0bd29e75ea5e05fe62a4516ade0c6db91c30b6f93645035db52ed8
burn_with_from_mint_token_pool_and_proxy: ../../../contracts/solc/v0.8.24/BurnWithFromMintTokenPoolAndProxy/BurnWithFromMintTokenPoolAndProxy.abi ../../../contracts/solc/v0.8.24/BurnWithFromMintTokenPoolAndProxy/BurnWithFromMintTokenPoolAndProxy.bin 08ed1235dda921ce8841b26aa18d0c0f36db4884779dd7670857159801b6d597
ccip_encoding_utils: ../../../contracts/solc/v0.8.24/CCIPEncodingUtils/CCIPEncodingUtils.abi ../../../contracts/solc/v0.8.24/CCIPEncodingUtils/CCIPEncodingUtils.bin ebabd5311ad4374df0f2f5cd5640bb58d938d92f5a82962ac4df7b6e5af2c197
ccip_home: ../../../contracts/solc/v0.8.24/CCIPHome/CCIPHome.abi ../../../contracts/solc/v0.8.24/CCIPHome/CCIPHome.bin 0dad31438a094c33484189c0160ee9bc28a6909eabeb9450664313867521faec
ccip_home: ../../../contracts/solc/v0.8.24/CCIPHome/CCIPHome.abi ../../../contracts/solc/v0.8.24/CCIPHome/CCIPHome.bin 5bba70340f698b4e88677f996ec8c6dd3bebdc31081c9fa0cf4e81ce2e9b3f42
ccip_reader_tester: ../../../contracts/solc/v0.8.24/CCIPReaderTester/CCIPReaderTester.abi ../../../contracts/solc/v0.8.24/CCIPReaderTester/CCIPReaderTester.bin 1181c7150062d6f0793beb50cb6b984c7f7adef0b9528ef1b419923fffcfdcac
commit_store: ../../../contracts/solc/v0.8.24/CommitStore/CommitStore.abi ../../../contracts/solc/v0.8.24/CommitStore/CommitStore.bin 274d87db70b643e00ab0a7e7845bb4b791f3b613bfc87708d33fc5a8369e2a41
commit_store_helper: ../../../contracts/solc/v0.8.24/CommitStoreHelper/CommitStoreHelper.abi ../../../contracts/solc/v0.8.24/CommitStoreHelper/CommitStoreHelper.bin f7128dcc2ee6dbcbc976288abcc16970ffb19b59412c5202ef6b259d2007f801
Expand Down

0 comments on commit 40a891f

Please sign in to comment.