feat: add Bitcoin L1 deposit-address instruction + refundAddress to quotes - #732
feat: add Bitcoin L1 deposit-address instruction + refundAddress to quotes#732ls-bolt[bot] wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
This stack of pull requests is managed by Graphite. Learn more about stacking. |
✱ Stainless preview builds for gridThis PR will update the cli go kotlin openapi php python ruby typescript Edit this comment to update them. They will appear in their respective SDK's changelogs. ✅ grid-typescript studio · code · diff
✅ grid-openapi studio · code · diff
✅ grid-ruby studio · code · diff
✅ grid-go studio · code · diff
✅ grid-kotlin studio · code · diff
✅ grid-python studio · code · diff
✅ grid-php studio · code · diff
✅ grid-cli studio · code · diff
This comment is auto-generated by GitHub Actions and is automatically kept up to date as you push. |
b4a1376 to
0a21316
Compare
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
Add a Bitcoin L1 on/off-ramp surface to the quote/execute flow: - New self-contained PaymentBitcoinDepositAddressInfo member in the PaymentInstructions oneOf (accountType=BITCOIN_L1 discriminator value, on-chain address, optional network fixed to BITCOIN). - Optional refundAddress on RealtimeFundingQuoteSource (on-ramp crypto funding) and AccountDestination (off-ramp crypto payout). The member is self-contained rather than composing BasePaymentAccountInfo, so it does not extend the shared PaymentAccountType enum; the discriminator mapping is the source of truth for the BITCOIN_L1 value. All additions are optional / additive, so no version bump. SDKs are regenerated by the Stainless CI action from the bundled spec + config. Co-Authored-By: peterrojs <[email protected]>
0a21316 to
699ff8c
Compare
|

Summary
Adds the public API surface for a Bitcoin L1 crypto on/off-ramp on the quote/execute flow. All changes are additive and optional (non-breaking), so no version bump.
Changes
PaymentBitcoinDepositAddressInfopayment instruction — a member of thePaymentInstructions.accountOrWalletInfooneOf with a newBITCOIN_L1discriminator value. Carries the on-chain depositaddressand an optionalnetwork(fixed toBITCOIN). The member is self-contained (itsaccountTypeis a local single-value enum), so the sharedPaymentAccountTypeenum is left unchanged and the discriminator mapping remains the source of truth forBITCOIN_L1.refundAddressonRealtimeFundingQuoteSource— the caller's address to return funds to if a crypto deposit cannot be routed to complete the payment (on-ramp).refundAddressonAccountDestination— the address to return funds to if a crypto payout cannot be completed (off-ramp).BITCOINis already a validcryptoNetworkforRealtimeFundingQuoteSource(currency=BTC, cryptoNetwork=BITCOIN); no change needed.Notes
Detect breaking changes(oasdiff) check flags the new oneOf member as a breaking response change and applies thebreaking-changelabel — this is expected for any additive payment-instruction member and is gated by API-reviewer approval, per the repo's workflow design.Test plan
npm run lint:openapi(redocly bundle + redocly lint + spectral lint): passes with 0 errors.oasdiff breaking(v1.16.0, base=main): only the intended additive oneOf-member findings remain; no property removals.