@polygonlabs/staker-pool-allocations-client 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.
Files changed (103) hide show
  1. package/MIGRATION.md +5 -0
  2. package/dist/generated/@tanstack/react-query.gen.d.ts +796 -0
  3. package/dist/generated/@tanstack/react-query.gen.d.ts.map +1 -0
  4. package/dist/generated/@tanstack/react-query.gen.js +283 -0
  5. package/dist/generated/@tanstack/react-query.gen.js.map +1 -0
  6. package/dist/generated/client/client.gen.d.ts +3 -0
  7. package/dist/generated/client/client.gen.d.ts.map +1 -0
  8. package/dist/generated/client/client.gen.js +236 -0
  9. package/dist/generated/client/client.gen.js.map +1 -0
  10. package/dist/generated/client/index.d.ts +9 -0
  11. package/dist/generated/client/index.d.ts.map +1 -0
  12. package/dist/generated/client/index.js +7 -0
  13. package/dist/generated/client/index.js.map +1 -0
  14. package/dist/generated/client/types.gen.d.ts +118 -0
  15. package/dist/generated/client/types.gen.d.ts.map +1 -0
  16. package/dist/generated/client/types.gen.js +3 -0
  17. package/dist/generated/client/types.gen.js.map +1 -0
  18. package/dist/generated/client/utils.gen.d.ts +34 -0
  19. package/dist/generated/client/utils.gen.d.ts.map +1 -0
  20. package/dist/generated/client/utils.gen.js +229 -0
  21. package/dist/generated/client/utils.gen.js.map +1 -0
  22. package/dist/generated/client.gen.d.ts +13 -0
  23. package/dist/generated/client.gen.d.ts.map +1 -0
  24. package/dist/generated/client.gen.js +4 -0
  25. package/dist/generated/client.gen.js.map +1 -0
  26. package/dist/generated/core/auth.gen.d.ts +19 -0
  27. package/dist/generated/core/auth.gen.d.ts.map +1 -0
  28. package/dist/generated/core/auth.gen.js +15 -0
  29. package/dist/generated/core/auth.gen.js.map +1 -0
  30. package/dist/generated/core/bodySerializer.gen.d.ts +26 -0
  31. package/dist/generated/core/bodySerializer.gen.d.ts.map +1 -0
  32. package/dist/generated/core/bodySerializer.gen.js +58 -0
  33. package/dist/generated/core/bodySerializer.gen.js.map +1 -0
  34. package/dist/generated/core/params.gen.d.ts +44 -0
  35. package/dist/generated/core/params.gen.d.ts.map +1 -0
  36. package/dist/generated/core/params.gen.js +101 -0
  37. package/dist/generated/core/params.gen.js.map +1 -0
  38. package/dist/generated/core/pathSerializer.gen.d.ts +34 -0
  39. package/dist/generated/core/pathSerializer.gen.d.ts.map +1 -0
  40. package/dist/generated/core/pathSerializer.gen.js +107 -0
  41. package/dist/generated/core/pathSerializer.gen.js.map +1 -0
  42. package/dist/generated/core/queryKeySerializer.gen.d.ts +19 -0
  43. package/dist/generated/core/queryKeySerializer.gen.d.ts.map +1 -0
  44. package/dist/generated/core/queryKeySerializer.gen.js +93 -0
  45. package/dist/generated/core/queryKeySerializer.gen.js.map +1 -0
  46. package/dist/generated/core/serverSentEvents.gen.d.ts +72 -0
  47. package/dist/generated/core/serverSentEvents.gen.d.ts.map +1 -0
  48. package/dist/generated/core/serverSentEvents.gen.js +134 -0
  49. package/dist/generated/core/serverSentEvents.gen.js.map +1 -0
  50. package/dist/generated/core/types.gen.d.ts +79 -0
  51. package/dist/generated/core/types.gen.d.ts.map +1 -0
  52. package/dist/generated/core/types.gen.js +3 -0
  53. package/dist/generated/core/types.gen.js.map +1 -0
  54. package/dist/generated/core/utils.gen.d.ts +20 -0
  55. package/dist/generated/core/utils.gen.d.ts.map +1 -0
  56. package/dist/generated/core/utils.gen.js +88 -0
  57. package/dist/generated/core/utils.gen.js.map +1 -0
  58. package/dist/generated/index.d.ts +4 -0
  59. package/dist/generated/index.d.ts.map +1 -0
  60. package/dist/generated/index.js +5 -0
  61. package/dist/generated/index.js.map +1 -0
  62. package/dist/generated/registry-validator.gen.d.ts +168 -0
  63. package/dist/generated/registry-validator.gen.d.ts.map +1 -0
  64. package/dist/generated/registry-validator.gen.js +402 -0
  65. package/dist/generated/registry-validator.gen.js.map +1 -0
  66. package/dist/generated/sdk.gen.d.ts +71 -0
  67. package/dist/generated/sdk.gen.d.ts.map +1 -0
  68. package/dist/generated/sdk.gen.js +98 -0
  69. package/dist/generated/sdk.gen.js.map +1 -0
  70. package/dist/generated/types.gen.d.ts +435 -0
  71. package/dist/generated/types.gen.d.ts.map +1 -0
  72. package/dist/generated/types.gen.js +3 -0
  73. package/dist/generated/types.gen.js.map +1 -0
  74. package/dist/index.d.ts +2 -0
  75. package/dist/index.d.ts.map +1 -0
  76. package/dist/index.js +33 -0
  77. package/dist/index.js.map +1 -0
  78. package/dist/react.d.ts +2 -0
  79. package/dist/react.d.ts.map +1 -0
  80. package/dist/react.js +18 -0
  81. package/dist/react.js.map +1 -0
  82. package/dist/tsconfig.lib.tsbuildinfo +1 -0
  83. package/package.json +68 -0
  84. package/src/generated/@tanstack/react-query.gen.ts +322 -0
  85. package/src/generated/client/client.gen.ts +298 -0
  86. package/src/generated/client/index.ts +25 -0
  87. package/src/generated/client/types.gen.ts +214 -0
  88. package/src/generated/client/utils.gen.ts +316 -0
  89. package/src/generated/client.gen.ts +16 -0
  90. package/src/generated/core/auth.gen.ts +41 -0
  91. package/src/generated/core/bodySerializer.gen.ts +82 -0
  92. package/src/generated/core/params.gen.ts +169 -0
  93. package/src/generated/core/pathSerializer.gen.ts +171 -0
  94. package/src/generated/core/queryKeySerializer.gen.ts +117 -0
  95. package/src/generated/core/serverSentEvents.gen.ts +243 -0
  96. package/src/generated/core/types.gen.ts +104 -0
  97. package/src/generated/core/utils.gen.ts +140 -0
  98. package/src/generated/index.ts +5 -0
  99. package/src/generated/registry-validator.gen.ts +607 -0
  100. package/src/generated/sdk.gen.ts +124 -0
  101. package/src/generated/types.gen.ts +503 -0
  102. package/src/index.ts +68 -0
  103. package/src/react.ts +42 -0
@@ -0,0 +1,796 @@
1
+ import { type InfiniteData } from '@tanstack/react-query';
2
+ import type { GetAddressAllocationHistoryError, GetAllocationError, GetDistributionError, GetProofError, GetUnclaimedProofsError, ListExcludedAllocationsError } from '../registry-validator.gen.js';
3
+ import { type Options } from '../sdk.gen.js';
4
+ import type { GetAddressAllocationHistoryData, GetAllocationData, GetDistributionData, GetHealthCheckData, GetProofData, GetReadinessData, GetUnclaimedProofsData, ListAllocationsData, ListDistributionsData, ListExcludedAllocationsData } from '../types.gen.js';
5
+ export type QueryKey<TOptions extends Options> = [
6
+ Pick<TOptions, 'baseUrl' | 'body' | 'headers' | 'path' | 'query'> & {
7
+ _id: string;
8
+ _infinite?: boolean;
9
+ tags?: ReadonlyArray<string>;
10
+ }
11
+ ];
12
+ export declare const getHealthCheckQueryKey: (options?: Options<GetHealthCheckData>) => [Pick<Options<GetHealthCheckData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
13
+ _id: string;
14
+ _infinite?: boolean;
15
+ tags?: ReadonlyArray<string>;
16
+ }];
17
+ /**
18
+ * Liveness check (K8s probe)
19
+ */
20
+ export declare const getHealthCheckOptions: (options?: Options<GetHealthCheckData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
21
+ status: "ok";
22
+ }, {
23
+ error: true;
24
+ message: string;
25
+ info?: Record<string, unknown> | undefined;
26
+ }, {
27
+ status: "ok";
28
+ }, [Pick<Options<GetHealthCheckData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
29
+ _id: string;
30
+ _infinite?: boolean;
31
+ tags?: ReadonlyArray<string>;
32
+ }]>, "queryFn"> & {
33
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
34
+ status: "ok";
35
+ }, [Pick<Options<GetHealthCheckData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
36
+ _id: string;
37
+ _infinite?: boolean;
38
+ tags?: ReadonlyArray<string>;
39
+ }], never> | undefined;
40
+ } & {
41
+ queryKey: [Pick<Options<GetHealthCheckData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
42
+ _id: string;
43
+ _infinite?: boolean;
44
+ tags?: ReadonlyArray<string>;
45
+ }] & {
46
+ [dataTagSymbol]: {
47
+ status: "ok";
48
+ };
49
+ [dataTagErrorSymbol]: {
50
+ error: true;
51
+ message: string;
52
+ info?: Record<string, unknown> | undefined;
53
+ };
54
+ };
55
+ };
56
+ export declare const getReadinessQueryKey: (options?: Options<GetReadinessData>) => [Pick<Options<GetReadinessData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
57
+ _id: string;
58
+ _infinite?: boolean;
59
+ tags?: ReadonlyArray<string>;
60
+ }];
61
+ /**
62
+ * Readiness check
63
+ *
64
+ * Distinguishes "fully ready" from "partially degraded but still serving". Currently a 200 stub — the real DB + subgraph reachability probe is outstanding work.
65
+ */
66
+ export declare const getReadinessOptions: (options?: Options<GetReadinessData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
67
+ status: "ok";
68
+ }, {
69
+ error: true;
70
+ message: string;
71
+ info?: Record<string, unknown> | undefined;
72
+ }, {
73
+ status: "ok";
74
+ }, [Pick<Options<GetReadinessData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
75
+ _id: string;
76
+ _infinite?: boolean;
77
+ tags?: ReadonlyArray<string>;
78
+ }]>, "queryFn"> & {
79
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
80
+ status: "ok";
81
+ }, [Pick<Options<GetReadinessData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
82
+ _id: string;
83
+ _infinite?: boolean;
84
+ tags?: ReadonlyArray<string>;
85
+ }], never> | undefined;
86
+ } & {
87
+ queryKey: [Pick<Options<GetReadinessData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
88
+ _id: string;
89
+ _infinite?: boolean;
90
+ tags?: ReadonlyArray<string>;
91
+ }] & {
92
+ [dataTagSymbol]: {
93
+ status: "ok";
94
+ };
95
+ [dataTagErrorSymbol]: {
96
+ error: true;
97
+ message: string;
98
+ info?: Record<string, unknown> | undefined;
99
+ };
100
+ };
101
+ };
102
+ export declare const listDistributionsQueryKey: (options: Options<ListDistributionsData>) => [Pick<Options<ListDistributionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
103
+ _id: string;
104
+ _infinite?: boolean;
105
+ tags?: ReadonlyArray<string>;
106
+ }];
107
+ /**
108
+ * List completed distributions
109
+ *
110
+ * Paginated list of completed distributions, oldest first by id (e.g. `2026-04`). Non-completed rows are not surfaced on the public API.
111
+ */
112
+ export declare const listDistributionsOptions: (options: Options<ListDistributionsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
113
+ items: {
114
+ distributionId: string;
115
+ status: "pending" | "running" | "completed" | "failed";
116
+ startPoSBlock: string;
117
+ endPoSBlock: string;
118
+ merkleRoot: string | null;
119
+ totalAllocated: string | null;
120
+ completedAt: string | null;
121
+ }[];
122
+ nextCursor: string | null;
123
+ }, {
124
+ error: true;
125
+ message: string;
126
+ info?: Record<string, unknown> | undefined;
127
+ }, {
128
+ items: {
129
+ distributionId: string;
130
+ status: "pending" | "running" | "completed" | "failed";
131
+ startPoSBlock: string;
132
+ endPoSBlock: string;
133
+ merkleRoot: string | null;
134
+ totalAllocated: string | null;
135
+ completedAt: string | null;
136
+ }[];
137
+ nextCursor: string | null;
138
+ }, [Pick<Options<ListDistributionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
139
+ _id: string;
140
+ _infinite?: boolean;
141
+ tags?: ReadonlyArray<string>;
142
+ }]>, "queryFn"> & {
143
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
144
+ items: {
145
+ distributionId: string;
146
+ status: "pending" | "running" | "completed" | "failed";
147
+ startPoSBlock: string;
148
+ endPoSBlock: string;
149
+ merkleRoot: string | null;
150
+ totalAllocated: string | null;
151
+ completedAt: string | null;
152
+ }[];
153
+ nextCursor: string | null;
154
+ }, [Pick<Options<ListDistributionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
155
+ _id: string;
156
+ _infinite?: boolean;
157
+ tags?: ReadonlyArray<string>;
158
+ }], never> | undefined;
159
+ } & {
160
+ queryKey: [Pick<Options<ListDistributionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
161
+ _id: string;
162
+ _infinite?: boolean;
163
+ tags?: ReadonlyArray<string>;
164
+ }] & {
165
+ [dataTagSymbol]: {
166
+ items: {
167
+ distributionId: string;
168
+ status: "pending" | "running" | "completed" | "failed";
169
+ startPoSBlock: string;
170
+ endPoSBlock: string;
171
+ merkleRoot: string | null;
172
+ totalAllocated: string | null;
173
+ completedAt: string | null;
174
+ }[];
175
+ nextCursor: string | null;
176
+ };
177
+ [dataTagErrorSymbol]: {
178
+ error: true;
179
+ message: string;
180
+ info?: Record<string, unknown> | undefined;
181
+ };
182
+ };
183
+ };
184
+ export declare const listDistributionsInfiniteQueryKey: (options: Options<ListDistributionsData>) => QueryKey<Options<ListDistributionsData>>;
185
+ /**
186
+ * List completed distributions
187
+ *
188
+ * Paginated list of completed distributions, oldest first by id (e.g. `2026-04`). Non-completed rows are not surfaced on the public API.
189
+ */
190
+ export declare const listDistributionsInfiniteOptions: (options: Options<ListDistributionsData>) => import("@tanstack/react-query").UseInfiniteQueryOptions<{
191
+ items: {
192
+ distributionId: string;
193
+ status: "pending" | "running" | "completed" | "failed";
194
+ startPoSBlock: string;
195
+ endPoSBlock: string;
196
+ merkleRoot: string | null;
197
+ totalAllocated: string | null;
198
+ completedAt: string | null;
199
+ }[];
200
+ nextCursor: string | null;
201
+ }, {
202
+ error: true;
203
+ message: string;
204
+ info?: Record<string, unknown> | undefined;
205
+ }, InfiniteData<{
206
+ items: {
207
+ distributionId: string;
208
+ status: "pending" | "running" | "completed" | "failed";
209
+ startPoSBlock: string;
210
+ endPoSBlock: string;
211
+ merkleRoot: string | null;
212
+ totalAllocated: string | null;
213
+ completedAt: string | null;
214
+ }[];
215
+ nextCursor: string | null;
216
+ }, unknown>, QueryKey<Options<ListDistributionsData>>, string | Pick<Pick<Options<ListDistributionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
217
+ _id: string;
218
+ _infinite?: boolean;
219
+ tags?: ReadonlyArray<string>;
220
+ }, "query" | "body" | "headers" | "path">> & {
221
+ initialData: InfiniteData<{
222
+ items: {
223
+ distributionId: string;
224
+ status: "pending" | "running" | "completed" | "failed";
225
+ startPoSBlock: string;
226
+ endPoSBlock: string;
227
+ merkleRoot: string | null;
228
+ totalAllocated: string | null;
229
+ completedAt: string | null;
230
+ }[];
231
+ nextCursor: string | null;
232
+ }, string | Pick<Pick<Options<ListDistributionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
233
+ _id: string;
234
+ _infinite?: boolean;
235
+ tags?: ReadonlyArray<string>;
236
+ }, "query" | "body" | "headers" | "path">> | (() => InfiniteData<{
237
+ items: {
238
+ distributionId: string;
239
+ status: "pending" | "running" | "completed" | "failed";
240
+ startPoSBlock: string;
241
+ endPoSBlock: string;
242
+ merkleRoot: string | null;
243
+ totalAllocated: string | null;
244
+ completedAt: string | null;
245
+ }[];
246
+ nextCursor: string | null;
247
+ }, string | Pick<Pick<Options<ListDistributionsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
248
+ _id: string;
249
+ _infinite?: boolean;
250
+ tags?: ReadonlyArray<string>;
251
+ }, "query" | "body" | "headers" | "path">>) | undefined;
252
+ } & {
253
+ queryKey: QueryKey<Options<ListDistributionsData>> & {
254
+ [dataTagSymbol]: InfiniteData<{
255
+ items: {
256
+ distributionId: string;
257
+ status: "pending" | "running" | "completed" | "failed";
258
+ startPoSBlock: string;
259
+ endPoSBlock: string;
260
+ merkleRoot: string | null;
261
+ totalAllocated: string | null;
262
+ completedAt: string | null;
263
+ }[];
264
+ nextCursor: string | null;
265
+ }, unknown>;
266
+ [dataTagErrorSymbol]: {
267
+ error: true;
268
+ message: string;
269
+ info?: Record<string, unknown> | undefined;
270
+ };
271
+ };
272
+ };
273
+ export declare const getDistributionQueryKey: (options: Options<GetDistributionData>) => [Pick<Options<GetDistributionData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
274
+ _id: string;
275
+ _infinite?: boolean;
276
+ tags?: ReadonlyArray<string>;
277
+ }];
278
+ /**
279
+ * Get a single completed distribution
280
+ */
281
+ export declare const getDistributionOptions: (options: Options<GetDistributionData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
282
+ distributionId: string;
283
+ status: "pending" | "running" | "completed" | "failed";
284
+ startPoSBlock: string;
285
+ endPoSBlock: string;
286
+ merkleRoot: string | null;
287
+ totalAllocated: string | null;
288
+ completedAt: string | null;
289
+ checkpointCount: number;
290
+ polUsdPrice: string | null;
291
+ maxClaimableUsdThreshold: string | null;
292
+ inputsHash: string | null;
293
+ posStakingSubgraphBlock: string | null;
294
+ posStakingSubgraphHash: string | null;
295
+ posCheckpointsSubgraphBlock: string | null;
296
+ posCheckpointsSubgraphHash: string | null;
297
+ posPriorityFeesSubgraphBlock: string | null;
298
+ posPriorityFeesSubgraphHash: string | null;
299
+ }, GetDistributionError, {
300
+ distributionId: string;
301
+ status: "pending" | "running" | "completed" | "failed";
302
+ startPoSBlock: string;
303
+ endPoSBlock: string;
304
+ merkleRoot: string | null;
305
+ totalAllocated: string | null;
306
+ completedAt: string | null;
307
+ checkpointCount: number;
308
+ polUsdPrice: string | null;
309
+ maxClaimableUsdThreshold: string | null;
310
+ inputsHash: string | null;
311
+ posStakingSubgraphBlock: string | null;
312
+ posStakingSubgraphHash: string | null;
313
+ posCheckpointsSubgraphBlock: string | null;
314
+ posCheckpointsSubgraphHash: string | null;
315
+ posPriorityFeesSubgraphBlock: string | null;
316
+ posPriorityFeesSubgraphHash: string | null;
317
+ }, [Pick<Options<GetDistributionData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
318
+ _id: string;
319
+ _infinite?: boolean;
320
+ tags?: ReadonlyArray<string>;
321
+ }]>, "queryFn"> & {
322
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
323
+ distributionId: string;
324
+ status: "pending" | "running" | "completed" | "failed";
325
+ startPoSBlock: string;
326
+ endPoSBlock: string;
327
+ merkleRoot: string | null;
328
+ totalAllocated: string | null;
329
+ completedAt: string | null;
330
+ checkpointCount: number;
331
+ polUsdPrice: string | null;
332
+ maxClaimableUsdThreshold: string | null;
333
+ inputsHash: string | null;
334
+ posStakingSubgraphBlock: string | null;
335
+ posStakingSubgraphHash: string | null;
336
+ posCheckpointsSubgraphBlock: string | null;
337
+ posCheckpointsSubgraphHash: string | null;
338
+ posPriorityFeesSubgraphBlock: string | null;
339
+ posPriorityFeesSubgraphHash: string | null;
340
+ }, [Pick<Options<GetDistributionData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
341
+ _id: string;
342
+ _infinite?: boolean;
343
+ tags?: ReadonlyArray<string>;
344
+ }], never> | undefined;
345
+ } & {
346
+ queryKey: [Pick<Options<GetDistributionData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
347
+ _id: string;
348
+ _infinite?: boolean;
349
+ tags?: ReadonlyArray<string>;
350
+ }] & {
351
+ [dataTagSymbol]: {
352
+ distributionId: string;
353
+ status: "pending" | "running" | "completed" | "failed";
354
+ startPoSBlock: string;
355
+ endPoSBlock: string;
356
+ merkleRoot: string | null;
357
+ totalAllocated: string | null;
358
+ completedAt: string | null;
359
+ checkpointCount: number;
360
+ polUsdPrice: string | null;
361
+ maxClaimableUsdThreshold: string | null;
362
+ inputsHash: string | null;
363
+ posStakingSubgraphBlock: string | null;
364
+ posStakingSubgraphHash: string | null;
365
+ posCheckpointsSubgraphBlock: string | null;
366
+ posCheckpointsSubgraphHash: string | null;
367
+ posPriorityFeesSubgraphBlock: string | null;
368
+ posPriorityFeesSubgraphHash: string | null;
369
+ };
370
+ [dataTagErrorSymbol]: GetDistributionError;
371
+ };
372
+ };
373
+ export declare const listAllocationsQueryKey: (options: Options<ListAllocationsData>) => [Pick<Options<ListAllocationsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
374
+ _id: string;
375
+ _infinite?: boolean;
376
+ tags?: ReadonlyArray<string>;
377
+ }];
378
+ /**
379
+ * List allocations for a completed distribution
380
+ *
381
+ * Paginated by `leafIndex` ascending.
382
+ */
383
+ export declare const listAllocationsOptions: (options: Options<ListAllocationsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
384
+ items: {
385
+ address: string;
386
+ amount: string;
387
+ leafIndex: number | null;
388
+ }[];
389
+ nextCursor: string | null;
390
+ }, {
391
+ error: true;
392
+ message: string;
393
+ info?: Record<string, unknown> | undefined;
394
+ }, {
395
+ items: {
396
+ address: string;
397
+ amount: string;
398
+ leafIndex: number | null;
399
+ }[];
400
+ nextCursor: string | null;
401
+ }, [Pick<Options<ListAllocationsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
402
+ _id: string;
403
+ _infinite?: boolean;
404
+ tags?: ReadonlyArray<string>;
405
+ }]>, "queryFn"> & {
406
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
407
+ items: {
408
+ address: string;
409
+ amount: string;
410
+ leafIndex: number | null;
411
+ }[];
412
+ nextCursor: string | null;
413
+ }, [Pick<Options<ListAllocationsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
414
+ _id: string;
415
+ _infinite?: boolean;
416
+ tags?: ReadonlyArray<string>;
417
+ }], never> | undefined;
418
+ } & {
419
+ queryKey: [Pick<Options<ListAllocationsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
420
+ _id: string;
421
+ _infinite?: boolean;
422
+ tags?: ReadonlyArray<string>;
423
+ }] & {
424
+ [dataTagSymbol]: {
425
+ items: {
426
+ address: string;
427
+ amount: string;
428
+ leafIndex: number | null;
429
+ }[];
430
+ nextCursor: string | null;
431
+ };
432
+ [dataTagErrorSymbol]: {
433
+ error: true;
434
+ message: string;
435
+ info?: Record<string, unknown> | undefined;
436
+ };
437
+ };
438
+ };
439
+ export declare const listAllocationsInfiniteQueryKey: (options: Options<ListAllocationsData>) => QueryKey<Options<ListAllocationsData>>;
440
+ /**
441
+ * List allocations for a completed distribution
442
+ *
443
+ * Paginated by `leafIndex` ascending.
444
+ */
445
+ export declare const listAllocationsInfiniteOptions: (options: Options<ListAllocationsData>) => import("@tanstack/react-query").UseInfiniteQueryOptions<{
446
+ items: {
447
+ address: string;
448
+ amount: string;
449
+ leafIndex: number | null;
450
+ }[];
451
+ nextCursor: string | null;
452
+ }, {
453
+ error: true;
454
+ message: string;
455
+ info?: Record<string, unknown> | undefined;
456
+ }, InfiniteData<{
457
+ items: {
458
+ address: string;
459
+ amount: string;
460
+ leafIndex: number | null;
461
+ }[];
462
+ nextCursor: string | null;
463
+ }, unknown>, QueryKey<Options<ListAllocationsData>>, string | Pick<Pick<Options<ListAllocationsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
464
+ _id: string;
465
+ _infinite?: boolean;
466
+ tags?: ReadonlyArray<string>;
467
+ }, "query" | "body" | "headers" | "path">> & {
468
+ initialData: InfiniteData<{
469
+ items: {
470
+ address: string;
471
+ amount: string;
472
+ leafIndex: number | null;
473
+ }[];
474
+ nextCursor: string | null;
475
+ }, string | Pick<Pick<Options<ListAllocationsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
476
+ _id: string;
477
+ _infinite?: boolean;
478
+ tags?: ReadonlyArray<string>;
479
+ }, "query" | "body" | "headers" | "path">> | (() => InfiniteData<{
480
+ items: {
481
+ address: string;
482
+ amount: string;
483
+ leafIndex: number | null;
484
+ }[];
485
+ nextCursor: string | null;
486
+ }, string | Pick<Pick<Options<ListAllocationsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
487
+ _id: string;
488
+ _infinite?: boolean;
489
+ tags?: ReadonlyArray<string>;
490
+ }, "query" | "body" | "headers" | "path">>) | undefined;
491
+ } & {
492
+ queryKey: QueryKey<Options<ListAllocationsData>> & {
493
+ [dataTagSymbol]: InfiniteData<{
494
+ items: {
495
+ address: string;
496
+ amount: string;
497
+ leafIndex: number | null;
498
+ }[];
499
+ nextCursor: string | null;
500
+ }, unknown>;
501
+ [dataTagErrorSymbol]: {
502
+ error: true;
503
+ message: string;
504
+ info?: Record<string, unknown> | undefined;
505
+ };
506
+ };
507
+ };
508
+ export declare const listExcludedAllocationsQueryKey: (options: Options<ListExcludedAllocationsData>) => [Pick<Options<ListExcludedAllocationsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
509
+ _id: string;
510
+ _infinite?: boolean;
511
+ tags?: ReadonlyArray<string>;
512
+ }];
513
+ /**
514
+ * List off-chain (merkle-excluded) allocations for a distribution
515
+ *
516
+ * Recipients allocated but excluded from the merkle tree (excluded addresses) — not claimable on-chain, settled manually. Not paginated (small bounded set). `totalAmount` equals the distribution `total_allocated - claimable_total`.
517
+ */
518
+ export declare const listExcludedAllocationsOptions: (options: Options<ListExcludedAllocationsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
519
+ items: {
520
+ address: string;
521
+ amount: string;
522
+ }[];
523
+ total: number;
524
+ totalAmount: string;
525
+ }, ListExcludedAllocationsError, {
526
+ items: {
527
+ address: string;
528
+ amount: string;
529
+ }[];
530
+ total: number;
531
+ totalAmount: string;
532
+ }, [Pick<Options<ListExcludedAllocationsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
533
+ _id: string;
534
+ _infinite?: boolean;
535
+ tags?: ReadonlyArray<string>;
536
+ }]>, "queryFn"> & {
537
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
538
+ items: {
539
+ address: string;
540
+ amount: string;
541
+ }[];
542
+ total: number;
543
+ totalAmount: string;
544
+ }, [Pick<Options<ListExcludedAllocationsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
545
+ _id: string;
546
+ _infinite?: boolean;
547
+ tags?: ReadonlyArray<string>;
548
+ }], never> | undefined;
549
+ } & {
550
+ queryKey: [Pick<Options<ListExcludedAllocationsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
551
+ _id: string;
552
+ _infinite?: boolean;
553
+ tags?: ReadonlyArray<string>;
554
+ }] & {
555
+ [dataTagSymbol]: {
556
+ items: {
557
+ address: string;
558
+ amount: string;
559
+ }[];
560
+ total: number;
561
+ totalAmount: string;
562
+ };
563
+ [dataTagErrorSymbol]: ListExcludedAllocationsError;
564
+ };
565
+ };
566
+ export declare const getAllocationQueryKey: (options: Options<GetAllocationData>) => [Pick<Options<GetAllocationData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
567
+ _id: string;
568
+ _infinite?: boolean;
569
+ tags?: ReadonlyArray<string>;
570
+ }];
571
+ /**
572
+ * Get a single address allocation in a distribution
573
+ */
574
+ export declare const getAllocationOptions: (options: Options<GetAllocationData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
575
+ address: string;
576
+ amount: string;
577
+ leafIndex: number | null;
578
+ }, GetAllocationError, {
579
+ address: string;
580
+ amount: string;
581
+ leafIndex: number | null;
582
+ }, [Pick<Options<GetAllocationData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
583
+ _id: string;
584
+ _infinite?: boolean;
585
+ tags?: ReadonlyArray<string>;
586
+ }]>, "queryFn"> & {
587
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
588
+ address: string;
589
+ amount: string;
590
+ leafIndex: number | null;
591
+ }, [Pick<Options<GetAllocationData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
592
+ _id: string;
593
+ _infinite?: boolean;
594
+ tags?: ReadonlyArray<string>;
595
+ }], never> | undefined;
596
+ } & {
597
+ queryKey: [Pick<Options<GetAllocationData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
598
+ _id: string;
599
+ _infinite?: boolean;
600
+ tags?: ReadonlyArray<string>;
601
+ }] & {
602
+ [dataTagSymbol]: {
603
+ address: string;
604
+ amount: string;
605
+ leafIndex: number | null;
606
+ };
607
+ [dataTagErrorSymbol]: GetAllocationError;
608
+ };
609
+ };
610
+ export declare const getAddressAllocationHistoryQueryKey: (options: Options<GetAddressAllocationHistoryData>) => [Pick<Options<GetAddressAllocationHistoryData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
611
+ _id: string;
612
+ _infinite?: boolean;
613
+ tags?: ReadonlyArray<string>;
614
+ }];
615
+ /**
616
+ * Per-address cross-distribution allocation history with live claim status
617
+ *
618
+ * Returns every allocation row for the given address across all completed distributions on the network, enriched with `status: "claimed" | "unclaimed"` derived live at request time by querying the pos-staker-pool-claims subgraph (spec §3.6, D10). Empty array if the address never qualified.
619
+ */
620
+ export declare const getAddressAllocationHistoryOptions: (options: Options<GetAddressAllocationHistoryData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
621
+ items: {
622
+ address: string;
623
+ distributionId: string;
624
+ amount: string;
625
+ leafIndex: number | null;
626
+ merkleRoot: string;
627
+ completedAt: string;
628
+ status: "claimed" | "unclaimed";
629
+ }[];
630
+ }, GetAddressAllocationHistoryError, {
631
+ items: {
632
+ address: string;
633
+ distributionId: string;
634
+ amount: string;
635
+ leafIndex: number | null;
636
+ merkleRoot: string;
637
+ completedAt: string;
638
+ status: "claimed" | "unclaimed";
639
+ }[];
640
+ }, [Pick<Options<GetAddressAllocationHistoryData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
641
+ _id: string;
642
+ _infinite?: boolean;
643
+ tags?: ReadonlyArray<string>;
644
+ }]>, "queryFn"> & {
645
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
646
+ items: {
647
+ address: string;
648
+ distributionId: string;
649
+ amount: string;
650
+ leafIndex: number | null;
651
+ merkleRoot: string;
652
+ completedAt: string;
653
+ status: "claimed" | "unclaimed";
654
+ }[];
655
+ }, [Pick<Options<GetAddressAllocationHistoryData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
656
+ _id: string;
657
+ _infinite?: boolean;
658
+ tags?: ReadonlyArray<string>;
659
+ }], never> | undefined;
660
+ } & {
661
+ queryKey: [Pick<Options<GetAddressAllocationHistoryData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
662
+ _id: string;
663
+ _infinite?: boolean;
664
+ tags?: ReadonlyArray<string>;
665
+ }] & {
666
+ [dataTagSymbol]: {
667
+ items: {
668
+ address: string;
669
+ distributionId: string;
670
+ amount: string;
671
+ leafIndex: number | null;
672
+ merkleRoot: string;
673
+ completedAt: string;
674
+ status: "claimed" | "unclaimed";
675
+ }[];
676
+ };
677
+ [dataTagErrorSymbol]: GetAddressAllocationHistoryError;
678
+ };
679
+ };
680
+ export declare const getUnclaimedProofsQueryKey: (options: Options<GetUnclaimedProofsData>) => [Pick<Options<GetUnclaimedProofsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
681
+ _id: string;
682
+ _infinite?: boolean;
683
+ tags?: ReadonlyArray<string>;
684
+ }];
685
+ /**
686
+ * Per-address unclaimed-proofs array — the primary claim-flow UI endpoint
687
+ *
688
+ * Returns the address's outstanding allocations with merkle proofs ready to submit to the claimer contract in one batched transaction. Proof generation is on demand from the persisted leaves (spec D9); the in-memory tree cache absorbs repeat calls for the same distribution. Empty array if every allocation has been claimed (or the address has none).
689
+ */
690
+ export declare const getUnclaimedProofsOptions: (options: Options<GetUnclaimedProofsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
691
+ items: {
692
+ distributionId: string;
693
+ merkleRoot: string;
694
+ amount: string;
695
+ leafIndex: number;
696
+ proof: string[];
697
+ }[];
698
+ }, GetUnclaimedProofsError, {
699
+ items: {
700
+ distributionId: string;
701
+ merkleRoot: string;
702
+ amount: string;
703
+ leafIndex: number;
704
+ proof: string[];
705
+ }[];
706
+ }, [Pick<Options<GetUnclaimedProofsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
707
+ _id: string;
708
+ _infinite?: boolean;
709
+ tags?: ReadonlyArray<string>;
710
+ }]>, "queryFn"> & {
711
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
712
+ items: {
713
+ distributionId: string;
714
+ merkleRoot: string;
715
+ amount: string;
716
+ leafIndex: number;
717
+ proof: string[];
718
+ }[];
719
+ }, [Pick<Options<GetUnclaimedProofsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
720
+ _id: string;
721
+ _infinite?: boolean;
722
+ tags?: ReadonlyArray<string>;
723
+ }], never> | undefined;
724
+ } & {
725
+ queryKey: [Pick<Options<GetUnclaimedProofsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
726
+ _id: string;
727
+ _infinite?: boolean;
728
+ tags?: ReadonlyArray<string>;
729
+ }] & {
730
+ [dataTagSymbol]: {
731
+ items: {
732
+ distributionId: string;
733
+ merkleRoot: string;
734
+ amount: string;
735
+ leafIndex: number;
736
+ proof: string[];
737
+ }[];
738
+ };
739
+ [dataTagErrorSymbol]: GetUnclaimedProofsError;
740
+ };
741
+ };
742
+ export declare const getProofQueryKey: (options: Options<GetProofData>) => [Pick<Options<GetProofData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
743
+ _id: string;
744
+ _infinite?: boolean;
745
+ tags?: ReadonlyArray<string>;
746
+ }];
747
+ /**
748
+ * Get the merkle proof for a single allocation
749
+ *
750
+ * Rebuilds (or cache-hits) the merkle tree from the persisted allocations table and extracts the proof for the requested address. The returned tuple `(merkleRoot, address, amount, leafIndex, proof)` can be passed straight to a Solidity verifier built around the same `[address, uint256]` leaf encoding.
751
+ */
752
+ export declare const getProofOptions: (options: Options<GetProofData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
753
+ address: string;
754
+ merkleRoot: string;
755
+ amount: string;
756
+ leafIndex: number;
757
+ proof: string[];
758
+ }, GetProofError, {
759
+ address: string;
760
+ merkleRoot: string;
761
+ amount: string;
762
+ leafIndex: number;
763
+ proof: string[];
764
+ }, [Pick<Options<GetProofData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
765
+ _id: string;
766
+ _infinite?: boolean;
767
+ tags?: ReadonlyArray<string>;
768
+ }]>, "queryFn"> & {
769
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
770
+ address: string;
771
+ merkleRoot: string;
772
+ amount: string;
773
+ leafIndex: number;
774
+ proof: string[];
775
+ }, [Pick<Options<GetProofData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
776
+ _id: string;
777
+ _infinite?: boolean;
778
+ tags?: ReadonlyArray<string>;
779
+ }], never> | undefined;
780
+ } & {
781
+ queryKey: [Pick<Options<GetProofData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
782
+ _id: string;
783
+ _infinite?: boolean;
784
+ tags?: ReadonlyArray<string>;
785
+ }] & {
786
+ [dataTagSymbol]: {
787
+ address: string;
788
+ merkleRoot: string;
789
+ amount: string;
790
+ leafIndex: number;
791
+ proof: string[];
792
+ };
793
+ [dataTagErrorSymbol]: GetProofError;
794
+ };
795
+ };
796
+ //# sourceMappingURL=react-query.gen.d.ts.map