-
Notifications
You must be signed in to change notification settings - Fork 402
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
324 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// SPDX-License-Identifier: CC0-1.0 | ||
pragma solidity ^0.8.9; | ||
|
||
import "@openzeppelin/contracts/utils/introspection/ERC165.sol"; | ||
import "@openzeppelin/contracts/interfaces/IERC4906.sol"; | ||
|
||
abstract contract ERC4906 is ERC165, IERC4906{ | ||
/// @dev See {IERC165-supportsInterface}. | ||
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) { | ||
return interfaceId == bytes4(0x49064906) || super.supportsInterface(interfaceId); | ||
} | ||
} |
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,18 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.9; | ||
|
||
interface IUPTNAddressValidator { | ||
function isBlacklist(address account) external view returns (bool); | ||
function addBlacklist(address account) external; | ||
function removeBlacklist(address account) external; | ||
|
||
function isWhitelist(bytes32 tokenHash, address account) external view returns (bool); | ||
function addWhitelist(bytes32 tokenHash, address account) external; | ||
function removeWhitelist(bytes32 tokenHash, address account) external; | ||
|
||
function whitelistPaused(bytes32 tokenHash) external view returns (bool); | ||
function pauseWhitelist(bytes32 tokenHash) external; | ||
function unpauseWhitelist(bytes32 tokenHash) external; | ||
|
||
function isValid(bytes32 tokenHash, address fromAccount, address toAccount) external view returns (bool); | ||
} |
Oops, something went wrong.