Skip to content

refactor: move to trade terminology#296

Merged
Lederstrumpf merged 13 commits intofarcaster-project:mainfrom
h4sh3d:refactor/move-to-trade-terminology
Sep 2, 2022
Merged

refactor: move to trade terminology#296
Lederstrumpf merged 13 commits intofarcaster-project:mainfrom
h4sh3d:refactor/move-to-trade-terminology

Conversation

@h4sh3d
Copy link
Member

@h4sh3d h4sh3d commented Aug 29, 2022

Offer and negotiation are misleading as they are used to initialized a swap more than to negotiate a trade. To separate the current ambiguity we move completely to trade terminology to allow negotiation and offer to fulfill their roles later.

Also the negotiation is not part of the minimum stack and does not require to be inside core (nor even node), this can be left to other implementations.

EDIT

farcaster_core::negotiation becomes farcaster_core::trade
Offer becomes DealParameters
PublicOffer becomes Deal

@h4sh3d h4sh3d added this to the v0.6.0 milestone Aug 29, 2022
@h4sh3d
Copy link
Member Author

h4sh3d commented Aug 29, 2022

After some discussions we are moving from Trade to Deal because Trade and Swap are too close. The ideal flow would be

Offers (outside of scope)  --->  Deals  --->  Swaps

The cli would be able to list the registered deals and running swaps. A market maker would register deals and share them so takers can take deals.

@h4sh3d h4sh3d force-pushed the refactor/move-to-trade-terminology branch from a697ffd to ebb40d4 Compare August 29, 2022 15:30
@h4sh3d h4sh3d marked this pull request as draft August 29, 2022 15:39
@h4sh3d h4sh3d marked this pull request as ready for review August 30, 2022 08:30
@h4sh3d h4sh3d requested a review from Lederstrumpf August 30, 2022 09:26
Copy link
Member

@Lederstrumpf Lederstrumpf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK, the language & terminology is consistent & sensible everywhere. I made some light adjustments in 8298692 - feel free to change those.

One place that this PR didn't touch is OfferString deserialization - I think that's a vestigial hack that can also be removed.

@Lederstrumpf
Copy link
Member

Lederstrumpf commented Sep 2, 2022

One place that this PR didn't touch is OfferString deserialization - I think that's a vestigial hack that can also be removed.

git blame snitches that this was my dirt, and it's not used anywhere externally, so done in 1544847.

@Lederstrumpf Lederstrumpf merged commit db85bae into farcaster-project:main Sep 2, 2022
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.

3 participants