@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.
- package/MIGRATION.md +5 -0
- package/dist/generated/@tanstack/react-query.gen.d.ts +796 -0
- package/dist/generated/@tanstack/react-query.gen.d.ts.map +1 -0
- package/dist/generated/@tanstack/react-query.gen.js +283 -0
- package/dist/generated/@tanstack/react-query.gen.js.map +1 -0
- package/dist/generated/client/client.gen.d.ts +3 -0
- package/dist/generated/client/client.gen.d.ts.map +1 -0
- package/dist/generated/client/client.gen.js +236 -0
- package/dist/generated/client/client.gen.js.map +1 -0
- package/dist/generated/client/index.d.ts +9 -0
- package/dist/generated/client/index.d.ts.map +1 -0
- package/dist/generated/client/index.js +7 -0
- package/dist/generated/client/index.js.map +1 -0
- package/dist/generated/client/types.gen.d.ts +118 -0
- package/dist/generated/client/types.gen.d.ts.map +1 -0
- package/dist/generated/client/types.gen.js +3 -0
- package/dist/generated/client/types.gen.js.map +1 -0
- package/dist/generated/client/utils.gen.d.ts +34 -0
- package/dist/generated/client/utils.gen.d.ts.map +1 -0
- package/dist/generated/client/utils.gen.js +229 -0
- package/dist/generated/client/utils.gen.js.map +1 -0
- package/dist/generated/client.gen.d.ts +13 -0
- package/dist/generated/client.gen.d.ts.map +1 -0
- package/dist/generated/client.gen.js +4 -0
- package/dist/generated/client.gen.js.map +1 -0
- package/dist/generated/core/auth.gen.d.ts +19 -0
- package/dist/generated/core/auth.gen.d.ts.map +1 -0
- package/dist/generated/core/auth.gen.js +15 -0
- package/dist/generated/core/auth.gen.js.map +1 -0
- package/dist/generated/core/bodySerializer.gen.d.ts +26 -0
- package/dist/generated/core/bodySerializer.gen.d.ts.map +1 -0
- package/dist/generated/core/bodySerializer.gen.js +58 -0
- package/dist/generated/core/bodySerializer.gen.js.map +1 -0
- package/dist/generated/core/params.gen.d.ts +44 -0
- package/dist/generated/core/params.gen.d.ts.map +1 -0
- package/dist/generated/core/params.gen.js +101 -0
- package/dist/generated/core/params.gen.js.map +1 -0
- package/dist/generated/core/pathSerializer.gen.d.ts +34 -0
- package/dist/generated/core/pathSerializer.gen.d.ts.map +1 -0
- package/dist/generated/core/pathSerializer.gen.js +107 -0
- package/dist/generated/core/pathSerializer.gen.js.map +1 -0
- package/dist/generated/core/queryKeySerializer.gen.d.ts +19 -0
- package/dist/generated/core/queryKeySerializer.gen.d.ts.map +1 -0
- package/dist/generated/core/queryKeySerializer.gen.js +93 -0
- package/dist/generated/core/queryKeySerializer.gen.js.map +1 -0
- package/dist/generated/core/serverSentEvents.gen.d.ts +72 -0
- package/dist/generated/core/serverSentEvents.gen.d.ts.map +1 -0
- package/dist/generated/core/serverSentEvents.gen.js +134 -0
- package/dist/generated/core/serverSentEvents.gen.js.map +1 -0
- package/dist/generated/core/types.gen.d.ts +79 -0
- package/dist/generated/core/types.gen.d.ts.map +1 -0
- package/dist/generated/core/types.gen.js +3 -0
- package/dist/generated/core/types.gen.js.map +1 -0
- package/dist/generated/core/utils.gen.d.ts +20 -0
- package/dist/generated/core/utils.gen.d.ts.map +1 -0
- package/dist/generated/core/utils.gen.js +88 -0
- package/dist/generated/core/utils.gen.js.map +1 -0
- package/dist/generated/index.d.ts +4 -0
- package/dist/generated/index.d.ts.map +1 -0
- package/dist/generated/index.js +5 -0
- package/dist/generated/index.js.map +1 -0
- package/dist/generated/registry-validator.gen.d.ts +168 -0
- package/dist/generated/registry-validator.gen.d.ts.map +1 -0
- package/dist/generated/registry-validator.gen.js +402 -0
- package/dist/generated/registry-validator.gen.js.map +1 -0
- package/dist/generated/sdk.gen.d.ts +71 -0
- package/dist/generated/sdk.gen.d.ts.map +1 -0
- package/dist/generated/sdk.gen.js +98 -0
- package/dist/generated/sdk.gen.js.map +1 -0
- package/dist/generated/types.gen.d.ts +435 -0
- package/dist/generated/types.gen.d.ts.map +1 -0
- package/dist/generated/types.gen.js +3 -0
- package/dist/generated/types.gen.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +33 -0
- package/dist/index.js.map +1 -0
- package/dist/react.d.ts +2 -0
- package/dist/react.d.ts.map +1 -0
- package/dist/react.js +18 -0
- package/dist/react.js.map +1 -0
- package/dist/tsconfig.lib.tsbuildinfo +1 -0
- package/package.json +68 -0
- package/src/generated/@tanstack/react-query.gen.ts +322 -0
- package/src/generated/client/client.gen.ts +298 -0
- package/src/generated/client/index.ts +25 -0
- package/src/generated/client/types.gen.ts +214 -0
- package/src/generated/client/utils.gen.ts +316 -0
- package/src/generated/client.gen.ts +16 -0
- package/src/generated/core/auth.gen.ts +41 -0
- package/src/generated/core/bodySerializer.gen.ts +82 -0
- package/src/generated/core/params.gen.ts +169 -0
- package/src/generated/core/pathSerializer.gen.ts +171 -0
- package/src/generated/core/queryKeySerializer.gen.ts +117 -0
- package/src/generated/core/serverSentEvents.gen.ts +243 -0
- package/src/generated/core/types.gen.ts +104 -0
- package/src/generated/core/utils.gen.ts +140 -0
- package/src/generated/index.ts +5 -0
- package/src/generated/registry-validator.gen.ts +607 -0
- package/src/generated/sdk.gen.ts +124 -0
- package/src/generated/types.gen.ts +503 -0
- package/src/index.ts +68 -0
- package/src/react.ts +42 -0
|
@@ -0,0 +1,435 @@
|
|
|
1
|
+
export type ClientOptions = {
|
|
2
|
+
baseUrl: `${string}://${string}` | (string & {});
|
|
3
|
+
};
|
|
4
|
+
export type OperationalStatus = {
|
|
5
|
+
status: 'ok';
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Standard error response shape from `@polygonlabs/express`'s `createErrorHandler`. `info` is present when the underlying `HTTPError` carries structured info (e.g. validation failures, domain-specific context); absent for plain errors and most non-validation HTTPErrors.
|
|
9
|
+
*/
|
|
10
|
+
export type ErrorResponse = {
|
|
11
|
+
error: true;
|
|
12
|
+
message: string;
|
|
13
|
+
info?: {
|
|
14
|
+
[key: string]: unknown;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export type DistributionListResponse = {
|
|
18
|
+
items: Array<DistributionSummary>;
|
|
19
|
+
nextCursor: string | null;
|
|
20
|
+
};
|
|
21
|
+
export type DistributionSummary = {
|
|
22
|
+
distributionId: string;
|
|
23
|
+
status: 'pending' | 'running' | 'completed' | 'failed';
|
|
24
|
+
startPoSBlock: string;
|
|
25
|
+
endPoSBlock: string;
|
|
26
|
+
merkleRoot: string | null;
|
|
27
|
+
totalAllocated: string | null;
|
|
28
|
+
completedAt: string | null;
|
|
29
|
+
};
|
|
30
|
+
export type DistributionDetail = DistributionSummary & {
|
|
31
|
+
checkpointCount: number;
|
|
32
|
+
polUsdPrice: string | null;
|
|
33
|
+
maxClaimableUsdThreshold: string | null;
|
|
34
|
+
inputsHash: string | null;
|
|
35
|
+
posStakingSubgraphBlock: string | null;
|
|
36
|
+
posStakingSubgraphHash: string | null;
|
|
37
|
+
posCheckpointsSubgraphBlock: string | null;
|
|
38
|
+
posCheckpointsSubgraphHash: string | null;
|
|
39
|
+
posPriorityFeesSubgraphBlock: string | null;
|
|
40
|
+
posPriorityFeesSubgraphHash: string | null;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Narrowed `ErrorResponse` for 400s emitted by the registry-driven router when request validation fails. `info` is non-optional and carries the section-keyed `ValidationErrorInfo` shape.
|
|
44
|
+
*/
|
|
45
|
+
export type ValidationErrorResponse = {
|
|
46
|
+
error: true;
|
|
47
|
+
message: string;
|
|
48
|
+
info: ValidationErrorInfo;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Section-keyed map of request validation failures. Only sections that failed appear; each value is the `z.treeifyError` tree for that section. Clients can wire e.g. `info.body.properties.label.errors[0]` directly into field-level UI feedback rather than walking a flat issue list.
|
|
52
|
+
*/
|
|
53
|
+
export type ValidationErrorInfo = {
|
|
54
|
+
params?: ZodErrorTree;
|
|
55
|
+
query?: ZodErrorTree;
|
|
56
|
+
body?: ZodErrorTree;
|
|
57
|
+
headers?: ZodErrorTree;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Recursive Zod validation error tree (the output of `z.treeifyError`). `errors` carries the messages at this node; `properties` keys nested object errors by field name; `items` indexes nested array errors.
|
|
61
|
+
*/
|
|
62
|
+
export type ZodErrorTree = {
|
|
63
|
+
errors: Array<string>;
|
|
64
|
+
properties?: {
|
|
65
|
+
[key: string]: ZodErrorTree;
|
|
66
|
+
};
|
|
67
|
+
items?: Array<ZodErrorTree>;
|
|
68
|
+
};
|
|
69
|
+
export type AllocationListResponse = {
|
|
70
|
+
items: Array<AllocationRow>;
|
|
71
|
+
nextCursor: string | null;
|
|
72
|
+
};
|
|
73
|
+
export type AllocationRow = {
|
|
74
|
+
address: string;
|
|
75
|
+
amount: string;
|
|
76
|
+
leafIndex: number | null;
|
|
77
|
+
};
|
|
78
|
+
export type ExcludedAllocationsResponse = {
|
|
79
|
+
items: Array<ExcludedAllocationRow>;
|
|
80
|
+
total: number;
|
|
81
|
+
totalAmount: string;
|
|
82
|
+
};
|
|
83
|
+
export type ExcludedAllocationRow = {
|
|
84
|
+
address: string;
|
|
85
|
+
amount: string;
|
|
86
|
+
};
|
|
87
|
+
export type AllocationHistoryResponse = {
|
|
88
|
+
items: Array<AllocationHistoryRow>;
|
|
89
|
+
};
|
|
90
|
+
export type AllocationHistoryRow = {
|
|
91
|
+
distributionId: string;
|
|
92
|
+
address: string;
|
|
93
|
+
amount: string;
|
|
94
|
+
leafIndex: number | null;
|
|
95
|
+
merkleRoot: string;
|
|
96
|
+
completedAt: string;
|
|
97
|
+
/**
|
|
98
|
+
* Derived live at request time by diffing the address's allocations against the pos-staker-pool-claims subgraph. Never persisted (spec D10).
|
|
99
|
+
*/
|
|
100
|
+
status: 'claimed' | 'unclaimed';
|
|
101
|
+
};
|
|
102
|
+
export type UnclaimedProofsResponse = {
|
|
103
|
+
items: Array<UnclaimedProofBatch>;
|
|
104
|
+
};
|
|
105
|
+
export type UnclaimedProofBatch = {
|
|
106
|
+
distributionId: string;
|
|
107
|
+
merkleRoot: string;
|
|
108
|
+
amount: string;
|
|
109
|
+
leafIndex: number;
|
|
110
|
+
proof: Array<string>;
|
|
111
|
+
};
|
|
112
|
+
export type ProofResponse = {
|
|
113
|
+
/**
|
|
114
|
+
* Distribution merkle root — same value as `DistributionDetail.merkleRoot`.
|
|
115
|
+
*/
|
|
116
|
+
merkleRoot: string;
|
|
117
|
+
address: string;
|
|
118
|
+
amount: string;
|
|
119
|
+
/**
|
|
120
|
+
* Index of this leaf in the canonical (lowercased-address-sorted) tree.
|
|
121
|
+
*/
|
|
122
|
+
leafIndex: number;
|
|
123
|
+
/**
|
|
124
|
+
* Sibling-hash array. Pass straight to the claimer contract.
|
|
125
|
+
*/
|
|
126
|
+
proof: Array<string>;
|
|
127
|
+
};
|
|
128
|
+
export type GetHealthCheckData = {
|
|
129
|
+
body?: never;
|
|
130
|
+
path?: never;
|
|
131
|
+
query?: never;
|
|
132
|
+
url: '/health-check';
|
|
133
|
+
};
|
|
134
|
+
export type GetHealthCheckErrors = {
|
|
135
|
+
/**
|
|
136
|
+
* Internal server error.
|
|
137
|
+
*/
|
|
138
|
+
500: ErrorResponse;
|
|
139
|
+
};
|
|
140
|
+
export type GetHealthCheckError = GetHealthCheckErrors[keyof GetHealthCheckErrors];
|
|
141
|
+
export type GetHealthCheckResponses = {
|
|
142
|
+
/**
|
|
143
|
+
* Service is alive.
|
|
144
|
+
*/
|
|
145
|
+
200: OperationalStatus;
|
|
146
|
+
};
|
|
147
|
+
export type GetHealthCheckResponse = GetHealthCheckResponses[keyof GetHealthCheckResponses];
|
|
148
|
+
export type GetReadinessData = {
|
|
149
|
+
body?: never;
|
|
150
|
+
path?: never;
|
|
151
|
+
query?: never;
|
|
152
|
+
url: '/readiness';
|
|
153
|
+
};
|
|
154
|
+
export type GetReadinessErrors = {
|
|
155
|
+
/**
|
|
156
|
+
* Internal server error.
|
|
157
|
+
*/
|
|
158
|
+
500: ErrorResponse;
|
|
159
|
+
};
|
|
160
|
+
export type GetReadinessError = GetReadinessErrors[keyof GetReadinessErrors];
|
|
161
|
+
export type GetReadinessResponses = {
|
|
162
|
+
/**
|
|
163
|
+
* Service is ready.
|
|
164
|
+
*/
|
|
165
|
+
200: OperationalStatus;
|
|
166
|
+
};
|
|
167
|
+
export type GetReadinessResponse = GetReadinessResponses[keyof GetReadinessResponses];
|
|
168
|
+
export type ListDistributionsData = {
|
|
169
|
+
body?: never;
|
|
170
|
+
path: {
|
|
171
|
+
/**
|
|
172
|
+
* Polygon network the distribution covers. `mainnet` is PoS mainnet, `amoy` is the PoS testnet.
|
|
173
|
+
*/
|
|
174
|
+
network: 'mainnet' | 'amoy';
|
|
175
|
+
};
|
|
176
|
+
query?: {
|
|
177
|
+
cursor?: string;
|
|
178
|
+
limit?: number;
|
|
179
|
+
};
|
|
180
|
+
url: '/v1/{network}/distributions';
|
|
181
|
+
};
|
|
182
|
+
export type ListDistributionsErrors = {
|
|
183
|
+
/**
|
|
184
|
+
* Invalid pagination cursor (`info.code: "INVALID_CURSOR"`) or request failed schema validation.
|
|
185
|
+
*/
|
|
186
|
+
400: ErrorResponse;
|
|
187
|
+
/**
|
|
188
|
+
* Internal server error.
|
|
189
|
+
*/
|
|
190
|
+
500: ErrorResponse;
|
|
191
|
+
};
|
|
192
|
+
export type ListDistributionsError = ListDistributionsErrors[keyof ListDistributionsErrors];
|
|
193
|
+
export type ListDistributionsResponses = {
|
|
194
|
+
/**
|
|
195
|
+
* Page of distribution summaries.
|
|
196
|
+
*/
|
|
197
|
+
200: DistributionListResponse;
|
|
198
|
+
};
|
|
199
|
+
export type ListDistributionsResponse = ListDistributionsResponses[keyof ListDistributionsResponses];
|
|
200
|
+
export type GetDistributionData = {
|
|
201
|
+
body?: never;
|
|
202
|
+
path: {
|
|
203
|
+
/**
|
|
204
|
+
* Polygon network the distribution covers. `mainnet` is PoS mainnet, `amoy` is the PoS testnet.
|
|
205
|
+
*/
|
|
206
|
+
network: 'mainnet' | 'amoy';
|
|
207
|
+
distributionId: string;
|
|
208
|
+
};
|
|
209
|
+
query?: never;
|
|
210
|
+
url: '/v1/{network}/distributions/{distributionId}';
|
|
211
|
+
};
|
|
212
|
+
export type GetDistributionErrors = {
|
|
213
|
+
/**
|
|
214
|
+
* Request failed schema validation.
|
|
215
|
+
*/
|
|
216
|
+
400: ValidationErrorResponse;
|
|
217
|
+
/**
|
|
218
|
+
* Distribution not found or not yet completed.
|
|
219
|
+
*/
|
|
220
|
+
404: ErrorResponse;
|
|
221
|
+
/**
|
|
222
|
+
* Internal server error.
|
|
223
|
+
*/
|
|
224
|
+
500: ErrorResponse;
|
|
225
|
+
};
|
|
226
|
+
export type GetDistributionError = GetDistributionErrors[keyof GetDistributionErrors];
|
|
227
|
+
export type GetDistributionResponses = {
|
|
228
|
+
/**
|
|
229
|
+
* Distribution detail.
|
|
230
|
+
*/
|
|
231
|
+
200: DistributionDetail;
|
|
232
|
+
};
|
|
233
|
+
export type GetDistributionResponse = GetDistributionResponses[keyof GetDistributionResponses];
|
|
234
|
+
export type ListAllocationsData = {
|
|
235
|
+
body?: never;
|
|
236
|
+
path: {
|
|
237
|
+
/**
|
|
238
|
+
* Polygon network the distribution covers. `mainnet` is PoS mainnet, `amoy` is the PoS testnet.
|
|
239
|
+
*/
|
|
240
|
+
network: 'mainnet' | 'amoy';
|
|
241
|
+
distributionId: string;
|
|
242
|
+
};
|
|
243
|
+
query?: {
|
|
244
|
+
cursor?: string;
|
|
245
|
+
limit?: number;
|
|
246
|
+
};
|
|
247
|
+
url: '/v1/{network}/distributions/{distributionId}/allocations';
|
|
248
|
+
};
|
|
249
|
+
export type ListAllocationsErrors = {
|
|
250
|
+
/**
|
|
251
|
+
* Invalid pagination cursor (`info.code: "INVALID_CURSOR"`) or request failed schema validation.
|
|
252
|
+
*/
|
|
253
|
+
400: ErrorResponse;
|
|
254
|
+
/**
|
|
255
|
+
* Distribution not found or not yet completed.
|
|
256
|
+
*/
|
|
257
|
+
404: ErrorResponse;
|
|
258
|
+
/**
|
|
259
|
+
* Internal server error.
|
|
260
|
+
*/
|
|
261
|
+
500: ErrorResponse;
|
|
262
|
+
};
|
|
263
|
+
export type ListAllocationsError = ListAllocationsErrors[keyof ListAllocationsErrors];
|
|
264
|
+
export type ListAllocationsResponses = {
|
|
265
|
+
/**
|
|
266
|
+
* Page of allocation rows.
|
|
267
|
+
*/
|
|
268
|
+
200: AllocationListResponse;
|
|
269
|
+
};
|
|
270
|
+
export type ListAllocationsResponse = ListAllocationsResponses[keyof ListAllocationsResponses];
|
|
271
|
+
export type ListExcludedAllocationsData = {
|
|
272
|
+
body?: never;
|
|
273
|
+
path: {
|
|
274
|
+
/**
|
|
275
|
+
* Polygon network the distribution covers. `mainnet` is PoS mainnet, `amoy` is the PoS testnet.
|
|
276
|
+
*/
|
|
277
|
+
network: 'mainnet' | 'amoy';
|
|
278
|
+
distributionId: string;
|
|
279
|
+
};
|
|
280
|
+
query?: never;
|
|
281
|
+
url: '/v1/{network}/distributions/{distributionId}/excluded-allocations';
|
|
282
|
+
};
|
|
283
|
+
export type ListExcludedAllocationsErrors = {
|
|
284
|
+
/**
|
|
285
|
+
* Request failed schema validation.
|
|
286
|
+
*/
|
|
287
|
+
400: ValidationErrorResponse;
|
|
288
|
+
/**
|
|
289
|
+
* Distribution not found or not yet completed.
|
|
290
|
+
*/
|
|
291
|
+
404: ErrorResponse;
|
|
292
|
+
/**
|
|
293
|
+
* Internal server error.
|
|
294
|
+
*/
|
|
295
|
+
500: ErrorResponse;
|
|
296
|
+
};
|
|
297
|
+
export type ListExcludedAllocationsError = ListExcludedAllocationsErrors[keyof ListExcludedAllocationsErrors];
|
|
298
|
+
export type ListExcludedAllocationsResponses = {
|
|
299
|
+
/**
|
|
300
|
+
* The off-chain allocation set.
|
|
301
|
+
*/
|
|
302
|
+
200: ExcludedAllocationsResponse;
|
|
303
|
+
};
|
|
304
|
+
export type ListExcludedAllocationsResponse = ListExcludedAllocationsResponses[keyof ListExcludedAllocationsResponses];
|
|
305
|
+
export type GetAllocationData = {
|
|
306
|
+
body?: never;
|
|
307
|
+
path: {
|
|
308
|
+
/**
|
|
309
|
+
* Polygon network the distribution covers. `mainnet` is PoS mainnet, `amoy` is the PoS testnet.
|
|
310
|
+
*/
|
|
311
|
+
network: 'mainnet' | 'amoy';
|
|
312
|
+
distributionId: string;
|
|
313
|
+
address: string;
|
|
314
|
+
};
|
|
315
|
+
query?: never;
|
|
316
|
+
url: '/v1/{network}/distributions/{distributionId}/allocations/{address}';
|
|
317
|
+
};
|
|
318
|
+
export type GetAllocationErrors = {
|
|
319
|
+
/**
|
|
320
|
+
* Request failed schema validation.
|
|
321
|
+
*/
|
|
322
|
+
400: ValidationErrorResponse;
|
|
323
|
+
/**
|
|
324
|
+
* Distribution or allocation not found.
|
|
325
|
+
*/
|
|
326
|
+
404: ErrorResponse;
|
|
327
|
+
/**
|
|
328
|
+
* Internal server error.
|
|
329
|
+
*/
|
|
330
|
+
500: ErrorResponse;
|
|
331
|
+
};
|
|
332
|
+
export type GetAllocationError = GetAllocationErrors[keyof GetAllocationErrors];
|
|
333
|
+
export type GetAllocationResponses = {
|
|
334
|
+
/**
|
|
335
|
+
* Allocation row.
|
|
336
|
+
*/
|
|
337
|
+
200: AllocationRow;
|
|
338
|
+
};
|
|
339
|
+
export type GetAllocationResponse = GetAllocationResponses[keyof GetAllocationResponses];
|
|
340
|
+
export type GetAddressAllocationHistoryData = {
|
|
341
|
+
body?: never;
|
|
342
|
+
path: {
|
|
343
|
+
/**
|
|
344
|
+
* Polygon network the distribution covers. `mainnet` is PoS mainnet, `amoy` is the PoS testnet.
|
|
345
|
+
*/
|
|
346
|
+
network: 'mainnet' | 'amoy';
|
|
347
|
+
address: string;
|
|
348
|
+
};
|
|
349
|
+
query?: never;
|
|
350
|
+
url: '/v1/{network}/addresses/{address}/allocations';
|
|
351
|
+
};
|
|
352
|
+
export type GetAddressAllocationHistoryErrors = {
|
|
353
|
+
/**
|
|
354
|
+
* Request failed schema validation.
|
|
355
|
+
*/
|
|
356
|
+
400: ValidationErrorResponse;
|
|
357
|
+
/**
|
|
358
|
+
* Internal server error.
|
|
359
|
+
*/
|
|
360
|
+
500: ErrorResponse;
|
|
361
|
+
};
|
|
362
|
+
export type GetAddressAllocationHistoryError = GetAddressAllocationHistoryErrors[keyof GetAddressAllocationHistoryErrors];
|
|
363
|
+
export type GetAddressAllocationHistoryResponses = {
|
|
364
|
+
/**
|
|
365
|
+
* History rows ordered most-recently-completed first.
|
|
366
|
+
*/
|
|
367
|
+
200: AllocationHistoryResponse;
|
|
368
|
+
};
|
|
369
|
+
export type GetAddressAllocationHistoryResponse = GetAddressAllocationHistoryResponses[keyof GetAddressAllocationHistoryResponses];
|
|
370
|
+
export type GetUnclaimedProofsData = {
|
|
371
|
+
body?: never;
|
|
372
|
+
path: {
|
|
373
|
+
/**
|
|
374
|
+
* Polygon network the distribution covers. `mainnet` is PoS mainnet, `amoy` is the PoS testnet.
|
|
375
|
+
*/
|
|
376
|
+
network: 'mainnet' | 'amoy';
|
|
377
|
+
address: string;
|
|
378
|
+
};
|
|
379
|
+
query?: never;
|
|
380
|
+
url: '/v1/{network}/addresses/{address}/unclaimed-proofs';
|
|
381
|
+
};
|
|
382
|
+
export type GetUnclaimedProofsErrors = {
|
|
383
|
+
/**
|
|
384
|
+
* Request failed schema validation.
|
|
385
|
+
*/
|
|
386
|
+
400: ValidationErrorResponse;
|
|
387
|
+
/**
|
|
388
|
+
* Internal server error.
|
|
389
|
+
*/
|
|
390
|
+
500: ErrorResponse;
|
|
391
|
+
};
|
|
392
|
+
export type GetUnclaimedProofsError = GetUnclaimedProofsErrors[keyof GetUnclaimedProofsErrors];
|
|
393
|
+
export type GetUnclaimedProofsResponses = {
|
|
394
|
+
/**
|
|
395
|
+
* Batch of unclaimed-proof entries ordered oldest-distribution first.
|
|
396
|
+
*/
|
|
397
|
+
200: UnclaimedProofsResponse;
|
|
398
|
+
};
|
|
399
|
+
export type GetUnclaimedProofsResponse = GetUnclaimedProofsResponses[keyof GetUnclaimedProofsResponses];
|
|
400
|
+
export type GetProofData = {
|
|
401
|
+
body?: never;
|
|
402
|
+
path: {
|
|
403
|
+
/**
|
|
404
|
+
* Polygon network the distribution covers. `mainnet` is PoS mainnet, `amoy` is the PoS testnet.
|
|
405
|
+
*/
|
|
406
|
+
network: 'mainnet' | 'amoy';
|
|
407
|
+
distributionId: string;
|
|
408
|
+
address: string;
|
|
409
|
+
};
|
|
410
|
+
query?: never;
|
|
411
|
+
url: '/v1/{network}/distributions/{distributionId}/allocations/{address}/proof';
|
|
412
|
+
};
|
|
413
|
+
export type GetProofErrors = {
|
|
414
|
+
/**
|
|
415
|
+
* Request failed schema validation.
|
|
416
|
+
*/
|
|
417
|
+
400: ValidationErrorResponse;
|
|
418
|
+
/**
|
|
419
|
+
* Distribution not found, not yet completed, address has no allocation, or the allocation is excluded from the tree (settled off-chain).
|
|
420
|
+
*/
|
|
421
|
+
404: ErrorResponse;
|
|
422
|
+
/**
|
|
423
|
+
* Internal server error.
|
|
424
|
+
*/
|
|
425
|
+
500: ErrorResponse;
|
|
426
|
+
};
|
|
427
|
+
export type GetProofError = GetProofErrors[keyof GetProofErrors];
|
|
428
|
+
export type GetProofResponses = {
|
|
429
|
+
/**
|
|
430
|
+
* Proof bundle ready to submit to the claimer contract.
|
|
431
|
+
*/
|
|
432
|
+
200: ProofResponse;
|
|
433
|
+
};
|
|
434
|
+
export type GetProofResponse = GetProofResponses[keyof GetProofResponses];
|
|
435
|
+
//# sourceMappingURL=types.gen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.gen.d.ts","sourceRoot":"","sources":["../../src/generated/types.gen.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,aAAa,GAAG;IACxB,OAAO,EAAE,GAAG,MAAM,MAAM,MAAM,EAAE,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;CACpD,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC5B,MAAM,EAAE,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1,2 @@
|
|
|
1
|
+
export { client, getAddressAllocationHistory, type GetAddressAllocationHistoryError, type GetAddressAllocationHistoryResponse, getAllocation, type GetAllocationError, type GetAllocationResponse, getDistribution, type GetDistributionError, type GetDistributionResponse, getHealthCheck, type GetHealthCheckResponse, getProof, type GetProofError, type GetProofResponse, getReadiness, type GetReadinessResponse, getUnclaimedProofs, type GetUnclaimedProofsError, type GetUnclaimedProofsResponse, isResponseValidationError, isTransportError, isWrapperError, listAllocations, type ListAllocationsError, type ListAllocationsResponse, listDistributions, type ListDistributionsError, type ListDistributionsResponse, listExcludedAllocations, type ListExcludedAllocationsError, type ListExcludedAllocationsResponse, ResponseValidationError, TransportError, type WrapErrors } from './generated/index.js';
|
|
2
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AA+BA,OAAO,EACL,MAAM,EACN,2BAA2B,EAC3B,KAAK,gCAAgC,EACrC,KAAK,mCAAmC,EACxC,aAAa,EACb,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,eAAe,EACf,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,cAAc,EACd,KAAK,sBAAsB,EAC3B,QAAQ,EACR,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,YAAY,EACZ,KAAK,oBAAoB,EACzB,kBAAkB,EAClB,KAAK,uBAAuB,EAC5B,KAAK,0BAA0B,EAC/B,yBAAyB,EACzB,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,iBAAiB,EACjB,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,uBAAuB,EACvB,KAAK,4BAA4B,EACjC,KAAK,+BAA+B,EACpC,uBAAuB,EACvB,cAAc,EACd,KAAK,UAAU,EAChB,MAAM,sBAAsB,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// Public surface for @polygonlabs/staker-pool-allocations-client.
|
|
2
|
+
//
|
|
3
|
+
// Everything in `./generated/` is regenerated by `pnpm run generate` from
|
|
4
|
+
// the registered Zod schemas in `@polygonlabs/staker-pool-allocations-schemas`
|
|
5
|
+
// (the same values the service validates responses against), so there is no
|
|
6
|
+
// rename layer to drift. The hand-written barrel below imports only from
|
|
7
|
+
// `./generated/index.js` — the auto-barrel that
|
|
8
|
+
// `@polygonlabs/zod-to-openapi-heyapi`'s `defineRegistryClientConfig` keeps
|
|
9
|
+
// complete:
|
|
10
|
+
//
|
|
11
|
+
// - `client` for `client.setConfig({ baseUrl })` at app entry
|
|
12
|
+
// - Every SDK wrapper (`listDistributions`, `getProof`, …) — each runs the
|
|
13
|
+
// schemas package's `parseAsync` on the response body before returning
|
|
14
|
+
// - The `TransportError` / `ResponseValidationError` classes plus their
|
|
15
|
+
// `is*Error` type-predicate guards for canonical narrowing
|
|
16
|
+
// - `WrapErrors<TData, TError, ThrowOnError>` — the wrapper's statically
|
|
17
|
+
// widened return type, surfaced for typed-error narrowing
|
|
18
|
+
//
|
|
19
|
+
// React-flavoured TanStack Query options factories (`getProofOptions`,
|
|
20
|
+
// `listDistributionsInfiniteOptions`, …) live in the `./react` subpath
|
|
21
|
+
// export so consumers that don't need React don't pay the
|
|
22
|
+
// @tanstack/react-query peer-dep cost.
|
|
23
|
+
//
|
|
24
|
+
// For advanced setups that need more than the singleton client — multiple
|
|
25
|
+
// instances pointing at different base URLs, per-request config in SSR, a
|
|
26
|
+
// custom fetch adapter — import `createClient` and `createConfig` from the
|
|
27
|
+
// `./factory` subpath:
|
|
28
|
+
//
|
|
29
|
+
// import { createClient, createConfig } from '@polygonlabs/staker-pool-allocations-client/factory';
|
|
30
|
+
// const myClient = createClient(createConfig({ baseUrl, fetch: customFetch }));
|
|
31
|
+
// await listDistributions({ client: myClient, path: { network: 'mainnet' } });
|
|
32
|
+
export { client, getAddressAllocationHistory, getAllocation, getDistribution, getHealthCheck, getProof, getReadiness, getUnclaimedProofs, isResponseValidationError, isTransportError, isWrapperError, listAllocations, listDistributions, listExcludedAllocations, ResponseValidationError, TransportError } from './generated/index.js';
|
|
33
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,EAAE;AACF,0EAA0E;AAC1E,+EAA+E;AAC/E,4EAA4E;AAC5E,yEAAyE;AACzE,gDAAgD;AAChD,4EAA4E;AAC5E,YAAY;AACZ,EAAE;AACF,gEAAgE;AAChE,6EAA6E;AAC7E,2EAA2E;AAC3E,0EAA0E;AAC1E,+DAA+D;AAC/D,2EAA2E;AAC3E,8DAA8D;AAC9D,EAAE;AACF,uEAAuE;AACvE,uEAAuE;AACvE,0DAA0D;AAC1D,uCAAuC;AACvC,EAAE;AACF,0EAA0E;AAC1E,0EAA0E;AAC1E,2EAA2E;AAC3E,uBAAuB;AACvB,EAAE;AACF,sGAAsG;AACtG,kFAAkF;AAClF,iFAAiF;AACjF,OAAO,EACL,MAAM,EACN,2BAA2B,EAG3B,aAAa,EAGb,eAAe,EAGf,cAAc,EAEd,QAAQ,EAGR,YAAY,EAEZ,kBAAkB,EAGlB,yBAAyB,EACzB,gBAAgB,EAChB,cAAc,EACd,eAAe,EAGf,iBAAiB,EAGjB,uBAAuB,EAGvB,uBAAuB,EACvB,cAAc,EAEf,MAAM,sBAAsB,CAAC"}
|
package/dist/react.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { getAddressAllocationHistoryOptions, getAddressAllocationHistoryQueryKey, getAllocationOptions, getAllocationQueryKey, getDistributionOptions, getDistributionQueryKey, getHealthCheckOptions, getHealthCheckQueryKey, getProofOptions, getProofQueryKey, getReadinessOptions, getReadinessQueryKey, getUnclaimedProofsOptions, getUnclaimedProofsQueryKey, listAllocationsInfiniteOptions, listAllocationsInfiniteQueryKey, listAllocationsOptions, listAllocationsQueryKey, listDistributionsInfiniteOptions, listDistributionsInfiniteQueryKey, listDistributionsOptions, listDistributionsQueryKey, listExcludedAllocationsOptions, listExcludedAllocationsQueryKey } from './generated/index.js';
|
|
2
|
+
//# sourceMappingURL=react.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../src/react.ts"],"names":[],"mappings":"AAgBA,OAAO,EACL,kCAAkC,EAClC,mCAAmC,EACnC,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACtB,eAAe,EACf,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACpB,yBAAyB,EACzB,0BAA0B,EAC1B,8BAA8B,EAC9B,+BAA+B,EAC/B,sBAAsB,EACtB,uBAAuB,EACvB,gCAAgC,EAChC,iCAAiC,EACjC,wBAAwB,EACxB,yBAAyB,EACzB,8BAA8B,EAC9B,+BAA+B,EAChC,MAAM,sBAAsB,CAAC"}
|
package/dist/react.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// TanStack Query factories emitted by `@polygonlabs/zod-to-openapi-heyapi`'s
|
|
2
|
+
// `tanstackReactQuery: true` option. Every public-API operation is a GET, so
|
|
3
|
+
// the surface is Options/QueryKey factories (plus Infinite variants for the
|
|
4
|
+
// cursor-paginated list endpoints) — no mutation factories.
|
|
5
|
+
//
|
|
6
|
+
// Kept on a subpath export so the main entrypoint stays free of the
|
|
7
|
+
// @tanstack/react-query peer dependency.
|
|
8
|
+
//
|
|
9
|
+
// Configure the baseUrl once at application entry via the singleton client
|
|
10
|
+
// from the main entrypoint:
|
|
11
|
+
//
|
|
12
|
+
// import { client } from '@polygonlabs/staker-pool-allocations-client';
|
|
13
|
+
// client.setConfig({ baseUrl: env.VITE_API_URL });
|
|
14
|
+
//
|
|
15
|
+
// import { listDistributionsOptions } from '@polygonlabs/staker-pool-allocations-client/react';
|
|
16
|
+
// const { data } = useQuery(listDistributionsOptions({ path: { network: 'mainnet' } }));
|
|
17
|
+
export { getAddressAllocationHistoryOptions, getAddressAllocationHistoryQueryKey, getAllocationOptions, getAllocationQueryKey, getDistributionOptions, getDistributionQueryKey, getHealthCheckOptions, getHealthCheckQueryKey, getProofOptions, getProofQueryKey, getReadinessOptions, getReadinessQueryKey, getUnclaimedProofsOptions, getUnclaimedProofsQueryKey, listAllocationsInfiniteOptions, listAllocationsInfiniteQueryKey, listAllocationsOptions, listAllocationsQueryKey, listDistributionsInfiniteOptions, listDistributionsInfiniteQueryKey, listDistributionsOptions, listDistributionsQueryKey, listExcludedAllocationsOptions, listExcludedAllocationsQueryKey } from './generated/index.js';
|
|
18
|
+
//# sourceMappingURL=react.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react.js","sourceRoot":"","sources":["../src/react.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,6EAA6E;AAC7E,4EAA4E;AAC5E,4DAA4D;AAC5D,EAAE;AACF,oEAAoE;AACpE,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,4BAA4B;AAC5B,EAAE;AACF,0EAA0E;AAC1E,qDAAqD;AACrD,EAAE;AACF,kGAAkG;AAClG,2FAA2F;AAC3F,OAAO,EACL,kCAAkC,EAClC,mCAAmC,EACnC,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,uBAAuB,EACvB,qBAAqB,EACrB,sBAAsB,EACtB,eAAe,EACf,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACpB,yBAAyB,EACzB,0BAA0B,EAC1B,8BAA8B,EAC9B,+BAA+B,EAC/B,sBAAsB,EACtB,uBAAuB,EACvB,gCAAgC,EAChC,iCAAiC,EACjC,wBAAwB,EACxB,yBAAyB,EACzB,8BAA8B,EAC9B,+BAA+B,EAChC,MAAM,sBAAsB,CAAC"}
|