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

Function getExcludedFromDataFile

CLI/commands/dividends_manager.js:757–768  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

755}
756
757function getExcludedFromDataFile() {
758 let parsedData = csvParse(EXCLUSIONS_DATA_CSV);
759 let validData = parsedData.filter(row => web3.utils.isAddress(row[0]));
760 let invalidRows = parsedData.filter(row => !validData.includes(row));
761 if (invalidRows.length > 0) {
762 console.log(chalk.red(`The following lines from csv file are not valid: ${invalidRows.map(r => parsedData.indexOf(r) + 1).join(',')} `));
763 }
764 let batches = common.splitIntoBatches(validData, validData.length);
765 let [data] = common.transposeBatches(batches);
766
767 return data;
768}
769
770function showExcluded(excluded) {
771 console.log('Current default excluded addresses:')

Callers 2

setDefaultExclusionsFunction · 0.85
createDividendsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected