Repository navigation
Conversation
|
Hi @PHADAR6, thanks for resubmitting this. I went through the diff and the code in this PR is clean. Before we can merge, there is something important on your side. Your fork (PHADAR6/streamgive-backend) still contains the malware that was in your earlier PRs #201 and #204. Its main has a hidden payload in api.js and eslint.config.js, and the dev, build and start scripts in package.json run api.js. The old feat/issue-107-... and feat/issue-129-... branches have it too. This is the PolinRider malware. It usually spreads silently from an infected computer into every repo you commit to, so I think it's very likely still on your machine, and it can also steal tokens and keys. I don't think you did anything on purpose, but please: Scan and clean your computer. Check for a .vscode/tasks.json in your projects, and for api.js or branch_structure.json in the root of repos you work on. If you aren't sure the machine is clean, reinstalling the OS is the safe option. |
|
@Ashborne267 — this PR is ready for another review. I resolved the merge conflicts with the main branch (pushed d6feeaa). |
Overview
This PR adds a
GET /tokensendpoint that returns the distincttokenAddressvalues seen across streams, along with a stream count for each token, so the frontend can populate a token filter from real data.Related Issue
Closes #
Changes
🪙 Token Aggregation Endpoint
[MODIFY]
src/routes/streams.tsGET /tokenshandler that groups streams bytokenAddressand returns each distinct address with its stream count.[MODIFY]
src/routes/tokenTotals.ts/tokensaggregation is wired alongside the existing token-related routes.Verification Results
GET /tokensreturning distincttokenAddressvalues with a stream count for eachsrc/routes/streams.tsCloses #107