@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.mjs
CHANGED
|
@@ -1,4 +1,228 @@
|
|
|
1
|
-
|
|
1
|
+
// src/dex/api.codegen.ts
|
|
2
|
+
import { gql } from "@apollo/client";
|
|
3
|
+
var GqlChain = /* @__PURE__ */ ((GqlChain2) => {
|
|
4
|
+
GqlChain2["Bepolia"] = "BEPOLIA";
|
|
5
|
+
GqlChain2["Berachain"] = "BERACHAIN";
|
|
6
|
+
return GqlChain2;
|
|
7
|
+
})(GqlChain || {});
|
|
8
|
+
var GqlPoolAprItemType = /* @__PURE__ */ ((GqlPoolAprItemType2) => {
|
|
9
|
+
GqlPoolAprItemType2["Aura"] = "AURA";
|
|
10
|
+
GqlPoolAprItemType2["IbYield"] = "IB_YIELD";
|
|
11
|
+
GqlPoolAprItemType2["Locking"] = "LOCKING";
|
|
12
|
+
GqlPoolAprItemType2["MabeetsEmissions"] = "MABEETS_EMISSIONS";
|
|
13
|
+
GqlPoolAprItemType2["Merkl"] = "MERKL";
|
|
14
|
+
GqlPoolAprItemType2["Nested"] = "NESTED";
|
|
15
|
+
GqlPoolAprItemType2["Staking"] = "STAKING";
|
|
16
|
+
GqlPoolAprItemType2["StakingBoost"] = "STAKING_BOOST";
|
|
17
|
+
GqlPoolAprItemType2["Surplus"] = "SURPLUS";
|
|
18
|
+
GqlPoolAprItemType2["SwapFee"] = "SWAP_FEE";
|
|
19
|
+
GqlPoolAprItemType2["VebalEmissions"] = "VEBAL_EMISSIONS";
|
|
20
|
+
GqlPoolAprItemType2["Voting"] = "VOTING";
|
|
21
|
+
return GqlPoolAprItemType2;
|
|
22
|
+
})(GqlPoolAprItemType || {});
|
|
23
|
+
var GqlPoolEventType = /* @__PURE__ */ ((GqlPoolEventType2) => {
|
|
24
|
+
GqlPoolEventType2["Add"] = "ADD";
|
|
25
|
+
GqlPoolEventType2["Remove"] = "REMOVE";
|
|
26
|
+
GqlPoolEventType2["Swap"] = "SWAP";
|
|
27
|
+
return GqlPoolEventType2;
|
|
28
|
+
})(GqlPoolEventType || {});
|
|
29
|
+
var GqlPoolEventsDataRange = /* @__PURE__ */ ((GqlPoolEventsDataRange2) => {
|
|
30
|
+
GqlPoolEventsDataRange2["NinetyDays"] = "NINETY_DAYS";
|
|
31
|
+
GqlPoolEventsDataRange2["SevenDays"] = "SEVEN_DAYS";
|
|
32
|
+
GqlPoolEventsDataRange2["ThirtyDays"] = "THIRTY_DAYS";
|
|
33
|
+
return GqlPoolEventsDataRange2;
|
|
34
|
+
})(GqlPoolEventsDataRange || {});
|
|
35
|
+
var GqlPoolFilterCategory = /* @__PURE__ */ ((GqlPoolFilterCategory2) => {
|
|
36
|
+
GqlPoolFilterCategory2["BlackListed"] = "BLACK_LISTED";
|
|
37
|
+
GqlPoolFilterCategory2["Featured"] = "FEATURED";
|
|
38
|
+
GqlPoolFilterCategory2["Incentivized"] = "INCENTIVIZED";
|
|
39
|
+
GqlPoolFilterCategory2["Lrt"] = "LRT";
|
|
40
|
+
GqlPoolFilterCategory2["Points"] = "POINTS";
|
|
41
|
+
GqlPoolFilterCategory2["PointsEigenlayer"] = "POINTS_EIGENLAYER";
|
|
42
|
+
GqlPoolFilterCategory2["PointsGyro"] = "POINTS_GYRO";
|
|
43
|
+
GqlPoolFilterCategory2["PointsKelp"] = "POINTS_KELP";
|
|
44
|
+
GqlPoolFilterCategory2["PointsRenzo"] = "POINTS_RENZO";
|
|
45
|
+
GqlPoolFilterCategory2["PointsSwell"] = "POINTS_SWELL";
|
|
46
|
+
GqlPoolFilterCategory2["Superfest"] = "SUPERFEST";
|
|
47
|
+
return GqlPoolFilterCategory2;
|
|
48
|
+
})(GqlPoolFilterCategory || {});
|
|
49
|
+
var GqlPoolJoinExitType = /* @__PURE__ */ ((GqlPoolJoinExitType2) => {
|
|
50
|
+
GqlPoolJoinExitType2["Exit"] = "Exit";
|
|
51
|
+
GqlPoolJoinExitType2["Join"] = "Join";
|
|
52
|
+
return GqlPoolJoinExitType2;
|
|
53
|
+
})(GqlPoolJoinExitType || {});
|
|
54
|
+
var GqlPoolNestingType = /* @__PURE__ */ ((GqlPoolNestingType2) => {
|
|
55
|
+
GqlPoolNestingType2["HasOnlyPhantomBpt"] = "HAS_ONLY_PHANTOM_BPT";
|
|
56
|
+
GqlPoolNestingType2["HasSomePhantomBpt"] = "HAS_SOME_PHANTOM_BPT";
|
|
57
|
+
GqlPoolNestingType2["NoNesting"] = "NO_NESTING";
|
|
58
|
+
return GqlPoolNestingType2;
|
|
59
|
+
})(GqlPoolNestingType || {});
|
|
60
|
+
var GqlPoolOrderBy = /* @__PURE__ */ ((GqlPoolOrderBy2) => {
|
|
61
|
+
GqlPoolOrderBy2["Apr"] = "apr";
|
|
62
|
+
GqlPoolOrderBy2["BgtApr"] = "bgtApr";
|
|
63
|
+
GqlPoolOrderBy2["CombinedApr"] = "combinedApr";
|
|
64
|
+
GqlPoolOrderBy2["Fees24h"] = "fees24h";
|
|
65
|
+
GqlPoolOrderBy2["TotalLiquidity"] = "totalLiquidity";
|
|
66
|
+
GqlPoolOrderBy2["TotalShares"] = "totalShares";
|
|
67
|
+
GqlPoolOrderBy2["UserbalanceUsd"] = "userbalanceUsd";
|
|
68
|
+
GqlPoolOrderBy2["Volume24h"] = "volume24h";
|
|
69
|
+
return GqlPoolOrderBy2;
|
|
70
|
+
})(GqlPoolOrderBy || {});
|
|
71
|
+
var GqlPoolOrderDirection = /* @__PURE__ */ ((GqlPoolOrderDirection2) => {
|
|
72
|
+
GqlPoolOrderDirection2["Asc"] = "asc";
|
|
73
|
+
GqlPoolOrderDirection2["Desc"] = "desc";
|
|
74
|
+
return GqlPoolOrderDirection2;
|
|
75
|
+
})(GqlPoolOrderDirection || {});
|
|
76
|
+
var GqlPoolSnapshotDataRange = /* @__PURE__ */ ((GqlPoolSnapshotDataRange2) => {
|
|
77
|
+
GqlPoolSnapshotDataRange2["AllTime"] = "ALL_TIME";
|
|
78
|
+
GqlPoolSnapshotDataRange2["NinetyDays"] = "NINETY_DAYS";
|
|
79
|
+
GqlPoolSnapshotDataRange2["OneHundredEightyDays"] = "ONE_HUNDRED_EIGHTY_DAYS";
|
|
80
|
+
GqlPoolSnapshotDataRange2["OneYear"] = "ONE_YEAR";
|
|
81
|
+
GqlPoolSnapshotDataRange2["ThirtyDays"] = "THIRTY_DAYS";
|
|
82
|
+
return GqlPoolSnapshotDataRange2;
|
|
83
|
+
})(GqlPoolSnapshotDataRange || {});
|
|
84
|
+
var GqlPoolType = /* @__PURE__ */ ((GqlPoolType2) => {
|
|
85
|
+
GqlPoolType2["ComposableStable"] = "COMPOSABLE_STABLE";
|
|
86
|
+
GqlPoolType2["CowAmm"] = "COW_AMM";
|
|
87
|
+
GqlPoolType2["Element"] = "ELEMENT";
|
|
88
|
+
GqlPoolType2["Fx"] = "FX";
|
|
89
|
+
GqlPoolType2["Gyro"] = "GYRO";
|
|
90
|
+
GqlPoolType2["Gyro3"] = "GYRO3";
|
|
91
|
+
GqlPoolType2["Gyroe"] = "GYROE";
|
|
92
|
+
GqlPoolType2["Investment"] = "INVESTMENT";
|
|
93
|
+
GqlPoolType2["LiquidityBootstrapping"] = "LIQUIDITY_BOOTSTRAPPING";
|
|
94
|
+
GqlPoolType2["MetaStable"] = "META_STABLE";
|
|
95
|
+
GqlPoolType2["PhantomStable"] = "PHANTOM_STABLE";
|
|
96
|
+
GqlPoolType2["Stable"] = "STABLE";
|
|
97
|
+
GqlPoolType2["Unknown"] = "UNKNOWN";
|
|
98
|
+
GqlPoolType2["Weighted"] = "WEIGHTED";
|
|
99
|
+
return GqlPoolType2;
|
|
100
|
+
})(GqlPoolType || {});
|
|
101
|
+
var GqlRewardVaultIncentiveOrderBy = /* @__PURE__ */ ((GqlRewardVaultIncentiveOrderBy2) => {
|
|
102
|
+
GqlRewardVaultIncentiveOrderBy2["AmountRemaining"] = "amountRemaining";
|
|
103
|
+
GqlRewardVaultIncentiveOrderBy2["AmountRemainingUsd"] = "amountRemainingUsd";
|
|
104
|
+
GqlRewardVaultIncentiveOrderBy2["IncentiveRate"] = "incentiveRate";
|
|
105
|
+
return GqlRewardVaultIncentiveOrderBy2;
|
|
106
|
+
})(GqlRewardVaultIncentiveOrderBy || {});
|
|
107
|
+
var GqlRewardVaultIncentiveOrderDirection = /* @__PURE__ */ ((GqlRewardVaultIncentiveOrderDirection2) => {
|
|
108
|
+
GqlRewardVaultIncentiveOrderDirection2["Asc"] = "asc";
|
|
109
|
+
GqlRewardVaultIncentiveOrderDirection2["Desc"] = "desc";
|
|
110
|
+
return GqlRewardVaultIncentiveOrderDirection2;
|
|
111
|
+
})(GqlRewardVaultIncentiveOrderDirection || {});
|
|
112
|
+
var GqlRewardVaultOrderBy = /* @__PURE__ */ ((GqlRewardVaultOrderBy2) => {
|
|
113
|
+
GqlRewardVaultOrderBy2["ActiveIncentivesRateUsd"] = "activeIncentivesRateUsd";
|
|
114
|
+
GqlRewardVaultOrderBy2["ActiveIncentivesValueUsd"] = "activeIncentivesValueUsd";
|
|
115
|
+
GqlRewardVaultOrderBy2["AllTimeBgtReceived"] = "allTimeBGTReceived";
|
|
116
|
+
GqlRewardVaultOrderBy2["Apr"] = "apr";
|
|
117
|
+
GqlRewardVaultOrderBy2["Apy"] = "apy";
|
|
118
|
+
GqlRewardVaultOrderBy2["BgtCapturePercentage"] = "bgtCapturePercentage";
|
|
119
|
+
GqlRewardVaultOrderBy2["Last24hBgtReceived"] = "last24hBGTReceived";
|
|
120
|
+
GqlRewardVaultOrderBy2["ProjectedApr"] = "projectedApr";
|
|
121
|
+
return GqlRewardVaultOrderBy2;
|
|
122
|
+
})(GqlRewardVaultOrderBy || {});
|
|
123
|
+
var GqlRewardVaultOrderDirection = /* @__PURE__ */ ((GqlRewardVaultOrderDirection2) => {
|
|
124
|
+
GqlRewardVaultOrderDirection2["Asc"] = "asc";
|
|
125
|
+
GqlRewardVaultOrderDirection2["Desc"] = "desc";
|
|
126
|
+
return GqlRewardVaultOrderDirection2;
|
|
127
|
+
})(GqlRewardVaultOrderDirection || {});
|
|
128
|
+
var GqlRewardVaultSnapshotDataRange = /* @__PURE__ */ ((GqlRewardVaultSnapshotDataRange2) => {
|
|
129
|
+
GqlRewardVaultSnapshotDataRange2["AllTime"] = "ALL_TIME";
|
|
130
|
+
GqlRewardVaultSnapshotDataRange2["NinetyDays"] = "NINETY_DAYS";
|
|
131
|
+
GqlRewardVaultSnapshotDataRange2["SevenDays"] = "SEVEN_DAYS";
|
|
132
|
+
GqlRewardVaultSnapshotDataRange2["SixtyDays"] = "SIXTY_DAYS";
|
|
133
|
+
GqlRewardVaultSnapshotDataRange2["ThirtyDays"] = "THIRTY_DAYS";
|
|
134
|
+
return GqlRewardVaultSnapshotDataRange2;
|
|
135
|
+
})(GqlRewardVaultSnapshotDataRange || {});
|
|
136
|
+
var GqlRewardVaultSnapshotResolution = /* @__PURE__ */ ((GqlRewardVaultSnapshotResolution2) => {
|
|
137
|
+
GqlRewardVaultSnapshotResolution2["Day"] = "DAY";
|
|
138
|
+
GqlRewardVaultSnapshotResolution2["Hour"] = "HOUR";
|
|
139
|
+
return GqlRewardVaultSnapshotResolution2;
|
|
140
|
+
})(GqlRewardVaultSnapshotResolution || {});
|
|
141
|
+
var GqlSWberaVaultMetadataResolution = /* @__PURE__ */ ((GqlSWberaVaultMetadataResolution2) => {
|
|
142
|
+
GqlSWberaVaultMetadataResolution2["OneDay"] = "ONE_DAY";
|
|
143
|
+
GqlSWberaVaultMetadataResolution2["SevenDays"] = "SEVEN_DAYS";
|
|
144
|
+
return GqlSWberaVaultMetadataResolution2;
|
|
145
|
+
})(GqlSWberaVaultMetadataResolution || {});
|
|
146
|
+
var GqlSorSwapType = /* @__PURE__ */ ((GqlSorSwapType2) => {
|
|
147
|
+
GqlSorSwapType2["ExactIn"] = "EXACT_IN";
|
|
148
|
+
GqlSorSwapType2["ExactOut"] = "EXACT_OUT";
|
|
149
|
+
return GqlSorSwapType2;
|
|
150
|
+
})(GqlSorSwapType || {});
|
|
151
|
+
var GqlTokenChartDataRange = /* @__PURE__ */ ((GqlTokenChartDataRange2) => {
|
|
152
|
+
GqlTokenChartDataRange2["NinetyDay"] = "NINETY_DAY";
|
|
153
|
+
GqlTokenChartDataRange2["OneHundredEightyDay"] = "ONE_HUNDRED_EIGHTY_DAY";
|
|
154
|
+
GqlTokenChartDataRange2["OneYear"] = "ONE_YEAR";
|
|
155
|
+
GqlTokenChartDataRange2["SevenDay"] = "SEVEN_DAY";
|
|
156
|
+
GqlTokenChartDataRange2["ThirtyDay"] = "THIRTY_DAY";
|
|
157
|
+
return GqlTokenChartDataRange2;
|
|
158
|
+
})(GqlTokenChartDataRange || {});
|
|
159
|
+
var GqlTokenType = /* @__PURE__ */ ((GqlTokenType2) => {
|
|
160
|
+
GqlTokenType2["Bpt"] = "BPT";
|
|
161
|
+
GqlTokenType2["PhantomBpt"] = "PHANTOM_BPT";
|
|
162
|
+
GqlTokenType2["WhiteListed"] = "WHITE_LISTED";
|
|
163
|
+
return GqlTokenType2;
|
|
164
|
+
})(GqlTokenType || {});
|
|
165
|
+
var GqlUserVaultDepositOrderBy = /* @__PURE__ */ ((GqlUserVaultDepositOrderBy2) => {
|
|
166
|
+
GqlUserVaultDepositOrderBy2["Amount"] = "amount";
|
|
167
|
+
return GqlUserVaultDepositOrderBy2;
|
|
168
|
+
})(GqlUserVaultDepositOrderBy || {});
|
|
169
|
+
var GqlUserVaultDepositOrderDirection = /* @__PURE__ */ ((GqlUserVaultDepositOrderDirection2) => {
|
|
170
|
+
GqlUserVaultDepositOrderDirection2["Asc"] = "asc";
|
|
171
|
+
GqlUserVaultDepositOrderDirection2["Desc"] = "desc";
|
|
172
|
+
return GqlUserVaultDepositOrderDirection2;
|
|
173
|
+
})(GqlUserVaultDepositOrderDirection || {});
|
|
174
|
+
var GqlValidatorBlockUptimeStatus = /* @__PURE__ */ ((GqlValidatorBlockUptimeStatus2) => {
|
|
175
|
+
GqlValidatorBlockUptimeStatus2["Inactive"] = "INACTIVE";
|
|
176
|
+
GqlValidatorBlockUptimeStatus2["Offline"] = "OFFLINE";
|
|
177
|
+
GqlValidatorBlockUptimeStatus2["Proposed"] = "PROPOSED";
|
|
178
|
+
GqlValidatorBlockUptimeStatus2["Signed"] = "SIGNED";
|
|
179
|
+
return GqlValidatorBlockUptimeStatus2;
|
|
180
|
+
})(GqlValidatorBlockUptimeStatus || {});
|
|
181
|
+
var GqlValidatorBoostOrderBy = /* @__PURE__ */ ((GqlValidatorBoostOrderBy2) => {
|
|
182
|
+
GqlValidatorBoostOrderBy2["ActiveBoostAmount"] = "activeBoostAmount";
|
|
183
|
+
GqlValidatorBoostOrderBy2["LatestBlock"] = "latestBlock";
|
|
184
|
+
GqlValidatorBoostOrderBy2["LatestBlockTime"] = "latestBlockTime";
|
|
185
|
+
GqlValidatorBoostOrderBy2["QueuedBoostAmount"] = "queuedBoostAmount";
|
|
186
|
+
GqlValidatorBoostOrderBy2["QueuedDropBoostAmount"] = "queuedDropBoostAmount";
|
|
187
|
+
return GqlValidatorBoostOrderBy2;
|
|
188
|
+
})(GqlValidatorBoostOrderBy || {});
|
|
189
|
+
var GqlValidatorBoostOrderDirection = /* @__PURE__ */ ((GqlValidatorBoostOrderDirection2) => {
|
|
190
|
+
GqlValidatorBoostOrderDirection2["Asc"] = "asc";
|
|
191
|
+
GqlValidatorBoostOrderDirection2["Desc"] = "desc";
|
|
192
|
+
return GqlValidatorBoostOrderDirection2;
|
|
193
|
+
})(GqlValidatorBoostOrderDirection || {});
|
|
194
|
+
var GqlValidatorOrderBy = /* @__PURE__ */ ((GqlValidatorOrderBy2) => {
|
|
195
|
+
GqlValidatorOrderBy2["ActiveBoostAmount"] = "activeBoostAmount";
|
|
196
|
+
GqlValidatorOrderBy2["AllTimeDistributedBgtAmount"] = "allTimeDistributedBGTAmount";
|
|
197
|
+
GqlValidatorOrderBy2["AllTimeEarnedBgtAmount"] = "allTimeEarnedBGTAmount";
|
|
198
|
+
GqlValidatorOrderBy2["Apy"] = "apy";
|
|
199
|
+
GqlValidatorOrderBy2["BgtCapturePercentage"] = "bgtCapturePercentage";
|
|
200
|
+
GqlValidatorOrderBy2["BoostApr"] = "boostApr";
|
|
201
|
+
GqlValidatorOrderBy2["CommissionOnIncentives"] = "commissionOnIncentives";
|
|
202
|
+
GqlValidatorOrderBy2["LastDayDistributedBgtAmount"] = "lastDayDistributedBGTAmount";
|
|
203
|
+
GqlValidatorOrderBy2["LastDayEarnedBgtAmount"] = "lastDayEarnedBGTAmount";
|
|
204
|
+
GqlValidatorOrderBy2["LastDayProposedBlockCount"] = "lastDayProposedBlockCount";
|
|
205
|
+
GqlValidatorOrderBy2["QueuedBoostAmount"] = "queuedBoostAmount";
|
|
206
|
+
GqlValidatorOrderBy2["QueuedDropBoostAmount"] = "queuedDropBoostAmount";
|
|
207
|
+
GqlValidatorOrderBy2["RewardRate"] = "rewardRate";
|
|
208
|
+
GqlValidatorOrderBy2["StakedBeraAmount"] = "stakedBeraAmount";
|
|
209
|
+
GqlValidatorOrderBy2["UsersActiveBoostCount"] = "usersActiveBoostCount";
|
|
210
|
+
GqlValidatorOrderBy2["UsersQueuedBoostCount"] = "usersQueuedBoostCount";
|
|
211
|
+
return GqlValidatorOrderBy2;
|
|
212
|
+
})(GqlValidatorOrderBy || {});
|
|
213
|
+
var GqlValidatorOrderDirection = /* @__PURE__ */ ((GqlValidatorOrderDirection2) => {
|
|
214
|
+
GqlValidatorOrderDirection2["Asc"] = "asc";
|
|
215
|
+
GqlValidatorOrderDirection2["Desc"] = "desc";
|
|
216
|
+
return GqlValidatorOrderDirection2;
|
|
217
|
+
})(GqlValidatorOrderDirection || {});
|
|
218
|
+
var GqlVaultSnapshotDataRange = /* @__PURE__ */ ((GqlVaultSnapshotDataRange2) => {
|
|
219
|
+
GqlVaultSnapshotDataRange2["NinetyDays"] = "NINETY_DAYS";
|
|
220
|
+
GqlVaultSnapshotDataRange2["SevenDays"] = "SEVEN_DAYS";
|
|
221
|
+
GqlVaultSnapshotDataRange2["SixtyDays"] = "SIXTY_DAYS";
|
|
222
|
+
GqlVaultSnapshotDataRange2["ThirtyDays"] = "THIRTY_DAYS";
|
|
223
|
+
return GqlVaultSnapshotDataRange2;
|
|
224
|
+
})(GqlVaultSnapshotDataRange || {});
|
|
225
|
+
var DynamicData = gql`
|
|
2
226
|
fragment DynamicData on GqlPoolDynamicData {
|
|
3
227
|
totalShares
|
|
4
228
|
fees24h
|
|
@@ -13,13 +237,15 @@ import{gql as n}from"@apollo/client";var S=(t=>(t.Bepolia="BEPOLIA",t.Berachain=
|
|
|
13
237
|
id
|
|
14
238
|
}
|
|
15
239
|
}
|
|
16
|
-
|
|
240
|
+
`;
|
|
241
|
+
var UserBalance = gql`
|
|
17
242
|
fragment UserBalance on GqlPoolUserBalance {
|
|
18
243
|
totalBalanceUsd
|
|
19
244
|
walletBalance
|
|
20
245
|
walletBalanceUsd
|
|
21
246
|
}
|
|
22
|
-
|
|
247
|
+
`;
|
|
248
|
+
var RewardVault = gql`
|
|
23
249
|
fragment RewardVault on GqlRewardVault {
|
|
24
250
|
dynamicData {
|
|
25
251
|
activeIncentivesValueUsd
|
|
@@ -31,7 +257,8 @@ import{gql as n}from"@apollo/client";var S=(t=>(t.Bepolia="BEPOLIA",t.Berachain=
|
|
|
31
257
|
vaultAddress
|
|
32
258
|
stakingTokenAddress
|
|
33
259
|
}
|
|
34
|
-
|
|
260
|
+
`;
|
|
261
|
+
var MinimalPoolInList = gql`
|
|
35
262
|
fragment MinimalPoolInList on GqlPoolMinimal {
|
|
36
263
|
id
|
|
37
264
|
name
|
|
@@ -56,9 +283,10 @@ import{gql as n}from"@apollo/client";var S=(t=>(t.Bepolia="BEPOLIA",t.Berachain=
|
|
|
56
283
|
...RewardVault
|
|
57
284
|
}
|
|
58
285
|
}
|
|
59
|
-
${
|
|
60
|
-
${
|
|
61
|
-
${
|
|
286
|
+
${DynamicData}
|
|
287
|
+
${UserBalance}
|
|
288
|
+
${RewardVault}`;
|
|
289
|
+
var MinimalPool = gql`
|
|
62
290
|
fragment MinimalPool on GqlPoolBase {
|
|
63
291
|
id
|
|
64
292
|
name
|
|
@@ -85,8 +313,9 @@ ${c}`,W=n`
|
|
|
85
313
|
...RewardVault
|
|
86
314
|
}
|
|
87
315
|
}
|
|
88
|
-
${
|
|
89
|
-
${
|
|
316
|
+
${DynamicData}
|
|
317
|
+
${RewardVault}`;
|
|
318
|
+
var PoolHistoricalData = gql`
|
|
90
319
|
fragment PoolHistoricalData on GqlPoolSnapshot {
|
|
91
320
|
id
|
|
92
321
|
volume24h
|
|
@@ -96,7 +325,8 @@ ${c}`,O=n`
|
|
|
96
325
|
fees24h
|
|
97
326
|
totalSwapFee
|
|
98
327
|
}
|
|
99
|
-
|
|
328
|
+
`;
|
|
329
|
+
var GqlPoolSwapEventCowAmm = gql`
|
|
100
330
|
fragment GqlPoolSwapEventCowAmm on GqlPoolSwapEventCowAmm {
|
|
101
331
|
tokenIn {
|
|
102
332
|
address
|
|
@@ -107,7 +337,8 @@ ${c}`,O=n`
|
|
|
107
337
|
amount
|
|
108
338
|
}
|
|
109
339
|
}
|
|
110
|
-
|
|
340
|
+
`;
|
|
341
|
+
var GqlPoolSwapEventV3 = gql`
|
|
111
342
|
fragment GqlPoolSwapEventV3 on GqlPoolSwapEventV3 {
|
|
112
343
|
tokenIn {
|
|
113
344
|
address
|
|
@@ -118,14 +349,16 @@ ${c}`,O=n`
|
|
|
118
349
|
amount
|
|
119
350
|
}
|
|
120
351
|
}
|
|
121
|
-
|
|
352
|
+
`;
|
|
353
|
+
var GqlPoolAddRemoveEventV3 = gql`
|
|
122
354
|
fragment GqlPoolAddRemoveEventV3 on GqlPoolAddRemoveEventV3 {
|
|
123
355
|
tokens {
|
|
124
356
|
address
|
|
125
357
|
amount
|
|
126
358
|
}
|
|
127
359
|
}
|
|
128
|
-
|
|
360
|
+
`;
|
|
361
|
+
var PoolEvent = gql`
|
|
129
362
|
fragment PoolEvent on GqlPoolEvent {
|
|
130
363
|
id
|
|
131
364
|
valueUSD
|
|
@@ -137,9 +370,10 @@ ${c}`,O=n`
|
|
|
137
370
|
...GqlPoolSwapEventV3
|
|
138
371
|
...GqlPoolAddRemoveEventV3
|
|
139
372
|
}
|
|
140
|
-
${
|
|
141
|
-
${
|
|
142
|
-
${
|
|
373
|
+
${GqlPoolSwapEventCowAmm}
|
|
374
|
+
${GqlPoolSwapEventV3}
|
|
375
|
+
${GqlPoolAddRemoveEventV3}`;
|
|
376
|
+
var GetPools = gql`
|
|
143
377
|
query GetPools($textSearch: String, $first: Int, $userAddress: String, $chain: [GqlChain!]!, $orderBy: GqlPoolOrderBy, $skip: Int, $orderDirection: GqlPoolOrderDirection, $blacklistedPoolIds: [String!]) {
|
|
144
378
|
poolGetPools(
|
|
145
379
|
textSearch: $textSearch
|
|
@@ -156,19 +390,22 @@ ${K}`,j=n`
|
|
|
156
390
|
where: {userAddress: $userAddress, chainIn: $chain}
|
|
157
391
|
)
|
|
158
392
|
}
|
|
159
|
-
${
|
|
393
|
+
${MinimalPoolInList}`;
|
|
394
|
+
var GetPool = gql`
|
|
160
395
|
query GetPool($id: String!, $userAddress: String, $chain: GqlChain!) {
|
|
161
396
|
poolGetPool(id: $id, userAddress: $userAddress, chain: $chain) {
|
|
162
397
|
...MinimalPool
|
|
163
398
|
}
|
|
164
399
|
}
|
|
165
|
-
${
|
|
400
|
+
${MinimalPool}`;
|
|
401
|
+
var GetPoolHistoricalData = gql`
|
|
166
402
|
query GetPoolHistoricalData($poolId: String!, $chain: GqlChain!) {
|
|
167
403
|
poolGetSnapshots(id: $poolId, range: NINETY_DAYS, chain: $chain) {
|
|
168
404
|
...PoolHistoricalData
|
|
169
405
|
}
|
|
170
406
|
}
|
|
171
|
-
${
|
|
407
|
+
${PoolHistoricalData}`;
|
|
408
|
+
var GetPoolEvents = gql`
|
|
172
409
|
query GetPoolEvents($poolId: String!, $typeIn: [GqlPoolEventType!]!, $chain: GqlChain!) {
|
|
173
410
|
poolGetEvents(
|
|
174
411
|
poolId: $poolId
|
|
@@ -179,7 +416,8 @@ ${K}`,j=n`
|
|
|
179
416
|
...PoolEvent
|
|
180
417
|
}
|
|
181
418
|
}
|
|
182
|
-
${
|
|
419
|
+
${PoolEvent}`;
|
|
420
|
+
var GetTokenCurrentPrices = gql`
|
|
183
421
|
query GetTokenCurrentPrices($chains: [GqlChain!]!, $addressIn: [String!]!) {
|
|
184
422
|
tokenGetCurrentPrices(chains: $chains, addressIn: $addressIn) {
|
|
185
423
|
address
|
|
@@ -189,11 +427,112 @@ ${K}`,j=n`
|
|
|
189
427
|
updatedBy
|
|
190
428
|
}
|
|
191
429
|
}
|
|
192
|
-
|
|
430
|
+
`;
|
|
431
|
+
var GetGlobalLiquidityAndSwapVolume = gql`
|
|
193
432
|
query GetGlobalLiquidityAndSwapVolume($chain: GqlChain!) {
|
|
194
433
|
protocolMetricsAggregated(chains: [$chain]) {
|
|
195
434
|
swapVolume24h
|
|
196
435
|
totalLiquidity
|
|
197
436
|
}
|
|
198
437
|
}
|
|
199
|
-
|
|
438
|
+
`;
|
|
439
|
+
var result = {
|
|
440
|
+
"possibleTypes": {
|
|
441
|
+
"GqlIncentive": [
|
|
442
|
+
"GqlRewardVaultIncentive",
|
|
443
|
+
"GqlValidatorIncentive"
|
|
444
|
+
],
|
|
445
|
+
"GqlPoolAprValue": [
|
|
446
|
+
"GqlPoolAprRange",
|
|
447
|
+
"GqlPoolAprTotal"
|
|
448
|
+
],
|
|
449
|
+
"GqlPoolBase": [
|
|
450
|
+
"GqlPoolComposableStable",
|
|
451
|
+
"GqlPoolElement",
|
|
452
|
+
"GqlPoolFx",
|
|
453
|
+
"GqlPoolGyro",
|
|
454
|
+
"GqlPoolLiquidityBootstrapping",
|
|
455
|
+
"GqlPoolMetaStable",
|
|
456
|
+
"GqlPoolStable",
|
|
457
|
+
"GqlPoolWeighted"
|
|
458
|
+
],
|
|
459
|
+
"GqlPoolEvent": [
|
|
460
|
+
"GqlPoolAddRemoveEventV3",
|
|
461
|
+
"GqlPoolSwapEventCowAmm",
|
|
462
|
+
"GqlPoolSwapEventV3"
|
|
463
|
+
],
|
|
464
|
+
"GqlPoolNestedUnion": [
|
|
465
|
+
"GqlPoolComposableStableNested"
|
|
466
|
+
],
|
|
467
|
+
"GqlPoolTokenBase": [
|
|
468
|
+
"GqlPoolToken",
|
|
469
|
+
"GqlPoolTokenComposableStable"
|
|
470
|
+
],
|
|
471
|
+
"GqlPoolTokenComposableStableNestedUnion": [
|
|
472
|
+
"GqlPoolToken"
|
|
473
|
+
],
|
|
474
|
+
"GqlPoolTokenUnion": [
|
|
475
|
+
"GqlPoolToken",
|
|
476
|
+
"GqlPoolTokenComposableStable"
|
|
477
|
+
],
|
|
478
|
+
"GqlPoolUnion": [
|
|
479
|
+
"GqlPoolComposableStable",
|
|
480
|
+
"GqlPoolElement",
|
|
481
|
+
"GqlPoolFx",
|
|
482
|
+
"GqlPoolGyro",
|
|
483
|
+
"GqlPoolLiquidityBootstrapping",
|
|
484
|
+
"GqlPoolMetaStable",
|
|
485
|
+
"GqlPoolStable",
|
|
486
|
+
"GqlPoolWeighted"
|
|
487
|
+
]
|
|
488
|
+
}
|
|
489
|
+
};
|
|
490
|
+
var api_codegen_default = result;
|
|
491
|
+
export {
|
|
492
|
+
DynamicData,
|
|
493
|
+
GetGlobalLiquidityAndSwapVolume,
|
|
494
|
+
GetPool,
|
|
495
|
+
GetPoolEvents,
|
|
496
|
+
GetPoolHistoricalData,
|
|
497
|
+
GetPools,
|
|
498
|
+
GetTokenCurrentPrices,
|
|
499
|
+
GqlChain,
|
|
500
|
+
GqlPoolAddRemoveEventV3,
|
|
501
|
+
GqlPoolAprItemType,
|
|
502
|
+
GqlPoolEventType,
|
|
503
|
+
GqlPoolEventsDataRange,
|
|
504
|
+
GqlPoolFilterCategory,
|
|
505
|
+
GqlPoolJoinExitType,
|
|
506
|
+
GqlPoolNestingType,
|
|
507
|
+
GqlPoolOrderBy,
|
|
508
|
+
GqlPoolOrderDirection,
|
|
509
|
+
GqlPoolSnapshotDataRange,
|
|
510
|
+
GqlPoolSwapEventCowAmm,
|
|
511
|
+
GqlPoolSwapEventV3,
|
|
512
|
+
GqlPoolType,
|
|
513
|
+
GqlRewardVaultIncentiveOrderBy,
|
|
514
|
+
GqlRewardVaultIncentiveOrderDirection,
|
|
515
|
+
GqlRewardVaultOrderBy,
|
|
516
|
+
GqlRewardVaultOrderDirection,
|
|
517
|
+
GqlRewardVaultSnapshotDataRange,
|
|
518
|
+
GqlRewardVaultSnapshotResolution,
|
|
519
|
+
GqlSWberaVaultMetadataResolution,
|
|
520
|
+
GqlSorSwapType,
|
|
521
|
+
GqlTokenChartDataRange,
|
|
522
|
+
GqlTokenType,
|
|
523
|
+
GqlUserVaultDepositOrderBy,
|
|
524
|
+
GqlUserVaultDepositOrderDirection,
|
|
525
|
+
GqlValidatorBlockUptimeStatus,
|
|
526
|
+
GqlValidatorBoostOrderBy,
|
|
527
|
+
GqlValidatorBoostOrderDirection,
|
|
528
|
+
GqlValidatorOrderBy,
|
|
529
|
+
GqlValidatorOrderDirection,
|
|
530
|
+
GqlVaultSnapshotDataRange,
|
|
531
|
+
MinimalPool,
|
|
532
|
+
MinimalPoolInList,
|
|
533
|
+
PoolEvent,
|
|
534
|
+
PoolHistoricalData,
|
|
535
|
+
RewardVault,
|
|
536
|
+
UserBalance,
|
|
537
|
+
api_codegen_default as default
|
|
538
|
+
};
|