Skip to content

feat(flipcash): adopt ocp 0.7.0 and flipcash2 0.19.0 contracts - #1781

Merged
bmc08gt merged 4 commits into
code/cashfrom
chore/sync-contract-ocp-00ea80d0-flipcash2-1897108a
Oct 14, 2026
Merged

bmc08gt merged 4 commits into
code/cashfrom
chore/sync-contract-ocp-00ea80d0-flipcash2-1897108a

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

Pins ocp-client-protocol 0.7.0 (code-payments/ocp-client-protocol#10) and flipcash2-client-protocol 0.19.0 (code-payments/flipcash2-client-protocol#27), both published, in gradle/libs.versions.toml, one commit per package.

Adopts the contract changes:

  • ChatMetadata.DmPayment.Action moved to the top-level PaymentAction. DmPaymentMetadata and its test were the only users.
  • A Poll stack modelled on Moderation: PollApi, PollService, PollRepository, PollController, the Hilt binding, and CreatePollError / GetPollError / GetPollsError / VoteError. TEXT_MODERATED carries the flagged category through toFlaggedCategory().
  • CashContent.receiver maps to MessageContent.Cash.receiver. It's in memory only; the chat entity doesn't store it.
  • BalanceApi.getBalances takes excludePerMintBalances, defaulting to false, so requests are unchanged.

New oneof cases need no handling yet: system messages already render fallback_text, and a poll widget falls into the existing unsupported-widget bubble.

Left for the feature work: poll domain models (the layers pass the generated types through), a WidgetContent.Poll case (it breaks four exhaustive whens and needs a DB column), MintBalance.quarks, link previews, and persisting receiver.

…_mint_balances

DmPayment.Action moved to a top-level PaymentAction. Map CashContent.receiver
onto MessageContent.Cash and expose GetBalancesRequest.exclude_per_mint_balances
on BalanceApi.
@bmc08gt
bmc08gt marked this pull request as ready for review October 14, 2026 21:17
@github-actions github-actions Bot added the area: build-system Gradle, convention plugins, build-logic label Oct 14, 2026
@bmc08gt
bmc08gt merged commit 899f8a6 into code/cash Oct 14, 2026
4 checks passed
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: network gRPC, connectivity, API, exchange rates type: feature New functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant