Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Mantle a.DI activation path #44

Merged
merged 2 commits into from
Feb 12, 2025
Merged

Conversation

sendra
Copy link
Contributor

@sendra sendra commented Feb 12, 2025

No description provided.

@sakulstra
Copy link
Contributor

Forge Build Sizes

Contract Runtime Size (B) Initcode Size (B) Runtime Margin (B) Initcode Margin (B)
UpdateCCCPermissionsSonic 379 408 24,197 48,744
Ethereum_Sonic_Path_Payload 2,661 3,215 21,915 45,937
UpdateCCCPermissionsMantle 379 408 24,197 48,744
🔕 Unchanged
Contract Runtime Size (B) Initcode Size (B) Runtime Margin (B) Initcode Margin (B)
Address 44 94 24,532 49,058
AddressAliasHelper 44 94 24,532 49,058
ArbAdapter 2,895 4,396 21,681 44,756
ArbAdapterDeploymentHelper 44 94 24,532 49,058
ArbitrumAdapterTestnet 2,901 4,413 21,675 44,739
Arbitrum_Add_Shuffle_to_CCC_Payload 846 1,137 23,730 48,015
Avalanche_Add_Shuffle_to_CCC_Payload 918 1,209 23,658 47,943
BaseCrossChainController 15,866 20,587 8,710 28,565
Base_Add_Shuffle_to_CCC_Payload 846 1,137 23,730 48,015
Binance_Add_Shuffle_to_CCC_Payload 846 1,137 23,730 48,015
BytesLib 44 94 24,532 49,058
CBAdapterDeploymentHelper 44 94 24,532 49,058
CBaseAdapter 2,416 3,886 22,160 45,266
CBaseAdapterTestnet 2,422 3,900 22,154 45,252
CCCImplDeploymentHelper 44 94 24,532 49,058
CCCUpdateDeploymentHelper 44 94 24,532 49,058
CCIPAdapter 4,313 5,964 20,263 43,188
CCIPAdapterDeploymentHelper 44 94 24,532 49,058
CCIPAdapterTestnet 4,225 5,886 20,351 43,266
ChainHelpers 44 94 24,532 49,058
ChainIds 44 94 24,532 49,058
Client 109 160 24,467 48,992
Create2Utils 121 172 24,455 48,980
Create2UtilsZkSync 104 155 24,472 48,997
CrossChainController 16,952 21,673 7,624 27,479
CrossChainControllerUpgradeRev3 17,147 21,868 7,429 27,284
CrossChainControllerWithEmergencyMode 18,135 23,102 6,441 26,050
CrossChainControllerWithEmergencyModeUpgradeRev3 18,330 23,301 6,246 25,851
CrossChainForwarder 9,709 13,350 14,867 35,802
CrossChainReceiver 7,374 9,986 17,202 39,166
DeployerHelpers 44 94 24,532 49,058
ERC1967Proxy 122 967 24,454 48,185
ERC1967Utils 44 94 24,532 49,058
EmergencyRegistry 1,202 1,362 23,374 47,790
EmergencyRegistryDeploymentHelper 44 94 24,532 49,058
EnumerableSet 44 94 24,532 49,058
EnvelopeUtils 44 94 24,532 49,058
Errors 4,653 4,706 19,923 44,446
Ethereum_Add_Shuffle_to_CCC_Payload 1,133 1,424 23,443 47,728
Ethereum_Celo_Path_Payload 2,300 2,839 22,276 46,313
ExecutorOptions 44 94 24,532 49,058
GnosisAdapterDeploymentHelper 44 94 24,532 49,058
GnosisChainAdapter 2,505 4,038 22,071 45,114
Gnosis_Add_Shuffle_to_CCC_Payload 846 1,137 23,730 48,015
GovV3Helpers 2,468 2,521 22,108 46,631
GovV3StorageHelpers 44 94 24,532 49,058
GovernanceV3Arbitrum 44 94 24,532 49,058
GovernanceV3Avalanche 44 94 24,532 49,058
GovernanceV3BNB 44 94 24,532 49,058
GovernanceV3Base 44 94 24,532 49,058
GovernanceV3Binance 44 94 24,532 49,058
GovernanceV3Ethereum 44 94 24,532 49,058
GovernanceV3Gnosis 44 94 24,532 49,058
GovernanceV3Linea 44 94 24,532 49,058
GovernanceV3Metis 44 94 24,532 49,058
GovernanceV3Optimism 44 94 24,532 49,058
GovernanceV3Polygon 44 94 24,532 49,058
GovernanceV3PolygonZkEvm 44 94 24,532 49,058
GovernanceV3Scroll 44 94 24,532 49,058
GovernanceV3ZkSync 44 94 24,532 49,058
GranularGuardianAccessControl 6,507 7,392 18,069 41,760
GranularGuardianDeploymentHelper 44 94 24,532 49,058
HLAdapterDeploymentHelper 44 94 24,532 49,058
HyperLaneAdapter 2,694 4,208 21,882 44,944
IpfsUtils 44 94 24,532 49,058
LZAdapterDeploymentHelper 44 94 24,532 49,058
LayerZeroAdapter 4,542 6,056 20,034 43,096
LayerZeroAdapterTestnet 4,486 6,009 20,090 43,143
LineaAdapter 2,376 4,009 22,200 45,143
LineaAdapterDeploymentHelper 44 94 24,532 49,058
LineaAdapterTestnet 2,380 4,015 22,196 45,137
MantleAdapter 2,416 3,982 22,160 45,170
MantleAdapterDeploymentHelper 44 94 24,532 49,058
MantleAdapterTestnet 2,420 3,988 22,156 45,164
MetisAdapter 2,425 3,895 22,151 45,257
MetisAdapterDeploymentHelper 44 94 24,532 49,058
MetisAdapterTestnet 2,429 3,907 22,147 45,245
Metis_Add_Shuffle_to_CCC_Payload 846 1,137 23,730 48,015
MiscArbitrum 44 94 24,532 49,058
MiscAvalanche 44 94 24,532 49,058
MiscBNB 44 94 24,532 49,058
MiscBase 44 94 24,532 49,058
MiscEthereum 44 94 24,532 49,058
MiscGnosis 44 94 24,532 49,058
MiscMetis 44 94 24,532 49,058
MiscOptimism 44 94 24,532 49,058
MiscPolygon 44 94 24,532 49,058
MiscPolygonZkEvm 44 94 24,532 49,058
MiscScroll 44 94 24,532 49,058
MockDestination 667 894 23,909 48,258
OpAdapter 2,414 3,982 22,162 45,170
OpAdapterDeploymentHelper 44 94 24,532 49,058
OptimismAdapterTestnet 2,422 3,892 22,154 45,260
Optimism_Add_Shuffle_to_CCC_Payload 846 1,137 23,730 48,015
OptionsBuilder 44 94 24,532 49,058
PayloadsControllerUtils 44 94 24,532 49,058
PolygonAdapterDeploymentHelper 44 94 24,532 49,058
PolygonAdapterEthereum 2,023 3,477 22,553 45,675
PolygonAdapterPolygon 2,023 3,477 22,553 45,675
Polygon_Add_Shuffle_to_CCC_Payload 918 1,209 23,658 47,943
ProxyAdmin 990 1,235 23,586 47,917
ProxyHelpers 44 94 24,532 49,058
SafeCast 44 94 24,532 49,058
SafeERC20 44 94 24,532 49,058
SameChainAdapter 1,635 1,664 22,941 47,488
SameChainAdapterDeploymentHelper 44 94 24,532 49,058
ScrollAdapter 2,580 4,229 21,996 44,923
ScrollAdapterDeploymentHelper 44 94 24,532 49,058
ScrollAdapterTestnet 2,584 4,241 21,992 44,911
Scroll_Add_Shuffle_to_CCC_Payload 846 1,137 23,730 48,015
SimpleAddForwarderAdapter 1,727 2,062 22,849 47,090
StandardHookMetadata 97 148 24,479 49,004
StorageHelpers 44 94 24,532 49,058
StorageSlot 44 94 24,532 49,058
TestNetChainIds 44 94 24,532 49,058
TestUtils 44 94 24,532 49,058
TransactionUtils 44 94 24,532 49,058
TransparentProxyFactory 6,830 6,859 17,746 42,293
TransparentUpgradeableProxy 1,088 3,582 23,488 45,570
TypeCasts 44 94 24,532 49,058
UpdateCCCImpl 578 804 23,998 48,348
Utils 44 94 24,532 49,058
WormholeAdapter 3,378 4,934 21,198 44,218
WormholeAdapterDeploymentHelper 44 94 24,532 49,058
WormholeAdapterTestnet 3,156 4,723 21,420 44,429
ZKEVMAdapterDeploymentHelper 44 94 24,532 49,058
ZkEVMAdapterEthereum 2,333 3,787 22,243 45,365
ZkEVMAdapterPolygonZkEVM 2,331 3,785 22,245 45,367
ZkSyncAdapter 2,912 4,474 21,664 44,678
ZkSyncAdapterDeploymentHelper 44 94 24,532 49,058
ZkSyncAdapterTestnet 2,916 4,489 21,660 44,663

@sakulstra
Copy link
Contributor

No description provided.

@sendra sendra merged commit 34b85a9 into main Feb 12, 2025
2 checks passed
Copy link

🔮 Coverage report
File Line Coverage Function Coverage Branch Coverage
src/adapter_payloads/Ethereum_Celo_Path_Payload.sol ${\color{orange}93.33\%}$
$14 / 15$
43
${\color{red}50\%}$
$1 / 2$
Ethereum_Celo_Path_Payload.getForwarderBridgeAdaptersToEnable
${\color{green}100\%}$
$0 / 0$
src/adapter_payloads/Ethereum_Sonic_Path_Payload.sol ${\color{orange}91.67\%}$
$22 / 24$
43, 81
${\color{red}50\%}$
$2 / 4$
Ethereum_Sonic_Path_Payload.getForwarderBridgeAdaptersToEnable, Ethereum_Sonic_Path_Payload._updateOptimalBandwidth
${\color{green}100\%}$
$0 / 0$
src/ccc_payloads/shuffle/ShuffleCCCUpdatePayload.sol ${\color{red}0\%}$
$0 / 47$
17, 18, 19, 21, 25 and 42 more
${\color{red}0\%}$
$0 / 10$
Ethereum_Add_Shuffle_to_CCC_Payload.getInitializeSignature, Polygon_Add_Shuffle_to_CCC_Payload.getInitializeSignature, Avalanche_Add_Shuffle_to_CCC_Payload.getInitializeSignature, Arbitrum_Add_Shuffle_to_CCC_Payload.getInitializeSignature, Optimism_Add_Shuffle_to_CCC_Payload.getInitializeSignature and 5 more
${\color{green}100\%}$
$0 / 0$
src/templates/BaseADIPayloadUpdate.sol ${\color{green}100\%}$
$2 / 2$
${\color{green}100\%}$
$1 / 1$
${\color{green}100\%}$
$0 / 0$
src/templates/BaseAdaptersUpdate.sol ${\color{green}100\%}$
$3 / 3$
${\color{green}100\%}$
$1 / 1$
${\color{green}100\%}$
$0 / 0$
src/templates/BaseCCCUpdate.sol ${\color{red}0\%}$
$0 / 5$
30, 33, 34, 40, 41
${\color{red}0\%}$
$0 / 2$
BaseCCCUpdate.constructor, BaseCCCUpdate.execute
${\color{green}100\%}$
$0 / 0$
src/templates/BaseForwarderAdaptersUpdate.sol ${\color{red}63.16\%}$
$12 / 19$
12, 22, 28, 32, 37 and 2 more
${\color{red}0\%}$
$0 / 4$
BaseForwarderAdaptersUpdate.getForwarderBridgeAdaptersToRemove, BaseForwarderAdaptersUpdate.getForwarderBridgeAdaptersToEnable, BaseForwarderAdaptersUpdate.getOptimalBandwidthByChain, BaseForwarderAdaptersUpdate.executeForwardersUpdate
${\color{red}33.33\%}$
$1 / 3$
src/templates/BaseReceiverAdaptersUpdate.sol ${\color{red}61.54\%}$
$8 / 13$
12, 23, 33, 38, 45
${\color{red}0\%}$
$0 / 3$
BaseReceiverAdaptersUpdate.getReceiverBridgeAdaptersToRemove, BaseReceiverAdaptersUpdate.getReceiverBridgeAdaptersToAllow, BaseReceiverAdaptersUpdate.executeReceiversUpdate
${\color{red}0\%}$
$0 / 2$
src/templates/SimpleAddForwarderAdapter.sol ${\color{orange}88.89\%}$
$8 / 9$
31
${\color{red}50\%}$
$1 / 2$
SimpleAddForwarderAdapter.getForwarderBridgeAdaptersToEnable
${\color{green}100\%}$
$0 / 0$
src/templates/SimpleOneToManyAdapterUpdate.sol ${\color{red}0\%}$
$0 / 39$
26, 27, 28, 35, 41 and 34 more
${\color{red}0\%}$
$0 / 7$
SimpleOneToManyAdapterUpdate.constructor, SimpleOneToManyAdapterUpdate.getDestinationAdapters, SimpleOneToManyAdapterUpdate.getChainsToSend, SimpleOneToManyAdapterUpdate.getReceiverBridgeAdaptersToRemove, SimpleOneToManyAdapterUpdate.getForwarderBridgeAdaptersToRemove and 2 more
${\color{red}0\%}$
$0 / 6$
src/templates/SimpleReceiverAdapterUpdate.sol ${\color{red}0\%}$
$0 / 17$
27, 28, 29, 39, 46 and 12 more
${\color{red}0\%}$
$0 / 3$
SimpleReceiverAdapterUpdate.constructor, SimpleReceiverAdapterUpdate.getReceiverBridgeAdaptersToRemove, SimpleReceiverAdapterUpdate.getReceiverBridgeAdaptersToAllow
${\color{red}0\%}$
$0 / 4$

@sendra sendra deleted the feat/mantle-path-activation branch February 12, 2025 15:22
Copy link

🌈 Test Results
No files changed, compilation skipped
2025-02-12T15:19:13.464527Z ERROR cheatcodes: non-empty stderr input=["npx", "@bgd-labs/aave-cli@^0.16.2", "adi-diff-snapshots", "./reports/adi_add_celo_path_to_adiethereum_before.json", "./reports/adi_add_celo_path_to_adiethereum_after.json", "-o", "./diffs/adi_add_celo_path_to_adiethereum_before_adi_add_celo_path_to_adiethereum_after.md"] stderr="npm warn exec The following package was not found and will be installed: @bgd-labs/aave-cli@0.16.4\nnpm warn deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility\nnpm warn deprecated interface-ipld-format@1.0.1: This module has been superseded by the multiformats module\nnpm warn deprecated cids@1.1.9: This module has been superseded by the multiformats module\nnpm warn deprecated multibase@4.0.6: This module has been superseded by the multiformats module\nnpm warn deprecated multicodec@3.2.1: This module has been superseded by the multiformats module\nnpm warn deprecated ipld-dag-pb@0.22.3: This module has been superseded by @ipld/dag-pb and multiformats\nfile:///home/runner/.npm/_npx/98f577e373727b30/node_modules/@bgd-labs/aave-cli/dist/cli.js:399\nimport { CHAIN_ID_CLIENT_MAP } from \"@bgd-labs/js-utils\";\n         ^^^^^^^^^^^^^^^^^^^\nSyntaxError: Named export 'CHAIN_ID_CLIENT_MAP' not found. The requested module '@bgd-labs/js-utils' is a CommonJS module, which may not support all module.exports as named exports.\nCommonJS modules can always be imported via the default export, for example using:\n\nimport pkg from '@bgd-labs/js-utils';\nconst { CHAIN_ID_CLIENT_MAP } = pkg;\n\n    at ModuleJob._instantiate (node:internal/modules/esm/module_job:146:21)\n    at async ModuleJob.run (node:internal/modules/esm/module_job:229:5)\n    at async ModuleLoader.import (node:internal/modules/esm/loader:473:24)\n    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:122:5)\n\nNode.js v20.18.2\n"

Ran 1 test for tests/payloads/ethereum/AddCeloPathTest.t.sol:EthereumAddCeloPathPayloadTest
[PASS] test_defaultTest() (gas: 1737067)
Suite result: ok. 1 passed; 0 failed; 0 skipped; finished in 17.25s (16.77s CPU time)

Ran 3 tests for tests/access_control/GranularGuardianDeployTest.t.sol:ArbitrumGGTest
[PASS] test_initialization() (gas: 214313)
[PASS] test_updateGuardian(address) (runs: 256, μ: 210166, ~: 210166)
[PASS] test_updateGuardianWhenWrongCaller(address,address) (runs: 256, μ: 12968, ~: 12968)
Suite result: ok. 3 passed; 0 failed; 0 skipped; finished in 17.88s (17.51s CPU time)
2025-02-12T15:19:21.518640Z ERROR cheatcodes: non-empty stderr input=["npx", "@bgd-labs/aave-cli@^0.16.2", "adi-diff-snapshots", "./reports/adi_add_mantle_path_to_adiethereum_before.json", "./reports/adi_add_mantle_path_to_adiethereum_after.json", "-o", "./diffs/adi_add_mantle_path_to_adiethereum_before_adi_add_mantle_path_to_adiethereum_after.md"] stderr="file:///home/runner/.npm/_npx/98f577e373727b30/node_modules/@bgd-labs/aave-cli/dist/cli.js:399\nimport { CHAIN_ID_CLIENT_MAP } from \"@bgd-labs/js-utils\";\n         ^^^^^^^^^^^^^^^^^^^\nSyntaxError: Named export 'CHAIN_ID_CLIENT_MAP' not found. The requested module '@bgd-labs/js-utils' is a CommonJS module, which may not support all module.exports as named exports.\nCommonJS modules can always be imported via the default export, for example using:\n\nimport pkg from '@bgd-labs/js-utils';\nconst { CHAIN_ID_CLIENT_MAP } = pkg;\n\n    at ModuleJob._instantiate (node:internal/modules/esm/module_job:146:21)\n    at async ModuleJob.run (node:internal/modules/esm/module_job:229:5)\n    at async ModuleLoader.import (node:internal/modules/esm/loader:473:24)\n    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:122:5)\n\nNode.js v20.18.2\n"

Ran 2 tests for tests/payloads/ethereum/AddMantlePathTest.t.sol:EthereumAddMantlePathPayloadTest
[PASS] test_defaultTest() (gas: 1676828)
[PASS] test_samePayloadAddress(address,address,address,uint256) (runs: 256, μ: 391783, ~: 391783)
Suite result: ok. 2 passed; 0 failed; 0 skipped; finished in 8.81s (8.38s CPU time)
2025-02-12T15:19:24.376494Z ERROR cheatcodes: non-empty stderr input=["npx", "@bgd-labs/aave-cli@^0.16.2", "adi-diff-snapshots", "./reports/adi_add_sonic_path_to_adiethereum_before.json", "./reports/adi_add_sonic_path_to_adiethereum_after.json", "-o", "./diffs/adi_add_sonic_path_to_adiethereum_before_adi_add_sonic_path_to_adiethereum_after.md"] stderr="file:///home/runner/.npm/_npx/98f577e373727b30/node_modules/@bgd-labs/aave-cli/dist/cli.js:399\nimport { CHAIN_ID_CLIENT_MAP } from \"@bgd-labs/js-utils\";\n         ^^^^^^^^^^^^^^^^^^^\nSyntaxError: Named export 'CHAIN_ID_CLIENT_MAP' not found. The requested module '@bgd-labs/js-utils' is a CommonJS module, which may not support all module.exports as named exports.\nCommonJS modules can always be imported via the default export, for example using:\n\nimport pkg from '@bgd-labs/js-utils';\nconst { CHAIN_ID_CLIENT_MAP } = pkg;\n\n    at ModuleJob._instantiate (node:internal/modules/esm/module_job:146:21)\n    at async ModuleJob.run (node:internal/modules/esm/module_job:229:5)\n    at async ModuleLoader.import (node:internal/modules/esm/loader:473:24)\n    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:122:5)\n\nNode.js v20.18.2\n"

Ran 2 tests for tests/payloads/ethereum/AddSonicPathTest.t.sol:EthereumAddSonicPathPayloadTest
[PASS] test_defaultTest() (gas: 1839139)
[PASS] test_samePayloadAddress() (gas: 225232)
Suite result: ok. 2 passed; 0 failed; 0 skipped; finished in 2.10s (1.81s CPU time)

Ran 5 tests for tests/access_control/GranularGuardianDeployTest.t.sol:BinanceGGTest
[PASS] test_initialization() (gas: 214314)
[PASS] test_solveEmergencyDeprecated() (gas: 423907)
[PASS] test_solveEmergencyDeprecatedWhenWrongCaller(address) (runs: 256, μ: 18137, ~: 18137)
[PASS] test_updateGuardian(address) (runs: 256, μ: 210257, ~: 210257)
[PASS] test_updateGuardianWhenWrongCaller(address,address) (runs: 256, μ: 12980, ~: 12980)
Suite result: ok. 5 passed; 0 failed; 0 skipped; finished in 42.34s (41.89s CPU time)

Ran 3 tests for tests/access_control/GranularGuardianDeployTest.t.sol:CBaseGGTest
[PASS] test_initialization() (gas: 214400)
[PASS] test_updateGuardian(address) (runs: 256, μ: 210200, ~: 210211)
[PASS] test_updateGuardianWhenWrongCaller(address,address) (runs: 256, μ: 12968, ~: 12968)
Suite result: ok. 3 passed; 0 failed; 0 skipped; finished in 18.03s (17.77s CPU time)

Ran 3 tests for tests/access_control/GranularGuardianDeployTest.t.sol:MetisGGTest
[PASS] test_initialization() (gas: 214354)
[PASS] test_updateGuardian(address) (runs: 256, μ: 210207, ~: 210207)
[PASS] test_updateGuardianWhenWrongCaller(address,address) (runs: 256, μ: 12968, ~: 12968)
Suite result: ok. 3 passed; 0 failed; 0 skipped; finished in 34.61s (34.21s CPU time)

Ran 3 tests for tests/access_control/GranularGuardianDeployTest.t.sol:OptimismGGTest
[PASS] test_initialization() (gas: 214336)
[PASS] test_updateGuardian(address) (runs: 256, μ: 210189, ~: 210189)
[PASS] test_updateGuardianWhenWrongCaller(address,address) (runs: 256, μ: 12968, ~: 12968)
Suite result: ok. 3 passed; 0 failed; 0 skipped; finished in 17.38s (17.14s CPU time)

Ran 7 tests for tests/access_control/GranularGuardianDeployTest.t.sol:EthereumGGTest
[PASS] test_initialization() (gas: 214857)
[PASS] test_retryEnvelope(address,uint256) (runs: 256, μ: 1963271, ~: 1967509)
[PASS] test_retryEnvelopeWhenWrongCaller(uint256,address) (runs: 256, μ: 14396, ~: 14396)
[PASS] test_retryTx(address,uint256) (runs: 256, μ: 1579992, ~: 1582748)
[PASS] test_retryTxWhenWrongCaller(uint256,address) (runs: 256, μ: 14514, ~: 14514)
[PASS] test_updateGuardian(address) (runs: 256, μ: 210821, ~: 210821)
[PASS] test_updateGuardianWhenWrongCaller(address,address) (runs: 256, μ: 12990, ~: 12990)
Suite result: ok. 7 passed; 0 failed; 0 skipped; finished in 120.95s (120.65s CPU time)

Ran 3 tests for tests/access_control/GranularGuardianDeployTest.t.sol:ScrollGGTest
[PASS] test_initialization() (gas: 214469)
[PASS] test_updateGuardian(address) (runs: 256, μ: 210280, ~: 210280)
[PASS] test_updateGuardianWhenWrongCaller(address,address) (runs: 256, μ: 12968, ~: 12968)
Suite result: ok. 3 passed; 0 failed; 0 skipped; finished in 21.45s (21.09s CPU time)

Ran 9 tests for tests/access_control/GranularGuardianDeployTest.t.sol:AvalancheGGTest
[PASS] test_initialization() (gas: 214935)
[PASS] test_retryEnvelope(address,uint256) (runs: 256, μ: 1915033, ~: 1919055)
[PASS] test_retryEnvelopeWhenWrongCaller(uint256,address) (runs: 256, μ: 14386, ~: 14386)
[PASS] test_retryTx(address,uint256) (runs: 256, μ: 1604880, ~: 1607348)
[PASS] test_retryTxWhenWrongCaller(uint256,address) (runs: 256, μ: 14549, ~: 14549)
[PASS] test_solveEmergencyDeprecated() (gas: 425143)
[PASS] test_solveEmergencyWhenWrongCallerDeprecated(address) (runs: 256, μ: 18136, ~: 18136)
[PASS] test_updateGuardian(address) (runs: 256, μ: 210920, ~: 210920)
[PASS] test_updateGuardianWhenWrongCaller(address,address) (runs: 256, μ: 13002, ~: 13002)
Suite result: ok. 9 passed; 0 failed; 0 skipped; finished in 111.35s (141.35s CPU time)

Ran 3 tests for tests/access_control/GranularGuardianDeployTest.t.sol:LineaGGTest
[PASS] test_initialization() (gas: 214538)
[PASS] test_updateGuardian(address) (runs: 256, μ: 207693, ~: 207693)
[PASS] test_updateGuardianWhenWrongCaller(address,address) (runs: 256, μ: 12968, ~: 12968)
Suite result: ok. 3 passed; 0 failed; 0 skipped; finished in 18.98s (18.70s CPU time)

Ran 9 tests for tests/access_control/GranularGuardianDeployTest.t.sol:PolygonGGTest
[PASS] test_initialization() (gas: 214912)
[PASS] test_retryEnvelope(address,uint256) (runs: 256, μ: 1930244, ~: 1932658)
[PASS] test_retryEnvelopeWhenWrongCaller(uint256,address) (runs: 256, μ: 14386, ~: 14386)
[PASS] test_retryTx(address,uint256) (runs: 256, μ: 1545488, ~: 1548790)
[PASS] test_retryTxWhenWrongCaller(uint256,address) (runs: 256, μ: 14549, ~: 14549)
[PASS] test_solveEmergencyDeprecated() (gas: 425097)
[PASS] test_solveEmergencyWhenWrongCallerDeprecated(address) (runs: 256, μ: 18136, ~: 18136)
[PASS] test_updateGuardian(address) (runs: 256, μ: 210897, ~: 210897)
[PASS] test_updateGuardianWhenWrongCaller(address,address) (runs: 256, μ: 13002, ~: 13002)
Suite result: ok. 9 passed; 0 failed; 0 skipped; finished in 81.43s (126.78s CPU time)

Ran 5 tests for tests/access_control/GranularGuardianDeployTest.t.sol:GnosisGGTest
[PASS] test_initialization() (gas: 214378)
[PASS] test_solveEmergencyDeprecated() (gas: 424035)
[PASS] test_solveEmergencyDeprecatedWhenWrongCaller(address) (runs: 256, μ: 18137, ~: 18137)
[PASS] test_updateGuardian(address) (runs: 256, μ: 210321, ~: 210321)
[PASS] test_updateGuardianWhenWrongCaller(address,address) (runs: 256, μ: 12980, ~: 12980)
Suite result: ok. 5 passed; 0 failed; 0 skipped; finished in 50.94s (50.61s CPU time)

Ran 14 test suites in 171.93s (563.49s CPU time): 58 tests passed, 0 failed, 0 skipped (58 total tests)

Copy link

♻️ Forge Gas Snapshots

Seems like you are not measuring gas of any operations yet. 🤔
Consider adding some snapshot tests to measure regressions & improvements.

Copy link

Forge Build Sizes

Contract Runtime Size (B) Initcode Size (B) Runtime Margin (B) Initcode Margin (B)
Ethereum_Celo_Path_Payload ↑13% (+301) 2,601 ↑11% (+302) 3,141 ↓1% (-301) 21,975 ↓1% (-302) 46,011
Ethereum_Sonic_Path_Payload ↑9% (+236) 2,897 ↑7% (+239) 3,454 ↓1% (-236) 21,679 ↓1% (-239) 45,698
SimpleAddForwarderAdapter ↑17% (+301) 2,028 ↑15% (+301) 2,363 ↓1% (-301) 22,548 ↓1% (-301) 46,789
UpdateCCCPermissionsSonic 379 408 24,197 48,744
UpdateCCCPermissionsMantle 379 408 24,197 48,744
🔕 Unchanged
Contract Runtime Size (B) Initcode Size (B) Runtime Margin (B) Initcode Margin (B)
Address 44 94 24,532 49,058
AddressAliasHelper 44 94 24,532 49,058
ArbAdapter 2,895 4,396 21,681 44,756
ArbAdapterDeploymentHelper 44 94 24,532 49,058
ArbitrumAdapterTestnet 2,901 4,413 21,675 44,739
Arbitrum_Add_Shuffle_to_CCC_Payload 846 1,137 23,730 48,015
Avalanche_Add_Shuffle_to_CCC_Payload 918 1,209 23,658 47,943
BaseCrossChainController 15,866 20,587 8,710 28,565
Base_Add_Shuffle_to_CCC_Payload 846 1,137 23,730 48,015
Binance_Add_Shuffle_to_CCC_Payload 846 1,137 23,730 48,015
BytesLib 44 94 24,532 49,058
CBAdapterDeploymentHelper 44 94 24,532 49,058
CBaseAdapter 2,416 3,886 22,160 45,266
CBaseAdapterTestnet 2,422 3,900 22,154 45,252
CCCImplDeploymentHelper 44 94 24,532 49,058
CCCUpdateDeploymentHelper 44 94 24,532 49,058
CCIPAdapter 4,313 5,964 20,263 43,188
CCIPAdapterDeploymentHelper 44 94 24,532 49,058
CCIPAdapterTestnet 4,225 5,886 20,351 43,266
ChainHelpers 44 94 24,532 49,058
ChainIds 44 94 24,532 49,058
Client 109 160 24,467 48,992
Create2Utils 121 172 24,455 48,980
Create2UtilsZkSync 104 155 24,472 48,997
CrossChainController 16,952 21,673 7,624 27,479
CrossChainControllerUpgradeRev3 17,147 21,868 7,429 27,284
CrossChainControllerWithEmergencyMode 18,135 23,102 6,441 26,050
CrossChainControllerWithEmergencyModeUpgradeRev3 18,330 23,301 6,246 25,851
CrossChainForwarder 9,709 13,350 14,867 35,802
CrossChainReceiver 7,374 9,986 17,202 39,166
DeployerHelpers 44 94 24,532 49,058
ERC1967Proxy 122 967 24,454 48,185
ERC1967Utils 44 94 24,532 49,058
EmergencyRegistry 1,202 1,362 23,374 47,790
EmergencyRegistryDeploymentHelper 44 94 24,532 49,058
EnumerableSet 44 94 24,532 49,058
EnvelopeUtils 44 94 24,532 49,058
Errors 4,653 4,706 19,923 44,446
Ethereum_Add_Shuffle_to_CCC_Payload 1,133 1,424 23,443 47,728
ExecutorOptions 44 94 24,532 49,058
GnosisAdapterDeploymentHelper 44 94 24,532 49,058
GnosisChainAdapter 2,505 4,038 22,071 45,114
Gnosis_Add_Shuffle_to_CCC_Payload 846 1,137 23,730 48,015
GovV3Helpers 2,468 2,521 22,108 46,631
GovV3StorageHelpers 44 94 24,532 49,058
GovernanceV3Arbitrum 44 94 24,532 49,058
GovernanceV3Avalanche 44 94 24,532 49,058
GovernanceV3BNB 44 94 24,532 49,058
GovernanceV3Base 44 94 24,532 49,058
GovernanceV3Binance 44 94 24,532 49,058
GovernanceV3Ethereum 44 94 24,532 49,058
GovernanceV3Gnosis 44 94 24,532 49,058
GovernanceV3Linea 44 94 24,532 49,058
GovernanceV3Metis 44 94 24,532 49,058
GovernanceV3Optimism 44 94 24,532 49,058
GovernanceV3Polygon 44 94 24,532 49,058
GovernanceV3PolygonZkEvm 44 94 24,532 49,058
GovernanceV3Scroll 44 94 24,532 49,058
GovernanceV3ZkSync 44 94 24,532 49,058
GranularGuardianAccessControl 6,507 7,392 18,069 41,760
GranularGuardianDeploymentHelper 44 94 24,532 49,058
HLAdapterDeploymentHelper 44 94 24,532 49,058
HyperLaneAdapter 2,694 4,208 21,882 44,944
IpfsUtils 44 94 24,532 49,058
LZAdapterDeploymentHelper 44 94 24,532 49,058
LayerZeroAdapter 4,542 6,056 20,034 43,096
LayerZeroAdapterTestnet 4,486 6,009 20,090 43,143
LineaAdapter 2,376 4,009 22,200 45,143
LineaAdapterDeploymentHelper 44 94 24,532 49,058
LineaAdapterTestnet 2,380 4,015 22,196 45,137
MantleAdapter 2,416 3,982 22,160 45,170
MantleAdapterDeploymentHelper 44 94 24,532 49,058
MantleAdapterTestnet 2,420 3,988 22,156 45,164
MetisAdapter 2,425 3,895 22,151 45,257
MetisAdapterDeploymentHelper 44 94 24,532 49,058
MetisAdapterTestnet 2,429 3,907 22,147 45,245
Metis_Add_Shuffle_to_CCC_Payload 846 1,137 23,730 48,015
MiscArbitrum 44 94 24,532 49,058
MiscAvalanche 44 94 24,532 49,058
MiscBNB 44 94 24,532 49,058
MiscBase 44 94 24,532 49,058
MiscEthereum 44 94 24,532 49,058
MiscGnosis 44 94 24,532 49,058
MiscMetis 44 94 24,532 49,058
MiscOptimism 44 94 24,532 49,058
MiscPolygon 44 94 24,532 49,058
MiscPolygonZkEvm 44 94 24,532 49,058
MiscScroll 44 94 24,532 49,058
MockDestination 667 894 23,909 48,258
OpAdapter 2,414 3,982 22,162 45,170
OpAdapterDeploymentHelper 44 94 24,532 49,058
OptimismAdapterTestnet 2,422 3,892 22,154 45,260
Optimism_Add_Shuffle_to_CCC_Payload 846 1,137 23,730 48,015
OptionsBuilder 44 94 24,532 49,058
PayloadsControllerUtils 44 94 24,532 49,058
PolygonAdapterDeploymentHelper 44 94 24,532 49,058
PolygonAdapterEthereum 2,023 3,477 22,553 45,675
PolygonAdapterPolygon 2,023 3,477 22,553 45,675
Polygon_Add_Shuffle_to_CCC_Payload 918 1,209 23,658 47,943
ProxyAdmin 990 1,235 23,586 47,917
ProxyHelpers 44 94 24,532 49,058
SafeCast 44 94 24,532 49,058
SafeERC20 44 94 24,532 49,058
SameChainAdapter 1,635 1,664 22,941 47,488
SameChainAdapterDeploymentHelper 44 94 24,532 49,058
ScrollAdapter 2,580 4,229 21,996 44,923
ScrollAdapterDeploymentHelper 44 94 24,532 49,058
ScrollAdapterTestnet 2,584 4,241 21,992 44,911
Scroll_Add_Shuffle_to_CCC_Payload 846 1,137 23,730 48,015
StandardHookMetadata 97 148 24,479 49,004
StorageHelpers 44 94 24,532 49,058
StorageSlot 44 94 24,532 49,058
TestNetChainIds 44 94 24,532 49,058
TestUtils 44 94 24,532 49,058
TransactionUtils 44 94 24,532 49,058
TransparentProxyFactory 6,830 6,859 17,746 42,293
TransparentUpgradeableProxy 1,088 3,582 23,488 45,570
TypeCasts 44 94 24,532 49,058
UpdateCCCImpl 578 804 23,998 48,348
Utils 44 94 24,532 49,058
WormholeAdapter 3,378 4,934 21,198 44,218
WormholeAdapterDeploymentHelper 44 94 24,532 49,058
WormholeAdapterTestnet 3,156 4,723 21,420 44,429
ZKEVMAdapterDeploymentHelper 44 94 24,532 49,058
ZkEVMAdapterEthereum 2,333 3,787 22,243 45,365
ZkEVMAdapterPolygonZkEVM 2,331 3,785 22,245 45,367
ZkSyncAdapter 2,912 4,474 21,664 44,678
ZkSyncAdapterDeploymentHelper 44 94 24,532 49,058
ZkSyncAdapterTestnet 2,916 4,489 21,660 44,663

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants