@berachain/graphql 0.4.16-beta.2 → 0.4.16-beta.3
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.mjs +174 -29
- package/dist/dex/api.codegen.mjs +361 -22
- package/dist/governance/governance.codegen.mjs +262 -11
- package/dist/honey/honey.codegen.mjs +123 -5
- package/dist/pol/api.codegen.d.ts +1 -20
- package/dist/pol/api.codegen.mjs +374 -38
- package/dist/pol/subgraph.codegen.mjs +762 -10
- package/package.json +39 -37
- package/LICENSE +0 -21
- package/dist/api/api.codegen.cjs +0 -1
- package/dist/api/api.codegen.d.cts +0 -735
- package/dist/bend/whisk.codegen.cjs +0 -693
- package/dist/bend/whisk.codegen.d.cts +0 -3360
- package/dist/dex/api.codegen.cjs +0 -199
- package/dist/dex/api.codegen.d.cts +0 -3626
- package/dist/governance/governance.codegen.cjs +0 -116
- package/dist/governance/governance.codegen.d.cts +0 -1533
- package/dist/honey/honey.codegen.cjs +0 -42
- package/dist/honey/honey.codegen.d.cts +0 -735
- package/dist/pol/api.codegen.cjs +0 -371
- package/dist/pol/api.codegen.d.cts +0 -3480
- package/dist/pol/subgraph.codegen.cjs +0 -102
- package/dist/pol/subgraph.codegen.d.cts +0 -4133
package/dist/dex/api.codegen.cjs
DELETED
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
"use strict";var y=Object.defineProperty;var j=Object.getOwnPropertyDescriptor;var Z=Object.getOwnPropertyNames;var tt=Object.prototype.hasOwnProperty;var at=(c,u)=>{for(var t in u)y(c,t,{get:u[t],enumerable:!0})},et=(c,u,t,e)=>{if(u&&typeof u=="object"||typeof u=="function")for(let l of Z(u))!tt.call(c,l)&&l!==t&&y(c,l,{get:()=>u[l],enumerable:!(e=j(u,l))||e.enumerable});return c};var ot=c=>et(y({},"__esModule",{value:!0}),c);var yt={};at(yt,{DynamicData:()=>S,GetGlobalLiquidityAndSwapVolume:()=>ut,GetPool:()=>nt,GetPoolEvents:()=>st,GetPoolHistoricalData:()=>lt,GetPools:()=>rt,GetTokenCurrentPrices:()=>it,GqlChain:()=>d,GqlPoolAddRemoveEventV3:()=>z,GqlPoolAprItemType:()=>g,GqlPoolEventType:()=>G,GqlPoolEventsDataRange:()=>b,GqlPoolFilterCategory:()=>q,GqlPoolJoinExitType:()=>P,GqlPoolNestingType:()=>A,GqlPoolOrderBy:()=>I,GqlPoolOrderDirection:()=>_,GqlPoolSnapshotDataRange:()=>D,GqlPoolSwapEventCowAmm:()=>K,GqlPoolSwapEventV3:()=>J,GqlPoolType:()=>h,GqlRewardVaultIncentiveOrderBy:()=>B,GqlRewardVaultIncentiveOrderDirection:()=>T,GqlRewardVaultOrderBy:()=>v,GqlRewardVaultOrderDirection:()=>M,GqlRewardVaultSnapshotDataRange:()=>k,GqlRewardVaultSnapshotResolution:()=>x,GqlSWberaVaultMetadataResolution:()=>w,GqlSorSwapType:()=>V,GqlTokenChartDataRange:()=>R,GqlTokenType:()=>C,GqlUserVaultDepositOrderBy:()=>E,GqlUserVaultDepositOrderDirection:()=>f,GqlValidatorBlockUptimeStatus:()=>U,GqlValidatorBoostOrderBy:()=>F,GqlValidatorBoostOrderDirection:()=>$,GqlValidatorOrderBy:()=>N,GqlValidatorOrderDirection:()=>L,GqlVaultSnapshotDataRange:()=>H,MinimalPool:()=>Q,MinimalPoolInList:()=>O,PoolEvent:()=>X,PoolHistoricalData:()=>Y,RewardVault:()=>m,UserBalance:()=>W,default:()=>ct});module.exports=ot(yt);var r=require("@apollo/client"),d=(t=>(t.Bepolia="BEPOLIA",t.Berachain="BERACHAIN",t))(d||{}),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||{}),G=(e=>(e.Add="ADD",e.Remove="REMOVE",e.Swap="SWAP",e))(G||{}),b=(e=>(e.NinetyDays="NINETY_DAYS",e.SevenDays="SEVEN_DAYS",e.ThirtyDays="THIRTY_DAYS",e))(b||{}),q=(p=>(p.BlackListed="BLACK_LISTED",p.Featured="FEATURED",p.Incentivized="INCENTIVIZED",p.Lrt="LRT",p.Points="POINTS",p.PointsEigenlayer="POINTS_EIGENLAYER",p.PointsGyro="POINTS_GYRO",p.PointsKelp="POINTS_KELP",p.PointsRenzo="POINTS_RENZO",p.PointsSwell="POINTS_SWELL",p.Superfest="SUPERFEST",p))(q||{}),P=(t=>(t.Exit="Exit",t.Join="Join",t))(P||{}),A=(e=>(e.HasOnlyPhantomBpt="HAS_ONLY_PHANTOM_BPT",e.HasSomePhantomBpt="HAS_SOME_PHANTOM_BPT",e.NoNesting="NO_NESTING",e))(A||{}),I=(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))(I||{}),_=(t=>(t.Asc="asc",t.Desc="desc",t))(_||{}),D=(a=>(a.AllTime="ALL_TIME",a.NinetyDays="NINETY_DAYS",a.OneHundredEightyDays="ONE_HUNDRED_EIGHTY_DAYS",a.OneYear="ONE_YEAR",a.ThirtyDays="THIRTY_DAYS",a))(D||{}),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||{}),B=(e=>(e.AmountRemaining="amountRemaining",e.AmountRemainingUsd="amountRemainingUsd",e.IncentiveRate="incentiveRate",e))(B||{}),T=(t=>(t.Asc="asc",t.Desc="desc",t))(T||{}),v=(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))(v||{}),M=(t=>(t.Asc="asc",t.Desc="desc",t))(M||{}),k=(a=>(a.AllTime="ALL_TIME",a.NinetyDays="NINETY_DAYS",a.SevenDays="SEVEN_DAYS",a.SixtyDays="SIXTY_DAYS",a.ThirtyDays="THIRTY_DAYS",a))(k||{}),x=(t=>(t.Day="DAY",t.Hour="HOUR",t))(x||{}),w=(t=>(t.OneDay="ONE_DAY",t.SevenDays="SEVEN_DAYS",t))(w||{}),V=(t=>(t.ExactIn="EXACT_IN",t.ExactOut="EXACT_OUT",t))(V||{}),R=(a=>(a.NinetyDay="NINETY_DAY",a.OneHundredEightyDay="ONE_HUNDRED_EIGHTY_DAY",a.OneYear="ONE_YEAR",a.SevenDay="SEVEN_DAY",a.ThirtyDay="THIRTY_DAY",a))(R||{}),C=(e=>(e.Bpt="BPT",e.PhantomBpt="PHANTOM_BPT",e.WhiteListed="WHITE_LISTED",e))(C||{}),E=(u=>(u.Amount="amount",u))(E||{}),f=(t=>(t.Asc="asc",t.Desc="desc",t))(f||{}),U=(l=>(l.Inactive="INACTIVE",l.Offline="OFFLINE",l.Proposed="PROPOSED",l.Signed="SIGNED",l))(U||{}),F=(a=>(a.ActiveBoostAmount="activeBoostAmount",a.LatestBlock="latestBlock",a.LatestBlockTime="latestBlockTime",a.QueuedBoostAmount="queuedBoostAmount",a.QueuedDropBoostAmount="queuedDropBoostAmount",a))(F||{}),$=(t=>(t.Asc="asc",t.Desc="desc",t))($||{}),N=(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.LastDayProposedBlockCount="lastDayProposedBlockCount",n.QueuedBoostAmount="queuedBoostAmount",n.QueuedDropBoostAmount="queuedDropBoostAmount",n.RewardRate="rewardRate",n.StakedBeraAmount="stakedBeraAmount",n.UsersActiveBoostCount="usersActiveBoostCount",n.UsersQueuedBoostCount="usersQueuedBoostCount",n))(N||{}),L=(t=>(t.Asc="asc",t.Desc="desc",t))(L||{}),H=(l=>(l.NinetyDays="NINETY_DAYS",l.SevenDays="SEVEN_DAYS",l.SixtyDays="SIXTY_DAYS",l.ThirtyDays="THIRTY_DAYS",l))(H||{}),S=r.gql`
|
|
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
|
-
`,W=r.gql`
|
|
17
|
-
fragment UserBalance on GqlPoolUserBalance {
|
|
18
|
-
totalBalanceUsd
|
|
19
|
-
walletBalance
|
|
20
|
-
walletBalanceUsd
|
|
21
|
-
}
|
|
22
|
-
`,m=r.gql`
|
|
23
|
-
fragment RewardVault on GqlRewardVault {
|
|
24
|
-
dynamicData {
|
|
25
|
-
activeIncentivesValueUsd
|
|
26
|
-
apr
|
|
27
|
-
bgtCapturePercentage
|
|
28
|
-
allTimeReceivedBGTAmount
|
|
29
|
-
}
|
|
30
|
-
isVaultWhitelisted
|
|
31
|
-
vaultAddress
|
|
32
|
-
stakingTokenAddress
|
|
33
|
-
}
|
|
34
|
-
`,O=r.gql`
|
|
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
|
-
${S}
|
|
60
|
-
${W}
|
|
61
|
-
${m}`,Q=r.gql`
|
|
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
|
-
${S}
|
|
89
|
-
${m}`,Y=r.gql`
|
|
90
|
-
fragment PoolHistoricalData on GqlPoolSnapshot {
|
|
91
|
-
id
|
|
92
|
-
volume24h
|
|
93
|
-
totalSwapVolume
|
|
94
|
-
timestamp
|
|
95
|
-
totalLiquidity
|
|
96
|
-
fees24h
|
|
97
|
-
totalSwapFee
|
|
98
|
-
}
|
|
99
|
-
`,K=r.gql`
|
|
100
|
-
fragment GqlPoolSwapEventCowAmm on GqlPoolSwapEventCowAmm {
|
|
101
|
-
tokenIn {
|
|
102
|
-
address
|
|
103
|
-
amount
|
|
104
|
-
}
|
|
105
|
-
tokenOut {
|
|
106
|
-
address
|
|
107
|
-
amount
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
`,J=r.gql`
|
|
111
|
-
fragment GqlPoolSwapEventV3 on GqlPoolSwapEventV3 {
|
|
112
|
-
tokenIn {
|
|
113
|
-
address
|
|
114
|
-
amount
|
|
115
|
-
}
|
|
116
|
-
tokenOut {
|
|
117
|
-
address
|
|
118
|
-
amount
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
`,z=r.gql`
|
|
122
|
-
fragment GqlPoolAddRemoveEventV3 on GqlPoolAddRemoveEventV3 {
|
|
123
|
-
tokens {
|
|
124
|
-
address
|
|
125
|
-
amount
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
`,X=r.gql`
|
|
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
|
-
${K}
|
|
141
|
-
${J}
|
|
142
|
-
${z}`,rt=r.gql`
|
|
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
|
-
${O}`,nt=r.gql`
|
|
160
|
-
query GetPool($id: String!, $userAddress: String, $chain: GqlChain!) {
|
|
161
|
-
poolGetPool(id: $id, userAddress: $userAddress, chain: $chain) {
|
|
162
|
-
...MinimalPool
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
${Q}`,lt=r.gql`
|
|
166
|
-
query GetPoolHistoricalData($poolId: String!, $chain: GqlChain!) {
|
|
167
|
-
poolGetSnapshots(id: $poolId, range: NINETY_DAYS, chain: $chain) {
|
|
168
|
-
...PoolHistoricalData
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
${Y}`,st=r.gql`
|
|
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
|
-
${X}`,it=r.gql`
|
|
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
|
-
`,ut=r.gql`
|
|
193
|
-
query GetGlobalLiquidityAndSwapVolume($chain: GqlChain!) {
|
|
194
|
-
protocolMetricsAggregated(chains: [$chain]) {
|
|
195
|
-
swapVolume24h
|
|
196
|
-
totalLiquidity
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
`,pt={possibleTypes:{GqlIncentive:["GqlRewardVaultIncentive","GqlValidatorIncentive"],GqlPoolAprValue:["GqlPoolAprRange","GqlPoolAprTotal"],GqlPoolBase:["GqlPoolComposableStable","GqlPoolElement","GqlPoolFx","GqlPoolGyro","GqlPoolLiquidityBootstrapping","GqlPoolMetaStable","GqlPoolStable","GqlPoolWeighted"],GqlPoolEvent:["GqlPoolAddRemoveEventV3","GqlPoolSwapEventCowAmm","GqlPoolSwapEventV3"],GqlPoolNestedUnion:["GqlPoolComposableStableNested"],GqlPoolTokenBase:["GqlPoolToken","GqlPoolTokenComposableStable"],GqlPoolTokenComposableStableNestedUnion:["GqlPoolToken"],GqlPoolTokenUnion:["GqlPoolToken","GqlPoolTokenComposableStable"],GqlPoolUnion:["GqlPoolComposableStable","GqlPoolElement","GqlPoolFx","GqlPoolGyro","GqlPoolLiquidityBootstrapping","GqlPoolMetaStable","GqlPoolStable","GqlPoolWeighted"]}},ct=pt;0&&(module.exports={DynamicData,GetGlobalLiquidityAndSwapVolume,GetPool,GetPoolEvents,GetPoolHistoricalData,GetPools,GetTokenCurrentPrices,GqlChain,GqlPoolAddRemoveEventV3,GqlPoolAprItemType,GqlPoolEventType,GqlPoolEventsDataRange,GqlPoolFilterCategory,GqlPoolJoinExitType,GqlPoolNestingType,GqlPoolOrderBy,GqlPoolOrderDirection,GqlPoolSnapshotDataRange,GqlPoolSwapEventCowAmm,GqlPoolSwapEventV3,GqlPoolType,GqlRewardVaultIncentiveOrderBy,GqlRewardVaultIncentiveOrderDirection,GqlRewardVaultOrderBy,GqlRewardVaultOrderDirection,GqlRewardVaultSnapshotDataRange,GqlRewardVaultSnapshotResolution,GqlSWberaVaultMetadataResolution,GqlSorSwapType,GqlTokenChartDataRange,GqlTokenType,GqlUserVaultDepositOrderBy,GqlUserVaultDepositOrderDirection,GqlValidatorBlockUptimeStatus,GqlValidatorBoostOrderBy,GqlValidatorBoostOrderDirection,GqlValidatorOrderBy,GqlValidatorOrderDirection,GqlVaultSnapshotDataRange,MinimalPool,MinimalPoolInList,PoolEvent,PoolHistoricalData,RewardVault,UserBalance});
|