-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate RMNRemote and OffRamp (#1360)
## Motivation Remove the requirement for self-transmitted RMN blessings ## Solution Allow the commit DON to include RMN blessings at commitment time This PR has a dependency on changes to [chainlink-ccip](smartcontractkit/chainlink-ccip#84) --------- Co-authored-by: Makram <[email protected]>
- Loading branch information
Showing
24 changed files
with
1,568 additions
and
802 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.0; | ||
|
||
import {Internal} from "../libraries/Internal.sol"; | ||
|
||
/// @notice This interface contains the only RMN-related functions that might be used on-chain by other CCIP contracts. | ||
interface IRMNV2 { | ||
/// @notice signature components from RMN nodes | ||
struct Signature { | ||
bytes32 r; | ||
bytes32 s; | ||
} | ||
|
||
function verify(Internal.MerkleRoot[] memory merkleRoots, Signature[] memory signatures) external view; | ||
|
||
/// @notice If there is an active global or legacy curse, this function returns true. | ||
function isCursed() external view returns (bool); | ||
|
||
/// @notice If there is an active global curse, or an active curse for `subject`, this function returns true. | ||
/// @param subject To check whether a particular chain is cursed, set to bytes16(uint128(chainSelector)). | ||
function isCursed(bytes16 subject) external view returns (bool); | ||
} |
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.