-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor CrossChain into core-modules (#1756)
* refactor CrossChain into core-modules * fix tests * fix comment * fix ccip tests
- Loading branch information
Showing
22 changed files
with
257 additions
and
240 deletions.
There are no files selected for viewing
This file contains 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
12 changes: 12 additions & 0 deletions
12
protocol/governance/contracts/modules/core/CrossChainModule.sol
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
//SPDX-License-Identifier: MIT | ||
pragma solidity >=0.8.11 <0.9.0; | ||
|
||
import {CrossChainModule as BaseCrossChainModule} from "@synthetixio/core-modules/contracts/modules/CrossChainModule.sol"; | ||
|
||
/** | ||
* @title Module that handles anything related to cross-chain. | ||
*/ | ||
// solhint-disable-next-line no-empty-blocks | ||
contract CrossChainModule is BaseCrossChainModule { | ||
|
||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
20 changes: 5 additions & 15 deletions
20
protocol/synthetix/contracts/modules/core/CcipReceiverModule.sol
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,12 @@ | ||
//SPDX-License-Identifier: MIT | ||
pragma solidity >=0.8.11 <0.9.0; | ||
|
||
import "@synthetixio/core-modules/contracts/interfaces/IAssociatedSystemsModule.sol"; | ||
import "@synthetixio/core-modules/contracts/storage/AssociatedSystem.sol"; | ||
import "@synthetixio/core-contracts/contracts/ownership/OwnableStorage.sol"; | ||
|
||
import "../../interfaces/external/IAny2EVMMessageReceiver.sol"; | ||
|
||
import "../../storage/OracleManager.sol"; | ||
import "../../storage/Config.sol"; | ||
import "../../storage/CrossChain.sol"; | ||
import {CcipReceiverModule as BaseCcipReceiverModule} from "@synthetixio/core-modules/contracts/modules/CcipReceiverModule.sol"; | ||
|
||
/** | ||
* @title Module with assorted utility functions. | ||
* @dev See IUtilsModule. | ||
* @title Module that handles receiving ccip messages. | ||
*/ | ||
contract CcipReceiverModule is IAny2EVMMessageReceiver { | ||
function ccipReceive(CcipClient.Any2EVMMessage memory message) external { | ||
CrossChain.processCcipReceive(CrossChain.load(), message); | ||
} | ||
// solhint-disable-next-line no-empty-blocks | ||
contract CcipReceiverModule is BaseCcipReceiverModule { | ||
|
||
} |
12 changes: 12 additions & 0 deletions
12
protocol/synthetix/contracts/modules/core/CrossChainModule.sol
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
//SPDX-License-Identifier: MIT | ||
pragma solidity >=0.8.11 <0.9.0; | ||
|
||
import {CrossChainModule as BaseCrossChainModule} from "@synthetixio/core-modules/contracts/modules/CrossChainModule.sol"; | ||
|
||
/** | ||
* @title Module that handles anything related to cross-chain. | ||
*/ | ||
// solhint-disable-next-line no-empty-blocks | ||
contract CrossChainModule is BaseCrossChainModule { | ||
|
||
} |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.