@berachain/graphql 0.5.2 → 0.5.3-beta.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.
@@ -1,30 +1,13 @@
1
- type paths = {
2
- "/openapi.json": {
1
+ export type paths = {
2
+ "/v0/stake/{vault}/earnings/{owner}": {
3
3
  parameters: {
4
4
  query?: never;
5
5
  header?: never;
6
6
  path?: never;
7
7
  cookie?: never;
8
8
  };
9
- get: {
10
- parameters: {
11
- query?: never;
12
- header?: never;
13
- path?: never;
14
- cookie?: never;
15
- };
16
- requestBody?: never;
17
- responses: {
18
- default: {
19
- headers: {
20
- [name: string]: unknown;
21
- };
22
- content: {
23
- "application/json": unknown;
24
- };
25
- };
26
- };
27
- };
9
+ /** @description FIFO share-lot earnings (realized/unrealized) for an owner in an LST vault, with the owner's sorted deposit/withdrawal/transfer events. */
10
+ get: operations["getStakeEarnings"];
28
11
  put?: never;
29
12
  post?: never;
30
13
  delete?: never;
@@ -33,30 +16,15 @@ type paths = {
33
16
  patch?: never;
34
17
  trace?: never;
35
18
  };
36
- "/docs": {
19
+ "/v0/stake/{vault}/stats-by-day": {
37
20
  parameters: {
38
21
  query?: never;
39
22
  header?: never;
40
23
  path?: never;
41
24
  cookie?: never;
42
25
  };
43
- get: {
44
- parameters: {
45
- query?: never;
46
- header?: never;
47
- path?: never;
48
- cookie?: never;
49
- };
50
- requestBody?: never;
51
- responses: {
52
- 204: {
53
- headers: {
54
- [name: string]: unknown;
55
- };
56
- content?: never;
57
- };
58
- };
59
- };
26
+ /** @description Per-day total_assets / total_supply snapshots for an LST vault over the requested look-back window. */
27
+ get: operations["getStakeStatsByDay"];
60
28
  put?: never;
61
29
  post?: never;
62
30
  delete?: never;
@@ -65,65 +33,15 @@ type paths = {
65
33
  patch?: never;
66
34
  trace?: never;
67
35
  };
68
- "/v0/stake/{vault}/earnings/{owner}": {
36
+ "/v0/validators": {
69
37
  parameters: {
70
38
  query?: never;
71
39
  header?: never;
72
40
  path?: never;
73
41
  cookie?: never;
74
42
  };
75
- get: {
76
- parameters: {
77
- query?: never;
78
- header?: never;
79
- path: {
80
- vault: components["schemas"]["EvmAddress"];
81
- owner: components["schemas"]["EvmAddress"];
82
- };
83
- cookie?: never;
84
- };
85
- requestBody?: never;
86
- responses: {
87
- 200: {
88
- headers: {
89
- [name: string]: unknown;
90
- };
91
- content: {
92
- "application/json": {
93
- currentDepositRate: components["schemas"]["BigIntStr"];
94
- earningsTotal: components["schemas"]["BigIntStr"];
95
- earningsRealized: components["schemas"]["BigIntStr"];
96
- earningsUnrealized: components["schemas"]["BigIntStr"];
97
- shareLots: {
98
- shares: components["schemas"]["BigIntStr"];
99
- depositRate: components["schemas"]["DecimalStr"];
100
- }[];
101
- sortedEvents: ({
102
- _height: components["schemas"]["BigIntStr"];
103
- _log_index: number;
104
- assets: components["schemas"]["BigIntStr"];
105
- shares: components["schemas"]["BigIntStr"];
106
- /** @enum {string} */
107
- _type: "deposit" | "withdrawal";
108
- sender: components["schemas"]["EvmAddress"];
109
- owner: components["schemas"]["EvmAddress"];
110
- total_assets: components["schemas"]["BigIntStr"];
111
- } | {
112
- _height: components["schemas"]["BigIntStr"];
113
- _log_index: number;
114
- assets: components["schemas"]["BigIntStr"];
115
- shares: components["schemas"]["BigIntStr"];
116
- /** @enum {string} */
117
- _type: "transfer";
118
- from: components["schemas"]["EvmAddress"];
119
- to: components["schemas"]["EvmAddress"];
120
- value: components["schemas"]["BigIntStr"];
121
- })[];
122
- };
123
- };
124
- };
125
- };
126
- };
43
+ /** @description List of all validators with current registry + boost summary. */
44
+ get: operations["listValidators"];
127
45
  put?: never;
128
46
  post?: never;
129
47
  delete?: never;
@@ -132,40 +50,15 @@ type paths = {
132
50
  patch?: never;
133
51
  trace?: never;
134
52
  };
135
- "/v0/stake/{vault}/stats-by-day": {
53
+ "/v0/validators/block-stats/{interval}/{at}": {
136
54
  parameters: {
137
55
  query?: never;
138
56
  header?: never;
139
57
  path?: never;
140
58
  cookie?: never;
141
59
  };
142
- get: {
143
- parameters: {
144
- query: {
145
- days: "30" | "60" | "90" | "365";
146
- };
147
- header?: never;
148
- path: {
149
- vault: components["schemas"]["EvmAddress"];
150
- };
151
- cookie?: never;
152
- };
153
- requestBody?: never;
154
- responses: {
155
- 200: {
156
- headers: {
157
- [name: string]: unknown;
158
- };
159
- content: {
160
- "application/json": {
161
- total_assets: components["schemas"]["BigIntStr"];
162
- total_supply: components["schemas"]["BigIntStr"];
163
- timestamp: number;
164
- }[];
165
- };
166
- };
167
- };
168
- };
60
+ /** @description Transpose of /:pubkey/block-stats: a single interval-aligned bucket across all validators, one row each. */
61
+ get: operations["getBlockStatsByBucket"];
169
62
  put?: never;
170
63
  post?: never;
171
64
  delete?: never;
@@ -174,40 +67,15 @@ type paths = {
174
67
  patch?: never;
175
68
  trace?: never;
176
69
  };
177
- "/v0/validators": {
70
+ "/v0/validators/incentives/{interval}/{at}": {
178
71
  parameters: {
179
72
  query?: never;
180
73
  header?: never;
181
74
  path?: never;
182
75
  cookie?: never;
183
76
  };
184
- get: {
185
- parameters: {
186
- query?: never;
187
- header?: never;
188
- path?: never;
189
- cookie?: never;
190
- };
191
- requestBody?: never;
192
- responses: {
193
- 200: {
194
- headers: {
195
- [name: string]: unknown;
196
- };
197
- content: {
198
- "application/json": {
199
- id: components["schemas"]["Bytes32Hex"];
200
- pubkey: components["schemas"]["ValidatorPubkeyStr"];
201
- operator: components["schemas"]["EvmAddress"];
202
- credentials: components["schemas"]["Bytes32Hex"];
203
- rewardAllocator: components["schemas"]["EvmAddress"];
204
- queuedBoosts: components["schemas"]["DecimalStr"];
205
- queuedDropBoosts: components["schemas"]["DecimalStr"];
206
- }[];
207
- };
208
- };
209
- };
210
- };
77
+ /** @description Transpose of /:pubkey/incentives: a single interval-aligned bucket across all (validator, token) pairs. */
78
+ get: operations["getIncentivesByBucket"];
211
79
  put?: never;
212
80
  post?: never;
213
81
  delete?: never;
@@ -223,48 +91,8 @@ type paths = {
223
91
  path?: never;
224
92
  cookie?: never;
225
93
  };
226
- get: {
227
- parameters: {
228
- query?: {
229
- interval?: "hour" | "day";
230
- after?: components["schemas"]["BigUintStr"];
231
- page?: string;
232
- perPage?: string;
233
- };
234
- header?: never;
235
- path: {
236
- pubkey: components["schemas"]["ValidatorPubkeyParam"];
237
- };
238
- cookie?: never;
239
- };
240
- requestBody?: never;
241
- responses: {
242
- 200: {
243
- headers: {
244
- [name: string]: unknown;
245
- };
246
- content: {
247
- "application/json": {
248
- timestamp: number;
249
- blockCount: number;
250
- earnedRewardAmount: components["schemas"]["DecimalStr"];
251
- distributedRewardAmount: components["schemas"]["DecimalStr"];
252
- allTimeBlockCount: number;
253
- allTimeEarnedRewardAmount: components["schemas"]["DecimalStr"];
254
- allTimeDistributedRewardAmount: components["schemas"]["DecimalStr"];
255
- }[];
256
- };
257
- };
258
- 400: {
259
- headers: {
260
- [name: string]: unknown;
261
- };
262
- content: {
263
- "application/json": unknown;
264
- };
265
- };
266
- };
267
- };
94
+ /** @description Time-bucketed BlockReward rollup scoped to a single validator. */
95
+ get: operations["getValidatorBlockStats"];
268
96
  put?: never;
269
97
  post?: never;
270
98
  delete?: never;
@@ -280,46 +108,8 @@ type paths = {
280
108
  path?: never;
281
109
  cookie?: never;
282
110
  };
283
- get: {
284
- parameters: {
285
- query?: {
286
- interval?: "hour" | "day";
287
- after?: components["schemas"]["BigUintStr"];
288
- page?: string;
289
- perPage?: string;
290
- };
291
- header?: never;
292
- path: {
293
- pubkey: components["schemas"]["ValidatorPubkeyParam"];
294
- };
295
- cookie?: never;
296
- };
297
- requestBody?: never;
298
- responses: {
299
- 200: {
300
- headers: {
301
- [name: string]: unknown;
302
- };
303
- content: {
304
- "application/json": {
305
- timestamp: number;
306
- validatorId: components["schemas"]["Bytes32Hex"];
307
- token: components["schemas"]["EvmAddress"];
308
- receivedTokenAmount: components["schemas"]["DecimalStr"];
309
- allTimeReceivedTokenAmount: components["schemas"]["DecimalStr"];
310
- }[];
311
- };
312
- };
313
- 400: {
314
- headers: {
315
- [name: string]: unknown;
316
- };
317
- content: {
318
- "application/json": unknown;
319
- };
320
- };
321
- };
322
- };
111
+ /** @description Time-bucketed incentive distribution rollup for a single validator (one row per bucket + token). */
112
+ get: operations["getValidatorIncentives"];
323
113
  put?: never;
324
114
  post?: never;
325
115
  delete?: never;
@@ -335,46 +125,8 @@ type paths = {
335
125
  path?: never;
336
126
  cookie?: never;
337
127
  };
338
- get: {
339
- parameters: {
340
- query?: {
341
- interval?: "hour" | "day";
342
- after?: components["schemas"]["BigUintStr"];
343
- page?: string;
344
- perPage?: string;
345
- };
346
- header?: never;
347
- path?: never;
348
- cookie?: never;
349
- };
350
- requestBody?: never;
351
- responses: {
352
- 200: {
353
- headers: {
354
- [name: string]: unknown;
355
- };
356
- content: {
357
- "application/json": {
358
- timestamp: number;
359
- blockCount: number;
360
- earnedRewardAmount: components["schemas"]["DecimalStr"];
361
- distributedRewardAmount: components["schemas"]["DecimalStr"];
362
- allTimeBlockCount: number;
363
- allTimeEarnedRewardAmount: components["schemas"]["DecimalStr"];
364
- allTimeDistributedRewardAmount: components["schemas"]["DecimalStr"];
365
- }[];
366
- };
367
- };
368
- 400: {
369
- headers: {
370
- [name: string]: unknown;
371
- };
372
- content: {
373
- "application/json": unknown;
374
- };
375
- };
376
- };
377
- };
128
+ /** @description Time-bucketed chain-wide block-reward statistics with cumulative all-time totals. */
129
+ get: operations["getBlockStats"];
378
130
  put?: never;
379
131
  post?: never;
380
132
  delete?: never;
@@ -390,49 +142,8 @@ type paths = {
390
142
  path?: never;
391
143
  cookie?: never;
392
144
  };
393
- get: {
394
- parameters: {
395
- query?: {
396
- type?: "MINT" | "REDEEM";
397
- page?: string;
398
- perPage?: string;
399
- };
400
- header?: never;
401
- path?: never;
402
- cookie?: never;
403
- };
404
- requestBody?: never;
405
- responses: {
406
- 200: {
407
- headers: {
408
- [name: string]: unknown;
409
- };
410
- content: {
411
- "application/json": {
412
- txHash: string;
413
- /** @enum {string} */
414
- type: "MINT" | "REDEEM";
415
- collaterals: {
416
- address: components["schemas"]["EvmAddress"];
417
- amount: components["schemas"]["DecimalStr"];
418
- }[];
419
- to: components["schemas"]["EvmAddress"];
420
- from: components["schemas"]["EvmAddress"];
421
- honeyAmount: components["schemas"]["DecimalStr"];
422
- timestamp: number;
423
- }[];
424
- };
425
- };
426
- 400: {
427
- headers: {
428
- [name: string]: unknown;
429
- };
430
- content: {
431
- "application/json": unknown;
432
- };
433
- };
434
- };
435
- };
145
+ /** @description Paginated list of the most recent Honey mint/redeem transactions, grouped by tx hash with per-collateral amounts. Optionally filtered to a single type via `?type=MINT|REDEEM`. */
146
+ get: operations["listHoneyTransactions"];
436
147
  put?: never;
437
148
  post?: never;
438
149
  delete?: never;
@@ -448,44 +159,8 @@ type paths = {
448
159
  path?: never;
449
160
  cookie?: never;
450
161
  };
451
- get: {
452
- parameters: {
453
- query?: {
454
- page?: string;
455
- perPage?: string;
456
- };
457
- header?: never;
458
- path: {
459
- interval: "hour" | "day" | "week" | "month";
460
- };
461
- cookie?: never;
462
- };
463
- requestBody?: never;
464
- responses: {
465
- 200: {
466
- headers: {
467
- [name: string]: unknown;
468
- };
469
- content: {
470
- "application/json": {
471
- timestamp: number;
472
- mintVolume: components["schemas"]["DecimalStr"];
473
- redeemVolume: components["schemas"]["DecimalStr"];
474
- totalVolume: components["schemas"]["DecimalStr"];
475
- totalSupply: components["schemas"]["DecimalStr"];
476
- }[];
477
- };
478
- };
479
- 400: {
480
- headers: {
481
- [name: string]: unknown;
482
- };
483
- content: {
484
- "application/json": unknown;
485
- };
486
- };
487
- };
488
- };
162
+ /** @description Time-bucketed Honey volume snapshots (mint, redeem, total) plus cumulative total supply, for a given interval granularity. */
163
+ get: operations["listHoneySnapshots"];
489
164
  put?: never;
490
165
  post?: never;
491
166
  delete?: never;
@@ -501,41 +176,8 @@ type paths = {
501
176
  path?: never;
502
177
  cookie?: never;
503
178
  };
504
- get: {
505
- parameters: {
506
- query?: never;
507
- header?: never;
508
- path: {
509
- vault: components["schemas"]["EvmAddress"];
510
- owner: components["schemas"]["EvmAddress"];
511
- };
512
- cookie?: never;
513
- };
514
- requestBody?: never;
515
- responses: {
516
- 200: {
517
- headers: {
518
- [name: string]: unknown;
519
- };
520
- content: {
521
- "application/json": {
522
- currentDepositRate: components["schemas"]["BigIntStr"];
523
- earningsTotal: string;
524
- earningsRealized: string;
525
- earningsUnrealized: string;
526
- shareLots: {
527
- shares: components["schemas"]["BigIntStr"];
528
- depositRate: unknown;
529
- }[];
530
- sortedEvents: {
531
- _height: number;
532
- _log_index: number;
533
- }[];
534
- };
535
- };
536
- };
537
- };
538
- };
179
+ /** @description FIFO share-lot earnings (realized/unrealized) for an owner in an earn vault, with the owner's sorted deposit/withdrawal/transfer events. */
180
+ get: operations["getEarnEarnings"];
539
181
  put?: never;
540
182
  post?: never;
541
183
  delete?: never;
@@ -551,34 +193,8 @@ type paths = {
551
193
  path?: never;
552
194
  cookie?: never;
553
195
  };
554
- get: {
555
- parameters: {
556
- query: {
557
- start: string;
558
- end?: string;
559
- };
560
- header?: never;
561
- path: {
562
- vault: components["schemas"]["EvmAddress"];
563
- };
564
- cookie?: never;
565
- };
566
- requestBody?: never;
567
- responses: {
568
- 200: {
569
- headers: {
570
- [name: string]: unknown;
571
- };
572
- content: {
573
- "application/json": {
574
- total_assets: components["schemas"]["BigIntStr"];
575
- total_supply: components["schemas"]["BigIntStr"];
576
- timestamp: number;
577
- }[];
578
- };
579
- };
580
- };
581
- };
196
+ /** @description Per-day total-asset snapshots derived from ExchangeRateUpdated events within a date range. */
197
+ get: operations["getEarnTotalAssetsByDay"];
582
198
  put?: never;
583
199
  post?: never;
584
200
  delete?: never;
@@ -594,33 +210,8 @@ type paths = {
594
210
  path?: never;
595
211
  cookie?: never;
596
212
  };
597
- get: {
598
- parameters: {
599
- query: {
600
- days: "30" | "60" | "90" | "365";
601
- };
602
- header?: never;
603
- path: {
604
- vault: components["schemas"]["EvmAddress"];
605
- };
606
- cookie?: never;
607
- };
608
- requestBody?: never;
609
- responses: {
610
- 200: {
611
- headers: {
612
- [name: string]: unknown;
613
- };
614
- content: {
615
- "application/json": {
616
- total_assets: components["schemas"]["BigIntStr"];
617
- total_supply: components["schemas"]["BigIntStr"];
618
- timestamp: number;
619
- }[];
620
- };
621
- };
622
- };
623
- };
213
+ /** @description Cached per-day vault stats for the last N days (30, 60, 90, or 365). */
214
+ get: operations["getEarnStatsByDay"];
624
215
  put?: never;
625
216
  post?: never;
626
217
  delete?: never;
@@ -636,35 +227,8 @@ type paths = {
636
227
  path?: never;
637
228
  cookie?: never;
638
229
  };
639
- get: {
640
- parameters: {
641
- query?: {
642
- start?: string;
643
- };
644
- header?: never;
645
- path: {
646
- vault: components["schemas"]["EvmAddress"];
647
- owner: components["schemas"]["EvmAddress"];
648
- };
649
- cookie?: never;
650
- };
651
- requestBody?: never;
652
- responses: {
653
- 200: {
654
- headers: {
655
- [name: string]: unknown;
656
- };
657
- content: {
658
- "application/json": {
659
- timestamp: number;
660
- balance: number;
661
- deposited: number;
662
- yield: number;
663
- }[];
664
- };
665
- };
666
- };
667
- };
230
+ /** @description Per-day balance, deposited, and yield chart for an owner in an earn vault. */
231
+ get: operations["getEarnDailyAssets"];
668
232
  put?: never;
669
233
  post?: never;
670
234
  delete?: never;
@@ -680,30 +244,8 @@ type paths = {
680
244
  path?: never;
681
245
  cookie?: never;
682
246
  };
683
- get: {
684
- parameters: {
685
- query?: never;
686
- header?: never;
687
- path?: never;
688
- cookie?: never;
689
- };
690
- requestBody?: never;
691
- responses: {
692
- 200: {
693
- headers: {
694
- [name: string]: unknown;
695
- };
696
- content: {
697
- "application/json": {
698
- /** @description Total BERA supply: genesis allocation plus PoL emissions minus BGT still outstanding. */
699
- totalSupply: components["schemas"]["DecimalStr"];
700
- /** @description Circulating BERA: Total BERA supply minus the amount of BERA that is locked up in the genesis vesting schedule. */
701
- circulatingSupply: components["schemas"]["DecimalStr"];
702
- };
703
- };
704
- };
705
- };
706
- };
247
+ /** @description BERA total and circulating supply. */
248
+ get: operations["getBeraSupply"];
707
249
  put?: never;
708
250
  post?: never;
709
251
  delete?: never;
@@ -719,43 +261,25 @@ type paths = {
719
261
  path?: never;
720
262
  cookie?: never;
721
263
  };
722
- get: {
723
- parameters: {
724
- query?: {
725
- orderBy?: "stakingTokenAmount" | "address";
726
- orderDirection?: "asc" | "desc";
727
- page?: string;
728
- perPage?: string;
729
- };
730
- header?: never;
731
- path?: never;
732
- cookie?: never;
733
- };
734
- requestBody?: never;
735
- responses: {
736
- 200: {
737
- headers: {
738
- [name: string]: unknown;
739
- };
740
- content: {
741
- "application/json": {
742
- address: components["schemas"]["EvmAddress"];
743
- stakingToken: components["schemas"]["EvmAddress"];
744
- stakingTokenAmount: components["schemas"]["DecimalStr"];
745
- isWhitelisted: boolean;
746
- }[];
747
- };
748
- };
749
- 400: {
750
- headers: {
751
- [name: string]: unknown;
752
- };
753
- content: {
754
- "application/json": unknown;
755
- };
756
- };
757
- };
264
+ /** @description Paginated list of all reward vaults with stakingTokenAmount + isWhitelisted. */
265
+ get: operations["listRewardVaults"];
266
+ put?: never;
267
+ post?: never;
268
+ delete?: never;
269
+ options?: never;
270
+ head?: never;
271
+ patch?: never;
272
+ trace?: never;
273
+ };
274
+ "/v0/reward-vaults/distributions/{interval}/{at}": {
275
+ parameters: {
276
+ query?: never;
277
+ header?: never;
278
+ path?: never;
279
+ cookie?: never;
758
280
  };
281
+ /** @description Transpose of /:vault/distributions: a single interval-aligned bucket across all vaults, one row each. */
282
+ get: operations["getVaultDistributionsByBucket"];
759
283
  put?: never;
760
284
  post?: never;
761
285
  delete?: never;
@@ -771,45 +295,8 @@ type paths = {
771
295
  path?: never;
772
296
  cookie?: never;
773
297
  };
774
- get: {
775
- parameters: {
776
- query?: {
777
- interval?: "hour" | "day";
778
- after?: components["schemas"]["BigUintStr"];
779
- page?: string;
780
- perPage?: string;
781
- };
782
- header?: never;
783
- path: {
784
- vault: components["schemas"]["EvmAddress"];
785
- };
786
- cookie?: never;
787
- };
788
- requestBody?: never;
789
- responses: {
790
- 200: {
791
- headers: {
792
- [name: string]: unknown;
793
- };
794
- content: {
795
- "application/json": {
796
- timestamp: number;
797
- vaultId: components["schemas"]["EvmAddress"];
798
- receivedRewardAmount: components["schemas"]["DecimalStr"];
799
- allTimeReceivedRewardAmount: components["schemas"]["DecimalStr"];
800
- }[];
801
- };
802
- };
803
- 400: {
804
- headers: {
805
- [name: string]: unknown;
806
- };
807
- content: {
808
- "application/json": unknown;
809
- };
810
- };
811
- };
812
- };
298
+ /** @description Time-bucketed Distributor.Distributed rollup keyed by receiver for a single vault. */
299
+ get: operations["getVaultDistributions"];
813
300
  put?: never;
814
301
  post?: never;
815
302
  delete?: never;
@@ -825,28 +312,25 @@ type paths = {
825
312
  path?: never;
826
313
  cookie?: never;
827
314
  };
828
- get: {
829
- parameters: {
830
- query?: never;
831
- header?: never;
832
- path?: never;
833
- cookie?: never;
834
- };
835
- requestBody?: never;
836
- responses: {
837
- 200: {
838
- headers: {
839
- [name: string]: unknown;
840
- };
841
- content: {
842
- "application/json": {
843
- totalDistributedAmount: components["schemas"]["DecimalStr"];
844
- totalQueuedBoostAmount: components["schemas"]["DecimalStr"];
845
- };
846
- };
847
- };
848
- };
315
+ /** @description Chain-wide PoL summary singleton. */
316
+ get: operations["getGlobalInfo"];
317
+ put?: never;
318
+ post?: never;
319
+ delete?: never;
320
+ options?: never;
321
+ head?: never;
322
+ patch?: never;
323
+ trace?: never;
324
+ };
325
+ "/v0/reward-vaults/incentives": {
326
+ parameters: {
327
+ query?: never;
328
+ header?: never;
329
+ path?: never;
330
+ cookie?: never;
849
331
  };
332
+ /** @description Every incentive token currently whitelisted on at least one live reward vault (unique by token address). */
333
+ get: operations["listWhitelistedIncentives"];
850
334
  put?: never;
851
335
  post?: never;
852
336
  delete?: never;
@@ -862,47 +346,8 @@ type paths = {
862
346
  path?: never;
863
347
  cookie?: never;
864
348
  };
865
- get: {
866
- parameters: {
867
- query?: {
868
- user?: components["schemas"]["EvmAddress"];
869
- vault?: components["schemas"]["EvmAddress"];
870
- afterBlock?: components["schemas"]["BigUintStr"];
871
- orderBy?: "updatedAtBlock" | "amount" | "id";
872
- orderDirection?: "asc" | "desc";
873
- page?: string;
874
- perPage?: string;
875
- };
876
- header?: never;
877
- path?: never;
878
- cookie?: never;
879
- };
880
- requestBody?: never;
881
- responses: {
882
- 200: {
883
- headers: {
884
- [name: string]: unknown;
885
- };
886
- content: {
887
- "application/json": {
888
- id: string;
889
- user: components["schemas"]["EvmAddress"];
890
- vaultId: components["schemas"]["EvmAddress"];
891
- amount: components["schemas"]["DecimalStr"];
892
- updatedAtBlock: number;
893
- }[];
894
- };
895
- };
896
- 400: {
897
- headers: {
898
- [name: string]: unknown;
899
- };
900
- content: {
901
- "application/json": unknown;
902
- };
903
- };
904
- };
905
- };
349
+ /** @description Per-(user, vault) staked-LP balances. */
350
+ get: operations["listUserVaultStakes"];
906
351
  put?: never;
907
352
  post?: never;
908
353
  delete?: never;
@@ -912,23 +357,194 @@ type paths = {
912
357
  trace?: never;
913
358
  };
914
359
  };
915
- type webhooks = Record<string, never>;
916
- type components = {
360
+ export type webhooks = Record<string, never>;
361
+ export type components = {
917
362
  schemas: {
918
- /** @description 20-byte EVM address: 0x followed by 40 hex characters */
919
- EvmAddress: string;
363
+ ValidationError: {
364
+ /** @constant */
365
+ success: false;
366
+ /** @description Validation issues that caused the rejection */
367
+ error: ({
368
+ message: string;
369
+ path?: (string | number)[];
370
+ } & {
371
+ [key: string]: unknown;
372
+ })[];
373
+ /** @description The raw request value that failed validation */
374
+ data: unknown;
375
+ };
920
376
  /** @description Signed integer encoded as a base-10 string (digits only, optional leading '-') */
921
377
  BigIntStr: string;
378
+ StakeShareLot: {
379
+ shares: components["schemas"]["BigIntStr"];
380
+ depositRate: components["schemas"]["DecimalStr"];
381
+ };
922
382
  /** @description Decimal number encoded as a string (e.g. '12', '-3.5') */
923
383
  DecimalStr: string;
924
- /** @description 32-byte hex value: 0x followed by 64 hex characters (e.g. keccak256 hash or withdrawal credentials) */
384
+ StakeEvent: components["schemas"]["StakeOwnerEvent"] | components["schemas"]["StakeTransferEvent"];
385
+ StakeOwnerEvent: {
386
+ _height: components["schemas"]["BigIntStr"];
387
+ _log_index: number;
388
+ assets: components["schemas"]["BigIntStr"];
389
+ shares: components["schemas"]["BigIntStr"];
390
+ /** @enum {string} */
391
+ _type: "deposit" | "withdrawal";
392
+ sender: components["schemas"]["EvmAddress"];
393
+ owner: components["schemas"]["EvmAddress"];
394
+ total_assets: components["schemas"]["BigIntStr"] | null;
395
+ };
396
+ /** @description 20-byte EVM address: 0x followed by 40 hex characters */
397
+ EvmAddress: string;
398
+ StakeTransferEvent: {
399
+ _height: components["schemas"]["BigIntStr"];
400
+ _log_index: number;
401
+ assets: components["schemas"]["BigIntStr"];
402
+ shares: components["schemas"]["BigIntStr"];
403
+ /** @constant */
404
+ _type: "transfer";
405
+ from: components["schemas"]["EvmAddress"];
406
+ to: components["schemas"]["EvmAddress"];
407
+ value: components["schemas"]["BigIntStr"];
408
+ };
409
+ StakeStatsByDayEntry: {
410
+ total_assets: components["schemas"]["BigIntStr"] | null;
411
+ total_supply: components["schemas"]["BigIntStr"] | null;
412
+ timestamp: number;
413
+ };
414
+ Validator: {
415
+ id: components["schemas"]["Bytes32Hex"];
416
+ pubkey: components["schemas"]["ValidatorPubkeyStr"];
417
+ credentials: components["schemas"]["Bytes32Hex"];
418
+ operator: components["schemas"]["EvmAddress"] | null;
419
+ rewardAllocator: components["schemas"]["EvmAddress"] | null;
420
+ queuedBoosts: components["schemas"]["DecimalStr"];
421
+ queuedDropBoosts: components["schemas"]["DecimalStr"];
422
+ };
423
+ /** @description 32-byte hex value: 0x followed by 64 hex characters */
925
424
  Bytes32Hex: string;
926
425
  /** @description 48-byte BLS validator pubkey: 0x followed by 96 hex characters */
927
426
  ValidatorPubkeyStr: string;
928
- /** @description Non-negative integer encoded as a base-10 string (digits only) */
929
- BigUintStr: string;
930
- /** @description 48-byte BLS validator pubkey: 0x followed by 96 hex characters */
931
- ValidatorPubkeyParam: string;
427
+ ValidatorBlockStatsByValidator: {
428
+ validatorId: components["schemas"]["Bytes32Hex"];
429
+ timestamp: number;
430
+ blockCount: number;
431
+ earnedRewardAmount: components["schemas"]["DecimalStr"];
432
+ distributedRewardAmount: components["schemas"]["DecimalStr"];
433
+ allTimeBlockCount: number;
434
+ allTimeEarnedRewardAmount: components["schemas"]["DecimalStr"];
435
+ allTimeDistributedRewardAmount: components["schemas"]["DecimalStr"];
436
+ };
437
+ ValidatorIncentiveDistribution: {
438
+ timestamp: number;
439
+ validatorId: components["schemas"]["Bytes32Hex"];
440
+ token: components["schemas"]["EvmAddress"];
441
+ receivedTokenAmount: components["schemas"]["DecimalStr"];
442
+ allTimeReceivedTokenAmount: components["schemas"]["DecimalStr"];
443
+ };
444
+ ValidatorBlockStats: {
445
+ timestamp: number;
446
+ blockCount: number;
447
+ earnedRewardAmount: components["schemas"]["DecimalStr"];
448
+ distributedRewardAmount: components["schemas"]["DecimalStr"];
449
+ allTimeBlockCount: number;
450
+ allTimeEarnedRewardAmount: components["schemas"]["DecimalStr"];
451
+ allTimeDistributedRewardAmount: components["schemas"]["DecimalStr"];
452
+ };
453
+ BlockStats: {
454
+ timestamp: number;
455
+ blockCount: number;
456
+ earnedRewardAmount: components["schemas"]["DecimalStr"];
457
+ distributedRewardAmount: components["schemas"]["DecimalStr"];
458
+ allTimeBlockCount: number;
459
+ allTimeEarnedRewardAmount: components["schemas"]["DecimalStr"];
460
+ allTimeDistributedRewardAmount: components["schemas"]["DecimalStr"];
461
+ };
462
+ HoneyLatestTransaction: {
463
+ txHash: string;
464
+ /** @enum {string} */
465
+ type: "MINT" | "REDEEM";
466
+ collaterals: components["schemas"]["HoneyCollateral"][];
467
+ to: components["schemas"]["EvmAddress"];
468
+ from: components["schemas"]["EvmAddress"];
469
+ honeyAmount: components["schemas"]["DecimalStr"];
470
+ timestamp: number;
471
+ };
472
+ HoneyCollateral: {
473
+ address: components["schemas"]["EvmAddress"];
474
+ amount: components["schemas"]["DecimalStr"];
475
+ };
476
+ HoneySnapshot: {
477
+ timestamp: number;
478
+ mintVolume: components["schemas"]["DecimalStr"];
479
+ redeemVolume: components["schemas"]["DecimalStr"];
480
+ totalVolume: components["schemas"]["DecimalStr"];
481
+ totalSupply: components["schemas"]["DecimalStr"];
482
+ };
483
+ EarnShareLot: {
484
+ shares: components["schemas"]["BigIntStr"];
485
+ depositRate: components["schemas"]["DecimalStr"];
486
+ };
487
+ EarnEvent: components["schemas"]["EarnOwnerEvent"] | components["schemas"]["EarnTransferEvent"];
488
+ EarnOwnerEvent: {
489
+ /** @enum {string} */
490
+ _type: "deposit" | "withdrawal";
491
+ _height: number;
492
+ _log_index: number;
493
+ sender: components["schemas"]["EvmAddress"];
494
+ owner: components["schemas"]["EvmAddress"];
495
+ assets: components["schemas"]["BigIntStr"];
496
+ shares: components["schemas"]["BigIntStr"];
497
+ total_assets: (components["schemas"]["BigIntStr"] | number) | null;
498
+ };
499
+ EarnTransferEvent: {
500
+ /** @constant */
501
+ _type: "transfer";
502
+ _height: number;
503
+ _log_index: number;
504
+ from: components["schemas"]["EvmAddress"];
505
+ to: components["schemas"]["EvmAddress"];
506
+ assets: components["schemas"]["BigIntStr"];
507
+ shares: components["schemas"]["BigIntStr"];
508
+ } & {
509
+ [key: string]: unknown;
510
+ };
511
+ EarnTotalAssetsByDayEntry: {
512
+ total_assets: components["schemas"]["BigIntStr"] | null;
513
+ total_supply: components["schemas"]["BigIntStr"] | null;
514
+ timestamp: number;
515
+ };
516
+ EarnDailyAssetsEntry: {
517
+ timestamp: number;
518
+ balance: number;
519
+ deposited: number;
520
+ yield: number;
521
+ };
522
+ RewardVault: {
523
+ address: components["schemas"]["EvmAddress"];
524
+ stakingToken: components["schemas"]["EvmAddress"];
525
+ stakingTokenAmount: components["schemas"]["DecimalStr"];
526
+ isWhitelisted: boolean;
527
+ };
528
+ VaultDistribution: {
529
+ timestamp: number;
530
+ vaultId: components["schemas"]["EvmAddress"];
531
+ receivedRewardAmount: components["schemas"]["DecimalStr"];
532
+ allTimeReceivedRewardAmount: components["schemas"]["DecimalStr"];
533
+ };
534
+ WhitelistedIncentive: {
535
+ address: components["schemas"]["EvmAddress"];
536
+ decimals: number;
537
+ name: string | null;
538
+ symbol: string | null;
539
+ };
540
+ UserVaultStake: {
541
+ /** @description Concatenated (user, vault) identifier */
542
+ id: string;
543
+ user: components["schemas"]["EvmAddress"];
544
+ vaultId: components["schemas"]["EvmAddress"];
545
+ amount: components["schemas"]["DecimalStr"];
546
+ updatedAtBlock: number;
547
+ };
932
548
  };
933
549
  responses: never;
934
550
  parameters: never;
@@ -936,10 +552,713 @@ type components = {
936
552
  headers: never;
937
553
  pathItems: never;
938
554
  };
939
- type $defs = Record<string, never>;
940
- type operations = Record<string, never>;
941
- type ApiSchema<TName extends keyof components["schemas"]> = components["schemas"][TName];
942
- type ApiGetResponse<TPath extends keyof paths> = paths[TPath] extends {
555
+ export type $defs = Record<string, never>;
556
+ export interface operations {
557
+ getStakeEarnings: {
558
+ parameters: {
559
+ query?: never;
560
+ header?: never;
561
+ path: {
562
+ vault: components["schemas"]["EvmAddress"];
563
+ owner: components["schemas"]["EvmAddress"];
564
+ };
565
+ cookie?: never;
566
+ };
567
+ requestBody?: never;
568
+ responses: {
569
+ /** @description Earnings, share lots, and sorted events for the owner */
570
+ 200: {
571
+ headers: {
572
+ [name: string]: unknown;
573
+ };
574
+ content: {
575
+ "application/json": {
576
+ currentDepositRate: components["schemas"]["BigIntStr"];
577
+ earningsTotal: components["schemas"]["BigIntStr"];
578
+ earningsRealized: components["schemas"]["BigIntStr"];
579
+ earningsUnrealized: components["schemas"]["BigIntStr"];
580
+ shareLots: components["schemas"]["StakeShareLot"][];
581
+ sortedEvents: components["schemas"]["StakeEvent"][];
582
+ };
583
+ };
584
+ };
585
+ /** @description Request validation failed */
586
+ 400: {
587
+ headers: {
588
+ [name: string]: unknown;
589
+ };
590
+ content: {
591
+ "application/json": components["schemas"]["ValidationError"];
592
+ };
593
+ };
594
+ };
595
+ };
596
+ getStakeStatsByDay: {
597
+ parameters: {
598
+ query: {
599
+ days: "30" | "60" | "90" | "365";
600
+ };
601
+ header?: never;
602
+ path: {
603
+ vault: components["schemas"]["EvmAddress"];
604
+ };
605
+ cookie?: never;
606
+ };
607
+ requestBody?: never;
608
+ responses: {
609
+ /** @description Per-day vault stats */
610
+ 200: {
611
+ headers: {
612
+ [name: string]: unknown;
613
+ };
614
+ content: {
615
+ "application/json": components["schemas"]["StakeStatsByDayEntry"][];
616
+ };
617
+ };
618
+ /** @description Request validation failed */
619
+ 400: {
620
+ headers: {
621
+ [name: string]: unknown;
622
+ };
623
+ content: {
624
+ "application/json": components["schemas"]["ValidationError"];
625
+ };
626
+ };
627
+ };
628
+ };
629
+ listValidators: {
630
+ parameters: {
631
+ query?: never;
632
+ header?: never;
633
+ path?: never;
634
+ cookie?: never;
635
+ };
636
+ requestBody?: never;
637
+ responses: {
638
+ /** @description Validators */
639
+ 200: {
640
+ headers: {
641
+ [name: string]: unknown;
642
+ };
643
+ content: {
644
+ "application/json": components["schemas"]["Validator"][];
645
+ };
646
+ };
647
+ };
648
+ };
649
+ getBlockStatsByBucket: {
650
+ parameters: {
651
+ query?: never;
652
+ header?: never;
653
+ path: {
654
+ interval: "hour" | "day";
655
+ at: string;
656
+ };
657
+ cookie?: never;
658
+ };
659
+ requestBody?: never;
660
+ responses: {
661
+ /** @description Block stats for the bucket, one row per validator */
662
+ 200: {
663
+ headers: {
664
+ [name: string]: unknown;
665
+ };
666
+ content: {
667
+ "application/json": components["schemas"]["ValidatorBlockStatsByValidator"][];
668
+ };
669
+ };
670
+ /** @description Request validation failed */
671
+ 400: {
672
+ headers: {
673
+ [name: string]: unknown;
674
+ };
675
+ content: {
676
+ "application/json": components["schemas"]["ValidationError"];
677
+ };
678
+ };
679
+ };
680
+ };
681
+ getIncentivesByBucket: {
682
+ parameters: {
683
+ query?: never;
684
+ header?: never;
685
+ path: {
686
+ interval: "hour" | "day";
687
+ at: string;
688
+ };
689
+ cookie?: never;
690
+ };
691
+ requestBody?: never;
692
+ responses: {
693
+ /** @description Incentive distributions for the bucket, one row per (validator, token) */
694
+ 200: {
695
+ headers: {
696
+ [name: string]: unknown;
697
+ };
698
+ content: {
699
+ "application/json": components["schemas"]["ValidatorIncentiveDistribution"][];
700
+ };
701
+ };
702
+ /** @description Request validation failed */
703
+ 400: {
704
+ headers: {
705
+ [name: string]: unknown;
706
+ };
707
+ content: {
708
+ "application/json": components["schemas"]["ValidationError"];
709
+ };
710
+ };
711
+ };
712
+ };
713
+ getValidatorBlockStats: {
714
+ parameters: {
715
+ query?: {
716
+ /** @description Page number, 1 or greater */
717
+ page?: string;
718
+ /** @description Items per page, 1–1000 (per-endpoint default) */
719
+ perPage?: string;
720
+ /** @description Time bucket size (default: day) */
721
+ interval?: "hour" | "day";
722
+ /** @description Epoch-seconds cutoff; only buckets at/after are returned */
723
+ after?: string;
724
+ };
725
+ header?: never;
726
+ path: {
727
+ pubkey: components["schemas"]["ValidatorPubkeyStr"];
728
+ };
729
+ cookie?: never;
730
+ };
731
+ requestBody?: never;
732
+ responses: {
733
+ /** @description Validator block stats */
734
+ 200: {
735
+ headers: {
736
+ [name: string]: unknown;
737
+ };
738
+ content: {
739
+ "application/json": components["schemas"]["ValidatorBlockStats"][];
740
+ };
741
+ };
742
+ /** @description Request validation failed */
743
+ 400: {
744
+ headers: {
745
+ [name: string]: unknown;
746
+ };
747
+ content: {
748
+ "application/json": components["schemas"]["ValidationError"];
749
+ };
750
+ };
751
+ };
752
+ };
753
+ getValidatorIncentives: {
754
+ parameters: {
755
+ query?: {
756
+ /** @description Page number, 1 or greater */
757
+ page?: string;
758
+ /** @description Items per page, 1–1000 (per-endpoint default) */
759
+ perPage?: string;
760
+ /** @description Time bucket size (default: day) */
761
+ interval?: "hour" | "day";
762
+ /** @description Epoch-seconds cutoff; only buckets at/after are returned */
763
+ after?: string;
764
+ };
765
+ header?: never;
766
+ path: {
767
+ pubkey: components["schemas"]["ValidatorPubkeyStr"];
768
+ };
769
+ cookie?: never;
770
+ };
771
+ requestBody?: never;
772
+ responses: {
773
+ /** @description Validator incentive distribution */
774
+ 200: {
775
+ headers: {
776
+ [name: string]: unknown;
777
+ };
778
+ content: {
779
+ "application/json": components["schemas"]["ValidatorIncentiveDistribution"][];
780
+ };
781
+ };
782
+ /** @description Request validation failed */
783
+ 400: {
784
+ headers: {
785
+ [name: string]: unknown;
786
+ };
787
+ content: {
788
+ "application/json": components["schemas"]["ValidationError"];
789
+ };
790
+ };
791
+ };
792
+ };
793
+ getBlockStats: {
794
+ parameters: {
795
+ query?: {
796
+ /** @description Page number, 1 or greater */
797
+ page?: string;
798
+ /** @description Items per page, 1–1000 (per-endpoint default) */
799
+ perPage?: string;
800
+ /** @description Time bucket size (default: day) */
801
+ interval?: "hour" | "day";
802
+ /** @description Epoch-seconds cutoff; only buckets at/after are returned */
803
+ after?: string;
804
+ };
805
+ header?: never;
806
+ path?: never;
807
+ cookie?: never;
808
+ };
809
+ requestBody?: never;
810
+ responses: {
811
+ /** @description Block stats buckets */
812
+ 200: {
813
+ headers: {
814
+ [name: string]: unknown;
815
+ };
816
+ content: {
817
+ "application/json": components["schemas"]["BlockStats"][];
818
+ };
819
+ };
820
+ /** @description Request validation failed */
821
+ 400: {
822
+ headers: {
823
+ [name: string]: unknown;
824
+ };
825
+ content: {
826
+ "application/json": components["schemas"]["ValidationError"];
827
+ };
828
+ };
829
+ };
830
+ };
831
+ listHoneyTransactions: {
832
+ parameters: {
833
+ query?: {
834
+ /** @description Page number, 1 or greater */
835
+ page?: string;
836
+ /** @description Items per page, 1–1000 (per-endpoint default) */
837
+ perPage?: string;
838
+ type?: "MINT" | "REDEEM";
839
+ };
840
+ header?: never;
841
+ path?: never;
842
+ cookie?: never;
843
+ };
844
+ requestBody?: never;
845
+ responses: {
846
+ /** @description Honey transactions */
847
+ 200: {
848
+ headers: {
849
+ [name: string]: unknown;
850
+ };
851
+ content: {
852
+ "application/json": components["schemas"]["HoneyLatestTransaction"][];
853
+ };
854
+ };
855
+ /** @description Request validation failed */
856
+ 400: {
857
+ headers: {
858
+ [name: string]: unknown;
859
+ };
860
+ content: {
861
+ "application/json": components["schemas"]["ValidationError"];
862
+ };
863
+ };
864
+ };
865
+ };
866
+ listHoneySnapshots: {
867
+ parameters: {
868
+ query?: {
869
+ /** @description Page number, 1 or greater */
870
+ page?: string;
871
+ /** @description Items per page, 1–1000 (per-endpoint default) */
872
+ perPage?: string;
873
+ };
874
+ header?: never;
875
+ path: {
876
+ interval: "hour" | "day" | "week" | "month";
877
+ };
878
+ cookie?: never;
879
+ };
880
+ requestBody?: never;
881
+ responses: {
882
+ /** @description Honey snapshots */
883
+ 200: {
884
+ headers: {
885
+ [name: string]: unknown;
886
+ };
887
+ content: {
888
+ "application/json": components["schemas"]["HoneySnapshot"][];
889
+ };
890
+ };
891
+ /** @description Request validation failed */
892
+ 400: {
893
+ headers: {
894
+ [name: string]: unknown;
895
+ };
896
+ content: {
897
+ "application/json": components["schemas"]["ValidationError"];
898
+ };
899
+ };
900
+ };
901
+ };
902
+ getEarnEarnings: {
903
+ parameters: {
904
+ query?: never;
905
+ header?: never;
906
+ path: {
907
+ vault: components["schemas"]["EvmAddress"];
908
+ owner: components["schemas"]["EvmAddress"];
909
+ };
910
+ cookie?: never;
911
+ };
912
+ requestBody?: never;
913
+ responses: {
914
+ /** @description Earnings, share lots, and sorted events for the owner */
915
+ 200: {
916
+ headers: {
917
+ [name: string]: unknown;
918
+ };
919
+ content: {
920
+ "application/json": {
921
+ currentDepositRate: components["schemas"]["BigIntStr"];
922
+ earningsTotal: components["schemas"]["BigIntStr"];
923
+ earningsRealized: components["schemas"]["BigIntStr"];
924
+ earningsUnrealized: components["schemas"]["BigIntStr"];
925
+ shareLots: components["schemas"]["EarnShareLot"][];
926
+ sortedEvents: components["schemas"]["EarnEvent"][];
927
+ };
928
+ };
929
+ };
930
+ /** @description Request validation failed */
931
+ 400: {
932
+ headers: {
933
+ [name: string]: unknown;
934
+ };
935
+ content: {
936
+ "application/json": components["schemas"]["ValidationError"];
937
+ };
938
+ };
939
+ };
940
+ };
941
+ getEarnTotalAssetsByDay: {
942
+ parameters: {
943
+ query: {
944
+ start: string;
945
+ end?: string;
946
+ };
947
+ header?: never;
948
+ path: {
949
+ vault: components["schemas"]["EvmAddress"];
950
+ };
951
+ cookie?: never;
952
+ };
953
+ requestBody?: never;
954
+ responses: {
955
+ /** @description Per-day total-asset snapshots */
956
+ 200: {
957
+ headers: {
958
+ [name: string]: unknown;
959
+ };
960
+ content: {
961
+ "application/json": components["schemas"]["EarnTotalAssetsByDayEntry"][];
962
+ };
963
+ };
964
+ /** @description Request validation failed */
965
+ 400: {
966
+ headers: {
967
+ [name: string]: unknown;
968
+ };
969
+ content: {
970
+ "application/json": components["schemas"]["ValidationError"];
971
+ };
972
+ };
973
+ };
974
+ };
975
+ getEarnStatsByDay: {
976
+ parameters: {
977
+ query: {
978
+ days: "30" | "60" | "90" | "365";
979
+ };
980
+ header?: never;
981
+ path: {
982
+ vault: components["schemas"]["EvmAddress"];
983
+ };
984
+ cookie?: never;
985
+ };
986
+ requestBody?: never;
987
+ responses: {
988
+ /** @description Per-day vault stats */
989
+ 200: {
990
+ headers: {
991
+ [name: string]: unknown;
992
+ };
993
+ content: {
994
+ "application/json": components["schemas"]["EarnTotalAssetsByDayEntry"][];
995
+ };
996
+ };
997
+ /** @description Request validation failed */
998
+ 400: {
999
+ headers: {
1000
+ [name: string]: unknown;
1001
+ };
1002
+ content: {
1003
+ "application/json": components["schemas"]["ValidationError"];
1004
+ };
1005
+ };
1006
+ };
1007
+ };
1008
+ getEarnDailyAssets: {
1009
+ parameters: {
1010
+ query?: {
1011
+ start?: string;
1012
+ };
1013
+ header?: never;
1014
+ path: {
1015
+ vault: components["schemas"]["EvmAddress"];
1016
+ owner: components["schemas"]["EvmAddress"];
1017
+ };
1018
+ cookie?: never;
1019
+ };
1020
+ requestBody?: never;
1021
+ responses: {
1022
+ /** @description Per-day owner chart points */
1023
+ 200: {
1024
+ headers: {
1025
+ [name: string]: unknown;
1026
+ };
1027
+ content: {
1028
+ "application/json": components["schemas"]["EarnDailyAssetsEntry"][];
1029
+ };
1030
+ };
1031
+ /** @description Request validation failed */
1032
+ 400: {
1033
+ headers: {
1034
+ [name: string]: unknown;
1035
+ };
1036
+ content: {
1037
+ "application/json": components["schemas"]["ValidationError"];
1038
+ };
1039
+ };
1040
+ };
1041
+ };
1042
+ getBeraSupply: {
1043
+ parameters: {
1044
+ query?: never;
1045
+ header?: never;
1046
+ path?: never;
1047
+ cookie?: never;
1048
+ };
1049
+ requestBody?: never;
1050
+ responses: {
1051
+ /** @description BERA supply */
1052
+ 200: {
1053
+ headers: {
1054
+ [name: string]: unknown;
1055
+ };
1056
+ content: {
1057
+ "application/json": {
1058
+ totalSupply: components["schemas"]["DecimalStr"];
1059
+ circulatingSupply: components["schemas"]["DecimalStr"];
1060
+ };
1061
+ };
1062
+ };
1063
+ };
1064
+ };
1065
+ listRewardVaults: {
1066
+ parameters: {
1067
+ query?: {
1068
+ /** @description Page number, 1 or greater */
1069
+ page?: string;
1070
+ /** @description Items per page, 1–1000 (per-endpoint default) */
1071
+ perPage?: string;
1072
+ orderBy?: "stakingTokenAmount" | "address";
1073
+ orderDirection?: "asc" | "desc";
1074
+ };
1075
+ header?: never;
1076
+ path?: never;
1077
+ cookie?: never;
1078
+ };
1079
+ requestBody?: never;
1080
+ responses: {
1081
+ /** @description Reward vaults */
1082
+ 200: {
1083
+ headers: {
1084
+ [name: string]: unknown;
1085
+ };
1086
+ content: {
1087
+ "application/json": components["schemas"]["RewardVault"][];
1088
+ };
1089
+ };
1090
+ /** @description Request validation failed */
1091
+ 400: {
1092
+ headers: {
1093
+ [name: string]: unknown;
1094
+ };
1095
+ content: {
1096
+ "application/json": components["schemas"]["ValidationError"];
1097
+ };
1098
+ };
1099
+ };
1100
+ };
1101
+ getVaultDistributionsByBucket: {
1102
+ parameters: {
1103
+ query?: never;
1104
+ header?: never;
1105
+ path: {
1106
+ interval: "hour" | "day";
1107
+ at: string;
1108
+ };
1109
+ cookie?: never;
1110
+ };
1111
+ requestBody?: never;
1112
+ responses: {
1113
+ /** @description Vault distributions for the bucket */
1114
+ 200: {
1115
+ headers: {
1116
+ [name: string]: unknown;
1117
+ };
1118
+ content: {
1119
+ "application/json": components["schemas"]["VaultDistribution"][];
1120
+ };
1121
+ };
1122
+ /** @description Request validation failed */
1123
+ 400: {
1124
+ headers: {
1125
+ [name: string]: unknown;
1126
+ };
1127
+ content: {
1128
+ "application/json": components["schemas"]["ValidationError"];
1129
+ };
1130
+ };
1131
+ };
1132
+ };
1133
+ getVaultDistributions: {
1134
+ parameters: {
1135
+ query?: {
1136
+ /** @description Page number, 1 or greater */
1137
+ page?: string;
1138
+ /** @description Items per page, 1–1000 (per-endpoint default) */
1139
+ perPage?: string;
1140
+ /** @description Time bucket size (default: day) */
1141
+ interval?: "hour" | "day";
1142
+ /** @description Epoch-seconds cutoff; only buckets at/after are returned */
1143
+ after?: string;
1144
+ sort?: "asc" | "desc";
1145
+ /** @description Exact bucket boundary (epoch seconds); excludes after/page/perPage */
1146
+ at?: string;
1147
+ };
1148
+ header?: never;
1149
+ path: {
1150
+ vault: components["schemas"]["EvmAddress"];
1151
+ };
1152
+ cookie?: never;
1153
+ };
1154
+ requestBody?: never;
1155
+ responses: {
1156
+ /** @description Vault distributions */
1157
+ 200: {
1158
+ headers: {
1159
+ [name: string]: unknown;
1160
+ };
1161
+ content: {
1162
+ "application/json": components["schemas"]["VaultDistribution"][];
1163
+ };
1164
+ };
1165
+ /** @description Request validation failed */
1166
+ 400: {
1167
+ headers: {
1168
+ [name: string]: unknown;
1169
+ };
1170
+ content: {
1171
+ "application/json": components["schemas"]["ValidationError"];
1172
+ };
1173
+ };
1174
+ };
1175
+ };
1176
+ getGlobalInfo: {
1177
+ parameters: {
1178
+ query?: never;
1179
+ header?: never;
1180
+ path?: never;
1181
+ cookie?: never;
1182
+ };
1183
+ requestBody?: never;
1184
+ responses: {
1185
+ /** @description Global PoL info */
1186
+ 200: {
1187
+ headers: {
1188
+ [name: string]: unknown;
1189
+ };
1190
+ content: {
1191
+ "application/json": {
1192
+ totalDistributedAmount: components["schemas"]["DecimalStr"];
1193
+ totalQueuedBoostAmount: components["schemas"]["DecimalStr"];
1194
+ };
1195
+ };
1196
+ };
1197
+ };
1198
+ };
1199
+ listWhitelistedIncentives: {
1200
+ parameters: {
1201
+ query?: never;
1202
+ header?: never;
1203
+ path?: never;
1204
+ cookie?: never;
1205
+ };
1206
+ requestBody?: never;
1207
+ responses: {
1208
+ /** @description Whitelisted incentive tokens */
1209
+ 200: {
1210
+ headers: {
1211
+ [name: string]: unknown;
1212
+ };
1213
+ content: {
1214
+ "application/json": components["schemas"]["WhitelistedIncentive"][];
1215
+ };
1216
+ };
1217
+ };
1218
+ };
1219
+ listUserVaultStakes: {
1220
+ parameters: {
1221
+ query?: {
1222
+ /** @description Page number, 1 or greater */
1223
+ page?: string;
1224
+ /** @description Items per page, 1–1000 (per-endpoint default) */
1225
+ perPage?: string;
1226
+ user?: components["schemas"]["EvmAddress"];
1227
+ vault?: components["schemas"]["EvmAddress"];
1228
+ /** @description Only stakes updated at/after this block */
1229
+ afterBlock?: string;
1230
+ orderBy?: "updatedAtBlock" | "amount" | "id";
1231
+ orderDirection?: "asc" | "desc";
1232
+ };
1233
+ header?: never;
1234
+ path?: never;
1235
+ cookie?: never;
1236
+ };
1237
+ requestBody?: never;
1238
+ responses: {
1239
+ /** @description User vault stakes */
1240
+ 200: {
1241
+ headers: {
1242
+ [name: string]: unknown;
1243
+ };
1244
+ content: {
1245
+ "application/json": components["schemas"]["UserVaultStake"][];
1246
+ };
1247
+ };
1248
+ /** @description Request validation failed */
1249
+ 400: {
1250
+ headers: {
1251
+ [name: string]: unknown;
1252
+ };
1253
+ content: {
1254
+ "application/json": components["schemas"]["ValidationError"];
1255
+ };
1256
+ };
1257
+ };
1258
+ };
1259
+ }
1260
+ export type ApiSchema<TName extends keyof components["schemas"]> = components["schemas"][TName];
1261
+ export type ApiGetResponse<TPath extends keyof paths> = paths[TPath] extends {
943
1262
  get: {
944
1263
  responses: {
945
1264
  200: {
@@ -950,29 +1269,54 @@ type ApiGetResponse<TPath extends keyof paths> = paths[TPath] extends {
950
1269
  };
951
1270
  };
952
1271
  } ? TResponse : never;
953
- type EvmAddress = components["schemas"]["EvmAddress"];
954
- type BigIntStr = components["schemas"]["BigIntStr"];
955
- type DecimalStr = components["schemas"]["DecimalStr"];
956
- type Bytes32Hex = components["schemas"]["Bytes32Hex"];
957
- type ValidatorPubkeyStr = components["schemas"]["ValidatorPubkeyStr"];
958
- type BigUintStr = components["schemas"]["BigUintStr"];
959
- type ValidatorPubkeyParam = components["schemas"]["ValidatorPubkeyParam"];
960
- type StakeEarningResponse = paths["/v0/stake/{vault}/earnings/{owner}"]["get"]["responses"][200]["content"]["application/json"];
961
- type StakeStatsByDayResponse = paths["/v0/stake/{vault}/stats-by-day"]["get"]["responses"][200]["content"]["application/json"];
962
- type ValidatorsResponse = paths["/v0/validators"]["get"]["responses"][200]["content"]["application/json"];
963
- type ValidatorBlockStatsResponse = paths["/v0/validators/{pubkey}/block-stats"]["get"]["responses"][200]["content"]["application/json"];
964
- type ValidatorIncentivesResponse = paths["/v0/validators/{pubkey}/incentives"]["get"]["responses"][200]["content"]["application/json"];
965
- type BlocksBlockStatsResponse = paths["/v0/blocks/block-stats"]["get"]["responses"][200]["content"]["application/json"];
966
- type HoneyTransactionsLatestResponse = paths["/v0/honey/transactions/latest"]["get"]["responses"][200]["content"]["application/json"];
967
- type HoneySnapshotResponse = paths["/v0/honey/snapshots/{interval}"]["get"]["responses"][200]["content"]["application/json"];
968
- type EarnEarningResponse = paths["/v0/earn/{vault}/earnings/{owner}"]["get"]["responses"][200]["content"]["application/json"];
969
- type EarnTotalAssetsByDayResponse = paths["/v0/earn/{vault}/total-assets-by-day"]["get"]["responses"][200]["content"]["application/json"];
970
- type EarnStatsByDayResponse = paths["/v0/earn/{vault}/stats-by-day"]["get"]["responses"][200]["content"]["application/json"];
971
- type EarnDailyAssetResponse = paths["/v0/earn/{vault}/daily-assets/{owner}"]["get"]["responses"][200]["content"]["application/json"];
972
- type StatsBeraResponse = paths["/v0/stats/bera"]["get"]["responses"][200]["content"]["application/json"];
973
- type RewardVaultsResponse = paths["/v0/reward-vaults"]["get"]["responses"][200]["content"]["application/json"];
974
- type RewardVaultDistributionsResponse = paths["/v0/reward-vaults/{vault}/distributions"]["get"]["responses"][200]["content"]["application/json"];
975
- type RewardVaultsGlobalInfoResponse = paths["/v0/reward-vaults/global-info"]["get"]["responses"][200]["content"]["application/json"];
976
- type RewardVaultsUserVaultStakesResponse = paths["/v0/reward-vaults/user-vault-stakes"]["get"]["responses"][200]["content"]["application/json"];
977
-
978
- export type { $defs, ApiGetResponse, ApiSchema, BigIntStr, BigUintStr, BlocksBlockStatsResponse, Bytes32Hex, DecimalStr, EarnDailyAssetResponse, EarnEarningResponse, EarnStatsByDayResponse, EarnTotalAssetsByDayResponse, EvmAddress, HoneySnapshotResponse, HoneyTransactionsLatestResponse, RewardVaultDistributionsResponse, RewardVaultsGlobalInfoResponse, RewardVaultsResponse, RewardVaultsUserVaultStakesResponse, StakeEarningResponse, StakeStatsByDayResponse, StatsBeraResponse, ValidatorBlockStatsResponse, ValidatorIncentivesResponse, ValidatorPubkeyParam, ValidatorPubkeyStr, ValidatorsResponse, components, operations, paths, webhooks };
1272
+ export type ValidationError = components["schemas"]["ValidationError"];
1273
+ export type BigIntStr = components["schemas"]["BigIntStr"];
1274
+ export type StakeShareLot = components["schemas"]["StakeShareLot"];
1275
+ export type DecimalStr = components["schemas"]["DecimalStr"];
1276
+ export type StakeEvent = components["schemas"]["StakeEvent"];
1277
+ export type StakeOwnerEvent = components["schemas"]["StakeOwnerEvent"];
1278
+ export type EvmAddress = components["schemas"]["EvmAddress"];
1279
+ export type StakeTransferEvent = components["schemas"]["StakeTransferEvent"];
1280
+ export type StakeStatsByDayEntry = components["schemas"]["StakeStatsByDayEntry"];
1281
+ export type Validator = components["schemas"]["Validator"];
1282
+ export type Bytes32Hex = components["schemas"]["Bytes32Hex"];
1283
+ export type ValidatorPubkeyStr = components["schemas"]["ValidatorPubkeyStr"];
1284
+ export type ValidatorBlockStatsByValidator = components["schemas"]["ValidatorBlockStatsByValidator"];
1285
+ export type ValidatorIncentiveDistribution = components["schemas"]["ValidatorIncentiveDistribution"];
1286
+ export type ValidatorBlockStats = components["schemas"]["ValidatorBlockStats"];
1287
+ export type BlockStats = components["schemas"]["BlockStats"];
1288
+ export type HoneyLatestTransaction = components["schemas"]["HoneyLatestTransaction"];
1289
+ export type HoneyCollateral = components["schemas"]["HoneyCollateral"];
1290
+ export type HoneySnapshot = components["schemas"]["HoneySnapshot"];
1291
+ export type EarnShareLot = components["schemas"]["EarnShareLot"];
1292
+ export type EarnEvent = components["schemas"]["EarnEvent"];
1293
+ export type EarnOwnerEvent = components["schemas"]["EarnOwnerEvent"];
1294
+ export type EarnTransferEvent = components["schemas"]["EarnTransferEvent"];
1295
+ export type EarnTotalAssetsByDayEntry = components["schemas"]["EarnTotalAssetsByDayEntry"];
1296
+ export type EarnDailyAssetsEntry = components["schemas"]["EarnDailyAssetsEntry"];
1297
+ export type RewardVault = components["schemas"]["RewardVault"];
1298
+ export type VaultDistribution = components["schemas"]["VaultDistribution"];
1299
+ export type WhitelistedIncentive = components["schemas"]["WhitelistedIncentive"];
1300
+ export type UserVaultStake = components["schemas"]["UserVaultStake"];
1301
+ export type StakeEarningResponse = paths["/v0/stake/{vault}/earnings/{owner}"]["get"]["responses"][200]["content"]["application/json"];
1302
+ export type StakeStatsByDayResponse = paths["/v0/stake/{vault}/stats-by-day"]["get"]["responses"][200]["content"]["application/json"];
1303
+ export type ValidatorsResponse = paths["/v0/validators"]["get"]["responses"][200]["content"]["application/json"];
1304
+ export type ValidatorsBlockStatResponse = paths["/v0/validators/block-stats/{interval}/{at}"]["get"]["responses"][200]["content"]["application/json"];
1305
+ export type ValidatorsIncentiveResponse = paths["/v0/validators/incentives/{interval}/{at}"]["get"]["responses"][200]["content"]["application/json"];
1306
+ export type ValidatorBlockStatsResponse = paths["/v0/validators/{pubkey}/block-stats"]["get"]["responses"][200]["content"]["application/json"];
1307
+ export type ValidatorIncentivesResponse = paths["/v0/validators/{pubkey}/incentives"]["get"]["responses"][200]["content"]["application/json"];
1308
+ export type BlocksBlockStatsResponse = paths["/v0/blocks/block-stats"]["get"]["responses"][200]["content"]["application/json"];
1309
+ export type HoneyTransactionsLatestResponse = paths["/v0/honey/transactions/latest"]["get"]["responses"][200]["content"]["application/json"];
1310
+ export type HoneySnapshotResponse = paths["/v0/honey/snapshots/{interval}"]["get"]["responses"][200]["content"]["application/json"];
1311
+ export type EarnEarningResponse = paths["/v0/earn/{vault}/earnings/{owner}"]["get"]["responses"][200]["content"]["application/json"];
1312
+ export type EarnTotalAssetsByDayResponse = paths["/v0/earn/{vault}/total-assets-by-day"]["get"]["responses"][200]["content"]["application/json"];
1313
+ export type EarnStatsByDayResponse = paths["/v0/earn/{vault}/stats-by-day"]["get"]["responses"][200]["content"]["application/json"];
1314
+ export type EarnDailyAssetResponse = paths["/v0/earn/{vault}/daily-assets/{owner}"]["get"]["responses"][200]["content"]["application/json"];
1315
+ export type StatsBeraResponse = paths["/v0/stats/bera"]["get"]["responses"][200]["content"]["application/json"];
1316
+ export type RewardVaultsResponse = paths["/v0/reward-vaults"]["get"]["responses"][200]["content"]["application/json"];
1317
+ export type RewardVaultsDistributionResponse = paths["/v0/reward-vaults/distributions/{interval}/{at}"]["get"]["responses"][200]["content"]["application/json"];
1318
+ export type RewardVaultDistributionsResponse = paths["/v0/reward-vaults/{vault}/distributions"]["get"]["responses"][200]["content"]["application/json"];
1319
+ export type RewardVaultsGlobalInfoResponse = paths["/v0/reward-vaults/global-info"]["get"]["responses"][200]["content"]["application/json"];
1320
+ export type RewardVaultsIncentivesResponse = paths["/v0/reward-vaults/incentives"]["get"]["responses"][200]["content"]["application/json"];
1321
+ export type RewardVaultsUserVaultStakesResponse = paths["/v0/reward-vaults/user-vault-stakes"]["get"]["responses"][200]["content"]["application/json"];
1322
+ //# sourceMappingURL=beep.codegen.d.ts.map