Skip to content

feat: near intents plasma support#11702

Merged
NeOMakinG merged 6 commits intodevelopfrom
feat_near_plasma
Jan 17, 2026
Merged

feat: near intents plasma support#11702
NeOMakinG merged 6 commits intodevelopfrom
feat_near_plasma

Conversation

@gomesalexandre
Copy link
Contributor

@gomesalexandre gomesalexandre commented Jan 16, 2026

Description

Add Plasma as a supported chain for NEAR Intents swapper.

Issue (if applicable)

Risk

Low - Plasma uses existing EVM infrastructure, and NEAR Intents API handles it correctly.

What protocols, transaction types, wallets or contract interactions might be affected by this PR?

NEAR Intents swaps involving Plasma.

Testing

Engineering

Test Plasma swaps via NEAR Intents with supported assets (XPL native, USDT).

NOTE: USDT on Plasma is theoretically supported as per API, but currently broken upstream, not able to trade it, so only XPL should be tested here.

Operations

  • 🏁 My feature is behind a flag and doesn't require operations testing (yet)

Screenshots (if applicable)

https://jam.dev/c/09c46a42-80e0-49d2-9b39-7b92b9063383

Summary by CodeRabbit

  • New Features
    • Added support for the PlasmaMainnet blockchain network in the swapper, enabling swaps and transactions on this new chain.
    • Updated internal chain mappings and protocol chain list so the app recognizes and routes swaps for PlasmaMainnet seamlessly.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 16, 2026

📝 Walkthrough

Walkthrough

Added PlasmaMainnet as a supported NEAR Intents chain: included in supported chain IDs, mapped to the string 'plasma', and registered in the NEP-245 chains constant.

Changes

Cohort / File(s) Change Summary
NEAR Intents types & mappings
packages/swapper/src/swappers/NearIntentsSwapper/types.ts
Added PlasmaMainnet to nearIntentsSupportedChainIds and added PlasmaMainnet -> 'plasma' in chainIdToNearIntentsChain.
NEP-245 chain list
packages/swapper/src/swappers/NearIntentsSwapper/utils/helpers/helpers.ts
Extended NEP245_CHAINS to include the 'plasma' entry.

Sequence Diagram(s)

(omitted — changes are configuration/constants only)

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • premiumjibles

Poem

🐰 A tiny hop, a plasma cheer,
New chain added, bright and clear,
'plasma' mapped, the lists expand,
Swapper hops across the land ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The pull request title 'feat: near intents plasma support' clearly and concisely describes the main change: adding Plasma as a supported chain for the NEAR Intents swapper. The title directly aligns with the file changes, which add PlasmaMainnet to supported chain IDs and the NEP245_CHAINS constant.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat_near_plasma

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gomesalexandre gomesalexandre marked this pull request as ready for review January 16, 2026 11:56
@gomesalexandre gomesalexandre requested a review from a team as a code owner January 16, 2026 11:56
Copy link
Collaborator

@NeOMakinG NeOMakinG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Base automatically changed from feat_near_bch to develop January 17, 2026 14:55
@NeOMakinG NeOMakinG enabled auto-merge (squash) January 17, 2026 15:24
@NeOMakinG NeOMakinG merged commit 04026b4 into develop Jan 17, 2026
4 checks passed
@NeOMakinG NeOMakinG deleted the feat_near_plasma branch January 17, 2026 18:10
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.

2 participants