@berachain/graphql 0.5.0-beta.0 → 0.5.0-beta.2
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/api/api.codegen.d.ts +4 -6
- package/dist/beep/beep.codegen.d.ts +12 -14
- package/package.json +2 -3
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import * as viem from 'viem';
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
2
|
* @deprecated The Railway `backend` deployment is being replaced by `beep`
|
|
5
3
|
* (see `@berachain/graphql/beep`). Prefer importing from `@berachain/graphql/beep`
|
|
@@ -440,11 +438,11 @@ type paths = {
|
|
|
440
438
|
txHash: string;
|
|
441
439
|
type: "MINT" | "REDEEM";
|
|
442
440
|
collaterals: {
|
|
443
|
-
address:
|
|
441
|
+
address: `0x${string}`;
|
|
444
442
|
amount: string;
|
|
445
443
|
}[];
|
|
446
|
-
to:
|
|
447
|
-
from:
|
|
444
|
+
to: `0x${string}`;
|
|
445
|
+
from: `0x${string}`;
|
|
448
446
|
honeyAmount: string;
|
|
449
447
|
timestamp: number;
|
|
450
448
|
}[];
|
|
@@ -697,7 +695,7 @@ type webhooks = Record<string, never>;
|
|
|
697
695
|
type components = {
|
|
698
696
|
schemas: {
|
|
699
697
|
/** @description Validated EVM address type */
|
|
700
|
-
EvmAddress:
|
|
698
|
+
EvmAddress: `0x${string}`;
|
|
701
699
|
/** @description BigInt as string type */
|
|
702
700
|
BigIntStr: string;
|
|
703
701
|
/** @description Unsigned BigInt as string type */
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import * as viem from 'viem';
|
|
2
|
-
|
|
3
1
|
type paths = {
|
|
4
2
|
"/openapi.json": {
|
|
5
3
|
parameters: {
|
|
@@ -67,7 +65,7 @@ type paths = {
|
|
|
67
65
|
patch?: never;
|
|
68
66
|
trace?: never;
|
|
69
67
|
};
|
|
70
|
-
"/v0/
|
|
68
|
+
"/v0/stake/{vault}/earnings/{owner}": {
|
|
71
69
|
parameters: {
|
|
72
70
|
query?: never;
|
|
73
71
|
header?: never;
|
|
@@ -134,7 +132,7 @@ type paths = {
|
|
|
134
132
|
patch?: never;
|
|
135
133
|
trace?: never;
|
|
136
134
|
};
|
|
137
|
-
"/v0/
|
|
135
|
+
"/v0/stake/{vault}/stats-by-day": {
|
|
138
136
|
parameters: {
|
|
139
137
|
query?: never;
|
|
140
138
|
header?: never;
|
|
@@ -176,7 +174,7 @@ type paths = {
|
|
|
176
174
|
patch?: never;
|
|
177
175
|
trace?: never;
|
|
178
176
|
};
|
|
179
|
-
"/v0/
|
|
177
|
+
"/v0/stake/{vault}/rewards-received": {
|
|
180
178
|
parameters: {
|
|
181
179
|
query?: never;
|
|
182
180
|
header?: never;
|
|
@@ -233,7 +231,7 @@ type paths = {
|
|
|
233
231
|
patch?: never;
|
|
234
232
|
trace?: never;
|
|
235
233
|
};
|
|
236
|
-
"/v0/
|
|
234
|
+
"/v0/stake/{vault}/daily-yield/{owner}": {
|
|
237
235
|
parameters: {
|
|
238
236
|
query?: never;
|
|
239
237
|
header?: never;
|
|
@@ -275,7 +273,7 @@ type paths = {
|
|
|
275
273
|
patch?: never;
|
|
276
274
|
trace?: never;
|
|
277
275
|
};
|
|
278
|
-
"/v0/
|
|
276
|
+
"/v0/stake/{vault}/daily-assets/{owner}": {
|
|
279
277
|
parameters: {
|
|
280
278
|
query?: never;
|
|
281
279
|
header?: never;
|
|
@@ -967,7 +965,7 @@ type webhooks = Record<string, never>;
|
|
|
967
965
|
type components = {
|
|
968
966
|
schemas: {
|
|
969
967
|
/** @description Validated EVM address type */
|
|
970
|
-
EvmAddress:
|
|
968
|
+
EvmAddress: `0x${string}`;
|
|
971
969
|
/** @description BigInt as string type */
|
|
972
970
|
BigIntStr: string;
|
|
973
971
|
/** @description Decimal as string type */
|
|
@@ -999,11 +997,11 @@ type EvmAddress = components["schemas"]["EvmAddress"];
|
|
|
999
997
|
type BigIntStr = components["schemas"]["BigIntStr"];
|
|
1000
998
|
type DecimalStr = components["schemas"]["DecimalStr"];
|
|
1001
999
|
type BigUintStr = components["schemas"]["BigUintStr"];
|
|
1002
|
-
type
|
|
1003
|
-
type
|
|
1004
|
-
type
|
|
1005
|
-
type
|
|
1006
|
-
type
|
|
1000
|
+
type StakeEarningResponse = paths["/v0/stake/{vault}/earnings/{owner}"]["get"]["responses"][200]["content"]["application/json"];
|
|
1001
|
+
type StakeStatsByDayResponse = paths["/v0/stake/{vault}/stats-by-day"]["get"]["responses"][200]["content"]["application/json"];
|
|
1002
|
+
type StakeRewardsReceivedResponse = paths["/v0/stake/{vault}/rewards-received"]["get"]["responses"][200]["content"]["application/json"];
|
|
1003
|
+
type StakeDailyYieldResponse = paths["/v0/stake/{vault}/daily-yield/{owner}"]["get"]["responses"][200]["content"]["application/json"];
|
|
1004
|
+
type StakeDailyAssetResponse = paths["/v0/stake/{vault}/daily-assets/{owner}"]["get"]["responses"][200]["content"]["application/json"];
|
|
1007
1005
|
type ValidatorsResponse = paths["/v0/validators"]["get"]["responses"][200]["content"]["application/json"];
|
|
1008
1006
|
type ValidatorBlockStatsResponse = paths["/v0/validators/{pubkey}/block-stats"]["get"]["responses"][200]["content"]["application/json"];
|
|
1009
1007
|
type ValidatorIncentivesResponse = paths["/v0/validators/{pubkey}/incentives"]["get"]["responses"][200]["content"]["application/json"];
|
|
@@ -1019,4 +1017,4 @@ type RewardVaultDistributionsResponse = paths["/v0/reward-vaults/{vault}/distrib
|
|
|
1019
1017
|
type RewardVaultsGlobalInfoResponse = paths["/v0/reward-vaults/global-info"]["get"]["responses"][200]["content"]["application/json"];
|
|
1020
1018
|
type RewardVaultsUserVaultStakesResponse = paths["/v0/reward-vaults/user-vault-stakes"]["get"]["responses"][200]["content"]["application/json"];
|
|
1021
1019
|
|
|
1022
|
-
export type { $defs, ApiGetResponse, ApiSchema, BigIntStr, BigUintStr, BlocksBlockStatsResponse, DecimalStr, EarnDailyAssetResponse, EarnEarningResponse, EarnStatsByDayResponse, EarnTotalAssetsByDayResponse, EvmAddress, HoneySnapshotResponse, HoneyTransactionsLatestResponse, RewardVaultDistributionsResponse, RewardVaultsGlobalInfoResponse, RewardVaultsResponse, RewardVaultsUserVaultStakesResponse,
|
|
1020
|
+
export type { $defs, ApiGetResponse, ApiSchema, BigIntStr, BigUintStr, BlocksBlockStatsResponse, DecimalStr, EarnDailyAssetResponse, EarnEarningResponse, EarnStatsByDayResponse, EarnTotalAssetsByDayResponse, EvmAddress, HoneySnapshotResponse, HoneyTransactionsLatestResponse, RewardVaultDistributionsResponse, RewardVaultsGlobalInfoResponse, RewardVaultsResponse, RewardVaultsUserVaultStakesResponse, StakeDailyAssetResponse, StakeDailyYieldResponse, StakeEarningResponse, StakeRewardsReceivedResponse, StakeStatsByDayResponse, ValidatorBlockStatsResponse, ValidatorIncentivesResponse, ValidatorsResponse, components, operations, paths, webhooks };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@berachain/graphql",
|
|
3
|
-
"version": "0.5.0-beta.
|
|
3
|
+
"version": "0.5.0-beta.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -9,8 +9,7 @@
|
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"sideEffects": false,
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@apollo/client": "4.1.6"
|
|
13
|
-
"viem": "2.45.0"
|
|
12
|
+
"@apollo/client": "4.1.6"
|
|
14
13
|
},
|
|
15
14
|
"peerDependencies": {
|
|
16
15
|
"@apollo/client": "^4.0",
|