@mathieu-bour/erc721-revocable
v0.0.1
Published
OpenZeppelin's ERC721 contract with an additional revocableMintTo which creates revocable ERC721 tokens.
Downloads
2
Readme
ERC721Revocable
OpenZeppelin's ERC721 contract with an additional revocableMintTo which creates revocable ERC721 tokens.
Demo version of the contract is available at 0xa98d37675aDd1c4B15942836Ecd210BedC48c058.
Use case: allow new web3 users to mint NFTs without requiring them to own any cryptocurrency.
Basic flow:
- User pays using a traditional credit card payment gateway (Stripe, Braintree, etc.).
- Payment gateway sends a webhook to an OpenZeppelin Relay or similar service.
- Relay mints the NFT for the user using the
ERC721Revocable.revocableMintTo
function. - Until the release date, the owner is allowed to burn the token using the
ERC721Revocable.revoke
if the user wins a dispute or if the card is fraudulent, etc.).
This example is configured to deploy on the Mumbai Polygon Testnet.