-
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
Adds ERC1132 interface and sample implementation #1298
Conversation
Hey @maxsam4, thanks for contributing to OpenZeppelin! This looks heavily inspired by https://github.com/nitika-goel/lockable-token (in which you're a main contributor), which sadly has no license. @ElOpio is our licensing expert, but from my understanding it would not be ok for us to simply have a copy the code in a case such as this. Anyhow, have you checked our Thanks again! |
Hi @nventuro, Thanks for your feedback! This is in fact inspired by @nitika-goel's Implementation. I never noticed that the original implementation is missing the license. I'll get in touch with @nitika-goel to sort it out. The TokenTimeLock is a very basic implementation of time locking which makes it hard to be used in the applications that depend on the locked tokens (for example, reward distribution based on locked/staked amount). There are various reasons why we didn't opt to use an escrow for locking and they are explained on ethereum/EIPs#1132 Please, have a look. If I remember correctly, the TokenEscrow contract didn't exist in openzepplin's suite of contracts when the EIP for lockable token was created. In any case, It still does not achieve the goals of an inherently lockable token that are mentioned in the EIP. I understand that increasing adoption for a new token standard will be tough so I have also implemented an independent Escrow like functionality which does not depend on an Owner and overcomes a few other drawbacks of escrows. It's still a WIP but you can get the idea from https://github.com/somish/govblocks-protocol/blob/master/contracts/TokenProxy.sol |
I've added a license to the original repo.
We are using this in 2 projects - GovBlocks and Nexus Mutual. |
From ValidityLabs - we are seeing clients request such features that this, ERC1132, would be of great value |
Closing due to staleness - the EIP also doesn't seem to have moved forward much. |
🚀 Description
Adds sample implementation of ERC1132
Read more about EIP1132 on https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1132.md
npm run lint:all:fix
).