Skip to content

Commit

Permalink
Merge d1e9ea6 into 5db8286
Browse files Browse the repository at this point in the history
  • Loading branch information
jhweintraub authored Jul 8, 2024
2 parents 5db8286 + d1e9ea6 commit 0da5306
Show file tree
Hide file tree
Showing 39 changed files with 11,329 additions and 1,817 deletions.
62 changes: 29 additions & 33 deletions contracts/gas-snapshots/ccip.gas-snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ BurnWithFromMintTokenPool_lockOrBurn:test_ChainNotAllowed_Revert() (gas: 28675)
BurnWithFromMintTokenPool_lockOrBurn:test_PoolBurnRevertNotHealthy_Revert() (gas: 55158)
BurnWithFromMintTokenPool_lockOrBurn:test_PoolBurn_Success() (gas: 243568)
BurnWithFromMintTokenPool_lockOrBurn:test_Setup_Success() (gas: 24260)
CCIPClientExample_sanity:test_ImmutableExamples_Success() (gas: 2132183)
CCIPClientTest:test_ccipReceiveAndSendAck_Success() (gas: 331825)
CCIPClientTest:test_ccipSendAndReceiveAck_in_return_Success() (gas: 348272)
CCIPClientTest:test_ccipSend_withNonNativeFeetoken_andNoDestTokens_Success() (gas: 241532)
CCIPClientTest:test_send_tokens_that_are_not_feeToken_Success() (gas: 552173)
CCIPConfigSetup:test_getCapabilityConfiguration_Success() (gas: 9495)
CCIPConfig_ConfigStateMachine:test__computeConfigDigest_Success() (gas: 70755)
CCIPConfig_ConfigStateMachine:test__computeNewConfigWithMeta_InitToRunning_Success() (gas: 357994)
Expand Down Expand Up @@ -85,6 +88,22 @@ CCIPConfig_validateConfig:test__validateConfig_TooManyBootstrapP2PIds_Reverts()
CCIPConfig_validateConfig:test__validateConfig_TooManySigners_Reverts() (gas: 1160583)
CCIPConfig_validateConfig:test__validateConfig_TooManyTransmitters_Reverts() (gas: 1158919)
CCIPConfig_validateConfig:test_getCapabilityConfiguration_Success() (gas: 9562)
CCIPReceiverTest:test_HappyPath_Success() (gas: 193812)
CCIPReceiverTest:test_Recovery_from_invalid_sender_Success() (gas: 430948)
CCIPReceiverTest:test_Recovery_with_intentional_Revert() (gas: 445121)
CCIPReceiverTest:test_disableChain_andRevert_onccipReceive_Revert() (gas: 199816)
CCIPReceiverTest:test_modifyRouter_Success() (gas: 26470)
CCIPReceiverTest:test_removeSender_from_approvedList_and_revert_Success() (gas: 427992)
CCIPReceiverTest:test_retryFailedMessage_Success() (gas: 421204)
CCIPReceiverTest:test_withdraw_nativeToken_to_owner_Success() (gas: 20689)
CCIPReceiverWithAckTest:test_ccipReceive_ack_message_Success() (gas: 56254)
CCIPReceiverWithAckTest:test_ccipReceive_and_respond_with_ack_Success() (gas: 331794)
CCIPReceiverWithAckTest:test_ccipReceiver_ack_with_invalidAckMessageHeaderBytes_Revert() (gas: 438731)
CCIPReceiverWithAckTest:test_feeTokenApproval_in_constructor_Success() (gas: 2948564)
CCIPReceiverWithAckTest:test_modifyFeeToken_Success() (gas: 74835)
CCIPSenderTest:test_ccipSend_withNonNativeFeetoken_andDestTokens() (gas: 339572)
CCIPSenderTest:test_ccipSend_withNonNativeFeetoken_andNoDestTokens() (gas: 224467)
CCIPSenderTest:test_ccipSend_with_NativeFeeToken_andDestTokens() (gas: 368160)
CommitStore_constructor:test_Constructor_Success() (gas: 3091326)
CommitStore_isUnpausedAndRMNHealthy:test_RMN_Success() (gas: 73420)
CommitStore_report:test_InvalidIntervalMinLargerThanMax_Revert() (gas: 28670)
Expand Down Expand Up @@ -113,8 +132,6 @@ CommitStore_verify:test_Blessed_Success() (gas: 96389)
CommitStore_verify:test_NotBlessed_Success() (gas: 61374)
CommitStore_verify:test_Paused_Revert() (gas: 18496)
CommitStore_verify:test_TooManyLeaves_Revert() (gas: 36785)
DefensiveExampleTest:test_HappyPath_Success() (gas: 200018)
DefensiveExampleTest:test_Recovery() (gas: 424253)
E2E:test_E2E_3MessagesSuccess_gas() (gas: 1104821)
EVM2EVMMultiOffRamp__releaseOrMintSingleToken:test__releaseOrMintSingleToken_NotACompatiblePool_Revert() (gas: 38361)
EVM2EVMMultiOffRamp__releaseOrMintSingleToken:test__releaseOrMintSingleToken_Success() (gas: 108455)
Expand Down Expand Up @@ -354,7 +371,7 @@ EVM2EVMOffRamp_execute:test_Paused_Revert() (gas: 101458)
EVM2EVMOffRamp_execute:test_ReceiverError_Success() (gas: 165192)
EVM2EVMOffRamp_execute:test_RetryFailedMessageWithoutManualExecution_Revert() (gas: 177948)
EVM2EVMOffRamp_execute:test_RootNotCommitted_Revert() (gas: 41317)
EVM2EVMOffRamp_execute:test_RouterYULCall_Revert() (gas: 402597)
EVM2EVMOffRamp_execute:test_RouterYULCall_Revert() (gas: 1678062)
EVM2EVMOffRamp_execute:test_SingleMessageNoTokensUnordered_Success() (gas: 159863)
EVM2EVMOffRamp_execute:test_SingleMessageNoTokens_Success() (gas: 175094)
EVM2EVMOffRamp_execute:test_SingleMessageToNonCCIPReceiver_Success() (gas: 248764)
Expand Down Expand Up @@ -386,14 +403,14 @@ EVM2EVMOffRamp_execute_upgrade:test_V2_Success() (gas: 131906)
EVM2EVMOffRamp_getAllRateLimitTokens:test_GetAllRateLimitTokens_Success() (gas: 38408)
EVM2EVMOffRamp_getExecutionState:test_FillExecutionState_Success() (gas: 3213556)
EVM2EVMOffRamp_getExecutionState:test_GetExecutionState_Success() (gas: 83091)
EVM2EVMOffRamp_manuallyExecute:test_LowGasLimitManualExec_Success() (gas: 483813)
EVM2EVMOffRamp_manuallyExecute:test_LowGasLimitManualExec_Success() (gas: 1759547)
EVM2EVMOffRamp_manuallyExecute:test_ManualExecFailedTx_Revert() (gas: 186809)
EVM2EVMOffRamp_manuallyExecute:test_ManualExecForkedChain_Revert() (gas: 25894)
EVM2EVMOffRamp_manuallyExecute:test_ManualExecGasLimitMismatch_Revert() (gas: 43519)
EVM2EVMOffRamp_manuallyExecute:test_ManualExecInvalidGasLimit_Revert() (gas: 26009)
EVM2EVMOffRamp_manuallyExecute:test_ManualExecWithGasOverride_Success() (gas: 189003)
EVM2EVMOffRamp_manuallyExecute:test_ManualExec_Success() (gas: 188464)
EVM2EVMOffRamp_manuallyExecute:test_ReentrancyManualExecuteFails() (gas: 2027697)
EVM2EVMOffRamp_manuallyExecute:test_ReentrancyManualExecuteFails() (gas: 3171279)
EVM2EVMOffRamp_manuallyExecute:test_manuallyExecute_DoesNotRevertIfUntouched_Success() (gas: 144106)
EVM2EVMOffRamp_metadataHash:test_MetadataHash_Success() (gas: 8871)
EVM2EVMOffRamp_setDynamicConfig:test_NonOwner_Revert() (gas: 40429)
Expand Down Expand Up @@ -499,27 +516,6 @@ EVM2EVMOnRamp_withdrawNonLinkFees:test_NonOwnerOrAdmin_Revert() (gas: 15293)
EVM2EVMOnRamp_withdrawNonLinkFees:test_SettlingBalance_Success() (gas: 272260)
EVM2EVMOnRamp_withdrawNonLinkFees:test_WithdrawNonLinkFees_Success() (gas: 53472)
EVM2EVMOnRamp_withdrawNonLinkFees:test_WithdrawToZeroAddress_Revert() (gas: 12856)
EtherSenderReceiverTest_ccipReceive:test_ccipReceive_fallbackToWethTransfer() (gas: 96729)
EtherSenderReceiverTest_ccipReceive:test_ccipReceive_happyPath() (gas: 47688)
EtherSenderReceiverTest_ccipReceive:test_ccipReceive_wrongToken() (gas: 17384)
EtherSenderReceiverTest_ccipReceive:test_ccipReceive_wrongTokenAmount() (gas: 15677)
EtherSenderReceiverTest_ccipSend:test_ccipSend_reverts_insufficientFee_feeToken() (gas: 99741)
EtherSenderReceiverTest_ccipSend:test_ccipSend_reverts_insufficientFee_native() (gas: 76096)
EtherSenderReceiverTest_ccipSend:test_ccipSend_reverts_insufficientFee_weth() (gas: 99748)
EtherSenderReceiverTest_ccipSend:test_ccipSend_success_feeToken() (gas: 144569)
EtherSenderReceiverTest_ccipSend:test_ccipSend_success_native() (gas: 80259)
EtherSenderReceiverTest_ccipSend:test_ccipSend_success_nativeExcess() (gas: 80446)
EtherSenderReceiverTest_ccipSend:test_ccipSend_success_weth() (gas: 95713)
EtherSenderReceiverTest_constructor:test_constructor() (gas: 17511)
EtherSenderReceiverTest_getFee:test_getFee() (gas: 27289)
EtherSenderReceiverTest_validateFeeToken:test_validateFeeToken_reverts_feeToken_tokenAmountNotEqualToMsgValue() (gas: 20333)
EtherSenderReceiverTest_validateFeeToken:test_validateFeeToken_valid_feeToken() (gas: 16715)
EtherSenderReceiverTest_validateFeeToken:test_validateFeeToken_valid_native() (gas: 16654)
EtherSenderReceiverTest_validatedMessage:test_validatedMessage_dataOverwrittenToMsgSender() (gas: 25415)
EtherSenderReceiverTest_validatedMessage:test_validatedMessage_emptyDataOverwrittenToMsgSender() (gas: 25265)
EtherSenderReceiverTest_validatedMessage:test_validatedMessage_invalidTokenAmounts() (gas: 17895)
EtherSenderReceiverTest_validatedMessage:test_validatedMessage_tokenOverwrittenToWeth() (gas: 25287)
EtherSenderReceiverTest_validatedMessage:test_validatedMessage_validMessage_extraArgs() (gas: 26292)
LockReleaseTokenPoolAndProxy_setRateLimitAdmin:test_SetRateLimitAdmin_Revert() (gas: 11058)
LockReleaseTokenPoolAndProxy_setRateLimitAdmin:test_SetRateLimitAdmin_Success() (gas: 35097)
LockReleaseTokenPoolAndProxy_setRebalancer:test_SetRebalancer_Revert() (gas: 10970)
Expand Down Expand Up @@ -685,9 +681,9 @@ OCR2Base_transmit:test_UnAuthorizedTransmitter_Revert() (gas: 23484)
OCR2Base_transmit:test_UnauthorizedSigner_Revert() (gas: 39665)
OCR2Base_transmit:test_WrongNumberOfSignatures_Revert() (gas: 20557)
OnRampTokenPoolReentrancy:test_OnRampTokenPoolReentrancy_Success() (gas: 380711)
PingPong_ccipReceive:test_CcipReceive_Success() (gas: 148611)
PingPong_plumbing:test_Pausing_Success() (gas: 17803)
PingPong_startPingPong:test_StartPingPong_Success() (gas: 178547)
PingPong_example_ccipReceive:test_CcipReceive_Success() (gas: 308708)
PingPong_example_plumbing:test_Pausing_Success() (gas: 17766)
PingPong_example_startPingPong:test_StartPingPong_Success() (gas: 234292)
PriceRegistry_applyFeeTokensUpdates:test_ApplyFeeTokensUpdates_Success() (gas: 79823)
PriceRegistry_applyFeeTokensUpdates:test_OnlyCallableByOwner_Revert() (gas: 12580)
PriceRegistry_constructor:test_InvalidStalenessThreshold_Revert() (gas: 67418)
Expand Down Expand Up @@ -834,9 +830,9 @@ Router_routeMessage:test_ManualExec_Success() (gas: 35381)
Router_routeMessage:test_OnlyOffRamp_Revert() (gas: 25116)
Router_routeMessage:test_WhenNotHealthy_Revert() (gas: 44724)
Router_setWrappedNative:test_OnlyOwner_Revert() (gas: 10985)
SelfFundedPingPong_ccipReceive:test_FundingIfNotANop_Revert() (gas: 53600)
SelfFundedPingPong_ccipReceive:test_Funding_Success() (gas: 418231)
SelfFundedPingPong_setCountIncrBeforeFunding:test_setCountIncrBeforeFunding() (gas: 20157)
SelfFundedPingPong_ccipReceive:test_FundingIfNotANop_Revert() (gas: 290920)
SelfFundedPingPong_ccipReceive:test_Funding_Success() (gas: 456179)
SelfFundedPingPong_setCountIncrBeforeFunding:test_setCountIncrBeforeFunding() (gas: 20203)
TokenAdminRegistry_acceptAdminRole:test_acceptAdminRole_OnlyPendingAdministrator_Revert() (gas: 51085)
TokenAdminRegistry_acceptAdminRole:test_acceptAdminRole_Success() (gas: 43947)
TokenAdminRegistry_addRegistryModule:test_addRegistryModule_OnlyOwner_Revert() (gas: 12629)
Expand Down
9 changes: 6 additions & 3 deletions contracts/scripts/native_solc_compile_all_ccip
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,12 @@ compileContract () {
# Contracts should be ordered in reverse-import-complexity-order to minimize overwrite risks.
compileContract ccip/offRamp/EVM2EVMOffRamp.sol
compileContract ccip/offRamp/EVM2EVMMultiOffRamp.sol
compileContract ccip/applications/PingPongDemo.sol
compileContract ccip/applications/SelfFundedPingPong.sol
compileContract ccip/applications/EtherSenderReceiver.sol
compileContract ccip/applications/internal/PingPongDemo.sol
compileContract ccip/applications/internal/SelfFundedPingPong.sol
compileContract ccip/applications/external/CCIPClient.sol
compileContract ccip/applications/external/CCIPReceiver.sol
compileContract ccip/applications/external/CCIPReceiverWithACK.sol
compileContract ccip/applications/external/CCIPSender.sol
compileContract ccip/onRamp/EVM2EVMMultiOnRamp.sol
compileContract ccip/onRamp/EVM2EVMOnRamp.sol
compileContract ccip/CommitStore.sol
Expand Down
173 changes: 0 additions & 173 deletions contracts/src/v0.8/ccip/applications/CCIPClientExample.sol

This file was deleted.

Loading

0 comments on commit 0da5306

Please sign in to comment.