forked from allo-protocol/allo-v2
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: registry unit tests (allo-protocol#657)
* test: registry unit tests * fix: tests * fix: tests * fix: add missing tests
- Loading branch information
Showing
5 changed files
with
548 additions
and
6 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
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,43 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.19; | ||
|
||
import {Registry} from "contracts/core/Registry.sol"; | ||
|
||
contract MockRegistry is Registry { | ||
function _grantRole(bytes32 role, address account) internal virtual override { | ||
super._grantRole(role, account); | ||
} | ||
|
||
function _checkRole(bytes32 role, address account) internal view virtual override { | ||
super._checkRole(role, account); | ||
} | ||
|
||
function _revokeRole(bytes32 role, address account) internal virtual override { | ||
super._revokeRole(role, account); | ||
} | ||
|
||
function _generateProfileId(uint256 _nonce, address _owner) internal pure virtual override returns (bytes32) { | ||
return super._generateProfileId(_nonce, _owner); | ||
} | ||
|
||
function _generateAnchor(bytes32 _profileId, string memory _name) | ||
internal | ||
virtual | ||
override | ||
returns (address anchor) | ||
{ | ||
return super._generateAnchor(_profileId, _name); | ||
} | ||
|
||
function _checkOnlyProfileOwner(bytes32 _profileId) internal view virtual override { | ||
super._checkOnlyProfileOwner(_profileId); | ||
} | ||
|
||
function _isOwnerOfProfile(bytes32 _profileId, address _owner) internal view virtual override returns (bool) { | ||
return super._isOwnerOfProfile(_profileId, _owner); | ||
} | ||
|
||
function _isMemberOfProfile(bytes32 _profileId, address _member) internal view virtual override returns (bool) { | ||
return super._isMemberOfProfile(_profileId, _member); | ||
} | ||
} |
Oops, something went wrong.