Skip to content

Commit

Permalink
move natspec from RMNRemote to IRMNV2
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanRHall committed Sep 11, 2024
1 parent 1f1155f commit 304de78
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
5 changes: 5 additions & 0 deletions contracts/src/v0.8/ccip/interfaces/IRMNV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ interface IRMNV2 {
bytes32 s;
}

/// @notice Verifies signatures of RMN nodes, on dest lane updates as provided in the CommitReport
/// @param offrampAddress is not inferred by msg.sender, in case the call is made through ARMProxy
/// @param destLaneUpdates must be well formed, and is a representation of the CommitReport received from the oracles
/// @param signatures must be sorted in ascending order by signer address
/// @dev Will revert if verification fails
function verify(
address offRampAddress,
Internal.MerkleRoot[] memory merkleRoots,
Expand Down
11 changes: 3 additions & 8 deletions contracts/src/v0.8/ccip/rmn/RMNRemote.sol
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,7 @@ contract RMNRemote is OwnerIsCreator, ITypeAndVersion, IRMNV2 {
// │ Verification │
// ================================================================

/// @notice Verifies signatures of RMN nodes, on dest lane updates as provided in the CommitReport
/// @param offrampAddress is not inferred by msg.sender, in case the call is made through ARMProxy
/// @param destLaneUpdates must be well formed, and is a representation of the CommitReport received from the oracles
/// @param signatures must be sorted in ascending order by signer address
/// @dev Will revert if verification fails
/// @inheritdoc IRMNV2
function verify(
address offrampAddress,
Internal.MerkleRoot[] memory destLaneUpdates,
Expand Down Expand Up @@ -236,7 +232,7 @@ contract RMNRemote is OwnerIsCreator, ITypeAndVersion, IRMNV2 {
return s_cursedSubjectsSequence;
}

/// @notice If there is an active global or legacy curse, this function returns true.
/// @inheritdoc IRMNV2
function isCursed() external view returns (bool) {
if (s_cursedSubjectsSequence.length == 0) {
return false;
Expand All @@ -245,8 +241,7 @@ contract RMNRemote is OwnerIsCreator, ITypeAndVersion, IRMNV2 {
s_cursedSubjectsIndexPlusOne[LEGACY_CURSE_SUBJECT] > 0 || s_cursedSubjectsIndexPlusOne[GLOBAL_CURSE_SUBJECT] > 0;
}

/// @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)).
/// @inheritdoc IRMNV2
function isCursed(bytes16 subject) external view returns (bool) {
if (s_cursedSubjectsSequence.length == 0) {
return false;
Expand Down

0 comments on commit 304de78

Please sign in to comment.