Skip to content

cygaar/ERC5643

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About The Project

ERC5643 provides a base implementation of EIP5643 to make building subscription NFTs easier and more standardized.

This is experimental software and is provided on an "as is" and "as available" basis. We do not give any warranties and will not be liable for any loss incurred through any use of this codebase.

Installation

To install with Foundry:

forge install cygaar/ERC5643

To import the contract in a hardhat-like fashion, you can add the following line to your remappings:

erc5643/=lib/ERC5643/

Then you can import ERC5643 like so:

pragma solidity ^0.8.13;

import "erc5643/src/ERC5643.sol";

contract Contract is ERC5643 {
    constructor(string memory name_, string memory symbol_)
        ERC5643(name_, symbol_)
    {}
}

Usage

A good starting point is the ERC5643Mock contract which provides an example implementation of ERC5643.

Roadmap

  • Add npm support
  • Add auto-renewal support via ERC20 tokens
  • Gas optimizations
  • Maintain full test coverage

See the open issues for a full list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".

Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Running tests locally

  1. forge test -vv

License

Distributed under the MIT License. See LICENSE.txt for more information.

Project Link: https://github.com/cygaar/ERC5643

About

Subscription NFT Smart Contracts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •