@kleros/agentkit 0.1.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.
@@ -0,0 +1,1909 @@
1
+ import * as viem from 'viem';
2
+ import { PublicClient, Chain } from 'viem';
3
+ export { PublicClient } from 'viem';
4
+ import { DeploymentName } from '@kleros/kleros-v2-contracts';
5
+
6
+ /**
7
+ * Wraps @kleros/kleros-v2-contracts to isolate the RC package behind our own interface.
8
+ *
9
+ * RULE-07: imports from the explicit `/cjs/deployments` subpath, NOT the bare package
10
+ * specifier. The package's root "." export resolves to `esm/deployments/index.js`, which
11
+ * is mistagged as an ES module (adjacent package.json declares `{"type":"module"}`) but
12
+ * contains raw CommonJS syntax — Node's native ESM loader throws
13
+ * `SyntaxError: The requested module '@kleros/kleros-v2-contracts' does not provide an
14
+ * export named 'getContractsViem'` on any real invocation. TypeScript does not catch this
15
+ * because `.d.ts` types resolve via a separate "types" condition. The `/cjs/deployments`
16
+ * subpath's nearest package.json correctly declares `{"type":"commonjs"}`, so Node's CJS
17
+ * named-export interop applies correctly. Verified live via npx tsx, 2026-07-07.
18
+ *
19
+ * `deployment` is threaded from the caller's ChainConfig.deployment (RULE-07) — no longer
20
+ * hardcoded. Callers must guard for `deployment` being undefined before invoking this
21
+ * (see src/infra/onchain.ts fetchDisputeOnChainData, which returns DEPLOYMENT_NOT_CONFIGURED
22
+ * rather than calling this function with an undefined deployment).
23
+ */
24
+ declare function getV2Contracts(publicClient: PublicClient, deployment: DeploymentName): Promise<{
25
+ klerosCore: {
26
+ read: {
27
+ [x: string]: (...parameters: [options?: viem.Prettify<viem.UnionOmit<viem.ReadContractParameters<readonly any[], string, any[]>, "args" | "address" | "abi" | "functionName">> | undefined] | [args: readonly unknown[], options?: viem.Prettify<viem.UnionOmit<viem.ReadContractParameters<readonly any[], string, any[]>, "args" | "address" | "abi" | "functionName">> | undefined]) => Promise<viem.ReadContractReturnType>;
28
+ };
29
+ estimateGas: {
30
+ [x: string]: (...parameters: [options: viem.Prettify<viem.UnionOmit<viem.EstimateContractGasParameters<readonly any[], string, any[], viem.Chain | undefined>, "args" | "address" | "abi" | "functionName">>] | [args: readonly unknown[], options: viem.Prettify<viem.UnionOmit<viem.EstimateContractGasParameters<readonly any[], string, any[], viem.Chain | undefined>, "args" | "address" | "abi" | "functionName">>]) => Promise<viem.EstimateContractGasReturnType>;
31
+ };
32
+ simulate: {
33
+ [x: string]: <chainOverride extends viem.Chain | undefined = undefined, accountOverride extends viem.Account | viem.Address | undefined = undefined>(...parameters: [options?: Omit<viem.SimulateContractParameters<readonly any[], string, any[], viem.Chain | undefined, chainOverride, accountOverride>, "args" | "address" | "abi" | "functionName"> | undefined] | [args: readonly unknown[], options?: Omit<viem.SimulateContractParameters<readonly any[], string, any[], viem.Chain | undefined, chainOverride, accountOverride>, "args" | "address" | "abi" | "functionName"> | undefined]) => Promise<viem.SimulateContractReturnType>;
34
+ };
35
+ createEventFilter: {
36
+ [x: string]: <strict extends boolean | undefined = undefined>(...parameters: [options?: ({
37
+ fromBlock?: bigint | viem.BlockTag | undefined;
38
+ toBlock?: bigint | viem.BlockTag | undefined;
39
+ } & {
40
+ strict?: strict | undefined;
41
+ }) | undefined] | [args: readonly unknown[] | {
42
+ [x: string]: unknown;
43
+ address?: undefined;
44
+ abi?: undefined;
45
+ eventName?: undefined;
46
+ fromBlock?: undefined;
47
+ strict?: undefined;
48
+ toBlock?: undefined;
49
+ args?: undefined;
50
+ }, options?: ({
51
+ fromBlock?: bigint | viem.BlockTag | undefined;
52
+ toBlock?: bigint | viem.BlockTag | undefined;
53
+ } & {
54
+ strict?: strict | undefined;
55
+ }) | undefined]) => Promise<viem.CreateContractEventFilterReturnType>;
56
+ };
57
+ getEvents: {
58
+ [x: string]: (...parameters: [options?: {
59
+ blockHash?: viem.Hash | undefined;
60
+ strict?: boolean | undefined;
61
+ fromBlock?: bigint | viem.BlockTag | undefined;
62
+ toBlock?: bigint | viem.BlockTag | undefined;
63
+ } | undefined] | [args?: readonly unknown[] | {
64
+ [x: string]: unknown;
65
+ address?: undefined;
66
+ abi?: undefined;
67
+ args?: undefined;
68
+ eventName?: undefined;
69
+ fromBlock?: undefined;
70
+ onError?: undefined;
71
+ onLogs?: undefined;
72
+ strict?: undefined;
73
+ poll?: undefined;
74
+ batch?: undefined;
75
+ pollingInterval?: undefined;
76
+ } | undefined, options?: {
77
+ blockHash?: viem.Hash | undefined;
78
+ strict?: boolean | undefined;
79
+ fromBlock?: bigint | viem.BlockTag | undefined;
80
+ toBlock?: bigint | viem.BlockTag | undefined;
81
+ } | undefined]) => Promise<viem.GetContractEventsReturnType<readonly any[], string>>;
82
+ };
83
+ watchEvent: {
84
+ [x: string]: (...parameters: [options?: {
85
+ batch?: boolean | undefined;
86
+ pollingInterval?: number | undefined;
87
+ strict?: boolean | undefined;
88
+ fromBlock?: viem.BlockNumber<bigint> | undefined;
89
+ onError?: ((error: Error) => void) | undefined;
90
+ onLogs: viem.WatchContractEventOnLogsFn<readonly any[], string, undefined>;
91
+ poll?: true | undefined;
92
+ } | undefined] | [args: readonly unknown[] | {
93
+ [x: string]: unknown;
94
+ address?: undefined;
95
+ abi?: undefined;
96
+ args?: undefined;
97
+ eventName?: undefined;
98
+ fromBlock?: undefined;
99
+ onError?: undefined;
100
+ onLogs?: undefined;
101
+ strict?: undefined;
102
+ poll?: undefined;
103
+ batch?: undefined;
104
+ pollingInterval?: undefined;
105
+ }, options?: {
106
+ batch?: boolean | undefined;
107
+ pollingInterval?: number | undefined;
108
+ strict?: boolean | undefined;
109
+ fromBlock?: viem.BlockNumber<bigint> | undefined;
110
+ onError?: ((error: Error) => void) | undefined;
111
+ onLogs: viem.WatchContractEventOnLogsFn<readonly any[], string, undefined>;
112
+ poll?: true | undefined;
113
+ } | undefined]) => viem.WatchContractEventReturnType;
114
+ };
115
+ address: `0x${string}`;
116
+ abi: readonly any[];
117
+ };
118
+ sortition: {
119
+ read: {
120
+ [x: string]: (...parameters: [options?: viem.Prettify<viem.UnionOmit<viem.ReadContractParameters<readonly any[], string, any[]>, "args" | "address" | "abi" | "functionName">> | undefined] | [args: readonly unknown[], options?: viem.Prettify<viem.UnionOmit<viem.ReadContractParameters<readonly any[], string, any[]>, "args" | "address" | "abi" | "functionName">> | undefined]) => Promise<viem.ReadContractReturnType>;
121
+ };
122
+ estimateGas: {
123
+ [x: string]: (...parameters: [options: viem.Prettify<viem.UnionOmit<viem.EstimateContractGasParameters<readonly any[], string, any[], viem.Chain | undefined>, "args" | "address" | "abi" | "functionName">>] | [args: readonly unknown[], options: viem.Prettify<viem.UnionOmit<viem.EstimateContractGasParameters<readonly any[], string, any[], viem.Chain | undefined>, "args" | "address" | "abi" | "functionName">>]) => Promise<viem.EstimateContractGasReturnType>;
124
+ };
125
+ simulate: {
126
+ [x: string]: <chainOverride extends viem.Chain | undefined = undefined, accountOverride extends viem.Account | viem.Address | undefined = undefined>(...parameters: [options?: Omit<viem.SimulateContractParameters<readonly any[], string, any[], viem.Chain | undefined, chainOverride, accountOverride>, "args" | "address" | "abi" | "functionName"> | undefined] | [args: readonly unknown[], options?: Omit<viem.SimulateContractParameters<readonly any[], string, any[], viem.Chain | undefined, chainOverride, accountOverride>, "args" | "address" | "abi" | "functionName"> | undefined]) => Promise<viem.SimulateContractReturnType>;
127
+ };
128
+ createEventFilter: {
129
+ [x: string]: <strict extends boolean | undefined = undefined>(...parameters: [options?: ({
130
+ fromBlock?: bigint | viem.BlockTag | undefined;
131
+ toBlock?: bigint | viem.BlockTag | undefined;
132
+ } & {
133
+ strict?: strict | undefined;
134
+ }) | undefined] | [args: readonly unknown[] | {
135
+ [x: string]: unknown;
136
+ address?: undefined;
137
+ abi?: undefined;
138
+ eventName?: undefined;
139
+ fromBlock?: undefined;
140
+ strict?: undefined;
141
+ toBlock?: undefined;
142
+ args?: undefined;
143
+ }, options?: ({
144
+ fromBlock?: bigint | viem.BlockTag | undefined;
145
+ toBlock?: bigint | viem.BlockTag | undefined;
146
+ } & {
147
+ strict?: strict | undefined;
148
+ }) | undefined]) => Promise<viem.CreateContractEventFilterReturnType>;
149
+ };
150
+ getEvents: {
151
+ [x: string]: (...parameters: [options?: {
152
+ blockHash?: viem.Hash | undefined;
153
+ strict?: boolean | undefined;
154
+ fromBlock?: bigint | viem.BlockTag | undefined;
155
+ toBlock?: bigint | viem.BlockTag | undefined;
156
+ } | undefined] | [args?: readonly unknown[] | {
157
+ [x: string]: unknown;
158
+ address?: undefined;
159
+ abi?: undefined;
160
+ args?: undefined;
161
+ eventName?: undefined;
162
+ fromBlock?: undefined;
163
+ onError?: undefined;
164
+ onLogs?: undefined;
165
+ strict?: undefined;
166
+ poll?: undefined;
167
+ batch?: undefined;
168
+ pollingInterval?: undefined;
169
+ } | undefined, options?: {
170
+ blockHash?: viem.Hash | undefined;
171
+ strict?: boolean | undefined;
172
+ fromBlock?: bigint | viem.BlockTag | undefined;
173
+ toBlock?: bigint | viem.BlockTag | undefined;
174
+ } | undefined]) => Promise<viem.GetContractEventsReturnType<readonly any[], string>>;
175
+ };
176
+ watchEvent: {
177
+ [x: string]: (...parameters: [options?: {
178
+ batch?: boolean | undefined;
179
+ pollingInterval?: number | undefined;
180
+ strict?: boolean | undefined;
181
+ fromBlock?: viem.BlockNumber<bigint> | undefined;
182
+ onError?: ((error: Error) => void) | undefined;
183
+ onLogs: viem.WatchContractEventOnLogsFn<readonly any[], string, undefined>;
184
+ poll?: true | undefined;
185
+ } | undefined] | [args: readonly unknown[] | {
186
+ [x: string]: unknown;
187
+ address?: undefined;
188
+ abi?: undefined;
189
+ args?: undefined;
190
+ eventName?: undefined;
191
+ fromBlock?: undefined;
192
+ onError?: undefined;
193
+ onLogs?: undefined;
194
+ strict?: undefined;
195
+ poll?: undefined;
196
+ batch?: undefined;
197
+ pollingInterval?: undefined;
198
+ }, options?: {
199
+ batch?: boolean | undefined;
200
+ pollingInterval?: number | undefined;
201
+ strict?: boolean | undefined;
202
+ fromBlock?: viem.BlockNumber<bigint> | undefined;
203
+ onError?: ((error: Error) => void) | undefined;
204
+ onLogs: viem.WatchContractEventOnLogsFn<readonly any[], string, undefined>;
205
+ poll?: true | undefined;
206
+ } | undefined]) => viem.WatchContractEventReturnType;
207
+ };
208
+ address: `0x${string}`;
209
+ abi: readonly any[];
210
+ };
211
+ disputeKitClassic: {
212
+ read: {
213
+ [x: string]: (...parameters: [options?: viem.Prettify<viem.UnionOmit<viem.ReadContractParameters<readonly any[], string, any[]>, "args" | "address" | "abi" | "functionName">> | undefined] | [args: readonly unknown[], options?: viem.Prettify<viem.UnionOmit<viem.ReadContractParameters<readonly any[], string, any[]>, "args" | "address" | "abi" | "functionName">> | undefined]) => Promise<viem.ReadContractReturnType>;
214
+ };
215
+ estimateGas: {
216
+ [x: string]: (...parameters: [options: viem.Prettify<viem.UnionOmit<viem.EstimateContractGasParameters<readonly any[], string, any[], viem.Chain | undefined>, "args" | "address" | "abi" | "functionName">>] | [args: readonly unknown[], options: viem.Prettify<viem.UnionOmit<viem.EstimateContractGasParameters<readonly any[], string, any[], viem.Chain | undefined>, "args" | "address" | "abi" | "functionName">>]) => Promise<viem.EstimateContractGasReturnType>;
217
+ };
218
+ simulate: {
219
+ [x: string]: <chainOverride extends viem.Chain | undefined = undefined, accountOverride extends viem.Account | viem.Address | undefined = undefined>(...parameters: [options?: Omit<viem.SimulateContractParameters<readonly any[], string, any[], viem.Chain | undefined, chainOverride, accountOverride>, "args" | "address" | "abi" | "functionName"> | undefined] | [args: readonly unknown[], options?: Omit<viem.SimulateContractParameters<readonly any[], string, any[], viem.Chain | undefined, chainOverride, accountOverride>, "args" | "address" | "abi" | "functionName"> | undefined]) => Promise<viem.SimulateContractReturnType>;
220
+ };
221
+ createEventFilter: {
222
+ [x: string]: <strict extends boolean | undefined = undefined>(...parameters: [options?: ({
223
+ fromBlock?: bigint | viem.BlockTag | undefined;
224
+ toBlock?: bigint | viem.BlockTag | undefined;
225
+ } & {
226
+ strict?: strict | undefined;
227
+ }) | undefined] | [args: readonly unknown[] | {
228
+ [x: string]: unknown;
229
+ address?: undefined;
230
+ abi?: undefined;
231
+ eventName?: undefined;
232
+ fromBlock?: undefined;
233
+ strict?: undefined;
234
+ toBlock?: undefined;
235
+ args?: undefined;
236
+ }, options?: ({
237
+ fromBlock?: bigint | viem.BlockTag | undefined;
238
+ toBlock?: bigint | viem.BlockTag | undefined;
239
+ } & {
240
+ strict?: strict | undefined;
241
+ }) | undefined]) => Promise<viem.CreateContractEventFilterReturnType>;
242
+ };
243
+ getEvents: {
244
+ [x: string]: (...parameters: [options?: {
245
+ blockHash?: viem.Hash | undefined;
246
+ strict?: boolean | undefined;
247
+ fromBlock?: bigint | viem.BlockTag | undefined;
248
+ toBlock?: bigint | viem.BlockTag | undefined;
249
+ } | undefined] | [args?: readonly unknown[] | {
250
+ [x: string]: unknown;
251
+ address?: undefined;
252
+ abi?: undefined;
253
+ args?: undefined;
254
+ eventName?: undefined;
255
+ fromBlock?: undefined;
256
+ onError?: undefined;
257
+ onLogs?: undefined;
258
+ strict?: undefined;
259
+ poll?: undefined;
260
+ batch?: undefined;
261
+ pollingInterval?: undefined;
262
+ } | undefined, options?: {
263
+ blockHash?: viem.Hash | undefined;
264
+ strict?: boolean | undefined;
265
+ fromBlock?: bigint | viem.BlockTag | undefined;
266
+ toBlock?: bigint | viem.BlockTag | undefined;
267
+ } | undefined]) => Promise<viem.GetContractEventsReturnType<readonly any[], string>>;
268
+ };
269
+ watchEvent: {
270
+ [x: string]: (...parameters: [options?: {
271
+ batch?: boolean | undefined;
272
+ pollingInterval?: number | undefined;
273
+ strict?: boolean | undefined;
274
+ fromBlock?: viem.BlockNumber<bigint> | undefined;
275
+ onError?: ((error: Error) => void) | undefined;
276
+ onLogs: viem.WatchContractEventOnLogsFn<readonly any[], string, undefined>;
277
+ poll?: true | undefined;
278
+ } | undefined] | [args: readonly unknown[] | {
279
+ [x: string]: unknown;
280
+ address?: undefined;
281
+ abi?: undefined;
282
+ args?: undefined;
283
+ eventName?: undefined;
284
+ fromBlock?: undefined;
285
+ onError?: undefined;
286
+ onLogs?: undefined;
287
+ strict?: undefined;
288
+ poll?: undefined;
289
+ batch?: undefined;
290
+ pollingInterval?: undefined;
291
+ }, options?: {
292
+ batch?: boolean | undefined;
293
+ pollingInterval?: number | undefined;
294
+ strict?: boolean | undefined;
295
+ fromBlock?: viem.BlockNumber<bigint> | undefined;
296
+ onError?: ((error: Error) => void) | undefined;
297
+ onLogs: viem.WatchContractEventOnLogsFn<readonly any[], string, undefined>;
298
+ poll?: true | undefined;
299
+ } | undefined]) => viem.WatchContractEventReturnType;
300
+ };
301
+ address: `0x${string}`;
302
+ abi: readonly any[];
303
+ };
304
+ disputeKitShutter: {
305
+ read: {
306
+ [x: string]: (...parameters: [options?: viem.Prettify<viem.UnionOmit<viem.ReadContractParameters<readonly any[], string, any[]>, "args" | "address" | "abi" | "functionName">> | undefined] | [args: readonly unknown[], options?: viem.Prettify<viem.UnionOmit<viem.ReadContractParameters<readonly any[], string, any[]>, "args" | "address" | "abi" | "functionName">> | undefined]) => Promise<viem.ReadContractReturnType>;
307
+ };
308
+ estimateGas: {
309
+ [x: string]: (...parameters: [options: viem.Prettify<viem.UnionOmit<viem.EstimateContractGasParameters<readonly any[], string, any[], viem.Chain | undefined>, "args" | "address" | "abi" | "functionName">>] | [args: readonly unknown[], options: viem.Prettify<viem.UnionOmit<viem.EstimateContractGasParameters<readonly any[], string, any[], viem.Chain | undefined>, "args" | "address" | "abi" | "functionName">>]) => Promise<viem.EstimateContractGasReturnType>;
310
+ };
311
+ simulate: {
312
+ [x: string]: <chainOverride extends viem.Chain | undefined = undefined, accountOverride extends viem.Account | viem.Address | undefined = undefined>(...parameters: [options?: Omit<viem.SimulateContractParameters<readonly any[], string, any[], viem.Chain | undefined, chainOverride, accountOverride>, "args" | "address" | "abi" | "functionName"> | undefined] | [args: readonly unknown[], options?: Omit<viem.SimulateContractParameters<readonly any[], string, any[], viem.Chain | undefined, chainOverride, accountOverride>, "args" | "address" | "abi" | "functionName"> | undefined]) => Promise<viem.SimulateContractReturnType>;
313
+ };
314
+ createEventFilter: {
315
+ [x: string]: <strict extends boolean | undefined = undefined>(...parameters: [options?: ({
316
+ fromBlock?: bigint | viem.BlockTag | undefined;
317
+ toBlock?: bigint | viem.BlockTag | undefined;
318
+ } & {
319
+ strict?: strict | undefined;
320
+ }) | undefined] | [args: readonly unknown[] | {
321
+ [x: string]: unknown;
322
+ address?: undefined;
323
+ abi?: undefined;
324
+ eventName?: undefined;
325
+ fromBlock?: undefined;
326
+ strict?: undefined;
327
+ toBlock?: undefined;
328
+ args?: undefined;
329
+ }, options?: ({
330
+ fromBlock?: bigint | viem.BlockTag | undefined;
331
+ toBlock?: bigint | viem.BlockTag | undefined;
332
+ } & {
333
+ strict?: strict | undefined;
334
+ }) | undefined]) => Promise<viem.CreateContractEventFilterReturnType>;
335
+ };
336
+ getEvents: {
337
+ [x: string]: (...parameters: [options?: {
338
+ blockHash?: viem.Hash | undefined;
339
+ strict?: boolean | undefined;
340
+ fromBlock?: bigint | viem.BlockTag | undefined;
341
+ toBlock?: bigint | viem.BlockTag | undefined;
342
+ } | undefined] | [args?: readonly unknown[] | {
343
+ [x: string]: unknown;
344
+ address?: undefined;
345
+ abi?: undefined;
346
+ args?: undefined;
347
+ eventName?: undefined;
348
+ fromBlock?: undefined;
349
+ onError?: undefined;
350
+ onLogs?: undefined;
351
+ strict?: undefined;
352
+ poll?: undefined;
353
+ batch?: undefined;
354
+ pollingInterval?: undefined;
355
+ } | undefined, options?: {
356
+ blockHash?: viem.Hash | undefined;
357
+ strict?: boolean | undefined;
358
+ fromBlock?: bigint | viem.BlockTag | undefined;
359
+ toBlock?: bigint | viem.BlockTag | undefined;
360
+ } | undefined]) => Promise<viem.GetContractEventsReturnType<readonly any[], string>>;
361
+ };
362
+ watchEvent: {
363
+ [x: string]: (...parameters: [options?: {
364
+ batch?: boolean | undefined;
365
+ pollingInterval?: number | undefined;
366
+ strict?: boolean | undefined;
367
+ fromBlock?: viem.BlockNumber<bigint> | undefined;
368
+ onError?: ((error: Error) => void) | undefined;
369
+ onLogs: viem.WatchContractEventOnLogsFn<readonly any[], string, undefined>;
370
+ poll?: true | undefined;
371
+ } | undefined] | [args: readonly unknown[] | {
372
+ [x: string]: unknown;
373
+ address?: undefined;
374
+ abi?: undefined;
375
+ args?: undefined;
376
+ eventName?: undefined;
377
+ fromBlock?: undefined;
378
+ onError?: undefined;
379
+ onLogs?: undefined;
380
+ strict?: undefined;
381
+ poll?: undefined;
382
+ batch?: undefined;
383
+ pollingInterval?: undefined;
384
+ }, options?: {
385
+ batch?: boolean | undefined;
386
+ pollingInterval?: number | undefined;
387
+ strict?: boolean | undefined;
388
+ fromBlock?: viem.BlockNumber<bigint> | undefined;
389
+ onError?: ((error: Error) => void) | undefined;
390
+ onLogs: viem.WatchContractEventOnLogsFn<readonly any[], string, undefined>;
391
+ poll?: true | undefined;
392
+ } | undefined]) => viem.WatchContractEventReturnType;
393
+ };
394
+ address: `0x${string}`;
395
+ abi: readonly any[];
396
+ } | undefined;
397
+ disputeKitGated: {
398
+ read: {
399
+ [x: string]: (...parameters: [options?: viem.Prettify<viem.UnionOmit<viem.ReadContractParameters<readonly any[], string, any[]>, "args" | "address" | "abi" | "functionName">> | undefined] | [args: readonly unknown[], options?: viem.Prettify<viem.UnionOmit<viem.ReadContractParameters<readonly any[], string, any[]>, "args" | "address" | "abi" | "functionName">> | undefined]) => Promise<viem.ReadContractReturnType>;
400
+ };
401
+ estimateGas: {
402
+ [x: string]: (...parameters: [options: viem.Prettify<viem.UnionOmit<viem.EstimateContractGasParameters<readonly any[], string, any[], viem.Chain | undefined>, "args" | "address" | "abi" | "functionName">>] | [args: readonly unknown[], options: viem.Prettify<viem.UnionOmit<viem.EstimateContractGasParameters<readonly any[], string, any[], viem.Chain | undefined>, "args" | "address" | "abi" | "functionName">>]) => Promise<viem.EstimateContractGasReturnType>;
403
+ };
404
+ simulate: {
405
+ [x: string]: <chainOverride extends viem.Chain | undefined = undefined, accountOverride extends viem.Account | viem.Address | undefined = undefined>(...parameters: [options?: Omit<viem.SimulateContractParameters<readonly any[], string, any[], viem.Chain | undefined, chainOverride, accountOverride>, "args" | "address" | "abi" | "functionName"> | undefined] | [args: readonly unknown[], options?: Omit<viem.SimulateContractParameters<readonly any[], string, any[], viem.Chain | undefined, chainOverride, accountOverride>, "args" | "address" | "abi" | "functionName"> | undefined]) => Promise<viem.SimulateContractReturnType>;
406
+ };
407
+ createEventFilter: {
408
+ [x: string]: <strict extends boolean | undefined = undefined>(...parameters: [options?: ({
409
+ fromBlock?: bigint | viem.BlockTag | undefined;
410
+ toBlock?: bigint | viem.BlockTag | undefined;
411
+ } & {
412
+ strict?: strict | undefined;
413
+ }) | undefined] | [args: readonly unknown[] | {
414
+ [x: string]: unknown;
415
+ address?: undefined;
416
+ abi?: undefined;
417
+ eventName?: undefined;
418
+ fromBlock?: undefined;
419
+ strict?: undefined;
420
+ toBlock?: undefined;
421
+ args?: undefined;
422
+ }, options?: ({
423
+ fromBlock?: bigint | viem.BlockTag | undefined;
424
+ toBlock?: bigint | viem.BlockTag | undefined;
425
+ } & {
426
+ strict?: strict | undefined;
427
+ }) | undefined]) => Promise<viem.CreateContractEventFilterReturnType>;
428
+ };
429
+ getEvents: {
430
+ [x: string]: (...parameters: [options?: {
431
+ blockHash?: viem.Hash | undefined;
432
+ strict?: boolean | undefined;
433
+ fromBlock?: bigint | viem.BlockTag | undefined;
434
+ toBlock?: bigint | viem.BlockTag | undefined;
435
+ } | undefined] | [args?: readonly unknown[] | {
436
+ [x: string]: unknown;
437
+ address?: undefined;
438
+ abi?: undefined;
439
+ args?: undefined;
440
+ eventName?: undefined;
441
+ fromBlock?: undefined;
442
+ onError?: undefined;
443
+ onLogs?: undefined;
444
+ strict?: undefined;
445
+ poll?: undefined;
446
+ batch?: undefined;
447
+ pollingInterval?: undefined;
448
+ } | undefined, options?: {
449
+ blockHash?: viem.Hash | undefined;
450
+ strict?: boolean | undefined;
451
+ fromBlock?: bigint | viem.BlockTag | undefined;
452
+ toBlock?: bigint | viem.BlockTag | undefined;
453
+ } | undefined]) => Promise<viem.GetContractEventsReturnType<readonly any[], string>>;
454
+ };
455
+ watchEvent: {
456
+ [x: string]: (...parameters: [options?: {
457
+ batch?: boolean | undefined;
458
+ pollingInterval?: number | undefined;
459
+ strict?: boolean | undefined;
460
+ fromBlock?: viem.BlockNumber<bigint> | undefined;
461
+ onError?: ((error: Error) => void) | undefined;
462
+ onLogs: viem.WatchContractEventOnLogsFn<readonly any[], string, undefined>;
463
+ poll?: true | undefined;
464
+ } | undefined] | [args: readonly unknown[] | {
465
+ [x: string]: unknown;
466
+ address?: undefined;
467
+ abi?: undefined;
468
+ args?: undefined;
469
+ eventName?: undefined;
470
+ fromBlock?: undefined;
471
+ onError?: undefined;
472
+ onLogs?: undefined;
473
+ strict?: undefined;
474
+ poll?: undefined;
475
+ batch?: undefined;
476
+ pollingInterval?: undefined;
477
+ }, options?: {
478
+ batch?: boolean | undefined;
479
+ pollingInterval?: number | undefined;
480
+ strict?: boolean | undefined;
481
+ fromBlock?: viem.BlockNumber<bigint> | undefined;
482
+ onError?: ((error: Error) => void) | undefined;
483
+ onLogs: viem.WatchContractEventOnLogsFn<readonly any[], string, undefined>;
484
+ poll?: true | undefined;
485
+ } | undefined]) => viem.WatchContractEventReturnType;
486
+ };
487
+ address: `0x${string}`;
488
+ abi: readonly any[];
489
+ } | undefined;
490
+ disputeKitGatedShutter: {
491
+ read: {
492
+ [x: string]: (...parameters: [options?: viem.Prettify<viem.UnionOmit<viem.ReadContractParameters<readonly any[], string, any[]>, "args" | "address" | "abi" | "functionName">> | undefined] | [args: readonly unknown[], options?: viem.Prettify<viem.UnionOmit<viem.ReadContractParameters<readonly any[], string, any[]>, "args" | "address" | "abi" | "functionName">> | undefined]) => Promise<viem.ReadContractReturnType>;
493
+ };
494
+ estimateGas: {
495
+ [x: string]: (...parameters: [options: viem.Prettify<viem.UnionOmit<viem.EstimateContractGasParameters<readonly any[], string, any[], viem.Chain | undefined>, "args" | "address" | "abi" | "functionName">>] | [args: readonly unknown[], options: viem.Prettify<viem.UnionOmit<viem.EstimateContractGasParameters<readonly any[], string, any[], viem.Chain | undefined>, "args" | "address" | "abi" | "functionName">>]) => Promise<viem.EstimateContractGasReturnType>;
496
+ };
497
+ simulate: {
498
+ [x: string]: <chainOverride extends viem.Chain | undefined = undefined, accountOverride extends viem.Account | viem.Address | undefined = undefined>(...parameters: [options?: Omit<viem.SimulateContractParameters<readonly any[], string, any[], viem.Chain | undefined, chainOverride, accountOverride>, "args" | "address" | "abi" | "functionName"> | undefined] | [args: readonly unknown[], options?: Omit<viem.SimulateContractParameters<readonly any[], string, any[], viem.Chain | undefined, chainOverride, accountOverride>, "args" | "address" | "abi" | "functionName"> | undefined]) => Promise<viem.SimulateContractReturnType>;
499
+ };
500
+ createEventFilter: {
501
+ [x: string]: <strict extends boolean | undefined = undefined>(...parameters: [options?: ({
502
+ fromBlock?: bigint | viem.BlockTag | undefined;
503
+ toBlock?: bigint | viem.BlockTag | undefined;
504
+ } & {
505
+ strict?: strict | undefined;
506
+ }) | undefined] | [args: readonly unknown[] | {
507
+ [x: string]: unknown;
508
+ address?: undefined;
509
+ abi?: undefined;
510
+ eventName?: undefined;
511
+ fromBlock?: undefined;
512
+ strict?: undefined;
513
+ toBlock?: undefined;
514
+ args?: undefined;
515
+ }, options?: ({
516
+ fromBlock?: bigint | viem.BlockTag | undefined;
517
+ toBlock?: bigint | viem.BlockTag | undefined;
518
+ } & {
519
+ strict?: strict | undefined;
520
+ }) | undefined]) => Promise<viem.CreateContractEventFilterReturnType>;
521
+ };
522
+ getEvents: {
523
+ [x: string]: (...parameters: [options?: {
524
+ blockHash?: viem.Hash | undefined;
525
+ strict?: boolean | undefined;
526
+ fromBlock?: bigint | viem.BlockTag | undefined;
527
+ toBlock?: bigint | viem.BlockTag | undefined;
528
+ } | undefined] | [args?: readonly unknown[] | {
529
+ [x: string]: unknown;
530
+ address?: undefined;
531
+ abi?: undefined;
532
+ args?: undefined;
533
+ eventName?: undefined;
534
+ fromBlock?: undefined;
535
+ onError?: undefined;
536
+ onLogs?: undefined;
537
+ strict?: undefined;
538
+ poll?: undefined;
539
+ batch?: undefined;
540
+ pollingInterval?: undefined;
541
+ } | undefined, options?: {
542
+ blockHash?: viem.Hash | undefined;
543
+ strict?: boolean | undefined;
544
+ fromBlock?: bigint | viem.BlockTag | undefined;
545
+ toBlock?: bigint | viem.BlockTag | undefined;
546
+ } | undefined]) => Promise<viem.GetContractEventsReturnType<readonly any[], string>>;
547
+ };
548
+ watchEvent: {
549
+ [x: string]: (...parameters: [options?: {
550
+ batch?: boolean | undefined;
551
+ pollingInterval?: number | undefined;
552
+ strict?: boolean | undefined;
553
+ fromBlock?: viem.BlockNumber<bigint> | undefined;
554
+ onError?: ((error: Error) => void) | undefined;
555
+ onLogs: viem.WatchContractEventOnLogsFn<readonly any[], string, undefined>;
556
+ poll?: true | undefined;
557
+ } | undefined] | [args: readonly unknown[] | {
558
+ [x: string]: unknown;
559
+ address?: undefined;
560
+ abi?: undefined;
561
+ args?: undefined;
562
+ eventName?: undefined;
563
+ fromBlock?: undefined;
564
+ onError?: undefined;
565
+ onLogs?: undefined;
566
+ strict?: undefined;
567
+ poll?: undefined;
568
+ batch?: undefined;
569
+ pollingInterval?: undefined;
570
+ }, options?: {
571
+ batch?: boolean | undefined;
572
+ pollingInterval?: number | undefined;
573
+ strict?: boolean | undefined;
574
+ fromBlock?: viem.BlockNumber<bigint> | undefined;
575
+ onError?: ((error: Error) => void) | undefined;
576
+ onLogs: viem.WatchContractEventOnLogsFn<readonly any[], string, undefined>;
577
+ poll?: true | undefined;
578
+ } | undefined]) => viem.WatchContractEventReturnType;
579
+ };
580
+ address: `0x${string}`;
581
+ abi: readonly any[];
582
+ } | undefined;
583
+ disputeKitGatedArgentinaConsumerProtection: {
584
+ read: {
585
+ [x: string]: (...parameters: [options?: viem.Prettify<viem.UnionOmit<viem.ReadContractParameters<readonly any[], string, any[]>, "args" | "address" | "abi" | "functionName">> | undefined] | [args: readonly unknown[], options?: viem.Prettify<viem.UnionOmit<viem.ReadContractParameters<readonly any[], string, any[]>, "args" | "address" | "abi" | "functionName">> | undefined]) => Promise<viem.ReadContractReturnType>;
586
+ };
587
+ estimateGas: {
588
+ [x: string]: (...parameters: [options: viem.Prettify<viem.UnionOmit<viem.EstimateContractGasParameters<readonly any[], string, any[], viem.Chain | undefined>, "args" | "address" | "abi" | "functionName">>] | [args: readonly unknown[], options: viem.Prettify<viem.UnionOmit<viem.EstimateContractGasParameters<readonly any[], string, any[], viem.Chain | undefined>, "args" | "address" | "abi" | "functionName">>]) => Promise<viem.EstimateContractGasReturnType>;
589
+ };
590
+ simulate: {
591
+ [x: string]: <chainOverride extends viem.Chain | undefined = undefined, accountOverride extends viem.Account | viem.Address | undefined = undefined>(...parameters: [options?: Omit<viem.SimulateContractParameters<readonly any[], string, any[], viem.Chain | undefined, chainOverride, accountOverride>, "args" | "address" | "abi" | "functionName"> | undefined] | [args: readonly unknown[], options?: Omit<viem.SimulateContractParameters<readonly any[], string, any[], viem.Chain | undefined, chainOverride, accountOverride>, "args" | "address" | "abi" | "functionName"> | undefined]) => Promise<viem.SimulateContractReturnType>;
592
+ };
593
+ createEventFilter: {
594
+ [x: string]: <strict extends boolean | undefined = undefined>(...parameters: [options?: ({
595
+ fromBlock?: bigint | viem.BlockTag | undefined;
596
+ toBlock?: bigint | viem.BlockTag | undefined;
597
+ } & {
598
+ strict?: strict | undefined;
599
+ }) | undefined] | [args: readonly unknown[] | {
600
+ [x: string]: unknown;
601
+ address?: undefined;
602
+ abi?: undefined;
603
+ eventName?: undefined;
604
+ fromBlock?: undefined;
605
+ strict?: undefined;
606
+ toBlock?: undefined;
607
+ args?: undefined;
608
+ }, options?: ({
609
+ fromBlock?: bigint | viem.BlockTag | undefined;
610
+ toBlock?: bigint | viem.BlockTag | undefined;
611
+ } & {
612
+ strict?: strict | undefined;
613
+ }) | undefined]) => Promise<viem.CreateContractEventFilterReturnType>;
614
+ };
615
+ getEvents: {
616
+ [x: string]: (...parameters: [options?: {
617
+ blockHash?: viem.Hash | undefined;
618
+ strict?: boolean | undefined;
619
+ fromBlock?: bigint | viem.BlockTag | undefined;
620
+ toBlock?: bigint | viem.BlockTag | undefined;
621
+ } | undefined] | [args?: readonly unknown[] | {
622
+ [x: string]: unknown;
623
+ address?: undefined;
624
+ abi?: undefined;
625
+ args?: undefined;
626
+ eventName?: undefined;
627
+ fromBlock?: undefined;
628
+ onError?: undefined;
629
+ onLogs?: undefined;
630
+ strict?: undefined;
631
+ poll?: undefined;
632
+ batch?: undefined;
633
+ pollingInterval?: undefined;
634
+ } | undefined, options?: {
635
+ blockHash?: viem.Hash | undefined;
636
+ strict?: boolean | undefined;
637
+ fromBlock?: bigint | viem.BlockTag | undefined;
638
+ toBlock?: bigint | viem.BlockTag | undefined;
639
+ } | undefined]) => Promise<viem.GetContractEventsReturnType<readonly any[], string>>;
640
+ };
641
+ watchEvent: {
642
+ [x: string]: (...parameters: [options?: {
643
+ batch?: boolean | undefined;
644
+ pollingInterval?: number | undefined;
645
+ strict?: boolean | undefined;
646
+ fromBlock?: viem.BlockNumber<bigint> | undefined;
647
+ onError?: ((error: Error) => void) | undefined;
648
+ onLogs: viem.WatchContractEventOnLogsFn<readonly any[], string, undefined>;
649
+ poll?: true | undefined;
650
+ } | undefined] | [args: readonly unknown[] | {
651
+ [x: string]: unknown;
652
+ address?: undefined;
653
+ abi?: undefined;
654
+ args?: undefined;
655
+ eventName?: undefined;
656
+ fromBlock?: undefined;
657
+ onError?: undefined;
658
+ onLogs?: undefined;
659
+ strict?: undefined;
660
+ poll?: undefined;
661
+ batch?: undefined;
662
+ pollingInterval?: undefined;
663
+ }, options?: {
664
+ batch?: boolean | undefined;
665
+ pollingInterval?: number | undefined;
666
+ strict?: boolean | undefined;
667
+ fromBlock?: viem.BlockNumber<bigint> | undefined;
668
+ onError?: ((error: Error) => void) | undefined;
669
+ onLogs: viem.WatchContractEventOnLogsFn<readonly any[], string, undefined>;
670
+ poll?: true | undefined;
671
+ } | undefined]) => viem.WatchContractEventReturnType;
672
+ };
673
+ address: `0x${string}`;
674
+ abi: readonly any[];
675
+ } | undefined;
676
+ disputeResolver: {
677
+ read: {
678
+ [x: string]: (...parameters: [options?: viem.Prettify<viem.UnionOmit<viem.ReadContractParameters<readonly any[], string, any[]>, "args" | "address" | "abi" | "functionName">> | undefined] | [args: readonly unknown[], options?: viem.Prettify<viem.UnionOmit<viem.ReadContractParameters<readonly any[], string, any[]>, "args" | "address" | "abi" | "functionName">> | undefined]) => Promise<viem.ReadContractReturnType>;
679
+ };
680
+ estimateGas: {
681
+ [x: string]: (...parameters: [options: viem.Prettify<viem.UnionOmit<viem.EstimateContractGasParameters<readonly any[], string, any[], viem.Chain | undefined>, "args" | "address" | "abi" | "functionName">>] | [args: readonly unknown[], options: viem.Prettify<viem.UnionOmit<viem.EstimateContractGasParameters<readonly any[], string, any[], viem.Chain | undefined>, "args" | "address" | "abi" | "functionName">>]) => Promise<viem.EstimateContractGasReturnType>;
682
+ };
683
+ simulate: {
684
+ [x: string]: <chainOverride extends viem.Chain | undefined = undefined, accountOverride extends viem.Account | viem.Address | undefined = undefined>(...parameters: [options?: Omit<viem.SimulateContractParameters<readonly any[], string, any[], viem.Chain | undefined, chainOverride, accountOverride>, "args" | "address" | "abi" | "functionName"> | undefined] | [args: readonly unknown[], options?: Omit<viem.SimulateContractParameters<readonly any[], string, any[], viem.Chain | undefined, chainOverride, accountOverride>, "args" | "address" | "abi" | "functionName"> | undefined]) => Promise<viem.SimulateContractReturnType>;
685
+ };
686
+ createEventFilter: {
687
+ [x: string]: <strict extends boolean | undefined = undefined>(...parameters: [options?: ({
688
+ fromBlock?: bigint | viem.BlockTag | undefined;
689
+ toBlock?: bigint | viem.BlockTag | undefined;
690
+ } & {
691
+ strict?: strict | undefined;
692
+ }) | undefined] | [args: readonly unknown[] | {
693
+ [x: string]: unknown;
694
+ address?: undefined;
695
+ abi?: undefined;
696
+ eventName?: undefined;
697
+ fromBlock?: undefined;
698
+ strict?: undefined;
699
+ toBlock?: undefined;
700
+ args?: undefined;
701
+ }, options?: ({
702
+ fromBlock?: bigint | viem.BlockTag | undefined;
703
+ toBlock?: bigint | viem.BlockTag | undefined;
704
+ } & {
705
+ strict?: strict | undefined;
706
+ }) | undefined]) => Promise<viem.CreateContractEventFilterReturnType>;
707
+ };
708
+ getEvents: {
709
+ [x: string]: (...parameters: [options?: {
710
+ blockHash?: viem.Hash | undefined;
711
+ strict?: boolean | undefined;
712
+ fromBlock?: bigint | viem.BlockTag | undefined;
713
+ toBlock?: bigint | viem.BlockTag | undefined;
714
+ } | undefined] | [args?: readonly unknown[] | {
715
+ [x: string]: unknown;
716
+ address?: undefined;
717
+ abi?: undefined;
718
+ args?: undefined;
719
+ eventName?: undefined;
720
+ fromBlock?: undefined;
721
+ onError?: undefined;
722
+ onLogs?: undefined;
723
+ strict?: undefined;
724
+ poll?: undefined;
725
+ batch?: undefined;
726
+ pollingInterval?: undefined;
727
+ } | undefined, options?: {
728
+ blockHash?: viem.Hash | undefined;
729
+ strict?: boolean | undefined;
730
+ fromBlock?: bigint | viem.BlockTag | undefined;
731
+ toBlock?: bigint | viem.BlockTag | undefined;
732
+ } | undefined]) => Promise<viem.GetContractEventsReturnType<readonly any[], string>>;
733
+ };
734
+ watchEvent: {
735
+ [x: string]: (...parameters: [options?: {
736
+ batch?: boolean | undefined;
737
+ pollingInterval?: number | undefined;
738
+ strict?: boolean | undefined;
739
+ fromBlock?: viem.BlockNumber<bigint> | undefined;
740
+ onError?: ((error: Error) => void) | undefined;
741
+ onLogs: viem.WatchContractEventOnLogsFn<readonly any[], string, undefined>;
742
+ poll?: true | undefined;
743
+ } | undefined] | [args: readonly unknown[] | {
744
+ [x: string]: unknown;
745
+ address?: undefined;
746
+ abi?: undefined;
747
+ args?: undefined;
748
+ eventName?: undefined;
749
+ fromBlock?: undefined;
750
+ onError?: undefined;
751
+ onLogs?: undefined;
752
+ strict?: undefined;
753
+ poll?: undefined;
754
+ batch?: undefined;
755
+ pollingInterval?: undefined;
756
+ }, options?: {
757
+ batch?: boolean | undefined;
758
+ pollingInterval?: number | undefined;
759
+ strict?: boolean | undefined;
760
+ fromBlock?: viem.BlockNumber<bigint> | undefined;
761
+ onError?: ((error: Error) => void) | undefined;
762
+ onLogs: viem.WatchContractEventOnLogsFn<readonly any[], string, undefined>;
763
+ poll?: true | undefined;
764
+ } | undefined]) => viem.WatchContractEventReturnType;
765
+ };
766
+ address: `0x${string}`;
767
+ abi: readonly any[];
768
+ };
769
+ disputeTemplateRegistry: {
770
+ read: {
771
+ [x: string]: (...parameters: [options?: viem.Prettify<viem.UnionOmit<viem.ReadContractParameters<readonly any[], string, any[]>, "args" | "address" | "abi" | "functionName">> | undefined] | [args: readonly unknown[], options?: viem.Prettify<viem.UnionOmit<viem.ReadContractParameters<readonly any[], string, any[]>, "args" | "address" | "abi" | "functionName">> | undefined]) => Promise<viem.ReadContractReturnType>;
772
+ };
773
+ estimateGas: {
774
+ [x: string]: (...parameters: [options: viem.Prettify<viem.UnionOmit<viem.EstimateContractGasParameters<readonly any[], string, any[], viem.Chain | undefined>, "args" | "address" | "abi" | "functionName">>] | [args: readonly unknown[], options: viem.Prettify<viem.UnionOmit<viem.EstimateContractGasParameters<readonly any[], string, any[], viem.Chain | undefined>, "args" | "address" | "abi" | "functionName">>]) => Promise<viem.EstimateContractGasReturnType>;
775
+ };
776
+ simulate: {
777
+ [x: string]: <chainOverride extends viem.Chain | undefined = undefined, accountOverride extends viem.Account | viem.Address | undefined = undefined>(...parameters: [options?: Omit<viem.SimulateContractParameters<readonly any[], string, any[], viem.Chain | undefined, chainOverride, accountOverride>, "args" | "address" | "abi" | "functionName"> | undefined] | [args: readonly unknown[], options?: Omit<viem.SimulateContractParameters<readonly any[], string, any[], viem.Chain | undefined, chainOverride, accountOverride>, "args" | "address" | "abi" | "functionName"> | undefined]) => Promise<viem.SimulateContractReturnType>;
778
+ };
779
+ createEventFilter: {
780
+ [x: string]: <strict extends boolean | undefined = undefined>(...parameters: [options?: ({
781
+ fromBlock?: bigint | viem.BlockTag | undefined;
782
+ toBlock?: bigint | viem.BlockTag | undefined;
783
+ } & {
784
+ strict?: strict | undefined;
785
+ }) | undefined] | [args: readonly unknown[] | {
786
+ [x: string]: unknown;
787
+ address?: undefined;
788
+ abi?: undefined;
789
+ eventName?: undefined;
790
+ fromBlock?: undefined;
791
+ strict?: undefined;
792
+ toBlock?: undefined;
793
+ args?: undefined;
794
+ }, options?: ({
795
+ fromBlock?: bigint | viem.BlockTag | undefined;
796
+ toBlock?: bigint | viem.BlockTag | undefined;
797
+ } & {
798
+ strict?: strict | undefined;
799
+ }) | undefined]) => Promise<viem.CreateContractEventFilterReturnType>;
800
+ };
801
+ getEvents: {
802
+ [x: string]: (...parameters: [options?: {
803
+ blockHash?: viem.Hash | undefined;
804
+ strict?: boolean | undefined;
805
+ fromBlock?: bigint | viem.BlockTag | undefined;
806
+ toBlock?: bigint | viem.BlockTag | undefined;
807
+ } | undefined] | [args?: readonly unknown[] | {
808
+ [x: string]: unknown;
809
+ address?: undefined;
810
+ abi?: undefined;
811
+ args?: undefined;
812
+ eventName?: undefined;
813
+ fromBlock?: undefined;
814
+ onError?: undefined;
815
+ onLogs?: undefined;
816
+ strict?: undefined;
817
+ poll?: undefined;
818
+ batch?: undefined;
819
+ pollingInterval?: undefined;
820
+ } | undefined, options?: {
821
+ blockHash?: viem.Hash | undefined;
822
+ strict?: boolean | undefined;
823
+ fromBlock?: bigint | viem.BlockTag | undefined;
824
+ toBlock?: bigint | viem.BlockTag | undefined;
825
+ } | undefined]) => Promise<viem.GetContractEventsReturnType<readonly any[], string>>;
826
+ };
827
+ watchEvent: {
828
+ [x: string]: (...parameters: [options?: {
829
+ batch?: boolean | undefined;
830
+ pollingInterval?: number | undefined;
831
+ strict?: boolean | undefined;
832
+ fromBlock?: viem.BlockNumber<bigint> | undefined;
833
+ onError?: ((error: Error) => void) | undefined;
834
+ onLogs: viem.WatchContractEventOnLogsFn<readonly any[], string, undefined>;
835
+ poll?: true | undefined;
836
+ } | undefined] | [args: readonly unknown[] | {
837
+ [x: string]: unknown;
838
+ address?: undefined;
839
+ abi?: undefined;
840
+ args?: undefined;
841
+ eventName?: undefined;
842
+ fromBlock?: undefined;
843
+ onError?: undefined;
844
+ onLogs?: undefined;
845
+ strict?: undefined;
846
+ poll?: undefined;
847
+ batch?: undefined;
848
+ pollingInterval?: undefined;
849
+ }, options?: {
850
+ batch?: boolean | undefined;
851
+ pollingInterval?: number | undefined;
852
+ strict?: boolean | undefined;
853
+ fromBlock?: viem.BlockNumber<bigint> | undefined;
854
+ onError?: ((error: Error) => void) | undefined;
855
+ onLogs: viem.WatchContractEventOnLogsFn<readonly any[], string, undefined>;
856
+ poll?: true | undefined;
857
+ } | undefined]) => viem.WatchContractEventReturnType;
858
+ };
859
+ address: `0x${string}`;
860
+ abi: readonly any[];
861
+ };
862
+ evidence: {
863
+ read: {
864
+ [x: string]: (...parameters: [options?: viem.Prettify<viem.UnionOmit<viem.ReadContractParameters<readonly any[], string, any[]>, "args" | "address" | "abi" | "functionName">> | undefined] | [args: readonly unknown[], options?: viem.Prettify<viem.UnionOmit<viem.ReadContractParameters<readonly any[], string, any[]>, "args" | "address" | "abi" | "functionName">> | undefined]) => Promise<viem.ReadContractReturnType>;
865
+ };
866
+ estimateGas: {
867
+ [x: string]: (...parameters: [options: viem.Prettify<viem.UnionOmit<viem.EstimateContractGasParameters<readonly any[], string, any[], viem.Chain | undefined>, "args" | "address" | "abi" | "functionName">>] | [args: readonly unknown[], options: viem.Prettify<viem.UnionOmit<viem.EstimateContractGasParameters<readonly any[], string, any[], viem.Chain | undefined>, "args" | "address" | "abi" | "functionName">>]) => Promise<viem.EstimateContractGasReturnType>;
868
+ };
869
+ simulate: {
870
+ [x: string]: <chainOverride extends viem.Chain | undefined = undefined, accountOverride extends viem.Account | viem.Address | undefined = undefined>(...parameters: [options?: Omit<viem.SimulateContractParameters<readonly any[], string, any[], viem.Chain | undefined, chainOverride, accountOverride>, "args" | "address" | "abi" | "functionName"> | undefined] | [args: readonly unknown[], options?: Omit<viem.SimulateContractParameters<readonly any[], string, any[], viem.Chain | undefined, chainOverride, accountOverride>, "args" | "address" | "abi" | "functionName"> | undefined]) => Promise<viem.SimulateContractReturnType>;
871
+ };
872
+ createEventFilter: {
873
+ [x: string]: <strict extends boolean | undefined = undefined>(...parameters: [options?: ({
874
+ fromBlock?: bigint | viem.BlockTag | undefined;
875
+ toBlock?: bigint | viem.BlockTag | undefined;
876
+ } & {
877
+ strict?: strict | undefined;
878
+ }) | undefined] | [args: readonly unknown[] | {
879
+ [x: string]: unknown;
880
+ address?: undefined;
881
+ abi?: undefined;
882
+ eventName?: undefined;
883
+ fromBlock?: undefined;
884
+ strict?: undefined;
885
+ toBlock?: undefined;
886
+ args?: undefined;
887
+ }, options?: ({
888
+ fromBlock?: bigint | viem.BlockTag | undefined;
889
+ toBlock?: bigint | viem.BlockTag | undefined;
890
+ } & {
891
+ strict?: strict | undefined;
892
+ }) | undefined]) => Promise<viem.CreateContractEventFilterReturnType>;
893
+ };
894
+ getEvents: {
895
+ [x: string]: (...parameters: [options?: {
896
+ blockHash?: viem.Hash | undefined;
897
+ strict?: boolean | undefined;
898
+ fromBlock?: bigint | viem.BlockTag | undefined;
899
+ toBlock?: bigint | viem.BlockTag | undefined;
900
+ } | undefined] | [args?: readonly unknown[] | {
901
+ [x: string]: unknown;
902
+ address?: undefined;
903
+ abi?: undefined;
904
+ args?: undefined;
905
+ eventName?: undefined;
906
+ fromBlock?: undefined;
907
+ onError?: undefined;
908
+ onLogs?: undefined;
909
+ strict?: undefined;
910
+ poll?: undefined;
911
+ batch?: undefined;
912
+ pollingInterval?: undefined;
913
+ } | undefined, options?: {
914
+ blockHash?: viem.Hash | undefined;
915
+ strict?: boolean | undefined;
916
+ fromBlock?: bigint | viem.BlockTag | undefined;
917
+ toBlock?: bigint | viem.BlockTag | undefined;
918
+ } | undefined]) => Promise<viem.GetContractEventsReturnType<readonly any[], string>>;
919
+ };
920
+ watchEvent: {
921
+ [x: string]: (...parameters: [options?: {
922
+ batch?: boolean | undefined;
923
+ pollingInterval?: number | undefined;
924
+ strict?: boolean | undefined;
925
+ fromBlock?: viem.BlockNumber<bigint> | undefined;
926
+ onError?: ((error: Error) => void) | undefined;
927
+ onLogs: viem.WatchContractEventOnLogsFn<readonly any[], string, undefined>;
928
+ poll?: true | undefined;
929
+ } | undefined] | [args: readonly unknown[] | {
930
+ [x: string]: unknown;
931
+ address?: undefined;
932
+ abi?: undefined;
933
+ args?: undefined;
934
+ eventName?: undefined;
935
+ fromBlock?: undefined;
936
+ onError?: undefined;
937
+ onLogs?: undefined;
938
+ strict?: undefined;
939
+ poll?: undefined;
940
+ batch?: undefined;
941
+ pollingInterval?: undefined;
942
+ }, options?: {
943
+ batch?: boolean | undefined;
944
+ pollingInterval?: number | undefined;
945
+ strict?: boolean | undefined;
946
+ fromBlock?: viem.BlockNumber<bigint> | undefined;
947
+ onError?: ((error: Error) => void) | undefined;
948
+ onLogs: viem.WatchContractEventOnLogsFn<readonly any[], string, undefined>;
949
+ poll?: true | undefined;
950
+ } | undefined]) => viem.WatchContractEventReturnType;
951
+ };
952
+ address: `0x${string}`;
953
+ abi: readonly any[];
954
+ };
955
+ policyRegistry: {
956
+ read: {
957
+ [x: string]: (...parameters: [options?: viem.Prettify<viem.UnionOmit<viem.ReadContractParameters<readonly any[], string, any[]>, "args" | "address" | "abi" | "functionName">> | undefined] | [args: readonly unknown[], options?: viem.Prettify<viem.UnionOmit<viem.ReadContractParameters<readonly any[], string, any[]>, "args" | "address" | "abi" | "functionName">> | undefined]) => Promise<viem.ReadContractReturnType>;
958
+ };
959
+ estimateGas: {
960
+ [x: string]: (...parameters: [options: viem.Prettify<viem.UnionOmit<viem.EstimateContractGasParameters<readonly any[], string, any[], viem.Chain | undefined>, "args" | "address" | "abi" | "functionName">>] | [args: readonly unknown[], options: viem.Prettify<viem.UnionOmit<viem.EstimateContractGasParameters<readonly any[], string, any[], viem.Chain | undefined>, "args" | "address" | "abi" | "functionName">>]) => Promise<viem.EstimateContractGasReturnType>;
961
+ };
962
+ simulate: {
963
+ [x: string]: <chainOverride extends viem.Chain | undefined = undefined, accountOverride extends viem.Account | viem.Address | undefined = undefined>(...parameters: [options?: Omit<viem.SimulateContractParameters<readonly any[], string, any[], viem.Chain | undefined, chainOverride, accountOverride>, "args" | "address" | "abi" | "functionName"> | undefined] | [args: readonly unknown[], options?: Omit<viem.SimulateContractParameters<readonly any[], string, any[], viem.Chain | undefined, chainOverride, accountOverride>, "args" | "address" | "abi" | "functionName"> | undefined]) => Promise<viem.SimulateContractReturnType>;
964
+ };
965
+ createEventFilter: {
966
+ [x: string]: <strict extends boolean | undefined = undefined>(...parameters: [options?: ({
967
+ fromBlock?: bigint | viem.BlockTag | undefined;
968
+ toBlock?: bigint | viem.BlockTag | undefined;
969
+ } & {
970
+ strict?: strict | undefined;
971
+ }) | undefined] | [args: readonly unknown[] | {
972
+ [x: string]: unknown;
973
+ address?: undefined;
974
+ abi?: undefined;
975
+ eventName?: undefined;
976
+ fromBlock?: undefined;
977
+ strict?: undefined;
978
+ toBlock?: undefined;
979
+ args?: undefined;
980
+ }, options?: ({
981
+ fromBlock?: bigint | viem.BlockTag | undefined;
982
+ toBlock?: bigint | viem.BlockTag | undefined;
983
+ } & {
984
+ strict?: strict | undefined;
985
+ }) | undefined]) => Promise<viem.CreateContractEventFilterReturnType>;
986
+ };
987
+ getEvents: {
988
+ [x: string]: (...parameters: [options?: {
989
+ blockHash?: viem.Hash | undefined;
990
+ strict?: boolean | undefined;
991
+ fromBlock?: bigint | viem.BlockTag | undefined;
992
+ toBlock?: bigint | viem.BlockTag | undefined;
993
+ } | undefined] | [args?: readonly unknown[] | {
994
+ [x: string]: unknown;
995
+ address?: undefined;
996
+ abi?: undefined;
997
+ args?: undefined;
998
+ eventName?: undefined;
999
+ fromBlock?: undefined;
1000
+ onError?: undefined;
1001
+ onLogs?: undefined;
1002
+ strict?: undefined;
1003
+ poll?: undefined;
1004
+ batch?: undefined;
1005
+ pollingInterval?: undefined;
1006
+ } | undefined, options?: {
1007
+ blockHash?: viem.Hash | undefined;
1008
+ strict?: boolean | undefined;
1009
+ fromBlock?: bigint | viem.BlockTag | undefined;
1010
+ toBlock?: bigint | viem.BlockTag | undefined;
1011
+ } | undefined]) => Promise<viem.GetContractEventsReturnType<readonly any[], string>>;
1012
+ };
1013
+ watchEvent: {
1014
+ [x: string]: (...parameters: [options?: {
1015
+ batch?: boolean | undefined;
1016
+ pollingInterval?: number | undefined;
1017
+ strict?: boolean | undefined;
1018
+ fromBlock?: viem.BlockNumber<bigint> | undefined;
1019
+ onError?: ((error: Error) => void) | undefined;
1020
+ onLogs: viem.WatchContractEventOnLogsFn<readonly any[], string, undefined>;
1021
+ poll?: true | undefined;
1022
+ } | undefined] | [args: readonly unknown[] | {
1023
+ [x: string]: unknown;
1024
+ address?: undefined;
1025
+ abi?: undefined;
1026
+ args?: undefined;
1027
+ eventName?: undefined;
1028
+ fromBlock?: undefined;
1029
+ onError?: undefined;
1030
+ onLogs?: undefined;
1031
+ strict?: undefined;
1032
+ poll?: undefined;
1033
+ batch?: undefined;
1034
+ pollingInterval?: undefined;
1035
+ }, options?: {
1036
+ batch?: boolean | undefined;
1037
+ pollingInterval?: number | undefined;
1038
+ strict?: boolean | undefined;
1039
+ fromBlock?: viem.BlockNumber<bigint> | undefined;
1040
+ onError?: ((error: Error) => void) | undefined;
1041
+ onLogs: viem.WatchContractEventOnLogsFn<readonly any[], string, undefined>;
1042
+ poll?: true | undefined;
1043
+ } | undefined]) => viem.WatchContractEventReturnType;
1044
+ };
1045
+ address: `0x${string}`;
1046
+ abi: readonly any[];
1047
+ };
1048
+ transactionBatcher: {
1049
+ read: {
1050
+ [x: string]: (...parameters: [options?: viem.Prettify<viem.UnionOmit<viem.ReadContractParameters<readonly any[], string, any[]>, "args" | "address" | "abi" | "functionName">> | undefined] | [args: readonly unknown[], options?: viem.Prettify<viem.UnionOmit<viem.ReadContractParameters<readonly any[], string, any[]>, "args" | "address" | "abi" | "functionName">> | undefined]) => Promise<viem.ReadContractReturnType>;
1051
+ };
1052
+ estimateGas: {
1053
+ [x: string]: (...parameters: [options: viem.Prettify<viem.UnionOmit<viem.EstimateContractGasParameters<readonly any[], string, any[], viem.Chain | undefined>, "args" | "address" | "abi" | "functionName">>] | [args: readonly unknown[], options: viem.Prettify<viem.UnionOmit<viem.EstimateContractGasParameters<readonly any[], string, any[], viem.Chain | undefined>, "args" | "address" | "abi" | "functionName">>]) => Promise<viem.EstimateContractGasReturnType>;
1054
+ };
1055
+ simulate: {
1056
+ [x: string]: <chainOverride extends viem.Chain | undefined = undefined, accountOverride extends viem.Account | viem.Address | undefined = undefined>(...parameters: [options?: Omit<viem.SimulateContractParameters<readonly any[], string, any[], viem.Chain | undefined, chainOverride, accountOverride>, "args" | "address" | "abi" | "functionName"> | undefined] | [args: readonly unknown[], options?: Omit<viem.SimulateContractParameters<readonly any[], string, any[], viem.Chain | undefined, chainOverride, accountOverride>, "args" | "address" | "abi" | "functionName"> | undefined]) => Promise<viem.SimulateContractReturnType>;
1057
+ };
1058
+ createEventFilter: {
1059
+ [x: string]: <strict extends boolean | undefined = undefined>(...parameters: [options?: ({
1060
+ fromBlock?: bigint | viem.BlockTag | undefined;
1061
+ toBlock?: bigint | viem.BlockTag | undefined;
1062
+ } & {
1063
+ strict?: strict | undefined;
1064
+ }) | undefined] | [args: readonly unknown[] | {
1065
+ [x: string]: unknown;
1066
+ address?: undefined;
1067
+ abi?: undefined;
1068
+ eventName?: undefined;
1069
+ fromBlock?: undefined;
1070
+ strict?: undefined;
1071
+ toBlock?: undefined;
1072
+ args?: undefined;
1073
+ }, options?: ({
1074
+ fromBlock?: bigint | viem.BlockTag | undefined;
1075
+ toBlock?: bigint | viem.BlockTag | undefined;
1076
+ } & {
1077
+ strict?: strict | undefined;
1078
+ }) | undefined]) => Promise<viem.CreateContractEventFilterReturnType>;
1079
+ };
1080
+ getEvents: {
1081
+ [x: string]: (...parameters: [options?: {
1082
+ blockHash?: viem.Hash | undefined;
1083
+ strict?: boolean | undefined;
1084
+ fromBlock?: bigint | viem.BlockTag | undefined;
1085
+ toBlock?: bigint | viem.BlockTag | undefined;
1086
+ } | undefined] | [args?: readonly unknown[] | {
1087
+ [x: string]: unknown;
1088
+ address?: undefined;
1089
+ abi?: undefined;
1090
+ args?: undefined;
1091
+ eventName?: undefined;
1092
+ fromBlock?: undefined;
1093
+ onError?: undefined;
1094
+ onLogs?: undefined;
1095
+ strict?: undefined;
1096
+ poll?: undefined;
1097
+ batch?: undefined;
1098
+ pollingInterval?: undefined;
1099
+ } | undefined, options?: {
1100
+ blockHash?: viem.Hash | undefined;
1101
+ strict?: boolean | undefined;
1102
+ fromBlock?: bigint | viem.BlockTag | undefined;
1103
+ toBlock?: bigint | viem.BlockTag | undefined;
1104
+ } | undefined]) => Promise<viem.GetContractEventsReturnType<readonly any[], string>>;
1105
+ };
1106
+ watchEvent: {
1107
+ [x: string]: (...parameters: [options?: {
1108
+ batch?: boolean | undefined;
1109
+ pollingInterval?: number | undefined;
1110
+ strict?: boolean | undefined;
1111
+ fromBlock?: viem.BlockNumber<bigint> | undefined;
1112
+ onError?: ((error: Error) => void) | undefined;
1113
+ onLogs: viem.WatchContractEventOnLogsFn<readonly any[], string, undefined>;
1114
+ poll?: true | undefined;
1115
+ } | undefined] | [args: readonly unknown[] | {
1116
+ [x: string]: unknown;
1117
+ address?: undefined;
1118
+ abi?: undefined;
1119
+ args?: undefined;
1120
+ eventName?: undefined;
1121
+ fromBlock?: undefined;
1122
+ onError?: undefined;
1123
+ onLogs?: undefined;
1124
+ strict?: undefined;
1125
+ poll?: undefined;
1126
+ batch?: undefined;
1127
+ pollingInterval?: undefined;
1128
+ }, options?: {
1129
+ batch?: boolean | undefined;
1130
+ pollingInterval?: number | undefined;
1131
+ strict?: boolean | undefined;
1132
+ fromBlock?: viem.BlockNumber<bigint> | undefined;
1133
+ onError?: ((error: Error) => void) | undefined;
1134
+ onLogs: viem.WatchContractEventOnLogsFn<readonly any[], string, undefined>;
1135
+ poll?: true | undefined;
1136
+ } | undefined]) => viem.WatchContractEventReturnType;
1137
+ };
1138
+ address: `0x${string}`;
1139
+ abi: readonly any[];
1140
+ };
1141
+ chainlinkRng: {
1142
+ read: {
1143
+ [x: string]: (...parameters: [options?: viem.Prettify<viem.UnionOmit<viem.ReadContractParameters<readonly any[], string, any[]>, "args" | "address" | "abi" | "functionName">> | undefined] | [args: readonly unknown[], options?: viem.Prettify<viem.UnionOmit<viem.ReadContractParameters<readonly any[], string, any[]>, "args" | "address" | "abi" | "functionName">> | undefined]) => Promise<viem.ReadContractReturnType>;
1144
+ };
1145
+ estimateGas: {
1146
+ [x: string]: (...parameters: [options: viem.Prettify<viem.UnionOmit<viem.EstimateContractGasParameters<readonly any[], string, any[], viem.Chain | undefined>, "args" | "address" | "abi" | "functionName">>] | [args: readonly unknown[], options: viem.Prettify<viem.UnionOmit<viem.EstimateContractGasParameters<readonly any[], string, any[], viem.Chain | undefined>, "args" | "address" | "abi" | "functionName">>]) => Promise<viem.EstimateContractGasReturnType>;
1147
+ };
1148
+ simulate: {
1149
+ [x: string]: <chainOverride extends viem.Chain | undefined = undefined, accountOverride extends viem.Account | viem.Address | undefined = undefined>(...parameters: [options?: Omit<viem.SimulateContractParameters<readonly any[], string, any[], viem.Chain | undefined, chainOverride, accountOverride>, "args" | "address" | "abi" | "functionName"> | undefined] | [args: readonly unknown[], options?: Omit<viem.SimulateContractParameters<readonly any[], string, any[], viem.Chain | undefined, chainOverride, accountOverride>, "args" | "address" | "abi" | "functionName"> | undefined]) => Promise<viem.SimulateContractReturnType>;
1150
+ };
1151
+ createEventFilter: {
1152
+ [x: string]: <strict extends boolean | undefined = undefined>(...parameters: [options?: ({
1153
+ fromBlock?: bigint | viem.BlockTag | undefined;
1154
+ toBlock?: bigint | viem.BlockTag | undefined;
1155
+ } & {
1156
+ strict?: strict | undefined;
1157
+ }) | undefined] | [args: readonly unknown[] | {
1158
+ [x: string]: unknown;
1159
+ address?: undefined;
1160
+ abi?: undefined;
1161
+ eventName?: undefined;
1162
+ fromBlock?: undefined;
1163
+ strict?: undefined;
1164
+ toBlock?: undefined;
1165
+ args?: undefined;
1166
+ }, options?: ({
1167
+ fromBlock?: bigint | viem.BlockTag | undefined;
1168
+ toBlock?: bigint | viem.BlockTag | undefined;
1169
+ } & {
1170
+ strict?: strict | undefined;
1171
+ }) | undefined]) => Promise<viem.CreateContractEventFilterReturnType>;
1172
+ };
1173
+ getEvents: {
1174
+ [x: string]: (...parameters: [options?: {
1175
+ blockHash?: viem.Hash | undefined;
1176
+ strict?: boolean | undefined;
1177
+ fromBlock?: bigint | viem.BlockTag | undefined;
1178
+ toBlock?: bigint | viem.BlockTag | undefined;
1179
+ } | undefined] | [args?: readonly unknown[] | {
1180
+ [x: string]: unknown;
1181
+ address?: undefined;
1182
+ abi?: undefined;
1183
+ args?: undefined;
1184
+ eventName?: undefined;
1185
+ fromBlock?: undefined;
1186
+ onError?: undefined;
1187
+ onLogs?: undefined;
1188
+ strict?: undefined;
1189
+ poll?: undefined;
1190
+ batch?: undefined;
1191
+ pollingInterval?: undefined;
1192
+ } | undefined, options?: {
1193
+ blockHash?: viem.Hash | undefined;
1194
+ strict?: boolean | undefined;
1195
+ fromBlock?: bigint | viem.BlockTag | undefined;
1196
+ toBlock?: bigint | viem.BlockTag | undefined;
1197
+ } | undefined]) => Promise<viem.GetContractEventsReturnType<readonly any[], string>>;
1198
+ };
1199
+ watchEvent: {
1200
+ [x: string]: (...parameters: [options?: {
1201
+ batch?: boolean | undefined;
1202
+ pollingInterval?: number | undefined;
1203
+ strict?: boolean | undefined;
1204
+ fromBlock?: viem.BlockNumber<bigint> | undefined;
1205
+ onError?: ((error: Error) => void) | undefined;
1206
+ onLogs: viem.WatchContractEventOnLogsFn<readonly any[], string, undefined>;
1207
+ poll?: true | undefined;
1208
+ } | undefined] | [args: readonly unknown[] | {
1209
+ [x: string]: unknown;
1210
+ address?: undefined;
1211
+ abi?: undefined;
1212
+ args?: undefined;
1213
+ eventName?: undefined;
1214
+ fromBlock?: undefined;
1215
+ onError?: undefined;
1216
+ onLogs?: undefined;
1217
+ strict?: undefined;
1218
+ poll?: undefined;
1219
+ batch?: undefined;
1220
+ pollingInterval?: undefined;
1221
+ }, options?: {
1222
+ batch?: boolean | undefined;
1223
+ pollingInterval?: number | undefined;
1224
+ strict?: boolean | undefined;
1225
+ fromBlock?: viem.BlockNumber<bigint> | undefined;
1226
+ onError?: ((error: Error) => void) | undefined;
1227
+ onLogs: viem.WatchContractEventOnLogsFn<readonly any[], string, undefined>;
1228
+ poll?: true | undefined;
1229
+ } | undefined]) => viem.WatchContractEventReturnType;
1230
+ };
1231
+ address: `0x${string}`;
1232
+ abi: readonly any[];
1233
+ } | undefined;
1234
+ randomizerRng: {
1235
+ read: {
1236
+ [x: string]: (...parameters: [options?: viem.Prettify<viem.UnionOmit<viem.ReadContractParameters<readonly any[], string, any[]>, "args" | "address" | "abi" | "functionName">> | undefined] | [args: readonly unknown[], options?: viem.Prettify<viem.UnionOmit<viem.ReadContractParameters<readonly any[], string, any[]>, "args" | "address" | "abi" | "functionName">> | undefined]) => Promise<viem.ReadContractReturnType>;
1237
+ };
1238
+ estimateGas: {
1239
+ [x: string]: (...parameters: [options: viem.Prettify<viem.UnionOmit<viem.EstimateContractGasParameters<readonly any[], string, any[], viem.Chain | undefined>, "args" | "address" | "abi" | "functionName">>] | [args: readonly unknown[], options: viem.Prettify<viem.UnionOmit<viem.EstimateContractGasParameters<readonly any[], string, any[], viem.Chain | undefined>, "args" | "address" | "abi" | "functionName">>]) => Promise<viem.EstimateContractGasReturnType>;
1240
+ };
1241
+ simulate: {
1242
+ [x: string]: <chainOverride extends viem.Chain | undefined = undefined, accountOverride extends viem.Account | viem.Address | undefined = undefined>(...parameters: [options?: Omit<viem.SimulateContractParameters<readonly any[], string, any[], viem.Chain | undefined, chainOverride, accountOverride>, "args" | "address" | "abi" | "functionName"> | undefined] | [args: readonly unknown[], options?: Omit<viem.SimulateContractParameters<readonly any[], string, any[], viem.Chain | undefined, chainOverride, accountOverride>, "args" | "address" | "abi" | "functionName"> | undefined]) => Promise<viem.SimulateContractReturnType>;
1243
+ };
1244
+ createEventFilter: {
1245
+ [x: string]: <strict extends boolean | undefined = undefined>(...parameters: [options?: ({
1246
+ fromBlock?: bigint | viem.BlockTag | undefined;
1247
+ toBlock?: bigint | viem.BlockTag | undefined;
1248
+ } & {
1249
+ strict?: strict | undefined;
1250
+ }) | undefined] | [args: readonly unknown[] | {
1251
+ [x: string]: unknown;
1252
+ address?: undefined;
1253
+ abi?: undefined;
1254
+ eventName?: undefined;
1255
+ fromBlock?: undefined;
1256
+ strict?: undefined;
1257
+ toBlock?: undefined;
1258
+ args?: undefined;
1259
+ }, options?: ({
1260
+ fromBlock?: bigint | viem.BlockTag | undefined;
1261
+ toBlock?: bigint | viem.BlockTag | undefined;
1262
+ } & {
1263
+ strict?: strict | undefined;
1264
+ }) | undefined]) => Promise<viem.CreateContractEventFilterReturnType>;
1265
+ };
1266
+ getEvents: {
1267
+ [x: string]: (...parameters: [options?: {
1268
+ blockHash?: viem.Hash | undefined;
1269
+ strict?: boolean | undefined;
1270
+ fromBlock?: bigint | viem.BlockTag | undefined;
1271
+ toBlock?: bigint | viem.BlockTag | undefined;
1272
+ } | undefined] | [args?: readonly unknown[] | {
1273
+ [x: string]: unknown;
1274
+ address?: undefined;
1275
+ abi?: undefined;
1276
+ args?: undefined;
1277
+ eventName?: undefined;
1278
+ fromBlock?: undefined;
1279
+ onError?: undefined;
1280
+ onLogs?: undefined;
1281
+ strict?: undefined;
1282
+ poll?: undefined;
1283
+ batch?: undefined;
1284
+ pollingInterval?: undefined;
1285
+ } | undefined, options?: {
1286
+ blockHash?: viem.Hash | undefined;
1287
+ strict?: boolean | undefined;
1288
+ fromBlock?: bigint | viem.BlockTag | undefined;
1289
+ toBlock?: bigint | viem.BlockTag | undefined;
1290
+ } | undefined]) => Promise<viem.GetContractEventsReturnType<readonly any[], string>>;
1291
+ };
1292
+ watchEvent: {
1293
+ [x: string]: (...parameters: [options?: {
1294
+ batch?: boolean | undefined;
1295
+ pollingInterval?: number | undefined;
1296
+ strict?: boolean | undefined;
1297
+ fromBlock?: viem.BlockNumber<bigint> | undefined;
1298
+ onError?: ((error: Error) => void) | undefined;
1299
+ onLogs: viem.WatchContractEventOnLogsFn<readonly any[], string, undefined>;
1300
+ poll?: true | undefined;
1301
+ } | undefined] | [args: readonly unknown[] | {
1302
+ [x: string]: unknown;
1303
+ address?: undefined;
1304
+ abi?: undefined;
1305
+ args?: undefined;
1306
+ eventName?: undefined;
1307
+ fromBlock?: undefined;
1308
+ onError?: undefined;
1309
+ onLogs?: undefined;
1310
+ strict?: undefined;
1311
+ poll?: undefined;
1312
+ batch?: undefined;
1313
+ pollingInterval?: undefined;
1314
+ }, options?: {
1315
+ batch?: boolean | undefined;
1316
+ pollingInterval?: number | undefined;
1317
+ strict?: boolean | undefined;
1318
+ fromBlock?: viem.BlockNumber<bigint> | undefined;
1319
+ onError?: ((error: Error) => void) | undefined;
1320
+ onLogs: viem.WatchContractEventOnLogsFn<readonly any[], string, undefined>;
1321
+ poll?: true | undefined;
1322
+ } | undefined]) => viem.WatchContractEventReturnType;
1323
+ };
1324
+ address: `0x${string}`;
1325
+ abi: readonly any[];
1326
+ } | undefined;
1327
+ rngWithFallback: {
1328
+ read: {
1329
+ [x: string]: (...parameters: [options?: viem.Prettify<viem.UnionOmit<viem.ReadContractParameters<readonly any[], string, any[]>, "args" | "address" | "abi" | "functionName">> | undefined] | [args: readonly unknown[], options?: viem.Prettify<viem.UnionOmit<viem.ReadContractParameters<readonly any[], string, any[]>, "args" | "address" | "abi" | "functionName">> | undefined]) => Promise<viem.ReadContractReturnType>;
1330
+ };
1331
+ estimateGas: {
1332
+ [x: string]: (...parameters: [options: viem.Prettify<viem.UnionOmit<viem.EstimateContractGasParameters<readonly any[], string, any[], viem.Chain | undefined>, "args" | "address" | "abi" | "functionName">>] | [args: readonly unknown[], options: viem.Prettify<viem.UnionOmit<viem.EstimateContractGasParameters<readonly any[], string, any[], viem.Chain | undefined>, "args" | "address" | "abi" | "functionName">>]) => Promise<viem.EstimateContractGasReturnType>;
1333
+ };
1334
+ simulate: {
1335
+ [x: string]: <chainOverride extends viem.Chain | undefined = undefined, accountOverride extends viem.Account | viem.Address | undefined = undefined>(...parameters: [options?: Omit<viem.SimulateContractParameters<readonly any[], string, any[], viem.Chain | undefined, chainOverride, accountOverride>, "args" | "address" | "abi" | "functionName"> | undefined] | [args: readonly unknown[], options?: Omit<viem.SimulateContractParameters<readonly any[], string, any[], viem.Chain | undefined, chainOverride, accountOverride>, "args" | "address" | "abi" | "functionName"> | undefined]) => Promise<viem.SimulateContractReturnType>;
1336
+ };
1337
+ createEventFilter: {
1338
+ [x: string]: <strict extends boolean | undefined = undefined>(...parameters: [options?: ({
1339
+ fromBlock?: bigint | viem.BlockTag | undefined;
1340
+ toBlock?: bigint | viem.BlockTag | undefined;
1341
+ } & {
1342
+ strict?: strict | undefined;
1343
+ }) | undefined] | [args: readonly unknown[] | {
1344
+ [x: string]: unknown;
1345
+ address?: undefined;
1346
+ abi?: undefined;
1347
+ eventName?: undefined;
1348
+ fromBlock?: undefined;
1349
+ strict?: undefined;
1350
+ toBlock?: undefined;
1351
+ args?: undefined;
1352
+ }, options?: ({
1353
+ fromBlock?: bigint | viem.BlockTag | undefined;
1354
+ toBlock?: bigint | viem.BlockTag | undefined;
1355
+ } & {
1356
+ strict?: strict | undefined;
1357
+ }) | undefined]) => Promise<viem.CreateContractEventFilterReturnType>;
1358
+ };
1359
+ getEvents: {
1360
+ [x: string]: (...parameters: [options?: {
1361
+ blockHash?: viem.Hash | undefined;
1362
+ strict?: boolean | undefined;
1363
+ fromBlock?: bigint | viem.BlockTag | undefined;
1364
+ toBlock?: bigint | viem.BlockTag | undefined;
1365
+ } | undefined] | [args?: readonly unknown[] | {
1366
+ [x: string]: unknown;
1367
+ address?: undefined;
1368
+ abi?: undefined;
1369
+ args?: undefined;
1370
+ eventName?: undefined;
1371
+ fromBlock?: undefined;
1372
+ onError?: undefined;
1373
+ onLogs?: undefined;
1374
+ strict?: undefined;
1375
+ poll?: undefined;
1376
+ batch?: undefined;
1377
+ pollingInterval?: undefined;
1378
+ } | undefined, options?: {
1379
+ blockHash?: viem.Hash | undefined;
1380
+ strict?: boolean | undefined;
1381
+ fromBlock?: bigint | viem.BlockTag | undefined;
1382
+ toBlock?: bigint | viem.BlockTag | undefined;
1383
+ } | undefined]) => Promise<viem.GetContractEventsReturnType<readonly any[], string>>;
1384
+ };
1385
+ watchEvent: {
1386
+ [x: string]: (...parameters: [options?: {
1387
+ batch?: boolean | undefined;
1388
+ pollingInterval?: number | undefined;
1389
+ strict?: boolean | undefined;
1390
+ fromBlock?: viem.BlockNumber<bigint> | undefined;
1391
+ onError?: ((error: Error) => void) | undefined;
1392
+ onLogs: viem.WatchContractEventOnLogsFn<readonly any[], string, undefined>;
1393
+ poll?: true | undefined;
1394
+ } | undefined] | [args: readonly unknown[] | {
1395
+ [x: string]: unknown;
1396
+ address?: undefined;
1397
+ abi?: undefined;
1398
+ args?: undefined;
1399
+ eventName?: undefined;
1400
+ fromBlock?: undefined;
1401
+ onError?: undefined;
1402
+ onLogs?: undefined;
1403
+ strict?: undefined;
1404
+ poll?: undefined;
1405
+ batch?: undefined;
1406
+ pollingInterval?: undefined;
1407
+ }, options?: {
1408
+ batch?: boolean | undefined;
1409
+ pollingInterval?: number | undefined;
1410
+ strict?: boolean | undefined;
1411
+ fromBlock?: viem.BlockNumber<bigint> | undefined;
1412
+ onError?: ((error: Error) => void) | undefined;
1413
+ onLogs: viem.WatchContractEventOnLogsFn<readonly any[], string, undefined>;
1414
+ poll?: true | undefined;
1415
+ } | undefined]) => viem.WatchContractEventReturnType;
1416
+ };
1417
+ address: `0x${string}`;
1418
+ abi: readonly any[];
1419
+ } | undefined;
1420
+ pnk: {
1421
+ read: {
1422
+ [x: string]: (...parameters: [options?: viem.Prettify<viem.UnionOmit<viem.ReadContractParameters<readonly any[], string, any[]>, "args" | "address" | "abi" | "functionName">> | undefined] | [args: readonly unknown[], options?: viem.Prettify<viem.UnionOmit<viem.ReadContractParameters<readonly any[], string, any[]>, "args" | "address" | "abi" | "functionName">> | undefined]) => Promise<viem.ReadContractReturnType>;
1423
+ };
1424
+ estimateGas: {
1425
+ [x: string]: (...parameters: [options: viem.Prettify<viem.UnionOmit<viem.EstimateContractGasParameters<readonly any[], string, any[], viem.Chain | undefined>, "args" | "address" | "abi" | "functionName">>] | [args: readonly unknown[], options: viem.Prettify<viem.UnionOmit<viem.EstimateContractGasParameters<readonly any[], string, any[], viem.Chain | undefined>, "args" | "address" | "abi" | "functionName">>]) => Promise<viem.EstimateContractGasReturnType>;
1426
+ };
1427
+ simulate: {
1428
+ [x: string]: <chainOverride extends viem.Chain | undefined = undefined, accountOverride extends viem.Account | viem.Address | undefined = undefined>(...parameters: [options?: Omit<viem.SimulateContractParameters<readonly any[], string, any[], viem.Chain | undefined, chainOverride, accountOverride>, "args" | "address" | "abi" | "functionName"> | undefined] | [args: readonly unknown[], options?: Omit<viem.SimulateContractParameters<readonly any[], string, any[], viem.Chain | undefined, chainOverride, accountOverride>, "args" | "address" | "abi" | "functionName"> | undefined]) => Promise<viem.SimulateContractReturnType>;
1429
+ };
1430
+ createEventFilter: {
1431
+ [x: string]: <strict extends boolean | undefined = undefined>(...parameters: [options?: ({
1432
+ fromBlock?: bigint | viem.BlockTag | undefined;
1433
+ toBlock?: bigint | viem.BlockTag | undefined;
1434
+ } & {
1435
+ strict?: strict | undefined;
1436
+ }) | undefined] | [args: readonly unknown[] | {
1437
+ [x: string]: unknown;
1438
+ address?: undefined;
1439
+ abi?: undefined;
1440
+ eventName?: undefined;
1441
+ fromBlock?: undefined;
1442
+ strict?: undefined;
1443
+ toBlock?: undefined;
1444
+ args?: undefined;
1445
+ }, options?: ({
1446
+ fromBlock?: bigint | viem.BlockTag | undefined;
1447
+ toBlock?: bigint | viem.BlockTag | undefined;
1448
+ } & {
1449
+ strict?: strict | undefined;
1450
+ }) | undefined]) => Promise<viem.CreateContractEventFilterReturnType>;
1451
+ };
1452
+ getEvents: {
1453
+ [x: string]: (...parameters: [options?: {
1454
+ blockHash?: viem.Hash | undefined;
1455
+ strict?: boolean | undefined;
1456
+ fromBlock?: bigint | viem.BlockTag | undefined;
1457
+ toBlock?: bigint | viem.BlockTag | undefined;
1458
+ } | undefined] | [args?: readonly unknown[] | {
1459
+ [x: string]: unknown;
1460
+ address?: undefined;
1461
+ abi?: undefined;
1462
+ args?: undefined;
1463
+ eventName?: undefined;
1464
+ fromBlock?: undefined;
1465
+ onError?: undefined;
1466
+ onLogs?: undefined;
1467
+ strict?: undefined;
1468
+ poll?: undefined;
1469
+ batch?: undefined;
1470
+ pollingInterval?: undefined;
1471
+ } | undefined, options?: {
1472
+ blockHash?: viem.Hash | undefined;
1473
+ strict?: boolean | undefined;
1474
+ fromBlock?: bigint | viem.BlockTag | undefined;
1475
+ toBlock?: bigint | viem.BlockTag | undefined;
1476
+ } | undefined]) => Promise<viem.GetContractEventsReturnType<readonly any[], string>>;
1477
+ };
1478
+ watchEvent: {
1479
+ [x: string]: (...parameters: [options?: {
1480
+ batch?: boolean | undefined;
1481
+ pollingInterval?: number | undefined;
1482
+ strict?: boolean | undefined;
1483
+ fromBlock?: viem.BlockNumber<bigint> | undefined;
1484
+ onError?: ((error: Error) => void) | undefined;
1485
+ onLogs: viem.WatchContractEventOnLogsFn<readonly any[], string, undefined>;
1486
+ poll?: true | undefined;
1487
+ } | undefined] | [args: readonly unknown[] | {
1488
+ [x: string]: unknown;
1489
+ address?: undefined;
1490
+ abi?: undefined;
1491
+ args?: undefined;
1492
+ eventName?: undefined;
1493
+ fromBlock?: undefined;
1494
+ onError?: undefined;
1495
+ onLogs?: undefined;
1496
+ strict?: undefined;
1497
+ poll?: undefined;
1498
+ batch?: undefined;
1499
+ pollingInterval?: undefined;
1500
+ }, options?: {
1501
+ batch?: boolean | undefined;
1502
+ pollingInterval?: number | undefined;
1503
+ strict?: boolean | undefined;
1504
+ fromBlock?: viem.BlockNumber<bigint> | undefined;
1505
+ onError?: ((error: Error) => void) | undefined;
1506
+ onLogs: viem.WatchContractEventOnLogsFn<readonly any[], string, undefined>;
1507
+ poll?: true | undefined;
1508
+ } | undefined]) => viem.WatchContractEventReturnType;
1509
+ };
1510
+ address: `0x${string}`;
1511
+ abi: readonly any[];
1512
+ };
1513
+ klerosCoreSnapshotProxy: {
1514
+ read: {
1515
+ [x: string]: (...parameters: [options?: viem.Prettify<viem.UnionOmit<viem.ReadContractParameters<readonly any[], string, any[]>, "args" | "address" | "abi" | "functionName">> | undefined] | [args: readonly unknown[], options?: viem.Prettify<viem.UnionOmit<viem.ReadContractParameters<readonly any[], string, any[]>, "args" | "address" | "abi" | "functionName">> | undefined]) => Promise<viem.ReadContractReturnType>;
1516
+ };
1517
+ estimateGas: {
1518
+ [x: string]: (...parameters: [options: viem.Prettify<viem.UnionOmit<viem.EstimateContractGasParameters<readonly any[], string, any[], viem.Chain | undefined>, "args" | "address" | "abi" | "functionName">>] | [args: readonly unknown[], options: viem.Prettify<viem.UnionOmit<viem.EstimateContractGasParameters<readonly any[], string, any[], viem.Chain | undefined>, "args" | "address" | "abi" | "functionName">>]) => Promise<viem.EstimateContractGasReturnType>;
1519
+ };
1520
+ simulate: {
1521
+ [x: string]: <chainOverride extends viem.Chain | undefined = undefined, accountOverride extends viem.Account | viem.Address | undefined = undefined>(...parameters: [options?: Omit<viem.SimulateContractParameters<readonly any[], string, any[], viem.Chain | undefined, chainOverride, accountOverride>, "args" | "address" | "abi" | "functionName"> | undefined] | [args: readonly unknown[], options?: Omit<viem.SimulateContractParameters<readonly any[], string, any[], viem.Chain | undefined, chainOverride, accountOverride>, "args" | "address" | "abi" | "functionName"> | undefined]) => Promise<viem.SimulateContractReturnType>;
1522
+ };
1523
+ createEventFilter: {
1524
+ [x: string]: <strict extends boolean | undefined = undefined>(...parameters: [options?: ({
1525
+ fromBlock?: bigint | viem.BlockTag | undefined;
1526
+ toBlock?: bigint | viem.BlockTag | undefined;
1527
+ } & {
1528
+ strict?: strict | undefined;
1529
+ }) | undefined] | [args: readonly unknown[] | {
1530
+ [x: string]: unknown;
1531
+ address?: undefined;
1532
+ abi?: undefined;
1533
+ eventName?: undefined;
1534
+ fromBlock?: undefined;
1535
+ strict?: undefined;
1536
+ toBlock?: undefined;
1537
+ args?: undefined;
1538
+ }, options?: ({
1539
+ fromBlock?: bigint | viem.BlockTag | undefined;
1540
+ toBlock?: bigint | viem.BlockTag | undefined;
1541
+ } & {
1542
+ strict?: strict | undefined;
1543
+ }) | undefined]) => Promise<viem.CreateContractEventFilterReturnType>;
1544
+ };
1545
+ getEvents: {
1546
+ [x: string]: (...parameters: [options?: {
1547
+ blockHash?: viem.Hash | undefined;
1548
+ strict?: boolean | undefined;
1549
+ fromBlock?: bigint | viem.BlockTag | undefined;
1550
+ toBlock?: bigint | viem.BlockTag | undefined;
1551
+ } | undefined] | [args?: readonly unknown[] | {
1552
+ [x: string]: unknown;
1553
+ address?: undefined;
1554
+ abi?: undefined;
1555
+ args?: undefined;
1556
+ eventName?: undefined;
1557
+ fromBlock?: undefined;
1558
+ onError?: undefined;
1559
+ onLogs?: undefined;
1560
+ strict?: undefined;
1561
+ poll?: undefined;
1562
+ batch?: undefined;
1563
+ pollingInterval?: undefined;
1564
+ } | undefined, options?: {
1565
+ blockHash?: viem.Hash | undefined;
1566
+ strict?: boolean | undefined;
1567
+ fromBlock?: bigint | viem.BlockTag | undefined;
1568
+ toBlock?: bigint | viem.BlockTag | undefined;
1569
+ } | undefined]) => Promise<viem.GetContractEventsReturnType<readonly any[], string>>;
1570
+ };
1571
+ watchEvent: {
1572
+ [x: string]: (...parameters: [options?: {
1573
+ batch?: boolean | undefined;
1574
+ pollingInterval?: number | undefined;
1575
+ strict?: boolean | undefined;
1576
+ fromBlock?: viem.BlockNumber<bigint> | undefined;
1577
+ onError?: ((error: Error) => void) | undefined;
1578
+ onLogs: viem.WatchContractEventOnLogsFn<readonly any[], string, undefined>;
1579
+ poll?: true | undefined;
1580
+ } | undefined] | [args: readonly unknown[] | {
1581
+ [x: string]: unknown;
1582
+ address?: undefined;
1583
+ abi?: undefined;
1584
+ args?: undefined;
1585
+ eventName?: undefined;
1586
+ fromBlock?: undefined;
1587
+ onError?: undefined;
1588
+ onLogs?: undefined;
1589
+ strict?: undefined;
1590
+ poll?: undefined;
1591
+ batch?: undefined;
1592
+ pollingInterval?: undefined;
1593
+ }, options?: {
1594
+ batch?: boolean | undefined;
1595
+ pollingInterval?: number | undefined;
1596
+ strict?: boolean | undefined;
1597
+ fromBlock?: viem.BlockNumber<bigint> | undefined;
1598
+ onError?: ((error: Error) => void) | undefined;
1599
+ onLogs: viem.WatchContractEventOnLogsFn<readonly any[], string, undefined>;
1600
+ poll?: true | undefined;
1601
+ } | undefined]) => viem.WatchContractEventReturnType;
1602
+ };
1603
+ address: `0x${string}`;
1604
+ abi: readonly any[];
1605
+ };
1606
+ leaderboardOffset: {
1607
+ read: {
1608
+ [x: string]: (...parameters: [options?: viem.Prettify<viem.UnionOmit<viem.ReadContractParameters<readonly any[], string, any[]>, "args" | "address" | "abi" | "functionName">> | undefined] | [args: readonly unknown[], options?: viem.Prettify<viem.UnionOmit<viem.ReadContractParameters<readonly any[], string, any[]>, "args" | "address" | "abi" | "functionName">> | undefined]) => Promise<viem.ReadContractReturnType>;
1609
+ };
1610
+ estimateGas: {
1611
+ [x: string]: (...parameters: [options: viem.Prettify<viem.UnionOmit<viem.EstimateContractGasParameters<readonly any[], string, any[], viem.Chain | undefined>, "args" | "address" | "abi" | "functionName">>] | [args: readonly unknown[], options: viem.Prettify<viem.UnionOmit<viem.EstimateContractGasParameters<readonly any[], string, any[], viem.Chain | undefined>, "args" | "address" | "abi" | "functionName">>]) => Promise<viem.EstimateContractGasReturnType>;
1612
+ };
1613
+ simulate: {
1614
+ [x: string]: <chainOverride extends viem.Chain | undefined = undefined, accountOverride extends viem.Account | viem.Address | undefined = undefined>(...parameters: [options?: Omit<viem.SimulateContractParameters<readonly any[], string, any[], viem.Chain | undefined, chainOverride, accountOverride>, "args" | "address" | "abi" | "functionName"> | undefined] | [args: readonly unknown[], options?: Omit<viem.SimulateContractParameters<readonly any[], string, any[], viem.Chain | undefined, chainOverride, accountOverride>, "args" | "address" | "abi" | "functionName"> | undefined]) => Promise<viem.SimulateContractReturnType>;
1615
+ };
1616
+ createEventFilter: {
1617
+ [x: string]: <strict extends boolean | undefined = undefined>(...parameters: [options?: ({
1618
+ fromBlock?: bigint | viem.BlockTag | undefined;
1619
+ toBlock?: bigint | viem.BlockTag | undefined;
1620
+ } & {
1621
+ strict?: strict | undefined;
1622
+ }) | undefined] | [args: readonly unknown[] | {
1623
+ [x: string]: unknown;
1624
+ address?: undefined;
1625
+ abi?: undefined;
1626
+ eventName?: undefined;
1627
+ fromBlock?: undefined;
1628
+ strict?: undefined;
1629
+ toBlock?: undefined;
1630
+ args?: undefined;
1631
+ }, options?: ({
1632
+ fromBlock?: bigint | viem.BlockTag | undefined;
1633
+ toBlock?: bigint | viem.BlockTag | undefined;
1634
+ } & {
1635
+ strict?: strict | undefined;
1636
+ }) | undefined]) => Promise<viem.CreateContractEventFilterReturnType>;
1637
+ };
1638
+ getEvents: {
1639
+ [x: string]: (...parameters: [options?: {
1640
+ blockHash?: viem.Hash | undefined;
1641
+ strict?: boolean | undefined;
1642
+ fromBlock?: bigint | viem.BlockTag | undefined;
1643
+ toBlock?: bigint | viem.BlockTag | undefined;
1644
+ } | undefined] | [args?: readonly unknown[] | {
1645
+ [x: string]: unknown;
1646
+ address?: undefined;
1647
+ abi?: undefined;
1648
+ args?: undefined;
1649
+ eventName?: undefined;
1650
+ fromBlock?: undefined;
1651
+ onError?: undefined;
1652
+ onLogs?: undefined;
1653
+ strict?: undefined;
1654
+ poll?: undefined;
1655
+ batch?: undefined;
1656
+ pollingInterval?: undefined;
1657
+ } | undefined, options?: {
1658
+ blockHash?: viem.Hash | undefined;
1659
+ strict?: boolean | undefined;
1660
+ fromBlock?: bigint | viem.BlockTag | undefined;
1661
+ toBlock?: bigint | viem.BlockTag | undefined;
1662
+ } | undefined]) => Promise<viem.GetContractEventsReturnType<readonly any[], string>>;
1663
+ };
1664
+ watchEvent: {
1665
+ [x: string]: (...parameters: [options?: {
1666
+ batch?: boolean | undefined;
1667
+ pollingInterval?: number | undefined;
1668
+ strict?: boolean | undefined;
1669
+ fromBlock?: viem.BlockNumber<bigint> | undefined;
1670
+ onError?: ((error: Error) => void) | undefined;
1671
+ onLogs: viem.WatchContractEventOnLogsFn<readonly any[], string, undefined>;
1672
+ poll?: true | undefined;
1673
+ } | undefined] | [args: readonly unknown[] | {
1674
+ [x: string]: unknown;
1675
+ address?: undefined;
1676
+ abi?: undefined;
1677
+ args?: undefined;
1678
+ eventName?: undefined;
1679
+ fromBlock?: undefined;
1680
+ onError?: undefined;
1681
+ onLogs?: undefined;
1682
+ strict?: undefined;
1683
+ poll?: undefined;
1684
+ batch?: undefined;
1685
+ pollingInterval?: undefined;
1686
+ }, options?: {
1687
+ batch?: boolean | undefined;
1688
+ pollingInterval?: number | undefined;
1689
+ strict?: boolean | undefined;
1690
+ fromBlock?: viem.BlockNumber<bigint> | undefined;
1691
+ onError?: ((error: Error) => void) | undefined;
1692
+ onLogs: viem.WatchContractEventOnLogsFn<readonly any[], string, undefined>;
1693
+ poll?: true | undefined;
1694
+ } | undefined]) => viem.WatchContractEventReturnType;
1695
+ };
1696
+ address: `0x${string}`;
1697
+ abi: readonly any[];
1698
+ } | undefined;
1699
+ }>;
1700
+
1701
+ type KlerosVersion = "v1" | "v2";
1702
+ type SupportedChainId = "ethereum" | "gnosis" | "arbitrum-sepolia" | "sepolia";
1703
+ interface ChainConfig {
1704
+ id: SupportedChainId;
1705
+ chainId: number;
1706
+ viemChain: Chain;
1707
+ version: KlerosVersion;
1708
+ name: string;
1709
+ rpcUrl: string;
1710
+ subgraph: {
1711
+ core: string;
1712
+ drt?: string;
1713
+ };
1714
+ /** v2 deployment name — "devnet" | "university" | "testnet" | "mainnet". v2 chains only.
1715
+ * Support is gated by which CHAIN_CONFIGS entries actually set this (only "devnet" today) —
1716
+ * the wider upstream union does NOT imply testnet support (out of scope per v1.3 decision). */
1717
+ deployment?: DeploymentName;
1718
+ }
1719
+ declare const CHAIN_CONFIGS: Record<SupportedChainId, ChainConfig>;
1720
+ declare const DEFAULT_CHAIN: SupportedChainId;
1721
+ declare function resolveChainConfig(id: string): ChainConfig | undefined;
1722
+
1723
+ interface V1ContractInfo {
1724
+ name: string;
1725
+ proxyAddress: `0x${string}`;
1726
+ implementationAddress?: `0x${string}`;
1727
+ }
1728
+ /**
1729
+ * Static v1 contract addresses from DATA_SOURCES_V1.md.
1730
+ * v2 addresses are resolved at runtime via @kleros/kleros-v2-contracts.
1731
+ */
1732
+ declare const V1_CONTRACTS: Partial<Record<SupportedChainId, Record<string, V1ContractInfo>>>;
1733
+ /**
1734
+ * Look up a v1 contract by chain and name.
1735
+ */
1736
+ declare function getV1Contract(chainId: SupportedChainId, contractName: string): V1ContractInfo | undefined;
1737
+
1738
+ type V1ContractSource = {
1739
+ version: "v1";
1740
+ getContract: (name: string) => V1ContractInfo | undefined;
1741
+ };
1742
+ type V2ContractSource = {
1743
+ version: "v2";
1744
+ getContracts: (publicClient: PublicClient) => ReturnType<typeof getV2Contracts>;
1745
+ };
1746
+ type ContractSource = V1ContractSource | V2ContractSource;
1747
+ /**
1748
+ * Routes to the correct contract source based on ChainConfig.version.
1749
+ * v1 chains use static addresses from the registry.
1750
+ * v2 chains use @kleros/kleros-v2-contracts at runtime.
1751
+ */
1752
+ declare function getContractsByChain(config: ChainConfig): ContractSource;
1753
+
1754
+ type KlerosResult<T> = {
1755
+ success: true;
1756
+ data: T;
1757
+ } | {
1758
+ success: false;
1759
+ code: string;
1760
+ message: string;
1761
+ details: Record<string, unknown>;
1762
+ };
1763
+ declare function ok<T>(data: T): KlerosResult<T>;
1764
+ declare function error(code: string, message: string, details?: Record<string, unknown>): KlerosResult<never>;
1765
+
1766
+ /**
1767
+ * Fetch JSON from an HTTP endpoint.
1768
+ *
1769
+ * Generic HTTP client for REST API calls, primarily used for
1770
+ * v1 Netlify APIs (metaevidence, vote justifications at kleros-api.netlify.app).
1771
+ *
1772
+ * @param url - Full URL to fetch
1773
+ * @param options - Optional timeout in ms
1774
+ * @returns KlerosResult with parsed JSON data or API_ERROR/TIMEOUT_ERROR
1775
+ */
1776
+ declare function fetchJson<T>(url: string, options?: {
1777
+ timeout?: number;
1778
+ }): Promise<KlerosResult<T>>;
1779
+
1780
+ /**
1781
+ * Fetch content from IPFS via gateway.
1782
+ *
1783
+ * Accepts URIs in multiple formats:
1784
+ * - `ipfs://QmHash...` (standard IPFS URI)
1785
+ * - `/ipfs/QmHash...` (path-style)
1786
+ * - `QmHash...` (bare CID)
1787
+ *
1788
+ * Results are LRU-cached per gateway-scoped normalized CID, and concurrent
1789
+ * identical in-flight calls share one network request (D-26).
1790
+ *
1791
+ * @param uri - IPFS URI, path, or bare CID
1792
+ * @param options - Optional gateway URL and timeout in ms
1793
+ * @returns KlerosResult with parsed JSON or raw text, or IPFS_ERROR/TIMEOUT_ERROR/IPFS_UNAVAILABLE
1794
+ */
1795
+ declare function fetchIpfs<T = unknown>(uri: string, options?: {
1796
+ gateway?: string;
1797
+ timeout?: number;
1798
+ }): Promise<KlerosResult<T>>;
1799
+
1800
+ /**
1801
+ * Create a viem PublicClient for read-only chain interaction.
1802
+ *
1803
+ * Uses the chain's configured RPC URL (with env var override support
1804
+ * via getRpcUrl) and the appropriate viem Chain definition.
1805
+ *
1806
+ * @param config - ChainConfig with viemChain and rpcUrl
1807
+ * @returns viem PublicClient configured for the target chain
1808
+ */
1809
+ declare function createKlerosClient(config: ChainConfig): PublicClient;
1810
+
1811
+ /**
1812
+ * Execute a single GraphQL query against a subgraph endpoint.
1813
+ *
1814
+ * @param url - Subgraph endpoint URL
1815
+ * @param query - GraphQL query string
1816
+ * @param variables - Optional query variables
1817
+ * @returns KlerosResult with query data or SUBGRAPH_ERROR
1818
+ */
1819
+ declare function querySubgraph<T>(url: string, query: string, variables?: Record<string, unknown>): Promise<KlerosResult<T>>;
1820
+ /**
1821
+ * Execute a paginated GraphQL query using id_gt cursor pattern.
1822
+ *
1823
+ * Queries MUST use the following pattern in their GraphQL:
1824
+ * ```graphql
1825
+ * query($first: Int!, $lastId: String!) {
1826
+ * entities(
1827
+ * first: $first,
1828
+ * where: { id_gt: $lastId },
1829
+ * orderBy: id,
1830
+ * orderDirection: asc
1831
+ * ) { id ... }
1832
+ * }
1833
+ * ```
1834
+ *
1835
+ * Uses `id_gt` cursor (NOT `skip`) for efficient subgraph pagination.
1836
+ * The `skip` pattern degrades at high offsets; `id_gt` is O(1) per page.
1837
+ *
1838
+ * @param url - Subgraph endpoint URL
1839
+ * @param query - GraphQL query with $first and $lastId variables
1840
+ * @param entityName - Top-level response key containing the entity array
1841
+ * @param variables - Additional query variables (merged with pagination vars)
1842
+ * @param pageSize - Entities per page (default 100, max 1000 for The Graph)
1843
+ * @returns KlerosResult with all accumulated entities or SUBGRAPH_ERROR
1844
+ */
1845
+ declare function querySubgraphPaginated<T extends {
1846
+ id: string;
1847
+ }>(url: string, query: string, entityName: string, variables?: Record<string, unknown>, pageSize?: number): Promise<KlerosResult<T[]>>;
1848
+
1849
+ /** Infrastructure-layer error codes (source-based) */
1850
+ declare const InfraErrorCode: {
1851
+ readonly SUBGRAPH_ERROR: "SUBGRAPH_ERROR";
1852
+ readonly IPFS_ERROR: "IPFS_ERROR";
1853
+ readonly RPC_ERROR: "RPC_ERROR";
1854
+ readonly API_ERROR: "API_ERROR";
1855
+ readonly TIMEOUT_ERROR: "TIMEOUT_ERROR";
1856
+ readonly BODY_TOO_LARGE: "BODY_TOO_LARGE";
1857
+ readonly NETWORK_ERROR: "NETWORK_ERROR";
1858
+ readonly WALLET_NOT_CONFIGURED: "WALLET_NOT_CONFIGURED";
1859
+ readonly IPFS_UNAVAILABLE: "IPFS_UNAVAILABLE";
1860
+ };
1861
+ type InfraErrorCode = (typeof InfraErrorCode)[keyof typeof InfraErrorCode];
1862
+ /** Domain-layer error codes (semantic) */
1863
+ declare const DomainErrorCode: {
1864
+ readonly DISPUTE_NOT_FOUND: "DISPUTE_NOT_FOUND";
1865
+ readonly COURT_NOT_FOUND: "COURT_NOT_FOUND";
1866
+ readonly CHAIN_NOT_SUPPORTED: "CHAIN_NOT_SUPPORTED";
1867
+ readonly CONFIG_NOT_FOUND: "CONFIG_NOT_FOUND";
1868
+ readonly CONTRACT_NOT_FOUND: "CONTRACT_NOT_FOUND";
1869
+ readonly JUROR_NOT_FOUND: "JUROR_NOT_FOUND";
1870
+ readonly EVIDENCE_NOT_FOUND: "EVIDENCE_NOT_FOUND";
1871
+ readonly STAKE_NOT_FOUND: "STAKE_NOT_FOUND";
1872
+ readonly INVALID_ADDRESS: "INVALID_ADDRESS";
1873
+ readonly INVALID_STATUS: "INVALID_STATUS";
1874
+ readonly INVALID_LIMIT: "INVALID_LIMIT";
1875
+ readonly INVALID_ORDER_BY: "INVALID_ORDER_BY";
1876
+ readonly INVALID_ORDER_DIRECTION: "INVALID_ORDER_DIRECTION";
1877
+ readonly INVALID_CURSOR: "INVALID_CURSOR";
1878
+ readonly CHAIN_REQUIRED_FOR_COURT_FILTER: "CHAIN_REQUIRED_FOR_COURT_FILTER";
1879
+ readonly CHAIN_REQUIRED: "CHAIN_REQUIRED";
1880
+ readonly INVALID_COURT_ID: "INVALID_COURT_ID";
1881
+ readonly INVALID_CONFIG_KEY: "INVALID_CONFIG_KEY";
1882
+ readonly META_EVIDENCE_NOT_FOUND: "META_EVIDENCE_NOT_FOUND";
1883
+ readonly META_EVIDENCE_PARSE_ERROR: "META_EVIDENCE_PARSE_ERROR";
1884
+ readonly REALITY_DISPUTE_QUESTION_NOT_FOUND: "REALITY_DISPUTE_QUESTION_NOT_FOUND";
1885
+ readonly REALITY_QUESTION_NOT_FOUND: "REALITY_QUESTION_NOT_FOUND";
1886
+ readonly REALITY_TEMPLATE_NOT_FOUND: "REALITY_TEMPLATE_NOT_FOUND";
1887
+ readonly REALITY_HANDLER_FAILURE: "REALITY_HANDLER_FAILURE";
1888
+ readonly RATE_LIMITED: "RATE_LIMITED";
1889
+ readonly GITHUB_TOKEN_MISSING: "GITHUB_TOKEN_MISSING";
1890
+ readonly REPORT_WRITE_FAILED: "REPORT_WRITE_FAILED";
1891
+ readonly DISPUTE_ENRICHMENT_FAILED: "DISPUTE_ENRICHMENT_FAILED";
1892
+ readonly DEPLOYMENT_NOT_CONFIGURED: "DEPLOYMENT_NOT_CONFIGURED";
1893
+ };
1894
+ type DomainErrorCode = (typeof DomainErrorCode)[keyof typeof DomainErrorCode];
1895
+
1896
+ /**
1897
+ * Resolves subgraph URL for a chain, checking env var override first.
1898
+ * Env var pattern: KLEROS_SUBGRAPH_URL_{CHAIN_ID}_{TYPE}
1899
+ * e.g. KLEROS_SUBGRAPH_URL_ETHEREUM_CORE, KLEROS_SUBGRAPH_URL_ARBITRUM_SEPOLIA_DRT
1900
+ */
1901
+ declare function getSubgraphUrl(chain: ChainConfig, type: "core" | "drt"): string | undefined;
1902
+ /**
1903
+ * Resolves RPC URL for a chain, checking env var override first.
1904
+ * Env var pattern: KLEROS_RPC_URL_{CHAIN_ID}
1905
+ * e.g. KLEROS_RPC_URL_ETHEREUM, KLEROS_RPC_URL_ARBITRUM_SEPOLIA
1906
+ */
1907
+ declare function getRpcUrl(chain: ChainConfig): string;
1908
+
1909
+ export { CHAIN_CONFIGS, type ChainConfig, type ContractSource, DEFAULT_CHAIN, DomainErrorCode, InfraErrorCode, type KlerosResult, type KlerosVersion, type SupportedChainId, type V1ContractInfo, type V1ContractSource, V1_CONTRACTS, type V2ContractSource, createKlerosClient, error, fetchIpfs, fetchJson, getContractsByChain, getRpcUrl, getSubgraphUrl, getV1Contract, getV2Contracts, ok, querySubgraph, querySubgraphPaginated, resolveChainConfig };