Skip to content

refactor(discrete-curve): delegate DiscreteBondingCurve to SharedCoreKit - #731

Merged
bmc08gt merged 4 commits into
mainfrom
refactor/shared-core-discrete-curve
Sep 11, 2026
Merged

refactor(discrete-curve): delegate DiscreteBondingCurve to SharedCoreKit#731
bmc08gt merged 4 commits into
mainfrom
refactor/shared-core-discrete-curve

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Sep 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • DiscreteBondingCurve.swift's low-level methods now delegate to SharedCoreKit.SharedDiscreteCurve; the high-level buy/sell/marketCap API is untouched.
  • Deleted the hand-maintained UInt128 and DiscreteCurveTables types now that the shared module owns that logic.
  • Removed 13 tests from DiscreteBondingCurveTests.swift that asserted on the now-deleted internal types; equivalent coverage lives in the shared KMP module's own fixture-based tests.

This is a draft: SharedDiscreteCurve currently only exists via a manual copy into ephemeral build caches, not through a published flipcash-shared-core-spm release, so CI cannot build clean until the companion code-android-app PR merges and SharedCore is republished.

@bmc08gt bmc08gt self-assigned this Sep 6, 2026
flipcash-shared-core-spm 0.6.0 renames SharedDiscreteCurve to
SharedBondingCurve, which DiscreteBondingCurve.swift already expects.
Bump the version floor in the three Package.swift manifests and the
Xcode project's package reference, then re-resolve so Package.resolved
picks up 0.6.0.
@bmc08gt
bmc08gt marked this pull request as ready for review September 11, 2026 20:00
…discrete-curve

* origin/main: (27 commits)
  fix(database): share one SQLite writer per owner and take write locks up front (#759)
  feat(chat): declare the payment action on tip DM payments (#752)
  refactor(chat): drop the deprecated new_messages overlay (#757)
  feat(notifications): write prefetched messages into the shared store (#756)
  refactor(store): move the persistence layer into a shared FlipcashStore package (#755)
  feat(database): move the SQLite store into the App Group container (#754)
  feat(database): open the store on demand, close it on background (#753)
  feat(nse): extension crash reporting, a WAL checkpoint, and on-device push hooks (#751)
  feat(home): long-press the You tab to open the account switcher (#749)
  fix(tests): reset Photos access before the previous app instance lingers (#746)
  chore: bump version to 2026.9.2 (#745)
  revert: back out the Coinbase Stable Swapper authority migration (#747) (#750)
  fix(swap): follow the Coinbase Stable Swapper authority migration (#747)
  fix(tests): cancel a cash link through the details screen (#744)
  fix(chat): make the whole Send Cash pill tappable while it stands alone (#743)
  fix(username): drop a leading @ in the validator (#742)
  fix(chat): scope the send-button spring to the button (#741)
  fix(transactions): tighten the details card stack and drop the header badge (#740)
  fix(transactions): draw View in Chat as a card, not the primary action (#739)
  feat(chat): flash the message a reply-quote jump lands on (#738)
  ...

# Conflicts:
#	Code.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
#	FlipcashCore/Package.swift
@bmc08gt
bmc08gt merged commit 5e1cd3d into main Sep 11, 2026
1 check passed
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.

1 participant