@berachain/graphql 0.3.3 → 0.4.0
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.cjs +9 -9
- package/dist/bend/whisk.codegen.d.cts +155 -1
- package/dist/bend/whisk.codegen.d.ts +155 -1
- package/dist/bend/whisk.codegen.mjs +6 -6
- package/dist/dex/subgraph.codegen.cjs +1 -1
- package/dist/dex/subgraph.codegen.d.cts +29 -49
- package/dist/dex/subgraph.codegen.d.ts +29 -49
- package/dist/dex/subgraph.codegen.mjs +1 -1
- package/dist/pol/api.codegen.cjs +19 -42
- package/dist/pol/api.codegen.d.cts +1 -39
- package/dist/pol/api.codegen.d.ts +1 -39
- package/dist/pol/api.codegen.mjs +7 -30
- package/package.json +1 -1
package/dist/pol/api.codegen.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{gql as e}from"@apollo/client";var g=(a=>(a.Bartio="BARTIO",a.Berachain="BERACHAIN",a.Cartio="CARTIO",a))(g||{}),d=(a=>(a.Discord="discord",a.Medium="medium",a.Twitter="twitter",a))(d||{}),m=(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))(m||{}),G=(a=>(a.Add="ADD",a.Remove="REMOVE",a.Swap="SWAP",a))(G||{}),A=(a=>(a.NinetyDays="NINETY_DAYS",a.SevenDays="SEVEN_DAYS",a.ThirtyDays="THIRTY_DAYS",a))(A||{}),b=(u=>(u.BlackListed="BLACK_LISTED",u.Incentivized="INCENTIVIZED",u.Lrt="LRT",u.Points="POINTS",u.PointsEigenlayer="POINTS_EIGENLAYER",u.PointsGyro="POINTS_GYRO",u.PointsKelp="POINTS_KELP",u.PointsRenzo="POINTS_RENZO",u.PointsSwell="POINTS_SWELL",u.Superfest="SUPERFEST",u))(b||{}),I=(t=>(t.Exit="Exit",t.Join="Join",t))(I||{}),q=(a=>(a.HasOnlyPhantomBpt="HAS_ONLY_PHANTOM_BPT",a.HasSomePhantomBpt="HAS_SOME_PHANTOM_BPT",a.NoNesting="NO_NESTING",a))(q||{}),P=(
|
|
1
|
+
import{gql as e}from"@apollo/client";var g=(a=>(a.Bartio="BARTIO",a.Berachain="BERACHAIN",a.Cartio="CARTIO",a))(g||{}),d=(a=>(a.Discord="discord",a.Medium="medium",a.Twitter="twitter",a))(d||{}),m=(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))(m||{}),G=(a=>(a.Add="ADD",a.Remove="REMOVE",a.Swap="SWAP",a))(G||{}),A=(a=>(a.NinetyDays="NINETY_DAYS",a.SevenDays="SEVEN_DAYS",a.ThirtyDays="THIRTY_DAYS",a))(A||{}),b=(u=>(u.BlackListed="BLACK_LISTED",u.Incentivized="INCENTIVIZED",u.Lrt="LRT",u.Points="POINTS",u.PointsEigenlayer="POINTS_EIGENLAYER",u.PointsGyro="POINTS_GYRO",u.PointsKelp="POINTS_KELP",u.PointsRenzo="POINTS_RENZO",u.PointsSwell="POINTS_SWELL",u.Superfest="SUPERFEST",u))(b||{}),I=(t=>(t.Exit="Exit",t.Join="Join",t))(I||{}),q=(a=>(a.HasOnlyPhantomBpt="HAS_ONLY_PHANTOM_BPT",a.HasSomePhantomBpt="HAS_SOME_PHANTOM_BPT",a.NoNesting="NO_NESTING",a))(q||{}),P=(o=>(o.Apr="apr",o.BgtApr="bgtApr",o.CombinedApr="combinedApr",o.Fees24h="fees24h",o.TotalLiquidity="totalLiquidity",o.TotalShares="totalShares",o.UserbalanceUsd="userbalanceUsd",o.Volume24h="volume24h",o))(P||{}),B=(t=>(t.Asc="asc",t.Desc="desc",t))(B||{}),k=(r=>(r.AllTime="ALL_TIME",r.NinetyDays="NINETY_DAYS",r.OneHundredEightyDays="ONE_HUNDRED_EIGHTY_DAYS",r.OneYear="ONE_YEAR",r.ThirtyDays="THIRTY_DAYS",r))(k||{}),h=(s=>(s.ComposableStable="COMPOSABLE_STABLE",s.CowAmm="COW_AMM",s.Element="ELEMENT",s.Fx="FX",s.Gyro="GYRO",s.Gyro3="GYRO3",s.Gyroe="GYROE",s.Investment="INVESTMENT",s.LiquidityBootstrapping="LIQUIDITY_BOOTSTRAPPING",s.MetaStable="META_STABLE",s.PhantomStable="PHANTOM_STABLE",s.Stable="STABLE",s.Unknown="UNKNOWN",s.Weighted="WEIGHTED",s))(h||{}),_=(a=>(a.AmountRemaining="amountRemaining",a.AmountRemainingUsd="amountRemainingUsd",a.IncentiveRate="incentiveRate",a))(_||{}),v=(t=>(t.Asc="asc",t.Desc="desc",t))(v||{}),D=(o=>(o.ActiveIncentivesRateUsd="activeIncentivesRateUsd",o.ActiveIncentivesValueUsd="activeIncentivesValueUsd",o.AllTimeBgtReceived="allTimeBGTReceived",o.Apr="apr",o.Apy="apy",o.BgtCapturePercentage="bgtCapturePercentage",o.Last24hBgtReceived="last24hBGTReceived",o.ProjectedApr="projectedApr",o))(D||{}),M=(t=>(t.Asc="asc",t.Desc="desc",t))(M||{}),T=(l=>(l.NinetyDays="NINETY_DAYS",l.SevenDays="SEVEN_DAYS",l.SixtyDays="SIXTY_DAYS",l.ThirtyDays="THIRTY_DAYS",l))(T||{}),x=(t=>(t.Day="DAY",t.Hour="HOUR",t))(x||{}),V=(t=>(t.OneDay="ONE_DAY",t.SevenDays="SEVEN_DAYS",t))(V||{}),w=(t=>(t.ExactIn="EXACT_IN",t.ExactOut="EXACT_OUT",t))(w||{}),R=(t=>(t.Deposit="DEPOSIT",t.WithdrawalCompleted="WITHDRAWAL_COMPLETED",t))(R||{}),C=(r=>(r.NinetyDay="NINETY_DAY",r.OneHundredEightyDay="ONE_HUNDRED_EIGHTY_DAY",r.OneYear="ONE_YEAR",r.SevenDay="SEVEN_DAY",r.ThirtyDay="THIRTY_DAY",r))(C||{}),U=(a=>(a.Bpt="BPT",a.PhantomBpt="PHANTOM_BPT",a.WhiteListed="WHITE_LISTED",a))(U||{}),E=(y=>(y.Amount="amount",y))(E||{}),$=(t=>(t.Asc="asc",t.Desc="desc",t))($||{}),f=(l=>(l.Inactive="INACTIVE",l.Offline="OFFLINE",l.Proposed="PROPOSED",l.Signed="SIGNED",l))(f||{}),F=(r=>(r.ActiveBoostAmount="activeBoostAmount",r.LatestBlock="latestBlock",r.LatestBlockTime="latestBlockTime",r.QueuedBoostAmount="queuedBoostAmount",r.QueuedDropBoostAmount="queuedDropBoostAmount",r))(F||{}),N=(t=>(t.Asc="asc",t.Desc="desc",t))(N||{}),Q=(n=>(n.ActiveBoostAmount="activeBoostAmount",n.AllTimeDistributedBgtAmount="allTimeDistributedBGTAmount",n.AllTimeEarnedBgtAmount="allTimeEarnedBGTAmount",n.Apy="apy",n.BgtCapturePercentage="bgtCapturePercentage",n.BoostApr="boostApr",n.CommissionOnIncentives="commissionOnIncentives",n.LastDayDistributedBgtAmount="lastDayDistributedBGTAmount",n.LastDayEarnedBgtAmount="lastDayEarnedBGTAmount",n.QueuedBoostAmount="queuedBoostAmount",n.QueuedDropBoostAmount="queuedDropBoostAmount",n.RewardRate="rewardRate",n.StakedBeraAmount="stakedBeraAmount",n.UsersActiveBoostCount="usersActiveBoostCount",n.UsersQueuedBoostCount="usersQueuedBoostCount",n))(Q||{}),W=(t=>(t.Asc="asc",t.Desc="desc",t))(W||{}),O=(l=>(l.NinetyDays="NINETY_DAYS",l.SevenDays="SEVEN_DAYS",l.SixtyDays="SIXTY_DAYS",l.ThirtyDays="THIRTY_DAYS",l))(O||{}),S=e`
|
|
2
2
|
fragment ApiValidatorMinimal on GqlValidator {
|
|
3
3
|
id
|
|
4
4
|
pubkey
|
|
@@ -237,7 +237,7 @@ ${Y}`,j=e`
|
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
|
-
${p}`,
|
|
240
|
+
${p}`,rt=e`
|
|
241
241
|
query GetVaultHistory($vaultId: String!, $chain: GqlChain!, $resolution: GqlRewardVaultSnapshotResolution = DAY, $range: GqlRewardVaultSnapshotDataRange = THIRTY_DAYS) {
|
|
242
242
|
polGetRewardVaultSnapshots(
|
|
243
243
|
chain: $chain
|
|
@@ -250,37 +250,14 @@ ${Y}`,j=e`
|
|
|
250
250
|
apr
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
|
-
`,
|
|
254
|
-
query GetVaultDurations {
|
|
255
|
-
polGetVaultDurations {
|
|
256
|
-
maxRewardDuration
|
|
257
|
-
minRewardDuration
|
|
258
|
-
rewardDurationCooldownPeriod
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
`,nt=e`
|
|
262
|
-
query GetBoostDelay {
|
|
263
|
-
polGetValidatorBoostDelay {
|
|
264
|
-
boostDelay
|
|
265
|
-
unboostDelay
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
`,lt=e`
|
|
269
|
-
query GetCommissionChangeDelay {
|
|
270
|
-
polGetValidatorCommissionDelay {
|
|
271
|
-
rewardAllocationBlockDelay
|
|
272
|
-
maxWeightPerVault
|
|
273
|
-
commissionChangeDelay
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
`,st=e`
|
|
253
|
+
`,ot=e`
|
|
277
254
|
query GetSWberaVaultMetadata($chain: GqlChain!, $resolution: GqlSWberaVaultMetadataResolution) {
|
|
278
255
|
polGetSWberaVaultMetadata(chain: $chain, resolution: $resolution) {
|
|
279
256
|
apr
|
|
280
257
|
chain
|
|
281
258
|
}
|
|
282
259
|
}
|
|
283
|
-
`,
|
|
260
|
+
`,nt=e`
|
|
284
261
|
query GetSWberaVaultSnapshots($chain: GqlChain!, $range: GqlVaultSnapshotDataRange) {
|
|
285
262
|
polGetSWberaVaultSnapshots(chain: $chain, range: $range) {
|
|
286
263
|
apr
|
|
@@ -291,7 +268,7 @@ ${Y}`,j=e`
|
|
|
291
268
|
vaultAddress
|
|
292
269
|
}
|
|
293
270
|
}
|
|
294
|
-
`,
|
|
271
|
+
`,lt=e`
|
|
295
272
|
query GetPolStakeBeraVaultEventsByOwner($owner: String!) {
|
|
296
273
|
events: polGetStakeBeraVaultEventsByOwner(owner: $owner) {
|
|
297
274
|
type
|
|
@@ -302,11 +279,11 @@ ${Y}`,j=e`
|
|
|
302
279
|
_timestamp
|
|
303
280
|
}
|
|
304
281
|
}
|
|
305
|
-
`,
|
|
282
|
+
`,st=e`
|
|
306
283
|
query GetStakeBeraVaultEarningsByOwner($owner: String!) {
|
|
307
284
|
polGetStakeBeraVaultEarningsByOwner(owner: $owner) {
|
|
308
285
|
earnings
|
|
309
286
|
owner
|
|
310
287
|
}
|
|
311
288
|
}
|
|
312
|
-
`,z={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"]}},
|
|
289
|
+
`,z={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"]}},it=z;export{L as ApiRewardAllocationWeight,c as ApiValidator,Y as ApiValidatorBlockUptime,S as ApiValidatorMinimal,p as ApiVault,H as ApiVaultIncentive,lt as GetPolStakeBeraVaultEventsByOwner,tt as GetRewardVault,ot as GetSWberaVaultMetadata,nt as GetSWberaVaultSnapshots,st as GetStakeBeraVaultEarningsByOwner,et as GetUserVaults,X as GetValidator,j as GetValidators,rt as GetVaultHistory,Z as GetVaultValidators,J as GetVaults,at as GlobalData,g as GqlChain,d as GqlContentNewsItemSource,m as GqlPoolAprItemType,G as GqlPoolEventType,A as GqlPoolEventsDataRange,b as GqlPoolFilterCategory,I as GqlPoolJoinExitType,q as GqlPoolNestingType,P as GqlPoolOrderBy,B as GqlPoolOrderDirection,k as GqlPoolSnapshotDataRange,h as GqlPoolType,_ as GqlRewardVaultIncentiveOrderBy,v as GqlRewardVaultIncentiveOrderDirection,D as GqlRewardVaultOrderBy,M as GqlRewardVaultOrderDirection,T as GqlRewardVaultSnapshotDataRange,x as GqlRewardVaultSnapshotResolution,V as GqlSWberaVaultMetadataResolution,w as GqlSorSwapType,R as GqlStakeBeraVaultEventType,C as GqlTokenChartDataRange,U as GqlTokenType,E as GqlUserVaultDepositOrderBy,$ as GqlUserVaultDepositOrderDirection,f as GqlValidatorBlockUptimeStatus,F as GqlValidatorBoostOrderBy,N as GqlValidatorBoostOrderDirection,Q as GqlValidatorOrderBy,W as GqlValidatorOrderDirection,O as GqlVaultSnapshotDataRange,it as default};
|