@moonbeam-foundation/sdk 0.7.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 +78 -432
- package/bin/moonbeam.mjs +15 -2
- package/dist/acp/moonbeam-acp.generated.d.ts +7 -2
- package/dist/acp/moonbeam-acp.generated.d.ts.map +1 -1
- package/dist/acp/moonbeam-acp.generated.js +6 -3
- package/dist/acp/moonbeam-acp.generated.js.map +1 -1
- package/dist/acp/outcome.d.ts +5 -1
- package/dist/acp/outcome.d.ts.map +1 -1
- package/dist/acp/outcome.js +3 -2
- package/dist/acp/outcome.js.map +1 -1
- package/dist/adapters/stamp.d.ts +1 -1
- package/dist/adapters/stamp.d.ts.map +1 -1
- package/dist/adapters/stamp.js +6 -6
- package/dist/adapters/stamp.js.map +1 -1
- package/dist/assurance/assurance-shared.d.ts.map +1 -1
- package/dist/assurance/assurance-shared.js +3 -1
- package/dist/assurance/assurance-shared.js.map +1 -1
- package/dist/cover/index.d.ts +65 -0
- package/dist/cover/index.d.ts.map +1 -0
- package/dist/cover/index.js +61 -0
- package/dist/cover/index.js.map +1 -0
- package/dist/devnet/edge.d.ts +207 -0
- package/dist/devnet/edge.d.ts.map +1 -0
- package/dist/devnet/edge.js +209 -0
- package/dist/devnet/edge.js.map +1 -0
- package/dist/devnet/index.d.ts +403 -0
- package/dist/devnet/index.d.ts.map +1 -0
- package/dist/devnet/index.js +420 -0
- package/dist/devnet/index.js.map +1 -0
- package/dist/devnet/profile.d.ts +110 -0
- package/dist/devnet/profile.d.ts.map +1 -0
- package/dist/devnet/profile.js +145 -0
- package/dist/devnet/profile.js.map +1 -0
- package/dist/erc8004/registry.generated.d.ts.map +1 -1
- package/dist/erc8004/registry.generated.js +0 -1
- package/dist/erc8004/registry.generated.js.map +1 -1
- package/dist/errors/index.d.ts +51 -0
- package/dist/errors/index.d.ts.map +1 -0
- package/dist/errors/index.js +63 -0
- package/dist/errors/index.js.map +1 -0
- package/dist/index.d.ts +6 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/jobs/index.d.ts +62 -0
- package/dist/jobs/index.d.ts.map +1 -0
- package/dist/jobs/index.js +59 -0
- package/dist/jobs/index.js.map +1 -0
- package/dist/judge/index.d.ts +109 -1
- package/dist/judge/index.d.ts.map +1 -1
- package/dist/judge/index.js +97 -3
- package/dist/judge/index.js.map +1 -1
- package/dist/market/index.d.ts +281 -0
- package/dist/market/index.d.ts.map +1 -0
- package/dist/market/index.js +211 -0
- package/dist/market/index.js.map +1 -0
- package/dist/onboard/index.d.ts +4 -4
- package/dist/onboard/index.d.ts.map +1 -1
- package/dist/onboard/index.js +9 -15
- package/dist/onboard/index.js.map +1 -1
- package/dist/pools/index.d.ts +29 -5
- package/dist/pools/index.d.ts.map +1 -1
- package/dist/pools/index.js +34 -15
- package/dist/pools/index.js.map +1 -1
- package/dist/proof/index.d.ts +8 -4
- package/dist/proof/index.d.ts.map +1 -1
- package/dist/proof/index.js +10 -7
- package/dist/proof/index.js.map +1 -1
- package/dist/resale/index.d.ts +22 -6
- package/dist/resale/index.d.ts.map +1 -1
- package/dist/resale/index.js +29 -15
- package/dist/resale/index.js.map +1 -1
- package/dist/resale/payment-scheme.pin.json +1 -1
- package/dist/resale/settle-rule.d.ts +49 -0
- package/dist/resale/settle-rule.d.ts.map +1 -0
- package/dist/resale/settle-rule.js +53 -0
- package/dist/resale/settle-rule.js.map +1 -0
- package/dist/workflows/data.d.ts +3 -0
- package/dist/workflows/data.d.ts.map +1 -0
- package/dist/workflows/data.js +829 -0
- package/dist/workflows/data.js.map +1 -0
- package/dist/workflows/index.d.ts +40 -0
- package/dist/workflows/index.d.ts.map +1 -0
- package/dist/workflows/index.js +79 -0
- package/dist/workflows/index.js.map +1 -0
- 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/types.d.ts +26 -0
- package/dist/workflows/types.d.ts.map +1 -0
- package/dist/workflows/types.js +2 -0
- package/dist/workflows/types.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/dist/x402/index.d.ts +80 -17
- package/dist/x402/index.d.ts.map +1 -1
- package/dist/x402/index.js +95 -27
- package/dist/x402/index.js.map +1 -1
- 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/40-the-article.mjs +1 -1
- package/examples/50-x402-pay-a-wall.mjs +22 -11
- package/examples/51-read-a-proof.mjs +5 -4
- package/examples/60-cross-list-a-seller.mjs +36 -0
- package/examples/README.md +11 -2
- package/examples/data/cross-list.recorded.json +10 -0
- package/examples/data/x402-wall-402.json +85 -0
- package/package.json +56 -15
|
@@ -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>
|
|
@@ -50,7 +50,7 @@ title('"It runs the grader end to end. Evidence, facts, Jev\'s answers, the verd
|
|
|
50
50
|
const endC = endJob(PILOT_JOB, good), endR = endJob(PILOT_JOB, bad);
|
|
51
51
|
check('the ending call: complete, or reject with the decision\'s fingerprint', endC && endR && /^0x/.test(endC.data) && endR.data.toLowerCase().includes(bad.decision.digest.slice(2).toLowerCase()), `to ${endC?.to}`);
|
|
52
52
|
check('the ending call targets the job contract in the article', endC?.to?.toLowerCase() === '0xc0578657eda85e0a246771aa1839ce79b54ee80d');
|
|
53
|
-
const live = await gradeJob({ jobId: PILOT_JOB, evidence: 'x' }).then(() => 'answered', (e) => String(e?.message ?? e));
|
|
53
|
+
const live = await gradeJob({ jobId: PILOT_JOB, evidence: 'x', layer: false }).then(() => 'answered', (e) => String(e?.message ?? e));
|
|
54
54
|
check('Jev is called only with your own TypeSafe key', /TypeSafe key/i.test(live), live.slice(0, 80));
|
|
55
55
|
check('the input fingerprint is the SHA-256 of the text Jev read', (await verifyGrade(good, { chain: false })).checks.inputDigest === true);
|
|
56
56
|
}
|
|
@@ -1,17 +1,28 @@
|
|
|
1
|
-
// x402
|
|
2
|
-
// transferWithAuthorization) and the
|
|
3
|
-
// node examples/50-x402-pay-a-wall.mjs
|
|
4
|
-
//
|
|
1
|
+
// x402: read a wall's 402 quote, pick the entry of the network you pay from, and build the payment your wallet signs
|
|
2
|
+
// (EIP-3009 transferWithAuthorization) and the PAYMENT-SIGNATURE header that carries it. Nothing is signed or paid here.
|
|
3
|
+
// node examples/50-x402-pay-a-wall.mjs the recorded quote (six networks, Solana included)
|
|
4
|
+
// MOONBEAM_API=<your coordination endpoint>/v1 node examples/50-x402-pay-a-wall.mjs the same, quoted live
|
|
5
|
+
// NETWORK=eip155:42161 node examples/50-x402-pay-a-wall.mjs pay from another network the wall offers
|
|
5
6
|
// test/fork/run-fork.mjs signs it and executes it on a Base fork
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
7
|
+
import { readFileSync } from 'node:fs';
|
|
8
|
+
import { quoteWall, pickAccept, chainIdOf, transferAuthorization, paymentHeaders, subscribePlan } from '@moonbeam-foundation/sdk/x402';
|
|
9
|
+
import { quoteSale, sellerRailOf } from '@moonbeam-foundation/sdk/resale';
|
|
8
10
|
|
|
9
|
-
const
|
|
10
|
-
const recorded =
|
|
11
|
-
const
|
|
12
|
-
|
|
11
|
+
const network = process.env.NETWORK ?? 'eip155:8453';
|
|
12
|
+
const recorded = JSON.parse(readFileSync(new URL('./data/x402-wall-402.json', import.meta.url), 'utf8'));
|
|
13
|
+
const api = process.env.OFFLINE ? null : process.env.MOONBEAM_API ?? null;
|
|
14
|
+
const live = api ? await quoteWall({ base: api, fetch: (u, i) => fetch(u, i) }, '/x402/class/mcp.digest', { network }) : null;
|
|
15
|
+
const accept = live ? live.accept : pickAccept(recorded, { network });
|
|
16
|
+
console.log(`the wall offers ${(live ? live.body : recorded.x402).accepts.map((a) => a.network).join(', ')}; on ${accept.network} it asks ${accept.amount} units of ${accept.asset}, paid to ${accept.payTo}`);
|
|
13
17
|
const q = quoteSale({ venue_in: 'x402-base', venue_out: 'x402-base', seller_price: 9207n });
|
|
14
18
|
console.log(`quoteSale: the seller's 9207 → the buyer pays ${q.price_to_buyer} (the same scheme the wall prices with)`);
|
|
19
|
+
const rail = sellerRailOf({ accepts: { network: 'solana', asset: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v', payTo: 'GQcEn5pLcweo7qaiy3rDdsiUPiygygmFBaixNtNqhQVD' } });
|
|
20
|
+
console.log(`a seller who published a Solana offer is paid there: ${rail.network} ${rail.token?.symbol} to ${rail.pay_to} (${rail.state})`);
|
|
21
|
+
if (chainIdOf(accept.network) === null) {
|
|
22
|
+
console.log(`${accept.network} is not an EIP-3009 network: your Solana wallet sends ${accept.amount} units of ${accept.asset} to ${accept.payTo} (fee payer ${accept.extra?.feePayer ?? 'yours'})`);
|
|
23
|
+
process.exit(0);
|
|
24
|
+
}
|
|
15
25
|
const typed = transferAuthorization(accept, { from: '0x000000000000000000000000000000000000dEaD' });
|
|
16
26
|
console.log(`your wallet signs ${typed.primaryType} under ${typed.domain.name} v${typed.domain.version} on chain ${typed.domain.chainId}: value ${typed.message.value}, valid before ${typed.message.validBefore}`);
|
|
17
|
-
|
|
27
|
+
const headers = paymentHeaders(accept, typed.message, `0x${'11'.repeat(65)}`);
|
|
28
|
+
console.log(`then the request carries ${Object.keys(headers).join(' + ')} (x402 v2: the accepted entry and the signed authorization); a top-up starts at`, JSON.stringify(subscribePlan({ usdc: 1 }).body));
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
// A proof that a Base transaction is inside the layer's superroot, and the V5 proof verifier on Base checking it.
|
|
2
|
-
// node examples/51-read-a-proof.mjs [txHash]
|
|
3
|
-
//
|
|
2
|
+
// MOONBEAM_API=<your coordination endpoint>/v1 node examples/51-read-a-proof.mjs [txHash]
|
|
3
|
+
// read the proof live, then verify(blob) by eth_call on Base
|
|
4
|
+
// node examples/51-read-a-proof.mjs the recorded proof, and the call that Base answered true for
|
|
4
5
|
import { readFileSync } from 'node:fs';
|
|
5
6
|
import { readProof, verifyCall, verifyOnBase } from '@moonbeam-foundation/sdk/proof';
|
|
6
7
|
import { baseReader } from '@moonbeam-foundation/sdk/rpc';
|
|
7
8
|
|
|
8
9
|
const tx = process.argv[2] ?? '0x48f87043df02dc8f97c3a70afb8c8748848d0efae865cb251c429cce57bc127f';
|
|
9
|
-
if (process.env.OFFLINE) {
|
|
10
|
+
if (process.env.OFFLINE || !process.env.MOONBEAM_API) {
|
|
10
11
|
const p = JSON.parse(readFileSync(new URL('./data/proof-base-tx-52587000.json', import.meta.url), 'utf8'));
|
|
11
12
|
const c = verifyCall(p.blob);
|
|
12
13
|
console.log(`recorded proof of ${p.tx}: block ${p.block_number}, superroot 0x${p.super_root_hash}`);
|
|
13
14
|
console.log(`verify(blob) → ${c.to}, bound at block ${c.boundAt.blockNumber}, ${c.data.length / 2 - 1} bytes of calldata`);
|
|
14
15
|
process.exit(0);
|
|
15
16
|
}
|
|
16
|
-
const p = await readProof({ base:
|
|
17
|
+
const p = await readProof({ base: process.env.MOONBEAM_API, fetch: (u, i) => fetch(u, i) }, tx);
|
|
17
18
|
console.log(`proof of ${p.tx}: block ${p.block_number} · proven by the layer: ${p.proven} · ${p.ref}`);
|
|
18
19
|
if (p.blob) {
|
|
19
20
|
const c = await verifyOnBase(baseReader(), p.blob);
|
|
@@ -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
|
@@ -71,19 +71,28 @@ Each role gets a readiness report: what you put up, what you can lose, and anyth
|
|
|
71
71
|
| # | File | What it shows | You see |
|
|
72
72
|
|---|---|---|---|
|
|
73
73
|
| 40 | [the-article](40-the-article.mjs) | Every claim the launch article makes about the SDK, checked. Live, it also finds the equation job's grade on Base (`OFFLINE=1` skips that) | `every claim holds` |
|
|
74
|
-
| 50 | [x402-pay-a-wall](50-x402-pay-a-wall.mjs) | A wall's 402
|
|
74
|
+
| 50 | [x402-pay-a-wall](50-x402-pay-a-wall.mjs) | A wall's 402 (six networks), the entry of your network, `quoteSale`'s price, where a seller on Solana is paid, the EIP-3009 typed data your wallet signs and the PAYMENT-SIGNATURE header | `signs TransferWithAuthorization under USD Coin v2 on chain 8453` |
|
|
75
75
|
| 51 | [read-a-proof](51-read-a-proof.mjs) | A Base transaction's proof from the layer, then `verify(blob)` on the V5 verifier on Base | `verify(blob) on Base: true` |
|
|
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
|
-
Only the
|
|
88
|
+
Only the live examples read anything from the environment.
|
|
82
89
|
|
|
83
90
|
| Variable | Used by | Required | Default |
|
|
84
91
|
|---|---|---|---|
|
|
85
92
|
| `TYPESAFE_KEY` | 17 | yes, for 17 | none: 17 explains how to get one and stops. Your key is sent to TypeSafe only |
|
|
86
93
|
| `BASE_RPC` | 32 | no | `https://mainnet.base.org` |
|
|
94
|
+
| `MOONBEAM_API` | 50, 51 | no | none: they use their recorded answers. Set it to your coordination endpoint (`…/v1`) to read live |
|
|
95
|
+
| `NETWORK` | 50 | no | `eip155:8453` (any network the wall offers: `arbitrum`, `eip155:5042`, `solana`, …) |
|
|
87
96
|
| `JOB` | 32 | no | `74926` |
|
|
88
97
|
| `FROM_BLOCK`, `WINDOWS` | 32 | no | `50427200`, `4` windows of 500 blocks |
|
|
89
98
|
|
|
@@ -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
|
+
}
|