Skip to content

Feat: nexchange plugin#212

Open
MMrj9 wants to merge 48 commits into
EdgeApp:masterfrom
MMrj9:feat/nexchange-plugin
Open

Feat: nexchange plugin#212
MMrj9 wants to merge 48 commits into
EdgeApp:masterfrom
MMrj9:feat/nexchange-plugin

Conversation

@MMrj9
Copy link
Copy Markdown

@MMrj9 MMrj9 commented Mar 2, 2026

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

Api Key should be shared privately

Description

  • Added new nexchange partner plugin at src/partners/nexchange.ts.
  • Integrated the plugin into the query engine in src/queryEngine.ts.
  • Implemented Edge audit orders API ingestion (/audits/edge/orders) with support for:
    • API key auth via x-api-key
    • Legacy Authorization: ApiKey <key> auth header
    • Cursor pagination with offset fallback
    • dateFrom incremental sync using persisted latestIsoDate and lookback
  • Added tests in test/nexchange.test.ts for transaction mapping and auth header behavior.

https://app.asana.com/1/9976422036640/project/1200382638405084/task/1213650284151456?focus=true

@EdgeApp EdgeApp deleted a comment from cursor Bot Apr 2, 2026
@Jon-edge
Copy link
Copy Markdown

Jon-edge commented Apr 2, 2026

@cursor review

@cursor
Copy link
Copy Markdown

cursor Bot commented Apr 2, 2026

Bugbot couldn't run

Bugbot is not enabled for your user on this team.

Ask your team administrator to increase your team's hard limit for Bugbot seats or add you to the allowlist in the Cursor dashboard.

@j0ntz j0ntz mentioned this pull request Apr 17, 2026
2 tasks
paullinator and others added 26 commits May 15, 2026 07:07
Allows backfilling of pluginId/tokenId of all old transactions
Do not error if fiat currency is USD.
- Round robin query all rates servers
- Increase batch size and query frequency
- Do not write unchanged docs
This properly runs 3 plugin queries in parallel. Prior to this change, 3 plugins would get launced and all run to completion before another 3 are launched.
paullinator and others added 22 commits May 15, 2026 07:07
This file was incorrectly being written to the root directory.
Older deployed versions of Rango improperly saved a full contract address as the token ID. Older deployed versions of Rango improperly saved a full contract address as the token ID.
Make the parser agnostic to the type of asset received for revenue.
Change the parser to loop from oldest to newest so we can save progress in case of a failure.
Port over yarn lock file to npm package lock.

Update any dependencies that have critical vulnerabilities reported by socket to use updated versions.
Add EOS, xRPL, qtum, rvn, Dash, Tezos, and others. Also add card type.
Fetch the n.exchange currency catalog and map each order's deposit and
payout assets to Edge's chain plugin id, token id, and EVM chain id so
reported transactions comply with the asset-identification requirements.

Co-authored-by: Cursor <cursoragent@cursor.com>
Require only an apiKey plugin param, hard-coding the fixed base and
currency endpoints and auth header. Use the scoped log for progress
output (latest processed ISO date) and let transaction parsing errors
throw so the run exits without silently dropping volume, saving only the
fully processed progress thanks to oldest-to-newest pagination.

Co-authored-by: Cursor <cursoragent@cursor.com>
Use n.exchange's primary brand indigo (#1D31B6) for its bars in the demo
reporting UI.

Co-authored-by: Cursor <cursoragent@cursor.com>
@paullinator paullinator force-pushed the feat/nexchange-plugin branch from 1adc15c to 4bd3686 Compare May 28, 2026 20:54
@socket-security
Copy link
Copy Markdown

@socket-security
Copy link
Copy Markdown

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Action Severity Alert  (click "▶" to expand/collapse)
Warn High
Publisher changed: npm edge-server-tools is now published by mattdpiche

Author: mattdpiche

From: package-lock.jsonnpm/edge-server-tools@0.2.24

ℹ Read more on: This package | This alert | What is unstable ownership?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Try to reduce the number of authors you depend on to reduce the risk to malicious actors gaining access to your supply chain. Packages should remove inactive collaborators with publishing rights from packages on npm.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/edge-server-tools@0.2.24. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn High
Protestware or unwanted behavior: npm es5-ext

Note: The script attempts to run a local post-install script, which could potentially contain malicious code. The error handling suggests that it is designed to fail silently, which is a common tactic in malicious scripts.

From: package-lock.jsonnpm/web3@1.10.4npm/es5-ext@0.10.64

ℹ Read more on: This package | This alert | What is protestware?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Consider that consuming this package may come along with functionality unrelated to its primary purpose.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/es5-ext@0.10.64. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn Medium
Low adoption: npm node-exports-info

Location: Package overview

From: package-lock.jsonnpm/eslint-plugin-react@7.37.5npm/eslint-plugin-import@2.32.0npm/node-exports-info@1.6.0

ℹ Read more on: This package | This alert | What are unpopular packages?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Unpopular packages may have less maintenance and contain other problems.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/node-exports-info@1.6.0. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

View full report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants