Repository navigation
0.9.0
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) andStatelessSwapRequest(field 4). Only2selectsswap_v2.
Unset,0and1keep the legacyswapinstruction.- The server builds the swap instruction from this field, and the client rebuilds and signs the
same transaction locally. A client that sends2has to buildswap_v2itself: discriminator
[43, 4, 237, 11, 26, 201, 30, 98], the sameamount_inandmin_amount_outargs, andswap'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
StatefulSwapResponseand
StatelessSwapResponsenow list the swap step asSwaporSwapV2, perswap_version.
Unchanged
Nothing was renumbered, and nothing existing changed type or meaning. No service, RPC, message or
enum case was removed.