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: forwarder contract for metis #86

Merged
merged 16 commits into from
Apr 26, 2023
Merged

feat: forwarder contract for metis #86

merged 16 commits into from
Apr 26, 2023

Conversation

brotherlymite
Copy link
Contributor

@brotherlymite brotherlymite commented Apr 19, 2023

TODO:

  • Add tests for the forwarder
  • Change address-book branch of the libs to main before merging this PR.

@github-actions
Copy link
Contributor

github-actions bot commented Apr 19, 2023

Foundry report

forge 0.2.0 (dedc31e 2023-04-26T00:03:19.783336431Z)
Build log
installing solc version "0.8.19"
Successfully installed solc 0.8.19
Compiling 139 files with 0.8.19
Solc 0.8.19 finished in 41.21s
Compiler run successful (with warnings)
�[33mwarning[9302]: �[0m�[33mWarning: Return value of low-level calls not used.
   --> src/test/crosschainforwarders/ArbitrumCrossChainForwarderTest.t.sol:140:5:
    |
140 |     ARBITRUM_BRIDGE_EXECUTOR.call(payload);
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

�[0m

| Contract                           | Size (kB) | Margin (kB) |
|------------------------------------|-----------|-------------|
| AaveGovernanceV2                   | 0.272     | 24.304      |
| AaveMisc                           | 0.086     | 24.49       |
| AaveV2Avalanche                    | 0.086     | 24.49       |
| AaveV2AvalancheAssets              | 0.086     | 24.49       |
| AaveV2Ethereum                     | 0.086     | 24.49       |
| AaveV2EthereumAMM                  | 0.086     | 24.49       |
| AaveV2EthereumAMMAssets            | 0.086     | 24.49       |
| AaveV2EthereumArc                  | 0.086     | 24.49       |
| AaveV2EthereumAssets               | 0.086     | 24.49       |
| AaveV2Fuji                         | 0.086     | 24.49       |
| AaveV2FujiAssets                   | 0.086     | 24.49       |
| AaveV2Goerli                       | 0.086     | 24.49       |
| AaveV2GoerliAssets                 | 0.086     | 24.49       |
| AaveV2Mumbai                       | 0.086     | 24.49       |
| AaveV2MumbaiAssets                 | 0.086     | 24.49       |
| AaveV2Polygon                      | 0.086     | 24.49       |
| AaveV2PolygonAssets                | 0.086     | 24.49       |
| AaveV3Arbitrum                     | 0.086     | 24.49       |
| AaveV3ArbitrumAssets               | 0.086     | 24.49       |
| AaveV3ArbitrumGoerli               | 0.086     | 24.49       |
| AaveV3ArbitrumGoerliAssets         | 0.086     | 24.49       |
| AaveV3ArbitrumRatesUpdates070322   | 4.554     | 20.022      |
| AaveV3Avalanche                    | 0.086     | 24.49       |
| AaveV3AvalancheAssets              | 0.086     | 24.49       |
| AaveV3AvalancheCollateralUpdate    | 3.011     | 21.565      |
| AaveV3AvalancheRatesUpdates070322  | 5.119     | 19.457      |
| AaveV3ConfigEngine                 | 20.905    | 3.671       |
| AaveV3Ethereum                     | 0.086     | 24.49       |
| AaveV3EthereumAssets               | 0.086     | 24.49       |
| AaveV3EthereumMockCapUpdate        | 2.92      | 21.656      |
| AaveV3EthereumMockCustomListing    | 3.919     | 20.657      |
| AaveV3Fantom                       | 0.086     | 24.49       |
| AaveV3FantomAssets                 | 0.086     | 24.49       |
| AaveV3FantomTestnet                | 0.086     | 24.49       |
| AaveV3FantomTestnetAssets          | 0.086     | 24.49       |
| AaveV3Fuji                         | 0.086     | 24.49       |
| AaveV3FujiAssets                   | 0.086     | 24.49       |
| AaveV3Goerli                       | 0.086     | 24.49       |
| AaveV3GoerliAssets                 | 0.086     | 24.49       |
| AaveV3GoerliGho                    | 0.086     | 24.49       |
| AaveV3GoerliGhoAssets              | 0.086     | 24.49       |
| AaveV3Harmony                      | 0.086     | 24.49       |
| AaveV3HarmonyAssets                | 0.086     | 24.49       |
| AaveV3Metis                        | 0.086     | 24.49       |
| AaveV3MetisAssets                  | 0.086     | 24.49       |
| AaveV3Mumbai                       | 0.086     | 24.49       |
| AaveV3MumbaiAssets                 | 0.086     | 24.49       |
| AaveV3Optimism                     | 0.086     | 24.49       |
| AaveV3OptimismAssets               | 0.086     | 24.49       |
| AaveV3OptimismGoerli               | 0.086     | 24.49       |
| AaveV3OptimismGoerliAssets         | 0.086     | 24.49       |
| AaveV3OptimismMockRatesUpdate      | 3.254     | 21.322      |
| AaveV3OptimismRatesUpdates070322   | 4.133     | 20.443      |
| AaveV3Polygon                      | 0.086     | 24.49       |
| AaveV3PolygonAssets                | 0.086     | 24.49       |
| AaveV3PolygonBorrowUpdate          | 3.005     | 21.571      |
| AaveV3PolygonMockListing           | 3.731     | 20.845      |
| AaveV3PolygonPriceFeedUpdate       | 2.856     | 21.72       |
| AaveV3PolygonRatesUpdates070322    | 5.858     | 18.718      |
| AaveV3ScrollAlpha                  | 0.086     | 24.49       |
| AaveV3ScrollAlphaAssets            | 0.086     | 24.49       |
| AaveV3Sepolia                      | 0.086     | 24.49       |
| AaveV3SepoliaAssets                | 0.086     | 24.49       |
| Address                            | 0.086     | 24.49       |
| AddressAliasHelper                 | 0.086     | 24.49       |
| BridgeExecutorHelpers              | 0.086     | 24.49       |
| ConfiguratorInputTypes             | 0.086     | 24.49       |
| CrosschainForwarderArbitrum        | 2.246     | 22.33       |
| CrosschainForwarderMetis           | 1.561     | 23.015      |
| CrosschainForwarderOptimism        | 1.689     | 22.887      |
| CrosschainForwarderPolygon         | 1.435     | 23.141      |
| DataTypes                          | 0.086     | 24.49       |
| DefaultReserveInterestRateStrategy | 2.923     | 21.653      |
| DeployEngineArbLib                 | 0.086     | 24.49       |
| DeployEngineAvaLib                 | 0.086     | 24.49       |
| DeployEngineEthLib                 | 0.086     | 24.49       |
| DeployEngineMetLib                 | 0.086     | 24.49       |
| DeployEngineOptLib                 | 0.086     | 24.49       |
| DeployEnginePolLib                 | 0.086     | 24.49       |
| DeployRatesFactoryArbLib           | 0.086     | 24.49       |
| DeployRatesFactoryAvaLib           | 0.086     | 24.49       |
| DeployRatesFactoryEthLib           | 0.086     | 24.49       |
| DeployRatesFactoryLib              | 0.086     | 24.49       |
| DeployRatesFactoryMetLib           | 0.086     | 24.49       |
| DeployRatesFactoryOptLib           | 0.086     | 24.49       |
| DeployRatesFactoryPolLib           | 0.086     | 24.49       |
| EngineFlags                        | 0.086     | 24.49       |
| Errors                             | 4.392     | 20.184      |
| FxChild                            | 1.039     | 23.537      |
| FxRoot                             | 0.811     | 23.765      |
| GovHelpers                         | 0.086     | 24.49       |
| MockExecutor                       | 5.755     | 18.821      |
| PayloadWithEmit                    | 0.15      | 24.426      |
| PercentageMath                     | 0.086     | 24.49       |
| ProxyHelpers                       | 0.086     | 24.49       |
| ReserveConfiguration               | 0.171     | 24.405      |
| StdInvariant                       | 2.038     | 22.538      |
| StdStyle                           | 0.086     | 24.49       |
| V3RateStrategyFactory              | 9.279     | 15.297      |
| WadRayMath                         | 0.086     | 24.49       |
| console                            | 0.086     | 24.49       |
| console2                           | 0.086     | 24.49       |
| stdError                           | 0.591     | 23.985      |
| stdJson                            | 0.086     | 24.49       |
| stdMath                            | 0.086     | 24.49       |
| stdStorage                         | 0.086     | 24.49       |
| stdStorageSafe                     | 0.086     | 24.49       |
Test error :finnadie:
No files changed, compilation skipped
�[2m2023-04-26T09:26:42.155926Z�[0m �[31mERROR�[0m �[2msharedbackend�[0m�[2m:�[0m Failed to send/recv `basic` �[3merr�[0m�[2m=�[0mGetAccount(0x5615deb798bb3e4dfa0139dfa1b3d433cc23b72f, 
�[31m(code: -32000, message: missing trie node 66fcb55f3a5c57bf06eb2f631f7a91d309e4b3d8c1f3bc2b403cecf14700e12e (path ) <nil>, data: None)�[0m) �[3maddress�[0m�[2m=�[0m0x5615deb798bb3e4dfa0139dfa1b3d433cc23b72f
�[2m2023-04-26T09:26:42.201034Z�[0m �[31mERROR�[0m �[2msharedbackend�[0m�[2m:�[0m Failed to send/recv `basic` �[3merr�[0m�[2m=�[0mGetAccount(0x5615deb798bb3e4dfa0139dfa1b3d433cc23b72f, 
�[31m(code: -32000, message: missing trie node 66fcb55f3a5c57bf06eb2f631f7a91d309e4b3d8c1f3bc2b403cecf14700e12e (path ) <nil>, data: None)�[0m) �[3maddress�[0m�[2m=�[0m0x5615deb798bb3e4dfa0139dfa1b3d433cc23b72f
�[2m2023-04-26T09:26:42.249609Z�[0m �[31mERROR�[0m �[2msharedbackend�[0m�[2m:�[0m Failed to send/recv `basic` �[3merr�[0m�[2m=�[0mGetAccount(0xa4b000000000000000000073657175656e636572, 
�[31m(code: -32000, message: missing trie node 66fcb55f3a5c57bf06eb2f631f7a91d309e4b3d8c1f3bc2b403cecf14700e12e (path ) <nil>, data: None)�[0m) �[3maddress�[0m�[2m=�[0m0xa4b000000000000000000073657175656e636572

@sakulstra sakulstra marked this pull request as ready for review April 26, 2023 08:57
@sakulstra sakulstra merged commit 8b407ff into master Apr 26, 2023
@sakulstra sakulstra deleted the feat/metis-forwarder branch April 26, 2023 09:30
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.

2 participants