generated from bgd-labs/bgd-forge-template
-
Notifications
You must be signed in to change notification settings - Fork 1
feat: Add Soneium #51
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Forge Build Sizes
🔕 Unchanged
|
♻️ Forge Gas SnapshotsSeems like you are not measuring gas of any operations yet. 🤔 |
🌈 Test ResultsNo files changed, compilation skipped
Ran 3 tests for tests/access_control/GranularGuardianDeployTest.t.sol:CBaseGGTest
[PASS] test_initialization() (gas: 234709)
[PASS] test_updateGuardian(address) (runs: 256, μ: 230519, ~: 230519)
[PASS] test_updateGuardianWhenWrongCaller(address,address) (runs: 256, μ: 12968, ~: 12968)
Suite result: ok. 3 passed; 0 failed; 0 skipped; finished in 17.30s (17.14s CPU time)
2025-04-30T16:43:54.557024Z 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/[email protected]\nnpm warn deprecated [email protected]: 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 [email protected]: This module has been superseded by the multiformats module\nnpm warn deprecated [email protected]: This module has been superseded by the multiformats module\nnpm warn deprecated [email protected]: This module has been superseded by the multiformats module\nnpm warn deprecated [email protected]: This module has been superseded by the multiformats module\nnpm warn deprecated [email protected]: 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:175:21)\n at async ModuleJob.run (node:internal/modules/esm/module_job:258:5)\n at async ModuleLoader.import (node:internal/modules/esm/loader:540:24)\n at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:117:5)\n\nNode.js v20.19.1\n"
Ran 1 test for tests/payloads/ethereum/AddCeloPathTest.t.sol:EthereumAddCeloPathPayloadTest
[PASS] test_defaultTest() (gas: 1802330)
Suite result: ok. 1 passed; 0 failed; 0 skipped; finished in 21.39s (21.24s CPU time)
2025-04-30T16:43:54.560802Z 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="npm warn exec The following package was not found and will be installed: @bgd-labs/[email protected]\nnpm warn deprecated [email protected]: 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 [email protected]: This module has been superseded by the multiformats module\nnpm warn deprecated [email protected]: This module has been superseded by the multiformats module\nnpm warn deprecated [email protected]: This module has been superseded by the multiformats module\nnpm warn deprecated [email protected]: This module has been superseded by the multiformats module\nnpm warn deprecated [email protected]: 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:175:21)\n at async ModuleJob.run (node:internal/modules/esm/module_job:258:5)\n at async ModuleLoader.import (node:internal/modules/esm/loader:540:24)\n at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:117:5)\n\nNode.js v20.19.1\n"
Ran 2 tests for tests/payloads/ethereum/AddSonicPathTest.t.sol:EthereumAddSonicPathPayloadTest
[PASS] test_defaultTest() (gas: 1906580)
[PASS] test_samePayloadAddress() (gas: 245790)
Suite result: ok. 2 passed; 0 failed; 0 skipped; finished in 21.40s (21.22s CPU time)
2025-04-30T16:43:56.289725Z ERROR cheatcodes: non-empty stderr input=["npx", "@bgd-labs/aave-cli@^0.16.2", "adi-diff-snapshots", "./reports/adi_add_ink_path_to_adiethereum_before.json", "./reports/adi_add_ink_path_to_adiethereum_after.json", "-o", "./diffs/adi_add_ink_path_to_adiethereum_before_adi_add_ink_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:175:21)\n at async ModuleJob.run (node:internal/modules/esm/module_job:258:5)\n at async ModuleLoader.import (node:internal/modules/esm/loader:540:24)\n at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:117:5)\n\nNode.js v20.19.1\n"
Ran 2 tests for tests/payloads/ethereum/AddInkPathTest.t.sol:EthereumAddInkPathPayloadTest
[PASS] test_defaultTest() (gas: 1823065)
[PASS] test_samePayloadAddress(address,address,address,uint256) (runs: 256, μ: 430358, ~: 430358)
Suite result: ok. 2 passed; 0 failed; 0 skipped; finished in 2.40s (2.26s CPU time)
2025-04-30T16:43:58.758117Z 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:175:21)\n at async ModuleJob.run (node:internal/modules/esm/module_job:258:5)\n at async ModuleLoader.import (node:internal/modules/esm/loader:540:24)\n at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:117:5)\n\nNode.js v20.19.1\n"
Ran 2 tests for tests/payloads/ethereum/AddMantlePathTest.t.sol:EthereumAddMantlePathPayloadTest
[PASS] test_defaultTest() (gas: 1743733)
[PASS] test_samePayloadAddress(address,address,address,uint256) (runs: 256, μ: 432851, ~: 432851)
Suite result: ok. 2 passed; 0 failed; 0 skipped; finished in 2.50s (2.36s CPU time)
Ran 3 tests for tests/access_control/GranularGuardianDeployTest.t.sol:MetisGGTest
[PASS] test_initialization() (gas: 234663)
[PASS] test_updateGuardian(address) (runs: 256, μ: 230515, ~: 230515)
[PASS] test_updateGuardianWhenWrongCaller(address,address) (runs: 256, μ: 12968, ~: 12968)
Suite result: ok. 3 passed; 0 failed; 0 skipped; finished in 56.62s (56.22s CPU time)
Ran 3 tests for tests/access_control/GranularGuardianDeployTest.t.sol:ArbitrumGGTest
[PASS] test_initialization() (gas: 234622)
[PASS] test_updateGuardian(address) (runs: 256, μ: 230474, ~: 230474)
[PASS] test_updateGuardianWhenWrongCaller(address,address) (runs: 256, μ: 12968, ~: 12968)
Suite result: ok. 3 passed; 0 failed; 0 skipped; finished in 40.20s (39.98s CPU time)
Ran 3 tests for tests/access_control/GranularGuardianDeployTest.t.sol:OptimismGGTest
[PASS] test_initialization() (gas: 234645)
[PASS] test_updateGuardian(address) (runs: 256, μ: 230497, ~: 230497)
[PASS] test_updateGuardianWhenWrongCaller(address,address) (runs: 256, μ: 12968, ~: 12968)
Suite result: ok. 3 passed; 0 failed; 0 skipped; finished in 43.31s (42.93s CPU time)
Ran 5 tests for tests/access_control/GranularGuardianDeployTest.t.sol:BinanceGGTest
[PASS] test_initialization() (gas: 234623)
[PASS] test_solveEmergencyDeprecated() (gas: 464529)
[PASS] test_solveEmergencyDeprecatedWhenWrongCaller(address) (runs: 256, μ: 18137, ~: 18137)
[PASS] test_updateGuardian(address) (runs: 256, μ: 230565, ~: 230565)
[PASS] test_updateGuardianWhenWrongCaller(address,address) (runs: 256, μ: 12980, ~: 12980)
Suite result: ok. 5 passed; 0 failed; 0 skipped; finished in 44.66s (44.49s CPU time)
Ran 7 tests for tests/access_control/GranularGuardianDeployTest.t.sol:EthereumGGTest
[PASS] test_initialization() (gas: 235212)
[PASS] test_retryEnvelope(address,uint256) (runs: 256, μ: 2044123, ~: 2048966)
[PASS] test_retryEnvelopeWhenWrongCaller(uint256,address) (runs: 256, μ: 14396, ~: 14396)
[PASS] test_retryTx(address,uint256) (runs: 256, μ: 1661998, ~: 1664203)
[PASS] test_retryTxWhenWrongCaller(uint256,address) (runs: 256, μ: 14514, ~: 14514)
[PASS] test_updateGuardian(address) (runs: 256, μ: 231175, ~: 231175)
[PASS] test_updateGuardianWhenWrongCaller(address,address) (runs: 256, μ: 12990, ~: 12990)
Suite result: ok. 7 passed; 0 failed; 0 skipped; finished in 151.19s (151.06s CPU time)
Ran 9 tests for tests/access_control/GranularGuardianDeployTest.t.sol:PolygonGGTest
[PASS] test_initialization() (gas: 235267)
[PASS] test_retryEnvelope(address,uint256) (runs: 256, μ: 2007475, ~: 2014115)
[PASS] test_retryEnvelopeWhenWrongCaller(uint256,address) (runs: 256, μ: 14386, ~: 14386)
[PASS] test_retryTx(address,uint256) (runs: 256, μ: 1626943, ~: 1630245)
[PASS] test_retryTxWhenWrongCaller(uint256,address) (runs: 256, μ: 14549, ~: 14549)
[PASS] test_solveEmergencyDeprecated() (gas: 465811)
[PASS] test_solveEmergencyWhenWrongCallerDeprecated(address) (runs: 256, μ: 18136, ~: 18136)
[PASS] test_updateGuardian(address) (runs: 256, μ: 231251, ~: 231251)
[PASS] test_updateGuardianWhenWrongCaller(address,address) (runs: 256, μ: 13002, ~: 13002)
Suite result: ok. 9 passed; 0 failed; 0 skipped; finished in 178.48s (178.34s CPU time)
Ran 5 tests for tests/access_control/GranularGuardianDeployTest.t.sol:GnosisGGTest
[PASS] test_initialization() (gas: 234687)
[PASS] test_solveEmergencyDeprecated() (gas: 464657)
[PASS] test_solveEmergencyDeprecatedWhenWrongCaller(address) (runs: 256, μ: 18137, ~: 18137)
[PASS] test_updateGuardian(address) (runs: 256, μ: 230629, ~: 230629)
[PASS] test_updateGuardianWhenWrongCaller(address,address) (runs: 256, μ: 12980, ~: 12980)
Suite result: ok. 5 passed; 0 failed; 0 skipped; finished in 61.18s (60.98s CPU time)
Ran 3 tests for tests/access_control/GranularGuardianDeployTest.t.sol:ScrollGGTest
[PASS] test_initialization() (gas: 234778)
[PASS] test_updateGuardian(address) (runs: 256, μ: 230588, ~: 230588)
[PASS] test_updateGuardianWhenWrongCaller(address,address) (runs: 256, μ: 12968, ~: 12968)
Suite result: ok. 3 passed; 0 failed; 0 skipped; finished in 31.42s (31.22s CPU time)
Ran 9 tests for tests/access_control/GranularGuardianDeployTest.t.sol:AvalancheGGTest
[PASS] test_initialization() (gas: 235290)
[PASS] test_retryEnvelope(address,uint256) (runs: 256, μ: 1997161, ~: 2000512)
[PASS] test_retryEnvelopeWhenWrongCaller(uint256,address) (runs: 256, μ: 14386, ~: 14386)
[PASS] test_retryTx(address,uint256) (runs: 256, μ: 1683249, ~: 1688802)
[PASS] test_retryTxWhenWrongCaller(uint256,address) (runs: 256, μ: 14549, ~: 14549)
[PASS] test_solveEmergencyDeprecated() (gas: 465857)
[PASS] test_solveEmergencyWhenWrongCallerDeprecated(address) (runs: 256, μ: 18136, ~: 18136)
[PASS] test_updateGuardian(address) (runs: 256, μ: 231274, ~: 231274)
[PASS] test_updateGuardianWhenWrongCaller(address,address) (runs: 256, μ: 13002, ~: 13002)
Suite result: ok. 9 passed; 0 failed; 0 skipped; finished in 195.57s (295.67s CPU time)
Ran 3 tests for tests/access_control/GranularGuardianDeployTest.t.sol:LineaGGTest
[PASS] test_initialization() (gas: 234847)
[PASS] test_updateGuardian(address) (runs: 256, μ: 228001, ~: 228001)
[PASS] test_updateGuardianWhenWrongCaller(address,address) (runs: 256, μ: 12968, ~: 12968)
Suite result: ok. 3 passed; 0 failed; 0 skipped; finished in 36.42s (36.20s CPU time)
Ran 15 test suites in 266.11s (904.04s CPU time): 60 tests passed, 0 failed, 0 skipped (60 total tests) |
kyzia551
approved these changes
May 2, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In this pr, we have the deployed contracts for the Soneium Network. Including the Bridge Adapters for the Path Eth -> Soneium.
Addresses that enable the path can be found here: https://docs.soneium.org/docs/builders/contracts (more explicitly it uses L1CrossDomainMessenger on ethereum to be able to send messages to Soneium network)
Test of successful crosschain message: https://soneium.blockscout.com/tx/0xfbe2128d1f8c3bb7494ccb4ebddb2923b5c99519157a313e9d1caf09ceeda12b?tab=logs