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). |
d6feeaa to
9cd039e
Compare
|
Warning Possible malicious code: please review before merging. An automated security scan flagged files in this pull request that appear to contain malicious code. Code like this can run automatically when a project is opened in an editor or its dependencies are installed, so it could compromise the machine of anyone who checks out this branch. Automated scans can be wrong, so this may be a false positive. Maintainers: please review the flagged files carefully before merging, on GitHub in your browser rather than by checking out the branch. The malicious part is often hidden far off to the right of an ordinary-looking line, so scroll sideways through each file. @PHADAR6: this pull request adds or changes these files, possibly without your knowledge. Malware like this spreads by adding itself to repositories on machines it has infected, so your machine might be compromised. Please undo these changes in this pull request, and don't open or run other projects on that machine until you've checked it. Flagged files at commit Only merge once you're confident these files are safe. ℹ️ Posted automatically by Drips Wave. Questions? Contact support@drips.network. |
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