Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

Commit

Permalink
feat: add abstract nodeowner interface
Browse files Browse the repository at this point in the history
  • Loading branch information
julianmrodri authored and ilanolkies committed Jul 17, 2020
1 parent a33456c commit b60d026
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
11 changes: 11 additions & 0 deletions contracts/AbstractNodeOwner.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
pragma solidity ^0.5.3;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";

/// @title NodeOwner interface
/// @notice Defines an interface for the NodeOwner implementation.
contract AbstractNodeOwner is IERC721 {
function available (uint256 tokenId) public view returns(bool);
function reclaim(uint256 tokenId, address newOwner) external;
function removeExpired(uint256[] calldata tokenIds) external;
}
3 changes: 2 additions & 1 deletion contracts/NodeOwner.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/ownership/Ownable.sol";
import "@openzeppelin/contracts/access/Roles.sol";
import "@rsksmart/rns-registry/contracts/AbstractRNS.sol";
import "./AbstractNodeOwner.sol";

contract NodeOwner is ERC721, Ownable {
contract NodeOwner is ERC721, Ownable, AbstractNodeOwner {
using Roles for Roles.Role;

AbstractRNS private rns;
Expand Down

0 comments on commit b60d026

Please sign in to comment.