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