docs: describe the bundled token list by selection criterion, not count (closes #239) #241
Reference in New Issue
Block a user
Delete Branch "docs/issue-239-token-list-count"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #239.
Documentation only. No code, config, script, CI or build file is touched.
The disagreement
TOKENSinsrc/shared/tokenList.jshas 512 entries (verified by countingaddress:keys in the array; 512 total, 512 unique). Four places inREADME.mdsaid "top 250" and
docs/README.mdsaid "roughly 500".Selection criterion (established)
The file's own header records it, and the commit history corroborates
("Add tokenList.js with 511 ERC-20 tokens ranked by market cap", "Add name and
url fields to all 512 tokens in tokenList.js"):
So the "top N by market cap" framing is accurate; only the number was wrong.
There is no generator script in the tree — nothing under
script/or elsewhereproduces the file — so the list is regenerated out of band and hand-committed.
What changed
Rather than substitute 512 into five places, which drifts again on the next
regeneration, the count is dropped everywhere and the list is described by how
it is selected, with
TOKENSinsrc/shared/tokenList.jsnamed as theauthoritative set.
README.md, "Known token symbol verification" — the one full description:gains the criterion, source, and pointer to the file; loses "top 250".
README.mdx3 (balance-filter paragraph, the "does NOT do" list, the featurelist) — incidental "top-250 token list" mentions become "known-token list",
the term the docs already use elsewhere.
docs/README.md, "Known token symbol verification" — "roughly 500 legitimateERC-20 tokens" becomes the same criterion in user-facing wording, no number.
TODO.md— one bullet at the top of# Completed Steps.Prettier reflowed the surrounding paragraphs, which is most of the line count in
the diff.
Verification
make fmtrun;make checkgreen on the branch head, rebased onto currentnext(158278d): 14 test suites, 361 tests passed,prettier --check .clean.
script/cibuildgreen — the containerizedmake checklayer executed (notCACHED, 21.3s, tests and prettier output visible in the build log), followedby
make buildwith all 4 bundles verifiedautistmask-build-debug=off.Note for the reviewer
The header comment in
src/shared/tokenList.jssays "511 tokens" and is alsooff by one. It is a code file, and this unit is docs-only, so it is left
untouched and no documentation now depends on it being correct.