@polygonlabs/staking-api-client 1.7.0 → 1.8.1
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/CHANGELOG.md +21 -0
- package/README.md +72 -0
- package/dist/generated/@tanstack/react-query.gen.d.ts +305 -18
- package/dist/generated/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/generated/registry-validator.gen.d.ts +52 -0
- package/dist/generated/registry-validator.gen.d.ts.map +1 -1
- package/dist/generated/types.gen.d.ts +48 -3
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @polygonlabs/staking-api-client
|
|
2
2
|
|
|
3
|
+
## 1.8.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#350](https://github.com/0xPolygon/staking-api/pull/350) [`ed5352e`](https://github.com/0xPolygon/staking-api/commit/ed5352eb831079b745244b952be0f490755c208d) Thanks [@shan8851](https://github.com/shan8851)! - Document paging through lists with the cursor operations in the README: the `nextCursor` loop, the page-size and filter rules, and a `useInfiniteQuery` example for React
|
|
8
|
+
|
|
9
|
+
## 1.8.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [#348](https://github.com/0xPolygon/staking-api/pull/348) [`9fc15fd`](https://github.com/0xPolygon/staking-api/commit/9fc15fd4438b3bb36906cba882da1afe6f2a7d47) Thanks [@shan8851](https://github.com/shan8851)! - The v3 delegator, checkpoints-signed, delegations-by-user and unbonds responses are now fully typed in the OpenAPI spec and the generated client instead of untyped objects.
|
|
14
|
+
|
|
15
|
+
- Delegator list and cursor-page rows, checkpoints-signed rows (offset and cursor), delegations-by-user positions (including `liquidRewards`) and unbond records (including `withdrawEpoch`) now declare every field, including which of them can be `null` or absent.
|
|
16
|
+
- `GET /api/v3/delegators/{address}` is now typed as a plain array of positions. An address with no delegations returns `[]`, as before.
|
|
17
|
+
- The JSON returned is unchanged.
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies [[`9fc15fd`](https://github.com/0xPolygon/staking-api/commit/9fc15fd4438b3bb36906cba882da1afe6f2a7d47)]:
|
|
22
|
+
- @polygonlabs/staking-api-schemas@1.8.0
|
|
23
|
+
|
|
3
24
|
## 1.7.0
|
|
4
25
|
|
|
5
26
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -32,6 +32,78 @@ client.setConfig({ baseUrl: 'https://staking-api.polygon.technology' });
|
|
|
32
32
|
const { data } = await getAllValidatorsV3();
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
+
## Paging through lists
|
|
36
|
+
|
|
37
|
+
Use the cursor operations (`*PageV2` / `*PageV3`, served on the `/page`
|
|
38
|
+
routes) for every paged list. The offset operations (`limit`/`offset`) are
|
|
39
|
+
being deprecated: a deep offset makes the server walk and bill every
|
|
40
|
+
skipped row, while a cursor page is a single index seek, and its fixed URL
|
|
41
|
+
lets the Cloudflare edge serve it once for every client.
|
|
42
|
+
|
|
43
|
+
Leave out `cursor` to get the first page. Each page returns
|
|
44
|
+
`pagination.nextCursor`. Pass it back as `cursor` until it comes back as
|
|
45
|
+
`null`, which happens exactly on the last page:
|
|
46
|
+
|
|
47
|
+
```ts
|
|
48
|
+
import { getCheckpointsSignedPageV3 } from '@polygonlabs/staking-api-client';
|
|
49
|
+
|
|
50
|
+
let cursor: string | undefined;
|
|
51
|
+
do {
|
|
52
|
+
const { data } = await getCheckpointsSignedPageV3({
|
|
53
|
+
path: { validatorId: 7 },
|
|
54
|
+
query: { cursor, limit: 100 },
|
|
55
|
+
throwOnError: true
|
|
56
|
+
});
|
|
57
|
+
for (const checkpoint of data.result.checkpointsSigned) {
|
|
58
|
+
// ...
|
|
59
|
+
}
|
|
60
|
+
cursor = data.pagination.nextCursor ?? undefined;
|
|
61
|
+
} while (cursor);
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Rules a walk must follow:
|
|
65
|
+
|
|
66
|
+
- **The cursor is opaque.** Don't build or edit one. A cursor that doesn't
|
|
67
|
+
decode is a `400`, never a silent first page.
|
|
68
|
+
- **`limit` is one of 20, 50, 100 or 500**, and defaults to 20. Any other
|
|
69
|
+
value is a `400`. The fixed list keeps URLs identical across clients so
|
|
70
|
+
the edge cache is shared.
|
|
71
|
+
- **Send the same filters on every page** (e.g. `startTimestamp` /
|
|
72
|
+
`endTimestamp`). The cursor holds only the position, not the filters.
|
|
73
|
+
- **Totals and counters appear on the first page only** (`pagination.total`,
|
|
74
|
+
and `numberOfCheckpointsSigned` / `numberOfCheckpointsMissed` on
|
|
75
|
+
checkpoints). Later pages omit them so they stay byte-identical and
|
|
76
|
+
cacheable. Delegator pages carry no `total` at all.
|
|
77
|
+
|
|
78
|
+
### React
|
|
79
|
+
|
|
80
|
+
The `/react` entry point has no `*InfiniteOptions` factory for the cursor
|
|
81
|
+
operations: the codegen plugin skips infinite queries for any operation with
|
|
82
|
+
a registered query schema, and every cursor operation has one. Call the SDK
|
|
83
|
+
function from `useInfiniteQuery` instead:
|
|
84
|
+
|
|
85
|
+
```tsx
|
|
86
|
+
import { useInfiniteQuery } from '@tanstack/react-query';
|
|
87
|
+
|
|
88
|
+
import { getCheckpointsSignedPageV3 } from '@polygonlabs/staking-api-client';
|
|
89
|
+
|
|
90
|
+
const useCheckpoints = (validatorId: number) =>
|
|
91
|
+
useInfiniteQuery({
|
|
92
|
+
queryKey: ['checkpoints-signed', validatorId],
|
|
93
|
+
initialPageParam: undefined as string | undefined,
|
|
94
|
+
queryFn: async ({ pageParam, signal }) => {
|
|
95
|
+
const { data } = await getCheckpointsSignedPageV3({
|
|
96
|
+
path: { validatorId },
|
|
97
|
+
query: { cursor: pageParam },
|
|
98
|
+
signal,
|
|
99
|
+
throwOnError: true
|
|
100
|
+
});
|
|
101
|
+
return data;
|
|
102
|
+
},
|
|
103
|
+
getNextPageParam: (lastPage) => lastPage.pagination.nextCursor ?? undefined
|
|
104
|
+
});
|
|
105
|
+
```
|
|
106
|
+
|
|
35
107
|
## Entry points
|
|
36
108
|
|
|
37
109
|
- `@polygonlabs/staking-api-client` — the fetch-based SDK: one function per
|
|
@@ -225,6 +225,22 @@ export declare const getCheckpointsSignedByValidatorV3Options: (options: Options
|
|
|
225
225
|
success: boolean;
|
|
226
226
|
result?: {
|
|
227
227
|
[x: string]: unknown;
|
|
228
|
+
totalCount: number;
|
|
229
|
+
numberOfCheckpointsMissed: number;
|
|
230
|
+
numberOfCheckpointsSigned: number;
|
|
231
|
+
checkpointsSigned: {
|
|
232
|
+
[x: string]: unknown;
|
|
233
|
+
checkpointNumber: number;
|
|
234
|
+
transactionHash: string;
|
|
235
|
+
signerAddress: string;
|
|
236
|
+
timestamp: number;
|
|
237
|
+
totalReward: string;
|
|
238
|
+
validatorReward: string;
|
|
239
|
+
commissionedReward: string;
|
|
240
|
+
delegatorsReward: string;
|
|
241
|
+
proposer?: boolean | undefined;
|
|
242
|
+
validatorId?: string | undefined;
|
|
243
|
+
}[];
|
|
228
244
|
} | undefined;
|
|
229
245
|
error?: string | undefined;
|
|
230
246
|
}, GetCheckpointsSignedByValidatorV3Error, {
|
|
@@ -232,6 +248,22 @@ export declare const getCheckpointsSignedByValidatorV3Options: (options: Options
|
|
|
232
248
|
success: boolean;
|
|
233
249
|
result?: {
|
|
234
250
|
[x: string]: unknown;
|
|
251
|
+
totalCount: number;
|
|
252
|
+
numberOfCheckpointsMissed: number;
|
|
253
|
+
numberOfCheckpointsSigned: number;
|
|
254
|
+
checkpointsSigned: {
|
|
255
|
+
[x: string]: unknown;
|
|
256
|
+
checkpointNumber: number;
|
|
257
|
+
transactionHash: string;
|
|
258
|
+
signerAddress: string;
|
|
259
|
+
timestamp: number;
|
|
260
|
+
totalReward: string;
|
|
261
|
+
validatorReward: string;
|
|
262
|
+
commissionedReward: string;
|
|
263
|
+
delegatorsReward: string;
|
|
264
|
+
proposer?: boolean | undefined;
|
|
265
|
+
validatorId?: string | undefined;
|
|
266
|
+
}[];
|
|
235
267
|
} | undefined;
|
|
236
268
|
error?: string | undefined;
|
|
237
269
|
}, [Pick<Options<GetCheckpointsSignedByValidatorV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
@@ -244,6 +276,22 @@ export declare const getCheckpointsSignedByValidatorV3Options: (options: Options
|
|
|
244
276
|
success: boolean;
|
|
245
277
|
result?: {
|
|
246
278
|
[x: string]: unknown;
|
|
279
|
+
totalCount: number;
|
|
280
|
+
numberOfCheckpointsMissed: number;
|
|
281
|
+
numberOfCheckpointsSigned: number;
|
|
282
|
+
checkpointsSigned: {
|
|
283
|
+
[x: string]: unknown;
|
|
284
|
+
checkpointNumber: number;
|
|
285
|
+
transactionHash: string;
|
|
286
|
+
signerAddress: string;
|
|
287
|
+
timestamp: number;
|
|
288
|
+
totalReward: string;
|
|
289
|
+
validatorReward: string;
|
|
290
|
+
commissionedReward: string;
|
|
291
|
+
delegatorsReward: string;
|
|
292
|
+
proposer?: boolean | undefined;
|
|
293
|
+
validatorId?: string | undefined;
|
|
294
|
+
}[];
|
|
247
295
|
} | undefined;
|
|
248
296
|
error?: string | undefined;
|
|
249
297
|
}, [Pick<Options<GetCheckpointsSignedByValidatorV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
@@ -262,6 +310,22 @@ export declare const getCheckpointsSignedByValidatorV3Options: (options: Options
|
|
|
262
310
|
success: boolean;
|
|
263
311
|
result?: {
|
|
264
312
|
[x: string]: unknown;
|
|
313
|
+
totalCount: number;
|
|
314
|
+
numberOfCheckpointsMissed: number;
|
|
315
|
+
numberOfCheckpointsSigned: number;
|
|
316
|
+
checkpointsSigned: {
|
|
317
|
+
[x: string]: unknown;
|
|
318
|
+
checkpointNumber: number;
|
|
319
|
+
transactionHash: string;
|
|
320
|
+
signerAddress: string;
|
|
321
|
+
timestamp: number;
|
|
322
|
+
totalReward: string;
|
|
323
|
+
validatorReward: string;
|
|
324
|
+
commissionedReward: string;
|
|
325
|
+
delegatorsReward: string;
|
|
326
|
+
proposer?: boolean | undefined;
|
|
327
|
+
validatorId?: string | undefined;
|
|
328
|
+
}[];
|
|
265
329
|
} | undefined;
|
|
266
330
|
error?: string | undefined;
|
|
267
331
|
};
|
|
@@ -277,6 +341,22 @@ export declare const getCheckpointsSignedByValidatorV3InfiniteOptions: (options:
|
|
|
277
341
|
success: boolean;
|
|
278
342
|
result?: {
|
|
279
343
|
[x: string]: unknown;
|
|
344
|
+
totalCount: number;
|
|
345
|
+
numberOfCheckpointsMissed: number;
|
|
346
|
+
numberOfCheckpointsSigned: number;
|
|
347
|
+
checkpointsSigned: {
|
|
348
|
+
[x: string]: unknown;
|
|
349
|
+
checkpointNumber: number;
|
|
350
|
+
transactionHash: string;
|
|
351
|
+
signerAddress: string;
|
|
352
|
+
timestamp: number;
|
|
353
|
+
totalReward: string;
|
|
354
|
+
validatorReward: string;
|
|
355
|
+
commissionedReward: string;
|
|
356
|
+
delegatorsReward: string;
|
|
357
|
+
proposer?: boolean | undefined;
|
|
358
|
+
validatorId?: string | undefined;
|
|
359
|
+
}[];
|
|
280
360
|
} | undefined;
|
|
281
361
|
error?: string | undefined;
|
|
282
362
|
}, GetCheckpointsSignedByValidatorV3Error, InfiniteData<{
|
|
@@ -284,6 +364,22 @@ export declare const getCheckpointsSignedByValidatorV3InfiniteOptions: (options:
|
|
|
284
364
|
success: boolean;
|
|
285
365
|
result?: {
|
|
286
366
|
[x: string]: unknown;
|
|
367
|
+
totalCount: number;
|
|
368
|
+
numberOfCheckpointsMissed: number;
|
|
369
|
+
numberOfCheckpointsSigned: number;
|
|
370
|
+
checkpointsSigned: {
|
|
371
|
+
[x: string]: unknown;
|
|
372
|
+
checkpointNumber: number;
|
|
373
|
+
transactionHash: string;
|
|
374
|
+
signerAddress: string;
|
|
375
|
+
timestamp: number;
|
|
376
|
+
totalReward: string;
|
|
377
|
+
validatorReward: string;
|
|
378
|
+
commissionedReward: string;
|
|
379
|
+
delegatorsReward: string;
|
|
380
|
+
proposer?: boolean | undefined;
|
|
381
|
+
validatorId?: string | undefined;
|
|
382
|
+
}[];
|
|
287
383
|
} | undefined;
|
|
288
384
|
error?: string | undefined;
|
|
289
385
|
}, unknown>, QueryKey<Options<GetCheckpointsSignedByValidatorV3Data>>, number | Pick<Pick<Options<GetCheckpointsSignedByValidatorV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
@@ -296,6 +392,22 @@ export declare const getCheckpointsSignedByValidatorV3InfiniteOptions: (options:
|
|
|
296
392
|
success: boolean;
|
|
297
393
|
result?: {
|
|
298
394
|
[x: string]: unknown;
|
|
395
|
+
totalCount: number;
|
|
396
|
+
numberOfCheckpointsMissed: number;
|
|
397
|
+
numberOfCheckpointsSigned: number;
|
|
398
|
+
checkpointsSigned: {
|
|
399
|
+
[x: string]: unknown;
|
|
400
|
+
checkpointNumber: number;
|
|
401
|
+
transactionHash: string;
|
|
402
|
+
signerAddress: string;
|
|
403
|
+
timestamp: number;
|
|
404
|
+
totalReward: string;
|
|
405
|
+
validatorReward: string;
|
|
406
|
+
commissionedReward: string;
|
|
407
|
+
delegatorsReward: string;
|
|
408
|
+
proposer?: boolean | undefined;
|
|
409
|
+
validatorId?: string | undefined;
|
|
410
|
+
}[];
|
|
299
411
|
} | undefined;
|
|
300
412
|
error?: string | undefined;
|
|
301
413
|
}, number | Pick<Pick<Options<GetCheckpointsSignedByValidatorV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
@@ -307,6 +419,22 @@ export declare const getCheckpointsSignedByValidatorV3InfiniteOptions: (options:
|
|
|
307
419
|
success: boolean;
|
|
308
420
|
result?: {
|
|
309
421
|
[x: string]: unknown;
|
|
422
|
+
totalCount: number;
|
|
423
|
+
numberOfCheckpointsMissed: number;
|
|
424
|
+
numberOfCheckpointsSigned: number;
|
|
425
|
+
checkpointsSigned: {
|
|
426
|
+
[x: string]: unknown;
|
|
427
|
+
checkpointNumber: number;
|
|
428
|
+
transactionHash: string;
|
|
429
|
+
signerAddress: string;
|
|
430
|
+
timestamp: number;
|
|
431
|
+
totalReward: string;
|
|
432
|
+
validatorReward: string;
|
|
433
|
+
commissionedReward: string;
|
|
434
|
+
delegatorsReward: string;
|
|
435
|
+
proposer?: boolean | undefined;
|
|
436
|
+
validatorId?: string | undefined;
|
|
437
|
+
}[];
|
|
310
438
|
} | undefined;
|
|
311
439
|
error?: string | undefined;
|
|
312
440
|
}, number | Pick<Pick<Options<GetCheckpointsSignedByValidatorV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
@@ -321,6 +449,22 @@ export declare const getCheckpointsSignedByValidatorV3InfiniteOptions: (options:
|
|
|
321
449
|
success: boolean;
|
|
322
450
|
result?: {
|
|
323
451
|
[x: string]: unknown;
|
|
452
|
+
totalCount: number;
|
|
453
|
+
numberOfCheckpointsMissed: number;
|
|
454
|
+
numberOfCheckpointsSigned: number;
|
|
455
|
+
checkpointsSigned: {
|
|
456
|
+
[x: string]: unknown;
|
|
457
|
+
checkpointNumber: number;
|
|
458
|
+
transactionHash: string;
|
|
459
|
+
signerAddress: string;
|
|
460
|
+
timestamp: number;
|
|
461
|
+
totalReward: string;
|
|
462
|
+
validatorReward: string;
|
|
463
|
+
commissionedReward: string;
|
|
464
|
+
delegatorsReward: string;
|
|
465
|
+
proposer?: boolean | undefined;
|
|
466
|
+
validatorId?: string | undefined;
|
|
467
|
+
}[];
|
|
324
468
|
} | undefined;
|
|
325
469
|
error?: string | undefined;
|
|
326
470
|
}, unknown>;
|
|
@@ -340,6 +484,10 @@ export declare const getAllDelegatorsV3Options: (options?: Options<GetAllDelegat
|
|
|
340
484
|
success: boolean;
|
|
341
485
|
result?: {
|
|
342
486
|
[x: string]: unknown;
|
|
487
|
+
bondedValidator: number;
|
|
488
|
+
stake: string;
|
|
489
|
+
address: string;
|
|
490
|
+
claimedReward: string;
|
|
343
491
|
}[] | undefined;
|
|
344
492
|
error?: string | undefined;
|
|
345
493
|
}, GetAllDelegatorsV3Error, {
|
|
@@ -347,6 +495,10 @@ export declare const getAllDelegatorsV3Options: (options?: Options<GetAllDelegat
|
|
|
347
495
|
success: boolean;
|
|
348
496
|
result?: {
|
|
349
497
|
[x: string]: unknown;
|
|
498
|
+
bondedValidator: number;
|
|
499
|
+
stake: string;
|
|
500
|
+
address: string;
|
|
501
|
+
claimedReward: string;
|
|
350
502
|
}[] | undefined;
|
|
351
503
|
error?: string | undefined;
|
|
352
504
|
}, [Pick<Options<GetAllDelegatorsV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
@@ -359,6 +511,10 @@ export declare const getAllDelegatorsV3Options: (options?: Options<GetAllDelegat
|
|
|
359
511
|
success: boolean;
|
|
360
512
|
result?: {
|
|
361
513
|
[x: string]: unknown;
|
|
514
|
+
bondedValidator: number;
|
|
515
|
+
stake: string;
|
|
516
|
+
address: string;
|
|
517
|
+
claimedReward: string;
|
|
362
518
|
}[] | undefined;
|
|
363
519
|
error?: string | undefined;
|
|
364
520
|
}, [Pick<Options<GetAllDelegatorsV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
@@ -377,6 +533,10 @@ export declare const getAllDelegatorsV3Options: (options?: Options<GetAllDelegat
|
|
|
377
533
|
success: boolean;
|
|
378
534
|
result?: {
|
|
379
535
|
[x: string]: unknown;
|
|
536
|
+
bondedValidator: number;
|
|
537
|
+
stake: string;
|
|
538
|
+
address: string;
|
|
539
|
+
claimedReward: string;
|
|
380
540
|
}[] | undefined;
|
|
381
541
|
error?: string | undefined;
|
|
382
542
|
};
|
|
@@ -392,6 +552,10 @@ export declare const getAllDelegatorsV3InfiniteOptions: (options?: Options<GetAl
|
|
|
392
552
|
success: boolean;
|
|
393
553
|
result?: {
|
|
394
554
|
[x: string]: unknown;
|
|
555
|
+
bondedValidator: number;
|
|
556
|
+
stake: string;
|
|
557
|
+
address: string;
|
|
558
|
+
claimedReward: string;
|
|
395
559
|
}[] | undefined;
|
|
396
560
|
error?: string | undefined;
|
|
397
561
|
}, GetAllDelegatorsV3Error, InfiniteData<{
|
|
@@ -399,6 +563,10 @@ export declare const getAllDelegatorsV3InfiniteOptions: (options?: Options<GetAl
|
|
|
399
563
|
success: boolean;
|
|
400
564
|
result?: {
|
|
401
565
|
[x: string]: unknown;
|
|
566
|
+
bondedValidator: number;
|
|
567
|
+
stake: string;
|
|
568
|
+
address: string;
|
|
569
|
+
claimedReward: string;
|
|
402
570
|
}[] | undefined;
|
|
403
571
|
error?: string | undefined;
|
|
404
572
|
}, unknown>, QueryKey<Options<GetAllDelegatorsV3Data>>, number | Pick<Pick<Options<GetAllDelegatorsV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
@@ -411,6 +579,10 @@ export declare const getAllDelegatorsV3InfiniteOptions: (options?: Options<GetAl
|
|
|
411
579
|
success: boolean;
|
|
412
580
|
result?: {
|
|
413
581
|
[x: string]: unknown;
|
|
582
|
+
bondedValidator: number;
|
|
583
|
+
stake: string;
|
|
584
|
+
address: string;
|
|
585
|
+
claimedReward: string;
|
|
414
586
|
}[] | undefined;
|
|
415
587
|
error?: string | undefined;
|
|
416
588
|
}, number | Pick<Pick<Options<GetAllDelegatorsV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
@@ -422,6 +594,10 @@ export declare const getAllDelegatorsV3InfiniteOptions: (options?: Options<GetAl
|
|
|
422
594
|
success: boolean;
|
|
423
595
|
result?: {
|
|
424
596
|
[x: string]: unknown;
|
|
597
|
+
bondedValidator: number;
|
|
598
|
+
stake: string;
|
|
599
|
+
address: string;
|
|
600
|
+
claimedReward: string;
|
|
425
601
|
}[] | undefined;
|
|
426
602
|
error?: string | undefined;
|
|
427
603
|
}, number | Pick<Pick<Options<GetAllDelegatorsV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
@@ -436,6 +612,10 @@ export declare const getAllDelegatorsV3InfiniteOptions: (options?: Options<GetAl
|
|
|
436
612
|
success: boolean;
|
|
437
613
|
result?: {
|
|
438
614
|
[x: string]: unknown;
|
|
615
|
+
bondedValidator: number;
|
|
616
|
+
stake: string;
|
|
617
|
+
address: string;
|
|
618
|
+
claimedReward: string;
|
|
439
619
|
}[] | undefined;
|
|
440
620
|
error?: string | undefined;
|
|
441
621
|
}, unknown>;
|
|
@@ -455,8 +635,11 @@ export declare const getDelegationsByUserV3Options: (options: Options<GetDelegat
|
|
|
455
635
|
success: boolean;
|
|
456
636
|
result?: {
|
|
457
637
|
[x: string]: unknown;
|
|
458
|
-
|
|
459
|
-
|
|
638
|
+
unclaimedAmount: string;
|
|
639
|
+
bondedValidator: number;
|
|
640
|
+
stake: string;
|
|
641
|
+
address: string;
|
|
642
|
+
claimedReward: string;
|
|
460
643
|
liquidRewards: string | null;
|
|
461
644
|
}[] | undefined;
|
|
462
645
|
error?: string | undefined;
|
|
@@ -465,8 +648,11 @@ export declare const getDelegationsByUserV3Options: (options: Options<GetDelegat
|
|
|
465
648
|
success: boolean;
|
|
466
649
|
result?: {
|
|
467
650
|
[x: string]: unknown;
|
|
468
|
-
|
|
469
|
-
|
|
651
|
+
unclaimedAmount: string;
|
|
652
|
+
bondedValidator: number;
|
|
653
|
+
stake: string;
|
|
654
|
+
address: string;
|
|
655
|
+
claimedReward: string;
|
|
470
656
|
liquidRewards: string | null;
|
|
471
657
|
}[] | undefined;
|
|
472
658
|
error?: string | undefined;
|
|
@@ -480,8 +666,11 @@ export declare const getDelegationsByUserV3Options: (options: Options<GetDelegat
|
|
|
480
666
|
success: boolean;
|
|
481
667
|
result?: {
|
|
482
668
|
[x: string]: unknown;
|
|
483
|
-
|
|
484
|
-
|
|
669
|
+
unclaimedAmount: string;
|
|
670
|
+
bondedValidator: number;
|
|
671
|
+
stake: string;
|
|
672
|
+
address: string;
|
|
673
|
+
claimedReward: string;
|
|
485
674
|
liquidRewards: string | null;
|
|
486
675
|
}[] | undefined;
|
|
487
676
|
error?: string | undefined;
|
|
@@ -501,8 +690,11 @@ export declare const getDelegationsByUserV3Options: (options: Options<GetDelegat
|
|
|
501
690
|
success: boolean;
|
|
502
691
|
result?: {
|
|
503
692
|
[x: string]: unknown;
|
|
504
|
-
|
|
505
|
-
|
|
693
|
+
unclaimedAmount: string;
|
|
694
|
+
bondedValidator: number;
|
|
695
|
+
stake: string;
|
|
696
|
+
address: string;
|
|
697
|
+
claimedReward: string;
|
|
506
698
|
liquidRewards: string | null;
|
|
507
699
|
}[] | undefined;
|
|
508
700
|
error?: string | undefined;
|
|
@@ -519,8 +711,11 @@ export declare const getDelegationsByUserV3InfiniteOptions: (options: Options<Ge
|
|
|
519
711
|
success: boolean;
|
|
520
712
|
result?: {
|
|
521
713
|
[x: string]: unknown;
|
|
522
|
-
|
|
523
|
-
|
|
714
|
+
unclaimedAmount: string;
|
|
715
|
+
bondedValidator: number;
|
|
716
|
+
stake: string;
|
|
717
|
+
address: string;
|
|
718
|
+
claimedReward: string;
|
|
524
719
|
liquidRewards: string | null;
|
|
525
720
|
}[] | undefined;
|
|
526
721
|
error?: string | undefined;
|
|
@@ -529,8 +724,11 @@ export declare const getDelegationsByUserV3InfiniteOptions: (options: Options<Ge
|
|
|
529
724
|
success: boolean;
|
|
530
725
|
result?: {
|
|
531
726
|
[x: string]: unknown;
|
|
532
|
-
|
|
533
|
-
|
|
727
|
+
unclaimedAmount: string;
|
|
728
|
+
bondedValidator: number;
|
|
729
|
+
stake: string;
|
|
730
|
+
address: string;
|
|
731
|
+
claimedReward: string;
|
|
534
732
|
liquidRewards: string | null;
|
|
535
733
|
}[] | undefined;
|
|
536
734
|
error?: string | undefined;
|
|
@@ -544,8 +742,11 @@ export declare const getDelegationsByUserV3InfiniteOptions: (options: Options<Ge
|
|
|
544
742
|
success: boolean;
|
|
545
743
|
result?: {
|
|
546
744
|
[x: string]: unknown;
|
|
547
|
-
|
|
548
|
-
|
|
745
|
+
unclaimedAmount: string;
|
|
746
|
+
bondedValidator: number;
|
|
747
|
+
stake: string;
|
|
748
|
+
address: string;
|
|
749
|
+
claimedReward: string;
|
|
549
750
|
liquidRewards: string | null;
|
|
550
751
|
}[] | undefined;
|
|
551
752
|
error?: string | undefined;
|
|
@@ -558,8 +759,11 @@ export declare const getDelegationsByUserV3InfiniteOptions: (options: Options<Ge
|
|
|
558
759
|
success: boolean;
|
|
559
760
|
result?: {
|
|
560
761
|
[x: string]: unknown;
|
|
561
|
-
|
|
562
|
-
|
|
762
|
+
unclaimedAmount: string;
|
|
763
|
+
bondedValidator: number;
|
|
764
|
+
stake: string;
|
|
765
|
+
address: string;
|
|
766
|
+
claimedReward: string;
|
|
563
767
|
liquidRewards: string | null;
|
|
564
768
|
}[] | undefined;
|
|
565
769
|
error?: string | undefined;
|
|
@@ -575,8 +779,11 @@ export declare const getDelegationsByUserV3InfiniteOptions: (options: Options<Ge
|
|
|
575
779
|
success: boolean;
|
|
576
780
|
result?: {
|
|
577
781
|
[x: string]: unknown;
|
|
578
|
-
|
|
579
|
-
|
|
782
|
+
unclaimedAmount: string;
|
|
783
|
+
bondedValidator: number;
|
|
784
|
+
stake: string;
|
|
785
|
+
address: string;
|
|
786
|
+
claimedReward: string;
|
|
580
787
|
liquidRewards: string | null;
|
|
581
788
|
}[] | undefined;
|
|
582
789
|
error?: string | undefined;
|
|
@@ -598,6 +805,17 @@ export declare const getDelegatorUnbondsV3Options: (options: Options<GetDelegato
|
|
|
598
805
|
result?: {
|
|
599
806
|
[x: string]: unknown;
|
|
600
807
|
withdrawEpoch: number | null;
|
|
808
|
+
id: string;
|
|
809
|
+
amount: string;
|
|
810
|
+
nonce: string;
|
|
811
|
+
completed: boolean;
|
|
812
|
+
validatorId: string;
|
|
813
|
+
user: string;
|
|
814
|
+
tokens: string;
|
|
815
|
+
unbondStartedTxHash: string;
|
|
816
|
+
unbondStartedTimeStamp: string;
|
|
817
|
+
unbondClaimedTxHash: string | null;
|
|
818
|
+
unbondClaimedTimeStamp: string | null;
|
|
601
819
|
}[] | undefined;
|
|
602
820
|
error?: string | undefined;
|
|
603
821
|
}, GetDelegatorUnbondsV3Error, {
|
|
@@ -606,6 +824,17 @@ export declare const getDelegatorUnbondsV3Options: (options: Options<GetDelegato
|
|
|
606
824
|
result?: {
|
|
607
825
|
[x: string]: unknown;
|
|
608
826
|
withdrawEpoch: number | null;
|
|
827
|
+
id: string;
|
|
828
|
+
amount: string;
|
|
829
|
+
nonce: string;
|
|
830
|
+
completed: boolean;
|
|
831
|
+
validatorId: string;
|
|
832
|
+
user: string;
|
|
833
|
+
tokens: string;
|
|
834
|
+
unbondStartedTxHash: string;
|
|
835
|
+
unbondStartedTimeStamp: string;
|
|
836
|
+
unbondClaimedTxHash: string | null;
|
|
837
|
+
unbondClaimedTimeStamp: string | null;
|
|
609
838
|
}[] | undefined;
|
|
610
839
|
error?: string | undefined;
|
|
611
840
|
}, [Pick<Options<GetDelegatorUnbondsV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
@@ -619,6 +848,17 @@ export declare const getDelegatorUnbondsV3Options: (options: Options<GetDelegato
|
|
|
619
848
|
result?: {
|
|
620
849
|
[x: string]: unknown;
|
|
621
850
|
withdrawEpoch: number | null;
|
|
851
|
+
id: string;
|
|
852
|
+
amount: string;
|
|
853
|
+
nonce: string;
|
|
854
|
+
completed: boolean;
|
|
855
|
+
validatorId: string;
|
|
856
|
+
user: string;
|
|
857
|
+
tokens: string;
|
|
858
|
+
unbondStartedTxHash: string;
|
|
859
|
+
unbondStartedTimeStamp: string;
|
|
860
|
+
unbondClaimedTxHash: string | null;
|
|
861
|
+
unbondClaimedTimeStamp: string | null;
|
|
622
862
|
}[] | undefined;
|
|
623
863
|
error?: string | undefined;
|
|
624
864
|
}, [Pick<Options<GetDelegatorUnbondsV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
@@ -638,6 +878,17 @@ export declare const getDelegatorUnbondsV3Options: (options: Options<GetDelegato
|
|
|
638
878
|
result?: {
|
|
639
879
|
[x: string]: unknown;
|
|
640
880
|
withdrawEpoch: number | null;
|
|
881
|
+
id: string;
|
|
882
|
+
amount: string;
|
|
883
|
+
nonce: string;
|
|
884
|
+
completed: boolean;
|
|
885
|
+
validatorId: string;
|
|
886
|
+
user: string;
|
|
887
|
+
tokens: string;
|
|
888
|
+
unbondStartedTxHash: string;
|
|
889
|
+
unbondStartedTimeStamp: string;
|
|
890
|
+
unbondClaimedTxHash: string | null;
|
|
891
|
+
unbondClaimedTimeStamp: string | null;
|
|
641
892
|
}[] | undefined;
|
|
642
893
|
error?: string | undefined;
|
|
643
894
|
};
|
|
@@ -657,6 +908,10 @@ export declare const getValidatorDelegatorsV3Options: (options: Options<GetValid
|
|
|
657
908
|
success: boolean;
|
|
658
909
|
result?: {
|
|
659
910
|
[x: string]: unknown;
|
|
911
|
+
bondedValidator: number;
|
|
912
|
+
stake: string;
|
|
913
|
+
address: string;
|
|
914
|
+
claimedReward: string;
|
|
660
915
|
}[] | undefined;
|
|
661
916
|
error?: string | undefined;
|
|
662
917
|
}, GetValidatorDelegatorsV3Error, {
|
|
@@ -664,6 +919,10 @@ export declare const getValidatorDelegatorsV3Options: (options: Options<GetValid
|
|
|
664
919
|
success: boolean;
|
|
665
920
|
result?: {
|
|
666
921
|
[x: string]: unknown;
|
|
922
|
+
bondedValidator: number;
|
|
923
|
+
stake: string;
|
|
924
|
+
address: string;
|
|
925
|
+
claimedReward: string;
|
|
667
926
|
}[] | undefined;
|
|
668
927
|
error?: string | undefined;
|
|
669
928
|
}, [Pick<Options<GetValidatorDelegatorsV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
@@ -676,6 +935,10 @@ export declare const getValidatorDelegatorsV3Options: (options: Options<GetValid
|
|
|
676
935
|
success: boolean;
|
|
677
936
|
result?: {
|
|
678
937
|
[x: string]: unknown;
|
|
938
|
+
bondedValidator: number;
|
|
939
|
+
stake: string;
|
|
940
|
+
address: string;
|
|
941
|
+
claimedReward: string;
|
|
679
942
|
}[] | undefined;
|
|
680
943
|
error?: string | undefined;
|
|
681
944
|
}, [Pick<Options<GetValidatorDelegatorsV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
@@ -694,6 +957,10 @@ export declare const getValidatorDelegatorsV3Options: (options: Options<GetValid
|
|
|
694
957
|
success: boolean;
|
|
695
958
|
result?: {
|
|
696
959
|
[x: string]: unknown;
|
|
960
|
+
bondedValidator: number;
|
|
961
|
+
stake: string;
|
|
962
|
+
address: string;
|
|
963
|
+
claimedReward: string;
|
|
697
964
|
}[] | undefined;
|
|
698
965
|
error?: string | undefined;
|
|
699
966
|
};
|
|
@@ -709,6 +976,10 @@ export declare const getValidatorDelegatorsV3InfiniteOptions: (options: Options<
|
|
|
709
976
|
success: boolean;
|
|
710
977
|
result?: {
|
|
711
978
|
[x: string]: unknown;
|
|
979
|
+
bondedValidator: number;
|
|
980
|
+
stake: string;
|
|
981
|
+
address: string;
|
|
982
|
+
claimedReward: string;
|
|
712
983
|
}[] | undefined;
|
|
713
984
|
error?: string | undefined;
|
|
714
985
|
}, GetValidatorDelegatorsV3Error, InfiniteData<{
|
|
@@ -716,6 +987,10 @@ export declare const getValidatorDelegatorsV3InfiniteOptions: (options: Options<
|
|
|
716
987
|
success: boolean;
|
|
717
988
|
result?: {
|
|
718
989
|
[x: string]: unknown;
|
|
990
|
+
bondedValidator: number;
|
|
991
|
+
stake: string;
|
|
992
|
+
address: string;
|
|
993
|
+
claimedReward: string;
|
|
719
994
|
}[] | undefined;
|
|
720
995
|
error?: string | undefined;
|
|
721
996
|
}, unknown>, QueryKey<Options<GetValidatorDelegatorsV3Data>>, number | Pick<Pick<Options<GetValidatorDelegatorsV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
@@ -728,6 +1003,10 @@ export declare const getValidatorDelegatorsV3InfiniteOptions: (options: Options<
|
|
|
728
1003
|
success: boolean;
|
|
729
1004
|
result?: {
|
|
730
1005
|
[x: string]: unknown;
|
|
1006
|
+
bondedValidator: number;
|
|
1007
|
+
stake: string;
|
|
1008
|
+
address: string;
|
|
1009
|
+
claimedReward: string;
|
|
731
1010
|
}[] | undefined;
|
|
732
1011
|
error?: string | undefined;
|
|
733
1012
|
}, number | Pick<Pick<Options<GetValidatorDelegatorsV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
@@ -739,6 +1018,10 @@ export declare const getValidatorDelegatorsV3InfiniteOptions: (options: Options<
|
|
|
739
1018
|
success: boolean;
|
|
740
1019
|
result?: {
|
|
741
1020
|
[x: string]: unknown;
|
|
1021
|
+
bondedValidator: number;
|
|
1022
|
+
stake: string;
|
|
1023
|
+
address: string;
|
|
1024
|
+
claimedReward: string;
|
|
742
1025
|
}[] | undefined;
|
|
743
1026
|
error?: string | undefined;
|
|
744
1027
|
}, number | Pick<Pick<Options<GetValidatorDelegatorsV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
@@ -753,6 +1036,10 @@ export declare const getValidatorDelegatorsV3InfiniteOptions: (options: Options<
|
|
|
753
1036
|
success: boolean;
|
|
754
1037
|
result?: {
|
|
755
1038
|
[x: string]: unknown;
|
|
1039
|
+
bondedValidator: number;
|
|
1040
|
+
stake: string;
|
|
1041
|
+
address: string;
|
|
1042
|
+
claimedReward: string;
|
|
756
1043
|
}[] | undefined;
|
|
757
1044
|
error?: string | undefined;
|
|
758
1045
|
}, unknown>;
|