Skip to content

feat(onramp): migrate Phantom integration from manual deeplinks to SDK#713

Merged
bmc08gt merged 6 commits into
code/cashfrom
feat/phantom-sdk-migration
May 19, 2026
Merged

feat(onramp): migrate Phantom integration from manual deeplinks to SDK#713
bmc08gt merged 6 commits into
code/cashfrom
feat/phantom-sdk-migration

Conversation

@bmc08gt
Copy link
Copy Markdown
Collaborator

@bmc08gt bmc08gt commented May 15, 2026

Replace hand-rolled deeplink protocol (URL building, X25519 key exchange, NaCl encryption, callback activity) with phantom-connect-wallet SDK.

  • PhantomWalletConnector now drives connect and sign in-process
  • connectAndSign() handles the full ceremony; signAndSend() covers the deferred-amount path (Token.Info / CurrencyCreator)
  • Remove manual deeplink parsing, BoxKeyPair, and DeeplinkType routing
  • Update Hilt module to provide SDK-backed connector
  • Clean up manifest (callback activity, query intent)

Replace hand-rolled deeplink protocol (URL building, X25519 key exchange,
NaCl encryption, callback activity) with phantom-connect-wallet SDK.

- PhantomWalletConnector now drives connect and sign in-process
- connectAndSign() handles the full ceremony; signAndSend() covers the
  deferred-amount path (Token.Info / CurrencyCreator)
- Remove manual deeplink parsing, BoxKeyPair, and DeeplinkType routing
- Update Hilt module to provide SDK-backed connector
- Clean up manifest (callback activity, query intent)

Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
@bmc08gt bmc08gt self-assigned this May 15, 2026
@github-actions github-actions Bot added type: feature New functionality area: network gRPC, connectivity, API, exchange rates area: onramp Deposit, purchase, Coinbase, fiat on-ramp area: build-system Gradle, convention plugins, build-logic area: deeplinks Deep link handling, URL routing, and link parsing labels May 15, 2026
bmc08gt added 2 commits May 15, 2026 14:58
…-migration

Resolve conflicts keeping phantom SDK approach (connectAndSign/signAndSend)
while adopting code/cash FundingSource enum, requestFlowExit(), and
deposit/verification changes.

Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
…WalletController

Replace the old deeplink state machine (ExternalWalletOnRampController/Handler/State)
with PhantomWalletController backed by the phantom-connect-kmp SDK. Uses withCeremony
for multi-hop connect+sign flows, keeping the transparent overlay alive across round-trips.

Navigation callbacks fire before deeplink launch (matching old emitPendingNavigation pattern)
so the host activity renders the target screen before Phantom opens.
@github-actions github-actions Bot added the area: tokens Token accounts, balances, token info label May 18, 2026
bmc08gt added 3 commits May 19, 2026 12:36
…-migration

* origin/code/cash:
  fix(onramp): align Coinbase error codes with official docs and group by UI
  Remove signingConfig from release build type
  build: update release manifest
  chore: move Android SDK constants from buildSrc to version catalog
  build: bump library compileSdk from 36 to 37
  fix(onramp): show region mismatch alert for AssetNotTradableInRegion
  fix(onramp): pass error data to Throwable and add AssetNotTradableInRegion error
  chore: clean up R8 keep rules
  chore: rename BaseViewModel2 to BaseViewModel
  chore: remove deprecated BaseViewModel
  build: remove rxjava cleanup agent now that rxjava was removed
  chore: remove RxJava dependency entirely
  feat: add project-specific Claude agents
  chore: commit bug-triage agent and gitignore plans
  chore: include bug fixes and dependencies in release notes skill
  build: bump targetSdkVersion to 37 (Android 17)
  fix: bump wrapper to 9.4.1
  fix(services): correct user agent for Flipcash
@bmc08gt bmc08gt merged commit 1e031fe into code/cash May 19, 2026
2 of 3 checks passed
@bmc08gt bmc08gt deleted the feat/phantom-sdk-migration branch May 19, 2026 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: build-system Gradle, convention plugins, build-logic area: deeplinks Deep link handling, URL routing, and link parsing area: network gRPC, connectivity, API, exchange rates area: onramp Deposit, purchase, Coinbase, fiat on-ramp area: tokens Token accounts, balances, token info type: feature New functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant