@moonbeam-foundation/sdk 0.11.0 → 0.13.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.
Files changed (110) hide show
  1. package/README.md +79 -70
  2. package/bin/moonbeam.mjs +18 -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/cover/index.d.ts +3 -3
  12. package/dist/cover/index.d.ts.map +1 -1
  13. package/dist/devnet/index.d.ts +3 -3
  14. package/dist/devnet/index.d.ts.map +1 -1
  15. package/dist/devnet/index.js +4 -4
  16. package/dist/devnet/index.js.map +1 -1
  17. package/dist/devnet/profile.d.ts +1 -1
  18. package/dist/devnet/profile.d.ts.map +1 -1
  19. package/dist/erc8183/index.d.ts +1 -1
  20. package/dist/errors/index.d.ts +5 -5
  21. package/dist/errors/index.d.ts.map +1 -1
  22. package/dist/errors/index.js +3 -3
  23. package/dist/jobs/index.d.ts +4 -4
  24. package/dist/jobs/index.d.ts.map +1 -1
  25. package/dist/jobs/index.js +1 -1
  26. package/dist/jobs/index.js.map +1 -1
  27. package/dist/market/cohorts.d.ts +106 -0
  28. package/dist/market/cohorts.d.ts.map +1 -0
  29. package/dist/market/cohorts.js +70 -0
  30. package/dist/market/cohorts.js.map +1 -0
  31. package/dist/market/http.d.ts +13 -0
  32. package/dist/market/http.d.ts.map +1 -0
  33. package/dist/market/http.js +29 -0
  34. package/dist/market/http.js.map +1 -0
  35. package/dist/market/index.d.ts +43 -20
  36. package/dist/market/index.d.ts.map +1 -1
  37. package/dist/market/index.js +19 -36
  38. package/dist/market/index.js.map +1 -1
  39. package/dist/market/journey.d.ts +174 -0
  40. package/dist/market/journey.d.ts.map +1 -0
  41. package/dist/market/journey.js +179 -0
  42. package/dist/market/journey.js.map +1 -0
  43. package/dist/market/listed.d.ts +228 -0
  44. package/dist/market/listed.d.ts.map +1 -0
  45. package/dist/market/listed.js +168 -0
  46. package/dist/market/listed.js.map +1 -0
  47. package/dist/market/sale-stops.d.ts +29 -0
  48. package/dist/market/sale-stops.d.ts.map +1 -0
  49. package/dist/market/sale-stops.js +29 -0
  50. package/dist/market/sale-stops.js.map +1 -0
  51. package/dist/market/sale.d.ts +98 -0
  52. package/dist/market/sale.d.ts.map +1 -0
  53. package/dist/market/sale.js +64 -0
  54. package/dist/market/sale.js.map +1 -0
  55. package/dist/market/venues-data.d.ts +3 -0
  56. package/dist/market/venues-data.d.ts.map +1 -0
  57. package/dist/market/venues-data.js +1035 -0
  58. package/dist/market/venues-data.js.map +1 -0
  59. package/dist/market/venues.d.ts +143 -0
  60. package/dist/market/venues.d.ts.map +1 -0
  61. package/dist/market/venues.js +123 -0
  62. package/dist/market/venues.js.map +1 -0
  63. package/dist/onboard/index.d.ts +214 -33
  64. package/dist/onboard/index.d.ts.map +1 -1
  65. package/dist/onboard/index.js +340 -31
  66. package/dist/onboard/index.js.map +1 -1
  67. package/dist/onboard/send.d.ts +43 -0
  68. package/dist/onboard/send.d.ts.map +1 -0
  69. package/dist/onboard/send.js +65 -0
  70. package/dist/onboard/send.js.map +1 -0
  71. package/dist/pools/index.d.ts +18 -7
  72. package/dist/pools/index.d.ts.map +1 -1
  73. package/dist/pools/index.js +31 -9
  74. package/dist/pools/index.js.map +1 -1
  75. package/dist/proof/index.d.ts +5 -5
  76. package/dist/proof/index.d.ts.map +1 -1
  77. package/dist/proof/index.js +1 -1
  78. package/dist/resale/index.d.ts +13 -13
  79. package/dist/resale/index.d.ts.map +1 -1
  80. package/dist/resale/index.js +17 -17
  81. package/dist/resale/index.js.map +1 -1
  82. package/dist/resale/payment-scheme.d.mts +2 -5
  83. package/dist/resale/payment-scheme.mjs +16 -116
  84. package/dist/resale/payment-scheme.pin.json +1 -2
  85. package/dist/resale/settle-rule.d.ts +3 -3
  86. package/dist/resale/settle-rule.d.ts.map +1 -1
  87. package/dist/resale/settle-rule.js +3 -3
  88. package/dist/resale/settle-rule.js.map +1 -1
  89. package/dist/rpc/index.js +1 -1
  90. package/dist/workflows/index.js +1 -1
  91. package/dist/workflows/steps.d.ts +4 -4
  92. package/dist/workflows/steps.d.ts.map +1 -1
  93. package/dist/workflows/steps.js +4 -4
  94. package/dist/workflows/steps.js.map +1 -1
  95. package/dist/workflows/types.d.ts +1 -1
  96. package/dist/x402/index.d.ts +2 -2
  97. package/dist/x402/index.d.ts.map +1 -1
  98. package/dist/x402/index.js +2 -2
  99. package/dist/x402/index.js.map +1 -1
  100. package/docs/REFERENCE.md +52 -19
  101. package/docs/VENUES.md +209 -0
  102. package/docs/WORKFLOWS.md +3 -3
  103. package/examples/24-resell-on-base.mjs +1 -1
  104. package/examples/51-read-a-proof.mjs +2 -2
  105. package/examples/70-every-venue.mjs +19 -0
  106. package/examples/README.md +2 -1
  107. package/examples/data/cross-list.recorded.json +1 -1
  108. package/package.json +7 -3
  109. package/dist/assurance/assurance-shared.d.ts.map +0 -1
  110. package/dist/assurance/assurance-shared.js.map +0 -1
package/README.md CHANGED
@@ -9,114 +9,123 @@
9
9
  [![types](https://img.shields.io/npm/types/@moonbeam-foundation/sdk)](https://www.npmjs.com/package/@moonbeam-foundation/sdk)
10
10
  [![license](https://img.shields.io/npm/l/@moonbeam-foundation/sdk)](LICENSE)
11
11
 
12
- Moonbeam is the reseller between agent markets. An agent that sells on one market is listed on the others, each job is graded
13
- before the seller is paid, and every sale's money is split by one rule.
12
+ Moonbeam is the reseller between agent markets. Your agent is listed once and sold on every market. Each job is graded before
13
+ the seller is paid, and every sale's money is split by one rule.
14
14
 
15
15
  ```bash
16
16
  npm install @moonbeam-foundation/sdk
17
- npx moonbeam workflows # the Studio's seven workflows, each node with its class and the SDK call that runs it
17
+ npx moonbeam venues # every venue with its state and calls, and one sale stop by stop (offline)
18
18
  ```
19
19
 
20
- Node 20 or later, TypeScript types included, ESM. Nothing in this SDK signs: a step that moves money answers unsigned calls
20
+ Node 20 or later, TypeScript types included, ESM. Nothing in this SDK signs. A step that moves money answers unsigned calls
21
21
  and names who signs each.
22
22
 
23
- ## Why cross-list
23
+ ## Every venue
24
24
 
25
- Read on 2026-11-06 through `markets()`:
25
+ One table in code, `VENUES` in `./market`. The columns below are Moonbeam's own listing on each market, `venue.cohorts.moonbeam`,
26
+ read on 2026-11-14 from the markets' own pages and the listing reads. The operator's listings, and the register's proof for each
27
+ step, are in [docs/VENUES.md](docs/VENUES.md).
26
28
 
27
- | Market | Paid in the last 7 days |
28
- |---|---|
29
- | x402 (paid HTTP, the Coinbase facilitator) | 375,519 USD |
30
- | Olas Mech | 72 USD |
31
- | Virtuals ACP (memo-ACP) | 2 USD |
32
- | ERC-8183 jobs on Base | 0.48 USD |
33
- | BitAgent | 0 USD |
29
+ | Market | What a seller does there | Moonbeam: list | Take a job · settle | SDK calls |
30
+ |---|---|---|---|---|
31
+ | x402 (Bazaar, x402scan, Ultravioleta, PayAI) | paid per call in USDC on Base | live | partial · partial | `publishListing`, `handOver`, `agentSales` |
32
+ | Virtuals ACP (ERC-8183 jobs) | an ERC-8183 job: deliver, graded, paid by the contract | live | partial · partial | `publishListing`, `readJobs`, `jobCalls` |
33
+ | Virtuals memo jobs (memo-ACP) | a job moved by memos through the Virtuals router | closed | closed · closed | `publishListing`, `readJobs`, `jobCalls` |
34
+ | BitAgent | ERC-8183 jobs on BitAgent's contract | not yet | not yet · not yet | `publishListing`, `readJobs`, `jobCalls` |
35
+ | Olas Mech | one paid request, answered on chain | not yet | not yet · not yet | `readListing` (`export.olas`), `olasRequest` |
36
+ | NEAR AI Agent Market | found by category, hired over A2A | live | not yet · not yet | `readListing` (`export.near`), `handOver` |
37
+ | A2A Registry | a directory of agent cards | live | partial · n/a | `listOn`, `handOver` |
38
+ | MCP Registry (+ Glama, PulseMCP) | the official registry of MCP servers | live | partial · n/a | `listOn`, `handOver` |
39
+ | ERC-8004 | the identity every other market reads | live | n/a · n/a | `listOn`, `register8004Calls` |
40
+ | Workflow nodes (npm) | the agent as a node in a workflow builder | not yet | not yet · n/a | `./workflows` |
34
41
 
35
- Of the 102 sellers with a job record on Base (`sellerRecords()`), none sells on more than one market. The buyers are on x402;
36
- most agent sellers are not.
42
+ **live**: listed and read back on the market (list), or running there (take, settle). **partial**: part of the step runs.
43
+ **shared**: another cohort's listing stands in. **closed**: the market takes no new agent. **n/a**: the market has no such step.
44
+ x402 is where the buyers are: 400,545 USD was paid on it in the 7 days read on 2026-11-08 (`markets()`).
37
45
 
38
- ## Cross-list a seller
46
+ `venues(t, { agent })` folds in what Moonbeam reads now: each market's own status and week of money, and where your agent
47
+ stands on the three markets of the list step. Every row also carries the register's words, its read date and the `paid` step.
48
+ Detail per venue: [docs/VENUES.md](docs/VENUES.md).
39
49
 
40
- ```ts
41
- import { transportFromEnv, sellerRecords } from '@moonbeam-foundation/sdk/market';
42
- import { quoteSale, legsByName } from '@moonbeam-foundation/sdk/resale';
50
+ ## List, manage, measure
43
51
 
44
- const { sellers } = await sellerRecords(transportFromEnv(), { chainId: 8453 });
45
- const q = quoteSale({ venue_in: 'x402-base', venue_out: 'bitagent-base', seller_price: 4_000000n });
46
- legsByName(q); // { seller_share: 4000000n, our_fee: 1000000n, venue_fee: 0n, reseller_markup: 0n }: the buyer pays 5.00 USDC
52
+ ```ts
53
+ import { transportFromEnv, listOn, listStatus, pauseListing, register8004Calls, usage, planOffers } from '@moonbeam-foundation/sdk/market';
54
+
55
+ const t = transportFromEnv(); // MOONBEAM_API, MOONBEAM_API_KEY
56
+ await listOn(t, '8453:1170141'); // ERC-8004, MCP Registry, A2A Registry: part of your plan
57
+ (await listStatus(t, '8453:1170141'))?.markets; // { erc8004: { state: 'listed', url, … }, mcp_registry: …, a2a_registry: … }
58
+ await pauseListing(t, 'al_…'); // also resumeListing, and delistListing(t, id, { confirm: id }) for good
59
+ await register8004Calls(t, 'al_…'); // register(agentURI) unsigned, the listing's own file inline; your wallet signs
60
+ await usage(t); // this month's calls and spend, by family, day and key
61
+ await planOffers(t); // builder 99, team 199, protocol 299 USDC per 30 days; a 1 USDC top-up
47
62
  ```
48
63
 
49
- [`examples/60-cross-list-a-seller.mjs`](examples/60-cross-list-a-seller.mjs) prices two real sellers on every other market:
50
-
51
- ```text
52
- film commentary: sells on bitagent-base at 4 USDC · 79 jobs · 196 USDC paid · 10 buyers
53
- sold on buyer pays seller our fee market fees your markup
54
- x402-base 5.00 4.00 1.00 0.00 0.00
55
- erc8183-base 5.56 4.00 1.00 0.56 0.00
56
- olas-base 5.88 4.00 1.00 0.88 0.00
57
- ```
64
+ `planOffers` reads Moonbeam's 402 answer, so nothing is minted or paid. `agentSales(t, 'mcp.digest')` reads what an agent's
65
+ class wall sold, by day and buying market, and where each seller share stands.
58
66
 
59
- The seller keeps its own price on every market. The legs sum to what the buyer pays: `price to buyer = seller price + our fee
60
- + each market's own fee [+ your markup]`.
67
+ ### Where it is listed, and the plan to list it
61
68
 
62
- ## Resell on your own keys
69
+ ```ts
70
+ import { transportFromEnv, journey, list } from '@moonbeam-foundation/sdk/market';
63
71
 
64
- A reseller mints child keys with its own markup (`childKeyPlan` in `./resale`), and its buyers buy through them. Your margin
65
- per child is read with `resellerChildren()`, and `resellerStanding()` says which step into reselling your key is on. With
66
- `MARKUP_BPS=200` the same film commentary sells at 5.10 USDC, and 0.10 is yours.
72
+ const j = await journey(t, '8453:1170141'); // every venue: standing, five LEDs (offer, hire, list, read back, paid), next step
73
+ j.venues['erc8183-base'].leds.list; // { state: 'on', why, evidence: [{ kind, ref, read_at }], moves_when }
74
+ await list(t, { venue: 'erc8183-base', agent: 'moonbeam' }); // the Virtuals ACP listing step by step, its offerings, done
75
+ ```
67
76
 
68
- ## Workflows, node by node
77
+ Both only read. `list` plans: it never asks for a signer, registers or shows an offering, and its `human` item (the one
78
+ approval a person gives in the Moonbeam Studio) is returned, never acted on.
69
79
 
70
- Each node of a Studio workflow has one class and makes one call. Its colour in the pictures is its class, and its corner mark
71
- is its last verification.
80
+ ## One sale, stop by stop
72
81
 
73
- | Class | Means |
74
- |---|---|
75
- | knowledge | reads the graph the layer keeps: sellers, buyers, markets, jobs, agents |
76
- | check | asks a live agent, or the layer, whether something holds; nothing is paid |
77
- | transform | turns what was read into terms or a market's own format: a quote, a grade, a listing's export |
78
- | connector | hands work or a listing to a market in that market's own protocol |
79
- | money | answers unsigned calls in order, each with its signer |
82
+ `SALE_STOPS` pairs the Studio's sale tour 1:1 with the SDK: 17 stops, each with exactly one call.
80
83
 
81
- ![List my business: ten modules, each with its class and call](https://raw.githubusercontent.com/moonbeam-foundation/moonbeam-sdk/main/docs/workflows/list-business.png)
84
+ | # | Stop | SDK call | # | Stop | SDK call |
85
+ |---|---|---|---|---|---|
86
+ | 1 | The Studio | `npx moonbeam workflows` | 10 | Settled | `jobRecord` |
87
+ | 2 | A seller comes in | `searchSellers` | 11 | Who gets what | `legsByName` (`./resale`) |
88
+ | 3 | Checked and classed | `checkAgent` | 12 | Booked | `saleLedger` |
89
+ | 4 | Listed | `publishListing` | 13 | Added up each week | `payoutQueues` |
90
+ | 5 | The terms | `quoteSale` (`./resale`) | 14 | The vault | `vaultPolicy` |
91
+ | 6 | Your listings | `layerListings` | 15 | Paid | `claimablePayouts` |
92
+ | 7 | Hired | `hirePlan` | 16 | Recorded | `saleRecord` |
93
+ | 8 | Delivered | `handOver` | 17 | What it cost | `keyStanding` |
94
+ | 9 | Graded | `composeGrade` | | | |
82
95
 
83
- ![Sell one task through a listed edge](https://raw.githubusercontent.com/moonbeam-foundation/moonbeam-sdk/main/docs/workflows/sell-edge.png)
96
+ Each stop also names its Studio command, its layer route and what it needs (offline, the free rate, or your key).
84
97
 
85
- On 2026-11-06, 18 of the 25 layer calls behind the nodes ran live, and one job ran end to end on the test network: handed
86
- over, graded, ended. The other seven wait on a listing or a sale on your own key, or on a seller that passes the onboarding
87
- check, and each node says which. Every workflow, every node, its meaning
88
- and its last run are in [docs/WORKFLOWS.md](docs/WORKFLOWS.md); `@moonbeam-foundation/sdk/workflows` holds them as data.
98
+ ## Price a cross-listed sale
89
99
 
90
- ## One SDK, every market
100
+ ```ts
101
+ import { quoteSale, legsByName } from '@moonbeam-foundation/sdk/resale';
91
102
 
92
- | Market | Find and buy | Sell under your own name |
93
- |---|---|---|
94
- | x402, MCP, A2A | `searchSellers`, `classAgents`, `handOver` | `createListing`, `publishListing` |
95
- | Virtuals ACP (ERC-8183, memo-ACP), BitAgent | `sellerRecords`, `readJobs` (`./jobs`) | resold through Moonbeam's own seller |
96
- | Olas Mech, NEAR AI | `markets`, `market` | `readListing().export`: the record in each market's format |
97
- | ERC-8004 | `identity`, `registryAgent`, `readiness` | `jobCalls` with `register-8004`: the unsigned registration |
103
+ const q = quoteSale({ venue_in: 'x402-base', venue_out: 'bitagent-base', seller_price: 4_000000n });
104
+ legsByName(q); // { seller_share: 4000000n, our_fee: 1000000n, venue_fee: 0n, reseller_markup: 0n }: the buyer pays 5.00 USDC
105
+ ```
98
106
 
99
- Every call above is in `./market` unless named otherwise.
107
+ The seller keeps its own price on every market: `price to buyer = seller price + our fee + each market's own fee [+ your
108
+ markup]`. [`examples/60-cross-list-a-seller.mjs`](examples/60-cross-list-a-seller.mjs) prices two real sellers on every other
109
+ market. A reseller mints child keys with its own markup (`childKeyPlan`), and reads its margin with `resellerChildren()`.
100
110
 
101
- ## Assurance and pools on top
111
+ ## Workflows, node by node
102
112
 
103
- Any listing can carry assurance: the seller puts up a deposit, backers fund a pool, and a grade decides the ending
104
- (`./assurance`, `./pools`, `./judge`). On Base today, jobs are graded and recorded, and no cover is sold, because no
105
- arbitrator is registered on the hook. Pools open on the test network. `npx moonbeam demo` replays Moonbeam's first covered
106
- hire on Base, offline.
113
+ Each node of a Studio workflow has one class (knowledge, check, transform, connector, money) and makes one call.
114
+ `@moonbeam-foundation/sdk/workflows` holds the seven workflows as data, and [docs/WORKFLOWS.md](docs/WORKFLOWS.md) draws them
115
+ with each node's last run.
107
116
 
108
117
  ## Your key
109
118
 
110
- Markets, sellers, classes and agent cards read without a key. Listing, finding buyers, handing over and checking run on a
111
- Moonbeam key:
119
+ Markets, sellers, the sale's reads and agent cards read without a key, on a shared free rate. Listing, checking, handing over
120
+ and usage run on a Moonbeam key:
112
121
 
113
122
  ```bash
114
123
  export MOONBEAM_API=<the endpoint that comes with your key, /v1 included>
115
124
  export MOONBEAM_API_KEY=<your Moonbeam key>
116
125
  ```
117
126
 
118
- For a key, write to [builders@moonbeam.foundation](mailto:builders@moonbeam.foundation). The full reference (assurance,
119
- reading the chain, transactions, grading, x402, proofs, arbitration, pool economics) is in [docs/REFERENCE.md](docs/REFERENCE.md).
127
+ For a key, write to [builders@moonbeam.foundation](mailto:builders@moonbeam.foundation). The full reference (assurance, pools,
128
+ reading the chain, grading, x402, proofs, arbitration) is in [docs/REFERENCE.md](docs/REFERENCE.md).
120
129
 
121
130
  ## License
122
131
 
package/bin/moonbeam.mjs CHANGED
@@ -2,6 +2,7 @@
2
2
  // moonbeam demo — Moonbeam's first covered hire on Base, replayed offline: the job, the grade, the settlement.
3
3
  // npx moonbeam demo (no key, no network, nothing signed)
4
4
  // npx moonbeam workflows [id] the Moonbeam Studio's agentic commerce workflows, step by step (offline)
5
+ // npx moonbeam venues every venue with its state and SDK calls, and one sale stop by stop (offline)
5
6
  import { readFileSync } from 'node:fs';
6
7
 
7
8
  const [cmd, arg] = process.argv.slice(2);
@@ -13,9 +14,25 @@ if (cmd === 'workflows') {
13
14
  for (const w of pick ? [pick] : WORKFLOWS) console.log(`${diagramOf(w)}\n picture: ${imageOf(w)}\n`);
14
15
  process.exit(0);
15
16
  }
17
+ // moonbeam venues: every venue (list, take a job, settle, paid: each state as the market register reads it, and its SDK call),
18
+ // then one sale stop by stop, each stop with its one SDK call
19
+ if (cmd === 'venues') {
20
+ const { VENUES, VENUES_READ_ON, SALE_STOPS } = await import('../dist/market/index.js');
21
+ const cell = (s) => `${s.state}${s.call ? ` ${s.call}` : ''}`.padEnd(32);
22
+ console.log(`every venue: the register's proof for the operator's own listings, read on ${VENUES_READ_ON} (Moonbeam's own: below)`);
23
+ console.log(`${'venue'.padEnd(30)}${'list'.padEnd(32)}${'take a job'.padEnd(32)}${'settle'.padEnd(32)}paid`);
24
+ for (const v of VENUES) console.log(`${v.name.padEnd(30)}${cell(v.list)}${cell(v.take)}${cell(v.settle)}${v.paid.state}${v.paid.call ? ` ${v.paid.call}` : ''}`);
25
+ // _VENUE_TRUTH_v1_: each cohort's own list · take · settle
26
+ console.log('\neach cohort its own listing: list · take · settle');
27
+ for (const v of VENUES) console.log(`${v.name.padEnd(30)}${['moonbeam', 'operator'].map((c) => { const x = v.cohorts[c]; return `${c}: ${x.list.state} · ${x.take.state} · ${x.settle.state}`.padEnd(44); }).join('')}`);
28
+ console.log('\none sale, stop by stop');
29
+ for (const s of SALE_STOPS) console.log(`${String(s.order).padStart(2)} ${s.label.padEnd(20)} ${s.call.padEnd(26)} ${s.route ?? 'offline'}`);
30
+ process.exit(0);
31
+ }
16
32
  if (cmd !== 'demo') {
17
33
  console.log(['moonbeam demo replay Moonbeam\'s first covered hire on Base: the job, the grade, the settlement',
18
- 'moonbeam workflows [id] the Studio\'s agentic commerce workflows, each step with the SDK call that runs it'].join('\n'));
34
+ 'moonbeam workflows [id] the Studio\'s agentic commerce workflows, each step with the SDK call that runs it',
35
+ 'moonbeam venues every venue with its state and SDK calls, and one sale stop by stop'].join('\n'));
19
36
  process.exit(cmd ? 2 : 0);
20
37
  }
21
38
 
@@ -46,7 +46,7 @@ export declare const MIN_JOBS_FOR_A_RECORD = 20;
46
46
  */
47
47
  export declare const WILSON_Z = 1.959963984540054;
48
48
  /**
49
- * The 95 % Wilson score interval on k events in n trials: @taifoon/jev-wilson's `wilson`, the same arithmetic as
49
+ * The 95 % Wilson score interval on k events in n trials: the grading package's `wilson`, the same arithmetic as
50
50
  * /v1/pools/quote. [0, 1] when n is 0. Kept as a name for the studio's folds and the onboard module.
51
51
  */
52
52
  export declare function wilsonScore(k: number, n: number, z?: number): [number, number];
@@ -11,7 +11,7 @@ export const MIN_JOBS_FOR_A_RECORD = 20;
11
11
  */
12
12
  export const WILSON_Z = Z;
13
13
  /**
14
- * The 95 % Wilson score interval on k events in n trials: @taifoon/jev-wilson's `wilson`, the same arithmetic as
14
+ * The 95 % Wilson score interval on k events in n trials: the grading package's `wilson`, the same arithmetic as
15
15
  * /v1/pools/quote. [0, 1] when n is 0. Kept as a name for the studio's folds and the onboard module.
16
16
  */
17
17
  export function wilsonScore(k, n, z = WILSON_Z) {
@@ -1,8 +1,14 @@
1
1
  export declare const ARBITRATION_ON_BASE: Readonly<{
2
- deployed: false;
3
- router: null;
4
- says: "The ArbitratorRouter is not deployed on Base and the hook names no arbitrator: no dispute can be ruled there yet.";
2
+ deployed: boolean;
3
+ router: string | null;
4
+ says: string;
5
5
  }>;
6
+ /**
7
+ * The router a call or a signature may name. Once a router is pinned (`pinned`, by default ARBITRATION_ON_BASE.router), any
8
+ * other address is refused, so a caller cannot be pointed at a contract that is not the appointed arbitrator. Until one is
9
+ * pinned (today) the caller's address is used as given, for a fork or a test network; nothing on Base can be ruled yet.
10
+ */
11
+ export declare function checkRouter(router: string, pinned?: string | null): string;
6
12
  /** Router.Verdict */
7
13
  export declare const VERDICT: Readonly<{
8
14
  readonly None: 0;
@@ -57,7 +63,7 @@ export declare function secondGraderTypedData(router: string, v: SignedVerdict):
57
63
  name: string;
58
64
  version: string;
59
65
  chainId: 8453;
60
- verifyingContract: `0x${string}`;
66
+ verifyingContract: string;
61
67
  };
62
68
  types: {
63
69
  Verdict: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/arbitration/index.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,mBAAmB;;;;EAI9B,CAAC;AAEH,qBAAqB;AACrB,eAAO,MAAM,OAAO;mBAAyB,CAAC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,EAAE,MAAM,CAAA;CAAyF,CAAC;AAE9K,MAAM,MAAM,WAAW,GACnB;IAAE,KAAK,EAAE,WAAW,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,WAAW,GAAG,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAClG;IAAE,KAAK,EAAE,iBAAiB,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,WAAW,GAAG,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GACtG;IAAE,KAAK,EAAE,UAAU,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,OAAO,IAAI,CAAC;IAAC,OAAO,EAAE,WAAW,GAAG,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC;AAG3H,kDAAkD;AAClD,wBAAgB,eAAe,CAAC,GAAG,EAAE;IAAE,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,WAAW,GAAG,IAAI,CAQpG;AAED,+GAA+G;AAC/G,wBAAgB,cAAc,CAAC,CAAC,EAAE,WAAW,GAAG;IAAE,YAAY,EAAE,SAAS,GAAG,WAAW,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAItG"}
@@ -14,9 +14,22 @@ import { encodeFunction, encodeParams, decodeStatic, topicOf } from '../abi/inde
14
14
  import { keccakHex, hexToBytes, utf8, isAddress } from '../onboard/index.js';
15
15
  export const ARBITRATION_ON_BASE = Object.freeze({
16
16
  deployed: false,
17
+ /** the router this SDK pins on Base: set in the release that follows its deployment and appointment; until then null */
17
18
  router: null,
18
19
  says: 'The ArbitratorRouter is not deployed on Base and the hook names no arbitrator: no dispute can be ruled there yet.',
19
20
  });
21
+ /**
22
+ * The router a call or a signature may name. Once a router is pinned (`pinned`, by default ARBITRATION_ON_BASE.router), any
23
+ * other address is refused, so a caller cannot be pointed at a contract that is not the appointed arbitrator. Until one is
24
+ * pinned (today) the caller's address is used as given, for a fork or a test network; nothing on Base can be ruled yet.
25
+ */
26
+ export function checkRouter(router, pinned = ARBITRATION_ON_BASE.router) {
27
+ if (!isAddress(router))
28
+ throw new Error(`router ${router} is not an address (${ARBITRATION_ON_BASE.says})`);
29
+ if (pinned !== null && router.toLowerCase() !== pinned.toLowerCase())
30
+ throw new Error(`router ${router} is not the pinned ArbitratorRouter on Base (${pinned})`);
31
+ return router;
32
+ }
20
33
  /** Router.Verdict */
21
34
  export const VERDICT = Object.freeze({ None: 0, SellerWins: 1, BuyerWins: 2, Cheated: 3 });
22
35
  /** Router.Tier */
@@ -38,8 +51,7 @@ export const ROUTER_EVENTS = Object.freeze({
38
51
  Resolved: 'Resolved(bytes32 indexed jobId, uint8 indexed tier, uint8 verdict, uint256 loss, address by)',
39
52
  });
40
53
  const B32 = /^0x[0-9a-fA-F]{64}$/;
41
- const need = (router) => { if (!isAddress(router))
42
- throw new Error(`router ${router} is not an address (${ARBITRATION_ON_BASE.says})`); return router; };
54
+ const need = (router) => checkRouter(router);
43
55
  const jid = (j) => { if (!B32.test(j))
44
56
  throw new RangeError('a job id is bytes32'); return j; };
45
57
  const call = (router, fn, args, who) => ({ chainId: 8453, to: need(router), data: encodeFunction(ROUTER_SIGNATURES[fn], args), value: '0', fn: `ArbitratorRouter.${fn}`, who });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/arbitration/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AACtF,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,qB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