Skip to content

Commit

Permalink
Initial Scaffolding Tests still needed
Browse files Browse the repository at this point in the history
  • Loading branch information
jhweintraub committed Dec 24, 2024
1 parent c1e92af commit dd6d04e
Show file tree
Hide file tree
Showing 6 changed files with 167 additions and 67 deletions.
5 changes: 5 additions & 0 deletions contracts/.changeset/clean-horses-cheat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@chainlink/contracts': minor
---

Update FeeQuoter to support Solana chain families #feature
126 changes: 63 additions & 63 deletions contracts/gas-snapshots/ccip.gas-snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ BurnMintTokenPool_releaseOrMint:test_PoolMint() (gas: 102527)
BurnMintWithLockReleaseFlagTokenPool_lockOrBurn:test_LockOrBurn_CorrectReturnData() (gas: 237292)
BurnWithFromMintTokenPool_lockOrBurn:test_PoolBurn() (gas: 239012)
BurnWithFromMintTokenPool_lockOrBurn:test_Setup() (gas: 24169)
CCIPClientExample_sanity:test_ImmutableExamples() (gas: 2072849)
CCIPClientExample_sanity:test_ImmutableExamples() (gas: 2073842)
CCIPHome__validateConfig:test__validateConfig() (gas: 300016)
CCIPHome__validateConfig:test__validateConfigLessTransmittersThanSigners() (gas: 332965)
CCIPHome__validateConfig:test__validateConfigSmallerFChain() (gas: 459322)
Expand All @@ -28,7 +28,7 @@ CCIPHome_setCandidate:test_setCandidate() (gas: 1365392)
CCIPHome_supportsInterface:test_supportsInterface() (gas: 9885)
DefensiveExampleTest:test_HappyPath() (gas: 200517)
DefensiveExampleTest:test_Recovery() (gas: 424996)
E2E:test_E2E_3MessagesMMultiOffRampSuccess_gas() (gas: 1490237)
E2E:test_E2E_3MessagesMMultiOffRampSuccess_gas() (gas: 1491182)
ERC165CheckerReverting_supportsInterfaceReverting:test__supportsInterfaceReverting() (gas: 10445)
EtherSenderReceiverTest_ccipReceive:test_ccipReceive_fallbackToWethTransfer() (gas: 96964)
EtherSenderReceiverTest_ccipReceive:test_ccipReceive_happyPath() (gas: 49797)
Expand Down Expand Up @@ -63,22 +63,22 @@ FactoryBurnMintERC20_increaseApproval:test_IncreaseApproval() (gas: 44421)
FactoryBurnMintERC20_mint:test_BasicMint() (gas: 149826)
FactoryBurnMintERC20_supportsInterface:test_SupportsInterface() (gas: 11539)
FactoryBurnMintERC20_transfer:test_Transfer() (gas: 42505)
FeeQuoter_applyDestChainConfigUpdates:test_applyDestChainConfigUpdates() (gas: 141541)
FeeQuoter_applyDestChainConfigUpdates:test_applyDestChainConfigUpdates() (gas: 141871)
FeeQuoter_applyDestChainConfigUpdates:test_applyDestChainConfigUpdatesZeroInput() (gas: 12536)
FeeQuoter_applyFeeTokensUpdates:test_ApplyFeeTokensUpdates() (gas: 162691)
FeeQuoter_applyPremiumMultiplierWeiPerEthUpdates:test_applyPremiumMultiplierWeiPerEthUpdatesMultipleTokens() (gas: 54793)
FeeQuoter_applyPremiumMultiplierWeiPerEthUpdates:test_applyPremiumMultiplierWeiPerEthUpdatesSingleToken() (gas: 45276)
FeeQuoter_applyPremiumMultiplierWeiPerEthUpdates:test_applyPremiumMultiplierWeiPerEthUpdatesZeroInput() (gas: 12380)
FeeQuoter_applyTokenTransferFeeConfigUpdates:test_ApplyTokenTransferFeeConfig() (gas: 88736)
FeeQuoter_applyTokenTransferFeeConfigUpdates:test_ApplyTokenTransferFeeConfig() (gas: 88688)
FeeQuoter_applyTokenTransferFeeConfigUpdates:test_ApplyTokenTransferFeeZeroInput() (gas: 13218)
FeeQuoter_constructor:test_Setup() (gas: 5039899)
FeeQuoter_constructor:test_Setup() (gas: 5254478)
FeeQuoter_convertTokenAmount:test_ConvertTokenAmount() (gas: 68417)
FeeQuoter_getDataAvailabilityCost:test_EmptyMessageCalculatesDataAvailabilityCost() (gas: 96377)
FeeQuoter_getDataAvailabilityCost:test_SimpleMessageCalculatesDataAvailabilityCost() (gas: 21075)
FeeQuoter_getDataAvailabilityCost:test_SimpleMessageCalculatesDataAvailabilityCostUnsupportedDestChainSelector() (gas: 14836)
FeeQuoter_getDataAvailabilityCost:test_EmptyMessageCalculatesDataAvailabilityCost() (gas: 96540)
FeeQuoter_getDataAvailabilityCost:test_SimpleMessageCalculatesDataAvailabilityCost() (gas: 21074)
FeeQuoter_getDataAvailabilityCost:test_SimpleMessageCalculatesDataAvailabilityCostUnsupportedDestChainSelector() (gas: 14835)
FeeQuoter_getTokenAndGasPrices:test_GetFeeTokenAndGasPrices() (gas: 73123)
FeeQuoter_getTokenAndGasPrices:test_StalenessCheckDisabled() (gas: 111926)
FeeQuoter_getTokenAndGasPrices:test_ZeroGasPrice() (gas: 109013)
FeeQuoter_getTokenAndGasPrices:test_StalenessCheckDisabled() (gas: 112091)
FeeQuoter_getTokenAndGasPrices:test_ZeroGasPrice() (gas: 109178)
FeeQuoter_getTokenPrice:test_GetTokenPriceFromFeed() (gas: 68180)
FeeQuoter_getTokenPrice:test_GetTokenPrice_LocalMoreRecent() (gas: 33568)
FeeQuoter_getTokenPrices:test_GetTokenPrices() (gas: 78534)
Expand All @@ -89,13 +89,13 @@ FeeQuoter_getTokenTransferCost:test_MixedTokenTransferFee() (gas: 96077)
FeeQuoter_getTokenTransferCost:test_NoTokenTransferChargesZeroFee() (gas: 20587)
FeeQuoter_getTokenTransferCost:test_SmallTokenTransferChargesMinFeeAndGas() (gas: 27978)
FeeQuoter_getTokenTransferCost:test_ZeroAmountTokenTransferChargesMinFeeAndGas() (gas: 27979)
FeeQuoter_getTokenTransferCost:test_ZeroFeeConfigChargesMinFee() (gas: 40537)
FeeQuoter_getTokenTransferCost:test_ZeroFeeConfigChargesMinFee() (gas: 40513)
FeeQuoter_getTokenTransferCost:test_getTokenTransferCost_selfServeUsesDefaults() (gas: 29706)
FeeQuoter_getValidatedFee:test_EmptyMessage() (gas: 83608)
FeeQuoter_getValidatedFee:test_HighGasMessage() (gas: 240058)
FeeQuoter_getValidatedFee:test_MessageWithDataAndTokenTransfer() (gas: 143671)
FeeQuoter_getValidatedFee:test_SingleTokenMessage() (gas: 115178)
FeeQuoter_getValidatedFee:test_ZeroDataAvailabilityMultiplier() (gas: 63919)
FeeQuoter_getValidatedFee:test_EmptyMessage() (gas: 83948)
FeeQuoter_getValidatedFee:test_HighGasMessage() (gas: 240398)
FeeQuoter_getValidatedFee:test_MessageWithDataAndTokenTransfer() (gas: 144011)
FeeQuoter_getValidatedFee:test_SingleTokenMessage() (gas: 115518)
FeeQuoter_getValidatedFee:test_ZeroDataAvailabilityMultiplier() (gas: 64255)
FeeQuoter_getValidatedTokenPrice:test_GetValidatedTokenPrice() (gas: 58905)
FeeQuoter_getValidatedTokenPrice:test_GetValidatedTokenPriceFromFeed() (gas: 65115)
FeeQuoter_getValidatedTokenPrice:test_GetValidatedTokenPriceFromFeedErc20Above18Decimals() (gas: 1897724)
Expand All @@ -106,18 +106,18 @@ FeeQuoter_getValidatedTokenPrice:test_GetValidatedTokenPriceFromFeedFlippedDecim
FeeQuoter_getValidatedTokenPrice:test_GetValidatedTokenPriceFromFeedMaxInt224Value() (gas: 1897534)
FeeQuoter_getValidatedTokenPrice:test_GetValidatedTokenPriceFromFeedOverStalenessPeriod() (gas: 65233)
FeeQuoter_getValidatedTokenPrice:test_StaleFeeToken() (gas: 61854)
FeeQuoter_onReport:test_OnReport_SkipPriceUpdateWhenStaleUpdateReceived() (gas: 52631)
FeeQuoter_onReport:test_onReport() (gas: 89096)
FeeQuoter_onReport:test_onReport_withKeystoneForwarderContract() (gas: 122724)
FeeQuoter_parseEVMExtraArgsFromBytes:test_EVMExtraArgsDefault() (gas: 17207)
FeeQuoter_parseEVMExtraArgsFromBytes:test_EVMExtraArgsV1() (gas: 18283)
FeeQuoter_parseEVMExtraArgsFromBytes:test_EVMExtraArgsV2() (gas: 18391)
FeeQuoter_processMessageArgs:test_processMessageArgs_WitEVMExtraArgsV2() (gas: 28669)
FeeQuoter_processMessageArgs:test_processMessageArgs_WithConvertedTokenAmount() (gas: 30001)
FeeQuoter_processMessageArgs:test_processMessageArgs_WithCorrectPoolReturnData() (gas: 76624)
FeeQuoter_processMessageArgs:test_processMessageArgs_WithEVMExtraArgsV1() (gas: 28300)
FeeQuoter_processMessageArgs:test_processMessageArgs_WithEmptyEVMExtraArgs() (gas: 26158)
FeeQuoter_processMessageArgs:test_processMessageArgs_WithLinkTokenAmount() (gas: 19641)
FeeQuoter_onReport:test_OnReport_SkipPriceUpdateWhenStaleUpdateReceived() (gas: 52619)
FeeQuoter_onReport:test_onReport() (gas: 89084)
FeeQuoter_onReport:test_onReport_withKeystoneForwarderContract() (gas: 122712)
FeeQuoter_parseEVMExtraArgsFromBytes:test_EVMExtraArgsDefault() (gas: 17439)
FeeQuoter_parseEVMExtraArgsFromBytes:test_EVMExtraArgsV1() (gas: 18515)
FeeQuoter_parseEVMExtraArgsFromBytes:test_EVMExtraArgsV2() (gas: 18623)
FeeQuoter_processMessageArgs:test_processMessageArgs_WitEVMExtraArgsV2() (gas: 28667)
FeeQuoter_processMessageArgs:test_processMessageArgs_WithConvertedTokenAmount() (gas: 29999)
FeeQuoter_processMessageArgs:test_processMessageArgs_WithCorrectPoolReturnData() (gas: 76768)
FeeQuoter_processMessageArgs:test_processMessageArgs_WithEVMExtraArgsV1() (gas: 28298)
FeeQuoter_processMessageArgs:test_processMessageArgs_WithEmptyEVMExtraArgs() (gas: 26156)
FeeQuoter_processMessageArgs:test_processMessageArgs_WithLinkTokenAmount() (gas: 19639)
FeeQuoter_supportsInterface:test_SupportsInterface() (gas: 13264)
FeeQuoter_updatePrices:test_OnlyGasPrice() (gas: 23912)
FeeQuoter_updatePrices:test_OnlyTokenPrice() (gas: 28761)
Expand All @@ -128,8 +128,8 @@ FeeQuoter_updateTokenPriceFeeds:test_FeedUnset() (gas: 66506)
FeeQuoter_updateTokenPriceFeeds:test_MultipleFeedUpdate() (gas: 93647)
FeeQuoter_updateTokenPriceFeeds:test_SingleFeedUpdate() (gas: 53215)
FeeQuoter_updateTokenPriceFeeds:test_ZeroFeeds() (gas: 12471)
FeeQuoter_validateDestFamilyAddress:test_ValidEVMAddress() (gas: 6789)
FeeQuoter_validateDestFamilyAddress:test_ValidNonEVMAddress() (gas: 6514)
FeeQuoter_validateDestFamilyAddress:test_ValidEVMAddress() (gas: 6872)
FeeQuoter_validateDestFamilyAddress:test_ValidNonEVMAddress() (gas: 6596)
HybridLockReleaseUSDCTokenPool_TransferLiquidity:test_transferLiquidity() (gas: 167013)
HybridLockReleaseUSDCTokenPool_lockOrBurn:test_PrimaryMechanism() (gas: 130356)
HybridLockReleaseUSDCTokenPool_lockOrBurn:test_onLockReleaseMechanism() (gas: 140104)
Expand Down Expand Up @@ -206,10 +206,10 @@ NonceManager_getIncrementedOutboundNonce:test_getIncrementedOutboundNonce() (gas
NonceManager_getIncrementedOutboundNonce:test_incrementInboundNonce() (gas: 38746)
NonceManager_getIncrementedOutboundNonce:test_incrementInboundNonce_SkippedIncorrectNonce() (gas: 23739)
NonceManager_getIncrementedOutboundNonce:test_incrementNoncesInboundAndOutbound() (gas: 71886)
NonceManager_getOutboundNonce:test_getOutboundNonce_Upgrade() (gas: 105254)
NonceManager_getOutboundNonce:test_getOutboundNonce_UpgradeNonceNewSenderStartsAtZero() (gas: 166086)
NonceManager_getOutboundNonce:test_getOutboundNonce_UpgradeNonceStartsAtV1Nonce() (gas: 195806)
NonceManager_getOutboundNonce:test_getOutboundNonce_UpgradeSenderNoncesReadsPreviousRamp() (gas: 140101)
NonceManager_getOutboundNonce:test_getOutboundNonce_Upgrade() (gas: 105252)
NonceManager_getOutboundNonce:test_getOutboundNonce_UpgradeNonceNewSenderStartsAtZero() (gas: 166082)
NonceManager_getOutboundNonce:test_getOutboundNonce_UpgradeNonceStartsAtV1Nonce() (gas: 195800)
NonceManager_getOutboundNonce:test_getOutboundNonce_UpgradeSenderNoncesReadsPreviousRamp() (gas: 140095)
OffRamp_applySourceChainConfigUpdates:test_AddMultipleChains() (gas: 626140)
OffRamp_applySourceChainConfigUpdates:test_AddNewChain() (gas: 166441)
OffRamp_applySourceChainConfigUpdates:test_ApplyZeroUpdates() (gas: 16671)
Expand Down Expand Up @@ -275,33 +275,33 @@ OffRamp_trialExecute:test_trialExecute() (gas: 263635)
OffRamp_trialExecute:test_trialExecute_RateLimitError() (gas: 120721)
OffRamp_trialExecute:test_trialExecute_TokenHandlingErrorIsCaught() (gas: 132031)
OffRamp_trialExecute:test_trialExecute_TokenPoolIsNotAContract() (gas: 281380)
OnRampTokenPoolReentrancy:test_OnRampTokenPoolReentrancy() (gas: 244294)
OnRampTokenPoolReentrancy:test_OnRampTokenPoolReentrancy() (gas: 244807)
OnRamp_applyAllowlistUpdates:test_applyAllowlistUpdates() (gas: 325979)
OnRamp_applyAllowlistUpdates:test_applyAllowlistUpdates_InvalidAllowListRequestDisabledAllowListWithAdds() (gas: 17190)
OnRamp_applyDestChainConfigUpdates:test_ApplyDestChainConfigUpdates() (gas: 65874)
OnRamp_constructor:test_Constructor() (gas: 2672129)
OnRamp_forwardFromRouter:test_ForwardFromRouter() (gas: 145362)
OnRamp_forwardFromRouter:test_ForwardFromRouterExtraArgsV2() (gas: 146196)
OnRamp_forwardFromRouter:test_ForwardFromRouterExtraArgsV2AllowOutOfOrderTrue() (gas: 115375)
OnRamp_forwardFromRouter:test_ForwardFromRouterSuccessCustomExtraArgs() (gas: 145760)
OnRamp_forwardFromRouter:test_ForwardFromRouterSuccessEmptyExtraArgs() (gas: 144036)
OnRamp_forwardFromRouter:test_ForwardFromRouterSuccessLegacyExtraArgs() (gas: 146001)
OnRamp_forwardFromRouter:test_ForwardFromRouter_ConfigurableSourceRouter() (gas: 140639)
OnRamp_forwardFromRouter:test_ShouldIncrementNonceOnlyOnOrdered() (gas: 186473)
OnRamp_forwardFromRouter:test_ShouldIncrementSeqNumAndNonce() (gas: 212828)
OnRamp_forwardFromRouter:test_ShouldStoreLinkFees() (gas: 147007)
OnRamp_forwardFromRouter:test_forwardFromRouter_WithInterception() (gas: 274726)
OnRamp_getFee:test_EmptyMessage() (gas: 99005)
OnRamp_getFee:test_GetFeeOfZeroForTokenMessage() (gas: 86961)
OnRamp_getFee:test_SingleTokenMessage() (gas: 114125)
OnRamp_forwardFromRouter:test_ForwardFromRouter() (gas: 145360)
OnRamp_forwardFromRouter:test_ForwardFromRouterExtraArgsV2() (gas: 146194)
OnRamp_forwardFromRouter:test_ForwardFromRouterExtraArgsV2AllowOutOfOrderTrue() (gas: 115373)
OnRamp_forwardFromRouter:test_ForwardFromRouterSuccessCustomExtraArgs() (gas: 145758)
OnRamp_forwardFromRouter:test_ForwardFromRouterSuccessEmptyExtraArgs() (gas: 144034)
OnRamp_forwardFromRouter:test_ForwardFromRouterSuccessLegacyExtraArgs() (gas: 145999)
OnRamp_forwardFromRouter:test_ForwardFromRouter_ConfigurableSourceRouter() (gas: 140637)
OnRamp_forwardFromRouter:test_ShouldIncrementNonceOnlyOnOrdered() (gas: 186467)
OnRamp_forwardFromRouter:test_ShouldIncrementSeqNumAndNonce() (gas: 212822)
OnRamp_forwardFromRouter:test_ShouldStoreLinkFees() (gas: 147005)
OnRamp_forwardFromRouter:test_forwardFromRouter_WithInterception() (gas: 274797)
OnRamp_getFee:test_EmptyMessage() (gas: 99689)
OnRamp_getFee:test_GetFeeOfZeroForTokenMessage() (gas: 87468)
OnRamp_getFee:test_SingleTokenMessage() (gas: 114809)
OnRamp_getTokenPool:test_GetTokenPool() (gas: 35382)
OnRamp_setDynamicConfig:test_setDynamicConfig() (gas: 56650)
OnRamp_withdrawFeeTokens:test_WithdrawFeeTokens() (gas: 125835)
PingPong_ccipReceive:test_CcipReceive() (gas: 165845)
PingPong_ccipReceive:test_CcipReceive() (gas: 166014)
PingPong_setOutOfOrderExecution:test_OutOfOrderExecution() (gas: 20350)
PingPong_setPaused:test_Pausing() (gas: 17738)
PingPong_startPingPong:test_StartPingPong_With_OOO() (gas: 144996)
PingPong_startPingPong:test_StartPingPong_With_Sequenced_Ordered() (gas: 170649)
PingPong_startPingPong:test_StartPingPong_With_OOO() (gas: 145165)
PingPong_startPingPong:test_StartPingPong_With_Sequenced_Ordered() (gas: 170818)
RMNHome_getConfigDigests:test_getConfigDigests() (gas: 1081176)
RMNHome_promoteCandidateAndRevokeActive:test_promoteCandidateAndRevokeActive() (gas: 1086556)
RMNHome_revokeCandidate:test_revokeCandidate() (gas: 28085)
Expand All @@ -327,20 +327,20 @@ RegistryModuleOwnerCustom_registerAdminViaGetCCIPAdmin:test_registerAdminViaGetC
RegistryModuleOwnerCustom_registerAdminViaOwner:test_registerAdminViaOwner() (gas: 129941)
Router_applyRampUpdates:test_applyRampUpdates_OffRampUpdatesWithRouting() (gas: 10413055)
Router_applyRampUpdates:test_applyRampUpdates_OnRampDisable() (gas: 56445)
Router_ccipSend:test_CCIPSendLinkFeeNoTokenSuccess_gas() (gas: 124459)
Router_ccipSend:test_CCIPSendLinkFeeOneTokenSuccess_gas() (gas: 211890)
Router_ccipSend:test_CCIPSendLinkFeeNoTokenSuccess_gas() (gas: 124628)
Router_ccipSend:test_CCIPSendLinkFeeOneTokenSuccess_gas() (gas: 212132)
Router_ccipSend:test_InvalidMsgValue() (gas: 27856)
Router_ccipSend:test_NativeFeeToken() (gas: 184996)
Router_ccipSend:test_NativeFeeTokenInsufficientValue() (gas: 62458)
Router_ccipSend:test_NativeFeeTokenOverpay() (gas: 186413)
Router_ccipSend:test_NativeFeeTokenZeroValue() (gas: 54550)
Router_ccipSend:test_NonLinkFeeToken() (gas: 219583)
Router_ccipSend:test_WrappedNativeFeeToken() (gas: 187235)
Router_ccipSend:test_ccipSend_nativeFeeNoTokenSuccess_gas() (gas: 133616)
Router_ccipSend:test_ccipSend_nativeFeeOneTokenSuccess_gas() (gas: 221091)
Router_ccipSend:test_NativeFeeToken() (gas: 185336)
Router_ccipSend:test_NativeFeeTokenInsufficientValue() (gas: 62629)
Router_ccipSend:test_NativeFeeTokenOverpay() (gas: 186753)
Router_ccipSend:test_NativeFeeTokenZeroValue() (gas: 54721)
Router_ccipSend:test_NonLinkFeeToken() (gas: 219752)
Router_ccipSend:test_WrappedNativeFeeToken() (gas: 187575)
Router_ccipSend:test_ccipSend_nativeFeeNoTokenSuccess_gas() (gas: 133785)
Router_ccipSend:test_ccipSend_nativeFeeOneTokenSuccess_gas() (gas: 221333)
Router_constructor:test_Constructor() (gas: 13148)
Router_getArmProxy:test_getArmProxy() (gas: 10573)
Router_getFee:test_GetFeeSupportedChain() (gas: 52021)
Router_getFee:test_GetFeeSupportedChain() (gas: 52192)
Router_recoverTokens:test_RecoverTokens() (gas: 52668)
Router_routeMessage:test_routeMessage_AutoExec() (gas: 38071)
Router_routeMessage:test_routeMessage_ExecutionEvent() (gas: 153593)
Expand Down
Loading

0 comments on commit dd6d04e

Please sign in to comment.