-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: registerDomain, uri * feat: erc721 hubDomainsRegistry
- Loading branch information
1 parent
5051b47
commit 08f7492
Showing
5 changed files
with
74 additions
and
80 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
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 |
---|---|---|
@@ -1,12 +1,20 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.20; | ||
|
||
struct Domain { | ||
uint256 tokenId; | ||
string name; | ||
string uri; | ||
} | ||
|
||
interface IHubDomainsRegistry { | ||
/// @notice register an "X.hub" domain | ||
/// @dev must be called through the hub | ||
function registerDomain(string calldata domain, address hubAddress, string calldata metadataUri) external; | ||
function registerDomain(string calldata _name, string calldata _uri, address _owner) external; | ||
|
||
/// @notice get the Domain of a given hub | ||
function getDomain(address hub) external view returns (Domain memory); | ||
|
||
/// @notice get hub and uri associated to the "X.hub" domain | ||
function getDomain(string calldata domain) external view returns (address, string memory); | ||
function verifierOf(uint256 tokenId) external view returns (address verifier); | ||
/// @notice Get the hub of a given "X.hub" name | ||
function getHubByName(string memory name) external view returns (address); | ||
} |
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