'use strict'; const Logger= require('../entity/Logger.js'); const logger=Logger.logger; const fs = require('fs'); const tier=require('./Tier.js'); const Tier=tier.Tier; const reservedTokens=require('./ReservedTokens.js'); const ReservedTokens=reservedTokens.ReservedTokens; class Crowdsale { constructor(){ this.name; this.ticker; this.walletAddress; this.reservedTokens=[]; this.whitelist=[]; this.gasPrice; this.minCap; this.whitelisting; this.tiers=[]; this.tokenAddress; this.contractAddress; this.url; this.tokenContractAbi; } async parser(fileName) { var obj=JSON.parse(fs.readFileSync(fileName,"utf8")); this.name=obj.name; this.ticker=obj.ticker; this.decimals=obj.decimals; for (var i=0;i