Repository navigation
NEAR Intents: 19 destinations CCTP doesn't reach, with recipient checks - #313
Open
ezedike-evan wants to merge 6 commits into
Open
ezedike-evan wants to merge 6 commits into
ezedike-evan wants to merge 6 commits into
Conversation
Format and checksum rules for every chain /near-intents delivers to, with
a plain sentence when an address is wrong ("That isn't an XRP address. XRP
addresses start with r."). 1Click checks most of these itself, but on
2026-11-28 it quoted a Dogecoin address with a broken checksum, so Xebra
checks first. Adds @scure/base 1.2.6 (already in the lockfile via viem)
for base58, bech32 and bech32m.
1Click cannot attach a destination tag, so an exchange account that requires one would refuse NEAR Intents' payment. Read the account on the XRP Ledger (two public servers, fail closed) and refuse require-dest-tag and deposit-auth accounts, and a new account below the 1 XRP reserve.
Moves WANTED out of the route into lib/near-intents/destinations.ts and adds 14 destinations that dry-quoted from Base USDC on 2026-11-28: BNB Chain USDT, Gnosis USDC, Berachain USDT0, Scroll USDT, Robinhood Chain USDG, Aleo USDCx, XRP, Cardano, Dogecoin, Litecoin, Bitcoin Cash, Dash, Fogo and ADI. With NEAR, Bitcoin, Zcash, Tron and TON that is 19 chains NEAR Intents delivers, not Circle. XRP and TON carry a warning that a tag or memo cannot be added. A live test (XEBRA_LIVE_TESTS=1) dry-quotes every entry.
compare and prepare now check the recipient against the destination's chain (and the XRP Ledger for XRP) before asking 1Click for a quote, so no deposit address is issued for an address that cannot receive. Input errors become PlanInputError and reach the page as a 400 with their sentence; before, they were hidden behind "An unexpected error occurred." 1Click's "recipient is not valid" and its bridge minimum in base units are rewritten in plain words.
XRP and TON deliveries cannot carry a destination tag or memo, so the field says to use a wallet the person controls, not an exchange deposit.
Lists the 19 chains NEAR Intents delivers to that CCTP does not reach, each with its asset id and a dry quote at 25 USDC from Base, the chains checked and left out, minimums, recipient formats and why XRP tags and TON memos are not supported. Counts them honestly: 29 chains on Circle's own rails, 48 in total with NEAR Intents. Notes that Stellar-origin quotes failed that day while Base-origin quotes, which this route uses, worked.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
USDC goes over CCTP to a 1Click deposit address on Base, and NEAR Intents delivers onward. This adds 14 new destinations and re-checks the 5 already offered.
New (14): XRP Ledger, Dogecoin, Litecoin, Bitcoin Cash, Dash, Cardano, BNB Chain (USDT), Gnosis (USDC), Berachain (USDT0), Scroll (USDT), Robinhood Chain (USDG), ADI Chain, Fogo, Aleo (USDCx).
Re-checked: NEAR, Bitcoin, Zcash, Tron, TON.
Left out: Abstract (1Click rejects every 0x address), Movement USDCx (no liquidity), Miden/PRL/QTC (address format unknown).
Every one was dry-quoted at 25 USDC from Base on 2026-11-28; evidence in
docs/near-intents-destinations.md.Recipient safety
xrpl.tsreads the account first and refuses tag-required (exchange) accounts, deposit-auth accounts, and new accounts that would get under the 1 XRP reserve. If no XRPL server answers, it refuses.Tests: 47 new unit tests (
recipients,destinations,xrpl,plan.recipient,_body);lib/near-intents55 pass. Live testXEBRA_LIVE_TESTS=1 … vitest run destinations.live24/24 against 1Click (skipped by default). Webtscclean, biome 0 errors.Proof still to do: 5 USDC to an XRP
r…wallet you control (not an exchange).🤖 Generated with Claude Code