简体   繁体   中英

How to link Standard Token with crowdsale in Zeppelin Solidity

Hello I am trying to create a crowdsale through zeppelin solidity but I could not find a way to link standard token with pre-allocated supply with the crowdsale.

In other words, I need to have token balances for specific VIP addresses without the need for them to go through the crowdsale!

What you want is already implemented inside MintableToken that the Crowdsale token uses.

All what you need is to call function mint(address _to, uint256 _amount) that is inside MintableToken . You can call it as much as you need and pass the required values with every call.

Base Crowdsale contract: https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/crowdsale/Crowdsale.sol

Base Mintable token: https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/token/MintableToken.sol

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM