Skip to content

Fix/about screen - #22

Merged
podkovyrin merged 2 commits into
dashpay:developfrom
QuantumExplorer:fix/aboutScreen
Dec 5, 2018
Merged

podkovyrin merged 2 commits into
dashpay:developfrom
QuantumExplorer:fix/aboutScreen

Conversation

@QuantumExplorer

Copy link
Copy Markdown
Member

No description provided.

@podkovyrin
podkovyrin merged commit 1c0faa1 into dashpay:develop Dec 5, 2018
podkovyrin added a commit that referenced this pull request Jul 20, 2020
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants