@moonbeam-foundation/sdk 0.13.0 → 0.13.2

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 (113) hide show
  1. package/README.md +65 -24
  2. package/bin/moonbeam.mjs +12 -12
  3. package/dist/core/keyed.d.ts +17 -0
  4. package/dist/core/keyed.d.ts.map +1 -0
  5. package/dist/core/keyed.js +36 -0
  6. package/dist/core/keyed.js.map +1 -0
  7. package/dist/cover/index.d.ts.map +1 -1
  8. package/dist/cover/index.js +2 -1
  9. package/dist/cover/index.js.map +1 -1
  10. package/dist/devnet/index.d.ts.map +1 -1
  11. package/dist/devnet/index.js +3 -2
  12. package/dist/devnet/index.js.map +1 -1
  13. package/dist/devnet/profile.d.ts.map +1 -1
  14. package/dist/devnet/profile.js +3 -2
  15. package/dist/devnet/profile.js.map +1 -1
  16. package/dist/economy/index.d.ts +264 -0
  17. package/dist/economy/index.d.ts.map +1 -0
  18. package/dist/economy/index.js +376 -0
  19. package/dist/economy/index.js.map +1 -0
  20. package/dist/jobs/index.d.ts.map +1 -1
  21. package/dist/jobs/index.js +2 -1
  22. package/dist/jobs/index.js.map +1 -1
  23. package/dist/market/cohorts.d.ts +39 -5
  24. package/dist/market/cohorts.d.ts.map +1 -1
  25. package/dist/market/cohorts.js +21 -6
  26. package/dist/market/cohorts.js.map +1 -1
  27. package/dist/market/http.d.ts.map +1 -1
  28. package/dist/market/http.js +2 -1
  29. package/dist/market/http.js.map +1 -1
  30. package/dist/market/index.d.ts +10 -6
  31. package/dist/market/index.d.ts.map +1 -1
  32. package/dist/market/index.js +7 -3
  33. package/dist/market/index.js.map +1 -1
  34. package/dist/market/journey.d.ts.map +1 -1
  35. package/dist/market/journey.js +3 -2
  36. package/dist/market/journey.js.map +1 -1
  37. package/dist/market/listed.d.ts.map +1 -1
  38. package/dist/market/listed.js +2 -1
  39. package/dist/market/listed.js.map +1 -1
  40. package/dist/market/reads.d.ts +124 -0
  41. package/dist/market/reads.d.ts.map +1 -0
  42. package/dist/market/reads.js +99 -0
  43. package/dist/market/reads.js.map +1 -0
  44. package/dist/market/sale-stops.js +1 -1
  45. package/dist/market/sale-stops.js.map +1 -1
  46. package/dist/market/sale.d.ts +43 -0
  47. package/dist/market/sale.d.ts.map +1 -1
  48. package/dist/market/sale.js +37 -0
  49. package/dist/market/sale.js.map +1 -1
  50. package/dist/market/states-data.d.ts +491 -0
  51. package/dist/market/states-data.d.ts.map +1 -0
  52. package/dist/market/states-data.js +4 -0
  53. package/dist/market/states-data.js.map +1 -0
  54. package/dist/market/states.d.ts +40 -0
  55. package/dist/market/states.d.ts.map +1 -0
  56. package/dist/market/states.js +36 -0
  57. package/dist/market/states.js.map +1 -0
  58. package/dist/market/venue-mainnet-data.d.ts +3 -0
  59. package/dist/market/venue-mainnet-data.d.ts.map +1 -0
  60. package/dist/market/venue-mainnet-data.js +100 -0
  61. package/dist/market/venue-mainnet-data.js.map +1 -0
  62. package/dist/market/venues-data.d.ts.map +1 -1
  63. package/dist/market/venues-data.js +197 -159
  64. package/dist/market/venues-data.js.map +1 -1
  65. package/dist/market/venues.d.ts +10 -4
  66. package/dist/market/venues.d.ts.map +1 -1
  67. package/dist/market/venues.js +11 -5
  68. package/dist/market/venues.js.map +1 -1
  69. package/dist/onboard/index.d.ts +1 -0
  70. package/dist/onboard/index.d.ts.map +1 -1
  71. package/dist/onboard/index.js +4 -3
  72. package/dist/onboard/index.js.map +1 -1
  73. package/dist/playground/cases.d.ts +72 -0
  74. package/dist/playground/cases.d.ts.map +1 -0
  75. package/dist/playground/cases.js +115 -0
  76. package/dist/playground/cases.js.map +1 -0
  77. package/dist/playground/doc.d.ts +2 -0
  78. package/dist/playground/doc.d.ts.map +1 -0
  79. package/dist/playground/doc.js +52 -0
  80. package/dist/playground/doc.js.map +1 -0
  81. package/dist/playground/index.d.ts +172 -0
  82. package/dist/playground/index.d.ts.map +1 -0
  83. package/dist/playground/index.js +246 -0
  84. package/dist/playground/index.js.map +1 -0
  85. package/dist/playground/nets.d.ts +79 -0
  86. package/dist/playground/nets.d.ts.map +1 -0
  87. package/dist/playground/nets.js +147 -0
  88. package/dist/playground/nets.js.map +1 -0
  89. package/dist/playground/ports.d.ts +93 -0
  90. package/dist/playground/ports.d.ts.map +1 -0
  91. package/dist/playground/ports.js +72 -0
  92. package/dist/playground/ports.js.map +1 -0
  93. package/dist/playground/stream.d.ts +106 -0
  94. package/dist/playground/stream.d.ts.map +1 -0
  95. package/dist/playground/stream.js +269 -0
  96. package/dist/playground/stream.js.map +1 -0
  97. package/dist/proof/index.d.ts.map +1 -1
  98. package/dist/proof/index.js +2 -1
  99. package/dist/proof/index.js.map +1 -1
  100. package/dist/resale/index.d.ts.map +1 -1
  101. package/dist/resale/index.js +3 -2
  102. package/dist/resale/index.js.map +1 -1
  103. package/dist/x402/index.d.ts.map +1 -1
  104. package/dist/x402/index.js +3 -2
  105. package/dist/x402/index.js.map +1 -1
  106. package/docs/PATHS.md +99 -0
  107. package/docs/VENUES.md +73 -144
  108. package/docs/io-coverage.md +206 -0
  109. package/docs/playground.md +220 -0
  110. package/examples/50-x402-pay-a-wall.mjs +1 -1
  111. package/examples/70-every-venue.mjs +12 -8
  112. package/examples/data/x402-wall-402.json +6 -6
  113. package/package.json +26 -4
@@ -0,0 +1,264 @@
1
+ import type { Address, Hex, UnsignedCall } from '../onboard/index.js';
2
+ /** Who signs an economy call. `keeper` is anyone (the call has no sender check); `backer` is a coverage pool's depositor. */
3
+ export type EconomyRole = 'buyer' | 'seller' | 'evaluator' | 'arbitrator' | 'keeper' | 'backer';
4
+ export declare const ECONOMY_ROLES: readonly EconomyRole[];
5
+ /** One unsigned call: the SDK's `UnsignedCall`, with the economy's signer roles. */
6
+ export type EconomyCall = Omit<UnsignedCall, 'signer'> & {
7
+ signer: EconomyRole;
8
+ };
9
+ /** The chains the economy builders build for without `allowMainnet`: the devnet. */
10
+ export declare const ECONOMY_CHAIN_IDS: readonly number[];
11
+ export interface ChainOptions {
12
+ /** build for a chain other than the devnet (a chain with value). Nothing in this SDK sets it. */
13
+ allowMainnet?: boolean;
14
+ }
15
+ export declare class EconomyChainError extends RangeError {
16
+ readonly chainId: number;
17
+ name: string;
18
+ constructor(chainId: number);
19
+ }
20
+ /** Refuse any chain but the devnet, unless `allowMainnet`. Throws on a chain id that is not a positive integer. */
21
+ export declare function assertEconomyChain(chainId: number, o?: ChainOptions): void;
22
+ /** Every function this module encodes, by signature (names are for reading; selectors hash the types). Checked against the
23
+ * hook's compiled ABI in test/economy.test.ts. */
24
+ export declare const ECONOMY_SIGNATURES: Readonly<{
25
+ readonly openJobWithEconomy: "openJobWithEconomy(bytes32 salt,(address seller,address token,uint256 price,uint256 premium,uint256 deposit,uint64 deadline,uint64 challengeWindow,address pool,uint256 coverCap,address evaluator,uint256 evaluatorFee,uint32 reviewWindow,uint32 disputeWindow,bytes32 paymentRef) t,(uint256 toBackers,uint256 protocolFee,uint256 compensation) e,(bytes32 digest,string uri) spec)";
26
+ readonly accept: 'accept(bytes32 jobId)';
27
+ readonly submit: 'submit(bytes32 jobId,bytes32 evidenceDigest)';
28
+ readonly submitWithDelivery: 'submitWithDelivery(bytes32 jobId,bytes32 evidenceDigest,string deliveryURI)';
29
+ readonly complete: 'complete(bytes32 jobId)';
30
+ readonly reject: 'reject(bytes32 jobId,bytes32 verdictDigest)';
31
+ readonly finalizeReject: 'finalizeReject(bytes32 jobId)';
32
+ readonly dispute: 'dispute(bytes32 jobId)';
33
+ readonly resolveDispute: 'resolveDispute(bytes32 jobId,bool sellerWins)';
34
+ readonly settleStaleDispute: 'settleStaleDispute(bytes32 jobId)';
35
+ readonly findCheated: 'findCheated(bytes32 jobId,uint256 loss)';
36
+ readonly expire: 'expire(bytes32 jobId)';
37
+ readonly claimAutoComplete: 'claimAutoComplete(bytes32 jobId)';
38
+ readonly cancelOpen: 'cancelOpen(bytes32 jobId)';
39
+ readonly sweepLayerFees: 'sweepLayerFees()';
40
+ readonly postVerdict: 'postVerdict(bytes32 jobId,uint8 verdict,uint8 mode,bytes32 digest)';
41
+ readonly deposit: 'deposit(uint256 assets,address receiver)';
42
+ readonly redeem: 'redeem(uint256 shares,address receiver,address owner)';
43
+ readonly approve: 'approve(address spender,uint256 amount)';
44
+ }>;
45
+ /** The judge adapter's verdict codes (postVerdict): conformant completes the job, the other two propose a rejection. */
46
+ export declare const VERDICT: Readonly<{
47
+ readonly conformant: 1;
48
+ readonly nonconformant: 2;
49
+ readonly malformed: 3;
50
+ }>;
51
+ /** How the verdict was reached: deterministic (a proof anyone recomputes) or calibrated (a model's attestation). */
52
+ export declare const VERDICT_MODE: Readonly<{
53
+ readonly deterministic: 1;
54
+ readonly calibrated: 2;
55
+ }>;
56
+ /** The hook's `Settled(jobId, ending, …)` ending codes. */
57
+ export declare const SETTLED_ENDING: Readonly<{
58
+ readonly 1: 'completed';
59
+ readonly 2: 'expired';
60
+ readonly 3: 'rejected';
61
+ readonly 4: 'cheated';
62
+ readonly 5: 'auto_completed';
63
+ readonly 6: 'dispute_seller_won';
64
+ readonly 7: 'open_cancelled';
65
+ }>;
66
+ /** The hook's limits that hold on every build (the devnet build has shorter minimum windows; the hook checks those). */
67
+ export declare const HOOK_LIMITS: Readonly<{
68
+ readonly maxEvaluatorFeeBps: 1000;
69
+ readonly maxUriBytes: 512;
70
+ readonly maxWindowS: number;
71
+ readonly maxDeadlineS: number;
72
+ }>;
73
+ interface Target extends ChainOptions {
74
+ chainId: number;
75
+ }
76
+ interface OnHook extends Target {
77
+ hook: Address;
78
+ jobId: Hex;
79
+ }
80
+ /** Everything a job is agreed on (the hook's JobTerms). `pool` zero = uninsured (then premium and coverCap are 0);
81
+ * `evaluator` zero = hook evaluators decide (then `evaluatorFee` is 0); `paymentRef` zero = no x402 receipt recorded. */
82
+ export interface JobTerms {
83
+ seller: Address;
84
+ token: Address;
85
+ price: bigint;
86
+ premium: bigint;
87
+ deposit: bigint;
88
+ /** unix seconds */
89
+ deadline: number | bigint;
90
+ challengeWindow?: number | bigint;
91
+ pool?: Address;
92
+ coverCap?: bigint;
93
+ evaluator?: Address;
94
+ evaluatorFee?: bigint;
95
+ /** seconds the buyer has to look at a delivery before anyone may claim the auto-completion */
96
+ reviewWindow: number;
97
+ /** seconds the seller has to dispute a rejection */
98
+ disputeWindow: number;
99
+ paymentRef?: Hex;
100
+ }
101
+ /** The premium's two legs and the compensation (the hook's EconTerms), from the quote of the seller's record. */
102
+ export interface EconTerms {
103
+ /** the backers' leg: paid to the pool on a completion */
104
+ toBackers: bigint;
105
+ /** the protocol fee: accrued on the hook on a completion, swept to its fee payee */
106
+ protocolFee: bigint;
107
+ /** paid to the buyer from the seller's deposit on a no-show and on a rejection that stands */
108
+ compensation: bigint;
109
+ }
110
+ /** What the buyer commits about the task: keccak256 of its exact bytes and where they are published ("" = digest only). */
111
+ export interface SpecCommit {
112
+ digest: Hex;
113
+ uri?: string;
114
+ }
115
+ /** The id `openJobWithEconomy(salt, …)` returns: keccak256(abi.encode(chainId, hook, buyer, salt)). The buyer is the signer. */
116
+ export declare function jobIdFor(a: {
117
+ chainId: number;
118
+ hook: Address;
119
+ buyer: Address;
120
+ salt: Hex;
121
+ }): Hex;
122
+ /**
123
+ * The buyer opens a job with the terms its quote gave: approve the hook for exactly price + premium + evaluator fee, then
124
+ * openJobWithEconomy(salt, terms, econ, spec). No deposit moves until the seller accepts. The job id is
125
+ * `jobIdFor({ chainId, hook, buyer, salt })`.
126
+ */
127
+ export declare function openJobWithEconomy(a: OnHookNoJob & {
128
+ salt: Hex;
129
+ terms: JobTerms;
130
+ econ: EconTerms;
131
+ spec?: SpecCommit;
132
+ }): EconomyCall[];
133
+ interface OnHookNoJob extends Target {
134
+ hook: Address;
135
+ }
136
+ /** The buyer withdraws an offer nobody accepted: price, premium and evaluator fee come back. */
137
+ export declare function cancelOpen(a: OnHook): EconomyCall[];
138
+ /** The named seller takes the job: approve the hook for exactly its deposit, then accept(jobId). The pool reserves cover now. */
139
+ export declare function accept(a: OnHook & {
140
+ token: Address;
141
+ deposit: bigint;
142
+ }): EconomyCall[];
143
+ /** The seller delivers, before the deadline: submit(jobId, evidenceDigest). The review window starts. */
144
+ export declare function submit(a: OnHook & {
145
+ evidenceDigest: Hex;
146
+ }): EconomyCall[];
147
+ /** submit plus where the delivered bytes are published (an https:// or ipfs:// URI, at most 512 bytes). */
148
+ export declare function submitWithDelivery(a: OnHook & {
149
+ evidenceDigest: Hex;
150
+ deliveryURI: string;
151
+ }): EconomyCall[];
152
+ /** The seller answers a rejection inside the dispute window; the arbitrator then has its window to rule. */
153
+ export declare function dispute(a: OnHook): EconomyCall[];
154
+ /** Where an evaluator's decision goes: straight to the hook (the evaluator the job names, or a hook evaluator when it names
155
+ * none), or through the judge adapter the job names as its evaluator (postVerdict, signed by an evaluator the adapter
156
+ * registered), which then calls the hook. */
157
+ export type DecisionRoute = {
158
+ hook: Address;
159
+ adapter?: undefined;
160
+ } | {
161
+ adapter: Address;
162
+ hook?: undefined;
163
+ };
164
+ /**
165
+ * A delivered job is done right: the seller receives the price and its deposit back, the backers their leg, the protocol fee
166
+ * accrues, and the evaluator fee goes to the job's evaluator. Through the adapter: postVerdict(jobId, conformant, mode, digest).
167
+ * `as: 'buyer'` is the buyer's own completion, allowed only on a job that names no evaluator.
168
+ */
169
+ export declare function complete(a: Target & DecisionRoute & {
170
+ jobId: Hex;
171
+ digest?: Hex;
172
+ mode?: keyof typeof VERDICT_MODE;
173
+ as?: 'evaluator' | 'buyer';
174
+ }): EconomyCall[];
175
+ /**
176
+ * The job's evaluator proposes a rejection of a delivered job: reject(jobId, verdictDigest), or through the adapter
177
+ * postVerdict(jobId, nonconformant | malformed, mode, digest). Nothing moves yet: the seller may dispute inside its window;
178
+ * otherwise the rejection stands (finalizeReject) and the buyer receives the compensation. The buyer cannot reject.
179
+ */
180
+ export declare function reject(a: Target & DecisionRoute & {
181
+ jobId: Hex;
182
+ verdictDigest: Hex;
183
+ malformed?: boolean;
184
+ mode?: keyof typeof VERDICT_MODE;
185
+ as?: 'evaluator' | 'buyer';
186
+ }): EconomyCall[];
187
+ /** Rule on a disputed job, inside the arbitration window. Seller wins: the completion payout (the evaluator fee goes back to
188
+ * the buyer). Buyer wins: the rejection stands, with the compensation. */
189
+ export declare function resolveDispute(a: OnHook & {
190
+ sellerWins: boolean;
191
+ }): EconomyCall[];
192
+ /** Find a delivered job's seller cheated, on an adjudicated loss: the buyer is paid from the deposit first, then from the pool,
193
+ * never more than the cover cap the job reserved. */
194
+ export declare function findCheated(a: OnHook & {
195
+ loss: bigint;
196
+ }): EconomyCall[];
197
+ /** Nobody disputed a rejection in time: it stands, and the buyer receives the compensation. Anyone, once the window passed. */
198
+ export declare function finalizeReject(a: OnHook): EconomyCall[];
199
+ /** The arbitrator never ruled: the rejection stands. Anyone, once the arbitration window passed. */
200
+ export declare function settleStaleDispute(a: OnHook): EconomyCall[];
201
+ /** Past the deadline: an offer never accepted comes back to the buyer; an accepted job never delivered is a no-show (the buyer
202
+ * receives its escrow and the compensation from the deposit). A delivered job never expires: see claimAutoComplete. */
203
+ export declare function expire(a: OnHook): EconomyCall[];
204
+ /** The review window of a delivered job passed with no decision: the delivery stands (the evaluator fee goes back to the buyer). */
205
+ export declare function claimAutoComplete(a: OnHook): EconomyCall[];
206
+ /** Send the hook's accrued protocol fees to the fee payee the hook names. The caller picks when, never where. */
207
+ export declare function sweepLayerFees(a: Target & {
208
+ hook: Address;
209
+ }): EconomyCall[];
210
+ /** Back a seller: approve the pool for exactly `amount` of its asset, then deposit(amount, receiver). Shares at today's price. */
211
+ export declare function poolDeposit(a: Target & {
212
+ pool: Address;
213
+ asset: Address;
214
+ amount: bigint;
215
+ receiver: Address;
216
+ }): EconomyCall[];
217
+ /** Leave a pool: redeem(shares, receiver, owner). The pool pays today's value of the shares, up to what no job holds. */
218
+ export declare function poolRedeem(a: Target & {
219
+ pool: Address;
220
+ shares: bigint;
221
+ owner: Address;
222
+ receiver?: Address;
223
+ }): EconomyCall[];
224
+ /** A job's money terms, as its quote gave them and the job committed them. */
225
+ export interface EconomyQuote {
226
+ price: bigint;
227
+ premium: bigint;
228
+ toBackers: bigint;
229
+ protocolFee: bigint;
230
+ deposit: bigint;
231
+ compensation: bigint;
232
+ evaluatorFee: bigint;
233
+ /** the cover cap the job reserved in its pool (needed for `cheated`) */
234
+ coverCap?: bigint;
235
+ }
236
+ /** The endings of a job opened with economy terms. */
237
+ export type EconomyEnding = 'completed' | 'auto_completed' | 'dispute_seller_won' | 'rejected' | 'no_show' | 'cancelled' | 'lapsed' | 'cheated';
238
+ export declare const ECONOMY_ENDINGS: readonly EconomyEnding[];
239
+ /** Who receives what at one ending, in token units. `buyer` counts every unit the buyer receives (on a cheat, the pool's
240
+ * payment too: `fromPool`); `protocolFee` is what accrues on the hook for the fee payee. */
241
+ export interface EndingLegs {
242
+ buyer: bigint;
243
+ seller: bigint;
244
+ backers: bigint;
245
+ protocolFee: bigint;
246
+ evaluator: bigint;
247
+ /** of the buyer's: the compensation from the seller's deposit */
248
+ compensation: bigint;
249
+ /** of the buyer's: the evaluator fee refunded */
250
+ feeRefunded: bigint;
251
+ /** of the buyer's, on a cheat: from the deposit, and from the pool (paid by the pool, not the hook) */
252
+ fromDeposit: bigint;
253
+ fromPool: bigint;
254
+ }
255
+ /**
256
+ * The hook's payout at one ending for a job's committed terms (the hook's own arithmetic, V5.1). `cheated` needs the
257
+ * adjudicated `loss` and the quote's `coverCap`; the pool is assumed to hold the cap it reserved (it reserved it at accept).
258
+ * The legs always sum to what the job held: price + premium + evaluator fee, plus the deposit once accepted, plus `fromPool`.
259
+ */
260
+ export declare function legsOf(ending: EconomyEnding, q: EconomyQuote, o?: {
261
+ loss?: bigint;
262
+ }): EndingLegs;
263
+ export {};
264
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/economy/index.ts"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,YAAY,EAA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