Skip to content

Commit

Permalink
RMNHome
Browse files Browse the repository at this point in the history
  • Loading branch information
RensR committed Sep 26, 2024
1 parent 390ee23 commit ef30652
Show file tree
Hide file tree
Showing 3 changed files with 688 additions and 170 deletions.
155 changes: 87 additions & 68 deletions contracts/gas-snapshots/ccip.gas-snapshot
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
ARMProxyStandaloneTest:test_ARMCallEmptyContractRevert() (gas: 19675)
ARMProxyStandaloneTest:test_Constructor() (gas: 310043)
ARMProxyStandaloneTest:test_SetARM() (gas: 16587)
ARMProxyStandaloneTest:test_SetARMzero() (gas: 11297)
ARMProxyTest:test_ARMCallRevertReasonForwarded() (gas: 47898)
ARMProxyTest:test_ARMIsBlessed_Success() (gas: 36363)
ARMProxyTest:test_ARMIsCursed_Success() (gas: 49851)
ARMProxyStandaloneTest:test_ARMCallEmptyContractRevert() (gas: 20673)
ARMProxyStandaloneTest:test_Constructor() (gas: 543485)
ARMProxyStandaloneTest:test_SetARM() (gas: 18216)
ARMProxyStandaloneTest:test_SetARMzero() (gas: 12144)
ARMProxyTest:test_ARMCallRevertReasonForwarded() (gas: 49764)
ARMProxyTest:test_ARMIsBlessed_Success() (gas: 39781)
ARMProxyTest:test_ARMIsCursed_Success() (gas: 51846)
AggregateTokenLimiter_constructor:test_Constructor_Success() (gas: 27118)
AggregateTokenLimiter_getTokenBucket:test_GetTokenBucket_Success() (gas: 19871)
AggregateTokenLimiter_getTokenBucket:test_Refill_Success() (gas: 41586)
Expand Down Expand Up @@ -811,6 +811,25 @@ PingPong_plumbing:test_OutOfOrderExecution_Success() (gas: 20310)
PingPong_plumbing:test_Pausing_Success() (gas: 17810)
PingPong_startPingPong:test_StartPingPong_With_OOO_Success() (gas: 162091)
PingPong_startPingPong:test_StartPingPong_With_Sequenced_Ordered_Success() (gas: 181509)
RMNHome__validateStaticAndDynamicConfig:test_validateStaticAndDynamicConfig_DuplicateOffchainPublicKey_reverts() (gas: 18822)
RMNHome__validateStaticAndDynamicConfig:test_validateStaticAndDynamicConfig_DuplicatePeerId_reverts() (gas: 18682)
RMNHome__validateStaticAndDynamicConfig:test_validateStaticAndDynamicConfig_DuplicateSourceChain_reverts() (gas: 20371)
RMNHome__validateStaticAndDynamicConfig:test_validateStaticAndDynamicConfig_MinObserversTooHigh_reverts() (gas: 20810)
RMNHome__validateStaticAndDynamicConfig:test_validateStaticAndDynamicConfig_OutOfBoundsNodesLength_reverts() (gas: 137268)
RMNHome__validateStaticAndDynamicConfig:test_validateStaticAndDynamicConfig_OutOfBoundsObserverNodeIndex_reverts() (gas: 20472)
RMNHome_promoteCandidateAndRevokeActive:test_promoteCandidateAndRevokeActive_ConfigDigestMismatch_reverts() (gas: 23802)
RMNHome_promoteCandidateAndRevokeActive:test_promoteCandidateAndRevokeActive_OnlyOwner_reverts() (gas: 10957)
RMNHome_promoteCandidateAndRevokeActive:test_promoteCandidateAndRevokeActive_success() (gas: 1059318)
RMNHome_revokeCandidate:test_revokeCandidate_ConfigDigestMismatch_reverts() (gas: 19073)
RMNHome_revokeCandidate:test_revokeCandidate_OnlyOwner_reverts() (gas: 10984)
RMNHome_revokeCandidate:test_revokeCandidate_success() (gas: 28184)
RMNHome_setCandidate:test_setCandidate_ConfigDigestMismatch_reverts() (gas: 594772)
RMNHome_setCandidate:test_setCandidate_OnlyOwner_reverts() (gas: 15177)
RMNHome_setCandidate:test_setCandidate_success() (gas: 588430)
RMNHome_setDynamicConfig:test_setDynamicConfig_DigestNotFound_reverts() (gas: 30159)
RMNHome_setDynamicConfig:test_setDynamicConfig_MinObserversTooHigh_reverts() (gas: 18848)
RMNHome_setDynamicConfig:test_setDynamicConfig_OnlyOwner_reverts() (gas: 14115)
RMNHome_setDynamicConfig:test_setDynamicConfig_success() (gas: 103992)
RMNRemote_constructor:test_constructor_success() (gas: 8334)
RMNRemote_constructor:test_constructor_zeroChainSelector_reverts() (gas: 59165)
RMNRemote_curse:test_curse_AlreadyCursed_duplicateSubject_reverts() (gas: 154457)
Expand All @@ -833,62 +852,62 @@ RMNRemote_verify_withConfigSet:test_verify_ThresholdNotMet_reverts() (gas: 15300
RMNRemote_verify_withConfigSet:test_verify_UnexpectedSigner_reverts() (gas: 387667)
RMNRemote_verify_withConfigSet:test_verify_minSignersIsZero_success() (gas: 184524)
RMNRemote_verify_withConfigSet:test_verify_success() (gas: 68207)
RMN_constructor:test_Constructor_Success() (gas: 48994)
RMN_getRecordedCurseRelatedOps:test_OpsPostDeployment() (gas: 19732)
RMN_lazyVoteToCurseUpdate_Benchmark:test_VoteToCurseLazilyRetain3VotersUponConfigChange_gas() (gas: 152296)
RMN_ownerUnbless:test_Unbless_Success() (gas: 74936)
RMN_ownerUnvoteToCurse:test_CanBlessAndCurseAfterGlobalCurseIsLifted() (gas: 471829)
RMN_ownerUnvoteToCurse:test_IsIdempotent() (gas: 398492)
RMN_ownerUnvoteToCurse:test_NonOwner_Revert() (gas: 18723)
RMN_ownerUnvoteToCurse:test_OwnerUnvoteToCurseSuccess_gas() (gas: 358084)
RMN_ownerUnvoteToCurse:test_UnknownVoter_Revert() (gas: 33190)
RMN_ownerUnvoteToCurse_Benchmark:test_OwnerUnvoteToCurse_1Voter_LiftsCurse_gas() (gas: 262408)
RMN_permaBlessing:test_PermaBlessing() (gas: 202777)
RMN_setConfig:test_BlessVoterIsZeroAddress_Revert() (gas: 15500)
RMN_setConfig:test_EitherThresholdIsZero_Revert() (gas: 21107)
RMN_setConfig:test_NonOwner_Revert() (gas: 14725)
RMN_setConfig:test_RepeatedAddress_Revert() (gas: 18219)
RMN_setConfig:test_SetConfigSuccess_gas() (gas: 104154)
RMN_setConfig:test_TotalWeightsSmallerThanEachThreshold_Revert() (gas: 30185)
RMN_setConfig:test_VoteToBlessByEjectedVoter_Revert() (gas: 130461)
RMN_setConfig:test_VotersLengthIsZero_Revert() (gas: 12149)
RMN_setConfig:test_WeightIsZeroAddress_Revert() (gas: 15740)
RMN_setConfig_Benchmark_1:test_SetConfig_7Voters_gas() (gas: 659600)
RMN_setConfig_Benchmark_2:test_ResetConfig_7Voters_gas() (gas: 212652)
RMN_unvoteToCurse:test_InvalidCursesHash() (gas: 26430)
RMN_unvoteToCurse:test_OwnerSkips() (gas: 33831)
RMN_unvoteToCurse:test_OwnerSucceeds() (gas: 64005)
RMN_unvoteToCurse:test_UnauthorizedVoter() (gas: 47715)
RMN_unvoteToCurse:test_ValidCursesHash() (gas: 61145)
RMN_unvoteToCurse:test_VotersCantLiftCurseButOwnerCan() (gas: 629190)
RMN_voteToBless:test_Curse_Revert() (gas: 473408)
RMN_voteToBless:test_IsAlreadyBlessed_Revert() (gas: 115435)
RMN_voteToBless:test_RootSuccess() (gas: 558661)
RMN_voteToBless:test_SenderAlreadyVoted_Revert() (gas: 97234)
RMN_voteToBless:test_UnauthorizedVoter_Revert() (gas: 17126)
RMN_voteToBless_Benchmark:test_1RootSuccess_gas() (gas: 44718)
RMN_voteToBless_Benchmark:test_3RootSuccess_gas() (gas: 98694)
RMN_voteToBless_Benchmark:test_5RootSuccess_gas() (gas: 152608)
RMN_voteToBless_Blessed_Benchmark:test_1RootSuccessBecameBlessed_gas() (gas: 29682)
RMN_voteToBless_Blessed_Benchmark:test_1RootSuccess_gas() (gas: 27628)
RMN_voteToBless_Blessed_Benchmark:test_3RootSuccess_gas() (gas: 81626)
RMN_voteToBless_Blessed_Benchmark:test_5RootSuccess_gas() (gas: 135518)
RMN_voteToCurse:test_CurseOnlyWhenThresholdReached_Success() (gas: 1651170)
RMN_voteToCurse:test_EmptySubjects_Revert() (gas: 14061)
RMN_voteToCurse:test_EvenIfAlreadyCursed_Success() (gas: 535124)
RMN_voteToCurse:test_OwnerCanCurseAndUncurse() (gas: 400060)
RMN_voteToCurse:test_RepeatedSubject_Revert() (gas: 144405)
RMN_voteToCurse:test_ReusedCurseId_Revert() (gas: 146972)
RMN_voteToCurse:test_UnauthorizedVoter_Revert() (gas: 12666)
RMN_voteToCurse:test_VoteToCurse_NoCurse_Success() (gas: 187556)
RMN_voteToCurse:test_VoteToCurse_YesCurse_Success() (gas: 473079)
RMN_voteToCurse_2:test_VotesAreDroppedIfSubjectIsNotCursedDuringConfigChange() (gas: 371083)
RMN_voteToCurse_2:test_VotesAreRetainedIfSubjectIsCursedDuringConfigChange() (gas: 1154362)
RMN_voteToCurse_Benchmark_1:test_VoteToCurse_NewSubject_NewVoter_NoCurse_gas() (gas: 141118)
RMN_voteToCurse_Benchmark_1:test_VoteToCurse_NewSubject_NewVoter_YesCurse_gas() (gas: 165258)
RMN_voteToCurse_Benchmark_2:test_VoteToCurse_OldSubject_NewVoter_NoCurse_gas() (gas: 121437)
RMN_voteToCurse_Benchmark_2:test_VoteToCurse_OldSubject_OldVoter_NoCurse_gas() (gas: 98373)
RMN_voteToCurse_Benchmark_3:test_VoteToCurse_OldSubject_NewVoter_YesCurse_gas() (gas: 145784)
RMN_constructor:test_Constructor_Success() (gas: 63037)
RMN_getRecordedCurseRelatedOps:test_OpsPostDeployment() (gas: 24609)
RMN_lazyVoteToCurseUpdate_Benchmark:test_VoteToCurseLazilyRetain3VotersUponConfigChange_gas() (gas: 159340)
RMN_ownerUnbless:test_Unbless_Success() (gas: 103665)
RMN_ownerUnvoteToCurse:test_CanBlessAndCurseAfterGlobalCurseIsLifted() (gas: 527240)
RMN_ownerUnvoteToCurse:test_IsIdempotent() (gas: 461028)
RMN_ownerUnvoteToCurse:test_NonOwner_Revert() (gas: 25696)
RMN_ownerUnvoteToCurse:test_OwnerUnvoteToCurseSuccess_gas() (gas: 402269)
RMN_ownerUnvoteToCurse:test_UnknownVoter_Revert() (gas: 37341)
RMN_ownerUnvoteToCurse_Benchmark:test_OwnerUnvoteToCurse_1Voter_LiftsCurse_gas() (gas: 310729)
RMN_permaBlessing:test_PermaBlessing() (gas: 234032)
RMN_setConfig:test_BlessVoterIsZeroAddress_Revert() (gas: 19944)
RMN_setConfig:test_EitherThresholdIsZero_Revert() (gas: 29093)
RMN_setConfig:test_NonOwner_Revert() (gas: 19180)
RMN_setConfig:test_RepeatedAddress_Revert() (gas: 24182)
RMN_setConfig:test_SetConfigSuccess_gas() (gas: 121383)
RMN_setConfig:test_TotalWeightsSmallerThanEachThreshold_Revert() (gas: 42230)
RMN_setConfig:test_VoteToBlessByEjectedVoter_Revert() (gas: 150092)
RMN_setConfig:test_VotersLengthIsZero_Revert() (gas: 13777)
RMN_setConfig:test_WeightIsZeroAddress_Revert() (gas: 20193)
RMN_setConfig_Benchmark_1:test_SetConfig_7Voters_gas() (gas: 699447)
RMN_setConfig_Benchmark_2:test_ResetConfig_7Voters_gas() (gas: 262912)
RMN_unvoteToCurse:test_InvalidCursesHash() (gas: 29467)
RMN_unvoteToCurse:test_OwnerSkips() (gas: 38039)
RMN_unvoteToCurse:test_OwnerSucceeds() (gas: 69773)
RMN_unvoteToCurse:test_UnauthorizedVoter() (gas: 59241)
RMN_unvoteToCurse:test_ValidCursesHash() (gas: 66142)
RMN_unvoteToCurse:test_VotersCantLiftCurseButOwnerCan() (gas: 729679)
RMN_voteToBless:test_Curse_Revert() (gas: 496801)
RMN_voteToBless:test_IsAlreadyBlessed_Revert() (gas: 147850)
RMN_voteToBless:test_RootSuccess() (gas: 745652)
RMN_voteToBless:test_SenderAlreadyVoted_Revert() (gas: 123496)
RMN_voteToBless:test_UnauthorizedVoter_Revert() (gas: 19508)
RMN_voteToBless_Benchmark:test_1RootSuccess_gas() (gas: 49435)
RMN_voteToBless_Benchmark:test_3RootSuccess_gas() (gas: 110271)
RMN_voteToBless_Benchmark:test_5RootSuccess_gas() (gas: 171045)
RMN_voteToBless_Blessed_Benchmark:test_1RootSuccessBecameBlessed_gas() (gas: 34790)
RMN_voteToBless_Blessed_Benchmark:test_1RootSuccess_gas() (gas: 32338)
RMN_voteToBless_Blessed_Benchmark:test_3RootSuccess_gas() (gas: 93196)
RMN_voteToBless_Blessed_Benchmark:test_5RootSuccess_gas() (gas: 153948)
RMN_voteToCurse:test_CurseOnlyWhenThresholdReached_Success() (gas: 1748779)
RMN_voteToCurse:test_EmptySubjects_Revert() (gas: 15996)
RMN_voteToCurse:test_EvenIfAlreadyCursed_Success() (gas: 564086)
RMN_voteToCurse:test_OwnerCanCurseAndUncurse() (gas: 471086)
RMN_voteToCurse:test_RepeatedSubject_Revert() (gas: 151480)
RMN_voteToCurse:test_ReusedCurseId_Revert() (gas: 155411)
RMN_voteToCurse:test_UnauthorizedVoter_Revert() (gas: 14537)
RMN_voteToCurse:test_VoteToCurse_NoCurse_Success() (gas: 203894)
RMN_voteToCurse:test_VoteToCurse_YesCurse_Success() (gas: 495649)
RMN_voteToCurse_2:test_VotesAreDroppedIfSubjectIsNotCursedDuringConfigChange() (gas: 417003)
RMN_voteToCurse_2:test_VotesAreRetainedIfSubjectIsCursedDuringConfigChange() (gas: 1339323)
RMN_voteToCurse_Benchmark_1:test_VoteToCurse_NewSubject_NewVoter_NoCurse_gas() (gas: 146898)
RMN_voteToCurse_Benchmark_1:test_VoteToCurse_NewSubject_NewVoter_YesCurse_gas() (gas: 171152)
RMN_voteToCurse_Benchmark_2:test_VoteToCurse_OldSubject_NewVoter_NoCurse_gas() (gas: 126446)
RMN_voteToCurse_Benchmark_2:test_VoteToCurse_OldSubject_OldVoter_NoCurse_gas() (gas: 102691)
RMN_voteToCurse_Benchmark_3:test_VoteToCurse_OldSubject_NewVoter_YesCurse_gas() (gas: 151187)
RateLimiter_constructor:test_Constructor_Success() (gas: 19734)
RateLimiter_consume:test_AggregateValueMaxCapacityExceeded_Revert() (gas: 16042)
RateLimiter_consume:test_AggregateValueRateLimitReached_Revert() (gas: 22390)
Expand All @@ -903,11 +922,11 @@ RateLimiter_consume:test_TokenRateLimitReached_Revert() (gas: 24886)
RateLimiter_currentTokenBucketState:test_CurrentTokenBucketState_Success() (gas: 38944)
RateLimiter_currentTokenBucketState:test_Refill_Success() (gas: 46849)
RateLimiter_setTokenBucketConfig:test_SetRateLimiterConfig_Success() (gas: 38506)
RegistryModuleOwnerCustom_constructor:test_constructor_Revert() (gas: 36033)
RegistryModuleOwnerCustom_registerAdminViaGetCCIPAdmin:test_registerAdminViaGetCCIPAdmin_Revert() (gas: 19739)
RegistryModuleOwnerCustom_registerAdminViaGetCCIPAdmin:test_registerAdminViaGetCCIPAdmin_Success() (gas: 130086)
RegistryModuleOwnerCustom_registerAdminViaOwner:test_registerAdminViaOwner_Revert() (gas: 19559)
RegistryModuleOwnerCustom_registerAdminViaOwner:test_registerAdminViaOwner_Success() (gas: 129905)
RegistryModuleOwnerCustom_constructor:test_constructor_Revert() (gas: 36711)
RegistryModuleOwnerCustom_registerAdminViaGetCCIPAdmin:test_registerAdminViaGetCCIPAdmin_Revert() (gas: 22517)
RegistryModuleOwnerCustom_registerAdminViaGetCCIPAdmin:test_registerAdminViaGetCCIPAdmin_Success() (gas: 137341)
RegistryModuleOwnerCustom_registerAdminViaOwner:test_registerAdminViaOwner_Revert() (gas: 22359)
RegistryModuleOwnerCustom_registerAdminViaOwner:test_registerAdminViaOwner_Success() (gas: 137182)
Router_applyRampUpdates:test_OffRampMismatch_Revert() (gas: 89366)
Router_applyRampUpdates:test_OffRampUpdatesWithRouting() (gas: 10662612)
Router_applyRampUpdates:test_OnRampDisable() (gas: 56007)
Expand Down
Loading

0 comments on commit ef30652

Please sign in to comment.