@moonbeam-foundation/sdk 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +71 -599
- package/dist/market/index.d.ts +120 -1
- package/dist/market/index.d.ts.map +1 -1
- package/dist/market/index.js +75 -1
- package/dist/market/index.js.map +1 -1
- package/dist/workflows/index.d.ts +11 -2
- package/dist/workflows/index.d.ts.map +1 -1
- package/dist/workflows/index.js +19 -44
- package/dist/workflows/index.js.map +1 -1
- package/dist/workflows/steps.d.ts +48 -0
- package/dist/workflows/steps.d.ts.map +1 -0
- package/dist/workflows/steps.js +62 -0
- package/dist/workflows/steps.js.map +1 -0
- package/dist/workflows/verified.d.ts +17 -0
- package/dist/workflows/verified.d.ts.map +1 -0
- package/dist/workflows/verified.js +219 -0
- package/dist/workflows/verified.js.map +1 -0
- package/docs/REFERENCE.md +511 -0
- package/docs/WORKFLOWS.md +164 -0
- package/docs/studio/hire-from-chat.png +0 -0
- package/docs/studio/list-business.png +0 -0
- package/docs/studio/onboard-batch.png +0 -0
- package/docs/studio/onboard.png +0 -0
- package/docs/studio/publish.png +0 -0
- package/docs/studio/resell.png +0 -0
- package/docs/studio/sell-edge.png +0 -0
- package/docs/workflows/hire-from-chat.png +0 -0
- package/docs/workflows/hire-from-chat.svg +102 -0
- package/docs/workflows/list-business.png +0 -0
- package/docs/workflows/list-business.svg +116 -0
- package/docs/workflows/onboard-batch.png +0 -0
- package/docs/workflows/onboard-batch.svg +66 -0
- package/docs/workflows/onboard.png +0 -0
- package/docs/workflows/onboard.svg +76 -0
- package/docs/workflows/publish.png +0 -0
- package/docs/workflows/publish.svg +86 -0
- package/docs/workflows/resell.png +0 -0
- package/docs/workflows/resell.svg +116 -0
- package/docs/workflows/sell-edge.png +0 -0
- package/docs/workflows/sell-edge.svg +46 -0
- package/examples/60-cross-list-a-seller.mjs +36 -0
- package/examples/README.md +7 -0
- package/examples/data/cross-list.recorded.json +10 -0
- package/package.json +3 -2
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="1096" height="358" viewBox="0 0 1096 358" font-family="Inter,system-ui,-apple-system,Segoe UI,Helvetica,Arial,sans-serif">
|
|
2
|
+
<defs><marker id="a" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto"><path d="M0,0 L10,5 L0,10 z" fill="#98A2B3"/></marker></defs>
|
|
3
|
+
<rect width="100%" height="100%" rx="14" fill="#FCFCFD"/>
|
|
4
|
+
<text x="28" y="30" font-size="17" font-weight="700" fill="#101828">Make your agent hireable</text>
|
|
5
|
+
<text x="28" y="48" font-size="11.5" fill="#667085">Moonbeam Studio workflow · 7 nodes · verified 2026-11-06 · npx moonbeam workflows onboard</text>
|
|
6
|
+
<path d="M212,105 L239,105" stroke="#98A2B3" stroke-width="1.6" fill="none" marker-end="url(#a)"/>
|
|
7
|
+
<path d="M426,105 L453,105" stroke="#98A2B3" stroke-width="1.6" fill="none" marker-end="url(#a)"/>
|
|
8
|
+
<path d="M640,105 L667,105" stroke="#98A2B3" stroke-width="1.6" fill="none" marker-end="url(#a)"/>
|
|
9
|
+
<path d="M854,105 L881,105" stroke="#98A2B3" stroke-width="1.6" fill="none" marker-end="url(#a)"/>
|
|
10
|
+
<path d="M976,146 V167.5 H120 V189" stroke="#98A2B3" stroke-width="1.6" fill="none" marker-end="url(#a)"/>
|
|
11
|
+
<path d="M212,233 L239,233" stroke="#98A2B3" stroke-width="1.6" fill="none" marker-end="url(#a)"/>
|
|
12
|
+
<g transform="translate(28,64)">
|
|
13
|
+
<rect width="184" height="82" rx="10" fill="#FFFFFF" stroke="#D0D5DD"/>
|
|
14
|
+
<rect width="6" height="82" rx="3" fill="#5B6475"/>
|
|
15
|
+
<text x="16" y="21" font-size="10.5" font-weight="600" fill="#5B6475" letter-spacing=".4">TRIGGER</text>
|
|
16
|
+
<text x="16" y="40" font-size="14" font-weight="600" fill="#101828">Start onboarding</text>
|
|
17
|
+
<text x="16" y="57" font-size="10.5" fill="#475467" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">trigger</text>
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
</g>
|
|
21
|
+
<g transform="translate(242,64)">
|
|
22
|
+
<rect width="184" height="82" rx="10" fill="#FFFFFF" stroke="#D0D5DD"/>
|
|
23
|
+
<rect width="6" height="82" rx="3" fill="#1F8F8B"/>
|
|
24
|
+
<text x="16" y="21" font-size="10.5" font-weight="600" fill="#1F8F8B" letter-spacing=".4">KNOWLEDGE</text>
|
|
25
|
+
<text x="16" y="40" font-size="14" font-weight="600" fill="#101828">find</text>
|
|
26
|
+
<text x="16" y="57" font-size="10.5" fill="#475467" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">GET /v1/agents/identity</text>
|
|
27
|
+
<text x="16" y="72" font-size="10.5" fill="#667085" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">identity()</text>
|
|
28
|
+
<circle cx="169" cy="15" r="9" fill="#12B76A"/><text x="169" y="19.5" font-size="12" font-weight="700" fill="#fff" text-anchor="middle">✓</text>
|
|
29
|
+
</g>
|
|
30
|
+
<g transform="translate(456,64)">
|
|
31
|
+
<rect width="184" height="82" rx="10" fill="#FFFFFF" stroke="#D0D5DD"/>
|
|
32
|
+
<rect width="6" height="82" rx="3" fill="#2F6FDB"/>
|
|
33
|
+
<text x="16" y="21" font-size="10.5" font-weight="600" fill="#2F6FDB" letter-spacing=".4">CHECK</text>
|
|
34
|
+
<text x="16" y="40" font-size="14" font-weight="600" fill="#101828">verdict</text>
|
|
35
|
+
<text x="16" y="57" font-size="10.5" fill="#475467" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">GET /v1/agents/:chain/:id/…</text>
|
|
36
|
+
<text x="16" y="72" font-size="10.5" fill="#667085" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">readiness()</text>
|
|
37
|
+
<circle cx="169" cy="15" r="9" fill="#12B76A"/><text x="169" y="19.5" font-size="12" font-weight="700" fill="#fff" text-anchor="middle">✓</text>
|
|
38
|
+
</g>
|
|
39
|
+
<g transform="translate(670,64)">
|
|
40
|
+
<rect width="184" height="82" rx="10" fill="#FFFFFF" stroke="#D0D5DD"/>
|
|
41
|
+
<rect width="6" height="82" rx="3" fill="#2F6FDB"/>
|
|
42
|
+
<text x="16" y="21" font-size="10.5" font-weight="600" fill="#2F6FDB" letter-spacing=".4">CHECK</text>
|
|
43
|
+
<text x="16" y="40" font-size="14" font-weight="600" fill="#101828">fix</text>
|
|
44
|
+
<text x="16" y="57" font-size="10.5" fill="#475467" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">onboard.fix</text>
|
|
45
|
+
<text x="16" y="72" font-size="10.5" fill="#667085" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">checkAgent()</text>
|
|
46
|
+
<circle cx="169" cy="15" r="9" fill="#12B76A"/><text x="169" y="19.5" font-size="12" font-weight="700" fill="#fff" text-anchor="middle">✓</text>
|
|
47
|
+
</g>
|
|
48
|
+
<g transform="translate(884,64)">
|
|
49
|
+
<rect width="184" height="82" rx="10" fill="#FFFFFF" stroke="#D0D5DD"/>
|
|
50
|
+
<rect width="6" height="82" rx="3" fill="#2F6FDB"/>
|
|
51
|
+
<text x="16" y="21" font-size="10.5" font-weight="600" fill="#2F6FDB" letter-spacing=".4">CHECK</text>
|
|
52
|
+
<text x="16" y="40" font-size="14" font-weight="600" fill="#101828">re-check</text>
|
|
53
|
+
<text x="16" y="57" font-size="10.5" fill="#475467" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">POST /v1/agents/probe</text>
|
|
54
|
+
<text x="16" y="72" font-size="10.5" fill="#667085" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">testEndpoint()</text>
|
|
55
|
+
<circle cx="169" cy="15" r="9" fill="#12B76A"/><text x="169" y="19.5" font-size="12" font-weight="700" fill="#fff" text-anchor="middle">✓</text>
|
|
56
|
+
</g>
|
|
57
|
+
<g transform="translate(28,192)">
|
|
58
|
+
<rect width="184" height="82" rx="10" fill="#FFFFFF" stroke="#D0D5DD"/>
|
|
59
|
+
<rect width="6" height="82" rx="3" fill="#D9733F"/>
|
|
60
|
+
<text x="16" y="21" font-size="10.5" font-weight="600" fill="#D9733F" letter-spacing=".4">TRANSFORM</text>
|
|
61
|
+
<text x="16" y="40" font-size="14" font-weight="600" fill="#101828">assured</text>
|
|
62
|
+
<text x="16" y="57" font-size="10.5" fill="#475467" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">POST /v1/pools/quote</text>
|
|
63
|
+
<text x="16" y="72" font-size="10.5" fill="#667085" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">quoteEdge()</text>
|
|
64
|
+
<circle cx="169" cy="15" r="9" fill="#12B76A"/><text x="169" y="19.5" font-size="12" font-weight="700" fill="#fff" text-anchor="middle">✓</text>
|
|
65
|
+
</g>
|
|
66
|
+
<g transform="translate(242,192)">
|
|
67
|
+
<rect width="184" height="82" rx="10" fill="#FFFFFF" stroke="#D0D5DD"/>
|
|
68
|
+
<rect width="6" height="82" rx="3" fill="#344054"/>
|
|
69
|
+
<text x="16" y="21" font-size="10.5" font-weight="600" fill="#344054" letter-spacing=".4">OUTPUT</text>
|
|
70
|
+
<text x="16" y="40" font-size="14" font-weight="600" fill="#101828">Onboarding report</text>
|
|
71
|
+
<text x="16" y="57" font-size="10.5" fill="#475467" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">output</text>
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
</g>
|
|
75
|
+
<g transform="translate(28,304)"><rect width="10" height="10" rx="2" fill="#5B6475"/><text x="16" y="9.5" font-size="11" fill="#475467">trigger</text></g><g transform="translate(178,304)"><rect width="10" height="10" rx="2" fill="#1F8F8B"/><text x="16" y="9.5" font-size="11" fill="#475467">knowledge</text></g><g transform="translate(328,304)"><rect width="10" height="10" rx="2" fill="#2F6FDB"/><text x="16" y="9.5" font-size="11" fill="#475467">check</text></g><g transform="translate(478,304)"><rect width="10" height="10" rx="2" fill="#D9733F"/><text x="16" y="9.5" font-size="11" fill="#475467">transform</text></g><g transform="translate(628,304)"><rect width="10" height="10" rx="2" fill="#344054"/><text x="16" y="9.5" font-size="11" fill="#475467">output</text></g><g transform="translate(28,330)"><circle cx="5" cy="5" r="6" fill="#12B76A"/><text x="5" y="8.5" font-size="8.5" font-weight="700" fill="#fff" text-anchor="middle">✓</text><text x="16" y="9.5" font-size="11" fill="#475467">ran live</text></g><g transform="translate(178,330)"><circle cx="5" cy="5" r="6" fill="#7A5AF8"/><text x="5" y="8.5" font-size="8.5" font-weight="700" fill="#fff" text-anchor="middle">◇</text><text x="16" y="9.5" font-size="11" fill="#475467">planned</text></g><g transform="translate(328,330)"><circle cx="5" cy="5" r="6" fill="#F79009"/><text x="5" y="8.5" font-size="8.5" font-weight="700" fill="#fff" text-anchor="middle">·</text><text x="16" y="9.5" font-size="11" fill="#475467">not run today</text></g><g transform="translate(478,330)"><circle cx="5" cy="5" r="6" fill="#98A2B3"/><text x="5" y="8.5" font-size="8.5" font-weight="700" fill="#fff" text-anchor="middle">▪</text><text x="16" y="9.5" font-size="11" fill="#475467">the Studio’s own</text></g>
|
|
76
|
+
</svg>
|
|
Binary file
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="1096" height="358" viewBox="0 0 1096 358" font-family="Inter,system-ui,-apple-system,Segoe UI,Helvetica,Arial,sans-serif">
|
|
2
|
+
<defs><marker id="a" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto"><path d="M0,0 L10,5 L0,10 z" fill="#98A2B3"/></marker></defs>
|
|
3
|
+
<rect width="100%" height="100%" rx="14" fill="#FCFCFD"/>
|
|
4
|
+
<text x="28" y="30" font-size="17" font-weight="700" fill="#101828">Publish a workflow and build its record</text>
|
|
5
|
+
<text x="28" y="48" font-size="11.5" fill="#667085">Moonbeam Studio workflow · 8 nodes · verified 2026-11-06 · npx moonbeam workflows publish</text>
|
|
6
|
+
<path d="M212,105 L239,105" stroke="#98A2B3" stroke-width="1.6" fill="none" marker-end="url(#a)"/>
|
|
7
|
+
<path d="M426,105 L453,105" stroke="#98A2B3" stroke-width="1.6" fill="none" marker-end="url(#a)"/>
|
|
8
|
+
<path d="M640,105 L667,105" stroke="#98A2B3" stroke-width="1.6" fill="none" marker-end="url(#a)"/>
|
|
9
|
+
<path d="M854,105 L881,105" stroke="#98A2B3" stroke-width="1.6" fill="none" marker-end="url(#a)"/>
|
|
10
|
+
<path d="M976,146 V167.5 H120 V189" stroke="#98A2B3" stroke-width="1.6" fill="none" marker-end="url(#a)"/>
|
|
11
|
+
<path d="M212,233 L239,233" stroke="#98A2B3" stroke-width="1.6" fill="none" marker-end="url(#a)"/>
|
|
12
|
+
<path d="M426,233 L453,233" stroke="#98A2B3" stroke-width="1.6" fill="none" marker-end="url(#a)"/>
|
|
13
|
+
<g transform="translate(28,64)">
|
|
14
|
+
<rect width="184" height="82" rx="10" fill="#FFFFFF" stroke="#D0D5DD"/>
|
|
15
|
+
<rect width="6" height="82" rx="3" fill="#5B6475"/>
|
|
16
|
+
<text x="16" y="21" font-size="10.5" font-weight="600" fill="#5B6475" letter-spacing=".4">TRIGGER</text>
|
|
17
|
+
<text x="16" y="40" font-size="14" font-weight="600" fill="#101828">A buyer hires it</text>
|
|
18
|
+
<text x="16" y="57" font-size="10.5" fill="#475467" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">trigger</text>
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
</g>
|
|
22
|
+
<g transform="translate(242,64)">
|
|
23
|
+
<rect width="184" height="82" rx="10" fill="#FFFFFF" stroke="#D0D5DD"/>
|
|
24
|
+
<rect width="6" height="82" rx="3" fill="#1F8F8B"/>
|
|
25
|
+
<text x="16" y="21" font-size="10.5" font-weight="600" fill="#1F8F8B" letter-spacing=".4">KNOWLEDGE</text>
|
|
26
|
+
<text x="16" y="40" font-size="14" font-weight="600" fill="#101828">find_seller</text>
|
|
27
|
+
<text x="16" y="57" font-size="10.5" fill="#475467" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">GET /v1/match/search</text>
|
|
28
|
+
<text x="16" y="72" font-size="10.5" fill="#667085" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">searchSellers()</text>
|
|
29
|
+
<circle cx="169" cy="15" r="9" fill="#12B76A"/><text x="169" y="19.5" font-size="12" font-weight="700" fill="#fff" text-anchor="middle">✓</text>
|
|
30
|
+
</g>
|
|
31
|
+
<g transform="translate(456,64)">
|
|
32
|
+
<rect width="184" height="82" rx="10" fill="#FFFFFF" stroke="#D0D5DD"/>
|
|
33
|
+
<rect width="6" height="82" rx="3" fill="#D9733F"/>
|
|
34
|
+
<text x="16" y="21" font-size="10.5" font-weight="600" fill="#D9733F" letter-spacing=".4">TRANSFORM</text>
|
|
35
|
+
<text x="16" y="40" font-size="14" font-weight="600" fill="#101828">quote_terms</text>
|
|
36
|
+
<text x="16" y="57" font-size="10.5" fill="#475467" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">POST /v1/pools/quote</text>
|
|
37
|
+
<text x="16" y="72" font-size="10.5" fill="#667085" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">quoteEdge()</text>
|
|
38
|
+
<circle cx="169" cy="15" r="9" fill="#12B76A"/><text x="169" y="19.5" font-size="12" font-weight="700" fill="#fff" text-anchor="middle">✓</text>
|
|
39
|
+
</g>
|
|
40
|
+
<g transform="translate(670,64)">
|
|
41
|
+
<rect width="184" height="82" rx="10" fill="#FFFFFF" stroke="#D0D5DD"/>
|
|
42
|
+
<rect width="6" height="82" rx="3" fill="#D6156F"/>
|
|
43
|
+
<text x="16" y="21" font-size="10.5" font-weight="600" fill="#D6156F" letter-spacing=".4">CONNECTOR</text>
|
|
44
|
+
<text x="16" y="40" font-size="14" font-weight="600" fill="#101828">hand_over</text>
|
|
45
|
+
<text x="16" y="57" font-size="10.5" fill="#475467" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">POST /v1/handshake</text>
|
|
46
|
+
<text x="16" y="72" font-size="10.5" fill="#667085" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">handOver()</text>
|
|
47
|
+
<circle cx="169" cy="15" r="9" fill="#12B76A"/><text x="169" y="19.5" font-size="12" font-weight="700" fill="#fff" text-anchor="middle">✓</text>
|
|
48
|
+
</g>
|
|
49
|
+
<g transform="translate(884,64)">
|
|
50
|
+
<rect width="184" height="82" rx="10" fill="#FFFFFF" stroke="#D0D5DD"/>
|
|
51
|
+
<rect width="6" height="82" rx="3" fill="#D9733F"/>
|
|
52
|
+
<text x="16" y="21" font-size="10.5" font-weight="600" fill="#D9733F" letter-spacing=".4">TRANSFORM</text>
|
|
53
|
+
<text x="16" y="40" font-size="14" font-weight="600" fill="#101828">grade</text>
|
|
54
|
+
<text x="16" y="57" font-size="10.5" fill="#475467" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">POST /v1/judge/compose</text>
|
|
55
|
+
<text x="16" y="72" font-size="10.5" fill="#667085" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">composeGrade()</text>
|
|
56
|
+
<circle cx="169" cy="15" r="9" fill="#12B76A"/><text x="169" y="19.5" font-size="12" font-weight="700" fill="#fff" text-anchor="middle">✓</text>
|
|
57
|
+
</g>
|
|
58
|
+
<g transform="translate(28,192)">
|
|
59
|
+
<rect width="184" height="82" rx="10" fill="#FFFFFF" stroke="#D0D5DD"/>
|
|
60
|
+
<rect width="6" height="82" rx="3" fill="#B42318"/>
|
|
61
|
+
<text x="16" y="21" font-size="10.5" font-weight="600" fill="#B42318" letter-spacing=".4">MONEY</text>
|
|
62
|
+
<text x="16" y="40" font-size="14" font-weight="600" fill="#101828">end_job</text>
|
|
63
|
+
<text x="16" y="57" font-size="10.5" fill="#475467" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">POST /v1/assurance/call</text>
|
|
64
|
+
<text x="16" y="72" font-size="10.5" fill="#667085" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">jobCalls()</text>
|
|
65
|
+
<circle cx="169" cy="15" r="9" fill="#12B76A"/><text x="169" y="19.5" font-size="12" font-weight="700" fill="#fff" text-anchor="middle">✓</text>
|
|
66
|
+
</g>
|
|
67
|
+
<g transform="translate(242,192)">
|
|
68
|
+
<rect width="184" height="82" rx="10" fill="#FFFFFF" stroke="#D0D5DD"/>
|
|
69
|
+
<rect width="6" height="82" rx="3" fill="#1F8F8B"/>
|
|
70
|
+
<text x="16" y="21" font-size="10.5" font-weight="600" fill="#1F8F8B" letter-spacing=".4">KNOWLEDGE</text>
|
|
71
|
+
<text x="16" y="40" font-size="14" font-weight="600" fill="#101828">add_to_record</text>
|
|
72
|
+
<text x="16" y="57" font-size="10.5" fill="#475467" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">GET /v1/settle/:id</text>
|
|
73
|
+
<text x="16" y="72" font-size="10.5" fill="#667085" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">jobRecord()</text>
|
|
74
|
+
<circle cx="169" cy="15" r="9" fill="#12B76A"/><text x="169" y="19.5" font-size="12" font-weight="700" fill="#fff" text-anchor="middle">✓</text>
|
|
75
|
+
</g>
|
|
76
|
+
<g transform="translate(456,192)">
|
|
77
|
+
<rect width="184" height="82" rx="10" fill="#FFFFFF" stroke="#D0D5DD"/>
|
|
78
|
+
<rect width="6" height="82" rx="3" fill="#344054"/>
|
|
79
|
+
<text x="16" y="21" font-size="10.5" font-weight="600" fill="#344054" letter-spacing=".4">OUTPUT</text>
|
|
80
|
+
<text x="16" y="40" font-size="14" font-weight="600" fill="#101828">The record</text>
|
|
81
|
+
<text x="16" y="57" font-size="10.5" fill="#475467" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">output</text>
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
</g>
|
|
85
|
+
<g transform="translate(28,304)"><rect width="10" height="10" rx="2" fill="#5B6475"/><text x="16" y="9.5" font-size="11" fill="#475467">trigger</text></g><g transform="translate(178,304)"><rect width="10" height="10" rx="2" fill="#1F8F8B"/><text x="16" y="9.5" font-size="11" fill="#475467">knowledge</text></g><g transform="translate(328,304)"><rect width="10" height="10" rx="2" fill="#D9733F"/><text x="16" y="9.5" font-size="11" fill="#475467">transform</text></g><g transform="translate(478,304)"><rect width="10" height="10" rx="2" fill="#D6156F"/><text x="16" y="9.5" font-size="11" fill="#475467">connector</text></g><g transform="translate(628,304)"><rect width="10" height="10" rx="2" fill="#B42318"/><text x="16" y="9.5" font-size="11" fill="#475467">money</text></g><g transform="translate(778,304)"><rect width="10" height="10" rx="2" fill="#344054"/><text x="16" y="9.5" font-size="11" fill="#475467">output</text></g><g transform="translate(28,330)"><circle cx="5" cy="5" r="6" fill="#12B76A"/><text x="5" y="8.5" font-size="8.5" font-weight="700" fill="#fff" text-anchor="middle">✓</text><text x="16" y="9.5" font-size="11" fill="#475467">ran live</text></g><g transform="translate(178,330)"><circle cx="5" cy="5" r="6" fill="#7A5AF8"/><text x="5" y="8.5" font-size="8.5" font-weight="700" fill="#fff" text-anchor="middle">◇</text><text x="16" y="9.5" font-size="11" fill="#475467">planned</text></g><g transform="translate(328,330)"><circle cx="5" cy="5" r="6" fill="#F79009"/><text x="5" y="8.5" font-size="8.5" font-weight="700" fill="#fff" text-anchor="middle">·</text><text x="16" y="9.5" font-size="11" fill="#475467">not run today</text></g><g transform="translate(478,330)"><circle cx="5" cy="5" r="6" fill="#98A2B3"/><text x="5" y="8.5" font-size="8.5" font-weight="700" fill="#fff" text-anchor="middle">▪</text><text x="16" y="9.5" font-size="11" fill="#475467">the Studio’s own</text></g>
|
|
86
|
+
</svg>
|
|
Binary file
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="1096" height="506" viewBox="0 0 1096 506" font-family="Inter,system-ui,-apple-system,Segoe UI,Helvetica,Arial,sans-serif">
|
|
2
|
+
<defs><marker id="a" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto"><path d="M0,0 L10,5 L0,10 z" fill="#98A2B3"/></marker></defs>
|
|
3
|
+
<rect width="100%" height="100%" rx="14" fill="#FCFCFD"/>
|
|
4
|
+
<text x="28" y="30" font-size="17" font-weight="700" fill="#101828">Buy from one agent, sell to another</text>
|
|
5
|
+
<text x="28" y="48" font-size="11.5" fill="#667085">Moonbeam Studio workflow · 11 nodes · verified 2026-11-06 · npx moonbeam workflows resell</text>
|
|
6
|
+
<path d="M212,105 L239,105" stroke="#98A2B3" stroke-width="1.6" fill="none" marker-end="url(#a)"/>
|
|
7
|
+
<path d="M426,105 L453,105" stroke="#98A2B3" stroke-width="1.6" fill="none" marker-end="url(#a)"/>
|
|
8
|
+
<path d="M640,105 L667,105" stroke="#98A2B3" stroke-width="1.6" fill="none" marker-end="url(#a)"/>
|
|
9
|
+
<path d="M854,105 L881,105" stroke="#98A2B3" stroke-width="1.6" fill="none" marker-end="url(#a)"/>
|
|
10
|
+
<path d="M976,146 V167.5 H120 V189" stroke="#98A2B3" stroke-width="1.6" fill="none" marker-end="url(#a)"/>
|
|
11
|
+
<path d="M212,233 L239,233" stroke="#98A2B3" stroke-width="1.6" fill="none" marker-end="url(#a)"/>
|
|
12
|
+
<path d="M426,233 L453,233" stroke="#98A2B3" stroke-width="1.6" fill="none" marker-end="url(#a)"/>
|
|
13
|
+
<path d="M640,233 L667,233" stroke="#98A2B3" stroke-width="1.6" fill="none" marker-end="url(#a)"/>
|
|
14
|
+
<path d="M854,233 L881,233" stroke="#98A2B3" stroke-width="1.6" fill="none" marker-end="url(#a)"/>
|
|
15
|
+
<path d="M976,274 V295.5 H120 V317" stroke="#98A2B3" stroke-width="1.6" fill="none" marker-end="url(#a)"/>
|
|
16
|
+
<g transform="translate(28,64)">
|
|
17
|
+
<rect width="184" height="82" rx="10" fill="#FFFFFF" stroke="#D0D5DD"/>
|
|
18
|
+
<rect width="6" height="82" rx="3" fill="#5B6475"/>
|
|
19
|
+
<text x="16" y="21" font-size="10.5" font-weight="600" fill="#5B6475" letter-spacing=".4">TRIGGER</text>
|
|
20
|
+
<text x="16" y="40" font-size="14" font-weight="600" fill="#101828">A buyer asks</text>
|
|
21
|
+
<text x="16" y="57" font-size="10.5" fill="#475467" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">trigger</text>
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
</g>
|
|
25
|
+
<g transform="translate(242,64)">
|
|
26
|
+
<rect width="184" height="82" rx="10" fill="#FFFFFF" stroke="#D0D5DD"/>
|
|
27
|
+
<rect width="6" height="82" rx="3" fill="#98A2B3"/>
|
|
28
|
+
<text x="16" y="21" font-size="10.5" font-weight="600" fill="#98A2B3" letter-spacing=".4">STUDIO</text>
|
|
29
|
+
<text x="16" y="40" font-size="14" font-weight="600" fill="#101828">manual</text>
|
|
30
|
+
<text x="16" y="57" font-size="10.5" fill="#475467" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">manual</text>
|
|
31
|
+
|
|
32
|
+
<circle cx="169" cy="15" r="9" fill="#98A2B3"/><text x="169" y="19.5" font-size="12" font-weight="700" fill="#fff" text-anchor="middle">▪</text>
|
|
33
|
+
</g>
|
|
34
|
+
<g transform="translate(456,64)">
|
|
35
|
+
<rect width="184" height="82" rx="10" fill="#FFFFFF" stroke="#D0D5DD"/>
|
|
36
|
+
<rect width="6" height="82" rx="3" fill="#1F8F8B"/>
|
|
37
|
+
<text x="16" y="21" font-size="10.5" font-weight="600" fill="#1F8F8B" letter-spacing=".4">KNOWLEDGE</text>
|
|
38
|
+
<text x="16" y="40" font-size="14" font-weight="600" fill="#101828">buy_find</text>
|
|
39
|
+
<text x="16" y="57" font-size="10.5" fill="#475467" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">GET /v1/match/search</text>
|
|
40
|
+
<text x="16" y="72" font-size="10.5" fill="#667085" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">searchSellers()</text>
|
|
41
|
+
<circle cx="169" cy="15" r="9" fill="#12B76A"/><text x="169" y="19.5" font-size="12" font-weight="700" fill="#fff" text-anchor="middle">✓</text>
|
|
42
|
+
</g>
|
|
43
|
+
<g transform="translate(670,64)">
|
|
44
|
+
<rect width="184" height="82" rx="10" fill="#FFFFFF" stroke="#D0D5DD"/>
|
|
45
|
+
<rect width="6" height="82" rx="3" fill="#D9733F"/>
|
|
46
|
+
<text x="16" y="21" font-size="10.5" font-weight="600" fill="#D9733F" letter-spacing=".4">TRANSFORM</text>
|
|
47
|
+
<text x="16" y="40" font-size="14" font-weight="600" fill="#101828">buy_quote</text>
|
|
48
|
+
<text x="16" y="57" font-size="10.5" fill="#475467" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">POST /v1/pools/quote</text>
|
|
49
|
+
<text x="16" y="72" font-size="10.5" fill="#667085" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">quoteEdge()</text>
|
|
50
|
+
<circle cx="169" cy="15" r="9" fill="#12B76A"/><text x="169" y="19.5" font-size="12" font-weight="700" fill="#fff" text-anchor="middle">✓</text>
|
|
51
|
+
</g>
|
|
52
|
+
<g transform="translate(884,64)">
|
|
53
|
+
<rect width="184" height="82" rx="10" fill="#FFFFFF" stroke="#D0D5DD"/>
|
|
54
|
+
<rect width="6" height="82" rx="3" fill="#D9733F"/>
|
|
55
|
+
<text x="16" y="21" font-size="10.5" font-weight="600" fill="#D9733F" letter-spacing=".4">TRANSFORM</text>
|
|
56
|
+
<text x="16" y="40" font-size="14" font-weight="600" fill="#101828">both_sides</text>
|
|
57
|
+
<text x="16" y="57" font-size="10.5" fill="#475467" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">wilson.sides</text>
|
|
58
|
+
<text x="16" y="72" font-size="10.5" fill="#667085" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">hookQuote()</text>
|
|
59
|
+
<circle cx="169" cy="15" r="9" fill="#12B76A"/><text x="169" y="19.5" font-size="12" font-weight="700" fill="#fff" text-anchor="middle">✓</text>
|
|
60
|
+
</g>
|
|
61
|
+
<g transform="translate(28,192)">
|
|
62
|
+
<rect width="184" height="82" rx="10" fill="#FFFFFF" stroke="#D0D5DD"/>
|
|
63
|
+
<rect width="6" height="82" rx="3" fill="#D6156F"/>
|
|
64
|
+
<text x="16" y="21" font-size="10.5" font-weight="600" fill="#D6156F" letter-spacing=".4">CONNECTOR</text>
|
|
65
|
+
<text x="16" y="40" font-size="14" font-weight="600" fill="#101828">buy_hand_over</text>
|
|
66
|
+
<text x="16" y="57" font-size="10.5" fill="#475467" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">POST /v1/handshake</text>
|
|
67
|
+
<text x="16" y="72" font-size="10.5" fill="#667085" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">handOver()</text>
|
|
68
|
+
<circle cx="169" cy="15" r="9" fill="#12B76A"/><text x="169" y="19.5" font-size="12" font-weight="700" fill="#fff" text-anchor="middle">✓</text>
|
|
69
|
+
</g>
|
|
70
|
+
<g transform="translate(242,192)">
|
|
71
|
+
<rect width="184" height="82" rx="10" fill="#FFFFFF" stroke="#D0D5DD"/>
|
|
72
|
+
<rect width="6" height="82" rx="3" fill="#D9733F"/>
|
|
73
|
+
<text x="16" y="21" font-size="10.5" font-weight="600" fill="#D9733F" letter-spacing=".4">TRANSFORM</text>
|
|
74
|
+
<text x="16" y="40" font-size="14" font-weight="600" fill="#101828">buy_grade</text>
|
|
75
|
+
<text x="16" y="57" font-size="10.5" fill="#475467" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">POST /v1/judge/compose</text>
|
|
76
|
+
<text x="16" y="72" font-size="10.5" fill="#667085" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">composeGrade()</text>
|
|
77
|
+
<circle cx="169" cy="15" r="9" fill="#12B76A"/><text x="169" y="19.5" font-size="12" font-weight="700" fill="#fff" text-anchor="middle">✓</text>
|
|
78
|
+
</g>
|
|
79
|
+
<g transform="translate(456,192)">
|
|
80
|
+
<rect width="184" height="82" rx="10" fill="#FFFFFF" stroke="#D0D5DD"/>
|
|
81
|
+
<rect width="6" height="82" rx="3" fill="#B42318"/>
|
|
82
|
+
<text x="16" y="21" font-size="10.5" font-weight="600" fill="#B42318" letter-spacing=".4">MONEY</text>
|
|
83
|
+
<text x="16" y="40" font-size="14" font-weight="600" fill="#101828">buy_end</text>
|
|
84
|
+
<text x="16" y="57" font-size="10.5" fill="#475467" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">POST /v1/assurance/call</text>
|
|
85
|
+
<text x="16" y="72" font-size="10.5" fill="#667085" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">jobCalls()</text>
|
|
86
|
+
<circle cx="169" cy="15" r="9" fill="#12B76A"/><text x="169" y="19.5" font-size="12" font-weight="700" fill="#fff" text-anchor="middle">✓</text>
|
|
87
|
+
</g>
|
|
88
|
+
<g transform="translate(670,192)">
|
|
89
|
+
<rect width="184" height="82" rx="10" fill="#FFFFFF" stroke="#D0D5DD"/>
|
|
90
|
+
<rect width="6" height="82" rx="3" fill="#D6156F"/>
|
|
91
|
+
<text x="16" y="21" font-size="10.5" font-weight="600" fill="#D6156F" letter-spacing=".4">CONNECTOR</text>
|
|
92
|
+
<text x="16" y="40" font-size="14" font-weight="600" fill="#101828">sell_list</text>
|
|
93
|
+
<text x="16" y="57" font-size="10.5" fill="#475467" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">POST /v1/exchanges/edge</text>
|
|
94
|
+
<text x="16" y="72" font-size="10.5" fill="#667085" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">writeEdge()</text>
|
|
95
|
+
<circle cx="169" cy="15" r="9" fill="#F79009"/><text x="169" y="19.5" font-size="12" font-weight="700" fill="#fff" text-anchor="middle">·</text>
|
|
96
|
+
</g>
|
|
97
|
+
<g transform="translate(884,192)">
|
|
98
|
+
<rect width="184" height="82" rx="10" fill="#FFFFFF" stroke="#D0D5DD"/>
|
|
99
|
+
<rect width="6" height="82" rx="3" fill="#D6156F"/>
|
|
100
|
+
<text x="16" y="21" font-size="10.5" font-weight="600" fill="#D6156F" letter-spacing=".4">CONNECTOR</text>
|
|
101
|
+
<text x="16" y="40" font-size="14" font-weight="600" fill="#101828">sell_through</text>
|
|
102
|
+
<text x="16" y="57" font-size="10.5" fill="#475467" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">POST /v1/exchanges/:edge_i…</text>
|
|
103
|
+
<text x="16" y="72" font-size="10.5" fill="#667085" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">callEdge()</text>
|
|
104
|
+
<circle cx="169" cy="15" r="9" fill="#F79009"/><text x="169" y="19.5" font-size="12" font-weight="700" fill="#fff" text-anchor="middle">·</text>
|
|
105
|
+
</g>
|
|
106
|
+
<g transform="translate(28,320)">
|
|
107
|
+
<rect width="184" height="82" rx="10" fill="#FFFFFF" stroke="#D0D5DD"/>
|
|
108
|
+
<rect width="6" height="82" rx="3" fill="#344054"/>
|
|
109
|
+
<text x="16" y="21" font-size="10.5" font-weight="600" fill="#344054" letter-spacing=".4">OUTPUT</text>
|
|
110
|
+
<text x="16" y="40" font-size="14" font-weight="600" fill="#101828">Listed for the next …</text>
|
|
111
|
+
<text x="16" y="57" font-size="10.5" fill="#475467" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">output</text>
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
</g>
|
|
115
|
+
<g transform="translate(28,432)"><rect width="10" height="10" rx="2" fill="#5B6475"/><text x="16" y="9.5" font-size="11" fill="#475467">trigger</text></g><g transform="translate(178,432)"><rect width="10" height="10" rx="2" fill="#98A2B3"/><text x="16" y="9.5" font-size="11" fill="#475467">studio</text></g><g transform="translate(328,432)"><rect width="10" height="10" rx="2" fill="#1F8F8B"/><text x="16" y="9.5" font-size="11" fill="#475467">knowledge</text></g><g transform="translate(478,432)"><rect width="10" height="10" rx="2" fill="#D9733F"/><text x="16" y="9.5" font-size="11" fill="#475467">transform</text></g><g transform="translate(628,432)"><rect width="10" height="10" rx="2" fill="#D6156F"/><text x="16" y="9.5" font-size="11" fill="#475467">connector</text></g><g transform="translate(778,432)"><rect width="10" height="10" rx="2" fill="#B42318"/><text x="16" y="9.5" font-size="11" fill="#475467">money</text></g><g transform="translate(28,452)"><rect width="10" height="10" rx="2" fill="#344054"/><text x="16" y="9.5" font-size="11" fill="#475467">output</text></g><g transform="translate(28,478)"><circle cx="5" cy="5" r="6" fill="#12B76A"/><text x="5" y="8.5" font-size="8.5" font-weight="700" fill="#fff" text-anchor="middle">✓</text><text x="16" y="9.5" font-size="11" fill="#475467">ran live</text></g><g transform="translate(178,478)"><circle cx="5" cy="5" r="6" fill="#7A5AF8"/><text x="5" y="8.5" font-size="8.5" font-weight="700" fill="#fff" text-anchor="middle">◇</text><text x="16" y="9.5" font-size="11" fill="#475467">planned</text></g><g transform="translate(328,478)"><circle cx="5" cy="5" r="6" fill="#F79009"/><text x="5" y="8.5" font-size="8.5" font-weight="700" fill="#fff" text-anchor="middle">·</text><text x="16" y="9.5" font-size="11" fill="#475467">not run today</text></g><g transform="translate(478,478)"><circle cx="5" cy="5" r="6" fill="#98A2B3"/><text x="5" y="8.5" font-size="8.5" font-weight="700" fill="#fff" text-anchor="middle">▪</text><text x="16" y="9.5" font-size="11" fill="#475467">the Studio’s own</text></g>
|
|
116
|
+
</svg>
|
|
Binary file
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="882" height="230" viewBox="0 0 882 230" font-family="Inter,system-ui,-apple-system,Segoe UI,Helvetica,Arial,sans-serif">
|
|
2
|
+
<defs><marker id="a" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto"><path d="M0,0 L10,5 L0,10 z" fill="#98A2B3"/></marker></defs>
|
|
3
|
+
<rect width="100%" height="100%" rx="14" fill="#FCFCFD"/>
|
|
4
|
+
<text x="28" y="30" font-size="17" font-weight="700" fill="#101828">Sell one task through an edge</text>
|
|
5
|
+
<text x="28" y="48" font-size="11.5" fill="#667085">Moonbeam Studio workflow · 4 nodes · verified 2026-11-06 · npx moonbeam workflows sell-edge</text>
|
|
6
|
+
<path d="M212,105 L239,105" stroke="#98A2B3" stroke-width="1.6" fill="none" marker-end="url(#a)"/>
|
|
7
|
+
<path d="M426,105 L453,105" stroke="#98A2B3" stroke-width="1.6" fill="none" marker-end="url(#a)"/>
|
|
8
|
+
<path d="M640,105 L667,105" stroke="#98A2B3" stroke-width="1.6" fill="none" marker-end="url(#a)"/>
|
|
9
|
+
<g transform="translate(28,64)">
|
|
10
|
+
<rect width="184" height="82" rx="10" fill="#FFFFFF" stroke="#D0D5DD"/>
|
|
11
|
+
<rect width="6" height="82" rx="3" fill="#5B6475"/>
|
|
12
|
+
<text x="16" y="21" font-size="10.5" font-weight="600" fill="#5B6475" letter-spacing=".4">TRIGGER</text>
|
|
13
|
+
<text x="16" y="40" font-size="14" font-weight="600" fill="#101828">A buyer asks</text>
|
|
14
|
+
<text x="16" y="57" font-size="10.5" fill="#475467" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">trigger</text>
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
</g>
|
|
18
|
+
<g transform="translate(242,64)">
|
|
19
|
+
<rect width="184" height="82" rx="10" fill="#FFFFFF" stroke="#D0D5DD"/>
|
|
20
|
+
<rect width="6" height="82" rx="3" fill="#1F8F8B"/>
|
|
21
|
+
<text x="16" y="21" font-size="10.5" font-weight="600" fill="#1F8F8B" letter-spacing=".4">KNOWLEDGE</text>
|
|
22
|
+
<text x="16" y="40" font-size="14" font-weight="600" fill="#101828">find_edge</text>
|
|
23
|
+
<text x="16" y="57" font-size="10.5" fill="#475467" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">GET /v1/exchanges</text>
|
|
24
|
+
<text x="16" y="72" font-size="10.5" fill="#667085" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">listedEdges()</text>
|
|
25
|
+
<circle cx="169" cy="15" r="9" fill="#12B76A"/><text x="169" y="19.5" font-size="12" font-weight="700" fill="#fff" text-anchor="middle">✓</text>
|
|
26
|
+
</g>
|
|
27
|
+
<g transform="translate(456,64)">
|
|
28
|
+
<rect width="184" height="82" rx="10" fill="#FFFFFF" stroke="#D0D5DD"/>
|
|
29
|
+
<rect width="6" height="82" rx="3" fill="#D6156F"/>
|
|
30
|
+
<text x="16" y="21" font-size="10.5" font-weight="600" fill="#D6156F" letter-spacing=".4">CONNECTOR</text>
|
|
31
|
+
<text x="16" y="40" font-size="14" font-weight="600" fill="#101828">sell_through</text>
|
|
32
|
+
<text x="16" y="57" font-size="10.5" fill="#475467" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">POST /v1/exchanges/:edge_i…</text>
|
|
33
|
+
<text x="16" y="72" font-size="10.5" fill="#667085" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">callEdge()</text>
|
|
34
|
+
<circle cx="169" cy="15" r="9" fill="#F79009"/><text x="169" y="19.5" font-size="12" font-weight="700" fill="#fff" text-anchor="middle">·</text>
|
|
35
|
+
</g>
|
|
36
|
+
<g transform="translate(670,64)">
|
|
37
|
+
<rect width="184" height="82" rx="10" fill="#FFFFFF" stroke="#D0D5DD"/>
|
|
38
|
+
<rect width="6" height="82" rx="3" fill="#344054"/>
|
|
39
|
+
<text x="16" y="21" font-size="10.5" font-weight="600" fill="#344054" letter-spacing=".4">OUTPUT</text>
|
|
40
|
+
<text x="16" y="40" font-size="14" font-weight="600" fill="#101828">Sold</text>
|
|
41
|
+
<text x="16" y="57" font-size="10.5" fill="#475467" font-family="ui-monospace,SFMono-Regular,Menlo,monospace">output</text>
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
</g>
|
|
45
|
+
<g transform="translate(28,176)"><rect width="10" height="10" rx="2" fill="#5B6475"/><text x="16" y="9.5" font-size="11" fill="#475467">trigger</text></g><g transform="translate(178,176)"><rect width="10" height="10" rx="2" fill="#1F8F8B"/><text x="16" y="9.5" font-size="11" fill="#475467">knowledge</text></g><g transform="translate(328,176)"><rect width="10" height="10" rx="2" fill="#D6156F"/><text x="16" y="9.5" font-size="11" fill="#475467">connector</text></g><g transform="translate(478,176)"><rect width="10" height="10" rx="2" fill="#344054"/><text x="16" y="9.5" font-size="11" fill="#475467">output</text></g><g transform="translate(28,202)"><circle cx="5" cy="5" r="6" fill="#12B76A"/><text x="5" y="8.5" font-size="8.5" font-weight="700" fill="#fff" text-anchor="middle">✓</text><text x="16" y="9.5" font-size="11" fill="#475467">ran live</text></g><g transform="translate(178,202)"><circle cx="5" cy="5" r="6" fill="#7A5AF8"/><text x="5" y="8.5" font-size="8.5" font-weight="700" fill="#fff" text-anchor="middle">◇</text><text x="16" y="9.5" font-size="11" fill="#475467">planned</text></g><g transform="translate(328,202)"><circle cx="5" cy="5" r="6" fill="#F79009"/><text x="5" y="8.5" font-size="8.5" font-weight="700" fill="#fff" text-anchor="middle">·</text><text x="16" y="9.5" font-size="11" fill="#475467">not run today</text></g><g transform="translate(478,202)"><circle cx="5" cy="5" r="6" fill="#98A2B3"/><text x="5" y="8.5" font-size="8.5" font-weight="700" fill="#fff" text-anchor="middle">▪</text><text x="16" y="9.5" font-size="11" fill="#475467">the Studio’s own</text></g>
|
|
46
|
+
</svg>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// Cross-list a seller: take an agent that sells on one market, and price the same job on every other market Moonbeam reaches.
|
|
2
|
+
// Every number comes from the one payment scheme: price to buyer = seller price + our fee + each market's own fee [+ your markup].
|
|
3
|
+
// node examples/60-cross-list-a-seller.mjs two real sellers, as recorded on 2026-11-06 (offline)
|
|
4
|
+
// MOONBEAM_API=… MOONBEAM_API_KEY=… node examples/60-cross-list-a-seller.mjs the top sellers by 30-day pay, read live
|
|
5
|
+
// MARKUP_BPS=200 node examples/60-cross-list-a-seller.mjs the same, resold on your own child keys at +2 %
|
|
6
|
+
import { readFileSync } from 'node:fs';
|
|
7
|
+
import { quoteSale, legsByName } from '@moonbeam-foundation/sdk/resale';
|
|
8
|
+
import { transportFromEnv, sellerRecords } from '@moonbeam-foundation/sdk/market';
|
|
9
|
+
|
|
10
|
+
const recorded = JSON.parse(readFileSync(new URL('./data/cross-list.recorded.json', import.meta.url), 'utf8'));
|
|
11
|
+
const MARKETS = ['x402-base', 'mcp', 'a2a', 'erc8183-base', 'bitagent-base', 'memoacp-base', 'olas-base'];
|
|
12
|
+
const markup = Number(process.env.MARKUP_BPS ?? 0);
|
|
13
|
+
const usdc = (u) => (Number(u) / 1e6).toFixed(2);
|
|
14
|
+
const units = (s) => BigInt(Math.round(Number(s) * 1e6));
|
|
15
|
+
|
|
16
|
+
let sellers = recorded.sellers; let source = `recorded ${recorded.read_at}: ${recorded.sellers_on_record} sellers with a record, ${recorded.sellers_on_more_than_one_market} on more than one market`;
|
|
17
|
+
if (!process.env.OFFLINE && process.env.MOONBEAM_API && process.env.MOONBEAM_API_KEY) {
|
|
18
|
+
const r = await sellerRecords(transportFromEnv(), { chainId: 8453, limit: 100 });
|
|
19
|
+
const venue = { 'acp-base': 'erc8183-base', bitagent: 'bitagent-base', 'memo-acp': 'memoacp-base' };
|
|
20
|
+
sellers = r.sellers.filter((s) => s.history.typical_price_usdc).sort((a, b) => (b.history.d30?.paid_usdc ?? 0) - (a.history.d30?.paid_usdc ?? 0)).slice(0, 2).map((s) => ({
|
|
21
|
+
seller: s.sellerId, market: venue[Object.entries(s.job_sources).find(([, n]) => n > 0)?.[0]] ?? 'erc8183-base', job: String(s.history.top_tasks?.[0]?.task ?? 'its job').split(' where ')[0],
|
|
22
|
+
price_usdc: String(s.history.typical_price_usdc), jobs: s.jobs, paid_usdc: s.history.paid_usdc, buyers: s.buyers?.distinct ?? null, paid_30d_usdc: s.history.d30?.paid_usdc ?? 0 }));
|
|
23
|
+
source = `read live: ${r.total} sellers with a record`;
|
|
24
|
+
}
|
|
25
|
+
console.log(source);
|
|
26
|
+
for (const s of sellers) {
|
|
27
|
+
console.log(`\n${s.job}: ${s.seller} sells on ${s.market} at ${s.price_usdc} USDC · ${s.jobs} jobs · ${s.paid_usdc} USDC paid · ${s.buyers} buyers · ${s.paid_30d_usdc} USDC in 30 days`);
|
|
28
|
+
console.log(' sold on buyer pays seller our fee market fees your markup');
|
|
29
|
+
for (const m of MARKETS.filter((x) => x !== s.market)) {
|
|
30
|
+
const q = quoteSale({ venue_in: m, venue_out: s.market, seller_price: units(s.price_usdc), ...(markup ? { reseller: { tenant: 'you', markup_bps: markup } } : {}) });
|
|
31
|
+
if (!q.ok) { console.log(` ${m.padEnd(16)} not sold there: ${q.why ?? q.error}`); continue; }
|
|
32
|
+
const l = legsByName(q);
|
|
33
|
+
console.log(` ${m.padEnd(16)} ${usdc(q.price_to_buyer).padStart(10)} ${usdc(l.seller_share).padStart(6)} ${usdc(l.our_fee).padStart(7)} ${usdc(l.venue_fee).padStart(11)} ${usdc(l.reseller_markup).padStart(11)}`);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
console.log('\nthe seller keeps its own price on every market; the legs sum to what the buyer pays');
|
package/examples/README.md
CHANGED
|
@@ -76,6 +76,13 @@ Each role gets a readiness report: what you put up, what you can lose, and anyth
|
|
|
76
76
|
| 52 | [arbitration-calls](52-arbitration-calls.mjs) | The three tiers of the ArbitratorRouter as unsigned calls, and what a ruling writes into the record | `findCheated(jobId, loss)` |
|
|
77
77
|
| 53 | [attested-by-default](53-attested-by-default.mjs) | A settle, a grade and a resale step, each with its mark and its calls on Base; the stamp Base lacks said | `missing: GradeStampRegistry@8453` |
|
|
78
78
|
|
|
79
|
+
|
|
80
|
+
## Cross-listing
|
|
81
|
+
|
|
82
|
+
| # | File | Best for | You see |
|
|
83
|
+
|---|---|---|---|
|
|
84
|
+
| 60 | [cross-list-a-seller](60-cross-list-a-seller.mjs) | A real seller on one market, priced on every other market Moonbeam reaches; live with a key, `MARKUP_BPS` for your own markup | `x402-base 5.00 4.00 1.00`: the buyer pays 5.00, the seller keeps 4.00 |
|
|
85
|
+
|
|
79
86
|
## Settings
|
|
80
87
|
|
|
81
88
|
Only the live examples read anything from the environment.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"read_at": "2026-11-06",
|
|
3
|
+
"read": "GET /v1/pools?chain=8453 (every seller's one job record across every market the layer reads)",
|
|
4
|
+
"sellers_on_record": 102,
|
|
5
|
+
"sellers_on_more_than_one_market": 0,
|
|
6
|
+
"sellers": [
|
|
7
|
+
{ "seller": "0xb10bab190f2a1488497731fd5c52a02a2f9787ae", "market": "bitagent-base", "job": "film commentary", "price_usdc": "4", "jobs": 79, "paid_usdc": 196, "buyers": 10, "jobs_30d": 8, "paid_30d_usdc": 32 },
|
|
8
|
+
{ "seller": "0x0b4e9e5460d14ba7fc96691ded5463490d333624", "market": "erc8183-base", "job": "smart contract audit", "price_usdc": "1", "jobs": 13, "paid_usdc": 9, "buyers": 2, "jobs_30d": 13, "paid_30d_usdc": 10 }
|
|
9
|
+
]
|
|
10
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moonbeam-foundation/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Agentic commerce SDK for AI agents: buy and sell agent work on every market (x402, MCP, A2A, Virtuals ACP / ERC-8183, Olas, BitAgent, ERC-8004, NEAR), with graded jobs and assurance on Base. The Moonbeam Studio's workflows as code.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -135,7 +135,8 @@
|
|
|
135
135
|
"gen:registry": "node scripts/gen-moonbeam-acp.mjs",
|
|
136
136
|
"check:registry": "node scripts/gen-moonbeam-acp.mjs --check",
|
|
137
137
|
"check:pins": "node scripts/check-pins.mjs",
|
|
138
|
-
"check": "
|
|
138
|
+
"check:diagrams": "node scripts/gen-diagrams.mjs >/dev/null && git diff --exit-code -- 'docs/workflows/*.svg' docs/WORKFLOWS.md",
|
|
139
|
+
"check": "npm run typecheck && npm run build && npm test && npm run check:pins && npm run check:workflows && npm run check:diagrams",
|
|
139
140
|
"sync": "node scripts/sync.mjs",
|
|
140
141
|
"check:sync": "node scripts/sync.mjs --check",
|
|
141
142
|
"test:fork": "node test/fork/run-fork.mjs",
|