@berachain/graphql 0.5.1-beta.1 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/beep/beep.codegen.d.ts +95 -184
- package/package.json +2 -2
|
@@ -174,150 +174,6 @@ type paths = {
|
|
|
174
174
|
patch?: never;
|
|
175
175
|
trace?: never;
|
|
176
176
|
};
|
|
177
|
-
"/v0/stake/{vault}/rewards-received": {
|
|
178
|
-
parameters: {
|
|
179
|
-
query?: never;
|
|
180
|
-
header?: never;
|
|
181
|
-
path?: never;
|
|
182
|
-
cookie?: never;
|
|
183
|
-
};
|
|
184
|
-
get: {
|
|
185
|
-
parameters: {
|
|
186
|
-
query?: {
|
|
187
|
-
groupBy?: "day";
|
|
188
|
-
page?: components["schemas"]["BigUintStr"];
|
|
189
|
-
perPage?: components["schemas"]["BigUintStr"];
|
|
190
|
-
};
|
|
191
|
-
header?: never;
|
|
192
|
-
path: {
|
|
193
|
-
vault: components["schemas"]["EvmAddress"];
|
|
194
|
-
};
|
|
195
|
-
cookie?: never;
|
|
196
|
-
};
|
|
197
|
-
requestBody?: never;
|
|
198
|
-
responses: {
|
|
199
|
-
200: {
|
|
200
|
-
headers: {
|
|
201
|
-
[name: string]: unknown;
|
|
202
|
-
};
|
|
203
|
-
content: {
|
|
204
|
-
"application/json": {
|
|
205
|
-
contract: string;
|
|
206
|
-
height: components["schemas"]["BigIntStr"];
|
|
207
|
-
logIndex: number;
|
|
208
|
-
txHash: string;
|
|
209
|
-
sender: string;
|
|
210
|
-
amount: string;
|
|
211
|
-
totalAssets: string;
|
|
212
|
-
totalSupply: string;
|
|
213
|
-
timestamp: number;
|
|
214
|
-
}[] | {
|
|
215
|
-
day: string;
|
|
216
|
-
contract: string;
|
|
217
|
-
eventCount: number;
|
|
218
|
-
amountSum: string;
|
|
219
|
-
totalAssets: string;
|
|
220
|
-
totalSupply: string;
|
|
221
|
-
}[];
|
|
222
|
-
};
|
|
223
|
-
};
|
|
224
|
-
};
|
|
225
|
-
};
|
|
226
|
-
put?: never;
|
|
227
|
-
post?: never;
|
|
228
|
-
delete?: never;
|
|
229
|
-
options?: never;
|
|
230
|
-
head?: never;
|
|
231
|
-
patch?: never;
|
|
232
|
-
trace?: never;
|
|
233
|
-
};
|
|
234
|
-
"/v0/stake/{vault}/daily-yield/{owner}": {
|
|
235
|
-
parameters: {
|
|
236
|
-
query?: never;
|
|
237
|
-
header?: never;
|
|
238
|
-
path?: never;
|
|
239
|
-
cookie?: never;
|
|
240
|
-
};
|
|
241
|
-
get: {
|
|
242
|
-
parameters: {
|
|
243
|
-
query?: {
|
|
244
|
-
start?: string;
|
|
245
|
-
};
|
|
246
|
-
header?: never;
|
|
247
|
-
path: {
|
|
248
|
-
vault: components["schemas"]["EvmAddress"];
|
|
249
|
-
owner: components["schemas"]["EvmAddress"];
|
|
250
|
-
};
|
|
251
|
-
cookie?: never;
|
|
252
|
-
};
|
|
253
|
-
requestBody?: never;
|
|
254
|
-
responses: {
|
|
255
|
-
200: {
|
|
256
|
-
headers: {
|
|
257
|
-
[name: string]: unknown;
|
|
258
|
-
};
|
|
259
|
-
content: {
|
|
260
|
-
"application/json": {
|
|
261
|
-
timestamp: number;
|
|
262
|
-
yieldAssets: number;
|
|
263
|
-
}[];
|
|
264
|
-
};
|
|
265
|
-
};
|
|
266
|
-
};
|
|
267
|
-
};
|
|
268
|
-
put?: never;
|
|
269
|
-
post?: never;
|
|
270
|
-
delete?: never;
|
|
271
|
-
options?: never;
|
|
272
|
-
head?: never;
|
|
273
|
-
patch?: never;
|
|
274
|
-
trace?: never;
|
|
275
|
-
};
|
|
276
|
-
"/v0/stake/{vault}/daily-assets/{owner}": {
|
|
277
|
-
parameters: {
|
|
278
|
-
query?: never;
|
|
279
|
-
header?: never;
|
|
280
|
-
path?: never;
|
|
281
|
-
cookie?: never;
|
|
282
|
-
};
|
|
283
|
-
get: {
|
|
284
|
-
parameters: {
|
|
285
|
-
query?: {
|
|
286
|
-
start?: string;
|
|
287
|
-
end?: string;
|
|
288
|
-
};
|
|
289
|
-
header?: never;
|
|
290
|
-
path: {
|
|
291
|
-
vault: components["schemas"]["EvmAddress"];
|
|
292
|
-
owner: components["schemas"]["EvmAddress"];
|
|
293
|
-
};
|
|
294
|
-
cookie?: never;
|
|
295
|
-
};
|
|
296
|
-
requestBody?: never;
|
|
297
|
-
responses: {
|
|
298
|
-
200: {
|
|
299
|
-
headers: {
|
|
300
|
-
[name: string]: unknown;
|
|
301
|
-
};
|
|
302
|
-
content: {
|
|
303
|
-
"application/json": {
|
|
304
|
-
timestamp: number;
|
|
305
|
-
balance: number;
|
|
306
|
-
deposited: number;
|
|
307
|
-
yield: number;
|
|
308
|
-
}[];
|
|
309
|
-
};
|
|
310
|
-
};
|
|
311
|
-
};
|
|
312
|
-
};
|
|
313
|
-
put?: never;
|
|
314
|
-
post?: never;
|
|
315
|
-
delete?: never;
|
|
316
|
-
options?: never;
|
|
317
|
-
head?: never;
|
|
318
|
-
patch?: never;
|
|
319
|
-
trace?: never;
|
|
320
|
-
};
|
|
321
177
|
"/v0/validators": {
|
|
322
178
|
parameters: {
|
|
323
179
|
query?: never;
|
|
@@ -370,14 +226,14 @@ type paths = {
|
|
|
370
226
|
get: {
|
|
371
227
|
parameters: {
|
|
372
228
|
query?: {
|
|
373
|
-
interval?: "
|
|
374
|
-
page?: components["schemas"]["BigUintStr"];
|
|
375
|
-
perPage?: components["schemas"]["BigUintStr"];
|
|
229
|
+
interval?: "hour" | "day";
|
|
376
230
|
after?: components["schemas"]["BigUintStr"];
|
|
231
|
+
page?: string;
|
|
232
|
+
perPage?: string;
|
|
377
233
|
};
|
|
378
234
|
header?: never;
|
|
379
235
|
path: {
|
|
380
|
-
pubkey:
|
|
236
|
+
pubkey: components["schemas"]["ValidatorPubkeyParam"];
|
|
381
237
|
};
|
|
382
238
|
cookie?: never;
|
|
383
239
|
};
|
|
@@ -391,14 +247,22 @@ type paths = {
|
|
|
391
247
|
"application/json": {
|
|
392
248
|
timestamp: number;
|
|
393
249
|
blockCount: number;
|
|
394
|
-
|
|
395
|
-
|
|
250
|
+
earnedRewardAmount: components["schemas"]["DecimalStr"];
|
|
251
|
+
distributedRewardAmount: components["schemas"]["DecimalStr"];
|
|
396
252
|
allTimeBlockCount: number;
|
|
397
|
-
|
|
398
|
-
|
|
253
|
+
allTimeEarnedRewardAmount: components["schemas"]["DecimalStr"];
|
|
254
|
+
allTimeDistributedRewardAmount: components["schemas"]["DecimalStr"];
|
|
399
255
|
}[];
|
|
400
256
|
};
|
|
401
257
|
};
|
|
258
|
+
400: {
|
|
259
|
+
headers: {
|
|
260
|
+
[name: string]: unknown;
|
|
261
|
+
};
|
|
262
|
+
content: {
|
|
263
|
+
"application/json": unknown;
|
|
264
|
+
};
|
|
265
|
+
};
|
|
402
266
|
};
|
|
403
267
|
};
|
|
404
268
|
put?: never;
|
|
@@ -419,14 +283,14 @@ type paths = {
|
|
|
419
283
|
get: {
|
|
420
284
|
parameters: {
|
|
421
285
|
query?: {
|
|
422
|
-
interval?: "
|
|
423
|
-
page?: components["schemas"]["BigUintStr"];
|
|
424
|
-
perPage?: components["schemas"]["BigUintStr"];
|
|
286
|
+
interval?: "hour" | "day";
|
|
425
287
|
after?: components["schemas"]["BigUintStr"];
|
|
288
|
+
page?: string;
|
|
289
|
+
perPage?: string;
|
|
426
290
|
};
|
|
427
291
|
header?: never;
|
|
428
292
|
path: {
|
|
429
|
-
pubkey:
|
|
293
|
+
pubkey: components["schemas"]["ValidatorPubkeyParam"];
|
|
430
294
|
};
|
|
431
295
|
cookie?: never;
|
|
432
296
|
};
|
|
@@ -446,6 +310,14 @@ type paths = {
|
|
|
446
310
|
}[];
|
|
447
311
|
};
|
|
448
312
|
};
|
|
313
|
+
400: {
|
|
314
|
+
headers: {
|
|
315
|
+
[name: string]: unknown;
|
|
316
|
+
};
|
|
317
|
+
content: {
|
|
318
|
+
"application/json": unknown;
|
|
319
|
+
};
|
|
320
|
+
};
|
|
449
321
|
};
|
|
450
322
|
};
|
|
451
323
|
put?: never;
|
|
@@ -466,10 +338,10 @@ type paths = {
|
|
|
466
338
|
get: {
|
|
467
339
|
parameters: {
|
|
468
340
|
query?: {
|
|
469
|
-
interval?: "
|
|
470
|
-
page?: components["schemas"]["BigUintStr"];
|
|
471
|
-
perPage?: components["schemas"]["BigUintStr"];
|
|
341
|
+
interval?: "hour" | "day";
|
|
472
342
|
after?: components["schemas"]["BigUintStr"];
|
|
343
|
+
page?: string;
|
|
344
|
+
perPage?: string;
|
|
473
345
|
};
|
|
474
346
|
header?: never;
|
|
475
347
|
path?: never;
|
|
@@ -485,14 +357,22 @@ type paths = {
|
|
|
485
357
|
"application/json": {
|
|
486
358
|
timestamp: number;
|
|
487
359
|
blockCount: number;
|
|
488
|
-
|
|
489
|
-
|
|
360
|
+
earnedRewardAmount: components["schemas"]["DecimalStr"];
|
|
361
|
+
distributedRewardAmount: components["schemas"]["DecimalStr"];
|
|
490
362
|
allTimeBlockCount: number;
|
|
491
|
-
|
|
492
|
-
|
|
363
|
+
allTimeEarnedRewardAmount: components["schemas"]["DecimalStr"];
|
|
364
|
+
allTimeDistributedRewardAmount: components["schemas"]["DecimalStr"];
|
|
493
365
|
}[];
|
|
494
366
|
};
|
|
495
367
|
};
|
|
368
|
+
400: {
|
|
369
|
+
headers: {
|
|
370
|
+
[name: string]: unknown;
|
|
371
|
+
};
|
|
372
|
+
content: {
|
|
373
|
+
"application/json": unknown;
|
|
374
|
+
};
|
|
375
|
+
};
|
|
496
376
|
};
|
|
497
377
|
};
|
|
498
378
|
put?: never;
|
|
@@ -513,9 +393,9 @@ type paths = {
|
|
|
513
393
|
get: {
|
|
514
394
|
parameters: {
|
|
515
395
|
query?: {
|
|
396
|
+
type?: "MINT" | "REDEEM";
|
|
516
397
|
page?: string;
|
|
517
398
|
perPage?: string;
|
|
518
|
-
type?: "MINT" | "REDEEM";
|
|
519
399
|
};
|
|
520
400
|
header?: never;
|
|
521
401
|
path?: never;
|
|
@@ -543,6 +423,14 @@ type paths = {
|
|
|
543
423
|
}[];
|
|
544
424
|
};
|
|
545
425
|
};
|
|
426
|
+
400: {
|
|
427
|
+
headers: {
|
|
428
|
+
[name: string]: unknown;
|
|
429
|
+
};
|
|
430
|
+
content: {
|
|
431
|
+
"application/json": unknown;
|
|
432
|
+
};
|
|
433
|
+
};
|
|
546
434
|
};
|
|
547
435
|
};
|
|
548
436
|
put?: never;
|
|
@@ -568,7 +456,7 @@ type paths = {
|
|
|
568
456
|
};
|
|
569
457
|
header?: never;
|
|
570
458
|
path: {
|
|
571
|
-
interval: "
|
|
459
|
+
interval: "hour" | "day" | "week" | "month";
|
|
572
460
|
};
|
|
573
461
|
cookie?: never;
|
|
574
462
|
};
|
|
@@ -834,10 +722,10 @@ type paths = {
|
|
|
834
722
|
get: {
|
|
835
723
|
parameters: {
|
|
836
724
|
query?: {
|
|
837
|
-
page?: components["schemas"]["BigUintStr"];
|
|
838
|
-
perPage?: components["schemas"]["BigUintStr"];
|
|
839
725
|
orderBy?: "stakingTokenAmount" | "address";
|
|
840
726
|
orderDirection?: "asc" | "desc";
|
|
727
|
+
page?: string;
|
|
728
|
+
perPage?: string;
|
|
841
729
|
};
|
|
842
730
|
header?: never;
|
|
843
731
|
path?: never;
|
|
@@ -851,7 +739,6 @@ type paths = {
|
|
|
851
739
|
};
|
|
852
740
|
content: {
|
|
853
741
|
"application/json": {
|
|
854
|
-
id: string;
|
|
855
742
|
address: string;
|
|
856
743
|
stakingToken: string;
|
|
857
744
|
stakingTokenAmount: components["schemas"]["DecimalStr"];
|
|
@@ -859,6 +746,14 @@ type paths = {
|
|
|
859
746
|
}[];
|
|
860
747
|
};
|
|
861
748
|
};
|
|
749
|
+
400: {
|
|
750
|
+
headers: {
|
|
751
|
+
[name: string]: unknown;
|
|
752
|
+
};
|
|
753
|
+
content: {
|
|
754
|
+
"application/json": unknown;
|
|
755
|
+
};
|
|
756
|
+
};
|
|
862
757
|
};
|
|
863
758
|
};
|
|
864
759
|
put?: never;
|
|
@@ -879,10 +774,10 @@ type paths = {
|
|
|
879
774
|
get: {
|
|
880
775
|
parameters: {
|
|
881
776
|
query?: {
|
|
882
|
-
interval?: "
|
|
883
|
-
page?: components["schemas"]["BigUintStr"];
|
|
884
|
-
perPage?: components["schemas"]["BigUintStr"];
|
|
777
|
+
interval?: "hour" | "day";
|
|
885
778
|
after?: components["schemas"]["BigUintStr"];
|
|
779
|
+
page?: string;
|
|
780
|
+
perPage?: string;
|
|
886
781
|
};
|
|
887
782
|
header?: never;
|
|
888
783
|
path: {
|
|
@@ -900,11 +795,19 @@ type paths = {
|
|
|
900
795
|
"application/json": {
|
|
901
796
|
timestamp: number;
|
|
902
797
|
vaultId: string;
|
|
903
|
-
|
|
904
|
-
|
|
798
|
+
receivedRewardAmount: components["schemas"]["DecimalStr"];
|
|
799
|
+
allTimeReceivedRewardAmount: components["schemas"]["DecimalStr"];
|
|
905
800
|
}[];
|
|
906
801
|
};
|
|
907
802
|
};
|
|
803
|
+
400: {
|
|
804
|
+
headers: {
|
|
805
|
+
[name: string]: unknown;
|
|
806
|
+
};
|
|
807
|
+
content: {
|
|
808
|
+
"application/json": unknown;
|
|
809
|
+
};
|
|
810
|
+
};
|
|
908
811
|
};
|
|
909
812
|
};
|
|
910
813
|
put?: never;
|
|
@@ -967,8 +870,8 @@ type paths = {
|
|
|
967
870
|
afterBlock?: components["schemas"]["BigUintStr"];
|
|
968
871
|
orderBy?: "updatedAtBlock" | "amount" | "id";
|
|
969
872
|
orderDirection?: "asc" | "desc";
|
|
970
|
-
page?:
|
|
971
|
-
perPage?:
|
|
873
|
+
page?: string;
|
|
874
|
+
perPage?: string;
|
|
972
875
|
};
|
|
973
876
|
header?: never;
|
|
974
877
|
path?: never;
|
|
@@ -990,6 +893,14 @@ type paths = {
|
|
|
990
893
|
}[];
|
|
991
894
|
};
|
|
992
895
|
};
|
|
896
|
+
400: {
|
|
897
|
+
headers: {
|
|
898
|
+
[name: string]: unknown;
|
|
899
|
+
};
|
|
900
|
+
content: {
|
|
901
|
+
"application/json": unknown;
|
|
902
|
+
};
|
|
903
|
+
};
|
|
993
904
|
};
|
|
994
905
|
};
|
|
995
906
|
put?: never;
|
|
@@ -1004,14 +915,16 @@ type paths = {
|
|
|
1004
915
|
type webhooks = Record<string, never>;
|
|
1005
916
|
type components = {
|
|
1006
917
|
schemas: {
|
|
1007
|
-
/** @description
|
|
1008
|
-
EvmAddress:
|
|
1009
|
-
/** @description
|
|
918
|
+
/** @description 20-byte EVM address: 0x followed by 40 hex characters */
|
|
919
|
+
EvmAddress: string;
|
|
920
|
+
/** @description Signed integer encoded as a base-10 string (digits only, optional leading '-') */
|
|
1010
921
|
BigIntStr: string;
|
|
1011
|
-
/** @description Decimal as string
|
|
922
|
+
/** @description Decimal number encoded as a string (e.g. '12', '-3.5') */
|
|
1012
923
|
DecimalStr: string;
|
|
1013
|
-
/** @description
|
|
924
|
+
/** @description Non-negative integer encoded as a base-10 string (digits only) */
|
|
1014
925
|
BigUintStr: string;
|
|
926
|
+
/** @description 48-byte BLS validator pubkey: 0x followed by 96 hex characters */
|
|
927
|
+
ValidatorPubkeyParam: string;
|
|
1015
928
|
};
|
|
1016
929
|
responses: never;
|
|
1017
930
|
parameters: never;
|
|
@@ -1037,11 +950,9 @@ type EvmAddress = components["schemas"]["EvmAddress"];
|
|
|
1037
950
|
type BigIntStr = components["schemas"]["BigIntStr"];
|
|
1038
951
|
type DecimalStr = components["schemas"]["DecimalStr"];
|
|
1039
952
|
type BigUintStr = components["schemas"]["BigUintStr"];
|
|
953
|
+
type ValidatorPubkeyParam = components["schemas"]["ValidatorPubkeyParam"];
|
|
1040
954
|
type StakeEarningResponse = paths["/v0/stake/{vault}/earnings/{owner}"]["get"]["responses"][200]["content"]["application/json"];
|
|
1041
955
|
type StakeStatsByDayResponse = paths["/v0/stake/{vault}/stats-by-day"]["get"]["responses"][200]["content"]["application/json"];
|
|
1042
|
-
type StakeRewardsReceivedResponse = paths["/v0/stake/{vault}/rewards-received"]["get"]["responses"][200]["content"]["application/json"];
|
|
1043
|
-
type StakeDailyYieldResponse = paths["/v0/stake/{vault}/daily-yield/{owner}"]["get"]["responses"][200]["content"]["application/json"];
|
|
1044
|
-
type StakeDailyAssetResponse = paths["/v0/stake/{vault}/daily-assets/{owner}"]["get"]["responses"][200]["content"]["application/json"];
|
|
1045
956
|
type ValidatorsResponse = paths["/v0/validators"]["get"]["responses"][200]["content"]["application/json"];
|
|
1046
957
|
type ValidatorBlockStatsResponse = paths["/v0/validators/{pubkey}/block-stats"]["get"]["responses"][200]["content"]["application/json"];
|
|
1047
958
|
type ValidatorIncentivesResponse = paths["/v0/validators/{pubkey}/incentives"]["get"]["responses"][200]["content"]["application/json"];
|
|
@@ -1058,4 +969,4 @@ type RewardVaultDistributionsResponse = paths["/v0/reward-vaults/{vault}/distrib
|
|
|
1058
969
|
type RewardVaultsGlobalInfoResponse = paths["/v0/reward-vaults/global-info"]["get"]["responses"][200]["content"]["application/json"];
|
|
1059
970
|
type RewardVaultsUserVaultStakesResponse = paths["/v0/reward-vaults/user-vault-stakes"]["get"]["responses"][200]["content"]["application/json"];
|
|
1060
971
|
|
|
1061
|
-
export type { $defs, ApiGetResponse, ApiSchema, BigIntStr, BigUintStr, BlocksBlockStatsResponse, DecimalStr, EarnDailyAssetResponse, EarnEarningResponse, EarnStatsByDayResponse, EarnTotalAssetsByDayResponse, EvmAddress, HoneySnapshotResponse, HoneyTransactionsLatestResponse, RewardVaultDistributionsResponse, RewardVaultsGlobalInfoResponse, RewardVaultsResponse, RewardVaultsUserVaultStakesResponse,
|
|
972
|
+
export type { $defs, ApiGetResponse, ApiSchema, BigIntStr, BigUintStr, BlocksBlockStatsResponse, DecimalStr, EarnDailyAssetResponse, EarnEarningResponse, EarnStatsByDayResponse, EarnTotalAssetsByDayResponse, EvmAddress, HoneySnapshotResponse, HoneyTransactionsLatestResponse, RewardVaultDistributionsResponse, RewardVaultsGlobalInfoResponse, RewardVaultsResponse, RewardVaultsUserVaultStakesResponse, StakeEarningResponse, StakeStatsByDayResponse, StatsBeraResponse, ValidatorBlockStatsResponse, ValidatorIncentivesResponse, ValidatorPubkeyParam, ValidatorsResponse, components, operations, paths, webhooks };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@berachain/graphql",
|
|
3
|
-
"version": "0.5.1
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"openapi-typescript": "7.13.0",
|
|
32
32
|
"tsup": "8.5.1",
|
|
33
33
|
"typescript": "5.5.4",
|
|
34
|
-
"@berachain/config": "^0.1.
|
|
34
|
+
"@berachain/config": "^0.1.20"
|
|
35
35
|
},
|
|
36
36
|
"exports": {
|
|
37
37
|
"./governance": {
|