@berachain/graphql 0.1.1-beta.1 → 0.1.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/bend/whisk.codegen.js +15 -15
- package/dist/bend/{whisk.codegen.cjs → whisk.codegen.mjs} +15 -15
- package/dist/chain/chain.codegen.js +2 -2
- package/dist/chain/chain.codegen.mjs +12 -0
- package/dist/dex/api.codegen.js +17 -17
- package/dist/dex/api.codegen.mjs +199 -0
- package/dist/dex/subgraph.codegen.js +9 -9
- package/dist/dex/subgraph.codegen.mjs +88 -0
- package/dist/governance/governance.codegen.js +9 -9
- package/dist/governance/governance.codegen.mjs +116 -0
- package/dist/honey/honey.codegen.js +10 -10
- package/dist/honey/honey.codegen.mjs +104 -0
- package/dist/pol/api.codegen.js +21 -21
- package/dist/pol/api.codegen.mjs +301 -0
- package/dist/pol/subgraph.codegen.js +20 -20
- package/dist/pol/subgraph.codegen.mjs +197 -0
- package/package.json +2 -3
- package/dist/chain/chain.codegen.cjs +0 -12
- package/dist/dex/api.codegen.cjs +0 -199
- package/dist/dex/subgraph.codegen.cjs +0 -88
- package/dist/governance/governance.codegen.cjs +0 -116
- package/dist/honey/honey.codegen.cjs +0 -104
- package/dist/pol/api.codegen.cjs +0 -301
- package/dist/pol/subgraph.codegen.cjs +0 -197
- /package/dist/bend/{whisk.codegen.d.cts → whisk.codegen.d.mts} +0 -0
- /package/dist/chain/{chain.codegen.d.cts → chain.codegen.d.mts} +0 -0
- /package/dist/dex/{api.codegen.d.cts → api.codegen.d.mts} +0 -0
- /package/dist/dex/{subgraph.codegen.d.cts → subgraph.codegen.d.mts} +0 -0
- /package/dist/governance/{governance.codegen.d.cts → governance.codegen.d.mts} +0 -0
- /package/dist/honey/{honey.codegen.d.cts → honey.codegen.d.mts} +0 -0
- /package/dist/pol/{api.codegen.d.cts → api.codegen.d.mts} +0 -0
- /package/dist/pol/{subgraph.codegen.d.cts → subgraph.codegen.d.mts} +0 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import{gql as r}from"@apollo/client";var y=(n=>(n.Day="day",n.Hour="hour",n))(y||{}),u=(p=>(p.HoneyTxn="honeyTxn",p.Id="id",p.IsBasketMode="isBasketMode",p.TxHash="txHash",p.Type="type",p))(u||{}),o=(e=>(e.Collateral="collateral",e.CollateralAmount="collateralAmount",e.HoneyTxn="honeyTxn",e.HoneyTxnFrom="honeyTxn__from",e.HoneyTxnHoneyAmount="honeyTxn__honeyAmount",e.HoneyTxnId="honeyTxn__id",e.HoneyTxnIsBasketMode="honeyTxn__isBasketMode",e.HoneyTxnTimestamp="honeyTxn__timestamp",e.HoneyTxnTo="honeyTxn__to",e.HoneyTxnType="honeyTxn__type",e.Id="id",e))(o||{}),l=(t=>(t.Amount="amount",t.Id="id",t.Timestamp="timestamp",t))(l||{}),s=(t=>(t.Amount="amount",t.Id="id",t.Timestamp="timestamp",t))(s||{}),c=(a=>(a.ChainTransaction="chainTransaction",a.ChainTransactionId="chainTransaction__id",a.ChainTransactionIsBasketMode="chainTransaction__isBasketMode",a.ChainTransactionTxHash="chainTransaction__txHash",a.ChainTransactionType="chainTransaction__type",a.Collateral="collateral",a.From="from",a.HoneyAmount="honeyAmount",a.Id="id",a.IsBasketMode="isBasketMode",a.Timestamp="timestamp",a.To="to",a.Type="type",a))(c||{}),I=(t=>(t.Amount="amount",t.Id="id",t.Timestamp="timestamp",t))(I||{}),b=(t=>(t.Amount="amount",t.Id="id",t.Timestamp="timestamp",t))(b||{}),_=(n=>(n.Asc="asc",n.Desc="desc",n))(_||{}),m=(n=>(n.Mint="MINT",n.Redeem="REDEEM",n))(m||{}),S=(n=>(n.Allow="allow",n.Deny="deny",n))(S||{}),i=r`
|
|
2
|
+
fragment HoneyTxnData on HoneyTxn {
|
|
3
|
+
id
|
|
4
|
+
timestamp
|
|
5
|
+
from
|
|
6
|
+
to
|
|
7
|
+
type
|
|
8
|
+
honeyAmount
|
|
9
|
+
chainTransaction {
|
|
10
|
+
id
|
|
11
|
+
txHash
|
|
12
|
+
}
|
|
13
|
+
collateral {
|
|
14
|
+
collateral
|
|
15
|
+
collateralAmount
|
|
16
|
+
id
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
`,D=r`
|
|
20
|
+
query GetHoneyTxnByType($page: Int!, $limit: Int!, $type: TxnType!) {
|
|
21
|
+
honeyTxns(
|
|
22
|
+
skip: $page
|
|
23
|
+
first: $limit
|
|
24
|
+
orderBy: timestamp
|
|
25
|
+
orderDirection: desc
|
|
26
|
+
where: {type: $type}
|
|
27
|
+
) {
|
|
28
|
+
...HoneyTxnData
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
${i}`,h=r`
|
|
32
|
+
query GetHoneyTxn($page: Int!, $limit: Int!) {
|
|
33
|
+
honeyTxns(skip: $page, first: $limit, orderBy: timestamp, orderDirection: desc) {
|
|
34
|
+
...HoneyTxnData
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
${i}`,x=r`
|
|
38
|
+
query GetSupplyDay($timestamp_gt: Int!) {
|
|
39
|
+
honeySupplyDayDatas(
|
|
40
|
+
where: {timestamp_gt: $timestamp_gt}
|
|
41
|
+
orderBy: timestamp
|
|
42
|
+
orderDirection: asc
|
|
43
|
+
) {
|
|
44
|
+
id
|
|
45
|
+
timestamp
|
|
46
|
+
amount
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
`,H=r`
|
|
50
|
+
query GetSupplyHour($timestamp_gt: Int!) {
|
|
51
|
+
honeySupplyHourDatas(
|
|
52
|
+
where: {timestamp_gt: $timestamp_gt}
|
|
53
|
+
orderBy: timestamp
|
|
54
|
+
orderDirection: asc
|
|
55
|
+
) {
|
|
56
|
+
id
|
|
57
|
+
timestamp
|
|
58
|
+
amount
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
`,d=r`
|
|
62
|
+
query GetVolumeDay($timestamp_gt: Int!) {
|
|
63
|
+
honeyVolumeDayDatas(
|
|
64
|
+
where: {timestamp_gt: $timestamp_gt}
|
|
65
|
+
orderBy: timestamp
|
|
66
|
+
orderDirection: asc
|
|
67
|
+
) {
|
|
68
|
+
id
|
|
69
|
+
timestamp
|
|
70
|
+
amount
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
`,T=r`
|
|
74
|
+
query GetVolumeHour($timestamp_gt: Int!) {
|
|
75
|
+
honeyVolumeHourDatas(
|
|
76
|
+
where: {timestamp_gt: $timestamp_gt}
|
|
77
|
+
orderBy: timestamp
|
|
78
|
+
orderDirection: asc
|
|
79
|
+
) {
|
|
80
|
+
id
|
|
81
|
+
timestamp
|
|
82
|
+
amount
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
`,B=r`
|
|
86
|
+
query GetGlobalData {
|
|
87
|
+
honeyVolumeDayDatas(first: 1, orderBy: timestamp, orderDirection: desc) {
|
|
88
|
+
id
|
|
89
|
+
timestamp
|
|
90
|
+
amount
|
|
91
|
+
}
|
|
92
|
+
honeySupplyHourDatas(first: 1, orderBy: timestamp, orderDirection: desc) {
|
|
93
|
+
id
|
|
94
|
+
timestamp
|
|
95
|
+
amount
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
`,A=r`
|
|
99
|
+
query GetFirstHoneyTxnDate {
|
|
100
|
+
honeyTxns(first: 1) {
|
|
101
|
+
timestamp
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
`,M={possibleTypes:{}},k=M;export{y as Aggregation_Interval,u as ChainTransaction_OrderBy,A as GetFirstHoneyTxnDate,B as GetGlobalData,h as GetHoneyTxn,D as GetHoneyTxnByType,x as GetSupplyDay,H as GetSupplyHour,d as GetVolumeDay,T as GetVolumeHour,o as HoneyCollateral_OrderBy,l as HoneySupplyDayData_OrderBy,s as HoneySupplyHourData_OrderBy,i as HoneyTxnData,c as HoneyTxn_OrderBy,I as HoneyVolumeDayData_OrderBy,b as HoneyVolumeHourData_OrderBy,_ as OrderDirection,m as TxnType,S as _SubgraphErrorPolicy_,k as default};
|
package/dist/pol/api.codegen.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _client = require('@apollo/client');var d=(a=>(a.Bartio="BARTIO",a.Berachain="BERACHAIN",a.Cartio="CARTIO",a))(d||{}),m= exports.GqlContentNewsItemSource =(a=>(a.Discord="discord",a.Medium="medium",a.Twitter="twitter",a))(m||{}),G= exports.GqlPoolAprItemType =(i=>(i.Aura="AURA",i.IbYield="IB_YIELD",i.Locking="LOCKING",i.MabeetsEmissions="MABEETS_EMISSIONS",i.Merkl="MERKL",i.Nested="NESTED",i.Staking="STAKING",i.StakingBoost="STAKING_BOOST",i.Surplus="SURPLUS",i.SwapFee="SWAP_FEE",i.VebalEmissions="VEBAL_EMISSIONS",i.Voting="VOTING",i))(G||{}),A= exports.GqlPoolEventType =(a=>(a.Add="ADD",a.Remove="REMOVE",a.Swap="SWAP",a))(A||{}),b= exports.GqlPoolEventsDataRange =(a=>(a.NinetyDays="NINETY_DAYS",a.SevenDays="SEVEN_DAYS",a.ThirtyDays="THIRTY_DAYS",a))(b||{}),I= exports.GqlPoolFilterCategory =(s=>(s.BlackListed="BLACK_LISTED",s.Incentivized="INCENTIVIZED",s.Lrt="LRT",s.Points="POINTS",s.PointsEigenlayer="POINTS_EIGENLAYER",s.PointsGyro="POINTS_GYRO",s.PointsKelp="POINTS_KELP",s.PointsRenzo="POINTS_RENZO",s.PointsSwell="POINTS_SWELL",s.Superfest="SUPERFEST",s))(I||{}),q= exports.GqlPoolJoinExitType =(t=>(t.Exit="Exit",t.Join="Join",t))(q||{}),P= exports.GqlPoolNestingType =(a=>(a.HasOnlyPhantomBpt="HAS_ONLY_PHANTOM_BPT",a.HasSomePhantomBpt="HAS_SOME_PHANTOM_BPT",a.NoNesting="NO_NESTING",a))(P||{}),h= exports.GqlPoolOrderBy =(p=>(p.Apr="apr",p.BgtApr="bgtApr",p.Fees24h="fees24h",p.TotalLiquidity="totalLiquidity",p.TotalShares="totalShares",p.UserbalanceUsd="userbalanceUsd",p.Volume24h="volume24h",p))(h||{}),k= exports.GqlPoolOrderDirection =(t=>(t.Asc="asc",t.Desc="desc",t))(k||{}),B= exports.GqlPoolSnapshotDataRange =(r=>(r.AllTime="ALL_TIME",r.NinetyDays="NINETY_DAYS",r.OneHundredEightyDays="ONE_HUNDRED_EIGHTY_DAYS",r.OneYear="ONE_YEAR",r.ThirtyDays="THIRTY_DAYS",r))(B||{}),D= exports.GqlPoolType =(l=>(l.ComposableStable="COMPOSABLE_STABLE",l.CowAmm="COW_AMM",l.Element="ELEMENT",l.Fx="FX",l.Gyro="GYRO",l.Gyro3="GYRO3",l.Gyroe="GYROE",l.Investment="INVESTMENT",l.LiquidityBootstrapping="LIQUIDITY_BOOTSTRAPPING",l.MetaStable="META_STABLE",l.PhantomStable="PHANTOM_STABLE",l.Stable="STABLE",l.Unknown="UNKNOWN",l.Weighted="WEIGHTED",l))(D||{}),_= exports.GqlRewardVaultIncentiveOrderBy =(a=>(a.AmountRemaining="amountRemaining",a.AmountRemainingUsd="amountRemainingUsd",a.IncentiveRate="incentiveRate",a))(_||{}),v= exports.GqlRewardVaultIncentiveOrderDirection =(t=>(t.Asc="asc",t.Desc="desc",t))(v||{}),M= exports.GqlRewardVaultOrderBy =(u=>(u.ActiveIncentivesRateUsd="activeIncentivesRateUsd",u.ActiveIncentivesValueUsd="activeIncentivesValueUsd",u.AllTimeBgtReceived="allTimeBGTReceived",u.Apr="apr",u.Apy="apy",u.BgtCapturePercentage="bgtCapturePercentage",u.Last24hBgtReceived="last24hBGTReceived",u.ProjectedApr="projectedApr",u))(M||{}),T= exports.GqlRewardVaultOrderDirection =(t=>(t.Asc="asc",t.Desc="desc",t))(T||{}),V= exports.GqlRewardVaultSnapshotDataRange =(n=>(n.NinetyDays="NINETY_DAYS",n.SevenDays="SEVEN_DAYS",n.SixtyDays="SIXTY_DAYS",n.ThirtyDays="THIRTY_DAYS",n))(V||{}),w= exports.GqlRewardVaultSnapshotResolution =(t=>(t.Day="DAY",t.Hour="HOUR",t))(w||{}),x= exports.GqlSWberaVaultMetadataResolution =(t=>(t.OneDay="ONE_DAY",t.SevenDays="SEVEN_DAYS",t))(x||{}),R= exports.GqlSorSwapType =(t=>(t.ExactIn="EXACT_IN",t.ExactOut="EXACT_OUT",t))(R||{}),C= exports.GqlStakeBeraVaultEventType =(t=>(t.Deposit="DEPOSIT",t.WithdrawalCompleted="WITHDRAWAL_COMPLETED",t))(C||{}),U= exports.GqlTokenChartDataRange =(r=>(r.NinetyDay="NINETY_DAY",r.OneHundredEightyDay="ONE_HUNDRED_EIGHTY_DAY",r.OneYear="ONE_YEAR",r.SevenDay="SEVEN_DAY",r.ThirtyDay="THIRTY_DAY",r))(U||{}),E= exports.GqlTokenType =(a=>(a.Bpt="BPT",a.PhantomBpt="PHANTOM_BPT",a.WhiteListed="WHITE_LISTED",a))(E||{}),f= exports.GqlUserVaultDepositOrderBy =(g=>(g.Amount="amount",g))(f||{}),F= exports.GqlUserVaultDepositOrderDirection =(t=>(t.Asc="asc",t.Desc="desc",t))(F||{}),N= exports.GqlValidatorBlockUptimeStatus =(n=>(n.Inactive="INACTIVE",n.Offline="OFFLINE",n.Proposed="PROPOSED",n.Signed="SIGNED",n))(N||{}),Q= exports.GqlValidatorBoostOrderBy =(r=>(r.ActiveBoostAmount="activeBoostAmount",r.LatestBlock="latestBlock",r.LatestBlockTime="latestBlockTime",r.QueuedBoostAmount="queuedBoostAmount",r.QueuedDropBoostAmount="queuedDropBoostAmount",r))(Q||{}),W= exports.GqlValidatorBoostOrderDirection =(t=>(t.Asc="asc",t.Desc="desc",t))(W||{}),O= exports.GqlValidatorOrderBy =(o=>(o.ActiveBoostAmount="activeBoostAmount",o.AllTimeDistributedBgtAmount="allTimeDistributedBGTAmount",o.AllTimeEarnedBgtAmount="allTimeEarnedBGTAmount",o.Apy="apy",o.BgtCapturePercentage="bgtCapturePercentage",o.BoostApr="boostApr",o.CommissionOnIncentives="commissionOnIncentives",o.LastDayDistributedBgtAmount="lastDayDistributedBGTAmount",o.LastDayEarnedBgtAmount="lastDayEarnedBGTAmount",o.QueuedBoostAmount="queuedBoostAmount",o.QueuedDropBoostAmount="queuedDropBoostAmount",o.RewardRate="rewardRate",o.StakedBeraAmount="stakedBeraAmount",o.UsersActiveBoostCount="usersActiveBoostCount",o.UsersQueuedBoostCount="usersQueuedBoostCount",o))(O||{}),H= exports.GqlValidatorOrderDirection =(t=>(t.Asc="asc",t.Desc="desc",t))(H||{}),L= exports.GqlVaultSnapshotDataRange =(n=>(n.NinetyDays="NINETY_DAYS",n.SevenDays="SEVEN_DAYS",n.SixtyDays="SIXTY_DAYS",n.ThirtyDays="THIRTY_DAYS",n))(L||{}),y= exports.ApiValidatorMinimal =_client.gql`
|
|
2
2
|
fragment ApiValidatorMinimal on GqlValidator {
|
|
3
3
|
id
|
|
4
4
|
pubkey
|
|
@@ -22,7 +22,7 @@ import{gql as e}from"@apollo/client";var d=(a=>(a.Bartio="BARTIO",a.Berachain="B
|
|
|
22
22
|
commissionOnIncentives
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
`,$=
|
|
25
|
+
`,$= exports.ApiVaultIncentive =_client.gql`
|
|
26
26
|
fragment ApiVaultIncentive on GqlRewardVaultIncentive {
|
|
27
27
|
active
|
|
28
28
|
remainingAmount
|
|
@@ -37,7 +37,7 @@ import{gql as e}from"@apollo/client";var d=(a=>(a.Bartio="BARTIO",a.Berachain="B
|
|
|
37
37
|
decimals
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
`,c=
|
|
40
|
+
`,c= exports.ApiVault =_client.gql`
|
|
41
41
|
fragment ApiVault on GqlRewardVault {
|
|
42
42
|
id: vaultAddress
|
|
43
43
|
vaultAddress
|
|
@@ -74,7 +74,7 @@ import{gql as e}from"@apollo/client";var d=(a=>(a.Bartio="BARTIO",a.Berachain="B
|
|
|
74
74
|
...ApiVaultIncentive
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
${$}`,Y=
|
|
77
|
+
${$}`,Y= exports.ApiRewardAllocationWeight =_client.gql`
|
|
78
78
|
fragment ApiRewardAllocationWeight on GqlValidatorRewardAllocationWeight {
|
|
79
79
|
percentageNumerator
|
|
80
80
|
validatorId
|
|
@@ -84,7 +84,7 @@ import{gql as e}from"@apollo/client";var d=(a=>(a.Bartio="BARTIO",a.Berachain="B
|
|
|
84
84
|
receiver
|
|
85
85
|
startBlock
|
|
86
86
|
}
|
|
87
|
-
${c}`,S=
|
|
87
|
+
${c}`,S= exports.ApiValidator =_client.gql`
|
|
88
88
|
fragment ApiValidator on GqlValidator {
|
|
89
89
|
...ApiValidatorMinimal
|
|
90
90
|
operator
|
|
@@ -102,7 +102,7 @@ import{gql as e}from"@apollo/client";var d=(a=>(a.Bartio="BARTIO",a.Berachain="B
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
${y}
|
|
105
|
-
${Y}`,z=
|
|
105
|
+
${Y}`,z= exports.ApiValidatorBlockUptime =_client.gql`
|
|
106
106
|
fragment ApiValidatorBlockUptime on GqlValidatorBlockUptime {
|
|
107
107
|
isActive
|
|
108
108
|
isProposer
|
|
@@ -110,7 +110,7 @@ ${Y}`,z=e`
|
|
|
110
110
|
status
|
|
111
111
|
blockNumber
|
|
112
112
|
}
|
|
113
|
-
`,X=
|
|
113
|
+
`,X= exports.GetVaults =_client.gql`
|
|
114
114
|
query GetVaults($where: GqlRewardVaultFilter, $pageSize: Int, $skip: Int, $orderBy: GqlRewardVaultOrderBy = bgtCapturePercentage, $orderDirection: GqlRewardVaultOrderDirection = desc, $search: String) {
|
|
115
115
|
polGetRewardVaults(
|
|
116
116
|
where: $where
|
|
@@ -129,7 +129,7 @@ ${Y}`,z=e`
|
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
${c}`,j=
|
|
132
|
+
${c}`,j= exports.GetValidator =_client.gql`
|
|
133
133
|
query GetValidator($id: String!, $chain: GqlChain!) {
|
|
134
134
|
validator: polGetValidator(validatorId: $id, chain: $chain) {
|
|
135
135
|
...ApiValidator
|
|
@@ -139,7 +139,7 @@ ${Y}`,z=e`
|
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
${S}
|
|
142
|
-
${z}`,Z=
|
|
142
|
+
${z}`,Z= exports.GetValidators =_client.gql`
|
|
143
143
|
query GetValidators($where: GqlValidatorFilter, $sortBy: GqlValidatorOrderBy = lastDayDistributedBGTAmount, $sortOrder: GqlValidatorOrderDirection = desc, $pageSize: Int, $skip: Int, $search: String, $chain: GqlChain) {
|
|
144
144
|
validators: polGetValidators(
|
|
145
145
|
where: $where
|
|
@@ -161,7 +161,7 @@ ${z}`,Z=e`
|
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
|
-
${S}`,tt=
|
|
164
|
+
${S}`,tt= exports.GetVaultValidators =_client.gql`
|
|
165
165
|
query GetVaultValidators($vaultId: String!, $chain: GqlChain, $isActive: Boolean = true) {
|
|
166
166
|
validators: polGetValidators(
|
|
167
167
|
where: {vaultAddress: $vaultId, isActive: $isActive}
|
|
@@ -178,13 +178,13 @@ ${z}`,Z=e`
|
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
|
-
${S}`,at=
|
|
181
|
+
${S}`,at= exports.GetRewardVault =_client.gql`
|
|
182
182
|
query GetRewardVault($vaultId: String!, $chain: GqlChain!) {
|
|
183
183
|
rewardVault: polGetRewardVault(vaultAddress: $vaultId, chain: $chain) {
|
|
184
184
|
...ApiVault
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
${c}`,et=
|
|
187
|
+
${c}`,et= exports.GlobalData =_client.gql`
|
|
188
188
|
query GlobalData($chain: GqlChain!) {
|
|
189
189
|
top3EmittingValidators: polGetValidators(
|
|
190
190
|
orderBy: bgtCapturePercentage
|
|
@@ -217,7 +217,7 @@ ${z}`,Z=e`
|
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
|
-
${y}`,rt=
|
|
220
|
+
${y}`,rt= exports.GetUserVaults =_client.gql`
|
|
221
221
|
query GetUserVaults($userId: String!, $chain: GqlChain!) {
|
|
222
222
|
userVaultDeposits: polGetUserVaultDeposits(userAddress: $userId, chain: $chain) {
|
|
223
223
|
pagination {
|
|
@@ -233,7 +233,7 @@ ${z}`,Z=e`
|
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
|
-
${c}`,ot=
|
|
236
|
+
${c}`,ot= exports.GetVaultHistory =_client.gql`
|
|
237
237
|
query GetVaultHistory($vaultId: String!, $chain: GqlChain!, $resolution: GqlRewardVaultSnapshotResolution = DAY, $range: GqlRewardVaultSnapshotDataRange = THIRTY_DAYS) {
|
|
238
238
|
polGetRewardVaultSnapshots(
|
|
239
239
|
chain: $chain
|
|
@@ -246,7 +246,7 @@ ${z}`,Z=e`
|
|
|
246
246
|
apr
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
|
-
`,nt=
|
|
249
|
+
`,nt= exports.GetVaultDurations =_client.gql`
|
|
250
250
|
query GetVaultDurations {
|
|
251
251
|
polGetVaultDurations {
|
|
252
252
|
maxRewardDuration
|
|
@@ -254,14 +254,14 @@ ${z}`,Z=e`
|
|
|
254
254
|
rewardDurationCooldownPeriod
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
|
-
`,lt=
|
|
257
|
+
`,lt= exports.GetBoostDelay =_client.gql`
|
|
258
258
|
query GetBoostDelay {
|
|
259
259
|
polGetValidatorBoostDelay {
|
|
260
260
|
boostDelay
|
|
261
261
|
unboostDelay
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
|
-
`,it=
|
|
264
|
+
`,it= exports.GetCommissionChangeDelay =_client.gql`
|
|
265
265
|
query GetCommissionChangeDelay {
|
|
266
266
|
polGetValidatorCommissionDelay {
|
|
267
267
|
rewardAllocationBlockDelay
|
|
@@ -269,14 +269,14 @@ ${z}`,Z=e`
|
|
|
269
269
|
commissionChangeDelay
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
|
-
`,st=
|
|
272
|
+
`,st= exports.GetSWberaVaultMetadata =_client.gql`
|
|
273
273
|
query GetSWberaVaultMetadata($chain: GqlChain!, $resolution: GqlSWberaVaultMetadataResolution) {
|
|
274
274
|
polGetSWberaVaultMetadata(chain: $chain, resolution: $resolution) {
|
|
275
275
|
apr
|
|
276
276
|
chain
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
|
-
`,ut=
|
|
279
|
+
`,ut= exports.GetSWberaVaultSnapshots =_client.gql`
|
|
280
280
|
query GetSWberaVaultSnapshots($chain: GqlChain!, $range: GqlVaultSnapshotDataRange) {
|
|
281
281
|
polGetSWberaVaultSnapshots(chain: $chain, range: $range) {
|
|
282
282
|
apr
|
|
@@ -287,7 +287,7 @@ ${z}`,Z=e`
|
|
|
287
287
|
vaultAddress
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
|
-
`,pt=
|
|
290
|
+
`,pt= exports.GetPolStakeBeraVaultEventsByOwner =_client.gql`
|
|
291
291
|
query GetPolStakeBeraVaultEventsByOwner($owner: String!) {
|
|
292
292
|
events: polGetStakeBeraVaultEventsByOwner(owner: $owner) {
|
|
293
293
|
type
|
|
@@ -298,4 +298,4 @@ ${z}`,Z=e`
|
|
|
298
298
|
_timestamp
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
|
-
`,K={possibleTypes:{GqlPoolAprValue:["GqlPoolAprRange","GqlPoolAprTotal"],GqlPoolBase:["GqlPoolComposableStable","GqlPoolElement","GqlPoolFx","GqlPoolGyro","GqlPoolLiquidityBootstrapping","GqlPoolMetaStable","GqlPoolStable","GqlPoolWeighted"],GqlPoolEvent:["GqlPoolAddRemoveEventV3","GqlPoolSwapEventCowAmm","GqlPoolSwapEventV3"],GqlPoolFeaturedPoolGroupItem:["GqlFeaturePoolGroupItemExternalLink","GqlPoolMinimal"],GqlPoolNestedUnion:["GqlPoolComposableStableNested"],GqlPoolTokenBase:["GqlPoolToken","GqlPoolTokenComposableStable"],GqlPoolTokenComposableStableNestedUnion:["GqlPoolToken"],GqlPoolTokenUnion:["GqlPoolToken","GqlPoolTokenComposableStable"],GqlPoolUnion:["GqlPoolComposableStable","GqlPoolElement","GqlPoolFx","GqlPoolGyro","GqlPoolLiquidityBootstrapping","GqlPoolMetaStable","GqlPoolStable","GqlPoolWeighted"]}},ct=K;
|
|
301
|
+
`,K={possibleTypes:{GqlPoolAprValue:["GqlPoolAprRange","GqlPoolAprTotal"],GqlPoolBase:["GqlPoolComposableStable","GqlPoolElement","GqlPoolFx","GqlPoolGyro","GqlPoolLiquidityBootstrapping","GqlPoolMetaStable","GqlPoolStable","GqlPoolWeighted"],GqlPoolEvent:["GqlPoolAddRemoveEventV3","GqlPoolSwapEventCowAmm","GqlPoolSwapEventV3"],GqlPoolFeaturedPoolGroupItem:["GqlFeaturePoolGroupItemExternalLink","GqlPoolMinimal"],GqlPoolNestedUnion:["GqlPoolComposableStableNested"],GqlPoolTokenBase:["GqlPoolToken","GqlPoolTokenComposableStable"],GqlPoolTokenComposableStableNestedUnion:["GqlPoolToken"],GqlPoolTokenUnion:["GqlPoolToken","GqlPoolTokenComposableStable"],GqlPoolUnion:["GqlPoolComposableStable","GqlPoolElement","GqlPoolFx","GqlPoolGyro","GqlPoolLiquidityBootstrapping","GqlPoolMetaStable","GqlPoolStable","GqlPoolWeighted"]}},ct= exports.default =K;exports.ApiRewardAllocationWeight = Y; exports.ApiValidator = S; exports.ApiValidatorBlockUptime = z; exports.ApiValidatorMinimal = y; exports.ApiVault = c; exports.ApiVaultIncentive = $; exports.GetBoostDelay = lt; exports.GetCommissionChangeDelay = it; exports.GetPolStakeBeraVaultEventsByOwner = pt; exports.GetRewardVault = at; exports.GetSWberaVaultMetadata = st; exports.GetSWberaVaultSnapshots = ut; exports.GetUserVaults = rt; exports.GetValidator = j; exports.GetValidators = Z; exports.GetVaultDurations = nt; exports.GetVaultHistory = ot; exports.GetVaultValidators = tt; exports.GetVaults = X; exports.GlobalData = et; exports.GqlChain = d; exports.GqlContentNewsItemSource = m; exports.GqlPoolAprItemType = G; exports.GqlPoolEventType = A; exports.GqlPoolEventsDataRange = b; exports.GqlPoolFilterCategory = I; exports.GqlPoolJoinExitType = q; exports.GqlPoolNestingType = P; exports.GqlPoolOrderBy = h; exports.GqlPoolOrderDirection = k; exports.GqlPoolSnapshotDataRange = B; exports.GqlPoolType = D; exports.GqlRewardVaultIncentiveOrderBy = _; exports.GqlRewardVaultIncentiveOrderDirection = v; exports.GqlRewardVaultOrderBy = M; exports.GqlRewardVaultOrderDirection = T; exports.GqlRewardVaultSnapshotDataRange = V; exports.GqlRewardVaultSnapshotResolution = w; exports.GqlSWberaVaultMetadataResolution = x; exports.GqlSorSwapType = R; exports.GqlStakeBeraVaultEventType = C; exports.GqlTokenChartDataRange = U; exports.GqlTokenType = E; exports.GqlUserVaultDepositOrderBy = f; exports.GqlUserVaultDepositOrderDirection = F; exports.GqlValidatorBlockUptimeStatus = N; exports.GqlValidatorBoostOrderBy = Q; exports.GqlValidatorBoostOrderDirection = W; exports.GqlValidatorOrderBy = O; exports.GqlValidatorOrderDirection = H; exports.GqlVaultSnapshotDataRange = L; exports.default = ct;
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
import{gql as e}from"@apollo/client";var d=(a=>(a.Bartio="BARTIO",a.Berachain="BERACHAIN",a.Cartio="CARTIO",a))(d||{}),m=(a=>(a.Discord="discord",a.Medium="medium",a.Twitter="twitter",a))(m||{}),G=(i=>(i.Aura="AURA",i.IbYield="IB_YIELD",i.Locking="LOCKING",i.MabeetsEmissions="MABEETS_EMISSIONS",i.Merkl="MERKL",i.Nested="NESTED",i.Staking="STAKING",i.StakingBoost="STAKING_BOOST",i.Surplus="SURPLUS",i.SwapFee="SWAP_FEE",i.VebalEmissions="VEBAL_EMISSIONS",i.Voting="VOTING",i))(G||{}),A=(a=>(a.Add="ADD",a.Remove="REMOVE",a.Swap="SWAP",a))(A||{}),b=(a=>(a.NinetyDays="NINETY_DAYS",a.SevenDays="SEVEN_DAYS",a.ThirtyDays="THIRTY_DAYS",a))(b||{}),I=(s=>(s.BlackListed="BLACK_LISTED",s.Incentivized="INCENTIVIZED",s.Lrt="LRT",s.Points="POINTS",s.PointsEigenlayer="POINTS_EIGENLAYER",s.PointsGyro="POINTS_GYRO",s.PointsKelp="POINTS_KELP",s.PointsRenzo="POINTS_RENZO",s.PointsSwell="POINTS_SWELL",s.Superfest="SUPERFEST",s))(I||{}),q=(t=>(t.Exit="Exit",t.Join="Join",t))(q||{}),P=(a=>(a.HasOnlyPhantomBpt="HAS_ONLY_PHANTOM_BPT",a.HasSomePhantomBpt="HAS_SOME_PHANTOM_BPT",a.NoNesting="NO_NESTING",a))(P||{}),h=(p=>(p.Apr="apr",p.BgtApr="bgtApr",p.Fees24h="fees24h",p.TotalLiquidity="totalLiquidity",p.TotalShares="totalShares",p.UserbalanceUsd="userbalanceUsd",p.Volume24h="volume24h",p))(h||{}),k=(t=>(t.Asc="asc",t.Desc="desc",t))(k||{}),B=(r=>(r.AllTime="ALL_TIME",r.NinetyDays="NINETY_DAYS",r.OneHundredEightyDays="ONE_HUNDRED_EIGHTY_DAYS",r.OneYear="ONE_YEAR",r.ThirtyDays="THIRTY_DAYS",r))(B||{}),D=(l=>(l.ComposableStable="COMPOSABLE_STABLE",l.CowAmm="COW_AMM",l.Element="ELEMENT",l.Fx="FX",l.Gyro="GYRO",l.Gyro3="GYRO3",l.Gyroe="GYROE",l.Investment="INVESTMENT",l.LiquidityBootstrapping="LIQUIDITY_BOOTSTRAPPING",l.MetaStable="META_STABLE",l.PhantomStable="PHANTOM_STABLE",l.Stable="STABLE",l.Unknown="UNKNOWN",l.Weighted="WEIGHTED",l))(D||{}),_=(a=>(a.AmountRemaining="amountRemaining",a.AmountRemainingUsd="amountRemainingUsd",a.IncentiveRate="incentiveRate",a))(_||{}),v=(t=>(t.Asc="asc",t.Desc="desc",t))(v||{}),M=(u=>(u.ActiveIncentivesRateUsd="activeIncentivesRateUsd",u.ActiveIncentivesValueUsd="activeIncentivesValueUsd",u.AllTimeBgtReceived="allTimeBGTReceived",u.Apr="apr",u.Apy="apy",u.BgtCapturePercentage="bgtCapturePercentage",u.Last24hBgtReceived="last24hBGTReceived",u.ProjectedApr="projectedApr",u))(M||{}),T=(t=>(t.Asc="asc",t.Desc="desc",t))(T||{}),V=(n=>(n.NinetyDays="NINETY_DAYS",n.SevenDays="SEVEN_DAYS",n.SixtyDays="SIXTY_DAYS",n.ThirtyDays="THIRTY_DAYS",n))(V||{}),w=(t=>(t.Day="DAY",t.Hour="HOUR",t))(w||{}),x=(t=>(t.OneDay="ONE_DAY",t.SevenDays="SEVEN_DAYS",t))(x||{}),R=(t=>(t.ExactIn="EXACT_IN",t.ExactOut="EXACT_OUT",t))(R||{}),C=(t=>(t.Deposit="DEPOSIT",t.WithdrawalCompleted="WITHDRAWAL_COMPLETED",t))(C||{}),U=(r=>(r.NinetyDay="NINETY_DAY",r.OneHundredEightyDay="ONE_HUNDRED_EIGHTY_DAY",r.OneYear="ONE_YEAR",r.SevenDay="SEVEN_DAY",r.ThirtyDay="THIRTY_DAY",r))(U||{}),E=(a=>(a.Bpt="BPT",a.PhantomBpt="PHANTOM_BPT",a.WhiteListed="WHITE_LISTED",a))(E||{}),f=(g=>(g.Amount="amount",g))(f||{}),F=(t=>(t.Asc="asc",t.Desc="desc",t))(F||{}),N=(n=>(n.Inactive="INACTIVE",n.Offline="OFFLINE",n.Proposed="PROPOSED",n.Signed="SIGNED",n))(N||{}),Q=(r=>(r.ActiveBoostAmount="activeBoostAmount",r.LatestBlock="latestBlock",r.LatestBlockTime="latestBlockTime",r.QueuedBoostAmount="queuedBoostAmount",r.QueuedDropBoostAmount="queuedDropBoostAmount",r))(Q||{}),W=(t=>(t.Asc="asc",t.Desc="desc",t))(W||{}),O=(o=>(o.ActiveBoostAmount="activeBoostAmount",o.AllTimeDistributedBgtAmount="allTimeDistributedBGTAmount",o.AllTimeEarnedBgtAmount="allTimeEarnedBGTAmount",o.Apy="apy",o.BgtCapturePercentage="bgtCapturePercentage",o.BoostApr="boostApr",o.CommissionOnIncentives="commissionOnIncentives",o.LastDayDistributedBgtAmount="lastDayDistributedBGTAmount",o.LastDayEarnedBgtAmount="lastDayEarnedBGTAmount",o.QueuedBoostAmount="queuedBoostAmount",o.QueuedDropBoostAmount="queuedDropBoostAmount",o.RewardRate="rewardRate",o.StakedBeraAmount="stakedBeraAmount",o.UsersActiveBoostCount="usersActiveBoostCount",o.UsersQueuedBoostCount="usersQueuedBoostCount",o))(O||{}),H=(t=>(t.Asc="asc",t.Desc="desc",t))(H||{}),L=(n=>(n.NinetyDays="NINETY_DAYS",n.SevenDays="SEVEN_DAYS",n.SixtyDays="SIXTY_DAYS",n.ThirtyDays="THIRTY_DAYS",n))(L||{}),y=e`
|
|
2
|
+
fragment ApiValidatorMinimal on GqlValidator {
|
|
3
|
+
id
|
|
4
|
+
pubkey
|
|
5
|
+
operator
|
|
6
|
+
rewardAllocator
|
|
7
|
+
metadata {
|
|
8
|
+
name
|
|
9
|
+
logoURI
|
|
10
|
+
}
|
|
11
|
+
dynamicData {
|
|
12
|
+
activeBoostAmount
|
|
13
|
+
usersActiveBoostCount
|
|
14
|
+
queuedBoostAmount
|
|
15
|
+
usersQueuedBoostCount
|
|
16
|
+
allTimeDistributedBGTAmount
|
|
17
|
+
rewardRate
|
|
18
|
+
stakedBeraAmount
|
|
19
|
+
lastDayDistributedBGTAmount
|
|
20
|
+
activeBoostAmountRank
|
|
21
|
+
boostApr
|
|
22
|
+
commissionOnIncentives
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
`,$=e`
|
|
26
|
+
fragment ApiVaultIncentive on GqlRewardVaultIncentive {
|
|
27
|
+
active
|
|
28
|
+
remainingAmount
|
|
29
|
+
remainingAmountUsd
|
|
30
|
+
incentiveRate
|
|
31
|
+
incentiveRateUsd
|
|
32
|
+
tokenAddress
|
|
33
|
+
token {
|
|
34
|
+
address
|
|
35
|
+
name
|
|
36
|
+
symbol
|
|
37
|
+
decimals
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
`,c=e`
|
|
41
|
+
fragment ApiVault on GqlRewardVault {
|
|
42
|
+
id: vaultAddress
|
|
43
|
+
vaultAddress
|
|
44
|
+
address: vaultAddress
|
|
45
|
+
isVaultWhitelisted
|
|
46
|
+
dynamicData {
|
|
47
|
+
allTimeReceivedBGTAmount
|
|
48
|
+
apr
|
|
49
|
+
bgtCapturePercentage
|
|
50
|
+
bgtCapturePerBlock
|
|
51
|
+
activeIncentivesValueUsd
|
|
52
|
+
activeIncentivesRateUsd
|
|
53
|
+
bgtCapturePerBlock
|
|
54
|
+
tvl
|
|
55
|
+
}
|
|
56
|
+
stakingTokenAmount
|
|
57
|
+
stakingToken {
|
|
58
|
+
address
|
|
59
|
+
name
|
|
60
|
+
symbol
|
|
61
|
+
decimals
|
|
62
|
+
}
|
|
63
|
+
metadata {
|
|
64
|
+
name
|
|
65
|
+
logoURI
|
|
66
|
+
url
|
|
67
|
+
protocolName
|
|
68
|
+
protocolIcon
|
|
69
|
+
description
|
|
70
|
+
categories
|
|
71
|
+
action
|
|
72
|
+
}
|
|
73
|
+
activeIncentives {
|
|
74
|
+
...ApiVaultIncentive
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
${$}`,Y=e`
|
|
78
|
+
fragment ApiRewardAllocationWeight on GqlValidatorRewardAllocationWeight {
|
|
79
|
+
percentageNumerator
|
|
80
|
+
validatorId
|
|
81
|
+
receivingVault {
|
|
82
|
+
...ApiVault
|
|
83
|
+
}
|
|
84
|
+
receiver
|
|
85
|
+
startBlock
|
|
86
|
+
}
|
|
87
|
+
${c}`,S=e`
|
|
88
|
+
fragment ApiValidator on GqlValidator {
|
|
89
|
+
...ApiValidatorMinimal
|
|
90
|
+
operator
|
|
91
|
+
rewardAllocationWeights {
|
|
92
|
+
...ApiRewardAllocationWeight
|
|
93
|
+
}
|
|
94
|
+
lastBlockUptime {
|
|
95
|
+
isActive
|
|
96
|
+
}
|
|
97
|
+
metadata {
|
|
98
|
+
name
|
|
99
|
+
logoURI
|
|
100
|
+
website
|
|
101
|
+
description
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
${y}
|
|
105
|
+
${Y}`,z=e`
|
|
106
|
+
fragment ApiValidatorBlockUptime on GqlValidatorBlockUptime {
|
|
107
|
+
isActive
|
|
108
|
+
isProposer
|
|
109
|
+
isSigner
|
|
110
|
+
status
|
|
111
|
+
blockNumber
|
|
112
|
+
}
|
|
113
|
+
`,X=e`
|
|
114
|
+
query GetVaults($where: GqlRewardVaultFilter, $pageSize: Int, $skip: Int, $orderBy: GqlRewardVaultOrderBy = bgtCapturePercentage, $orderDirection: GqlRewardVaultOrderDirection = desc, $search: String) {
|
|
115
|
+
polGetRewardVaults(
|
|
116
|
+
where: $where
|
|
117
|
+
first: $pageSize
|
|
118
|
+
skip: $skip
|
|
119
|
+
orderBy: $orderBy
|
|
120
|
+
orderDirection: $orderDirection
|
|
121
|
+
search: $search
|
|
122
|
+
) {
|
|
123
|
+
pagination {
|
|
124
|
+
currentPage
|
|
125
|
+
totalCount
|
|
126
|
+
}
|
|
127
|
+
vaults {
|
|
128
|
+
...ApiVault
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
${c}`,j=e`
|
|
133
|
+
query GetValidator($id: String!, $chain: GqlChain!) {
|
|
134
|
+
validator: polGetValidator(validatorId: $id, chain: $chain) {
|
|
135
|
+
...ApiValidator
|
|
136
|
+
}
|
|
137
|
+
uptime: polGetValidatorBlockUptimes(validatorId: $id, chain: $chain) {
|
|
138
|
+
...ApiValidatorBlockUptime
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
${S}
|
|
142
|
+
${z}`,Z=e`
|
|
143
|
+
query GetValidators($where: GqlValidatorFilter, $sortBy: GqlValidatorOrderBy = lastDayDistributedBGTAmount, $sortOrder: GqlValidatorOrderDirection = desc, $pageSize: Int, $skip: Int, $search: String, $chain: GqlChain) {
|
|
144
|
+
validators: polGetValidators(
|
|
145
|
+
where: $where
|
|
146
|
+
orderBy: $sortBy
|
|
147
|
+
orderDirection: $sortOrder
|
|
148
|
+
first: $pageSize
|
|
149
|
+
skip: $skip
|
|
150
|
+
search: $search
|
|
151
|
+
chain: $chain
|
|
152
|
+
) {
|
|
153
|
+
pagination {
|
|
154
|
+
currentPage
|
|
155
|
+
totalCount
|
|
156
|
+
totalPages
|
|
157
|
+
pageSize
|
|
158
|
+
}
|
|
159
|
+
validators {
|
|
160
|
+
...ApiValidator
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
${S}`,tt=e`
|
|
165
|
+
query GetVaultValidators($vaultId: String!, $chain: GqlChain, $isActive: Boolean = true) {
|
|
166
|
+
validators: polGetValidators(
|
|
167
|
+
where: {vaultAddress: $vaultId, isActive: $isActive}
|
|
168
|
+
orderDirection: desc
|
|
169
|
+
orderBy: rewardRate
|
|
170
|
+
chain: $chain
|
|
171
|
+
) {
|
|
172
|
+
pagination {
|
|
173
|
+
currentPage
|
|
174
|
+
totalCount
|
|
175
|
+
}
|
|
176
|
+
validators {
|
|
177
|
+
...ApiValidator
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
${S}`,at=e`
|
|
182
|
+
query GetRewardVault($vaultId: String!, $chain: GqlChain!) {
|
|
183
|
+
rewardVault: polGetRewardVault(vaultAddress: $vaultId, chain: $chain) {
|
|
184
|
+
...ApiVault
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
${c}`,et=e`
|
|
188
|
+
query GlobalData($chain: GqlChain!) {
|
|
189
|
+
top3EmittingValidators: polGetValidators(
|
|
190
|
+
orderBy: bgtCapturePercentage
|
|
191
|
+
orderDirection: desc
|
|
192
|
+
first: 3
|
|
193
|
+
) {
|
|
194
|
+
pagination {
|
|
195
|
+
currentPage
|
|
196
|
+
totalCount
|
|
197
|
+
}
|
|
198
|
+
validators {
|
|
199
|
+
...ApiValidatorMinimal
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
polGetGlobalInfo(chain: $chain) {
|
|
203
|
+
totalActiveBoostAmount
|
|
204
|
+
totalValidatorsCount
|
|
205
|
+
totalWhitelistedRewardVaults
|
|
206
|
+
totalActiveRewardVaults
|
|
207
|
+
totalActiveIncentives
|
|
208
|
+
totalActiveIncentivesValueUSD
|
|
209
|
+
totalDistributedBGTAmount
|
|
210
|
+
totalStakedBeraAmount
|
|
211
|
+
annualizedBGTEmission
|
|
212
|
+
annualizedBGTInflation
|
|
213
|
+
}
|
|
214
|
+
allValidatorsCount: polGetValidators {
|
|
215
|
+
pagination {
|
|
216
|
+
totalCount
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
${y}`,rt=e`
|
|
221
|
+
query GetUserVaults($userId: String!, $chain: GqlChain!) {
|
|
222
|
+
userVaultDeposits: polGetUserVaultDeposits(userAddress: $userId, chain: $chain) {
|
|
223
|
+
pagination {
|
|
224
|
+
currentPage
|
|
225
|
+
totalCount
|
|
226
|
+
}
|
|
227
|
+
deposits {
|
|
228
|
+
amount
|
|
229
|
+
vaultAddress
|
|
230
|
+
vault {
|
|
231
|
+
...ApiVault
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
${c}`,ot=e`
|
|
237
|
+
query GetVaultHistory($vaultId: String!, $chain: GqlChain!, $resolution: GqlRewardVaultSnapshotResolution = DAY, $range: GqlRewardVaultSnapshotDataRange = THIRTY_DAYS) {
|
|
238
|
+
polGetRewardVaultSnapshots(
|
|
239
|
+
chain: $chain
|
|
240
|
+
range: $range
|
|
241
|
+
resolution: $resolution
|
|
242
|
+
vaultAddress: $vaultId
|
|
243
|
+
) {
|
|
244
|
+
timestamp
|
|
245
|
+
tvl
|
|
246
|
+
apr
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
`,nt=e`
|
|
250
|
+
query GetVaultDurations {
|
|
251
|
+
polGetVaultDurations {
|
|
252
|
+
maxRewardDuration
|
|
253
|
+
minRewardDuration
|
|
254
|
+
rewardDurationCooldownPeriod
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
`,lt=e`
|
|
258
|
+
query GetBoostDelay {
|
|
259
|
+
polGetValidatorBoostDelay {
|
|
260
|
+
boostDelay
|
|
261
|
+
unboostDelay
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
`,it=e`
|
|
265
|
+
query GetCommissionChangeDelay {
|
|
266
|
+
polGetValidatorCommissionDelay {
|
|
267
|
+
rewardAllocationBlockDelay
|
|
268
|
+
maxWeightPerVault
|
|
269
|
+
commissionChangeDelay
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
`,st=e`
|
|
273
|
+
query GetSWberaVaultMetadata($chain: GqlChain!, $resolution: GqlSWberaVaultMetadataResolution) {
|
|
274
|
+
polGetSWberaVaultMetadata(chain: $chain, resolution: $resolution) {
|
|
275
|
+
apr
|
|
276
|
+
chain
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
`,ut=e`
|
|
280
|
+
query GetSWberaVaultSnapshots($chain: GqlChain!, $range: GqlVaultSnapshotDataRange) {
|
|
281
|
+
polGetSWberaVaultSnapshots(chain: $chain, range: $range) {
|
|
282
|
+
apr
|
|
283
|
+
chain
|
|
284
|
+
id
|
|
285
|
+
timestamp
|
|
286
|
+
totalAssets
|
|
287
|
+
vaultAddress
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
`,pt=e`
|
|
291
|
+
query GetPolStakeBeraVaultEventsByOwner($owner: String!) {
|
|
292
|
+
events: polGetStakeBeraVaultEventsByOwner(owner: $owner) {
|
|
293
|
+
type
|
|
294
|
+
assets
|
|
295
|
+
shares
|
|
296
|
+
owner
|
|
297
|
+
_id
|
|
298
|
+
_timestamp
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
`,K={possibleTypes:{GqlPoolAprValue:["GqlPoolAprRange","GqlPoolAprTotal"],GqlPoolBase:["GqlPoolComposableStable","GqlPoolElement","GqlPoolFx","GqlPoolGyro","GqlPoolLiquidityBootstrapping","GqlPoolMetaStable","GqlPoolStable","GqlPoolWeighted"],GqlPoolEvent:["GqlPoolAddRemoveEventV3","GqlPoolSwapEventCowAmm","GqlPoolSwapEventV3"],GqlPoolFeaturedPoolGroupItem:["GqlFeaturePoolGroupItemExternalLink","GqlPoolMinimal"],GqlPoolNestedUnion:["GqlPoolComposableStableNested"],GqlPoolTokenBase:["GqlPoolToken","GqlPoolTokenComposableStable"],GqlPoolTokenComposableStableNestedUnion:["GqlPoolToken"],GqlPoolTokenUnion:["GqlPoolToken","GqlPoolTokenComposableStable"],GqlPoolUnion:["GqlPoolComposableStable","GqlPoolElement","GqlPoolFx","GqlPoolGyro","GqlPoolLiquidityBootstrapping","GqlPoolMetaStable","GqlPoolStable","GqlPoolWeighted"]}},ct=K;export{Y as ApiRewardAllocationWeight,S as ApiValidator,z as ApiValidatorBlockUptime,y as ApiValidatorMinimal,c as ApiVault,$ as ApiVaultIncentive,lt as GetBoostDelay,it as GetCommissionChangeDelay,pt as GetPolStakeBeraVaultEventsByOwner,at as GetRewardVault,st as GetSWberaVaultMetadata,ut as GetSWberaVaultSnapshots,rt as GetUserVaults,j as GetValidator,Z as GetValidators,nt as GetVaultDurations,ot as GetVaultHistory,tt as GetVaultValidators,X as GetVaults,et as GlobalData,d as GqlChain,m as GqlContentNewsItemSource,G as GqlPoolAprItemType,A as GqlPoolEventType,b as GqlPoolEventsDataRange,I as GqlPoolFilterCategory,q as GqlPoolJoinExitType,P as GqlPoolNestingType,h as GqlPoolOrderBy,k as GqlPoolOrderDirection,B as GqlPoolSnapshotDataRange,D as GqlPoolType,_ as GqlRewardVaultIncentiveOrderBy,v as GqlRewardVaultIncentiveOrderDirection,M as GqlRewardVaultOrderBy,T as GqlRewardVaultOrderDirection,V as GqlRewardVaultSnapshotDataRange,w as GqlRewardVaultSnapshotResolution,x as GqlSWberaVaultMetadataResolution,R as GqlSorSwapType,C as GqlStakeBeraVaultEventType,U as GqlTokenChartDataRange,E as GqlTokenType,f as GqlUserVaultDepositOrderBy,F as GqlUserVaultDepositOrderDirection,N as GqlValidatorBlockUptimeStatus,Q as GqlValidatorBoostOrderBy,W as GqlValidatorBoostOrderDirection,O as GqlValidatorOrderBy,H as GqlValidatorOrderDirection,L as GqlVaultSnapshotDataRange,ct as default};
|