Skip to content

Commit

Permalink
contract types, refactor, add errors & events
Browse files Browse the repository at this point in the history
  • Loading branch information
rapidddenis committed Nov 17, 2023
1 parent f14e6a9 commit cd98e97
Show file tree
Hide file tree
Showing 4 changed files with 268 additions and 143 deletions.
9 changes: 5 additions & 4 deletions contracts/registry/IRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ import {IChainNft} from "./IChainNft.sol";

interface IRegistry is IERC165 {

event Approval(NftId indexed nftId, ObjectType objectType);
event LogObjectRegistered(NftId nftId, NftId parentNftId, ObjectType objectType, address objectAddress, address initialOwner);

//TODO add more events
event LogServiceRegistered(address service, string serviceName, VersionPart majorVersion);

event LogApproval(NftId nftId, ObjectType objectType);

struct ObjectInfo {
NftId nftId;
Expand All @@ -38,8 +40,7 @@ interface IRegistry is IERC165 {

function allowance(
NftId registrar,
ObjectType object,
ObjectType parent
ObjectType object
) external view returns (bool);

function getObjectCount() external view returns (uint256);
Expand Down
Loading

0 comments on commit cd98e97

Please sign in to comment.