()
| 43 | startScript(); |
| 44 | |
| 45 | async function startScript() { |
| 46 | |
| 47 | securityTokenRegistryAddress = await contracts.securityTokenRegistry(); |
| 48 | let securityTokenRegistryABI = abis.securityTokenRegistry(); |
| 49 | securityTokenRegistry = new web3.eth.Contract(securityTokenRegistryABI, securityTokenRegistryAddress); |
| 50 | securityTokenRegistry.setProvider(web3.currentProvider); |
| 51 | |
| 52 | let polytokenAddress = await contracts.polyToken(); |
| 53 | let polytokenABI = abis.polyToken(); |
| 54 | polyToken = new web3.eth.Contract(polytokenABI, polytokenAddress); |
| 55 | polyToken.setProvider(web3.currentProvider); |
| 56 | |
| 57 | await readFile(); |
| 58 | } |
| 59 | |
| 60 | async function readFile() { |
| 61 | var stream = fs.createReadStream(`${__dirname}/../data/ticker_data.csv`); |
no test coverage detected