Skip to content
This repository has been archived by the owner on Sep 25, 2024. It is now read-only.

Commit

Permalink
explain that there are exceptions in stdout - improves usability
Browse files Browse the repository at this point in the history
  • Loading branch information
randomshinichi committed Jan 23, 2024
1 parent 841bddb commit 03e607b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/logic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { ValidatedTokensData } from "./types/types";
import { indexToLineNumber } from "./utils/validate";
import { parse } from "csv-parse/sync";
import fs from "fs";
import { allowedDuplicateSymbols, allowedNotCommunityValidated } from "./utils/duplicate-symbols";

export async function validateValidatedTokensCsv(filename: string): Promise<number> {
const [records, recordsRaw] = parseCsv(filename);
Expand All @@ -27,11 +28,11 @@ export async function validateValidatedTokensCsv(filename: string): Promise<numb
noEditsAllowed = noEditsToPreviousLinesAllowed(recordsPrevious, records);
notCommunityValidated = isCommunityValidated(records);

console.log("No More Duplicate Symbols:", duplicateSymbols);
console.log("No More Duplicate Symbols:", duplicateSymbols, `(${allowedDuplicateSymbols.length} exceptions)`);
console.log("Duplicate Mints:", duplicateMints);
console.log("Attempts to Add Multiple Tokens:", attemptsToAddMultipleTokens);
console.log("Invalid Mint Addresses:", invalidMintAddresses);
console.log("Not Community Validated:", notCommunityValidated);
console.log("Not Community Validated:", notCommunityValidated, `(${allowedNotCommunityValidated.length} exceptions)`);
console.log("Edits to Existing Tokens:", noEditsAllowed);
return (duplicateSymbols + duplicateMints + attemptsToAddMultipleTokens + invalidMintAddresses + noEditsAllowed)
}
Expand Down

0 comments on commit 03e607b

Please sign in to comment.