@berachain/graphql 0.1.0-alpha.6 → 0.1.0-alpha.8

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.
@@ -1,12 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _client = require('@apollo/client');var e=(a=>(a.Day="day",a.Hour="hour",a))(e||{}),s= exports.Block_OrderBy =(t=>(t.Author="author",t.BaseFeePerGas="baseFeePerGas",t.Difficulty="difficulty",t.GasLimit="gasLimit",t.GasUsed="gasUsed",t.Hash="hash",t.Id="id",t.Number="number",t.ParentHash="parentHash",t.ReceiptsRoot="receiptsRoot",t.Size="size",t.StateRoot="stateRoot",t.Timestamp="timestamp",t.TotalDifficulty="totalDifficulty",t.TransactionsRoot="transactionsRoot",t.UnclesHash="unclesHash",t))(s||{}),p= exports.OrderDirection =(a=>(a.Asc="asc",a.Desc="desc",a))(p||{}),u= exports._SubgraphErrorPolicy_ =(a=>(a.Allow="allow",a.Deny="deny",a))(u||{}),y= exports.GetBlocksTimeStamp =_client.gql`
2
- query GetBlocksTimeStamp($skip: Int!) {
3
- newest: blocks(first: 1, orderBy: timestamp, orderDirection: desc) {
4
- timestamp
5
- number
6
- }
7
- oldest: blocks(first: 1, orderBy: timestamp, orderDirection: desc, skip: $skip) {
8
- timestamp
9
- number
10
- }
11
- }
12
- `,i={possibleTypes:{}},o= exports.default =i;exports.Aggregation_Interval = e; exports.Block_OrderBy = s; exports.GetBlocksTimeStamp = y; exports.OrderDirection = p; exports._SubgraphErrorPolicy_ = u; exports.default = o;
@@ -1,376 +0,0 @@
1
- import * as _apollo_client from '@apollo/client';
2
-
3
- type Maybe<T> = T | null;
4
- type InputMaybe<T> = Maybe<T>;
5
- type Exact<T extends {
6
- [key: string]: unknown;
7
- }> = {
8
- [K in keyof T]: T[K];
9
- };
10
- type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
11
- [SubKey in K]?: Maybe<T[SubKey]>;
12
- };
13
- type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
14
- [SubKey in K]: Maybe<T[SubKey]>;
15
- };
16
- type MakeEmpty<T extends {
17
- [key: string]: unknown;
18
- }, K extends keyof T> = {
19
- [_ in K]?: never;
20
- };
21
- type Incremental<T> = T | {
22
- [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
23
- };
24
- /** All built-in and custom scalars, mapped to their actual values */
25
- type Scalars = {
26
- ID: {
27
- input: string;
28
- output: string;
29
- };
30
- String: {
31
- input: string;
32
- output: string;
33
- };
34
- Boolean: {
35
- input: boolean;
36
- output: boolean;
37
- };
38
- Int: {
39
- input: number;
40
- output: number;
41
- };
42
- Float: {
43
- input: number;
44
- output: number;
45
- };
46
- BigDecimal: {
47
- input: any;
48
- output: any;
49
- };
50
- BigInt: {
51
- input: any;
52
- output: any;
53
- };
54
- Bytes: {
55
- input: any;
56
- output: any;
57
- };
58
- Int8: {
59
- input: any;
60
- output: any;
61
- };
62
- Timestamp: {
63
- input: any;
64
- output: any;
65
- };
66
- };
67
- declare enum Aggregation_Interval {
68
- Day = "day",
69
- Hour = "hour"
70
- }
71
- type Block = {
72
- __typename?: 'Block';
73
- author: Scalars['Bytes']['output'];
74
- baseFeePerGas?: Maybe<Scalars['BigInt']['output']>;
75
- difficulty: Scalars['BigInt']['output'];
76
- gasLimit: Scalars['BigInt']['output'];
77
- gasUsed: Scalars['BigInt']['output'];
78
- hash: Scalars['Bytes']['output'];
79
- id: Scalars['Bytes']['output'];
80
- number: Scalars['BigInt']['output'];
81
- parentHash: Scalars['Bytes']['output'];
82
- receiptsRoot: Scalars['Bytes']['output'];
83
- size?: Maybe<Scalars['BigInt']['output']>;
84
- stateRoot: Scalars['Bytes']['output'];
85
- timestamp: Scalars['BigInt']['output'];
86
- totalDifficulty: Scalars['BigInt']['output'];
87
- transactionsRoot: Scalars['Bytes']['output'];
88
- unclesHash: Scalars['Bytes']['output'];
89
- };
90
- type BlockChangedFilter = {
91
- number_gte: Scalars['Int']['input'];
92
- };
93
- type Block_Filter = {
94
- /** Filter for the block changed event. */
95
- _change_block?: InputMaybe<BlockChangedFilter>;
96
- and?: InputMaybe<Array<InputMaybe<Block_Filter>>>;
97
- author?: InputMaybe<Scalars['Bytes']['input']>;
98
- author_contains?: InputMaybe<Scalars['Bytes']['input']>;
99
- author_gt?: InputMaybe<Scalars['Bytes']['input']>;
100
- author_gte?: InputMaybe<Scalars['Bytes']['input']>;
101
- author_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
102
- author_lt?: InputMaybe<Scalars['Bytes']['input']>;
103
- author_lte?: InputMaybe<Scalars['Bytes']['input']>;
104
- author_not?: InputMaybe<Scalars['Bytes']['input']>;
105
- author_not_contains?: InputMaybe<Scalars['Bytes']['input']>;
106
- author_not_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
107
- baseFeePerGas?: InputMaybe<Scalars['BigInt']['input']>;
108
- baseFeePerGas_gt?: InputMaybe<Scalars['BigInt']['input']>;
109
- baseFeePerGas_gte?: InputMaybe<Scalars['BigInt']['input']>;
110
- baseFeePerGas_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
111
- baseFeePerGas_lt?: InputMaybe<Scalars['BigInt']['input']>;
112
- baseFeePerGas_lte?: InputMaybe<Scalars['BigInt']['input']>;
113
- baseFeePerGas_not?: InputMaybe<Scalars['BigInt']['input']>;
114
- baseFeePerGas_not_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
115
- difficulty?: InputMaybe<Scalars['BigInt']['input']>;
116
- difficulty_gt?: InputMaybe<Scalars['BigInt']['input']>;
117
- difficulty_gte?: InputMaybe<Scalars['BigInt']['input']>;
118
- difficulty_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
119
- difficulty_lt?: InputMaybe<Scalars['BigInt']['input']>;
120
- difficulty_lte?: InputMaybe<Scalars['BigInt']['input']>;
121
- difficulty_not?: InputMaybe<Scalars['BigInt']['input']>;
122
- difficulty_not_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
123
- gasLimit?: InputMaybe<Scalars['BigInt']['input']>;
124
- gasLimit_gt?: InputMaybe<Scalars['BigInt']['input']>;
125
- gasLimit_gte?: InputMaybe<Scalars['BigInt']['input']>;
126
- gasLimit_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
127
- gasLimit_lt?: InputMaybe<Scalars['BigInt']['input']>;
128
- gasLimit_lte?: InputMaybe<Scalars['BigInt']['input']>;
129
- gasLimit_not?: InputMaybe<Scalars['BigInt']['input']>;
130
- gasLimit_not_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
131
- gasUsed?: InputMaybe<Scalars['BigInt']['input']>;
132
- gasUsed_gt?: InputMaybe<Scalars['BigInt']['input']>;
133
- gasUsed_gte?: InputMaybe<Scalars['BigInt']['input']>;
134
- gasUsed_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
135
- gasUsed_lt?: InputMaybe<Scalars['BigInt']['input']>;
136
- gasUsed_lte?: InputMaybe<Scalars['BigInt']['input']>;
137
- gasUsed_not?: InputMaybe<Scalars['BigInt']['input']>;
138
- gasUsed_not_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
139
- hash?: InputMaybe<Scalars['Bytes']['input']>;
140
- hash_contains?: InputMaybe<Scalars['Bytes']['input']>;
141
- hash_gt?: InputMaybe<Scalars['Bytes']['input']>;
142
- hash_gte?: InputMaybe<Scalars['Bytes']['input']>;
143
- hash_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
144
- hash_lt?: InputMaybe<Scalars['Bytes']['input']>;
145
- hash_lte?: InputMaybe<Scalars['Bytes']['input']>;
146
- hash_not?: InputMaybe<Scalars['Bytes']['input']>;
147
- hash_not_contains?: InputMaybe<Scalars['Bytes']['input']>;
148
- hash_not_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
149
- id?: InputMaybe<Scalars['Bytes']['input']>;
150
- id_contains?: InputMaybe<Scalars['Bytes']['input']>;
151
- id_gt?: InputMaybe<Scalars['Bytes']['input']>;
152
- id_gte?: InputMaybe<Scalars['Bytes']['input']>;
153
- id_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
154
- id_lt?: InputMaybe<Scalars['Bytes']['input']>;
155
- id_lte?: InputMaybe<Scalars['Bytes']['input']>;
156
- id_not?: InputMaybe<Scalars['Bytes']['input']>;
157
- id_not_contains?: InputMaybe<Scalars['Bytes']['input']>;
158
- id_not_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
159
- number?: InputMaybe<Scalars['BigInt']['input']>;
160
- number_gt?: InputMaybe<Scalars['BigInt']['input']>;
161
- number_gte?: InputMaybe<Scalars['BigInt']['input']>;
162
- number_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
163
- number_lt?: InputMaybe<Scalars['BigInt']['input']>;
164
- number_lte?: InputMaybe<Scalars['BigInt']['input']>;
165
- number_not?: InputMaybe<Scalars['BigInt']['input']>;
166
- number_not_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
167
- or?: InputMaybe<Array<InputMaybe<Block_Filter>>>;
168
- parentHash?: InputMaybe<Scalars['Bytes']['input']>;
169
- parentHash_contains?: InputMaybe<Scalars['Bytes']['input']>;
170
- parentHash_gt?: InputMaybe<Scalars['Bytes']['input']>;
171
- parentHash_gte?: InputMaybe<Scalars['Bytes']['input']>;
172
- parentHash_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
173
- parentHash_lt?: InputMaybe<Scalars['Bytes']['input']>;
174
- parentHash_lte?: InputMaybe<Scalars['Bytes']['input']>;
175
- parentHash_not?: InputMaybe<Scalars['Bytes']['input']>;
176
- parentHash_not_contains?: InputMaybe<Scalars['Bytes']['input']>;
177
- parentHash_not_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
178
- receiptsRoot?: InputMaybe<Scalars['Bytes']['input']>;
179
- receiptsRoot_contains?: InputMaybe<Scalars['Bytes']['input']>;
180
- receiptsRoot_gt?: InputMaybe<Scalars['Bytes']['input']>;
181
- receiptsRoot_gte?: InputMaybe<Scalars['Bytes']['input']>;
182
- receiptsRoot_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
183
- receiptsRoot_lt?: InputMaybe<Scalars['Bytes']['input']>;
184
- receiptsRoot_lte?: InputMaybe<Scalars['Bytes']['input']>;
185
- receiptsRoot_not?: InputMaybe<Scalars['Bytes']['input']>;
186
- receiptsRoot_not_contains?: InputMaybe<Scalars['Bytes']['input']>;
187
- receiptsRoot_not_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
188
- size?: InputMaybe<Scalars['BigInt']['input']>;
189
- size_gt?: InputMaybe<Scalars['BigInt']['input']>;
190
- size_gte?: InputMaybe<Scalars['BigInt']['input']>;
191
- size_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
192
- size_lt?: InputMaybe<Scalars['BigInt']['input']>;
193
- size_lte?: InputMaybe<Scalars['BigInt']['input']>;
194
- size_not?: InputMaybe<Scalars['BigInt']['input']>;
195
- size_not_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
196
- stateRoot?: InputMaybe<Scalars['Bytes']['input']>;
197
- stateRoot_contains?: InputMaybe<Scalars['Bytes']['input']>;
198
- stateRoot_gt?: InputMaybe<Scalars['Bytes']['input']>;
199
- stateRoot_gte?: InputMaybe<Scalars['Bytes']['input']>;
200
- stateRoot_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
201
- stateRoot_lt?: InputMaybe<Scalars['Bytes']['input']>;
202
- stateRoot_lte?: InputMaybe<Scalars['Bytes']['input']>;
203
- stateRoot_not?: InputMaybe<Scalars['Bytes']['input']>;
204
- stateRoot_not_contains?: InputMaybe<Scalars['Bytes']['input']>;
205
- stateRoot_not_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
206
- timestamp?: InputMaybe<Scalars['BigInt']['input']>;
207
- timestamp_gt?: InputMaybe<Scalars['BigInt']['input']>;
208
- timestamp_gte?: InputMaybe<Scalars['BigInt']['input']>;
209
- timestamp_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
210
- timestamp_lt?: InputMaybe<Scalars['BigInt']['input']>;
211
- timestamp_lte?: InputMaybe<Scalars['BigInt']['input']>;
212
- timestamp_not?: InputMaybe<Scalars['BigInt']['input']>;
213
- timestamp_not_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
214
- totalDifficulty?: InputMaybe<Scalars['BigInt']['input']>;
215
- totalDifficulty_gt?: InputMaybe<Scalars['BigInt']['input']>;
216
- totalDifficulty_gte?: InputMaybe<Scalars['BigInt']['input']>;
217
- totalDifficulty_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
218
- totalDifficulty_lt?: InputMaybe<Scalars['BigInt']['input']>;
219
- totalDifficulty_lte?: InputMaybe<Scalars['BigInt']['input']>;
220
- totalDifficulty_not?: InputMaybe<Scalars['BigInt']['input']>;
221
- totalDifficulty_not_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
222
- transactionsRoot?: InputMaybe<Scalars['Bytes']['input']>;
223
- transactionsRoot_contains?: InputMaybe<Scalars['Bytes']['input']>;
224
- transactionsRoot_gt?: InputMaybe<Scalars['Bytes']['input']>;
225
- transactionsRoot_gte?: InputMaybe<Scalars['Bytes']['input']>;
226
- transactionsRoot_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
227
- transactionsRoot_lt?: InputMaybe<Scalars['Bytes']['input']>;
228
- transactionsRoot_lte?: InputMaybe<Scalars['Bytes']['input']>;
229
- transactionsRoot_not?: InputMaybe<Scalars['Bytes']['input']>;
230
- transactionsRoot_not_contains?: InputMaybe<Scalars['Bytes']['input']>;
231
- transactionsRoot_not_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
232
- unclesHash?: InputMaybe<Scalars['Bytes']['input']>;
233
- unclesHash_contains?: InputMaybe<Scalars['Bytes']['input']>;
234
- unclesHash_gt?: InputMaybe<Scalars['Bytes']['input']>;
235
- unclesHash_gte?: InputMaybe<Scalars['Bytes']['input']>;
236
- unclesHash_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
237
- unclesHash_lt?: InputMaybe<Scalars['Bytes']['input']>;
238
- unclesHash_lte?: InputMaybe<Scalars['Bytes']['input']>;
239
- unclesHash_not?: InputMaybe<Scalars['Bytes']['input']>;
240
- unclesHash_not_contains?: InputMaybe<Scalars['Bytes']['input']>;
241
- unclesHash_not_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
242
- };
243
- type Block_Height = {
244
- hash?: InputMaybe<Scalars['Bytes']['input']>;
245
- number?: InputMaybe<Scalars['Int']['input']>;
246
- number_gte?: InputMaybe<Scalars['Int']['input']>;
247
- };
248
- declare enum Block_OrderBy {
249
- Author = "author",
250
- BaseFeePerGas = "baseFeePerGas",
251
- Difficulty = "difficulty",
252
- GasLimit = "gasLimit",
253
- GasUsed = "gasUsed",
254
- Hash = "hash",
255
- Id = "id",
256
- Number = "number",
257
- ParentHash = "parentHash",
258
- ReceiptsRoot = "receiptsRoot",
259
- Size = "size",
260
- StateRoot = "stateRoot",
261
- Timestamp = "timestamp",
262
- TotalDifficulty = "totalDifficulty",
263
- TransactionsRoot = "transactionsRoot",
264
- UnclesHash = "unclesHash"
265
- }
266
- /** Defines the order direction, either ascending or descending */
267
- declare enum OrderDirection {
268
- Asc = "asc",
269
- Desc = "desc"
270
- }
271
- type Query = {
272
- __typename?: 'Query';
273
- /** Access to subgraph metadata */
274
- _meta?: Maybe<_Meta_>;
275
- block?: Maybe<Block>;
276
- blocks: Array<Block>;
277
- };
278
- type Query_MetaArgs = {
279
- block?: InputMaybe<Block_Height>;
280
- };
281
- type QueryBlockArgs = {
282
- block?: InputMaybe<Block_Height>;
283
- id: Scalars['ID']['input'];
284
- subgraphError?: _SubgraphErrorPolicy_;
285
- };
286
- type QueryBlocksArgs = {
287
- block?: InputMaybe<Block_Height>;
288
- first?: InputMaybe<Scalars['Int']['input']>;
289
- orderBy?: InputMaybe<Block_OrderBy>;
290
- orderDirection?: InputMaybe<OrderDirection>;
291
- skip?: InputMaybe<Scalars['Int']['input']>;
292
- subgraphError?: _SubgraphErrorPolicy_;
293
- where?: InputMaybe<Block_Filter>;
294
- };
295
- type Subscription = {
296
- __typename?: 'Subscription';
297
- /** Access to subgraph metadata */
298
- _meta?: Maybe<_Meta_>;
299
- block?: Maybe<Block>;
300
- blocks: Array<Block>;
301
- };
302
- type Subscription_MetaArgs = {
303
- block?: InputMaybe<Block_Height>;
304
- };
305
- type SubscriptionBlockArgs = {
306
- block?: InputMaybe<Block_Height>;
307
- id: Scalars['ID']['input'];
308
- subgraphError?: _SubgraphErrorPolicy_;
309
- };
310
- type SubscriptionBlocksArgs = {
311
- block?: InputMaybe<Block_Height>;
312
- first?: InputMaybe<Scalars['Int']['input']>;
313
- orderBy?: InputMaybe<Block_OrderBy>;
314
- orderDirection?: InputMaybe<OrderDirection>;
315
- skip?: InputMaybe<Scalars['Int']['input']>;
316
- subgraphError?: _SubgraphErrorPolicy_;
317
- where?: InputMaybe<Block_Filter>;
318
- };
319
- type _Block_ = {
320
- __typename?: '_Block_';
321
- /** The hash of the block */
322
- hash?: Maybe<Scalars['Bytes']['output']>;
323
- /** The block number */
324
- number: Scalars['Int']['output'];
325
- /** The hash of the parent block */
326
- parentHash?: Maybe<Scalars['Bytes']['output']>;
327
- /** Integer representation of the timestamp stored in blocks for the chain */
328
- timestamp?: Maybe<Scalars['Int']['output']>;
329
- };
330
- /** The type for the top-level _meta field */
331
- type _Meta_ = {
332
- __typename?: '_Meta_';
333
- /**
334
- * Information about a specific subgraph block. The hash of the block
335
- * will be null if the _meta field has a block constraint that asks for
336
- * a block number. It will be filled if the _meta field has no block constraint
337
- * and therefore asks for the latest block
338
- *
339
- */
340
- block: _Block_;
341
- /** The deployment ID */
342
- deployment: Scalars['String']['output'];
343
- /** If `true`, the subgraph encountered indexing errors at some past block */
344
- hasIndexingErrors: Scalars['Boolean']['output'];
345
- };
346
- declare enum _SubgraphErrorPolicy_ {
347
- /** Data will be returned even if the subgraph has indexing errors */
348
- Allow = "allow",
349
- /** If the subgraph has indexing errors, data will be omitted. The default. */
350
- Deny = "deny"
351
- }
352
- type GetBlocksTimeStampQueryVariables = Exact<{
353
- skip: Scalars['Int']['input'];
354
- }>;
355
- type GetBlocksTimeStampQuery = {
356
- __typename?: 'Query';
357
- newest: Array<{
358
- __typename?: 'Block';
359
- timestamp: any;
360
- number: any;
361
- }>;
362
- oldest: Array<{
363
- __typename?: 'Block';
364
- timestamp: any;
365
- number: any;
366
- }>;
367
- };
368
- declare const GetBlocksTimeStamp: _apollo_client.DocumentNode;
369
- interface PossibleTypesResultData {
370
- possibleTypes: {
371
- [key: string]: string[];
372
- };
373
- }
374
- declare const result: PossibleTypesResultData;
375
-
376
- export { Aggregation_Interval, type Block, type BlockChangedFilter, type Block_Filter, type Block_Height, Block_OrderBy, type Exact, GetBlocksTimeStamp, type GetBlocksTimeStampQuery, type GetBlocksTimeStampQueryVariables, type Incremental, type InputMaybe, type MakeEmpty, type MakeMaybe, type MakeOptional, type Maybe, OrderDirection, type PossibleTypesResultData, type Query, type QueryBlockArgs, type QueryBlocksArgs, type Query_MetaArgs, type Scalars, type Subscription, type SubscriptionBlockArgs, type SubscriptionBlocksArgs, type Subscription_MetaArgs, type _Block_, type _Meta_, _SubgraphErrorPolicy_, result as default };
@@ -1,199 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _client = require('@apollo/client');var m=(a=>(a.Bartio="BARTIO",a.Berachain="BERACHAIN",a.Cartio="CARTIO",a))(m||{}),d= exports.GqlContentNewsItemSource =(a=>(a.Discord="discord",a.Medium="medium",a.Twitter="twitter",a))(d||{}),g= exports.GqlPoolAprItemType =(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= exports.GqlPoolEventType =(a=>(a.Add="ADD",a.Remove="REMOVE",a.Swap="SWAP",a))(G||{}),P= exports.GqlPoolEventsDataRange =(a=>(a.NinetyDays="NINETY_DAYS",a.SevenDays="SEVEN_DAYS",a.ThirtyDays="THIRTY_DAYS",a))(P||{}),q= exports.GqlPoolFilterCategory =(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= exports.GqlPoolJoinExitType =(t=>(t.Exit="Exit",t.Join="Join",t))(b||{}),A= exports.GqlPoolNestingType =(a=>(a.HasOnlyPhantomBpt="HAS_ONLY_PHANTOM_BPT",a.HasSomePhantomBpt="HAS_SOME_PHANTOM_BPT",a.NoNesting="NO_NESTING",a))(A||{}),I= 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))(I||{}),h= exports.GqlPoolOrderDirection =(t=>(t.Asc="asc",t.Desc="desc",t))(h||{}),_= exports.GqlPoolSnapshotDataRange =(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= 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||{}),T= exports.GqlRewardVaultIncentiveOrderBy =(a=>(a.AmountRemaining="amountRemaining",a.AmountRemainingUsd="amountRemainingUsd",a.IncentiveRate="incentiveRate",a))(T||{}),k= exports.GqlRewardVaultIncentiveOrderDirection =(t=>(t.Asc="asc",t.Desc="desc",t))(k||{}),M= exports.GqlRewardVaultOrderBy =(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= exports.GqlRewardVaultOrderDirection =(t=>(t.Asc="asc",t.Desc="desc",t))(v||{}),B= exports.GqlRewardVaultSnapshotDataRange =(n=>(n.NinetyDays="NINETY_DAYS",n.SevenDays="SEVEN_DAYS",n.SixtyDays="SIXTY_DAYS",n.ThirtyDays="THIRTY_DAYS",n))(B||{}),w= exports.GqlRewardVaultSnapshotResolution =(t=>(t.Day="DAY",t.Hour="HOUR",t))(w||{}),x= exports.GqlSWberaVaultMetadataResolution =(t=>(t.OneDay="ONE_DAY",t.SevenDays="SEVEN_DAYS",t))(x||{}),V= exports.GqlSorSwapType =(t=>(t.ExactIn="EXACT_IN",t.ExactOut="EXACT_OUT",t))(V||{}),C= exports.GqlStakeBeraVaultEventType =(t=>(t.Deposit="DEPOSIT",t.WithdrawalCompleted="WITHDRAWAL_COMPLETED",t))(C||{}),R= exports.GqlTokenChartDataRange =(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= exports.GqlTokenType =(a=>(a.Bpt="BPT",a.PhantomBpt="PHANTOM_BPT",a.WhiteListed="WHITE_LISTED",a))(E||{}),f= exports.GqlUserVaultDepositOrderBy =(S=>(S.Amount="amount",S))(f||{}),F= exports.GqlUserVaultDepositOrderDirection =(t=>(t.Asc="asc",t.Desc="desc",t))(F||{}),U= exports.GqlValidatorBlockUptimeStatus =(n=>(n.Inactive="INACTIVE",n.Offline="OFFLINE",n.Proposed="PROPOSED",n.Signed="SIGNED",n))(U||{}),N= exports.GqlValidatorBoostOrderBy =(e=>(e.ActiveBoostAmount="activeBoostAmount",e.LatestBlock="latestBlock",e.LatestBlockTime="latestBlockTime",e.QueuedBoostAmount="queuedBoostAmount",e.QueuedDropBoostAmount="queuedDropBoostAmount",e))(N||{}),L= exports.GqlValidatorBoostOrderDirection =(t=>(t.Asc="asc",t.Desc="desc",t))(L||{}),H= exports.GqlValidatorOrderBy =(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= exports.GqlValidatorOrderDirection =(t=>(t.Asc="asc",t.Desc="desc",t))(W||{}),O= exports.GqlVaultSnapshotDataRange =(n=>(n.NinetyDays="NINETY_DAYS",n.SevenDays="SEVEN_DAYS",n.SixtyDays="SIXTY_DAYS",n.ThirtyDays="THIRTY_DAYS",n))(O||{}),c= exports.DynamicData =_client.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
- `,Q= exports.UserBalance =_client.gql`
17
- fragment UserBalance on GqlPoolUserBalance {
18
- totalBalanceUsd
19
- walletBalance
20
- walletBalanceUsd
21
- }
22
- `,y= exports.RewardVault =_client.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
- `,Y= exports.MinimalPoolInList =_client.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
- ${c}
60
- ${Q}
61
- ${y}`,$= exports.MinimalPool =_client.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
- ${c}
89
- ${y}`,K= exports.PoolHistoricalData =_client.gql`
90
- fragment PoolHistoricalData on GqlPoolSnapshot {
91
- id
92
- volume24h
93
- totalSwapVolume
94
- timestamp
95
- totalLiquidity
96
- fees24h
97
- totalSwapFee
98
- }
99
- `,J= exports.GqlPoolSwapEventCowAmm =_client.gql`
100
- fragment GqlPoolSwapEventCowAmm on GqlPoolSwapEventCowAmm {
101
- tokenIn {
102
- address
103
- amount
104
- }
105
- tokenOut {
106
- address
107
- amount
108
- }
109
- }
110
- `,z= exports.GqlPoolSwapEventV3 =_client.gql`
111
- fragment GqlPoolSwapEventV3 on GqlPoolSwapEventV3 {
112
- tokenIn {
113
- address
114
- amount
115
- }
116
- tokenOut {
117
- address
118
- amount
119
- }
120
- }
121
- `,X= exports.GqlPoolAddRemoveEventV3 =_client.gql`
122
- fragment GqlPoolAddRemoveEventV3 on GqlPoolAddRemoveEventV3 {
123
- tokens {
124
- address
125
- amount
126
- }
127
- }
128
- `,j= exports.PoolEvent =_client.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
- ${J}
141
- ${z}
142
- ${X}`,at= exports.GetPools =_client.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
- ${Y}`,et= exports.GetPool =_client.gql`
160
- query GetPool($id: String!, $userAddress: String, $chain: GqlChain!) {
161
- poolGetPool(id: $id, userAddress: $userAddress, chain: $chain) {
162
- ...MinimalPool
163
- }
164
- }
165
- ${$}`,ot= exports.GetPoolHistoricalData =_client.gql`
166
- query GetPoolHistoricalData($poolId: String!, $chain: GqlChain!) {
167
- poolGetSnapshots(id: $poolId, range: NINETY_DAYS, chain: $chain) {
168
- ...PoolHistoricalData
169
- }
170
- }
171
- ${K}`,rt= exports.GetPoolEvents =_client.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
- ${j}`,nt= exports.GetTokenCurrentPrices =_client.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
- `,lt= exports.GetGlobalLiquidityAndSwapVolume =_client.gql`
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= exports.default =Z;exports.DynamicData = c; exports.GetGlobalLiquidityAndSwapVolume = lt; exports.GetPool = et; exports.GetPoolEvents = rt; exports.GetPoolHistoricalData = ot; exports.GetPools = at; exports.GetTokenCurrentPrices = nt; exports.GqlChain = m; exports.GqlContentNewsItemSource = d; exports.GqlPoolAddRemoveEventV3 = X; exports.GqlPoolAprItemType = g; exports.GqlPoolEventType = G; exports.GqlPoolEventsDataRange = P; exports.GqlPoolFilterCategory = q; exports.GqlPoolJoinExitType = b; exports.GqlPoolNestingType = A; exports.GqlPoolOrderBy = I; exports.GqlPoolOrderDirection = h; exports.GqlPoolSnapshotDataRange = _; exports.GqlPoolSwapEventCowAmm = J; exports.GqlPoolSwapEventV3 = z; exports.GqlPoolType = D; exports.GqlRewardVaultIncentiveOrderBy = T; exports.GqlRewardVaultIncentiveOrderDirection = k; exports.GqlRewardVaultOrderBy = M; exports.GqlRewardVaultOrderDirection = v; exports.GqlRewardVaultSnapshotDataRange = B; exports.GqlRewardVaultSnapshotResolution = w; exports.GqlSWberaVaultMetadataResolution = x; exports.GqlSorSwapType = V; exports.GqlStakeBeraVaultEventType = C; exports.GqlTokenChartDataRange = R; exports.GqlTokenType = E; exports.GqlUserVaultDepositOrderBy = f; exports.GqlUserVaultDepositOrderDirection = F; exports.GqlValidatorBlockUptimeStatus = U; exports.GqlValidatorBoostOrderBy = N; exports.GqlValidatorBoostOrderDirection = L; exports.GqlValidatorOrderBy = H; exports.GqlValidatorOrderDirection = W; exports.GqlVaultSnapshotDataRange = O; exports.MinimalPool = $; exports.MinimalPoolInList = Y; exports.PoolEvent = j; exports.PoolHistoricalData = K; exports.RewardVault = y; exports.UserBalance = Q; exports.default = st;