Repository navigation
Fix/about screen - #22
Merged
Merged
Conversation
podkovyrin
approved these changes
Dec 5, 2018
llbartekll
added a commit
that referenced
this pull request
Jun 30, 2026
Wires the pure L1–L5 BIP70 core into the live app via thin adapters and two entry rewrites; both paths route the spend through the funded SwiftDashSDK wallet, fixing the dead BIP70 send. Adapters (implement the injected protocols): SwiftDashSDKWalletSending (wraps buildAndSign — widened to multi-recipient), SwiftDashSDKReceive- AddressProvider, BIP70SendAuthorizer (PIN/biometric → .authCancelled), PaymentNetworkResolver (DSChain → PaymentNetwork), BIP70PaymentService +App factory. @objc bridge: BIP70InteractiveCoordinator + opaque BIP70ConfirmationBox/BIP70SendResultBox, BIP70PaymentOutputFactory. Headless (CTX): SendCoinsService.payWithDashUrl rewritten to BIP70URI → confirmAndSendHeadless → DSTransaction(message:on:) shim; the DWPaymentProcessor/DWPayModel continuation plumbing dropped. Interactive (QR/deep-link/clipboard): the 3 fetchBIP70 sites now call coordinator.fetchAndVerify → DWPaymentInput.bip70Confirmation; DWPaymentProcessor builds a merchant DWPaymentOutput (isMerchantRequest + plain init) and, on confirm, PIN-gates then calls confirmAndSend (build → broadcast → POST). didSendRequest's protocolRequest is now nullable (only `transaction` is consumed). The dead DashSync confirmProtocolRequest BIP70 branch is now unreachable. pbxproj: all L1–L6 PaymentProtocol/adapter files added to dashwallet + dashpay; PaymentProtocolTests.swift to DashWalletTests. Verified: `dashpay` scheme BUILD SUCCEEDED (arm64 sim, no errors/warnings in the new files); manual harness still 56/56. Ships the interim broadcast-first ordering; POST-first flip awaits the P0 SDK FFI (DASHSYNC_MIGRATION.md row #22). Co-Authored-By: Claude Opus 4.8 <[email protected]>
llbartekll
added a commit
that referenced
this pull request
Jul 2, 2026
SwiftDashSDKReceiveAddressReader ignored its DSChain argument (it resolves the wallet via SwiftDashSDKHost.shared), so every call site fetched DWEnvironment.currentChain / account.wallet.chain purely to feed a discarded value. Drop the parameter: receiveAddress(on:) -> receiveAddress(), @objc(receiveAddressOnChain:) -> plain @objc (auto selector `receiveAddress`). - 10 Swift sites + the BIP70 provider drop the arg; 8 shed a now-dead `let chain` binding. - 5 ObjC sites become a selector swap; DWURLRequestHandler sheds a dead `account` local. Sites that still need chain/account for DSPaymentRequest / Apple Watch balance keep them (those belong to #22 / #5-#6). - The reader file is now completely DashSync-free (zero DS* symbols); kept as a permanent SDK-only helper (same shape as #2 / #21). Flips migration item #1 (receive address) from Solo to Done. dashpay scheme builds clean on iPhone 17 sim (arm64). Co-Authored-By: Claude Opus 4.8 <[email protected]>
11 tasks
3 of 5 tasks
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.
No description provided.