-
Notifications
You must be signed in to change notification settings - Fork 10
/
graphql_schema_generated.ts
3930 lines (3316 loc) · 98.2 KB
/
graphql_schema_generated.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
import { gql } from 'apollo-server-express';
export const schema = gql`
#
# THIS FILE IS AUTOGENERATED — DO NOT EDIT IT
#
scalar AmountHumanReadable
scalar BigDecimal
scalar BigInt
scalar Bytes
scalar Date
"""
The review data for the ERC4626 token
"""
type Erc4626ReviewData {
"""
The filename of the review of the ERC4626
"""
reviewFile: String!
"""
A summary of the ERC4626 review, usually just says safe or unsafe
"""
summary: String!
"""
Warnings associated with the ERC4626
"""
warnings: [String!]!
}
type GqlBalancePoolAprItem {
apr: GqlPoolAprValue!
id: ID!
subItems: [GqlBalancePoolAprSubItem!]
title: String!
}
type GqlBalancePoolAprSubItem {
apr: GqlPoolAprValue!
id: ID!
title: String!
}
scalar GqlBigNumber
enum GqlChain {
ARBITRUM
AVALANCHE
BASE
FANTOM
FRAXTAL
GNOSIS
MAINNET
MODE
OPTIMISM
POLYGON
SEPOLIA
ZKEVM
}
type GqlContentNewsItem {
discussionUrl: String
id: ID!
image: String
source: GqlContentNewsItemSource!
text: String!
timestamp: String!
url: String!
}
enum GqlContentNewsItemSource {
discord
medium
twitter
}
type GqlFeaturePoolGroupItemExternalLink {
buttonText: String!
buttonUrl: String!
id: ID!
image: String!
}
"""
Configuration options for SOR V2
"""
input GqlGraphTraversalConfigInput {
"""
Max number of paths to return (can be less)
Default: 5
"""
approxPathsToReturn: Int
"""
The max hops in a path.
Default: 6
"""
maxDepth: Int
"""
Limit non boosted hop tokens in a boosted path.
Default: 2
"""
maxNonBoostedHopTokensInBoostedPath: Int
"""
Limit of "non-boosted" pools for efficiency.
Default: 6
"""
maxNonBoostedPathDepth: Int
poolIdsToInclude: [String]
}
type GqlHistoricalTokenPrice {
address: String!
chain: GqlChain!
prices: [GqlHistoricalTokenPriceEntry!]!
}
type GqlHistoricalTokenPriceEntry {
price: Float!
timestamp: String!
updatedAt: Int!
updatedBy: String
}
"""
Hook data
"""
type GqlHook {
address: String!
"""
Data points changing over time
"""
dynamicData: GqlHookData
"""
True when hook can change the amounts send to the vault. Necessary to deduct the fees.
"""
enableHookAdjustedAmounts: Boolean!
"""
The review for this hook if applicable.
"""
reviewData: GqlHookReviewData
shouldCallAfterAddLiquidity: Boolean!
shouldCallAfterInitialize: Boolean!
shouldCallAfterRemoveLiquidity: Boolean!
shouldCallAfterSwap: Boolean!
shouldCallBeforeAddLiquidity: Boolean!
shouldCallBeforeInitialize: Boolean!
shouldCallBeforeRemoveLiquidity: Boolean!
shouldCallBeforeSwap: Boolean!
shouldCallComputeDynamicSwapFee: Boolean!
}
"""
Collection of hook specific data. Percentage format is 0.01 -> 0.01%.
"""
type GqlHookData {
addLiquidityFeePercentage: String
maxSurgeFeePercentage: String
removeLiquidityFeePercentage: String
surgeThresholdPercentage: String
swapFeePercentage: String
}
"""
Represents the review data for the hook
"""
type GqlHookReviewData {
"""
The filename of the review of the hook
"""
reviewFile: String!
"""
A summary of the hook review, usually just says safe or unsafe
"""
summary: String!
"""
Warnings associated with the hook
"""
warnings: [String!]!
}
type GqlLatestSyncedBlocks {
poolSyncBlock: BigInt!
userStakeSyncBlock: BigInt!
userWalletSyncBlock: BigInt!
}
"""
All info on the nested pool if the token is a BPT. It will only support 1 level of nesting.
"""
type GqlNestedPool {
"""
Address of the pool.
"""
address: Bytes!
"""
Price rate of this pool or the Balancer Pool Token (BPT).
"""
bptPriceRate: BigDecimal!
"""
Timestamp of when the pool was created.
"""
createTime: Int!
"""
Address of the factory contract that created the pool, if applicable.
"""
factory: Bytes
"""
Hook assigned to a pool
"""
hook: GqlHook
"""
Unique identifier of the pool.
"""
id: ID!
"""
Liquidity management settings for v3 pools.
"""
liquidityManagement: LiquidityManagement
"""
Name of the pool.
"""
name: String!
"""
Total liquidity of the parent pool in the nested pool in USD.
"""
nestedLiquidity: BigDecimal!
"""
Percentage of the parents pool shares inside the nested pool.
"""
nestedPercentage: BigDecimal!
"""
Number of shares of the parent pool in the nested pool.
"""
nestedShares: BigDecimal!
"""
The wallet address of the owner of the pool. Pool owners can set certain properties like swapFees or AMP.
"""
owner: Bytes @deprecated(reason: "Use swapFeeManager instead")
"""
Account empowered to pause/unpause the pool (or 0 to delegate to governance)
"""
pauseManager: Bytes
"""
Account empowered to set the pool creator fee percentage
"""
poolCreator: Bytes
"""
Fee charged for swapping tokens in the pool as %. 0.01 -> 0.01%
"""
swapFee: BigDecimal!
"""
Account empowered to set static swap fees for a pool (when 0 on V2 swap fees are immutable, on V3 delegate to governance)
"""
swapFeeManager: Bytes
"""
Symbol of the pool.
"""
symbol: String!
"""
List of all tokens in the pool.
"""
tokens: [GqlPoolTokenDetail!]!
"""
Total liquidity in the pool in USD.
"""
totalLiquidity: BigDecimal!
"""
Total number of shares in the pool.
"""
totalShares: BigDecimal!
"""
Type of the pool.
"""
type: GqlPoolType!
"""
Version of the pool.
"""
version: Int!
}
"""
Represents an event that occurs when liquidity is added or removed from a pool.
"""
type GqlPoolAddRemoveEventV3 implements GqlPoolEvent {
"""
The block number of the event.
"""
blockNumber: Int!
"""
The block timestamp of the event.
"""
blockTimestamp: Int!
"""
The chain on which the event occurred.
"""
chain: GqlChain!
"""
The unique identifier of the event.
"""
id: ID!
"""
The log index of the event.
"""
logIndex: Int!
"""
The pool ID associated with the event.
"""
poolId: String!
"""
The sender of the event.
"""
sender: String!
"""
The timestamp of the event.
"""
timestamp: Int!
"""
The tokens involved in the event. Ordered by poolToken index.
"""
tokens: [GqlPoolEventAmount!]!
"""
The transaction hash of the event.
"""
tx: String!
"""
The type of the event.
"""
type: GqlPoolEventType!
"""
The user address associated with the event.
"""
userAddress: String!
"""
The value of the event in USD.
"""
valueUSD: Float!
}
type GqlPoolAggregator {
"""
The contract address of the pool.
"""
address: Bytes!
"""
Data specific to gyro/fx pools
"""
alpha: String
"""
Data specific to stable pools
"""
amp: BigInt
"""
Data specific to gyro/fx pools
"""
beta: String
"""
Data specific to gyro pools
"""
c: String
"""
The chain on which the pool is deployed
"""
chain: GqlChain!
"""
The timestamp the pool was created.
"""
createTime: Int!
"""
Data specific to gyro pools
"""
dSq: String
"""
The decimals of the BPT, usually 18
"""
decimals: Int!
"""
Data specific to fx pools
"""
delta: String
"""
Dynamic data such as token balances, swap fees or volume
"""
dynamicData: GqlPoolDynamicData!
"""
Data specific to fx pools
"""
epsilon: String
"""
The factory contract address from which the pool was created.
"""
factory: Bytes
"""
Hook assigned to a pool
"""
hook: GqlHook
"""
The pool id. This is equal to the address for protocolVersion 3 pools
"""
id: ID!
"""
Data specific to gyro/fx pools
"""
lambda: String
"""
Liquidity management settings for v3 pools.
"""
liquidityManagement: LiquidityManagement
"""
The name of the pool as per contract
"""
name: String!
"""
The wallet address of the owner of the pool. Pool owners can set certain properties like swapFees or AMP.
"""
owner: Bytes @deprecated(reason: "Use swapFeeManager instead")
"""
Account empowered to pause/unpause the pool (or 0 to delegate to governance)
"""
pauseManager: Bytes
"""
Account empowered to set the pool creator fee percentage
"""
poolCreator: Bytes
"""
Returns all pool tokens, including BPTs and nested pools if there are any. Only one nested level deep.
"""
poolTokens: [GqlPoolTokenDetail!]!
"""
The protocol version on which the pool is deployed, 1, 2 or 3
"""
protocolVersion: Int!
"""
Data specific to gyro pools
"""
root3Alpha: String
"""
Data specific to gyro pools
"""
s: String
"""
Data specific to gyro pools
"""
sqrtAlpha: String
"""
Data specific to gyro pools
"""
sqrtBeta: String
"""
Account empowered to set static swap fees for a pool (when 0 on V2 swap fees are immutable, on V3 delegate to governance)
"""
swapFeeManager: Bytes
"""
The token symbol of the pool as per contract
"""
symbol: String!
"""
Data specific to gyro pools
"""
tauAlphaX: String
"""
Data specific to gyro pools
"""
tauAlphaY: String
"""
Data specific to gyro pools
"""
tauBetaX: String
"""
Data specific to gyro pools
"""
tauBetaY: String
"""
The pool type, such as weighted, stable, etc.
"""
type: GqlPoolType!
"""
Data specific to gyro pools
"""
u: String
"""
Data specific to gyro pools
"""
v: String
"""
The version of the pool type.
"""
version: Int!
"""
Data specific to gyro pools
"""
w: String
"""
Data specific to gyro pools
"""
z: String
}
type GqlPoolApr {
apr: GqlPoolAprValue!
hasRewardApr: Boolean!
items: [GqlBalancePoolAprItem!]!
nativeRewardApr: GqlPoolAprValue!
swapApr: BigDecimal!
thirdPartyApr: GqlPoolAprValue!
}
"""
All APRs for a pool
"""
type GqlPoolAprItem {
"""
The APR value in % -> 0.2 = 0.2%
"""
apr: Float!
"""
The id of the APR item
"""
id: ID!
"""
The reward token address, if the APR originates from token emissions
"""
rewardTokenAddress: String
"""
The reward token symbol, if the APR originates from token emissions
"""
rewardTokenSymbol: String
"""
The title of the APR item, a human readable form
"""
title: String! @deprecated(reason: "No replacement, should be built client side")
"""
Specific type of this APR
"""
type: GqlPoolAprItemType!
}
"""
Enum representing the different types of the APR in a pool.
"""
enum GqlPoolAprItemType {
"""
APR that pools earns when BPT is staked on AURA.
"""
AURA
"""
Represents the yield from an IB (Interest-Bearing) asset APR in a pool.
"""
IB_YIELD
"""
APR in a pool that can be earned through locking, i.e. veBAL
"""
LOCKING
"""
Reward APR in a pool from maBEETS emissions allocated by gauge votes. Emitted in BEETS.
"""
MABEETS_EMISSIONS
"""
Rewards distributed by merkl.xyz
"""
MERKL
"""
Represents if the APR items comes from a nested pool.
"""
NESTED
"""
Staking reward APR in a pool from a reward token.
"""
STAKING
"""
APR boost that can be earned, i.e. via veBAL or maBEETS.
"""
STAKING_BOOST
"""
Cow AMM specific APR
"""
SURPLUS @deprecated(reason: "Use SURPLUS_24H instead")
"""
Surplus APR based on data from the last 7d
"""
SURPLUS_7D
"""
Surplus APR based on data from the last 24h
"""
SURPLUS_24H
"""
Surplus APR based on data from the last 30d
"""
SURPLUS_30D
"""
Represents the swap fee APR in a pool.
"""
SWAP_FEE @deprecated(reason: "Use SWAP_FEE_24H instead")
"""
Swap fee APR based on data from the last 7d
"""
SWAP_FEE_7D
"""
Swap fee APR based on data from the last 24h
"""
SWAP_FEE_24H
"""
Swap fee APR based on data from the last 30d
"""
SWAP_FEE_30D
"""
Reward APR in a pool from veBAL emissions allocated by gauge votes. Emitted in BAL.
"""
VEBAL_EMISSIONS
"""
APR that can be earned thourgh voting, i.e. gauge votes
"""
VOTING
}
type GqlPoolAprRange {
max: BigDecimal!
min: BigDecimal!
}
type GqlPoolAprTotal {
total: BigDecimal!
}
union GqlPoolAprValue = GqlPoolAprRange | GqlPoolAprTotal
"""
The base type as returned by poolGetPool (specific pool query)
"""
interface GqlPoolBase {
"""
The contract address of the pool.
"""
address: Bytes!
"""
Returns all pool tokens, including any nested tokens and phantom BPTs as a flattened array.
"""
allTokens: [GqlPoolTokenExpanded!]! @deprecated(reason: "Use poolTokens instead")
"""
List of categories assigned by the team based on external factors
"""
categories: [GqlPoolFilterCategory]
"""
The chain on which the pool is deployed
"""
chain: GqlChain!
"""
The timestamp the pool was created.
"""
createTime: Int!
"""
The decimals of the BPT, usually 18
"""
decimals: Int!
"""
Only returns main tokens, also known as leave tokens. Wont return any nested BPTs. Used for displaying the tokens that the pool consists of.
"""
displayTokens: [GqlPoolTokenDisplay!]! @deprecated(reason: "Use poolTokens instead")
"""
Dynamic data such as token balances, swap fees or volume
"""
dynamicData: GqlPoolDynamicData!
"""
The factory contract address from which the pool was created.
"""
factory: Bytes
"""
Whether at least one token in this pool is considered an ERC4626 token.
"""
hasErc4626: Boolean!
"""
Whether at least one token in a nested pool is considered an ERC4626 token.
"""
hasNestedErc4626: Boolean!
"""
Hook assigned to a pool
"""
hook: GqlHook
"""
The pool id. This is equal to the address for protocolVersion 3 pools
"""
id: ID!
"""
Deprecated
"""
investConfig: GqlPoolInvestConfig! @deprecated(reason: "Removed without replacement")
"""
Liquidity management settings for v3 pools.
"""
liquidityManagement: LiquidityManagement
"""
The name of the pool as per contract
"""
name: String!
"""
The wallet address of the owner of the pool. Pool owners can set certain properties like swapFees or AMP.
"""
owner: Bytes @deprecated(reason: "Use swapFeeManager instead")
"""
Account empowered to pause/unpause the pool (or 0 to delegate to governance)
"""
pauseManager: Bytes
"""
Account empowered to set the pool creator fee percentage
"""
poolCreator: Bytes
"""
Returns pool tokens, including BPTs and nested pools and their pool tokens if there are any. Only one nested level deep.
"""
poolTokens: [GqlPoolTokenDetail!]!
"""
The protocol version on which the pool is deployed, 1, 2 or 3
"""
protocolVersion: Int!
"""
Staking options of this pool which emit additional rewards
"""
staking: GqlPoolStaking
"""
Account empowered to set static swap fees for a pool (when 0 on V2 swap fees are immutable, on V3 delegate to governance)
"""
swapFeeManager: Bytes
"""
The token symbol of the pool as per contract
"""
symbol: String!
"""
List of tags assigned by the team based on external factors
"""
tags: [String]
"""
The pool type, such as weighted, stable, etc.
"""
type: GqlPoolType!
"""
If a user address was provided in the query, the user balance is populated here
"""
userBalance: GqlPoolUserBalance
"""
The vault version on which the pool is deployed, 2 or 3
"""
vaultVersion: Int! @deprecated(reason: "use protocolVersion instead")
"""
The version of the pool type.
"""
version: Int!
"""
Deprecated
"""
withdrawConfig: GqlPoolWithdrawConfig! @deprecated(reason: "Removed without replacement")
}
type GqlPoolBatchSwap {
chain: GqlChain!
id: ID!
swaps: [GqlPoolBatchSwapSwap!]!
timestamp: Int!
tokenAmountIn: String!
tokenAmountOut: String!
tokenIn: String!
tokenInPrice: Float!
tokenOut: String!
tokenOutPrice: Float!
tx: String!
userAddress: String!
valueUSD: Float!
}
type GqlPoolBatchSwapPool {
id: ID!
tokens: [String!]!
}
type GqlPoolBatchSwapSwap {
id: ID!
pool: PoolForBatchSwap!
timestamp: Int!
tokenAmountIn: String!
tokenAmountOut: String!
tokenIn: String!
tokenOut: String!
tx: String!
userAddress: String!
valueUSD: Float!
}
type GqlPoolComposableStable implements GqlPoolBase {
address: Bytes!
allTokens: [GqlPoolTokenExpanded!]! @deprecated(reason: "Use poolTokens instead")
amp: BigInt!
bptPriceRate: BigDecimal!
categories: [GqlPoolFilterCategory]
chain: GqlChain!
createTime: Int!
decimals: Int!
displayTokens: [GqlPoolTokenDisplay!]! @deprecated(reason: "Use poolTokens instead")
dynamicData: GqlPoolDynamicData!
factory: Bytes
hasErc4626: Boolean!
hasNestedErc4626: Boolean!
hook: GqlHook
id: ID!
investConfig: GqlPoolInvestConfig! @deprecated(reason: "Removed without replacement")
liquidityManagement: LiquidityManagement
name: String!
nestingType: GqlPoolNestingType! @deprecated(reason: "Removed without replacement")
"""
The wallet address of the owner of the pool. Pool owners can set certain properties like swapFees or AMP.
"""
owner: Bytes @deprecated(reason: "Use swapFeeManager instead")
"""
Account empowered to pause/unpause the pool (or 0 to delegate to governance)
"""
pauseManager: Bytes
"""
Account empowered to set the pool creator fee percentage
"""
poolCreator: Bytes
poolTokens: [GqlPoolTokenDetail!]!
protocolVersion: Int!
staking: GqlPoolStaking
"""
Account empowered to set static swap fees for a pool (when 0 on V2 swap fees are immutable, on V3 delegate to governance)
"""
swapFeeManager: Bytes
symbol: String!
tags: [String]
"""
All tokens of the pool. If it is a nested pool, the nested pool is expanded with its own tokens again.
"""
tokens: [GqlPoolTokenUnion!]! @deprecated(reason: "Use poolTokens instead")
type: GqlPoolType!
userBalance: GqlPoolUserBalance
vaultVersion: Int! @deprecated(reason: "use protocolVersion instead")
version: Int!
withdrawConfig: GqlPoolWithdrawConfig! @deprecated(reason: "Removed without replacement")
}
type GqlPoolComposableStableNested {
address: Bytes!
amp: BigInt!
bptPriceRate: BigDecimal!
categories: [GqlPoolFilterCategory]
createTime: Int!
factory: Bytes
id: ID!
name: String!
nestingType: GqlPoolNestingType! @deprecated(reason: "Removed without replacement")
"""
The wallet address of the owner of the pool. Pool owners can set certain properties like swapFees or AMP.
"""
owner: Bytes @deprecated(reason: "Use swapFeeManager instead")
"""
Account empowered to pause/unpause the pool (or 0 to delegate to governance)