Cross-chain: Orchestra receive - #964
Draft
dangeross wants to merge 1 commit into
Draft
Conversation
dangeross
force-pushed
the
savage-orchestra-receive
branch
2 times, most recently
from
June 23, 2026 16:25
0db11be to
63c87f8
Compare
dangeross
force-pushed
the
savage-orchestra-receive
branch
2 times, most recently
from
June 25, 2026 12:57
fe4cc3f to
682b1e8
Compare
dangeross
force-pushed
the
savage-orchestra-receive
branch
from
July 13, 2026 10:49
682b1e8 to
a71015e
Compare
dangeross
force-pushed
the
savage-orchestra-receive
branch
2 times, most recently
from
August 26, 2026 08:28
446e300 to
391e507
Compare
dangeross
force-pushed
the
savage-orchestra-receive
branch
from
August 28, 2026 10:03
391e507 to
51da2b2
Compare
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.
Adds Orchestra-backed cross-chain receive: external chain → Spark (BTC sats or USDB). Companion to the existing cross-chain send.
What's new
ReceivePaymentMethod::CrossChain { route, amount, destination, fee_mode, max_slippage_bps, target_overpay_bps }variant.amountis denominated in USDB base units (6-decimal) regardless of destination or fee mode ($1 = 1_000_000), so callers never touch destination decimals.FeesExcluded(default) treats it as the receiver's net target and the SDK sizes the sender's deposit.FeesIncludedtreats it as the deposit and the receiver landsamount − fees.destinationauto-picks the wallet's active stable-balance token if the route supports it, otherwise Bitcoin. Explicit values must appear inroute.accepted_assets.ReceivePaymentResponse.cross_chain_infocarries the deposit amount, expected received amount, destination denomination, provider fee (service_fee_amount+service_fee_asset, symmetric with the send-side field), and quote expiry.CrossChainService::prepare_receivetrait method. Orchestra implements it; Boltz returnsInvalidInput.Breaking changes
Two enums and two
CrossChainRoutePairfields are renamed so the names read naturally from both send and receive:SourceAsset→SparkAsset(enum)SourceChain→DeliveryMethod(enum)CrossChainRoutePair.supported_sources→accepted_assetsCrossChainRoutePair.supported_source_chains→delivery_methodsRenames propagate through UniFFI / wasm-bindgen / FRB, so downstream integrators referencing the old names will need to update.
Notes
prepare_payment_link, which uses destination-native units. Worth reviewer input.