From 89f6970df78694f03fd423219cb5db309b8932e7 Mon Sep 17 00:00:00 2001 From: Josh Date: Mon, 21 Oct 2024 11:04:47 -0400 Subject: [PATCH] gas snapshotting after foundry update --- .../gas-snapshots/automation.gas-snapshot | 107 ++++++++++++++++-- contracts/gas-snapshots/ccip.gas-snapshot | 16 +-- 2 files changed, 106 insertions(+), 17 deletions(-) diff --git a/contracts/gas-snapshots/automation.gas-snapshot b/contracts/gas-snapshots/automation.gas-snapshot index 620e0b22559..a1d837b6a23 100644 --- a/contracts/gas-snapshots/automation.gas-snapshot +++ b/contracts/gas-snapshots/automation.gas-snapshot @@ -1,13 +1,102 @@ -AutomationForwarder_forward:testBasicSuccess() (gas: 87630) -AutomationForwarder_forward:testNotAuthorizedReverts() (gas: 24560) -AutomationForwarder_forward:testWrongFunctionSelectorSuccess() (gas: 17958) -AutomationForwarder_updateRegistry:testBasicSuccess() (gas: 14577) -AutomationForwarder_updateRegistry:testNotFromRegistryNotAuthorizedReverts() (gas: 17665) -HeartbeatRequester_getAggregatorRequestHeartbeat:testBasicSuccess() (gas: 75412) -HeartbeatRequester_getAggregatorRequestHeartbeat:testHeartbeatNotPermittedReverts() (gas: 21730) -HeartbeatRequester_permitHeartbeat:testBasicDeployerSuccess() (gas: 48229) +AddFunds:test_HappyWhen_NativeUpkeep_WithMsgValue0() (gas: 72975) +AddFunds:test_HappyWhen_NativeUpkeep_WithMsgValueNot0() (gas: 73003) +AddFunds:test_RevertsWhen_NativePaymentDoesntMatchBillingToken() (gas: 30088) +AddFunds:test_RevertsWhen_UpkeepDoesNotExist() (gas: 43393) +AddFunds:test_RevertsWhen_UpkeepIsCanceled() (gas: 64530) +AddFunds:test_anyoneCanAddFunds() (gas: 79808) +AddFunds:test_emitsAnEvent() (gas: 54704) +AddFunds:test_movesFundFromCorrectToken() (gas: 122628) +ApproveUpkeep:testUSDToken_happy() (gas: 592733) +AutomationForwarderTest_constructor:testInitialValues() (gas: 16547) +AutomationForwarderTest_constructor:testTypeAndVersion() (gas: 12393) +AutomationForwarderTest_forward:testOnlyCallableByTheRegistry() (gas: 16512) +AutomationForwarderTest_forward:testReturnsSuccessValueAndGasUsed() (gas: 18153) +AutomationForwarderTest_updateRegistry:testOnlyCallableByTheActiveRegistry() (gas: 19231) +AutomationRegistry2_2_CheckUpkeep:testPreventExecutionOnCheckUpkeep() (gas: 14692) +AutomationRegistry2_2_LatestConfigDetails:testGet() (gas: 13592) +AutomationRegistry2_2_SetConfig:testSetConfigSuccess() (gas: 883740) +BillingOverrides:test_Happy_MaxGasPayment_WithBillingOverrides() (gas: 130833) +BillingOverrides:test_Happy_RemoveBillingOverrides() (gas: 25515) +BillingOverrides:test_Happy_SetBillingOverrides() (gas: 50418) +BillingOverrides:test_RevertsWhen_NotPrivilegeManager() (gas: 18549) +BillingOverrides:test_RevertsWhen_UpkeepCancelled() (gas: 66732) +CancelUpkeep:testUSDToken_happy() (gas: 140037) +CheckUpkeep:testPreventExecutionOnCheckUpkeep() (gas: 17674) +GetMinBalanceForUpkeep:test_accountsForFlatFee_with18Decimals() (gas: 590731) +GetMinBalanceForUpkeep:test_accountsForFlatFee_with6Decimals() (gas: 591535) +HeartbeatRequester_getAggregatorRequestHeartbeat:testBasicSuccess() (gas: 75750) +HeartbeatRequester_getAggregatorRequestHeartbeat:testHeartbeatNotPermittedReverts() (gas: 21975) +HeartbeatRequester_permitHeartbeat:testBasicDeployerSuccess() (gas: 48273) HeartbeatRequester_permitHeartbeat:testBasicSuccess() (gas: 45844) HeartbeatRequester_permitHeartbeat:testOnlyCallableByOwnerReverts() (gas: 17584) HeartbeatRequester_removeHeartbeat:testBasicSuccess() (gas: 30192) HeartbeatRequester_removeHeartbeat:testOnlyCallableByOwnerReverts() (gas: 15417) -HeartbeatRequester_removeHeartbeat:testRemoveNoPermitsSuccess() (gas: 15660) \ No newline at end of file +HeartbeatRequester_removeHeartbeat:testRemoveNoPermitsSuccess() (gas: 15660) +LatestConfigDetails:testGet() (gas: 13645) +MercuryRegistryTest:testMercuryRegistry() (gas: 956141) +MercuryRegistryTest:testMercuryRegistryBatchUpkeep() (gas: 1778137) +MigrateReceive:test_RevertsWhen_CalledByNonAdmin() (gas: 41084) +MigrateReceive:test_RevertsWhen_PermissionsNotSet() (gas: 489038) +MigrateReceive:test_RevertsWhen_ReceivingRegistryDoesNotSupportToken() (gas: 1960900) +MigrateReceive:test_Success() (gas: 1489655) +NOPsSettlement:testDisableOffchainPaymentsRevertDueToUnauthorizedCaller() (gas: 20175133) +NOPsSettlement:testDisableOffchainPaymentsSuccess() (gas: 20157791) +NOPsSettlement:testMultiplePerformsAndNodesCanWithdrawOnchain() (gas: 28561450) +NOPsSettlement:testSettleNOPsOffchainForDeactivatedTransmittersSuccess() (gas: 21145959) +NOPsSettlement:testSettleNOPsOffchainRevertDueToOffchainSettlementDisabled() (gas: 20158562) +NOPsSettlement:testSettleNOPsOffchainRevertDueToUnauthorizedCaller() (gas: 20327003) +NOPsSettlement:testSettleNOPsOffchainSuccess() (gas: 20202773) +NOPsSettlement:testSettleNOPsOffchainSuccessWithERC20MultiSteps() (gas: 20930806) +NOPsSettlement:testSinglePerformAndNodesCanWithdrawOnchain() (gas: 20857828) +OnTokenTransfer:test_Happy() (gas: 43111) +OnTokenTransfer:test_RevertsWhen_NotCalledByTheLinkToken() (gas: 14047) +OnTokenTransfer:test_RevertsWhen_NotCalledWithExactly32Bytes() (gas: 66464) +OnTokenTransfer:test_RevertsWhen_TheUpkeepDoesNotUseLINKAsItsBillingToken() (gas: 21080) +OnTokenTransfer:test_RevertsWhen_TheUpkeepIsCancelledOrDNE() (gas: 39264) +RegisterUpkeep:testLink_autoApproveOff_happy() (gas: 143811) +RegisterUpkeep:testLink_autoApproveOff_revertOnDuplicateEntry() (gas: 161520) +RegisterUpkeep:testLink_autoApproveOn_happy() (gas: 594846) +RegisterUpkeep:testNative_autoApproveOff_msgValue0() (gas: 142199) +RegisterUpkeep:testNative_autoApproveOff_msgValueNot0() (gas: 167267) +RegisterUpkeep:testNative_autoApproveOn_happy() (gas: 623574) +RegisterUpkeep:testUSDToken_autoApproveOff_happy() (gas: 143534) +RegisterUpkeep:testUSDToken_autoApproveOn_happy() (gas: 601313) +RegisterUpkeep:test_Happy() (gas: 6601726) +RegisterUpkeep:test_RevertsWhen_CalledByNonOwner() (gas: 24207) +RegisterUpkeep:test_RevertsWhen_CheckDataIsTooLarge() (gas: 2185207) +RegisterUpkeep:test_RevertsWhen_ExecuteGasIsTooHigh() (gas: 243867) +RegisterUpkeep:test_RevertsWhen_ExecuteGasIsTooLow() (gas: 241478) +RegisterUpkeep:test_RevertsWhen_Paused() (gas: 252453) +RegisterUpkeep:test_RevertsWhen_TargetIsNotAContract() (gas: 44727) +RegisterUpkeep:test_RevertsWhen_TheBillingTokenIsNotConfigured() (gas: 268634) +RegisterUpkeep:test_revertOnInsufficientPayment() (gas: 63389) +RegisterUpkeep:test_revertOnInvalidAdminAddress() (gas: 63301) +RegisterUpkeep:test_revertOnInvalidBillingToken() (gas: 78144) +SetConfig:testSetConfigDuplicateBillingConfigFailure() (gas: 143936) +SetConfig:testSetConfigMultipleBillingConfigsSuccess() (gas: 408221) +SetConfig:testSetConfigOnTransmittersAndPayees() (gas: 68584) +SetConfig:testSetConfigRevertDueToInvalidDecimals() (gas: 124912) +SetConfig:testSetConfigRevertDueToInvalidToken() (gas: 16810549) +SetConfig:testSetConfigSuccess() (gas: 403712) +SetConfig:testSetConfigTwiceAndLastSetOverwrites() (gas: 609541) +SetConfig:testSetConfigWithNewTransmittersSuccess() (gas: 17926522) +Transmit:test_handlesInsufficientBalanceWithUSDToken18() (gas: 20900514) +Transmit:test_handlesInsufficientBalanceWithUSDToken6() (gas: 20922023) +Transmit:test_handlesMixedBatchOfBillingTokens() (gas: 401654) +Transmit:test_transmitRevertWithExtraBytes() (gas: 21043) +Withdraw:testLinkAvailableForPaymentReturnsLinkBalance() (gas: 46687) +Withdraw:testWithdrawERC20FeeSuccess() (gas: 90737) +Withdraw:testWithdrawLinkRevertsBecauseOfInsufficientBalance() (gas: 27647) +Withdraw:testWithdrawLinkRevertsBecauseOfInvalidRecipient() (gas: 17414) +Withdraw:testWithdrawLinkRevertsBecauseOnlyFinanceAdminAllowed() (gas: 18752) +Withdraw:testWithdrawLinkSuccess() (gas: 74363) +Withdraw:test_WithdrawERC20Fees_InOffChainMode_Happy() (gas: 20797256) +Withdraw:test_WithdrawERC20Fees_RespectsReserveAmount() (gas: 46549) +Withdraw:test_WithdrawERC20Fees_RevertsWhen_AttemptingToWithdrawLINK() (gas: 59857) +Withdraw:test_WithdrawERC20Fees_RevertsWhen_LinkAvailableForPaymentIsNegative() (gas: 242898) +WithdrawFunds:test_Happy_Link() (gas: 104401) +WithdrawFunds:test_Happy_USDToken() (gas: 99564) +WithdrawFunds:test_RevertsWhen_CalledByNonAdmin() (gas: 30677) +WithdrawFunds:test_RevertsWhen_InvalidRecipient() (gas: 21812) +WithdrawFunds:test_RevertsWhen_UpkeepNotCanceled() (gas: 35946) +WithdrawPayment:testWithdrawPaymentRevertDueToOffchainPayoutMode() (gas: 16750501) \ No newline at end of file diff --git a/contracts/gas-snapshots/ccip.gas-snapshot b/contracts/gas-snapshots/ccip.gas-snapshot index f643d81b43c..6713f29f058 100644 --- a/contracts/gas-snapshots/ccip.gas-snapshot +++ b/contracts/gas-snapshots/ccip.gas-snapshot @@ -116,13 +116,13 @@ CommitStore_verify:test_Paused_Revert() (gas: 18568) CommitStore_verify:test_TooManyLeaves_Revert() (gas: 36848) DefensiveExampleTest:test_HappyPath_Success() (gas: 200200) DefensiveExampleTest:test_Recovery() (gas: 424476) -E2E:test_E2E_3MessagesSuccess_gas() (gas: 1108425) +E2E:test_E2E_3MessagesSuccess_gas() (gas: 1141917) EVM2EVMOffRamp__releaseOrMintToken:test__releaseOrMintToken_NotACompatiblePool_Revert() (gas: 38322) EVM2EVMOffRamp__releaseOrMintToken:test__releaseOrMintToken_Success() (gas: 104438) -EVM2EVMOffRamp__releaseOrMintToken:test__releaseOrMintToken_TokenHandlingError_transfer_Revert() (gas: 86026) +EVM2EVMOffRamp__releaseOrMintToken:test__releaseOrMintToken_TokenHandlingError_transfer_Revert() (gas: 83526) EVM2EVMOffRamp__releaseOrMintToken:test_releaseOrMintToken_InvalidDataLength_Revert() (gas: 37365) EVM2EVMOffRamp__releaseOrMintToken:test_releaseOrMintToken_ReleaseOrMintBalanceMismatch_Revert() (gas: 95013) -EVM2EVMOffRamp__releaseOrMintToken:test_releaseOrMintToken_TokenHandlingError_BalanceOf_Revert() (gas: 40341) +EVM2EVMOffRamp__releaseOrMintToken:test_releaseOrMintToken_TokenHandlingError_BalanceOf_Revert() (gas: 37841) EVM2EVMOffRamp__releaseOrMintToken:test_releaseOrMintToken_skip_ReleaseOrMintBalanceMismatch_if_pool_Revert() (gas: 87189) EVM2EVMOffRamp__releaseOrMintTokens:test_OverValueWithARLOff_Success() (gas: 381594) EVM2EVMOffRamp__releaseOrMintTokens:test_PriceNotFoundForToken_Reverts() (gas: 140568) @@ -519,7 +519,7 @@ MultiAggregateRateLimiter_onInboundMessage:test_ValidateMessageWithRateLimitExce MultiAggregateRateLimiter_onInboundMessage:test_ValidateMessageWithRateLimitReset_Success() (gas: 76561) MultiAggregateRateLimiter_onInboundMessage:test_ValidateMessageWithTokensOnDifferentChains_Success() (gas: 308233) MultiAggregateRateLimiter_onInboundMessage:test_ValidateMessageWithTokens_Success() (gas: 50558) -MultiAggregateRateLimiter_onOutboundMessage:test_RateLimitValueDifferentLanes_Success() (gas: 1073669578) +MultiAggregateRateLimiter_onOutboundMessage:test_RateLimitValueDifferentLanes_Success() (gas: 51181) MultiAggregateRateLimiter_onOutboundMessage:test_ValidateMessageWithNoTokens_Success() (gas: 19302) MultiAggregateRateLimiter_onOutboundMessage:test_onOutboundMessage_ValidateMessageFromUnauthorizedCaller_Revert() (gas: 15913) MultiAggregateRateLimiter_onOutboundMessage:test_onOutboundMessage_ValidateMessageWithDifferentTokensOnDifferentChains_Success() (gas: 209885) @@ -573,7 +573,7 @@ MultiOCR3Base_transmit:test_UnauthorizedSigner_Revert() (gas: 61275) MultiOCR3Base_transmit:test_UnconfiguredPlugin_Revert() (gas: 39933) MultiOCR3Base_transmit:test_ZeroSignatures_Revert() (gas: 33049) MultiOnRampTokenPoolReentrancy:test_OnRampTokenPoolReentrancy_Success() (gas: 233732) -MultiRampsE2E:test_E2E_3MessagesMMultiOffRampSuccess_gas() (gas: 1501821) +MultiRampsE2E:test_E2E_3MessagesMMultiOffRampSuccess_gas() (gas: 1518567) NonceManager_NonceIncrementation:test_getIncrementedOutboundNonce_Success() (gas: 37934) NonceManager_NonceIncrementation:test_incrementInboundNonce_Skip() (gas: 23706) NonceManager_NonceIncrementation:test_incrementInboundNonce_Success() (gas: 38778) @@ -641,7 +641,7 @@ OffRamp_batchExecute:test_Unhealthy_Success() (gas: 554256) OffRamp_batchExecute:test_ZeroReports_Revert() (gas: 10622) OffRamp_ccipReceive:test_Reverts() (gas: 15407) OffRamp_commit:test_CommitOnRampMismatch_Revert() (gas: 92905) -OffRamp_commit:test_FailedRMNVerification_Reverts() (gas: 64099) +OffRamp_commit:test_FailedRMNVerification_Reverts() (gas: 61599) OffRamp_commit:test_InvalidIntervalMinLargerThanMax_Revert() (gas: 68173) OffRamp_commit:test_InvalidInterval_Revert() (gas: 64291) OffRamp_commit:test_InvalidRootRevert() (gas: 63356) @@ -735,10 +735,10 @@ OffRamp_manuallyExecute:test_manuallyExecute_WithMultiReportGasOverride_Success( OffRamp_manuallyExecute:test_manuallyExecute_WithPartialMessages_Success() (gas: 347346) OffRamp_releaseOrMintSingleToken:test__releaseOrMintSingleToken_NotACompatiblePool_Revert() (gas: 37656) OffRamp_releaseOrMintSingleToken:test__releaseOrMintSingleToken_Success() (gas: 104404) -OffRamp_releaseOrMintSingleToken:test__releaseOrMintSingleToken_TokenHandlingError_transfer_Revert() (gas: 85342) +OffRamp_releaseOrMintSingleToken:test__releaseOrMintSingleToken_TokenHandlingError_transfer_Revert() (gas: 82842) OffRamp_releaseOrMintSingleToken:test_releaseOrMintToken_InvalidDataLength_Revert() (gas: 36752) OffRamp_releaseOrMintSingleToken:test_releaseOrMintToken_ReleaseOrMintBalanceMismatch_Revert() (gas: 94382) -OffRamp_releaseOrMintSingleToken:test_releaseOrMintToken_TokenHandlingError_BalanceOf_Revert() (gas: 39741) +OffRamp_releaseOrMintSingleToken:test_releaseOrMintToken_TokenHandlingError_BalanceOf_Revert() (gas: 37241) OffRamp_releaseOrMintSingleToken:test_releaseOrMintToken_skip_ReleaseOrMintBalanceMismatch_if_pool_Revert() (gas: 86516) OffRamp_releaseOrMintTokens:test_TokenHandlingError_Reverts() (gas: 162381) OffRamp_releaseOrMintTokens:test__releaseOrMintTokens_PoolIsNotAPool_Reverts() (gas: 23903)