Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples on TokenTimeLock and TokenVesting #706

Closed
1 of 2 tasks
xiaoyao1991 opened this issue Jan 24, 2018 · 3 comments
Closed
1 of 2 tasks

Examples on TokenTimeLock and TokenVesting #706

xiaoyao1991 opened this issue Jan 24, 2018 · 3 comments
Labels
documentation Inline comments, guides, and examples. good first issue Low hanging fruit for new contributors to get involved!

Comments

@xiaoyao1991
Copy link

  • 馃悰 This is a bug report.
  • 馃搱 This is a feature request.

Thanks for the awesome contributions Zeppelin team. I wonder if there're any examples or tutorials on how to use TokenTimeLock and TokenVesting specifically?

@frangio frangio added good first issue Low hanging fruit for new contributors to get involved! backlog labels Jan 25, 2018
@frangio
Copy link
Contributor

frangio commented Jan 25, 2018

Agreed @xiaoyao1991! There are no examples currently.

@cedricwalter
Copy link

@xiaoyao1991 unit test are providing a good start

https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/test/token/TokenVesting.test.js

https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/test/token/TokenTimelock.test.js

or in solidity

uint256 public constant VESTING_CLIFF = 1 years;
uint256 public constant VESTING_DURATION = 3 years;

MintableToken token = new MintableToken();
TokenVesting newVault = new TokenVesting(beneficiary, now, VESTING_CLIFF, VESTING_DURATION, false);
token.mint(address(newVault), _tokens);

@xiaoyao1991
Copy link
Author

@cedricwalter Thanks! I'll take a look

@frangio frangio removed the backlog label Jun 15, 2018
@nventuro nventuro added kind:improvement documentation Inline comments, guides, and examples. labels Aug 15, 2018
Aniket-Engg added a commit to Aniket-Engg/zeppelin-solidity that referenced this issue Nov 2, 2018
Aniket-Engg added a commit to Aniket-Engg/zeppelin-solidity that referenced this issue Nov 28, 2018
Aniket-Engg added a commit to Aniket-Engg/zeppelin-solidity that referenced this issue Dec 21, 2018
@frangio frangio closed this as completed in 350aae0 Jan 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Inline comments, guides, and examples. good first issue Low hanging fruit for new contributors to get involved!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants