MCPcopy Create free account
hub / github.com/PolymathNetwork/polymath-core / startScript

Function startScript

CLI/commands/TickerRollForward.js:45–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43startScript();
44
45async 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
60async function readFile() {
61 var stream = fs.createReadStream(`${__dirname}/../data/ticker_data.csv`);

Callers 1

Calls 1

readFileFunction · 0.85

Tested by

no test coverage detected