@moonbeam-foundation/sdk 0.12.0 → 0.13.1

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.
Files changed (155) hide show
  1. package/README.md +79 -18
  2. package/bin/moonbeam.mjs +4 -1
  3. package/dist/actors/track-record.d.ts +1 -1
  4. package/dist/actors/track-record.js +1 -1
  5. package/dist/arbitration/index.d.ts +10 -4
  6. package/dist/arbitration/index.d.ts.map +1 -1
  7. package/dist/arbitration/index.js +14 -2
  8. package/dist/arbitration/index.js.map +1 -1
  9. package/dist/assurance/assurance-shared.d.ts +85 -132
  10. package/dist/assurance/assurance-shared.js +46 -90
  11. package/dist/core/keyed.d.ts +17 -0
  12. package/dist/core/keyed.d.ts.map +1 -0
  13. package/dist/core/keyed.js +36 -0
  14. package/dist/core/keyed.js.map +1 -0
  15. package/dist/cover/index.d.ts +3 -3
  16. package/dist/cover/index.d.ts.map +1 -1
  17. package/dist/cover/index.js +2 -1
  18. package/dist/cover/index.js.map +1 -1
  19. package/dist/devnet/index.d.ts +3 -3
  20. package/dist/devnet/index.d.ts.map +1 -1
  21. package/dist/devnet/index.js +7 -6
  22. package/dist/devnet/index.js.map +1 -1
  23. package/dist/devnet/profile.d.ts +1 -1
  24. package/dist/devnet/profile.d.ts.map +1 -1
  25. package/dist/devnet/profile.js +3 -2
  26. package/dist/devnet/profile.js.map +1 -1
  27. package/dist/economy/index.d.ts +264 -0
  28. package/dist/economy/index.d.ts.map +1 -0
  29. package/dist/economy/index.js +376 -0
  30. package/dist/economy/index.js.map +1 -0
  31. package/dist/erc8183/index.d.ts +1 -1
  32. package/dist/errors/index.d.ts +5 -5
  33. package/dist/errors/index.d.ts.map +1 -1
  34. package/dist/errors/index.js +3 -3
  35. package/dist/jobs/index.d.ts +4 -4
  36. package/dist/jobs/index.d.ts.map +1 -1
  37. package/dist/jobs/index.js +3 -2
  38. package/dist/jobs/index.js.map +1 -1
  39. package/dist/market/cohorts.d.ts +112 -0
  40. package/dist/market/cohorts.d.ts.map +1 -0
  41. package/dist/market/cohorts.js +72 -0
  42. package/dist/market/cohorts.js.map +1 -0
  43. package/dist/market/http.d.ts.map +1 -1
  44. package/dist/market/http.js +2 -1
  45. package/dist/market/http.js.map +1 -1
  46. package/dist/market/index.d.ts +27 -17
  47. package/dist/market/index.d.ts.map +1 -1
  48. package/dist/market/index.js +16 -9
  49. package/dist/market/index.js.map +1 -1
  50. package/dist/market/journey.d.ts +7 -7
  51. package/dist/market/journey.d.ts.map +1 -1
  52. package/dist/market/journey.js +10 -9
  53. package/dist/market/journey.js.map +1 -1
  54. package/dist/market/listed.d.ts +228 -0
  55. package/dist/market/listed.d.ts.map +1 -0
  56. package/dist/market/listed.js +169 -0
  57. package/dist/market/listed.js.map +1 -0
  58. package/dist/market/reads.d.ts +124 -0
  59. package/dist/market/reads.d.ts.map +1 -0
  60. package/dist/market/reads.js +99 -0
  61. package/dist/market/reads.js.map +1 -0
  62. package/dist/market/sale-stops.d.ts +2 -2
  63. package/dist/market/sale-stops.d.ts.map +1 -1
  64. package/dist/market/states-data.d.ts +491 -0
  65. package/dist/market/states-data.d.ts.map +1 -0
  66. package/dist/market/states-data.js +4 -0
  67. package/dist/market/states-data.js.map +1 -0
  68. package/dist/market/states.d.ts +40 -0
  69. package/dist/market/states.d.ts.map +1 -0
  70. package/dist/market/states.js +36 -0
  71. package/dist/market/states.js.map +1 -0
  72. package/dist/market/venues-data.d.ts.map +1 -1
  73. package/dist/market/venues-data.js +808 -40
  74. package/dist/market/venues-data.js.map +1 -1
  75. package/dist/market/venues.d.ts +50 -5
  76. package/dist/market/venues.d.ts.map +1 -1
  77. package/dist/market/venues.js +23 -7
  78. package/dist/market/venues.js.map +1 -1
  79. package/dist/onboard/index.d.ts +215 -33
  80. package/dist/onboard/index.d.ts.map +1 -1
  81. package/dist/onboard/index.js +344 -34
  82. package/dist/onboard/index.js.map +1 -1
  83. package/dist/onboard/send.d.ts +43 -0
  84. package/dist/onboard/send.d.ts.map +1 -0
  85. package/dist/onboard/send.js +65 -0
  86. package/dist/onboard/send.js.map +1 -0
  87. package/dist/playground/cases.d.ts +72 -0
  88. package/dist/playground/cases.d.ts.map +1 -0
  89. package/dist/playground/cases.js +115 -0
  90. package/dist/playground/cases.js.map +1 -0
  91. package/dist/playground/doc.d.ts +2 -0
  92. package/dist/playground/doc.d.ts.map +1 -0
  93. package/dist/playground/doc.js +52 -0
  94. package/dist/playground/doc.js.map +1 -0
  95. package/dist/playground/index.d.ts +172 -0
  96. package/dist/playground/index.d.ts.map +1 -0
  97. package/dist/playground/index.js +246 -0
  98. package/dist/playground/index.js.map +1 -0
  99. package/dist/playground/nets.d.ts +79 -0
  100. package/dist/playground/nets.d.ts.map +1 -0
  101. package/dist/playground/nets.js +147 -0
  102. package/dist/playground/nets.js.map +1 -0
  103. package/dist/playground/ports.d.ts +93 -0
  104. package/dist/playground/ports.d.ts.map +1 -0
  105. package/dist/playground/ports.js +72 -0
  106. package/dist/playground/ports.js.map +1 -0
  107. package/dist/playground/stream.d.ts +106 -0
  108. package/dist/playground/stream.d.ts.map +1 -0
  109. package/dist/playground/stream.js +269 -0
  110. package/dist/playground/stream.js.map +1 -0
  111. package/dist/pools/index.d.ts +18 -7
  112. package/dist/pools/index.d.ts.map +1 -1
  113. package/dist/pools/index.js +31 -9
  114. package/dist/pools/index.js.map +1 -1
  115. package/dist/proof/index.d.ts +5 -5
  116. package/dist/proof/index.d.ts.map +1 -1
  117. package/dist/proof/index.js +3 -2
  118. package/dist/proof/index.js.map +1 -1
  119. package/dist/resale/index.d.ts +13 -13
  120. package/dist/resale/index.d.ts.map +1 -1
  121. package/dist/resale/index.js +20 -19
  122. package/dist/resale/index.js.map +1 -1
  123. package/dist/resale/payment-scheme.d.mts +2 -5
  124. package/dist/resale/payment-scheme.mjs +16 -116
  125. package/dist/resale/payment-scheme.pin.json +1 -2
  126. package/dist/resale/settle-rule.d.ts +3 -3
  127. package/dist/resale/settle-rule.d.ts.map +1 -1
  128. package/dist/resale/settle-rule.js +3 -3
  129. package/dist/resale/settle-rule.js.map +1 -1
  130. package/dist/rpc/index.js +1 -1
  131. package/dist/workflows/index.js +1 -1
  132. package/dist/workflows/steps.d.ts +4 -4
  133. package/dist/workflows/steps.d.ts.map +1 -1
  134. package/dist/workflows/steps.js +4 -4
  135. package/dist/workflows/steps.js.map +1 -1
  136. package/dist/workflows/types.d.ts +1 -1
  137. package/dist/x402/index.d.ts +2 -2
  138. package/dist/x402/index.d.ts.map +1 -1
  139. package/dist/x402/index.js +5 -4
  140. package/dist/x402/index.js.map +1 -1
  141. package/docs/PATHS.md +96 -0
  142. package/docs/REFERENCE.md +52 -19
  143. package/docs/VENUES.md +85 -36
  144. package/docs/WORKFLOWS.md +3 -3
  145. package/docs/io-coverage.md +206 -0
  146. package/docs/playground.md +220 -0
  147. package/examples/24-resell-on-base.mjs +1 -1
  148. package/examples/50-x402-pay-a-wall.mjs +1 -1
  149. package/examples/51-read-a-proof.mjs +2 -2
  150. package/examples/README.md +1 -1
  151. package/examples/data/cross-list.recorded.json +1 -1
  152. package/examples/data/x402-wall-402.json +6 -6
  153. package/package.json +28 -4
  154. package/dist/assurance/assurance-shared.d.ts.map +0 -1
  155. package/dist/assurance/assurance-shared.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/x402/index.ts"],"names":[],"mappings":"AAsBA,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAgB,MAAM,oBAAoB,CAAC;AAEjF,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAsB,CAAC;AACxD,MAAM,CAAC,MAAM,mBAAmB,GAAG,yCAAkD,CAAC;AACtF,wFAAwF;AACxF,MAAM,CAAC,MAAM,eAAe,GAAqC,MAAM,CAAC,MAAM,CAAC;IAC7E,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,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,QAAQ,IAAI,CAAC,IAAI,MAAM,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAChH,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AACrD,CAAC;AACD,OAAO,EAAE,aAAa,EAAE,CAAC"}
package/docs/PATHS.md ADDED
@@ -0,0 +1,96 @@
1
+ # Venue paths
2
+
3
+ <!-- _VENUE_PATHS_v1_: generated by scripts/gen-paths.mjs from coord ab4d92c3f (lang/gen/venue-paths.public.json): do not edit -->
4
+
5
+ Each market Moonbeam lists on, with its three paths: list, buy and sell. Every step names what it leaves behind and the read that shows it.
6
+ A run is kept in `test/io/fixtures` and is what a **tested** cell in `VENUES` stands on.
7
+
8
+ ## x402
9
+
10
+ | Path | What it does | Steps | Proved by | Transactions | Run file |
11
+ |---|---|---|---|---|---|
12
+ | list | the operator’s class walls in the x402 directories buyers search | published → indexed | live | — | — |
13
+ | buy | the operator pays an outside 402 seller for the answer it resells | hired → paid → delivered | not yet | — | — |
14
+ | sell | an outside buyer pays the operator’s wall; the seller whose answer it was is paid its share | settled → delivered → legs → paid | fork, live | 21 on Base | `x402-base/bought/run-fork-sell.json`<br>`x402-base/delivered/run-fork-sell.json`<br>`x402-base/paid/run-fork-sell.json` |
15
+
16
+ Not yet:
17
+
18
+ - buy · paid: its stream row operator.x402-buy is off the pipe (phase off: VEN)
19
+
20
+ ## Virtuals ACP (ERC-8183 jobs)
21
+
22
+ | Path | What it does | Steps | Proved by | Transactions | Run file |
23
+ |---|---|---|---|---|---|
24
+ | list | the operator’s offering on Virtuals ACP (ERC-8183 v3), where buyers search | listed | not yet | — | — |
25
+ | buy | the operator hires an outside ACP v3 provider for a job it was paid for | opened → funded → delivered → settled | fork | — | `erc8183-base/bought/run-fork-buy.json` |
26
+ | sell | an outside client hires the operator’s provider; the venue pays the operator, the operator pays the doer | opened → funded → delivered → settled | fork | — | `erc8183-base/bought/run-fork-sell.json`<br>`erc8183-base/delivered/run-fork-sell.json`<br>`erc8183-base/paid/run-fork-sell.json` |
27
+
28
+ Not yet:
29
+
30
+ - buy · opened: its stream row operator.acp-escrow is off the pipe (phase off: E-RAW)
31
+ - buy · funded: its stream row operator.acp-escrow is off the pipe (phase off: E-RAW)
32
+ - buy · settled: its stream row operator.acp-escrow is off the pipe (phase off: E-RAW)
33
+ - sell · delivered: its stream row operator.escrow-sig is off the pipe (phase off: VEN)
34
+
35
+ ## Olas Mech
36
+
37
+ | Path | What it does | Steps | Proved by | Transactions | Run file |
38
+ |---|---|---|---|---|---|
39
+ | list | the operator’s mech on the Olas MechMarketplace, its tools on its card | listed | live | — | — |
40
+ | buy | the operator sends a request to an outside mech | requested → delivered | fork | — | `olas-base/bought/run-fork-buy.json` |
41
+ | sell | an outside requester asks the operator’s mech; the mech delivers and is paid | requested → delivered | not yet | — | — |
42
+
43
+ Not yet:
44
+
45
+ - buy · requested: its stream row operator.olas-buy is off the pipe (phase off: E-RAW)
46
+
47
+ ## ERC-8004
48
+
49
+ | Path | What it does | Steps | Proved by | Transactions | Run file |
50
+ |---|---|---|---|---|---|
51
+ | list | the operator’s agent identity in the ERC-8004 registry, its card resolving to a working door | registered | live | — | — |
52
+ | buy | the operator buys from an agent found by its ERC-8004 identity: the record resolves to its endpoint, paid as an x402 call | resolved → paid → delivered | not yet | — | — |
53
+ | sell | a buyer finds the operator by its ERC-8004 identity and pays the endpoint it declares; the doer paid its share | resolved → settled → paid | not yet | — | — |
54
+
55
+ Not yet:
56
+
57
+ - list · registered: signed by a purpose but carried by no stream row
58
+ - buy · paid: its stream row operator.x402-buy is off the pipe (phase off: VEN)
59
+
60
+ ## MCP Registry
61
+
62
+ | Path | What it does | Steps | Proved by | Transactions | Run file |
63
+ |---|---|---|---|---|---|
64
+ | list | the operator’s MCP server in the registries agents install from | listed | live | — | — |
65
+ | buy | the operator calls an outside MCP server's paid tool and pays its x402 wall | hired → paid → delivered | not yet | — | — |
66
+ | sell | an MCP tool call paid with x402 on Base; the doer paid its share | settled → paid | fork | — | `mcp/bought/run-fork-sell.json`<br>`mcp/delivered/run-fork-sell.json`<br>`mcp/paid/run-fork-sell.json` |
67
+
68
+ Not yet:
69
+
70
+ - list · listed: its stream row operator.sell-adapters is off the pipe (phase off: VEN)
71
+ - buy · paid: its stream row operator.x402-buy is off the pipe (phase off: VEN)
72
+
73
+ ## A2A Registry
74
+
75
+ | Path | What it does | Steps | Proved by | Transactions | Run file |
76
+ |---|---|---|---|---|---|
77
+ | list | the operator’s agent card in the A2A registry | listed | live | — | — |
78
+ | buy | the operator calls an outside A2A agent's paid skill and pays its x402 wall | hired → paid → delivered | not yet | — | — |
79
+ | sell | an A2A task paid with x402 on Base; the doer paid its share | settled → paid | fork | — | `a2a/bought/run-fork-sell.json`<br>`a2a/delivered/run-fork-sell.json`<br>`a2a/paid/run-fork-sell.json` |
80
+
81
+ Not yet:
82
+
83
+ - list · listed: its stream row operator.sell-adapters is off the pipe (phase off: VEN)
84
+ - buy · paid: its stream row operator.x402-buy is off the pipe (phase off: VEN)
85
+
86
+ ## NEAR AI Agent Market
87
+
88
+ | Path | What it does | Steps | Proved by | Transactions | Run file |
89
+ |---|---|---|---|---|---|
90
+ | list | the operator’s agent on the NEAR agent market (not on Base) | listed | live | — | — |
91
+ | buy | the operator hires an agent on the NEAR market and pays into the market's escrow | hired → paid → delivered | not yet | — | — |
92
+ | sell | an outside buyer hires the operator’s agent on the NEAR market; the market releases the escrow on the buyer's acceptance | hired → delivered → settled | not yet | — | — |
93
+
94
+ Not yet:
95
+
96
+ - list · listed: no audited route named: no coord stream row, no purpose and no outside party
package/docs/REFERENCE.md CHANGED
@@ -23,7 +23,7 @@ buyer. That covers the *price of the job*.
23
23
 
24
24
  It does not cover the *cost of the failure* — the campaign that missed its slot,
25
25
  the fill that never happened — and it leaves the evaluator with no capital
26
- behind its verdict. This SDK models the layer that closes both gaps.
26
+ behind its verdict. This SDK models the protocol that closes both gaps.
27
27
 
28
28
  ### Quick start: settle a covered job
29
29
 
@@ -198,24 +198,57 @@ providers that reject them leave holes in history that later reads never revisit
198
198
  ## Building transactions
199
199
 
200
200
  The SDK builds calls; it never signs or sends them, and never holds a key. The calls target the assurance hook Moonbeam runs
201
- on Base (`@moonbeam-foundation/sdk/onboard`; the hook, the pool factory and the pools are read from the coordination layer's
201
+ on Base (`@moonbeam-foundation/sdk/onboard`; the hook, the pool factory and the pools are read from Moonbeam's
202
202
  address registry, never typed here):
203
203
 
204
204
  ```ts
205
- import { fundCalls, sellerDepositCalls, coverPremium, submitCalls, settleCalls, BASE_GLMR, BASE_USDC, MOONBEAM_HOOK } from '@moonbeam-foundation/sdk/onboard';
205
+ import { planFunding, readHook, fundCalls, sellerDepositCalls, revokeFunderCalls, coverPremium, submitCalls, settleCalls, autoCompleteCalls, claimCalls, sendCalls, BASE_GLMR, BASE_USDC } from '@moonbeam-foundation/sdk/onboard';
206
+ import { baseReader } from '@moonbeam-foundation/sdk/rpc';
206
207
 
207
208
  // a covered job is a GLMR job: the hook covers in GLMR only (the USDC route closed on 2026-09-29)
208
209
  const premium = coverPremium(terms.price, { k: 19, n: 20 }); // the seller's record → the premium (jev-wilson)
209
- sellerDepositCalls(terms); // the seller approves exactly its deposit
210
- const [approve, fund] = fundCalls({ ...terms, token: BASE_GLMR }, { pool, premium, coverCap }); // approve price + premium, then fundJobWithCover
211
- const [approveU, fundU] = fundCalls({ ...terms, token: BASE_USDC }); // an uncovered USDC job: no pool, premium 0
212
- submitCalls({ jobId, evidenceDigest, correlator }); // the seller seals its delivery
213
- settleCalls(jobId, 'completed'); // complete(jobId) · reject(jobId, digest) · expire(jobId)
210
+ const plan = await planFunding(baseReader(), { ...terms, token: BASE_GLMR }, { pool, premium, coverCap });
211
+ // plan.rules: 'v3' | 'v3.1', read from the chain · plan.seller: what the seller signs first · plan.buyer: approve, then fund
212
+ await sendCalls(sellerWallet, plan.seller); // the call's chain is enforced: a mismatch is refused
213
+ await sendCalls(buyerWallet, plan.buyer);
214
+ submitCalls({ jobId: plan.jobId, evidenceDigest, correlator }); // the seller seals its delivery
215
+ const { job } = await readHook(baseReader(), { jobId: plan.jobId }); // the job's own rules, state and review window
216
+ settleCalls(plan.jobId, 'completed', undefined, { job }); // complete(jobId)
217
+ autoCompleteCalls(job!, now); // V3.1: after the review window, anyone completes it
214
218
  ```
215
219
 
220
+ **Which rules apply is read, never assumed.** `readHook(reader, …)` makes one `eth_call` (Multicall3 `aggregate3`) and reports
221
+ `rules: 'v3'` (the live hook) or `'v3.1'` (its append-only upgrade: it answers `poolFactory()` and `MAX_DEADLINE()`, which revert
222
+ on V3), with the factory's pool for the seller, whether the seller approved the buyer as a funder, the seller's allowance, the
223
+ chain's time and, for a job, its state and review window. A job funded before the upgrade keeps the V3 rules on the upgraded
224
+ hook (it has no review window). What changes with the rules:
225
+
226
+ | | V3 (live) | V3.1 |
227
+ |---|---|---|
228
+ | Who may open a job that pulls the seller's deposit | anyone the seller's allowance reaches | the seller, or a funder it approved: the seller signs `approveFunder(buyer, true)` (`sellerDepositCalls(terms, { rules, funder })`), and may revoke it (`revokeFunderCalls`) |
229
+ | Deadline | unbounded on chain; the SDK refuses more than 365 days | at most 365 days after funding (the hook and the SDK) |
230
+ | After delivery | the buyer completes or rejects; past the deadline anyone expires it | the buyer completes; it has no reject. A hook evaluator may reject inside the review window (1 h to 30 days); after it anyone calls `claimAutoComplete` (`autoCompleteCalls`). A delivered job no longer expires |
231
+ | A named pool | the SDK checks `PoolFactory.poolOf(seller, GLMR)` | the hook and the SDK check it |
232
+ | A payout the recipient cannot receive | reverts the ending | credited; the recipient calls `claim(token)` (`claimCalls`) |
233
+
234
+ `settleCalls(jobId, 'rejected', digest, { job })` needs the job's rules: on a V3.1 job it refuses the buyer and builds the
235
+ evaluator's call only with `as: 'evaluator'`, inside the window. `fundCalls` with a pool needs `registeredPool` (the factory's
236
+ answer), and refuses any other pool; `planFunding` reads it for you.
237
+
238
+ **The job id.** `jobIdOf(terms)` without a salt is a public hash of the terms, so anyone who knows them can fund that id first
239
+ and the intended funding reverts `JobExists`. `planFunding` salts every id with 32 fresh random bytes (`newJobSalt()`), so the
240
+ id cannot be derived from the terms. Keep the salt (and the id) to the buyer and the seller until the funding has landed; if a
241
+ funding is refused with `JobExists`, plan again (a new salt) rather than retrying the same id.
242
+
243
+ **Sending.** Every `UnsignedCall` names its chain. `sendCalls(provider, calls)` (any EIP-1193 wallet) reads the wallet's chain
244
+ before each call and refuses a mismatch (`ChainMismatchError`), or with `switchChain: true` asks the wallet to switch and reads
245
+ it again; it sends the next call only after the previous receipt reads success. An integration that signs another way must make
246
+ the same check (`assertCallChain(call, walletChainId)`).
247
+
216
248
  `fundJob`'s last address word is the **cover pool**, not an evaluator: the hook keeps no per-job evaluator (evaluators are the
217
- owner's allowlist). `premium` is an argument the hook checks against the pool. A USDC job with a pool is refused before any call
218
- (the hook would revert `PoolAssetMismatch`). `MOONBEAM_HOOK.status` carries the registry's word on the hook row (`live`, or
249
+ owner's allowlist). `premium` is an argument: the hook refuses 0 when a pool is named (`CoverNotPaidFor`); it does not compare it
250
+ with a rate of the pool. A USDC job with a pool is refused before any call (the hook would revert `PoolAssetMismatch`). Every
251
+ approve the SDK builds is for an exact amount. `MOONBEAM_HOOK.status` carries the registry's word on the hook row (`live`, or
219
252
  `scheduled-change` while a route change is announced). `test/fork/run-fork.mjs` sends these calls on a local fork of Base:
220
253
  deposit approval, approve, `fundJob` against a live pool, `submit`, `complete`, then the settle's attestation.
221
254
 
@@ -266,9 +299,9 @@ byte for byte.
266
299
 
267
300
  ## Reselling on Base
268
301
 
269
- `@moonbeam-foundation/sdk/resale` is the Moonbeam profile of the coordination layer's one payment scheme, a byte-identical
270
- vendored copy pinned by its sha256 (`src/resale/payment-scheme.pin.json`): what a reseller's visitor pays, where every unit of it
271
- goes, and the reseller's own leg — the same numbers the layer itself charges.
302
+ `@moonbeam-foundation/sdk/resale` is the Moonbeam profile of the one payment scheme Moonbeam prices with, a vendored
303
+ copy whose source is pinned by its sha256 (`dist/resale/payment-scheme.pin.json`; published without its comments): what a
304
+ reseller's visitor pays, where every unit of it goes, and the reseller's own leg — the same numbers Moonbeam itself charges.
272
305
 
273
306
  ```
274
307
  price_to_buyer = seller_price + our_fee + venue_fee(in) + venue_fee(out) [+ reseller_markup]
@@ -279,14 +312,14 @@ import { quoteBase, legsByName, markupLeg, childKeyTerms, childKeyPlan, subscrib
279
312
 
280
313
  const q = quoteBase({ venue_in: 'reseller', venue_out: 'erc8183-base', seller_price: 8_000n, reseller: { tenant, markup_bps: 1000 } });
281
314
  if (q.ok) legsByName(q); // { our_fee: 2000n, venue_fee: 888n, seller_share: 8000n, reseller_markup: 1000n }; Σ = q.price_to_buyer
282
- childKeyTerms({ '*': 1000 }); // what a child key is, in the layer's words
315
+ childKeyTerms({ '*': 1000 }); // what a child key is, in Moonbeam's words
283
316
  childKeyPlan({ '*': 1000 }); // POST /tenant/keys { action: 'child', markup_bps } — the reseller sends it with its own key
284
317
  subscribePlan({ usdc: 1 }); // POST /access/subscribe — the child's top-up door (the x402 quote comes back as a 402)
285
318
  await readSale(transport, 'rs_…'); // GET /resale/sales/{id} through the site's proxy
286
319
  ```
287
320
 
288
- A reseller is a tenant of the layer; its visitors buy on child keys from the reseller's balance; the markup is the reseller's
289
- own leg, never part of the layer's fee. The buyer pays on one of the five Base venues (`x402-base`, `erc8183-base`,
321
+ A reseller is a tenant of Moonbeam; its visitors buy on child keys from the reseller's balance; the markup is the reseller's
322
+ own leg, never part of Moonbeam's fee. The buyer pays on one of the five Base venues (`x402-base`, `erc8183-base`,
290
323
  `memoacp-base`, `bitagent-base`, `olas-base`), and the assurance economy stays in GLMR. The seller is paid where it was hired:
291
324
  `quoteSale` takes the seller's own venue (x402 on Solana or Arbitrum, ACP v3 on Arc, and the others the scheme prices), and
292
325
  `sellerRailOf(offer)` says which network, token and payTo its leg settles on. A seller's own x402 entry comes first, then its
@@ -359,7 +392,7 @@ reads up to 50 of them in one call. A job whose grade came back `needs_review` h
359
392
  ## Refusals
360
393
 
361
394
  Every read throws a `CoordError` on a refusal (`./errors`): `status`, `code`, `type`, `param`, `nextStep` and the words as
362
- its message. The layer refuses in two shapes, `{ ok: false, code, error: "<words>" }` and the OpenAI error object
395
+ its message. Moonbeam refuses in two shapes, `{ ok: false, code, error: "<words>" }` and the OpenAI error object
363
396
  `{ error: { message, type, param, code } }`, and `refusalOf` reads both. An `error` that is an object never surfaces as
364
397
  `[object Object]`.
365
398
 
@@ -369,12 +402,12 @@ its message. The layer refuses in two shapes, `{ ok: false, code, error: "<words
369
402
  import { readProof, verifyOnBase } from '@moonbeam-foundation/sdk/proof';
370
403
  import { baseReader } from '@moonbeam-foundation/sdk/rpc';
371
404
  const p = await readProof(transport, txHash); // block, superroot, checks, proven, ref v5:8453:<tx>@<superroot>
372
- // { chain: 42161 } reads a transaction on another chain the layer proves
405
+ // { chain: 42161 } reads a transaction on another chain Moonbeam proves
373
406
  const c = await verifyOnBase(baseReader(), p.blob!); // verify(blob) by eth_call on the V5 verifier 0x2D475a53eAA8F9AC78B69bD2429275a622C644f8
374
407
  ```
375
408
 
376
409
  `c.verified` is what the verifier returns. `c.anchored` is false while the verifier has no superroot anchor set. The
377
- block is bound to the snapshot the verifier folds by the inclusion path the layer serves (`c.inclusion`).
410
+ block is bound to the snapshot the verifier folds by the inclusion path Moonbeam serves (`c.inclusion`).
378
411
 
379
412
  ## Arbitration
380
413
 
package/docs/VENUES.md CHANGED
@@ -5,7 +5,8 @@
5
5
  ## How a state is read
6
6
 
7
7
  Each step's state comes from the Moonbeam product's market register (`src/market/venues-register.json`, refreshed with
8
- `node scripts/gen-venues.mjs --from <register>`; `npm run check:venues` keeps the module in step). The SDK never sets a state.
8
+ `node scripts/gen-venues.mjs --from <register>`; `npm run check:venues` keeps the module in step). Those states were read for
9
+ the operator's own listings, one cohort, not Moonbeam's: Moonbeam's own states are under [Per cohort](#per-cohort). The SDK never sets a state.
9
10
  It maps the register's word one way:
10
11
 
11
12
  | Register | State | Means |
@@ -16,15 +17,20 @@ It maps the register's word one way:
16
17
  | claimed, contradicted | **not yet** | no outside run was found |
17
18
  | none | **n/a** | the market has no such step |
18
19
 
19
- `venues(t, { agent })` adds what the layer reads now: `market` (the market's own status and its week of money, from
20
+ `venues(t, { agent })` adds what Moonbeam reads now: `market` (the market's own status and its week of money, from
20
21
  `GET /venues`) and `agentListing` (that agent on the list step's three markets, from `GET /list/:id`). A read that fails is
21
22
  named in `unread`, and the shipped table answers for it. A live read never upgrades a state.
22
23
 
23
24
  Fields of a venue: `id`, `name`, `marketId` (the id `market(t, id)` takes), `does`, `listedBy` (`list-step`, `venue-account`
24
25
  or `registry`), `howListed`, `entry { cost, done }`, and one row per step (`list`, `take`, `settle`, `paid`), each
25
26
  `{ state, register, says, read_on, call }`. `call` is `<module>.<export>`, or null where no SDK call does that step.
27
+ `cohorts` holds each cohort's own `list`, `take` and `settle` (see [Per cohort](#per-cohort)).
26
28
 
27
- ## Every venue
29
+ ## Every venue (the operator's listings)
30
+
31
+ These rows are the register's proof for the operator's own listings. Where Moonbeam itself is listed is the Moonbeam
32
+ column under [Per cohort](#per-cohort): for example the NEAR AI Agent Market's list step is live for the operator's agents,
33
+ and not yet for Moonbeam, whose own agent there is still a private draft.
28
34
 
29
35
  | Venue | List | Take a job | Settle | Paid |
30
36
  |---|---|---|---|---|
@@ -32,13 +38,56 @@ or `registry`), `howListed`, `entry { cost, done }`, and one row per step (`list
32
38
  | Virtuals ACP (ERC-8183 jobs) | not yet · `market.publishListing` | self-test · `jobs.readJobs` | self-test · `market.jobCalls` | self-test · `jobs.readJobs` |
33
39
  | Virtuals memo jobs (memo-ACP) | not yet · `market.publishListing` | not yet · `jobs.readJobs` | not yet · `market.jobCalls` | not yet · `jobs.readJobs` |
34
40
  | BitAgent | not yet · `market.publishListing` | not yet · `jobs.readJobs` | not yet · `market.jobCalls` | not yet · `jobs.readJobs` |
35
- | Olas Mech | live · `market.readListing` | not yet · `market.olasRequest` | not yet · `market.olasRequest` | not yet · `market.olasRequest` |
36
- | NEAR AI Agent Market | partial · `market.readListing` | not yet · `market.handOver` | not yet | not yet |
41
+ | Olas Mech | not yet · `market.readListing` | not yet · `market.olasRequest` | not yet · `market.olasRequest` | not yet · `market.olasRequest` |
42
+ | NEAR AI Agent Market | live · `market.readListing` | not yet · `market.handOver` | not yet | not yet |
37
43
  | A2A Registry | live · `market.listOn` | not yet · `market.handOver` | n/a | not yet · `market.agentSales` |
38
- | MCP Registry | partial · `market.listOn` | not yet · `market.handOver` | n/a | not yet · `market.agentSales` |
44
+ | MCP Registry | live · `market.listOn` | not yet · `market.handOver` | n/a | not yet · `market.agentSales` |
39
45
  | ERC-8004 | live · `market.listOn` | n/a | n/a | n/a |
40
46
  | Workflow nodes (npm) | live | not yet | n/a | n/a |
41
47
 
48
+ ## Per cohort
49
+
50
+ The listed register holds two cohorts: `operator` (the operator's own listings, the cohort the states above were read for)
51
+ and `moonbeam` (Moonbeam's listings, resold under the operator's licence). Until 0.13.0 the operator cohort was named
52
+ `layer`; `cohorts.layer` still reads `cohorts.operator` in 0.13.0 (not in keys or JSON) and goes in 0.14.0. `venue.cohorts[cohort]` gives each its own `list`, `take`
53
+ and `settle`, each `{ state, says, read_on, from, who }`, with `listings` (listings read on the market), `directories` (outside
54
+ directories that show one) and `wanted` (listings still to make). `from` names the read behind the state (`features`,
55
+ `journey` or `register`) and `who` the party that takes the next step, as the feature matrix names it. `cohortOf` in
56
+ `./market` is the rule, and it never borrows the other cohort's proof. For each step, the first rule that holds:
57
+
58
+ | Rule | State |
59
+ |---|---|
60
+ | the market takes no new agent | **closed** |
61
+ | the market has no such step | **n/a** |
62
+ | list: one of Moonbeam's own agents reads back listed on the market's own read (its journey) | **live** (Moonbeam only) |
63
+ | no listing; the other cohort's listing stands in | **shared** |
64
+ | the feature matrix marks the step for this cohort | ok → **live**, partial → **partial**, owner step, not built, broken → **not yet** |
65
+ | no listing | **not yet** |
66
+ | listed, the cohort the evidence was read for | the venue's state |
67
+ | listed, another cohort | list: the venue's state, at most **partial** while a listing is still wanted; take and settle: **not yet** |
68
+
69
+ The feature matrix's step for each SDK step is `STEP_FEATURE`: list → `list`, take → `jobs_received`, settle → `pay`,
70
+ paid → `settle` (the seller's payout). The venue rows above are never lifted by a mark: where the evidence cohort's mark
71
+ reads lower than the register, the row is held at the mark and says so in `capped { mark, read_at }`.
72
+
73
+ The snapshot is refreshed from the live reads (2026-11-14):
74
+
75
+ node scripts/gen-venues.mjs --from <business register> --listed <GET /v1/listed> \
76
+ --features <GET /v1/listed?view=features> --journey <GET /v1/listed?agent=<house ref>&view=journey>,…
77
+
78
+ | Venue | Operator: list · take · settle | Moonbeam: list · take · settle |
79
+ |---|---|---|
80
+ | x402 | live · live · live | live · tested · partial |
81
+ | Virtuals ACP (ERC-8183 jobs) | live · tested · tested | live · tested · tested |
82
+ | Virtuals memo jobs (memo-ACP) | closed · closed · closed | cut · cut · cut |
83
+ | BitAgent | not yet · not yet · not yet | cut · cut · cut |
84
+ | Olas Mech | not yet · partial · not yet | not yet · not yet · not yet |
85
+ | NEAR AI Agent Market | live · live · partial | live · partial · partial |
86
+ | A2A Registry | live · tested · n/a | live · tested · n/a |
87
+ | MCP Registry | live · tested · n/a | live · tested · n/a |
88
+ | ERC-8004 | live · n/a · n/a | live · n/a · n/a |
89
+ | Workflow nodes (npm) | live · partial · n/a | cut · cut · cut |
90
+
42
91
  ## Each venue
43
92
 
44
93
  ### x402 (`x402-base`)
@@ -46,69 +95,69 @@ or `registry`), `howListed`, `entry { cost, done }`, and one row per step (`list
46
95
  Buyers pay per call in USDC on Base; each paid task is handed to your agent and settled through the facilitator. Your listing sells through the class wall of its job class. The Bazaar indexes a wall after its first paid call; x402scan, Ultravioleta and PayAI list it too. `market(t, 'x402')` reads its week of money.
47
96
 
48
97
  - **list**: live: listed in the CDP Bazaar, x402scan, Ultravioleta and PayAI (read 2026-11-06)
49
- - **take**: live: outside payers paid the layer's walls on Base (read 2026-11-06)
50
- - **settle**: live: 18 settle transactions on Base from payers outside the layer's addresses (read 2026-11-06)
98
+ - **take**: live: outside payers paid the operator's walls on Base (read 2026-11-06)
99
+ - **settle**: live: 18 settle transactions on Base from payers outside the operator's addresses (read 2026-11-06)
51
100
  - **paid**: not yet: the payout releaser is armed on Base since 2026-10-16 and has sent nothing: its 2 owed sales are held, their seller publishes no payee (read 2026-11-07)
52
101
 
53
102
  ### Virtuals ACP (ERC-8183 jobs) (`erc8183-base`)
54
103
 
55
104
  A buyer opens an ERC-8183 job with a budget; the provider delivers, the evaluator completes or rejects, the contract pays. Resold through Moonbeam's own seller account on Virtuals: your published listing is one of its offerings. `market(t, 'erc8183')` reads its week of money.
56
105
 
57
- - **list**: not yet: the seller record exists; that buyers can find it was not shown (read 2026-11-06)
58
- - **take**: self-test: the one Base job, 81734, had the layer as client and provider (read 2026-11-06)
59
- - **settle**: self-test: job 81734 completed and released, the layer on both sides (read 2026-11-06)
60
- - **paid**: self-test: job 81734's provider was paid by the contract; the layer was on both sides (read 2026-11-07)
106
+ - **list**: not yet: the seller record exists with 15 offerings, mcp.digest among them; that buyers can find it was not shown (read 2026-11-09)
107
+ - **take**: self-test: the one Base job, 81734, had the operator as client and provider (read 2026-11-06)
108
+ - **settle**: self-test: job 81734 completed and released, the operator on both sides (read 2026-11-06)
109
+ - **paid**: self-test: job 81734's provider was paid by the contract; the operator was on both sides (read 2026-11-07)
61
110
 
62
111
  ### Virtuals memo jobs (memo-ACP) (`memoacp-base`)
63
112
 
64
113
  A buyer and a provider move a job by memos through the Virtuals router; the router pays on the last memo. The same Virtuals account; a record in the memo router's registry is the step still open. `market(t, 'virtuals')` reads its week of money.
65
114
 
66
- - **list**: not yet: no memo-ACP listing of the layer was found (read 2026-11-06)
67
- - **take**: not yet: no memo-ACP job of the layer was found (read 2026-11-06)
68
- - **settle**: not yet: no memo-ACP settlement of the layer was found (read 2026-11-06)
69
- - **paid**: not yet: no memo-ACP payment to a seller of the layer was found (read 2026-11-07)
115
+ - **list**: not yet: no memo-ACP listing of the operator was found (read 2026-11-06)
116
+ - **take**: not yet: no memo-ACP job of the operator was found (read 2026-11-06)
117
+ - **settle**: not yet: no memo-ACP settlement of the operator was found (read 2026-11-06)
118
+ - **paid**: not yet: no memo-ACP payment to a seller of the operator was found (read 2026-11-07)
70
119
 
71
120
  ### BitAgent (`bitagent-base`)
72
121
 
73
122
  ERC-8183 jobs on BitAgent's own contract on Base. An agent registered on BitAgent (an account on the venue), resold through Moonbeam's own seller. `market(t, 'bitagent')` reads its week of money.
74
123
 
75
- - **list**: not yet: the layer is not among the 637 BitAgent agents read (read 2026-11-06)
76
- - **take**: not yet: no BitAgent job of the layer was found (read 2026-11-06)
77
- - **settle**: not yet: no BitAgent settlement of the layer was found (read 2026-11-06)
78
- - **paid**: not yet: no BitAgent payment to a seller of the layer was found (read 2026-11-07)
124
+ - **list**: not yet: the operator is not among the 637 BitAgent agents read (read 2026-11-06)
125
+ - **take**: not yet: no BitAgent job of the operator was found (read 2026-11-06)
126
+ - **settle**: not yet: no BitAgent settlement of the operator was found (read 2026-11-06)
127
+ - **paid**: not yet: no BitAgent payment to a seller of the operator was found (read 2026-11-07)
79
128
 
80
129
  ### Olas Mech (`olas-base`)
81
130
 
82
131
  A requester pays a mech on Base for one request; the mech delivers its answer on chain. An Olas service registered from your own wallet (a bond and gas): `readListing().export.olas` holds its service, mech and worker. `market(t, 'olas')` reads its week of money.
83
132
 
84
- - **list**: live: the layer's mech service page answers on the Olas marketplace (read 2026-11-06)
85
- - **take**: not yet: 0 requests to the layer's mech, and the code to answer a hire is missing (read 2026-11-06)
86
- - **settle**: not yet: no Olas delivery of the layer was found (read 2026-11-06)
87
- - **paid**: not yet: no delivery of the layer's mech, so no payment to it (read 2026-11-07)
133
+ - **list**: partial: the operator's mech service page answers on the Olas marketplace (held at partial by the market's read of 2026-11-15, mark partial) (read 2026-11-06)
134
+ - **take**: not yet: 0 requests to the operator's mech; the answer code exists but no outside hire has been answered (read 2026-11-14)
135
+ - **settle**: not yet: no Olas delivery of the operator was found (read 2026-11-06)
136
+ - **paid**: not yet: no delivery of the operator's mech, so no payment to it (read 2026-11-07)
88
137
 
89
138
  ### NEAR AI Agent Market (`near-agent-market`)
90
139
 
91
140
  Buyers find an agent by category and its own words, and hire it over A2A. Your own account on market.near.ai: `readListing().export.near` is the registration to send.
92
141
 
93
- - **list**: partial: the layer's listing answers on the NEAR AI Agent Market (read 2026-11-06)
94
- - **take**: not yet: 0 delivered jobs of the layer on the NEAR market (read 2026-11-06)
95
- - **settle**: not yet: no NEAR market payment to the layer was found (read 2026-11-06)
142
+ - **list**: live: the operator's listing answers on the NEAR AI Agent Market (read 2026-11-06)
143
+ - **take**: not yet: 0 delivered jobs of the operator on the NEAR market (read 2026-11-06)
144
+ - **settle**: not yet: no NEAR market payment to the operator was found (read 2026-11-06)
96
145
  - **paid**: not yet
97
146
 
98
147
  ### A2A Registry (`a2a`)
99
148
 
100
- A directory of A2A agent cards; buyers call the agent at its card's endpoint. The list step: the layer serves the agent's A2A card and publishes it to the registry.
149
+ A directory of A2A agent cards; buyers call the agent at its card's endpoint. The list step: Moonbeam serves the agent's A2A card and publishes it to the registry.
101
150
 
102
- - **list**: live: the A2A Registry lists the layer; its entry is stale (read 2026-11-06)
103
- - **take**: not yet: only the layer's own test traffic was found (read 2026-11-06)
151
+ - **list**: live: the A2A Registry lists the operator; its entry is stale (read 2026-11-06)
152
+ - **take**: not yet: only the operator's own test traffic was found (read 2026-11-06)
104
153
  - **settle**: n/a: an A2A directory has no settlement step (read 2026-11-06)
105
- - **paid**: not yet: the A2A doer whose share is held is the layer's own wallet; no outside A2A doer was paid (read 2026-11-07)
154
+ - **paid**: not yet: the A2A doer whose share is held is the operator's own wallet; no outside A2A doer was paid (read 2026-11-07)
106
155
 
107
156
  ### MCP Registry (`mcp`)
108
157
 
109
- The official MCP Registry and its mirrors (Glama, PulseMCP); clients call the agent's MCP door. The list step: the layer serves the agent's MCP door and publishes it to the official registry.
158
+ The official MCP Registry and its mirrors (Glama, PulseMCP); clients call the agent's MCP door. The list step: Moonbeam serves the agent's MCP door and publishes it to the official registry.
110
159
 
111
- - **list**: partial: listed in the official MCP Registry and on Glama (read 2026-11-06)
160
+ - **list**: live: the official MCP Registry lists Moonbeam's network.moonbeam.next/paid-calls 1.1.0 (Moonbeam agent listings) as active (published 2026-11-14; its remote answers tools/list with 4 tools), beside the operator's own two entries; Glama mirrors (read 2026-11-14)
112
161
  - **take**: not yet: the MCP endpoint answers; no paid hire through it was found (read 2026-11-06)
113
162
  - **settle**: n/a: an MCP registry has no settlement step (read 2026-11-06)
114
163
  - **paid**: not yet: the MCP seller owed on Base publishes no payee; its share is held (read 2026-11-07)
@@ -117,7 +166,7 @@ The official MCP Registry and its mirrors (Glama, PulseMCP); clients call the ag
117
166
 
118
167
  The identity registry on Base every other market reads: the agent's id, card and endpoint. The list step records it; for an id your own wallet owns, `register8004Calls` builds `register(agentURI)` for you to sign.
119
168
 
120
- - **list**: live: the layer's identities are registered on Base (read 2026-11-06)
169
+ - **list**: live: the operator's identities are registered on Base (read 2026-11-06)
121
170
  - **take**: n/a: an identity registry takes no hire (read 2026-11-06)
122
171
  - **settle**: n/a: an identity registry settles nothing (read 2026-11-06)
123
172
  - **paid**: n/a: an identity registry pays nothing
@@ -126,7 +175,7 @@ The identity registry on Base every other market reads: the agent's id, card and
126
175
 
127
176
  Workflow builders add the agent as a node; each node runs the same calls as this SDK (`./workflows`). A node package on npm; the node directory lists it after its review.
128
177
 
129
- - **list**: live: the package is on npm; the node directory does not list it (read 2026-11-06)
178
+ - **list**: live: the package is on npm and the community node directory lists it (2.0.1, since 2026-11-06) (read 2026-11-09)
130
179
  - **take**: not yet: only test-network runs were found (read 2026-11-06)
131
180
  - **settle**: n/a: a workflow node has no settlement of its own (read 2026-11-06)
132
181
  - **paid**: n/a: a workflow node has no payout of its own
@@ -134,7 +183,7 @@ Workflow builders add the agent as a node; each node runs the same calls as this
134
183
  ## One sale, stop by stop
135
184
 
136
185
  The Studio's sale tour has 17 stops (`tutorial-stop:<id>`), and each has exactly one SDK call that does or reads it. The Studio
137
- shows this table, so its field names are stable: `id`, `order`, `label`, `studio` (the Studio command or layer op),
186
+ shows this table, so its field names are stable: `id`, `order`, `label`, `studio` (the Studio command or Moonbeam op),
138
187
  `call`, `module` (`market`, `resale` or `cli`), `fn`, `route` (null when the call runs offline), `needs` (`offline`, `free`:
139
188
  public on a shared free rate that a key lifts, or `key`) and `hop` (how the Studio's tour says the stop runs: `live`,
140
189
  `partial`, `missing`, or null).
package/docs/WORKFLOWS.md CHANGED
@@ -8,8 +8,8 @@ Each workflow is drawn from its data (`@moonbeam-foundation/sdk/workflows`); a n
8
8
  | **agent** | the chat agent that decides which tool to call next |
9
9
  | **model** | the language model the agent reasons with |
10
10
  | **memory** | what the agent keeps between turns |
11
- | **knowledge** | reads the graph the layer keeps (sellers, buyers, markets, jobs, agents); nothing is written |
12
- | **check** | asks a live agent, or the layer, whether something holds; nothing is paid |
11
+ | **knowledge** | reads the graph Moonbeam keeps (sellers, buyers, markets, jobs, agents); nothing is written |
12
+ | **check** | asks a live agent, or Moonbeam, whether something holds; nothing is paid |
13
13
  | **transform** | turns what was read into terms or a market's own format: a quote, a grade, a listing's export, a card |
14
14
  | **connector** | hands work or a listing to a market in that market's own protocol |
15
15
  | **money** | moves money: answers unsigned calls in order and names who signs each; nothing here signs |
@@ -48,7 +48,7 @@ From your address to every agent market: your pages read, your name proved, your
48
48
  | 3 | read | studio | – | – | your own pages, read and confirmed in your words | ▪ the Studio 2026-11-06: the Studio runs this step itself |
49
49
  | 4 | claim | studio | – | – | one line on your own host that proves the name is yours, read back | ▪ the Studio 2026-11-06: the Studio runs this step itself |
50
50
  | 5 | door | check | – | `testEndpoint()` ./market | your door answers a real call of its class, on your own key | ✓ ran live 2026-11-06: probe true |
51
- | 6 | publish | connector | – | `publishListing()` ./market | one record on the layer, then one graded task per job: each job it passes is sold | · not run 2026-11-06: no agent listing on this key yet: createListing makes one (the Studio's My agents) |
51
+ | 6 | publish | connector | – | `publishListing()` ./market | one record on Moonbeam, then one graded task per job: each job it passes is sold | · not run 2026-11-06: no agent listing on this key yet: createListing makes one (the Studio's My agents) |
52
52
  | 7 | reach | transform | – | `readListing()` ./market | the record in each market's own format: what x402, MCP, ERC-8004, NEAR and Olas each need | · not run 2026-11-06: no agent listing on this key yet: createListing makes one (the Studio's My agents) |
53
53
  | 8 | pay | knowledge | – | `readSale()` ./resale | a sale and the seller's payout, read from the sale record | · not run 2026-11-06: no sale of a listing on this key yet |
54
54
  | 9 | keep | knowledge | – | `readListing()` ./market | rank, price and differences per market, until you publish again | · not run 2026-11-06: no agent listing on this key yet: createListing makes one (the Studio's My agents) |