-
Notifications
You must be signed in to change notification settings - Fork 11.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding Mintable, RBACMintable and Burnable ERC721 tokens #957
Adding Mintable, RBACMintable and Burnable ERC721 tokens #957
Conversation
@vittominacori how do you think these two PRs should be combined? |
|
||
// solium-disable-next-line max-len | ||
contract SimpleERC721Token is ERC721Token, MintableERC721Token, BurnableERC721Token { | ||
constructor(string name, string symbol) public |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: formatting should look like
constructor(string _name, string _symbol)
ERC721Token(_name, _symbol)
public
{
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think so.
Regarding my code, I just wanted to replicate what I've already done with ERC20 RBACMintableToken. Your code is a little different, you allow the ERC721Minter to mint new tokens by validating signature. About your code: I think Also PRs could be merged but, guy, you are the reviewer so feel free to ask for changes in my code if it sounds repetitive or unuseful. |
I'd very much like to include your contribution in OZ! The reason we have If you agree with that, we can rename re: RBACWithAdmin is super powerful, so we've removed it from the main contracts; it was designed to be an example, regardless: #936 |
Ok I agree to rename RBAC into Mintable. If you prefer also to have RBACMintable into access feel free to keep it. I wouldn't imagine that this will open the road to a lot of RBAC[Something] contracts into Thanks. |
The owner of a mintable token will be automatically set as the deployer because of the constructor in RBACOwnable, so I think it's ok for us not to automatically set the owner as the minter as well (although it would be good to mention that in the comments). Let me know if you think it'd be easier to rebase this branch on #950 or #950 on this branch. |
I think it could be better to merge #950 here. The others files should not have conflicts. Take a look to the added test behaviours and adapt to your token and minter contracts. |
Awasome. I very much appreciate if you guys continue working to finish this this PR. |
hey @vittominacori any update on your end? If you're unavailable, I can spend time this weekend and merge our PRs together. You'll still be the author of the original commits :) |
Hi @shrugs I'm really busy these days. So it could be better if you can start merging PRs. Feel free to ask for changes, I will try to work on when I can. |
closing in favor of work on #1273, since this will need to use the new roles refactor branch. |
🚀 Description
This add Mintable, RBACMintable and Burnable tokens to the ERC721 token lists.
Features:
Added BurnableERC721Token
Added MintableERC721Token
Added RBACMintableERC721Token
📘 I've reviewed the OpenZeppelin Contributor Guidelines
✅ I've added tests where applicable to test my new functionality.
📖 I've made sure that my contracts are well-documented.
🎨 I've run the JS/Solidity linters and fixed any issues (
npm run lint:all:fix
).