@berachain/graphql 0.1.0-alpha.2 → 0.1.0-alpha.4

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.
Files changed (34) hide show
  1. package/README.md +17 -5
  2. package/dist/bend/whisk.codegen.cjs +424 -0
  3. package/dist/bend/whisk.codegen.d.cts +1798 -0
  4. package/dist/bend/whisk.codegen.d.ts +1798 -0
  5. package/dist/bend/whisk.codegen.js +424 -0
  6. package/dist/chain/chain.codegen.cjs +12 -0
  7. package/dist/chain/chain.codegen.d.cts +376 -0
  8. package/dist/chain/chain.codegen.d.ts +376 -0
  9. package/dist/chain/chain.codegen.js +12 -0
  10. package/dist/dex/api.codegen.cjs +199 -0
  11. package/dist/dex/api.codegen.d.cts +3836 -0
  12. package/dist/dex/api.codegen.d.ts +3836 -0
  13. package/dist/dex/api.codegen.js +199 -0
  14. package/dist/dex/subgraph.codegen.cjs +88 -0
  15. package/dist/dex/subgraph.codegen.d.cts +5887 -0
  16. package/dist/dex/subgraph.codegen.d.ts +5887 -0
  17. package/dist/dex/subgraph.codegen.js +88 -0
  18. package/dist/governance/governance.codegen.cjs +116 -0
  19. package/dist/governance/governance.codegen.d.cts +1622 -0
  20. package/dist/governance/governance.codegen.d.ts +1622 -0
  21. package/dist/governance/governance.codegen.js +116 -0
  22. package/dist/honey/honey.codegen.cjs +104 -0
  23. package/dist/honey/honey.codegen.d.cts +936 -0
  24. package/dist/honey/honey.codegen.d.ts +936 -0
  25. package/dist/honey/honey.codegen.js +104 -0
  26. package/dist/pol/api.codegen.cjs +301 -0
  27. package/dist/pol/api.codegen.d.cts +3622 -0
  28. package/dist/pol/api.codegen.d.ts +3622 -0
  29. package/dist/pol/api.codegen.js +301 -0
  30. package/dist/pol/subgraph.codegen.cjs +197 -0
  31. package/dist/pol/subgraph.codegen.d.cts +4671 -0
  32. package/dist/pol/subgraph.codegen.d.ts +4671 -0
  33. package/dist/pol/subgraph.codegen.js +197 -0
  34. package/package.json +27 -23
@@ -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};
@@ -0,0 +1,301 @@
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||{}),R= exports.GqlSWberaVaultMetadataResolution =(t=>(t.OneDay="ONE_DAY",t.SevenDays="SEVEN_DAYS",t))(R||{}),x= exports.GqlSorSwapType =(t=>(t.ExactIn="EXACT_IN",t.ExactOut="EXACT_OUT",t))(x||{}),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
+ 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
+ `,$= exports.ApiVaultIncentive =_client.gql`
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= exports.ApiVault =_client.gql`
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= exports.ApiRewardAllocationWeight =_client.gql`
78
+ fragment ApiRewardAllocationWeight on GqlValidatorRewardAllocationWeight {
79
+ percentageNumerator
80
+ validatorId
81
+ receivingVault {
82
+ ...ApiVault
83
+ }
84
+ receiver
85
+ startBlock
86
+ }
87
+ ${c}`,S= exports.ApiValidator =_client.gql`
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= exports.ApiValidatorBlockUptime =_client.gql`
106
+ fragment ApiValidatorBlockUptime on GqlValidatorBlockUptime {
107
+ isActive
108
+ isProposer
109
+ isSigner
110
+ status
111
+ blockNumber
112
+ }
113
+ `,X= exports.GetVaults =_client.gql`
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= exports.GetValidator =_client.gql`
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= exports.GetValidators =_client.gql`
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= exports.GetVaultValidators =_client.gql`
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= exports.GetRewardVault =_client.gql`
182
+ query GetRewardVault($vaultId: String!, $chain: GqlChain!) {
183
+ rewardVault: polGetRewardVault(vaultAddress: $vaultId, chain: $chain) {
184
+ ...ApiVault
185
+ }
186
+ }
187
+ ${c}`,et= exports.GlobalData =_client.gql`
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= exports.GetUserVaults =_client.gql`
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= exports.GetVaultHistory =_client.gql`
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= exports.GetVaultDurations =_client.gql`
250
+ query GetVaultDurations {
251
+ polGetVaultDurations {
252
+ maxRewardDuration
253
+ minRewardDuration
254
+ rewardDurationCooldownPeriod
255
+ }
256
+ }
257
+ `,lt= exports.GetBoostDelay =_client.gql`
258
+ query GetBoostDelay {
259
+ polGetValidatorBoostDelay {
260
+ boostDelay
261
+ unboostDelay
262
+ }
263
+ }
264
+ `,it= exports.GetCommissionChangeDelay =_client.gql`
265
+ query GetCommissionChangeDelay {
266
+ polGetValidatorCommissionDelay {
267
+ rewardAllocationBlockDelay
268
+ maxWeightPerVault
269
+ commissionChangeDelay
270
+ }
271
+ }
272
+ `,st= exports.GetSWberaVaultMetadata =_client.gql`
273
+ query GetSWberaVaultMetadata($chain: GqlChain!, $resolution: GqlSWberaVaultMetadataResolution) {
274
+ polGetSWberaVaultMetadata(chain: $chain, resolution: $resolution) {
275
+ apr
276
+ chain
277
+ }
278
+ }
279
+ `,ut= exports.GetSWberaVaultSnapshots =_client.gql`
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= exports.GetPolStakeBeraVaultEventsByOwner =_client.gql`
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= 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 = R; exports.GqlSorSwapType = x; 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;