Title: marketplace.v1 — P2P exchange contract (Mostro-inspired) · Issue #200 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub
Open Graph Title: marketplace.v1 — P2P exchange contract (Mostro-inspired) · Issue #200 · JavaScriptSolidServer/JavaScriptSolidServer
X Title: marketplace.v1 — P2P exchange contract (Mostro-inspired) · Issue #200 · JavaScriptSolidServer/JavaScriptSolidServer
Description: Summary 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 → relea...
Open Graph Description: Summary 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 ...
X Description: Summary 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 ...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/200
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"marketplace.v1 — P2P exchange contract (Mostro-inspired)","articleBody":"## Summary\n\nImplement a `marketplace.v1` web contract profile for peer-to-peer exchange, inspired by [Mostro](https://mostro.network/).\n\n## Context\n\nMostro 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.\n\n## What's needed\n\n1. **Contract source** (`marketplace.js`) — transition functions: `createOrder`, `takeOrder`, `fiatSent`, `release`, `cancel`, `dispute`, `resolve`\n2. **Executor support** — the generic contract executor (see #200) handles this automatically once built\n3. **Webledger escrow** — `createOrder` debits seller's balance (locks funds), `release` credits buyer, `cancel`/`resolve` returns to appropriate party\n\n## Transitions\n\n| Transition | Actor | Ledger effect |\n|------------|-------|---------------|\n| `create-order` | seller | debit seller (escrow) |\n| `take-order` | buyer | — |\n| `fiat-sent` | buyer | — |\n| `release` | seller | credit buyer |\n| `cancel` | either | credit seller (refund) |\n| `dispute` | either | — (state change only) |\n| `resolve` | arbiter | credit winner |\n\n## Dependencies\n\n- Generic contract executor (#200)\n- Webledgers integration (existing)\n\n## References\n\n- Spec: webcontracts/webcontracts.github.io#6\n- Mostro docs: https://mostro.network/docs-english/\n- Mostro GitHub: https://github.com/MostroP2P","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-03-12T04:34:59Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/200"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:89460970-ce9c-1121-300e-cf0f3c172273 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 90A8:CFAE:2C19930:3A25905:6B0390E4 |
| html-safe-nonce | 3e3ce072653a018d676a58738748f0b0bd18e79f07462aac767e51a3eeee1cf5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MEE4OkNGQUU6MkMxOTkzMDozQTI1OTA1OjZCMDM5MEU0IiwidmlzaXRvcl9pZCI6IjczODgzNDQ0MDUyODA5MTk3ODAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0700352072e35fd1f04400275ce3d5f42822c2c0a3ce3ff273373b3ed91e940d |
| hovercard-subject-tag | issue:4062082142 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JavaScriptSolidServer/JavaScriptSolidServer/200/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6ad0f0aeee1d7b3010ddcab7c155f49203e0b594047fc8379720f18c1595c470/JavaScriptSolidServer/JavaScriptSolidServer/issues/200 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6ad0f0aeee1d7b3010ddcab7c155f49203e0b594047fc8379720f18c1595c470/JavaScriptSolidServer/JavaScriptSolidServer/issues/200 |
| og:image:alt | Summary 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 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | melvincarvalho |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/JavaScriptSolidServer/JavaScriptSolidServer git https://github.com/JavaScriptSolidServer/JavaScriptSolidServer.git |
| octolytics-dimension-user_id | 205442424 |
| octolytics-dimension-user_login | JavaScriptSolidServer |
| octolytics-dimension-repository_id | 958025407 |
| octolytics-dimension-repository_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 958025407 |
| octolytics-dimension-repository_network_root_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width