This tutorial application allows token owners to issue their security token to whitelisted investors. You may also burn tokens, if needed. You should be able to:
Import and Export CSV with investor addresses and balances.
Mint tokens to investors.
Burn tokens.
The CSV that represents issuance has the following format:
Burning tokens is as intuitive as specifying the amount, address, and reason for burning in each call.
// Async actionconstburnTokens=async (amount, from, reason ='') => {asyncAction( dispatch, () =>controllerRedeem(amount, from, reason),`Burning ${amount} tokens from ${from}` )}constcontrollerRedeem=async (amount, from, reason) => { reason =web3Utils.numberToHex(reason) amount =newBigNumber(amount)while (true) {// Try to redeem tokens...try {constq=awaittoken.controller.redeem({ amount, from, reason })awaitq.run()dispatch({type:'RELOAD_TOKENHOLDERS'})return }// ...unless current user is not a controller. In that case, add them as a controller first.catch (error) {if (error.message.includes('You must be the controller')) {console.log(`Add ${walletAddress} as controller`)constaddControllerQ=awaittoken.controller.modifyController({controller: walletAddress})awaitaddControllerQ.run() }else {dispatch({type:'ERROR', error:error.message})return } } }}