You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement a marketplace.v1 web contract profile for peer-to-peer exchange, inspired by Mostro.
Context
Mostro is a P2P Bitcoin↔fiat exchange running on Nostr + Lightning. Its state machine (create order → take → fiat-sent → release/dispute/resolve) maps directly to a web contract with 7 transitions and webledger escrow.
Summary
Implement a
marketplace.v1web contract profile for peer-to-peer exchange, inspired by Mostro.Context
Mostro is a P2P Bitcoin↔fiat exchange running on Nostr + Lightning. Its state machine (create order → take → fiat-sent → release/dispute/resolve) maps directly to a web contract with 7 transitions and webledger escrow.
What's needed
marketplace.js) — transition functions:createOrder,takeOrder,fiatSent,release,cancel,dispute,resolvecreateOrderdebits seller's balance (locks funds),releasecredits buyer,cancel/resolvereturns to appropriate partyTransitions
create-ordertake-orderfiat-sentreleasecanceldisputeresolveDependencies
References