Skip to content

swap_status v1 vs v2 #544

@mobias17

Description

@mobias17

looking at the code e.g in /mm2src/mm2_main/src/lp_swap/swap_v2_rpcs.rs it becomes obvious that the swap_status object received, are about to receive an update.

MakerV1(MakerSavedSwap), TakerV1(TakerSavedSwap), MakerV2(MySwapForRpc<MakerSwapEvent>), TakerV2(MySwapForRpc<TakerSwapEvent>),

The swap status object map lost the type field.
The map is represented now by a map

"swap_type": "TakerV1" <-- see above
"swap_data": swap status object map
`
This seems to be undocumented as well as how the v1 vs v2 obejcts differ.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions