@moonbeam-foundation/sdk 0.7.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +201 -27
- package/bin/moonbeam.mjs +15 -2
- package/dist/acp/moonbeam-acp.generated.d.ts +7 -2
- package/dist/acp/moonbeam-acp.generated.d.ts.map +1 -1
- package/dist/acp/moonbeam-acp.generated.js +6 -3
- package/dist/acp/moonbeam-acp.generated.js.map +1 -1
- package/dist/acp/outcome.d.ts +5 -1
- package/dist/acp/outcome.d.ts.map +1 -1
- package/dist/acp/outcome.js +3 -2
- package/dist/acp/outcome.js.map +1 -1
- package/dist/adapters/stamp.d.ts +1 -1
- package/dist/adapters/stamp.d.ts.map +1 -1
- package/dist/adapters/stamp.js +6 -6
- package/dist/adapters/stamp.js.map +1 -1
- package/dist/assurance/assurance-shared.d.ts.map +1 -1
- package/dist/assurance/assurance-shared.js +3 -1
- package/dist/assurance/assurance-shared.js.map +1 -1
- package/dist/cover/index.d.ts +65 -0
- package/dist/cover/index.d.ts.map +1 -0
- package/dist/cover/index.js +61 -0
- package/dist/cover/index.js.map +1 -0
- package/dist/devnet/edge.d.ts +207 -0
- package/dist/devnet/edge.d.ts.map +1 -0
- package/dist/devnet/edge.js +209 -0
- package/dist/devnet/edge.js.map +1 -0
- package/dist/devnet/index.d.ts +403 -0
- package/dist/devnet/index.d.ts.map +1 -0
- package/dist/devnet/index.js +420 -0
- package/dist/devnet/index.js.map +1 -0
- package/dist/devnet/profile.d.ts +110 -0
- package/dist/devnet/profile.d.ts.map +1 -0
- package/dist/devnet/profile.js +145 -0
- package/dist/devnet/profile.js.map +1 -0
- package/dist/erc8004/registry.generated.d.ts.map +1 -1
- package/dist/erc8004/registry.generated.js +0 -1
- package/dist/erc8004/registry.generated.js.map +1 -1
- package/dist/errors/index.d.ts +51 -0
- package/dist/errors/index.d.ts.map +1 -0
- package/dist/errors/index.js +63 -0
- package/dist/errors/index.js.map +1 -0
- package/dist/index.d.ts +6 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/jobs/index.d.ts +62 -0
- package/dist/jobs/index.d.ts.map +1 -0
- package/dist/jobs/index.js +59 -0
- package/dist/jobs/index.js.map +1 -0
- package/dist/judge/index.d.ts +109 -1
- package/dist/judge/index.d.ts.map +1 -1
- package/dist/judge/index.js +97 -3
- package/dist/judge/index.js.map +1 -1
- package/dist/market/index.d.ts +162 -0
- package/dist/market/index.d.ts.map +1 -0
- package/dist/market/index.js +137 -0
- package/dist/market/index.js.map +1 -0
- package/dist/onboard/index.d.ts +4 -4
- package/dist/onboard/index.d.ts.map +1 -1
- package/dist/onboard/index.js +9 -15
- package/dist/onboard/index.js.map +1 -1
- package/dist/pools/index.d.ts +29 -5
- package/dist/pools/index.d.ts.map +1 -1
- package/dist/pools/index.js +34 -15
- package/dist/pools/index.js.map +1 -1
- package/dist/proof/index.d.ts +8 -4
- package/dist/proof/index.d.ts.map +1 -1
- package/dist/proof/index.js +10 -7
- package/dist/proof/index.js.map +1 -1
- package/dist/resale/index.d.ts +22 -6
- package/dist/resale/index.d.ts.map +1 -1
- package/dist/resale/index.js +29 -15
- package/dist/resale/index.js.map +1 -1
- package/dist/resale/payment-scheme.pin.json +1 -1
- package/dist/resale/settle-rule.d.ts +49 -0
- package/dist/resale/settle-rule.d.ts.map +1 -0
- package/dist/resale/settle-rule.js +53 -0
- package/dist/resale/settle-rule.js.map +1 -0
- package/dist/workflows/data.d.ts +3 -0
- package/dist/workflows/data.d.ts.map +1 -0
- package/dist/workflows/data.js +829 -0
- package/dist/workflows/data.js.map +1 -0
- package/dist/workflows/index.d.ts +31 -0
- package/dist/workflows/index.d.ts.map +1 -0
- package/dist/workflows/index.js +104 -0
- package/dist/workflows/index.js.map +1 -0
- package/dist/workflows/types.d.ts +26 -0
- package/dist/workflows/types.d.ts.map +1 -0
- package/dist/workflows/types.js +2 -0
- package/dist/workflows/types.js.map +1 -0
- package/dist/x402/index.d.ts +80 -17
- package/dist/x402/index.d.ts.map +1 -1
- package/dist/x402/index.js +95 -27
- package/dist/x402/index.js.map +1 -1
- package/docs/workflows/hire-from-chat.png +0 -0
- package/docs/workflows/list-business.png +0 -0
- package/docs/workflows/onboard-batch.png +0 -0
- package/docs/workflows/onboard.png +0 -0
- package/docs/workflows/publish.png +0 -0
- package/docs/workflows/resell.png +0 -0
- package/docs/workflows/sell-edge.png +0 -0
- package/examples/40-the-article.mjs +1 -1
- package/examples/50-x402-pay-a-wall.mjs +22 -11
- package/examples/51-read-a-proof.mjs +5 -4
- package/examples/README.md +4 -2
- package/examples/data/x402-wall-402.json +85 -0
- package/package.json +55 -15
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
import type { Address, Hex, OnboardTransport, UnsignedCall } from '../onboard/index.js';
|
|
2
|
+
import { edgeBody } from './edge.js';
|
|
3
|
+
import type { AgreementTyped, CheckVerdict, EdgeBody, EdgeIds, EdgePool, EdgeQuote, McpTool, Seller } from './edge.js';
|
|
4
|
+
import type { DevnetProfile } from './profile.js';
|
|
5
|
+
export * from './profile.js';
|
|
6
|
+
export * from './edge.js';
|
|
7
|
+
/** One devnet GLMR job's price, in the token's 18 decimals: one test GLMR. */
|
|
8
|
+
export declare const DEVNET_JOB_PRICE: bigint;
|
|
9
|
+
/** The smallest pool backing an onboarding funds (ten test GLMR), the ./pools minimum deposit. */
|
|
10
|
+
export declare const DEVNET_POOL_BACKING: bigint;
|
|
11
|
+
/** An unsigned devnet call; the evaluator signs the ending of a graded job. */
|
|
12
|
+
export type DevnetCall = Omit<UnsignedCall, 'signer'> & {
|
|
13
|
+
signer: UnsignedCall['signer'] | 'evaluator';
|
|
14
|
+
};
|
|
15
|
+
/** Chains with value: a devnet profile never names one, and no call here is built for one. */
|
|
16
|
+
export declare const MAINNET_CHAIN_IDS: readonly number[];
|
|
17
|
+
/** Refuse a call aimed anywhere but the profile's chain, and any profile that names a chain with value. */
|
|
18
|
+
export declare function assertDevnet(p: Pick<DevnetProfile, 'chainId'>, chainId?: number): void;
|
|
19
|
+
export interface WorklistRow {
|
|
20
|
+
chain_id: number;
|
|
21
|
+
agent_id: string | number;
|
|
22
|
+
owner?: string;
|
|
23
|
+
wallet?: string;
|
|
24
|
+
endpoint?: string;
|
|
25
|
+
kind?: string;
|
|
26
|
+
protocol?: string;
|
|
27
|
+
name?: string;
|
|
28
|
+
skills?: string[];
|
|
29
|
+
stage?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Find sellers ready to onboard: `GET /onboard/worklist` (stages first-job and list by default, paged), folded to sellers.
|
|
33
|
+
* `skip` takes edge ids or endpoint keys already onboarded; their sellers are left out.
|
|
34
|
+
*/
|
|
35
|
+
export declare function findSellers(t: OnboardTransport, p: Pick<DevnetProfile, 'chainId'>, o?: {
|
|
36
|
+
stages?: string[];
|
|
37
|
+
limit?: number;
|
|
38
|
+
skip?: ReadonlySet<string>;
|
|
39
|
+
pages?: number;
|
|
40
|
+
}): Promise<{
|
|
41
|
+
sellers: (Seller & {
|
|
42
|
+
ids: EdgeIds;
|
|
43
|
+
})[];
|
|
44
|
+
skipped: {
|
|
45
|
+
key: string;
|
|
46
|
+
why: string;
|
|
47
|
+
}[];
|
|
48
|
+
read: number;
|
|
49
|
+
}>;
|
|
50
|
+
/** MCP initialize → tools/list at a seller's own endpoint (a read; nothing is called). Null when the list cannot be read. */
|
|
51
|
+
export declare function mcpTools(fetchFn: (url: string, init: {
|
|
52
|
+
method: string;
|
|
53
|
+
headers: Record<string, string>;
|
|
54
|
+
body: string;
|
|
55
|
+
signal?: AbortSignal;
|
|
56
|
+
}) => Promise<{
|
|
57
|
+
text(): Promise<string>;
|
|
58
|
+
headers: {
|
|
59
|
+
get(n: string): string | null;
|
|
60
|
+
};
|
|
61
|
+
}>, url: string): Promise<McpTool[] | null>;
|
|
62
|
+
export interface SellerCheck extends CheckVerdict {
|
|
63
|
+
passed: boolean;
|
|
64
|
+
handshake_id: string | null;
|
|
65
|
+
status: string;
|
|
66
|
+
reply_digest: Hex | null;
|
|
67
|
+
task: string;
|
|
68
|
+
code: string;
|
|
69
|
+
tool: string | null;
|
|
70
|
+
args: Record<string, string> | null;
|
|
71
|
+
protocol: string;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Check a seller: hand it a short task in its own protocol (`POST /handshake`, dispatch) and hold its answer to the
|
|
75
|
+
* onboarding rule. An MCP seller needs a tool that takes a request in words: pass its `tools` (see `mcpTools`).
|
|
76
|
+
*/
|
|
77
|
+
export declare function checkSeller(t: OnboardTransport, s: Seller & {
|
|
78
|
+
ids?: EdgeIds;
|
|
79
|
+
}, o: {
|
|
80
|
+
chainId: number;
|
|
81
|
+
run: string | number;
|
|
82
|
+
tools?: readonly McpTool[] | null;
|
|
83
|
+
}): Promise<SellerCheck>;
|
|
84
|
+
export interface QuoteReply {
|
|
85
|
+
ok?: boolean;
|
|
86
|
+
line?: {
|
|
87
|
+
key?: string;
|
|
88
|
+
name?: string;
|
|
89
|
+
hook?: string;
|
|
90
|
+
factory?: string;
|
|
91
|
+
token?: string;
|
|
92
|
+
evaluator_adapter?: string;
|
|
93
|
+
} | null;
|
|
94
|
+
token?: {
|
|
95
|
+
symbol?: string;
|
|
96
|
+
address?: string;
|
|
97
|
+
} | null;
|
|
98
|
+
price?: string;
|
|
99
|
+
deposit?: string;
|
|
100
|
+
premium?: string | null;
|
|
101
|
+
premium_ratio?: number | null;
|
|
102
|
+
pool_id?: string | null;
|
|
103
|
+
pool_free?: string | null;
|
|
104
|
+
pool?: {
|
|
105
|
+
vault?: string;
|
|
106
|
+
free?: string;
|
|
107
|
+
total?: string;
|
|
108
|
+
encumbered?: string;
|
|
109
|
+
} | null;
|
|
110
|
+
why?: string[];
|
|
111
|
+
record?: {
|
|
112
|
+
n?: number;
|
|
113
|
+
settled?: number;
|
|
114
|
+
incorrect?: number;
|
|
115
|
+
} | null;
|
|
116
|
+
}
|
|
117
|
+
export interface EdgeTerms {
|
|
118
|
+
quote: EdgeQuote;
|
|
119
|
+
pool: {
|
|
120
|
+
vault: Address | null;
|
|
121
|
+
total: bigint;
|
|
122
|
+
free: bigint;
|
|
123
|
+
} | null;
|
|
124
|
+
why: string[];
|
|
125
|
+
raw: QuoteReply;
|
|
126
|
+
}
|
|
127
|
+
/** The edge's terms: `POST /pools/quote` (tenant moonbeam, settled through the layer). Nothing is reserved. */
|
|
128
|
+
export declare function quoteEdge(t: OnboardTransport, p: Pick<DevnetProfile, 'chainId'>, a: {
|
|
129
|
+
sellerOfRecord: Address;
|
|
130
|
+
price?: bigint;
|
|
131
|
+
}): Promise<EdgeTerms>;
|
|
132
|
+
/** The fold behind `quoteEdge`, exported for tests. */
|
|
133
|
+
export declare function termsOf(q: QuoteReply): EdgeTerms;
|
|
134
|
+
export interface PoolOpenPlan {
|
|
135
|
+
state: 'plan' | 'exists';
|
|
136
|
+
factory: Address;
|
|
137
|
+
pool: Address | null;
|
|
138
|
+
call: DevnetCall | null;
|
|
139
|
+
}
|
|
140
|
+
/** The pool behind the edge's seller of record: `POST /pools/open` on the profile's GLMR line. A plan to sign, or the pool that exists. */
|
|
141
|
+
export declare function openPoolPlan(t: OnboardTransport, p: Pick<DevnetProfile, 'chainId' | 'line'>, a: {
|
|
142
|
+
sellerOfRecord: Address;
|
|
143
|
+
edge16: string;
|
|
144
|
+
}): Promise<PoolOpenPlan>;
|
|
145
|
+
/** The pool a sent createPool made, read back through the API (`GET /pools/open/:chain/:tx`). `state` pending means retry. */
|
|
146
|
+
export declare function poolOpened(t: OnboardTransport, p: Pick<DevnetProfile, 'chainId'>, tx: Hex): Promise<{
|
|
147
|
+
state: string;
|
|
148
|
+
pool: Address | null;
|
|
149
|
+
retryAfter: number | null;
|
|
150
|
+
}>;
|
|
151
|
+
/** The agreement the seller of record signs (typed data) and its hash and id. */
|
|
152
|
+
export declare function edgeAgreement(p: Pick<DevnetProfile, 'chainId'>, a: {
|
|
153
|
+
edgeId: string;
|
|
154
|
+
sellerOfRecord: Address;
|
|
155
|
+
seller: Pick<Seller, 'chain_id' | 'agent_id' | 'owner'>;
|
|
156
|
+
}): {
|
|
157
|
+
typed: AgreementTyped;
|
|
158
|
+
hash: Hex;
|
|
159
|
+
id: string;
|
|
160
|
+
};
|
|
161
|
+
export interface ExchangeRow {
|
|
162
|
+
edge_id: string;
|
|
163
|
+
id: string;
|
|
164
|
+
tenant: string;
|
|
165
|
+
chain_id: number;
|
|
166
|
+
class: string;
|
|
167
|
+
state: string;
|
|
168
|
+
seller_of_record: string;
|
|
169
|
+
pool: {
|
|
170
|
+
address: string | null;
|
|
171
|
+
tx: string | null;
|
|
172
|
+
line: string;
|
|
173
|
+
state: string;
|
|
174
|
+
};
|
|
175
|
+
lambda: {
|
|
176
|
+
id: string;
|
|
177
|
+
vault: string;
|
|
178
|
+
acts: unknown[];
|
|
179
|
+
};
|
|
180
|
+
meter_row: {
|
|
181
|
+
id: string;
|
|
182
|
+
legs: string[];
|
|
183
|
+
};
|
|
184
|
+
agreement: {
|
|
185
|
+
id: string;
|
|
186
|
+
hash: string;
|
|
187
|
+
signer: string;
|
|
188
|
+
signature: string | null;
|
|
189
|
+
enforced?: boolean;
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
/** Store the edge: `POST /exchanges/edge` (idempotent on the edge id; a repeat answers created false). */
|
|
193
|
+
export declare function writeEdge(t: OnboardTransport, body: EdgeBody): Promise<{
|
|
194
|
+
created: boolean;
|
|
195
|
+
exchange: ExchangeRow;
|
|
196
|
+
}>;
|
|
197
|
+
/** Read one edge back: `GET /exchanges?id=`. Null when the API holds none. */
|
|
198
|
+
export declare function readEdge(t: OnboardTransport, edgeId: string): Promise<ExchangeRow | null>;
|
|
199
|
+
export { edgeBody };
|
|
200
|
+
export type { EdgeBody, EdgePool, EdgeQuote };
|
|
201
|
+
export declare const MINT_SIGNATURE = "mint(address,uint256)";
|
|
202
|
+
/**
|
|
203
|
+
* The faucet's test GLMR: the devnet token mints to anyone. One unsigned `mint(to, amount)` on the profile's token. Refused on
|
|
204
|
+
* any chain but the profile's (a mainnet GLMR cannot be minted, and this call is never built for one).
|
|
205
|
+
*/
|
|
206
|
+
export declare function faucetMintCalls(p: Pick<DevnetProfile, 'chainId' | 'token'>, a: {
|
|
207
|
+
to: Address;
|
|
208
|
+
amount: bigint;
|
|
209
|
+
}): DevnetCall[];
|
|
210
|
+
/** Gas from the devnet faucet: `POST <faucet>/claim { address }`. The faucet URL comes from the profile (options or env). */
|
|
211
|
+
export declare function claimGas(p: Pick<DevnetProfile, 'faucet'>, address: Address, f: OnboardTransport['fetch']): Promise<{
|
|
212
|
+
ok: boolean;
|
|
213
|
+
status: number;
|
|
214
|
+
body: unknown;
|
|
215
|
+
}>;
|
|
216
|
+
/**
|
|
217
|
+
* The calls that back a pool: the API's plan (`POST /pools/vault`, deposit: an exact approve when the allowance is short,
|
|
218
|
+
* then deposit) — it reads the backer's balance and allowance first. When the API does not plan it, ./pools `depositCalls`
|
|
219
|
+
* builds the same two calls.
|
|
220
|
+
*/
|
|
221
|
+
export declare function fundPoolPlan(t: OnboardTransport, p: Pick<DevnetProfile, 'chainId' | 'token'>, a: {
|
|
222
|
+
pool: Address;
|
|
223
|
+
from: Address;
|
|
224
|
+
assets: bigint;
|
|
225
|
+
}): Promise<{
|
|
226
|
+
calls: DevnetCall[];
|
|
227
|
+
short: {
|
|
228
|
+
needs: string;
|
|
229
|
+
has: string;
|
|
230
|
+
} | null;
|
|
231
|
+
source: 'layer' | 'sdk';
|
|
232
|
+
}>;
|
|
233
|
+
export interface SettlePlanCall {
|
|
234
|
+
action: string;
|
|
235
|
+
step?: string;
|
|
236
|
+
signer: string;
|
|
237
|
+
to: string;
|
|
238
|
+
data: string;
|
|
239
|
+
effect?: string;
|
|
240
|
+
}
|
|
241
|
+
export interface SettlePlan {
|
|
242
|
+
jobId: Hex;
|
|
243
|
+
ending: 'post-complete' | 'post-reject' | 'held';
|
|
244
|
+
hook: Address;
|
|
245
|
+
adapter: Address;
|
|
246
|
+
token: Address;
|
|
247
|
+
deposit: string;
|
|
248
|
+
price: string;
|
|
249
|
+
deadline: number;
|
|
250
|
+
calls: SettlePlanCall[];
|
|
251
|
+
held_reason?: unknown;
|
|
252
|
+
}
|
|
253
|
+
export interface HireAsk {
|
|
254
|
+
buyer: Address;
|
|
255
|
+
sellerOfRecord: Address;
|
|
256
|
+
price?: bigint;
|
|
257
|
+
evidence: Hex;
|
|
258
|
+
refId: string;
|
|
259
|
+
task: string;
|
|
260
|
+
specUri?: string;
|
|
261
|
+
deadline: number;
|
|
262
|
+
}
|
|
263
|
+
/** Who signs a plan's call: the buyer, the seller (of record) or the evaluator. */
|
|
264
|
+
export declare const signerOf: (s: string) => 'buyer' | 'seller' | 'evaluator' | null;
|
|
265
|
+
/** The phases of a plan's calls: the buyer's hire, the seller's acceptance, the delivery, and the evaluator's ending. */
|
|
266
|
+
export declare function phasesOf(plan: Pick<SettlePlan, 'calls'>, chainId: number): {
|
|
267
|
+
hire: DevnetCall[];
|
|
268
|
+
accept: DevnetCall[];
|
|
269
|
+
deliver: DevnetCall[];
|
|
270
|
+
settle: DevnetCall[];
|
|
271
|
+
};
|
|
272
|
+
/**
|
|
273
|
+
* Hire: the plan of one job on the profile's GLMR line, settled through the layer, with no verdict yet. Its calls are
|
|
274
|
+
* the buyer's approve and open (`hire`), the seller's deposit approve and accept (`accept`), and the delivery (`deliver`).
|
|
275
|
+
* The same ask later gives the same job id (the salt is the kind, the reference and the evidence).
|
|
276
|
+
*/
|
|
277
|
+
export declare function hire(t: OnboardTransport, p: Pick<DevnetProfile, 'chainId'>, a: HireAsk): Promise<{
|
|
278
|
+
plan: SettlePlan;
|
|
279
|
+
hire: DevnetCall[];
|
|
280
|
+
accept: DevnetCall[];
|
|
281
|
+
deliver: DevnetCall[];
|
|
282
|
+
}>;
|
|
283
|
+
/** Deliver: the delivery call of a hire (the seller's submit with the answer's digest). */
|
|
284
|
+
export declare const deliver: (h: {
|
|
285
|
+
deliver: DevnetCall[];
|
|
286
|
+
}) => DevnetCall[];
|
|
287
|
+
export declare const BINARY_THRESHOLDS: Readonly<{
|
|
288
|
+
specMetAbove: number;
|
|
289
|
+
cheatShapedBelow: number;
|
|
290
|
+
}>;
|
|
291
|
+
export declare const BINARY_RULE_ID = "moonbeam.binary-verdict@1";
|
|
292
|
+
export interface Grade {
|
|
293
|
+
decided: 'complete' | 'reject';
|
|
294
|
+
by: 'grader' | 'rule';
|
|
295
|
+
raw_verdict: string | null;
|
|
296
|
+
spec_met: number | null;
|
|
297
|
+
cheat_shaped: number | null;
|
|
298
|
+
decision_id: string | null;
|
|
299
|
+
why: string;
|
|
300
|
+
rule_id: string;
|
|
301
|
+
}
|
|
302
|
+
/** spec_met and cheat_shaped P(yes) from a grade's scores or answers (an object by id, or a list of { id, … }). */
|
|
303
|
+
export declare function scoresOf(src: unknown): {
|
|
304
|
+
spec_met: number | null;
|
|
305
|
+
cheat_shaped: number | null;
|
|
306
|
+
};
|
|
307
|
+
/**
|
|
308
|
+
* A grade is binary: complete or reject. The grader's own complete or reject stands; any other grade completes when
|
|
309
|
+
* spec_met > THRESHOLDS_v1.rejectSpecMax and cheat_shaped < THRESHOLDS_v1.cheatShapedMin, and rejects otherwise. The raw
|
|
310
|
+
* verdict is kept beside the decision.
|
|
311
|
+
*/
|
|
312
|
+
export declare function binaryVerdict(g: {
|
|
313
|
+
verdict?: string | null;
|
|
314
|
+
hard_fail?: boolean | null;
|
|
315
|
+
scores?: unknown;
|
|
316
|
+
answers?: unknown;
|
|
317
|
+
decision_id?: string | null;
|
|
318
|
+
} | null): Grade;
|
|
319
|
+
/** Where grades come from: a grading workflow of the Studio (its URL and token are the caller's, never shipped). */
|
|
320
|
+
export interface GradeEndpoint {
|
|
321
|
+
url: string;
|
|
322
|
+
token: string;
|
|
323
|
+
fetch?: OnboardTransport['fetch'];
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* Grade a delivery: the Studio's grade workflow over the dispatched answer (`{ handshake_id }`), recorded on the devnet.
|
|
327
|
+
* Returns the binary decision with the decision id the settle plan names.
|
|
328
|
+
*/
|
|
329
|
+
export declare function grade(e: GradeEndpoint, a: {
|
|
330
|
+
handshake_id: string;
|
|
331
|
+
}): Promise<Grade>;
|
|
332
|
+
/** The recorded decision's digest (`GET /judge/decisions/:id`), which the evaluator posts with the verdict. */
|
|
333
|
+
export declare function decisionDigest(t: OnboardTransport, decisionId: string): Promise<Hex>;
|
|
334
|
+
/**
|
|
335
|
+
* Settle: the evaluator's ending for a graded job, from the same ask (same job id) plus the binary decision. Returns the
|
|
336
|
+
* evaluator's calls only; the hire, acceptance and delivery were sent before the grade.
|
|
337
|
+
*/
|
|
338
|
+
export declare function settle(t: OnboardTransport, p: Pick<DevnetProfile, 'chainId'>, a: HireAsk, g: Grade & {
|
|
339
|
+
digest: Hex;
|
|
340
|
+
}): Promise<{
|
|
341
|
+
plan: SettlePlan;
|
|
342
|
+
settle: DevnetCall[];
|
|
343
|
+
}>;
|
|
344
|
+
export interface MeterLine {
|
|
345
|
+
id: string;
|
|
346
|
+
edge_id: string;
|
|
347
|
+
at: string;
|
|
348
|
+
class: string;
|
|
349
|
+
handshake_id: string | null;
|
|
350
|
+
status: string;
|
|
351
|
+
legs: Record<string, string>;
|
|
352
|
+
unit: string;
|
|
353
|
+
price?: string;
|
|
354
|
+
rule?: string;
|
|
355
|
+
}
|
|
356
|
+
export interface AgreementState {
|
|
357
|
+
edge_id: string;
|
|
358
|
+
id?: string;
|
|
359
|
+
enforced: boolean;
|
|
360
|
+
signed: boolean;
|
|
361
|
+
signature_valid: boolean;
|
|
362
|
+
recovered: string | null;
|
|
363
|
+
signer: string;
|
|
364
|
+
seller_of_record: string;
|
|
365
|
+
scope: {
|
|
366
|
+
tenant: string;
|
|
367
|
+
class: string;
|
|
368
|
+
chain_id: number;
|
|
369
|
+
};
|
|
370
|
+
state: string;
|
|
371
|
+
refusals?: number;
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* One call through the edge: `POST /exchanges/:edge_id/call { class, task }`. The layer enforces the edge's agreement (a call
|
|
375
|
+
* outside it is refused, `refused` names why) and writes one meter line per call it takes.
|
|
376
|
+
*/
|
|
377
|
+
export declare function callEdge(t: OnboardTransport, edgeId: string, a: {
|
|
378
|
+
task: string;
|
|
379
|
+
class?: string;
|
|
380
|
+
tool?: string | null;
|
|
381
|
+
args?: Record<string, string> | null;
|
|
382
|
+
}): Promise<{
|
|
383
|
+
ok: true;
|
|
384
|
+
line: MeterLine;
|
|
385
|
+
reply_digest: string | null;
|
|
386
|
+
} | {
|
|
387
|
+
ok: false;
|
|
388
|
+
status: number;
|
|
389
|
+
code: string;
|
|
390
|
+
why: string;
|
|
391
|
+
pending?: true;
|
|
392
|
+
}>;
|
|
393
|
+
/** The edge's meter lines: `GET /exchanges/:edge_id/meter`. `pending` when the API does not route it yet. */
|
|
394
|
+
export declare function meterLines(t: OnboardTransport, edgeId: string): Promise<{
|
|
395
|
+
lines: MeterLine[];
|
|
396
|
+
pending: boolean;
|
|
397
|
+
}>;
|
|
398
|
+
/** The edge's agreement as the API enforces it: `GET /exchanges/:edge_id/agreement`. `pending` when not routed yet. */
|
|
399
|
+
export declare function agreementState(t: OnboardTransport, edgeId: string): Promise<{
|
|
400
|
+
state: AgreementState | null;
|
|
401
|
+
pending: boolean;
|
|
402
|
+
}>;
|
|
403
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/devnet/index.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAGxF,OAAO,EAAoE,QAAQ,EAAiF,MAAM,WAAW,CAAC;AACtL,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE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