Feat/bridge adapters - #1
Merged
Merged
Conversation
- Implemented `CcipForkTest` for YoCcipAdapter to test CCIP transfers with USDC and LINK. - Added `CctpForkTest` for YoCctpAdapter to validate CCTP deposit and burn functionality. - Created `MayanForkTest` for YoMayanAdapter to ensure proper forwarding of USDC through Mayan protocols. - Developed fuzz tests for AcrossAdapter deposit functionality to ensure robust handling of various inputs. - Added fuzz tests for BridgeRouteRegistry to validate route setting and isolation. - Implemented fuzz tests for CCIP adapter send functionality to cover various fee scenarios. - Created fuzz tests for CCTP adapter depositForBurn to ensure correct behavior under different conditions. - Added fuzz tests for Mayan adapter to validate ERC20 forwarding and route restrictions. - Introduced mock contracts for AcrossSpokePool, CCIP Router, Mayan Forwarder, TokenMessengerV2 to facilitate testing. - Updated Defaults contract with constants for bridge amounts, destination IDs, and fee structures.
…rer restrictions - Updated order validation to ensure no referrer is allowed and custom payloads are prohibited. - Added error handling for referrer and custom payload violations in IYoMayanAdapter. - Modified _decodeOrder function to enforce empty custom payload requirement. - Enhanced comments and documentation for clarity on order processing rules. feat: Introduce renounceOwnership restriction in YoBridgeRouteRegistry - Implemented a revert mechanism for renounceOwnership to prevent freezing of routes. feat: Add CCIP adapter error handling for non-EVM recipients and native value with token fee - Introduced new errors in IYoCcipAdapter for invalid recipient addresses and unexpected native value. test: Add integration tests for CCIP native fee handling and Mayan adapter order validation - Created tests for native fee handling in CCIP adapter via YoVault.manage. - Added fuzz tests for Mayan adapter to validate referrer and custom payload restrictions. - Implemented end-to-end tests for Aave V4 Tokenization Spoke integration. fix: Update MockAcrossSpokePool to capture last calldata for verification - Added lastCalldata storage in MockAcrossSpokePool to facilitate testing of calldata integrity.
- Updated IYoBridgeRouteRegistry to include outputToken as a key field for routes. - Modified YoBridgeRouteRegistry to handle outputToken in setRoute and isRouteAllowed functions. - Adjusted tests to accommodate changes in route handling, including fuzz tests for route validation. - Enhanced integration tests for Across, CCTP, and Mayan adapters to utilize outputToken. - Added checks for slippage and swap pair validation in Mayan adapter tests. - Updated comments and documentation to reflect the new outputToken functionality.
…er handling - Added test case for reverting with MinAmountOutTooLow in SwapAndForwardERC20. - Updated CcipForkTest to remove LINK references and adjust fee handling. - Refactored CctpForkTest to include MAX_FEE_BPS and simplify depositForBurn calls. - Improved MayanForkTest by integrating MayanOrders for order creation and validation. - Enhanced fuzz tests for CCIP and CCTP adapters to cover fee scenarios and revert conditions. - Introduced MayanOrders utility for consistent order parameter creation across tests. - Updated Defaults to include new constants for max slippage and fee caps.
…pes for recipient and outputToken
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
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.
No description provided.