Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 961 Bytes

documentation.md

File metadata and controls

38 lines (25 loc) · 961 Bytes

Documentation

Usage

Once installed, you can use the contracts by importing and inheriting from them.

Note that the included ERC721 implementation does not include IERC721Metadata out-of-the-box: if desired, it must be implemented in your contract that inherits from PartialCommonOwnership.sol.

PartialCommonOwnership.sol enables you to launch new ERC721 tokens that are governed by PCO.

import "./PartialCommonOwnership.sol";

contract YourToken is PartialCommonOwnership {
  constructor()
    PartialCommonOwnership(
      payable(msg.sender),
      // 100% patronage per year
      1000000000000,
      365
    )
  {}
}

Wrapper.sol enables you to launch your own contracts that wrap existent ERC721 tokens.

import "../Wrapper.sol";

contract YourWrapper is Wrapper, IERC721Metadata {}