@berachain/graphql 0.1.0-alpha.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.
@@ -0,0 +1,199 @@
1
+ import{gql as o}from"@apollo/client";var m=(a=>(a.Bartio="BARTIO",a.Berachain="BERACHAIN",a.Cartio="CARTIO",a))(m||{}),d=(a=>(a.Discord="discord",a.Medium="medium",a.Twitter="twitter",a))(d||{}),g=(s=>(s.Aura="AURA",s.IbYield="IB_YIELD",s.Locking="LOCKING",s.MabeetsEmissions="MABEETS_EMISSIONS",s.Merkl="MERKL",s.Nested="NESTED",s.Staking="STAKING",s.StakingBoost="STAKING_BOOST",s.Surplus="SURPLUS",s.SwapFee="SWAP_FEE",s.VebalEmissions="VEBAL_EMISSIONS",s.Voting="VOTING",s))(g||{}),G=(a=>(a.Add="ADD",a.Remove="REMOVE",a.Swap="SWAP",a))(G||{}),P=(a=>(a.NinetyDays="NINETY_DAYS",a.SevenDays="SEVEN_DAYS",a.ThirtyDays="THIRTY_DAYS",a))(P||{}),q=(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))(q||{}),b=(t=>(t.Exit="Exit",t.Join="Join",t))(b||{}),A=(a=>(a.HasOnlyPhantomBpt="HAS_ONLY_PHANTOM_BPT",a.HasSomePhantomBpt="HAS_SOME_PHANTOM_BPT",a.NoNesting="NO_NESTING",a))(A||{}),I=(p=>(p.Apr="apr",p.BgtApr="bgtApr",p.Fees24h="fees24h",p.TotalLiquidity="totalLiquidity",p.TotalShares="totalShares",p.UserbalanceUsd="userbalanceUsd",p.Volume24h="volume24h",p))(I||{}),h=(t=>(t.Asc="asc",t.Desc="desc",t))(h||{}),_=(e=>(e.AllTime="ALL_TIME",e.NinetyDays="NINETY_DAYS",e.OneHundredEightyDays="ONE_HUNDRED_EIGHTY_DAYS",e.OneYear="ONE_YEAR",e.ThirtyDays="THIRTY_DAYS",e))(_||{}),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||{}),T=(a=>(a.AmountRemaining="amountRemaining",a.AmountRemainingUsd="amountRemainingUsd",a.IncentiveRate="incentiveRate",a))(T||{}),k=(t=>(t.Asc="asc",t.Desc="desc",t))(k||{}),M=(i=>(i.ActiveIncentivesRateUsd="activeIncentivesRateUsd",i.ActiveIncentivesValueUsd="activeIncentivesValueUsd",i.AllTimeBgtReceived="allTimeBGTReceived",i.Apr="apr",i.Apy="apy",i.BgtCapturePercentage="bgtCapturePercentage",i.Last24hBgtReceived="last24hBGTReceived",i.ProjectedApr="projectedApr",i))(M||{}),v=(t=>(t.Asc="asc",t.Desc="desc",t))(v||{}),B=(n=>(n.NinetyDays="NINETY_DAYS",n.SevenDays="SEVEN_DAYS",n.SixtyDays="SIXTY_DAYS",n.ThirtyDays="THIRTY_DAYS",n))(B||{}),w=(t=>(t.Day="DAY",t.Hour="HOUR",t))(w||{}),x=(t=>(t.OneDay="ONE_DAY",t.SevenDays="SEVEN_DAYS",t))(x||{}),V=(t=>(t.ExactIn="EXACT_IN",t.ExactOut="EXACT_OUT",t))(V||{}),C=(t=>(t.Deposit="DEPOSIT",t.WithdrawalCompleted="WITHDRAWAL_COMPLETED",t))(C||{}),R=(e=>(e.NinetyDay="NINETY_DAY",e.OneHundredEightyDay="ONE_HUNDRED_EIGHTY_DAY",e.OneYear="ONE_YEAR",e.SevenDay="SEVEN_DAY",e.ThirtyDay="THIRTY_DAY",e))(R||{}),E=(a=>(a.Bpt="BPT",a.PhantomBpt="PHANTOM_BPT",a.WhiteListed="WHITE_LISTED",a))(E||{}),f=(S=>(S.Amount="amount",S))(f||{}),F=(t=>(t.Asc="asc",t.Desc="desc",t))(F||{}),U=(n=>(n.Inactive="INACTIVE",n.Offline="OFFLINE",n.Proposed="PROPOSED",n.Signed="SIGNED",n))(U||{}),N=(e=>(e.ActiveBoostAmount="activeBoostAmount",e.LatestBlock="latestBlock",e.LatestBlockTime="latestBlockTime",e.QueuedBoostAmount="queuedBoostAmount",e.QueuedDropBoostAmount="queuedDropBoostAmount",e))(N||{}),L=(t=>(t.Asc="asc",t.Desc="desc",t))(L||{}),H=(r=>(r.ActiveBoostAmount="activeBoostAmount",r.AllTimeDistributedBgtAmount="allTimeDistributedBGTAmount",r.AllTimeEarnedBgtAmount="allTimeEarnedBGTAmount",r.Apy="apy",r.BgtCapturePercentage="bgtCapturePercentage",r.BoostApr="boostApr",r.CommissionOnIncentives="commissionOnIncentives",r.LastDayDistributedBgtAmount="lastDayDistributedBGTAmount",r.LastDayEarnedBgtAmount="lastDayEarnedBGTAmount",r.QueuedBoostAmount="queuedBoostAmount",r.QueuedDropBoostAmount="queuedDropBoostAmount",r.RewardRate="rewardRate",r.StakedBeraAmount="stakedBeraAmount",r.UsersActiveBoostCount="usersActiveBoostCount",r.UsersQueuedBoostCount="usersQueuedBoostCount",r))(H||{}),W=(t=>(t.Asc="asc",t.Desc="desc",t))(W||{}),O=(n=>(n.NinetyDays="NINETY_DAYS",n.SevenDays="SEVEN_DAYS",n.SixtyDays="SIXTY_DAYS",n.ThirtyDays="THIRTY_DAYS",n))(O||{}),c=o`
2
+ fragment DynamicData on GqlPoolDynamicData {
3
+ totalShares
4
+ fees24h
5
+ volume24h
6
+ swapFee
7
+ isInRecoveryMode
8
+ isPaused
9
+ totalLiquidity
10
+ aprItems {
11
+ apr
12
+ type
13
+ id
14
+ }
15
+ }
16
+ `,Q=o`
17
+ fragment UserBalance on GqlPoolUserBalance {
18
+ totalBalanceUsd
19
+ walletBalance
20
+ walletBalanceUsd
21
+ }
22
+ `,y=o`
23
+ fragment RewardVault on GqlRewardVault {
24
+ dynamicData {
25
+ activeIncentivesValueUsd
26
+ apr
27
+ bgtCapturePercentage
28
+ allTimeReceivedBGTAmount
29
+ }
30
+ isVaultWhitelisted
31
+ vaultAddress
32
+ stakingTokenAddress
33
+ }
34
+ `,Y=o`
35
+ fragment MinimalPoolInList on GqlPoolMinimal {
36
+ id
37
+ name
38
+ address
39
+ factory
40
+ tokens: allTokens {
41
+ address
42
+ symbol
43
+ name
44
+ decimals
45
+ }
46
+ address
47
+ protocolVersion
48
+ type
49
+ dynamicData {
50
+ ...DynamicData
51
+ }
52
+ userBalance {
53
+ ...UserBalance
54
+ }
55
+ rewardVault {
56
+ ...RewardVault
57
+ }
58
+ }
59
+ ${c}
60
+ ${Q}
61
+ ${y}`,$=o`
62
+ fragment MinimalPool on GqlPoolBase {
63
+ id
64
+ name
65
+ address
66
+ factory
67
+ address
68
+ protocolVersion
69
+ type
70
+ createTime
71
+ tokens: poolTokens {
72
+ index
73
+ address
74
+ symbol
75
+ name
76
+ decimals
77
+ weight
78
+ balance
79
+ balanceUSD
80
+ }
81
+ dynamicData {
82
+ ...DynamicData
83
+ }
84
+ rewardVault {
85
+ ...RewardVault
86
+ }
87
+ }
88
+ ${c}
89
+ ${y}`,K=o`
90
+ fragment PoolHistoricalData on GqlPoolSnapshot {
91
+ id
92
+ volume24h
93
+ totalSwapVolume
94
+ timestamp
95
+ totalLiquidity
96
+ fees24h
97
+ totalSwapFee
98
+ }
99
+ `,J=o`
100
+ fragment GqlPoolSwapEventCowAmm on GqlPoolSwapEventCowAmm {
101
+ tokenIn {
102
+ address
103
+ amount
104
+ }
105
+ tokenOut {
106
+ address
107
+ amount
108
+ }
109
+ }
110
+ `,z=o`
111
+ fragment GqlPoolSwapEventV3 on GqlPoolSwapEventV3 {
112
+ tokenIn {
113
+ address
114
+ amount
115
+ }
116
+ tokenOut {
117
+ address
118
+ amount
119
+ }
120
+ }
121
+ `,X=o`
122
+ fragment GqlPoolAddRemoveEventV3 on GqlPoolAddRemoveEventV3 {
123
+ tokens {
124
+ address
125
+ amount
126
+ }
127
+ }
128
+ `,j=o`
129
+ fragment PoolEvent on GqlPoolEvent {
130
+ id
131
+ valueUSD
132
+ tx
133
+ type
134
+ sender
135
+ timestamp
136
+ ...GqlPoolSwapEventCowAmm
137
+ ...GqlPoolSwapEventV3
138
+ ...GqlPoolAddRemoveEventV3
139
+ }
140
+ ${J}
141
+ ${z}
142
+ ${X}`,at=o`
143
+ query GetPools($textSearch: String, $first: Int, $userAddress: String, $chain: [GqlChain!]!, $orderBy: GqlPoolOrderBy, $skip: Int, $orderDirection: GqlPoolOrderDirection, $blacklistedPoolIds: [String!]) {
144
+ poolGetPools(
145
+ textSearch: $textSearch
146
+ first: $first
147
+ orderBy: $orderBy
148
+ orderDirection: $orderDirection
149
+ skip: $skip
150
+ where: {userAddress: $userAddress, chainIn: $chain, idNotIn: $blacklistedPoolIds}
151
+ ) {
152
+ ...MinimalPoolInList
153
+ }
154
+ count: poolGetPoolsCount(
155
+ textSearch: $textSearch
156
+ where: {userAddress: $userAddress, chainIn: $chain}
157
+ )
158
+ }
159
+ ${Y}`,et=o`
160
+ query GetPool($id: String!, $userAddress: String, $chain: GqlChain!) {
161
+ poolGetPool(id: $id, userAddress: $userAddress, chain: $chain) {
162
+ ...MinimalPool
163
+ }
164
+ }
165
+ ${$}`,ot=o`
166
+ query GetPoolHistoricalData($poolId: String!, $chain: GqlChain!) {
167
+ poolGetSnapshots(id: $poolId, range: NINETY_DAYS, chain: $chain) {
168
+ ...PoolHistoricalData
169
+ }
170
+ }
171
+ ${K}`,rt=o`
172
+ query GetPoolEvents($poolId: String!, $typeIn: [GqlPoolEventType!]!, $chain: GqlChain!) {
173
+ poolGetEvents(
174
+ poolId: $poolId
175
+ chain: $chain
176
+ range: NINETY_DAYS
177
+ typeIn: $typeIn
178
+ ) {
179
+ ...PoolEvent
180
+ }
181
+ }
182
+ ${j}`,nt=o`
183
+ query GetTokenCurrentPrices($chains: [GqlChain!]!, $addressIn: [String!]!) {
184
+ tokenGetCurrentPrices(chains: $chains, addressIn: $addressIn) {
185
+ address
186
+ chain
187
+ price
188
+ updatedAt
189
+ updatedBy
190
+ }
191
+ }
192
+ `,lt=o`
193
+ query GetGlobalLiquidityAndSwapVolume($chain: GqlChain!) {
194
+ protocolMetricsAggregated(chains: [$chain]) {
195
+ swapVolume24h
196
+ totalLiquidity
197
+ }
198
+ }
199
+ `,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"]}},st=Z;export{c as DynamicData,lt as GetGlobalLiquidityAndSwapVolume,et as GetPool,rt as GetPoolEvents,ot as GetPoolHistoricalData,at as GetPools,nt as GetTokenCurrentPrices,m as GqlChain,d as GqlContentNewsItemSource,X as GqlPoolAddRemoveEventV3,g as GqlPoolAprItemType,G as GqlPoolEventType,P as GqlPoolEventsDataRange,q as GqlPoolFilterCategory,b as GqlPoolJoinExitType,A as GqlPoolNestingType,I as GqlPoolOrderBy,h as GqlPoolOrderDirection,_ as GqlPoolSnapshotDataRange,J as GqlPoolSwapEventCowAmm,z as GqlPoolSwapEventV3,D as GqlPoolType,T as GqlRewardVaultIncentiveOrderBy,k as GqlRewardVaultIncentiveOrderDirection,M as GqlRewardVaultOrderBy,v as GqlRewardVaultOrderDirection,B as GqlRewardVaultSnapshotDataRange,w as GqlRewardVaultSnapshotResolution,x as GqlSWberaVaultMetadataResolution,V as GqlSorSwapType,C as GqlStakeBeraVaultEventType,R as GqlTokenChartDataRange,E as GqlTokenType,f as GqlUserVaultDepositOrderBy,F as GqlUserVaultDepositOrderDirection,U as GqlValidatorBlockUptimeStatus,N as GqlValidatorBoostOrderBy,L as GqlValidatorBoostOrderDirection,H as GqlValidatorOrderBy,W as GqlValidatorOrderDirection,O as GqlVaultSnapshotDataRange,$ as MinimalPool,Y as MinimalPoolInList,j as PoolEvent,K as PoolHistoricalData,y as RewardVault,Q as UserBalance,st as default};