Skip to content

0.9.0

Choose a tag to compare

@github-actions github-actions released this 22 Oct 16:31
· 3 commits to main since this release

Synced to ocp-protobuf-api@98cf14de,
picking up #71. Only transaction.v1 moved.

Stablecoin swaps can now use CoinbaseStableSwapper's swap_v2 instruction, which is swap without
the deprecated whitelist account. The field is additive, so upgrading changes nothing until a client
sets it.

Added

  • swap_version (uint32, at most 2) on the CoinbaseStableSwapper initiate parameters of
    StatefulSwapRequest (field 9) and StatelessSwapRequest (field 4). Only 2 selects swap_v2.
    Unset, 0 and 1 keep the legacy swap instruction.
  • The server builds the swap instruction from this field, and the client rebuilds and signs the
    same transaction locally. A client that sends 2 has to build swap_v2 itself: discriminator
    [43, 4, 237, 11, 26, 201, 30, 98], the same amount_in and min_amount_out args, and swap's
    accounts with the whitelist (index 12) removed. If the field and the local instruction disagree,
    the swap fails.

Changed

  • Comments only: the CoinbaseStableSwapper server parameters on StatefulSwapResponse and
    StatelessSwapResponse now list the swap step as Swap or SwapV2, per swap_version.

Unchanged

Nothing was renumbered, and nothing existing changed type or meaning. No service, RPC, message or
enum case was removed.