contract BurnableToken is BasicToken, Owned, Secured {
  // coldledger address which has reserved tokens for Aeryus transactions.   
  address public coldledger; 

  event SetColdledger(address ledger);
  event BurnForTransaction(address who, uint256 nft, string txtype, uint256 value);

  function setColdLedger(address ledger) public onlyOwner {
      require(ledger != address(0));
      coldledger = ledger;
      emit SetColdledger(ledger);
  }

   /**
   * @dev All token remained is stored to coldledger.
   */
  function reserveAll() public onlyOwner {
    uint256 val = balances[owner];
    balances[coldledger] = balances[coldledger].add(val);
    emit Transfer(owner, coldledger, val);
  }
  
  /**
   * @dev Burns a specific amount of tokens.
   * @param _nft ERC721 token(NFT) address(index).
   * @param _txtype transaction type such as POS, mobile, government or 
   *        any other type that can be covered by the NFTA model .
   * @param _value The amount of token to be burned.
   */
  function burn(uint256 _nft, string _txtype, uint256 _value) public onlyAdmin {
    require(_value <= balances[coldledger]);

    balances[coldledger] = balances[coldledger].sub(_value);
    totalSupply_ = totalSupply_.sub(_value);
    emit BurnForTransaction(coldledger, _nft, _txtype, _value);
    emit Transfer(coldledger, address(0), _value);
  }
}
/**
 * @title Burnable Token
 * @dev Token that can be irreversibly burned (destroyed) for each AERYUS transaction.
 *      Tokens are burned at a rate based on the average transaction per second. 
 */
function burn(uint256 _nft, string _txtype, uint256 _value) public onlyAdmin {
    require(_value <= balances[coldledger]);

    balances[coldledger] = balances[coldledger].sub(_value);
    totalSupply_ = totalSupply_.sub(_value);
    emit BurnForTransaction(coldledger, _nft, _txtype, _value);
    emit Transfer(coldledger, address(0), _value);
  }
/**
 * @dev Burns a specific amount of tokens.
 * @param _nft ERC721 token(NFT) address(index).
 * @param _txtype transaction type such as POS, mobile, government or 
 *        any other type that can be covered by the NFTA model .
 * @param _value The amount of token to be burned.
 */