Skip to content

chore(contract): sync ocp protos to 98cf14de (0.9.0) - #12

Merged
bmc08gt merged 2 commits into
mainfrom
chore/sync-ocp-98cf14de
Oct 22, 2026
Merged

bmc08gt merged 2 commits into
mainfrom
chore/sync-ocp-98cf14de

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

Syncs transaction.v1 to ocp-protobuf-api@98cf14de (#71), for release as 0.9.0.

The server side is code-payments/ocp-server#278. It builds CoinbaseStableSwapper's swap_v2 instruction when the client asks for it. swap_v2 is swap without the deprecated whitelist account.

Contract diff

  • swap_version (uint32, lte = 2) is added to the CoinbaseStableSwapper initiate params of StatefulSwapRequest (field 9) and StatelessSwapRequest (field 4). Only 2 selects swap_v2. Unset, 0 and 1 keep the legacy swap.
  • Comments only: the swap step in both responses' CoinbaseStableSwapper server parameters is now listed as Swap or SwapV2, per swap_version.
  • Nothing was renumbered or removed.

The CHANGELOG.md entry for 0.9.0 is in this PR, so publish.yml can run once it merges.

App PRs

Both are drafts until 0.9.0 is published and their pins move:

Neither app should ship v2 before code-payments/ocp-server#278 is deployed. An older server ignores swap_version and builds swap, the app signs swap_v2, and the swap fails.

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