feat: Set swap executors and verifiers

- Moved the deployment method into a test template for organization
- Created skeletons of dispatcher contracts
- Added all possible test cases for thoroughness
This commit is contained in:
TAMARA LIPOWSKI
2025-01-22 12:21:13 -05:00
parent 68d29f1970
commit 4cb3286c94
6 changed files with 262 additions and 10 deletions

View File

@@ -0,0 +1,17 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.28;
/**
* @title SwapExecutionDispatcher - Dispatch swap execution to external contracts
* @author PropellerHeads Devs
* @dev Provides the ability to delegate execution of swaps to external
* contracts. This allows dynamically adding new supported protocols
* without needing to upgrade any contracts. External contracts will
* be called using delegatecall so they can share state with the main
* contract if needed.
*
* Note Executor contracts need to implement the ISwapExecutor interface
*/
contract SwapExecutionDispatcher {
mapping(address => bool) public swapExecutors;
}