forked from storyprotocol/protocol-core
-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Emit Events for Whitelist and Revoke Address in IPGraphACL (#341)
- Loading branch information
1 parent
e5f1a66
commit a363e72
Showing
3 changed files
with
42 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// SPDX-License-Identifier: BUSL-1.1 | ||
pragma solidity 0.8.26; | ||
|
||
interface IIPGraphACL { | ||
/// @notice Emitted when whitelisted address which can control allowed or disallowed to access the IPGraph contract. | ||
/// @param addr The address that was whitelisted. | ||
event WhitelistedAddress(address addr); | ||
|
||
/// @notice Emitted when whitelisted address is revoked. | ||
/// @param addr The address that was revoked. | ||
event RevokedWhitelistedAddress(address addr); | ||
|
||
/// @notice Allow access to the IPGraph contract. | ||
function allow() external; | ||
|
||
/// @notice Disallow access to the IPGraph contract. | ||
function disallow() external; | ||
|
||
/// @notice Check if access to the IPGraph contract is allowed. | ||
function isAllowed() external view returns (bool); | ||
|
||
/// @notice Whitelist an address that can allow or disallow access to the IPGraph contract. | ||
/// @param addr The address to whitelist. | ||
function whitelistAddress(address addr) external; | ||
|
||
/// @notice Revoke whitelisted address. | ||
/// @param addr The address to revoke. | ||
function revokeWhitelistedAddress(address addr) external; | ||
|
||
/// @notice Check if an address is whitelisted. | ||
/// @param addr The address to check. | ||
function isWhitelisted(address addr) 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