@vapi-network/core 0.15.2 → 0.16.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 (86) hide show
  1. package/README.md +6 -2
  2. package/dist/agent-profile.d.ts +7 -0
  3. package/dist/agent-profile.d.ts.map +1 -1
  4. package/dist/api-key.js +4 -0
  5. package/dist/api-key.js.map +1 -1
  6. package/dist/backup.js +8 -1
  7. package/dist/backup.js.map +1 -1
  8. package/dist/cloud-backup.js +8 -1
  9. package/dist/cloud-backup.js.map +1 -1
  10. package/dist/config.d.ts +10 -0
  11. package/dist/config.d.ts.map +1 -1
  12. package/dist/index.js +109 -9
  13. package/dist/index.js.map +2 -2
  14. package/dist/router-client.js +37 -5
  15. package/dist/router-client.js.map +1 -1
  16. package/dist/secret-backend.d.ts +5 -1
  17. package/dist/secret-backend.d.ts.map +1 -1
  18. package/dist/secrets.js +6 -1
  19. package/dist/secrets.js.map +1 -1
  20. package/dist/support-report.d.ts +1 -1
  21. package/dist/swarm.d.ts.map +1 -1
  22. package/dist/tasks/actions.d.ts +1 -0
  23. package/dist/tasks/actions.d.ts.map +1 -1
  24. package/dist/tasks/availability.d.ts +21 -0
  25. package/dist/tasks/availability.d.ts.map +1 -0
  26. package/dist/tasks/ballots.d.ts +43 -0
  27. package/dist/tasks/ballots.d.ts.map +1 -0
  28. package/dist/tasks/chain-port.d.ts +26 -0
  29. package/dist/tasks/chain-port.d.ts.map +1 -1
  30. package/dist/tasks/chain.d.ts +5 -0
  31. package/dist/tasks/chain.d.ts.map +1 -1
  32. package/dist/tasks/client.d.ts +33 -3
  33. package/dist/tasks/client.d.ts.map +1 -1
  34. package/dist/tasks/funding-attempts.d.ts +58 -0
  35. package/dist/tasks/funding-attempts.d.ts.map +1 -0
  36. package/dist/tasks/funding-intent.d.ts +11 -0
  37. package/dist/tasks/funding-intent.d.ts.map +1 -0
  38. package/dist/tasks/index.d.ts +15 -2
  39. package/dist/tasks/index.d.ts.map +1 -1
  40. package/dist/tasks/money.d.ts +2 -0
  41. package/dist/tasks/money.d.ts.map +1 -1
  42. package/dist/tasks/operation-support.d.ts +21 -3
  43. package/dist/tasks/operation-support.d.ts.map +1 -1
  44. package/dist/tasks/operations.d.ts +663 -25
  45. package/dist/tasks/operations.d.ts.map +1 -1
  46. package/dist/tasks/pending-transactions.d.ts +14 -0
  47. package/dist/tasks/pending-transactions.d.ts.map +1 -1
  48. package/dist/tasks/post-options.d.ts +154 -0
  49. package/dist/tasks/post-options.d.ts.map +1 -0
  50. package/dist/tasks/types.d.ts +5505 -74
  51. package/dist/tasks/types.d.ts.map +1 -1
  52. package/dist/tasks/v2-abi.d.ts +12 -0
  53. package/dist/tasks/v2-abi.d.ts.map +1 -0
  54. package/dist/tasks/v2-abi.generated.d.ts +5966 -0
  55. package/dist/tasks/v2-abi.generated.d.ts.map +1 -0
  56. package/dist/tasks/v2-events.d.ts +6460 -0
  57. package/dist/tasks/v2-events.d.ts.map +1 -0
  58. package/dist/tasks/v2-execution.d.ts +1070 -0
  59. package/dist/tasks/v2-execution.d.ts.map +1 -0
  60. package/dist/tasks/v2-jury.d.ts +863 -0
  61. package/dist/tasks/v2-jury.d.ts.map +1 -0
  62. package/dist/tasks/v2-limits.d.ts +30 -0
  63. package/dist/tasks/v2-limits.d.ts.map +1 -0
  64. package/dist/tasks/v2-plan-guard.d.ts +102 -0
  65. package/dist/tasks/v2-plan-guard.d.ts.map +1 -0
  66. package/dist/tasks/v2-public.d.ts +154 -0
  67. package/dist/tasks/v2-public.d.ts.map +1 -0
  68. package/dist/tasks/v2-trust.d.ts +27 -0
  69. package/dist/tasks/v2-trust.d.ts.map +1 -0
  70. package/dist/tasks/v2-write.d.ts +887 -0
  71. package/dist/tasks/v2-write.d.ts.map +1 -0
  72. package/dist/tasks/v2.d.ts +847 -0
  73. package/dist/tasks/v2.d.ts.map +1 -0
  74. package/dist/tasks/verbs.d.ts +1 -1
  75. package/dist/tasks/verbs.d.ts.map +1 -1
  76. package/dist/tasks/x402-funding.d.ts +49 -0
  77. package/dist/tasks/x402-funding.d.ts.map +1 -0
  78. package/dist/tasks.js +18430 -4842
  79. package/dist/tasks.js.map +3 -3
  80. package/dist/wallet-store.d.ts +14 -1
  81. package/dist/wallet-store.d.ts.map +1 -1
  82. package/dist/x402-pay.d.ts +11 -1
  83. package/dist/x402-pay.d.ts.map +1 -1
  84. package/dist/x402.d.ts +6 -0
  85. package/dist/x402.d.ts.map +1 -1
  86. package/package.json +1 -1
@@ -0,0 +1,863 @@
1
+ import { type Address, type Hex } from "viem";
2
+ import { z } from "zod";
3
+ import type { TasksChainOptions } from "./chain.js";
4
+ import { type TaskOperationContext } from "./operation-support.js";
5
+ import { type TaskV2ExecutionInput } from "./v2-execution.js";
6
+ import { type TasksV2DeploymentOverrides } from "./v2-trust.js";
7
+ import type { PublicClient } from "viem";
8
+ /** DisputeResolverV3 case states (vapi-app CaseState). Snapshotting was appended. */
9
+ export declare const TASK_V2_CASE_STATES: readonly ["None", "Raised", "Matched", "JuryDrawPending", "Voting", "Resolved", "Snapshotting"];
10
+ export declare const TASK_V2_JURY_STEPS: {
11
+ readonly open: "open-jury";
12
+ readonly draw: "draw-jury";
13
+ readonly rearm: "rearm-draw";
14
+ readonly resolve: "resolve";
15
+ };
16
+ export type TaskV2JuryStep = keyof typeof TASK_V2_JURY_STEPS;
17
+ /** DisputeResolverV3 `_caseId`: keccak256(abi.encode(escrow, i, round)). */
18
+ export declare function taskV2CaseId(escrow: Address, i: number, round: number): Hex;
19
+ /**
20
+ * DisputeResolverV3 `_commitment`: keccak256(abi.encode(escrow, i, round, reviewer, outcome,
21
+ * toWorker, salt)), the same value its voteCommitment view returns for the current round.
22
+ * Computed on this machine so the vote and its salt never reach the RPC before the reveal.
23
+ */
24
+ export declare function taskV2VoteCommitment(input: {
25
+ escrow: Address;
26
+ i: number;
27
+ round: number;
28
+ reviewer: Address;
29
+ outcome: number;
30
+ toWorker: bigint;
31
+ salt: Hex;
32
+ }): Hex;
33
+ /** Chain-side jury helpers bound to one unlocked wallet. Exposed as TasksChain.juryV2. */
34
+ export declare function createTaskV2Jury(options: TasksChainOptions): {
35
+ /** Current DisputeResolverV3 case state for one milestone. */
36
+ caseState(input: {
37
+ id: string;
38
+ i: number;
39
+ }): Promise<{
40
+ state: number;
41
+ name: "None" | "Raised" | "Matched" | "JuryDrawPending" | "Voting" | "Resolved" | "Snapshotting";
42
+ resolver: `0x${string}`;
43
+ }>;
44
+ /**
45
+ * The jury may open only once the evidence window has closed (DisputeResolverV3 F2: openJury
46
+ * after evidenceDeadline). Checked against the resolver's caseData and the chain clock, so an
47
+ * early open is refused locally. A Snapshotting case continues without the check.
48
+ */
49
+ assertJuryOpenable(input: {
50
+ id: string;
51
+ i: number;
52
+ }): Promise<void>;
53
+ /**
54
+ * Generate a 32-byte salt locally, compute the commitment locally and write the
55
+ * ballot (0600, fsync) before any commit plan is requested. A retry with the same
56
+ * vote reuses its sealed ballot so the hosted preparation resumes.
57
+ */
58
+ sealBallot(input: {
59
+ id: string;
60
+ i: number;
61
+ outcome: 0 | 1 | 2;
62
+ toWorker: string;
63
+ }): Promise<{
64
+ ballot: {
65
+ version: "vapi-tasks-ballot-v1";
66
+ orderId: string;
67
+ chainId: number;
68
+ resolver: `0x${string}`;
69
+ escrow: `0x${string}`;
70
+ i: number;
71
+ caseId: `0x${string}`;
72
+ voter: `0x${string}`;
73
+ outcome: 0 | 1 | 2;
74
+ toWorker: string;
75
+ salt: `0x${string}`;
76
+ commitment: `0x${string}`;
77
+ createdAt: string;
78
+ };
79
+ reused: boolean;
80
+ path: string;
81
+ }>;
82
+ /**
83
+ * The sealed ballot's case must still be the resolver's current case: a commitment binds its
84
+ * round, so one signed after the dispute moved on would be accepted but could never reveal.
85
+ */
86
+ assertSealedCase(input: {
87
+ id: string;
88
+ i: number;
89
+ caseId: Hex;
90
+ }): Promise<void>;
91
+ /** The ballot whose commitment is onchain for this wallet in the current round. */
92
+ openBallot(input: {
93
+ id: string;
94
+ i: number;
95
+ }): Promise<{
96
+ ballot: {
97
+ version: "vapi-tasks-ballot-v1";
98
+ orderId: string;
99
+ chainId: number;
100
+ resolver: `0x${string}`;
101
+ escrow: `0x${string}`;
102
+ i: number;
103
+ caseId: `0x${string}`;
104
+ voter: `0x${string}`;
105
+ outcome: 0 | 1 | 2;
106
+ toWorker: string;
107
+ salt: `0x${string}`;
108
+ commitment: `0x${string}`;
109
+ createdAt: string;
110
+ };
111
+ path: string;
112
+ }>;
113
+ };
114
+ export type TaskV2Jury = ReturnType<typeof createTaskV2Jury>;
115
+ type RunBase = Omit<TaskV2ExecutionInput, "write" | "consent" | "prepared" | "preparationKey" | "beforeSigning">;
116
+ /** Run one jury step. `open` repeats while the case is Snapshotting (continueJury batches). */
117
+ export declare function runTaskV2Jury(context: TaskOperationContext, input: RunBase & {
118
+ i: number;
119
+ step: TaskV2JuryStep;
120
+ maxRounds?: number;
121
+ }): Promise<{
122
+ rounds: number;
123
+ operation: {
124
+ id: string;
125
+ kind: "tasks-v2-write";
126
+ state: "confirmed" | "prepared" | "submitted" | "abandoned";
127
+ step: "v2-fund" | "v2-approve-usdc" | "v2-create-pool" | "v2-create-escrow" | "v2-award" | "v2-award-bounty" | "v2-submit" | "v2-approve" | "v2-reject" | "v2-finalize" | "v2-close-rejected" | "v2-bump-consent-nonce" | "v2-prune-reviewer" | "v2-prune-reviewers" | "v2-cancel-offer" | "v2-cancel-remainder" | "v2-expire" | "v2-refund" | "v2-pay-claim" | "v2-raise-dispute" | "v2-counter-evidence" | "v2-resolve-unmatched" | "v2-split" | "v2-open-jury" | "v2-draw-jury" | "v2-rearm-draw" | "v2-resolve" | "v2-commit-vote" | "v2-reveal-vote" | "v2-claim-owed" | "v2-claim-reviewer-fee" | "v2-set-available" | "v2-reactivate";
128
+ expectedActor: `0x${string}`;
129
+ transactionHash: `0x${string}` | null;
130
+ plan: {
131
+ version: "work-transaction-plan-v2";
132
+ operationId: string;
133
+ step: "v2-fund" | "v2-approve-usdc" | "v2-create-pool" | "v2-create-escrow" | "v2-award" | "v2-award-bounty" | "v2-submit" | "v2-approve" | "v2-reject" | "v2-finalize" | "v2-close-rejected" | "v2-bump-consent-nonce" | "v2-prune-reviewer" | "v2-prune-reviewers" | "v2-cancel-offer" | "v2-cancel-remainder" | "v2-expire" | "v2-refund" | "v2-pay-claim" | "v2-raise-dispute" | "v2-counter-evidence" | "v2-resolve-unmatched" | "v2-split" | "v2-open-jury" | "v2-draw-jury" | "v2-rearm-draw" | "v2-resolve" | "v2-commit-vote" | "v2-reveal-vote" | "v2-claim-owed" | "v2-claim-reviewer-fee" | "v2-set-available" | "v2-reactivate";
134
+ chainId: number;
135
+ network: string;
136
+ from: `0x${string}`;
137
+ to: `0x${string}`;
138
+ data: `0x${string}`;
139
+ value: "0";
140
+ } | null;
141
+ };
142
+ lifecycle: {
143
+ [x: string]: unknown;
144
+ state: "Draft" | "Open" | "Active" | "Settled" | "Refunded" | "Cancelled";
145
+ milestones: {
146
+ [x: string]: unknown;
147
+ id: string;
148
+ status: "split" | "released" | "pending" | "submitted" | "refunded" | "disputed";
149
+ amountBaseUnits: string;
150
+ dueAt?: string | undefined;
151
+ cause?: number | undefined;
152
+ disputed?: boolean | undefined;
153
+ disputeWinner?: number | undefined;
154
+ summary?: string | undefined;
155
+ }[];
156
+ shape: "task";
157
+ substate?: "InProgress" | "Submitted" | "Stalled" | "Disputed" | undefined;
158
+ cause?: number | undefined;
159
+ disputed?: boolean | undefined;
160
+ disputeWinner?: number | undefined;
161
+ summary?: string | undefined;
162
+ } | {
163
+ [x: string]: unknown;
164
+ shape: "bounty";
165
+ state: "Draft" | "Open" | "Refunded" | "Cancelled" | "Judging" | "Awarded";
166
+ amountBaseUnits?: string | undefined;
167
+ dueAt?: string | undefined;
168
+ } | {
169
+ [x: string]: unknown;
170
+ shape: "pool";
171
+ state: "Draft" | "Open" | "Paused" | "Closed";
172
+ } | null;
173
+ nextAction: {
174
+ [x: string]: unknown;
175
+ action: "none" | "release" | "award" | "deliver" | "counter-evidence" | "checkin" | "judge";
176
+ amountBaseUnits?: string | undefined;
177
+ dueAt?: string | undefined;
178
+ } | null;
179
+ orderId: string;
180
+ ok: false;
181
+ reason: string;
182
+ money: {
183
+ escrow: `0x${string}`;
184
+ line: string;
185
+ gross: import("./money.js").TaskMoneyAmount;
186
+ fee: import("./money.js").TaskMoneyAmount | null;
187
+ net: import("./money.js").TaskMoneyAmount | null;
188
+ feeBp: number | null;
189
+ };
190
+ } | {
191
+ rounds: number;
192
+ operationId: string;
193
+ operationState: "prepared";
194
+ lifecycle: {
195
+ [x: string]: unknown;
196
+ state: "Draft" | "Open" | "Active" | "Settled" | "Refunded" | "Cancelled";
197
+ milestones: {
198
+ [x: string]: unknown;
199
+ id: string;
200
+ status: "split" | "released" | "pending" | "submitted" | "refunded" | "disputed";
201
+ amountBaseUnits: string;
202
+ dueAt?: string | undefined;
203
+ cause?: number | undefined;
204
+ disputed?: boolean | undefined;
205
+ disputeWinner?: number | undefined;
206
+ summary?: string | undefined;
207
+ }[];
208
+ shape: "task";
209
+ substate?: "InProgress" | "Submitted" | "Stalled" | "Disputed" | undefined;
210
+ cause?: number | undefined;
211
+ disputed?: boolean | undefined;
212
+ disputeWinner?: number | undefined;
213
+ summary?: string | undefined;
214
+ } | {
215
+ [x: string]: unknown;
216
+ shape: "bounty";
217
+ state: "Draft" | "Open" | "Refunded" | "Cancelled" | "Judging" | "Awarded";
218
+ amountBaseUnits?: string | undefined;
219
+ dueAt?: string | undefined;
220
+ } | {
221
+ [x: string]: unknown;
222
+ shape: "pool";
223
+ state: "Draft" | "Open" | "Paused" | "Closed";
224
+ } | null;
225
+ nextAction: {
226
+ [x: string]: unknown;
227
+ action: "none" | "release" | "award" | "deliver" | "counter-evidence" | "checkin" | "judge";
228
+ amountBaseUnits?: string | undefined;
229
+ dueAt?: string | undefined;
230
+ } | null;
231
+ orderId: string;
232
+ ok: false;
233
+ reason: string;
234
+ money: {
235
+ escrow: `0x${string}`;
236
+ line: string;
237
+ gross: import("./money.js").TaskMoneyAmount;
238
+ fee: import("./money.js").TaskMoneyAmount | null;
239
+ net: import("./money.js").TaskMoneyAmount | null;
240
+ feeBp: number | null;
241
+ };
242
+ } | {
243
+ rounds: number;
244
+ operation: {
245
+ id: string;
246
+ kind: "tasks-v2-write";
247
+ state: "confirmed" | "prepared" | "submitted" | "abandoned";
248
+ step: "v2-fund" | "v2-approve-usdc" | "v2-create-pool" | "v2-create-escrow" | "v2-award" | "v2-award-bounty" | "v2-submit" | "v2-approve" | "v2-reject" | "v2-finalize" | "v2-close-rejected" | "v2-bump-consent-nonce" | "v2-prune-reviewer" | "v2-prune-reviewers" | "v2-cancel-offer" | "v2-cancel-remainder" | "v2-expire" | "v2-refund" | "v2-pay-claim" | "v2-raise-dispute" | "v2-counter-evidence" | "v2-resolve-unmatched" | "v2-split" | "v2-open-jury" | "v2-draw-jury" | "v2-rearm-draw" | "v2-resolve" | "v2-commit-vote" | "v2-reveal-vote" | "v2-claim-owed" | "v2-claim-reviewer-fee" | "v2-set-available" | "v2-reactivate";
249
+ expectedActor: `0x${string}`;
250
+ transactionHash: `0x${string}` | null;
251
+ plan: {
252
+ version: "work-transaction-plan-v2";
253
+ operationId: string;
254
+ step: "v2-fund" | "v2-approve-usdc" | "v2-create-pool" | "v2-create-escrow" | "v2-award" | "v2-award-bounty" | "v2-submit" | "v2-approve" | "v2-reject" | "v2-finalize" | "v2-close-rejected" | "v2-bump-consent-nonce" | "v2-prune-reviewer" | "v2-prune-reviewers" | "v2-cancel-offer" | "v2-cancel-remainder" | "v2-expire" | "v2-refund" | "v2-pay-claim" | "v2-raise-dispute" | "v2-counter-evidence" | "v2-resolve-unmatched" | "v2-split" | "v2-open-jury" | "v2-draw-jury" | "v2-rearm-draw" | "v2-resolve" | "v2-commit-vote" | "v2-reveal-vote" | "v2-claim-owed" | "v2-claim-reviewer-fee" | "v2-set-available" | "v2-reactivate";
255
+ chainId: number;
256
+ network: string;
257
+ from: `0x${string}`;
258
+ to: `0x${string}`;
259
+ data: `0x${string}`;
260
+ value: "0";
261
+ } | null;
262
+ };
263
+ lifecycle: {
264
+ [x: string]: unknown;
265
+ state: "Draft" | "Open" | "Active" | "Settled" | "Refunded" | "Cancelled";
266
+ milestones: {
267
+ [x: string]: unknown;
268
+ id: string;
269
+ status: "split" | "released" | "pending" | "submitted" | "refunded" | "disputed";
270
+ amountBaseUnits: string;
271
+ dueAt?: string | undefined;
272
+ cause?: number | undefined;
273
+ disputed?: boolean | undefined;
274
+ disputeWinner?: number | undefined;
275
+ summary?: string | undefined;
276
+ }[];
277
+ shape: "task";
278
+ substate?: "InProgress" | "Submitted" | "Stalled" | "Disputed" | undefined;
279
+ cause?: number | undefined;
280
+ disputed?: boolean | undefined;
281
+ disputeWinner?: number | undefined;
282
+ summary?: string | undefined;
283
+ } | {
284
+ [x: string]: unknown;
285
+ shape: "bounty";
286
+ state: "Draft" | "Open" | "Refunded" | "Cancelled" | "Judging" | "Awarded";
287
+ amountBaseUnits?: string | undefined;
288
+ dueAt?: string | undefined;
289
+ } | {
290
+ [x: string]: unknown;
291
+ shape: "pool";
292
+ state: "Draft" | "Open" | "Paused" | "Closed";
293
+ } | null;
294
+ nextAction: {
295
+ [x: string]: unknown;
296
+ action: "none" | "release" | "award" | "deliver" | "counter-evidence" | "checkin" | "judge";
297
+ amountBaseUnits?: string | undefined;
298
+ dueAt?: string | undefined;
299
+ } | null;
300
+ orderId: string;
301
+ ok: false;
302
+ declined: true;
303
+ money: {
304
+ escrow: `0x${string}`;
305
+ line: string;
306
+ gross: import("./money.js").TaskMoneyAmount;
307
+ fee: import("./money.js").TaskMoneyAmount | null;
308
+ net: import("./money.js").TaskMoneyAmount | null;
309
+ feeBp: number | null;
310
+ };
311
+ } | {
312
+ rounds: number;
313
+ operationId: string;
314
+ operationState: "prepared";
315
+ lifecycle: {
316
+ [x: string]: unknown;
317
+ state: "Draft" | "Open" | "Active" | "Settled" | "Refunded" | "Cancelled";
318
+ milestones: {
319
+ [x: string]: unknown;
320
+ id: string;
321
+ status: "split" | "released" | "pending" | "submitted" | "refunded" | "disputed";
322
+ amountBaseUnits: string;
323
+ dueAt?: string | undefined;
324
+ cause?: number | undefined;
325
+ disputed?: boolean | undefined;
326
+ disputeWinner?: number | undefined;
327
+ summary?: string | undefined;
328
+ }[];
329
+ shape: "task";
330
+ substate?: "InProgress" | "Submitted" | "Stalled" | "Disputed" | undefined;
331
+ cause?: number | undefined;
332
+ disputed?: boolean | undefined;
333
+ disputeWinner?: number | undefined;
334
+ summary?: string | undefined;
335
+ } | {
336
+ [x: string]: unknown;
337
+ shape: "bounty";
338
+ state: "Draft" | "Open" | "Refunded" | "Cancelled" | "Judging" | "Awarded";
339
+ amountBaseUnits?: string | undefined;
340
+ dueAt?: string | undefined;
341
+ } | {
342
+ [x: string]: unknown;
343
+ shape: "pool";
344
+ state: "Draft" | "Open" | "Paused" | "Closed";
345
+ } | null;
346
+ nextAction: {
347
+ [x: string]: unknown;
348
+ action: "none" | "release" | "award" | "deliver" | "counter-evidence" | "checkin" | "judge";
349
+ amountBaseUnits?: string | undefined;
350
+ dueAt?: string | undefined;
351
+ } | null;
352
+ orderId: string;
353
+ ok: false;
354
+ declined: true;
355
+ money: {
356
+ escrow: `0x${string}`;
357
+ line: string;
358
+ gross: import("./money.js").TaskMoneyAmount;
359
+ fee: import("./money.js").TaskMoneyAmount | null;
360
+ net: import("./money.js").TaskMoneyAmount | null;
361
+ feeBp: number | null;
362
+ };
363
+ } | {
364
+ rounds: number;
365
+ operation: {
366
+ id: string;
367
+ kind: "tasks-v2-write";
368
+ state: "confirmed" | "prepared" | "submitted" | "abandoned";
369
+ step: "v2-fund" | "v2-approve-usdc" | "v2-create-pool" | "v2-create-escrow" | "v2-award" | "v2-award-bounty" | "v2-submit" | "v2-approve" | "v2-reject" | "v2-finalize" | "v2-close-rejected" | "v2-bump-consent-nonce" | "v2-prune-reviewer" | "v2-prune-reviewers" | "v2-cancel-offer" | "v2-cancel-remainder" | "v2-expire" | "v2-refund" | "v2-pay-claim" | "v2-raise-dispute" | "v2-counter-evidence" | "v2-resolve-unmatched" | "v2-split" | "v2-open-jury" | "v2-draw-jury" | "v2-rearm-draw" | "v2-resolve" | "v2-commit-vote" | "v2-reveal-vote" | "v2-claim-owed" | "v2-claim-reviewer-fee" | "v2-set-available" | "v2-reactivate";
370
+ expectedActor: `0x${string}`;
371
+ transactionHash: `0x${string}` | null;
372
+ plan: {
373
+ version: "work-transaction-plan-v2";
374
+ operationId: string;
375
+ step: "v2-fund" | "v2-approve-usdc" | "v2-create-pool" | "v2-create-escrow" | "v2-award" | "v2-award-bounty" | "v2-submit" | "v2-approve" | "v2-reject" | "v2-finalize" | "v2-close-rejected" | "v2-bump-consent-nonce" | "v2-prune-reviewer" | "v2-prune-reviewers" | "v2-cancel-offer" | "v2-cancel-remainder" | "v2-expire" | "v2-refund" | "v2-pay-claim" | "v2-raise-dispute" | "v2-counter-evidence" | "v2-resolve-unmatched" | "v2-split" | "v2-open-jury" | "v2-draw-jury" | "v2-rearm-draw" | "v2-resolve" | "v2-commit-vote" | "v2-reveal-vote" | "v2-claim-owed" | "v2-claim-reviewer-fee" | "v2-set-available" | "v2-reactivate";
376
+ chainId: number;
377
+ network: string;
378
+ from: `0x${string}`;
379
+ to: `0x${string}`;
380
+ data: `0x${string}`;
381
+ value: "0";
382
+ } | null;
383
+ };
384
+ lifecycle: {
385
+ [x: string]: unknown;
386
+ state: "Draft" | "Open" | "Active" | "Settled" | "Refunded" | "Cancelled";
387
+ milestones: {
388
+ [x: string]: unknown;
389
+ id: string;
390
+ status: "split" | "released" | "pending" | "submitted" | "refunded" | "disputed";
391
+ amountBaseUnits: string;
392
+ dueAt?: string | undefined;
393
+ cause?: number | undefined;
394
+ disputed?: boolean | undefined;
395
+ disputeWinner?: number | undefined;
396
+ summary?: string | undefined;
397
+ }[];
398
+ shape: "task";
399
+ substate?: "InProgress" | "Submitted" | "Stalled" | "Disputed" | undefined;
400
+ cause?: number | undefined;
401
+ disputed?: boolean | undefined;
402
+ disputeWinner?: number | undefined;
403
+ summary?: string | undefined;
404
+ } | {
405
+ [x: string]: unknown;
406
+ shape: "bounty";
407
+ state: "Draft" | "Open" | "Refunded" | "Cancelled" | "Judging" | "Awarded";
408
+ amountBaseUnits?: string | undefined;
409
+ dueAt?: string | undefined;
410
+ } | {
411
+ [x: string]: unknown;
412
+ shape: "pool";
413
+ state: "Draft" | "Open" | "Paused" | "Closed";
414
+ } | null;
415
+ nextAction: {
416
+ [x: string]: unknown;
417
+ action: "none" | "release" | "award" | "deliver" | "counter-evidence" | "checkin" | "judge";
418
+ amountBaseUnits?: string | undefined;
419
+ dueAt?: string | undefined;
420
+ } | null;
421
+ orderId: string;
422
+ ok: false;
423
+ approval: true;
424
+ money: {
425
+ escrow: `0x${string}`;
426
+ line: string;
427
+ gross: import("./money.js").TaskMoneyAmount;
428
+ fee: import("./money.js").TaskMoneyAmount | null;
429
+ net: import("./money.js").TaskMoneyAmount | null;
430
+ feeBp: number | null;
431
+ };
432
+ } | {
433
+ rounds: number;
434
+ operationId: string;
435
+ operationState: "prepared";
436
+ lifecycle: {
437
+ [x: string]: unknown;
438
+ state: "Draft" | "Open" | "Active" | "Settled" | "Refunded" | "Cancelled";
439
+ milestones: {
440
+ [x: string]: unknown;
441
+ id: string;
442
+ status: "split" | "released" | "pending" | "submitted" | "refunded" | "disputed";
443
+ amountBaseUnits: string;
444
+ dueAt?: string | undefined;
445
+ cause?: number | undefined;
446
+ disputed?: boolean | undefined;
447
+ disputeWinner?: number | undefined;
448
+ summary?: string | undefined;
449
+ }[];
450
+ shape: "task";
451
+ substate?: "InProgress" | "Submitted" | "Stalled" | "Disputed" | undefined;
452
+ cause?: number | undefined;
453
+ disputed?: boolean | undefined;
454
+ disputeWinner?: number | undefined;
455
+ summary?: string | undefined;
456
+ } | {
457
+ [x: string]: unknown;
458
+ shape: "bounty";
459
+ state: "Draft" | "Open" | "Refunded" | "Cancelled" | "Judging" | "Awarded";
460
+ amountBaseUnits?: string | undefined;
461
+ dueAt?: string | undefined;
462
+ } | {
463
+ [x: string]: unknown;
464
+ shape: "pool";
465
+ state: "Draft" | "Open" | "Paused" | "Closed";
466
+ } | null;
467
+ nextAction: {
468
+ [x: string]: unknown;
469
+ action: "none" | "release" | "award" | "deliver" | "counter-evidence" | "checkin" | "judge";
470
+ amountBaseUnits?: string | undefined;
471
+ dueAt?: string | undefined;
472
+ } | null;
473
+ orderId: string;
474
+ ok: false;
475
+ approval: true;
476
+ money: {
477
+ escrow: `0x${string}`;
478
+ line: string;
479
+ gross: import("./money.js").TaskMoneyAmount;
480
+ fee: import("./money.js").TaskMoneyAmount | null;
481
+ net: import("./money.js").TaskMoneyAmount | null;
482
+ feeBp: number | null;
483
+ };
484
+ } | {
485
+ rounds: number;
486
+ lifecycle: {
487
+ [x: string]: unknown;
488
+ state: "Draft" | "Open" | "Active" | "Settled" | "Refunded" | "Cancelled";
489
+ milestones: {
490
+ [x: string]: unknown;
491
+ id: string;
492
+ status: "split" | "released" | "pending" | "submitted" | "refunded" | "disputed";
493
+ amountBaseUnits: string;
494
+ dueAt?: string | undefined;
495
+ cause?: number | undefined;
496
+ disputed?: boolean | undefined;
497
+ disputeWinner?: number | undefined;
498
+ summary?: string | undefined;
499
+ }[];
500
+ shape: "task";
501
+ substate?: "InProgress" | "Submitted" | "Stalled" | "Disputed" | undefined;
502
+ cause?: number | undefined;
503
+ disputed?: boolean | undefined;
504
+ disputeWinner?: number | undefined;
505
+ summary?: string | undefined;
506
+ } | {
507
+ [x: string]: unknown;
508
+ shape: "bounty";
509
+ state: "Draft" | "Open" | "Refunded" | "Cancelled" | "Judging" | "Awarded";
510
+ amountBaseUnits?: string | undefined;
511
+ dueAt?: string | undefined;
512
+ } | {
513
+ [x: string]: unknown;
514
+ shape: "pool";
515
+ state: "Draft" | "Open" | "Paused" | "Closed";
516
+ } | null;
517
+ nextAction: {
518
+ [x: string]: unknown;
519
+ action: "none" | "release" | "award" | "deliver" | "counter-evidence" | "checkin" | "judge";
520
+ amountBaseUnits?: string | undefined;
521
+ dueAt?: string | undefined;
522
+ } | null;
523
+ ok: true;
524
+ money: {
525
+ escrow: `0x${string}`;
526
+ line: string;
527
+ gross: import("./money.js").TaskMoneyAmount;
528
+ fee: import("./money.js").TaskMoneyAmount | null;
529
+ net: import("./money.js").TaskMoneyAmount | null;
530
+ feeBp: number | null;
531
+ };
532
+ kind: "consent";
533
+ workOrderId: string;
534
+ consent: "split" | "award";
535
+ signer: `0x${string}`;
536
+ expiry: string;
537
+ operationId: string;
538
+ operationState: "confirmed";
539
+ } | {
540
+ rounds: number;
541
+ lifecycle: {
542
+ [x: string]: unknown;
543
+ state: "Draft" | "Open" | "Active" | "Settled" | "Refunded" | "Cancelled";
544
+ milestones: {
545
+ [x: string]: unknown;
546
+ id: string;
547
+ status: "split" | "released" | "pending" | "submitted" | "refunded" | "disputed";
548
+ amountBaseUnits: string;
549
+ dueAt?: string | undefined;
550
+ cause?: number | undefined;
551
+ disputed?: boolean | undefined;
552
+ disputeWinner?: number | undefined;
553
+ summary?: string | undefined;
554
+ }[];
555
+ shape: "task";
556
+ substate?: "InProgress" | "Submitted" | "Stalled" | "Disputed" | undefined;
557
+ cause?: number | undefined;
558
+ disputed?: boolean | undefined;
559
+ disputeWinner?: number | undefined;
560
+ summary?: string | undefined;
561
+ } | {
562
+ [x: string]: unknown;
563
+ shape: "bounty";
564
+ state: "Draft" | "Open" | "Refunded" | "Cancelled" | "Judging" | "Awarded";
565
+ amountBaseUnits?: string | undefined;
566
+ dueAt?: string | undefined;
567
+ } | {
568
+ [x: string]: unknown;
569
+ shape: "pool";
570
+ state: "Draft" | "Open" | "Paused" | "Closed";
571
+ } | null;
572
+ nextAction: {
573
+ [x: string]: unknown;
574
+ action: "none" | "release" | "award" | "deliver" | "counter-evidence" | "checkin" | "judge";
575
+ amountBaseUnits?: string | undefined;
576
+ dueAt?: string | undefined;
577
+ } | null;
578
+ ok: true;
579
+ money: {
580
+ escrow: `0x${string}`;
581
+ line: string;
582
+ gross: import("./money.js").TaskMoneyAmount;
583
+ fee: import("./money.js").TaskMoneyAmount | null;
584
+ net: import("./money.js").TaskMoneyAmount | null;
585
+ feeBp: number | null;
586
+ };
587
+ orderId: string;
588
+ operation: {
589
+ id: string;
590
+ kind: "tasks-v2-write";
591
+ state: "confirmed" | "prepared" | "submitted" | "abandoned";
592
+ step: "v2-fund" | "v2-approve-usdc" | "v2-create-pool" | "v2-create-escrow" | "v2-award" | "v2-award-bounty" | "v2-submit" | "v2-approve" | "v2-reject" | "v2-finalize" | "v2-close-rejected" | "v2-bump-consent-nonce" | "v2-prune-reviewer" | "v2-prune-reviewers" | "v2-cancel-offer" | "v2-cancel-remainder" | "v2-expire" | "v2-refund" | "v2-pay-claim" | "v2-raise-dispute" | "v2-counter-evidence" | "v2-resolve-unmatched" | "v2-split" | "v2-open-jury" | "v2-draw-jury" | "v2-rearm-draw" | "v2-resolve" | "v2-commit-vote" | "v2-reveal-vote" | "v2-claim-owed" | "v2-claim-reviewer-fee" | "v2-set-available" | "v2-reactivate";
593
+ expectedActor: `0x${string}`;
594
+ transactionHash: `0x${string}` | null;
595
+ plan: {
596
+ version: "work-transaction-plan-v2";
597
+ operationId: string;
598
+ step: "v2-fund" | "v2-approve-usdc" | "v2-create-pool" | "v2-create-escrow" | "v2-award" | "v2-award-bounty" | "v2-submit" | "v2-approve" | "v2-reject" | "v2-finalize" | "v2-close-rejected" | "v2-bump-consent-nonce" | "v2-prune-reviewer" | "v2-prune-reviewers" | "v2-cancel-offer" | "v2-cancel-remainder" | "v2-expire" | "v2-refund" | "v2-pay-claim" | "v2-raise-dispute" | "v2-counter-evidence" | "v2-resolve-unmatched" | "v2-split" | "v2-open-jury" | "v2-draw-jury" | "v2-rearm-draw" | "v2-resolve" | "v2-commit-vote" | "v2-reveal-vote" | "v2-claim-owed" | "v2-claim-reviewer-fee" | "v2-set-available" | "v2-reactivate";
599
+ chainId: number;
600
+ network: string;
601
+ from: `0x${string}`;
602
+ to: `0x${string}`;
603
+ data: `0x${string}`;
604
+ value: "0";
605
+ } | null;
606
+ };
607
+ } | {
608
+ rounds: number;
609
+ caseState: "None" | "Raised" | "Matched" | "JuryDrawPending" | "Voting" | "Resolved" | "Snapshotting";
610
+ lifecycle: {
611
+ [x: string]: unknown;
612
+ state: "Draft" | "Open" | "Active" | "Settled" | "Refunded" | "Cancelled";
613
+ milestones: {
614
+ [x: string]: unknown;
615
+ id: string;
616
+ status: "split" | "released" | "pending" | "submitted" | "refunded" | "disputed";
617
+ amountBaseUnits: string;
618
+ dueAt?: string | undefined;
619
+ cause?: number | undefined;
620
+ disputed?: boolean | undefined;
621
+ disputeWinner?: number | undefined;
622
+ summary?: string | undefined;
623
+ }[];
624
+ shape: "task";
625
+ substate?: "InProgress" | "Submitted" | "Stalled" | "Disputed" | undefined;
626
+ cause?: number | undefined;
627
+ disputed?: boolean | undefined;
628
+ disputeWinner?: number | undefined;
629
+ summary?: string | undefined;
630
+ } | {
631
+ [x: string]: unknown;
632
+ shape: "bounty";
633
+ state: "Draft" | "Open" | "Refunded" | "Cancelled" | "Judging" | "Awarded";
634
+ amountBaseUnits?: string | undefined;
635
+ dueAt?: string | undefined;
636
+ } | {
637
+ [x: string]: unknown;
638
+ shape: "pool";
639
+ state: "Draft" | "Open" | "Paused" | "Closed";
640
+ } | null;
641
+ nextAction: {
642
+ [x: string]: unknown;
643
+ action: "none" | "release" | "award" | "deliver" | "counter-evidence" | "checkin" | "judge";
644
+ amountBaseUnits?: string | undefined;
645
+ dueAt?: string | undefined;
646
+ } | null;
647
+ ok: true;
648
+ money: {
649
+ escrow: `0x${string}`;
650
+ line: string;
651
+ gross: import("./money.js").TaskMoneyAmount;
652
+ fee: import("./money.js").TaskMoneyAmount | null;
653
+ net: import("./money.js").TaskMoneyAmount | null;
654
+ feeBp: number | null;
655
+ };
656
+ kind: "consent";
657
+ workOrderId: string;
658
+ consent: "split" | "award";
659
+ signer: `0x${string}`;
660
+ expiry: string;
661
+ operationId: string;
662
+ operationState: "confirmed";
663
+ } | {
664
+ rounds: number;
665
+ caseState: "None" | "Raised" | "Matched" | "JuryDrawPending" | "Voting" | "Resolved" | "Snapshotting";
666
+ lifecycle: {
667
+ [x: string]: unknown;
668
+ state: "Draft" | "Open" | "Active" | "Settled" | "Refunded" | "Cancelled";
669
+ milestones: {
670
+ [x: string]: unknown;
671
+ id: string;
672
+ status: "split" | "released" | "pending" | "submitted" | "refunded" | "disputed";
673
+ amountBaseUnits: string;
674
+ dueAt?: string | undefined;
675
+ cause?: number | undefined;
676
+ disputed?: boolean | undefined;
677
+ disputeWinner?: number | undefined;
678
+ summary?: string | undefined;
679
+ }[];
680
+ shape: "task";
681
+ substate?: "InProgress" | "Submitted" | "Stalled" | "Disputed" | undefined;
682
+ cause?: number | undefined;
683
+ disputed?: boolean | undefined;
684
+ disputeWinner?: number | undefined;
685
+ summary?: string | undefined;
686
+ } | {
687
+ [x: string]: unknown;
688
+ shape: "bounty";
689
+ state: "Draft" | "Open" | "Refunded" | "Cancelled" | "Judging" | "Awarded";
690
+ amountBaseUnits?: string | undefined;
691
+ dueAt?: string | undefined;
692
+ } | {
693
+ [x: string]: unknown;
694
+ shape: "pool";
695
+ state: "Draft" | "Open" | "Paused" | "Closed";
696
+ } | null;
697
+ nextAction: {
698
+ [x: string]: unknown;
699
+ action: "none" | "release" | "award" | "deliver" | "counter-evidence" | "checkin" | "judge";
700
+ amountBaseUnits?: string | undefined;
701
+ dueAt?: string | undefined;
702
+ } | null;
703
+ ok: true;
704
+ money: {
705
+ escrow: `0x${string}`;
706
+ line: string;
707
+ gross: import("./money.js").TaskMoneyAmount;
708
+ fee: import("./money.js").TaskMoneyAmount | null;
709
+ net: import("./money.js").TaskMoneyAmount | null;
710
+ feeBp: number | null;
711
+ };
712
+ orderId: string;
713
+ operation: {
714
+ id: string;
715
+ kind: "tasks-v2-write";
716
+ state: "confirmed" | "prepared" | "submitted" | "abandoned";
717
+ step: "v2-fund" | "v2-approve-usdc" | "v2-create-pool" | "v2-create-escrow" | "v2-award" | "v2-award-bounty" | "v2-submit" | "v2-approve" | "v2-reject" | "v2-finalize" | "v2-close-rejected" | "v2-bump-consent-nonce" | "v2-prune-reviewer" | "v2-prune-reviewers" | "v2-cancel-offer" | "v2-cancel-remainder" | "v2-expire" | "v2-refund" | "v2-pay-claim" | "v2-raise-dispute" | "v2-counter-evidence" | "v2-resolve-unmatched" | "v2-split" | "v2-open-jury" | "v2-draw-jury" | "v2-rearm-draw" | "v2-resolve" | "v2-commit-vote" | "v2-reveal-vote" | "v2-claim-owed" | "v2-claim-reviewer-fee" | "v2-set-available" | "v2-reactivate";
718
+ expectedActor: `0x${string}`;
719
+ transactionHash: `0x${string}` | null;
720
+ plan: {
721
+ version: "work-transaction-plan-v2";
722
+ operationId: string;
723
+ step: "v2-fund" | "v2-approve-usdc" | "v2-create-pool" | "v2-create-escrow" | "v2-award" | "v2-award-bounty" | "v2-submit" | "v2-approve" | "v2-reject" | "v2-finalize" | "v2-close-rejected" | "v2-bump-consent-nonce" | "v2-prune-reviewer" | "v2-prune-reviewers" | "v2-cancel-offer" | "v2-cancel-remainder" | "v2-expire" | "v2-refund" | "v2-pay-claim" | "v2-raise-dispute" | "v2-counter-evidence" | "v2-resolve-unmatched" | "v2-split" | "v2-open-jury" | "v2-draw-jury" | "v2-rearm-draw" | "v2-resolve" | "v2-commit-vote" | "v2-reveal-vote" | "v2-claim-owed" | "v2-claim-reviewer-fee" | "v2-set-available" | "v2-reactivate";
724
+ chainId: number;
725
+ network: string;
726
+ from: `0x${string}`;
727
+ to: `0x${string}`;
728
+ data: `0x${string}`;
729
+ value: "0";
730
+ } | null;
731
+ };
732
+ }>;
733
+ export declare const taskV2VoteInputSchema: z.ZodObject<{
734
+ i: z.ZodNumber;
735
+ action: z.ZodEnum<{
736
+ commit: "commit";
737
+ reveal: "reveal";
738
+ }>;
739
+ outcome: z.ZodOptional<z.ZodEnum<{
740
+ split: "split";
741
+ poster: "poster";
742
+ worker: "worker";
743
+ }>>;
744
+ toWorker: z.ZodOptional<z.ZodString>;
745
+ }, z.core.$strict>;
746
+ export type TaskV2VoteInput = z.input<typeof taskV2VoteInputSchema>;
747
+ /**
748
+ * Commit seals the ballot locally first; reveal reads it back by the onchain commitment.
749
+ * Results carry the commitment, case and ballot path, never the vote or its salt.
750
+ */
751
+ export declare function runTaskV2Vote(context: TaskOperationContext, input: RunBase & TaskV2VoteInput): Promise<{
752
+ lifecycle: {
753
+ [x: string]: unknown;
754
+ state: "Draft" | "Open" | "Active" | "Settled" | "Refunded" | "Cancelled";
755
+ milestones: {
756
+ [x: string]: unknown;
757
+ id: string;
758
+ status: "split" | "released" | "pending" | "submitted" | "refunded" | "disputed";
759
+ amountBaseUnits: string;
760
+ dueAt?: string | undefined;
761
+ cause?: number | undefined;
762
+ disputed?: boolean | undefined;
763
+ disputeWinner?: number | undefined;
764
+ summary?: string | undefined;
765
+ }[];
766
+ shape: "task";
767
+ substate?: "InProgress" | "Submitted" | "Stalled" | "Disputed" | undefined;
768
+ cause?: number | undefined;
769
+ disputed?: boolean | undefined;
770
+ disputeWinner?: number | undefined;
771
+ summary?: string | undefined;
772
+ } | {
773
+ [x: string]: unknown;
774
+ shape: "bounty";
775
+ state: "Draft" | "Open" | "Refunded" | "Cancelled" | "Judging" | "Awarded";
776
+ amountBaseUnits?: string | undefined;
777
+ dueAt?: string | undefined;
778
+ } | {
779
+ [x: string]: unknown;
780
+ shape: "pool";
781
+ state: "Draft" | "Open" | "Paused" | "Closed";
782
+ } | null;
783
+ nextAction: {
784
+ [x: string]: unknown;
785
+ action: "none" | "release" | "award" | "deliver" | "counter-evidence" | "checkin" | "judge";
786
+ amountBaseUnits?: string | undefined;
787
+ dueAt?: string | undefined;
788
+ } | null;
789
+ ballot: {
790
+ commitment: Hex;
791
+ caseId: Hex;
792
+ path: string;
793
+ };
794
+ operationState?: string | undefined;
795
+ operationId?: string | undefined;
796
+ operation?: {
797
+ id: string;
798
+ kind: "tasks-v2-write";
799
+ state: "confirmed" | "prepared" | "submitted" | "abandoned";
800
+ step: "v2-fund" | "v2-approve-usdc" | "v2-create-pool" | "v2-create-escrow" | "v2-award" | "v2-award-bounty" | "v2-submit" | "v2-approve" | "v2-reject" | "v2-finalize" | "v2-close-rejected" | "v2-bump-consent-nonce" | "v2-prune-reviewer" | "v2-prune-reviewers" | "v2-cancel-offer" | "v2-cancel-remainder" | "v2-expire" | "v2-refund" | "v2-pay-claim" | "v2-raise-dispute" | "v2-counter-evidence" | "v2-resolve-unmatched" | "v2-split" | "v2-open-jury" | "v2-draw-jury" | "v2-rearm-draw" | "v2-resolve" | "v2-commit-vote" | "v2-reveal-vote" | "v2-claim-owed" | "v2-claim-reviewer-fee" | "v2-set-available" | "v2-reactivate";
801
+ expectedActor: `0x${string}`;
802
+ transactionHash: `0x${string}` | null;
803
+ plan: {
804
+ version: "work-transaction-plan-v2";
805
+ operationId: string;
806
+ step: "v2-fund" | "v2-approve-usdc" | "v2-create-pool" | "v2-create-escrow" | "v2-award" | "v2-award-bounty" | "v2-submit" | "v2-approve" | "v2-reject" | "v2-finalize" | "v2-close-rejected" | "v2-bump-consent-nonce" | "v2-prune-reviewer" | "v2-prune-reviewers" | "v2-cancel-offer" | "v2-cancel-remainder" | "v2-expire" | "v2-refund" | "v2-pay-claim" | "v2-raise-dispute" | "v2-counter-evidence" | "v2-resolve-unmatched" | "v2-split" | "v2-open-jury" | "v2-draw-jury" | "v2-rearm-draw" | "v2-resolve" | "v2-commit-vote" | "v2-reveal-vote" | "v2-claim-owed" | "v2-claim-reviewer-fee" | "v2-set-available" | "v2-reactivate";
807
+ chainId: number;
808
+ network: string;
809
+ from: `0x${string}`;
810
+ to: `0x${string}`;
811
+ data: `0x${string}`;
812
+ value: "0";
813
+ } | null;
814
+ } | undefined;
815
+ orderId?: string | undefined;
816
+ money?: {
817
+ escrow: `0x${string}`;
818
+ line: string;
819
+ gross: import("./money.js").TaskMoneyAmount;
820
+ fee: import("./money.js").TaskMoneyAmount | null;
821
+ net: import("./money.js").TaskMoneyAmount | null;
822
+ feeBp: number | null;
823
+ } | undefined;
824
+ declined?: true | undefined;
825
+ approval?: true | undefined;
826
+ reason?: string | undefined;
827
+ ok: boolean;
828
+ }>;
829
+ /**
830
+ * Reviewer readiness from local RPC reads only; there is no hosted order-less route yet.
831
+ * The resolver is the pinned factory's task implementation's immutable DISPUTE_RESOLVER()
832
+ * (EscrowFactoryV2 has no resolver getter); an optional local resolver pin must agree with it.
833
+ */
834
+ export declare function readTaskV2ReviewerStatus(input: {
835
+ chainId: number;
836
+ wallet: string;
837
+ rpcFor: (chainId: number) => PublicClient;
838
+ trustedV2Deployments?: TasksV2DeploymentOverrides;
839
+ env?: NodeJS.ProcessEnv;
840
+ onV2UntrustedOverride?: (message: string) => void;
841
+ }): Promise<{
842
+ reviewerGuidance: string;
843
+ meetsStake: boolean;
844
+ ready: boolean;
845
+ chainId: number;
846
+ wallet: `0x${string}`;
847
+ resolver: `0x${string}`;
848
+ registry: `0x${string}`;
849
+ vapiId: `0x${string}`;
850
+ stakeGate: `0x${string}`;
851
+ staking: `0x${string}`;
852
+ isReviewer: boolean;
853
+ hasId: boolean;
854
+ staked: string;
855
+ threshold: string;
856
+ eligible: boolean;
857
+ available: boolean;
858
+ suspended: boolean;
859
+ claimable: string;
860
+ missedReveals: number;
861
+ }>;
862
+ export {};
863
+ //# sourceMappingURL=v2-jury.d.ts.map