@berachain/graphql 0.1.0-alpha.1 → 0.1.0-alpha.11
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/README.md +17 -5
- package/dist/bend/whisk.codegen.d.mts +1798 -0
- package/dist/bend/whisk.codegen.d.ts +93 -1
- package/dist/bend/whisk.codegen.js +17 -17
- package/dist/bend/whisk.codegen.mjs +424 -0
- package/dist/chain/chain.codegen.d.mts +376 -0
- package/dist/chain/chain.codegen.js +2 -2
- package/dist/chain/chain.codegen.mjs +12 -0
- package/dist/dex/api.codegen.d.mts +3836 -0
- package/dist/dex/api.codegen.d.ts +25 -25
- package/dist/dex/api.codegen.js +17 -17
- package/dist/dex/api.codegen.mjs +199 -0
- package/dist/dex/subgraph.codegen.d.mts +5887 -0
- package/dist/dex/subgraph.codegen.js +9 -9
- package/dist/dex/subgraph.codegen.mjs +88 -0
- package/dist/governance/governance.codegen.d.mts +1622 -0
- package/dist/governance/governance.codegen.js +9 -9
- package/dist/governance/governance.codegen.mjs +116 -0
- package/dist/honey/honey.codegen.d.mts +936 -0
- package/dist/honey/honey.codegen.js +10 -10
- package/dist/honey/honey.codegen.mjs +104 -0
- package/dist/pol/api.codegen.d.mts +3622 -0
- package/dist/pol/api.codegen.d.ts +30 -30
- package/dist/pol/api.codegen.js +21 -21
- package/dist/pol/api.codegen.mjs +301 -0
- package/dist/pol/subgraph.codegen.d.mts +4671 -0
- package/dist/pol/subgraph.codegen.js +20 -20
- package/dist/pol/subgraph.codegen.mjs +197 -0
- package/package.json +30 -18
|
@@ -1373,17 +1373,17 @@ type GqlRewardVaultDynamicData = {
|
|
|
1373
1373
|
activeIncentivesRateUsd: Scalars['String']['output'];
|
|
1374
1374
|
activeIncentivesValueUsd: Scalars['String']['output'];
|
|
1375
1375
|
allTimeReceivedBGTAmount: Scalars['String']['output'];
|
|
1376
|
-
apr?: Maybe<Scalars['
|
|
1376
|
+
apr?: Maybe<Scalars['Float']['output']>;
|
|
1377
1377
|
/** @deprecated Use apr instead */
|
|
1378
|
-
apy?: Maybe<Scalars['
|
|
1378
|
+
apy?: Maybe<Scalars['Float']['output']>;
|
|
1379
1379
|
bgtCapturePerBlock: Scalars['String']['output'];
|
|
1380
1380
|
bgtCapturePercentage: Scalars['String']['output'];
|
|
1381
1381
|
chain: GqlChain;
|
|
1382
1382
|
lastDayReceivedBGTAmount: Scalars['String']['output'];
|
|
1383
|
-
projectedApr?: Maybe<Scalars['
|
|
1383
|
+
projectedApr?: Maybe<Scalars['Float']['output']>;
|
|
1384
1384
|
/** @deprecated Use projectedApr instead */
|
|
1385
|
-
projectedApy?: Maybe<Scalars['
|
|
1386
|
-
tvl
|
|
1385
|
+
projectedApy?: Maybe<Scalars['Float']['output']>;
|
|
1386
|
+
tvl?: Maybe<Scalars['Float']['output']>;
|
|
1387
1387
|
vaultAddress: Scalars['String']['output'];
|
|
1388
1388
|
};
|
|
1389
1389
|
type GqlRewardVaultFilter = {
|
|
@@ -1940,7 +1940,7 @@ type GqlValidatorDynamicData = {
|
|
|
1940
1940
|
apy: Scalars['String']['output'];
|
|
1941
1941
|
bgtCapturePerBlock: Scalars['String']['output'];
|
|
1942
1942
|
bgtCapturePercentage: Scalars['String']['output'];
|
|
1943
|
-
boostApr: Scalars['
|
|
1943
|
+
boostApr: Scalars['Float']['output'];
|
|
1944
1944
|
chain: GqlChain;
|
|
1945
1945
|
commissionOnIncentives: Scalars['Int']['output'];
|
|
1946
1946
|
commissionOnIncentivesHistory: Array<GqlValidatorCommissionHistory>;
|
|
@@ -2573,7 +2573,7 @@ type RewardVaultFragment = {
|
|
|
2573
2573
|
dynamicData?: {
|
|
2574
2574
|
__typename?: 'GqlRewardVaultDynamicData';
|
|
2575
2575
|
activeIncentivesValueUsd: string;
|
|
2576
|
-
apr?:
|
|
2576
|
+
apr?: number | null;
|
|
2577
2577
|
bgtCapturePercentage: string;
|
|
2578
2578
|
allTimeReceivedBGTAmount: string;
|
|
2579
2579
|
} | null;
|
|
@@ -2639,7 +2639,7 @@ type MinimalPoolInListFragment = {
|
|
|
2639
2639
|
dynamicData?: {
|
|
2640
2640
|
__typename?: 'GqlRewardVaultDynamicData';
|
|
2641
2641
|
activeIncentivesValueUsd: string;
|
|
2642
|
-
apr?:
|
|
2642
|
+
apr?: number | null;
|
|
2643
2643
|
bgtCapturePercentage: string;
|
|
2644
2644
|
allTimeReceivedBGTAmount: string;
|
|
2645
2645
|
} | null;
|
|
@@ -2689,7 +2689,7 @@ type MinimalPool_GqlPoolComposableStable_Fragment = {
|
|
|
2689
2689
|
dynamicData?: {
|
|
2690
2690
|
__typename?: 'GqlRewardVaultDynamicData';
|
|
2691
2691
|
activeIncentivesValueUsd: string;
|
|
2692
|
-
apr?:
|
|
2692
|
+
apr?: number | null;
|
|
2693
2693
|
bgtCapturePercentage: string;
|
|
2694
2694
|
allTimeReceivedBGTAmount: string;
|
|
2695
2695
|
} | null;
|
|
@@ -2739,7 +2739,7 @@ type MinimalPool_GqlPoolElement_Fragment = {
|
|
|
2739
2739
|
dynamicData?: {
|
|
2740
2740
|
__typename?: 'GqlRewardVaultDynamicData';
|
|
2741
2741
|
activeIncentivesValueUsd: string;
|
|
2742
|
-
apr?:
|
|
2742
|
+
apr?: number | null;
|
|
2743
2743
|
bgtCapturePercentage: string;
|
|
2744
2744
|
allTimeReceivedBGTAmount: string;
|
|
2745
2745
|
} | null;
|
|
@@ -2789,7 +2789,7 @@ type MinimalPool_GqlPoolFx_Fragment = {
|
|
|
2789
2789
|
dynamicData?: {
|
|
2790
2790
|
__typename?: 'GqlRewardVaultDynamicData';
|
|
2791
2791
|
activeIncentivesValueUsd: string;
|
|
2792
|
-
apr?:
|
|
2792
|
+
apr?: number | null;
|
|
2793
2793
|
bgtCapturePercentage: string;
|
|
2794
2794
|
allTimeReceivedBGTAmount: string;
|
|
2795
2795
|
} | null;
|
|
@@ -2839,7 +2839,7 @@ type MinimalPool_GqlPoolGyro_Fragment = {
|
|
|
2839
2839
|
dynamicData?: {
|
|
2840
2840
|
__typename?: 'GqlRewardVaultDynamicData';
|
|
2841
2841
|
activeIncentivesValueUsd: string;
|
|
2842
|
-
apr?:
|
|
2842
|
+
apr?: number | null;
|
|
2843
2843
|
bgtCapturePercentage: string;
|
|
2844
2844
|
allTimeReceivedBGTAmount: string;
|
|
2845
2845
|
} | null;
|
|
@@ -2889,7 +2889,7 @@ type MinimalPool_GqlPoolLiquidityBootstrapping_Fragment = {
|
|
|
2889
2889
|
dynamicData?: {
|
|
2890
2890
|
__typename?: 'GqlRewardVaultDynamicData';
|
|
2891
2891
|
activeIncentivesValueUsd: string;
|
|
2892
|
-
apr?:
|
|
2892
|
+
apr?: number | null;
|
|
2893
2893
|
bgtCapturePercentage: string;
|
|
2894
2894
|
allTimeReceivedBGTAmount: string;
|
|
2895
2895
|
} | null;
|
|
@@ -2939,7 +2939,7 @@ type MinimalPool_GqlPoolMetaStable_Fragment = {
|
|
|
2939
2939
|
dynamicData?: {
|
|
2940
2940
|
__typename?: 'GqlRewardVaultDynamicData';
|
|
2941
2941
|
activeIncentivesValueUsd: string;
|
|
2942
|
-
apr?:
|
|
2942
|
+
apr?: number | null;
|
|
2943
2943
|
bgtCapturePercentage: string;
|
|
2944
2944
|
allTimeReceivedBGTAmount: string;
|
|
2945
2945
|
} | null;
|
|
@@ -2989,7 +2989,7 @@ type MinimalPool_GqlPoolStable_Fragment = {
|
|
|
2989
2989
|
dynamicData?: {
|
|
2990
2990
|
__typename?: 'GqlRewardVaultDynamicData';
|
|
2991
2991
|
activeIncentivesValueUsd: string;
|
|
2992
|
-
apr?:
|
|
2992
|
+
apr?: number | null;
|
|
2993
2993
|
bgtCapturePercentage: string;
|
|
2994
2994
|
allTimeReceivedBGTAmount: string;
|
|
2995
2995
|
} | null;
|
|
@@ -3039,7 +3039,7 @@ type MinimalPool_GqlPoolWeighted_Fragment = {
|
|
|
3039
3039
|
dynamicData?: {
|
|
3040
3040
|
__typename?: 'GqlRewardVaultDynamicData';
|
|
3041
3041
|
activeIncentivesValueUsd: string;
|
|
3042
|
-
apr?:
|
|
3042
|
+
apr?: number | null;
|
|
3043
3043
|
bgtCapturePercentage: string;
|
|
3044
3044
|
allTimeReceivedBGTAmount: string;
|
|
3045
3045
|
} | null;
|
|
@@ -3104,7 +3104,7 @@ type GetPoolsQuery = {
|
|
|
3104
3104
|
dynamicData?: {
|
|
3105
3105
|
__typename?: 'GqlRewardVaultDynamicData';
|
|
3106
3106
|
activeIncentivesValueUsd: string;
|
|
3107
|
-
apr?:
|
|
3107
|
+
apr?: number | null;
|
|
3108
3108
|
bgtCapturePercentage: string;
|
|
3109
3109
|
allTimeReceivedBGTAmount: string;
|
|
3110
3110
|
} | null;
|
|
@@ -3162,7 +3162,7 @@ type GetPoolQuery = {
|
|
|
3162
3162
|
dynamicData?: {
|
|
3163
3163
|
__typename?: 'GqlRewardVaultDynamicData';
|
|
3164
3164
|
activeIncentivesValueUsd: string;
|
|
3165
|
-
apr?:
|
|
3165
|
+
apr?: number | null;
|
|
3166
3166
|
bgtCapturePercentage: string;
|
|
3167
3167
|
allTimeReceivedBGTAmount: string;
|
|
3168
3168
|
} | null;
|
|
@@ -3211,7 +3211,7 @@ type GetPoolQuery = {
|
|
|
3211
3211
|
dynamicData?: {
|
|
3212
3212
|
__typename?: 'GqlRewardVaultDynamicData';
|
|
3213
3213
|
activeIncentivesValueUsd: string;
|
|
3214
|
-
apr?:
|
|
3214
|
+
apr?: number | null;
|
|
3215
3215
|
bgtCapturePercentage: string;
|
|
3216
3216
|
allTimeReceivedBGTAmount: string;
|
|
3217
3217
|
} | null;
|
|
@@ -3260,7 +3260,7 @@ type GetPoolQuery = {
|
|
|
3260
3260
|
dynamicData?: {
|
|
3261
3261
|
__typename?: 'GqlRewardVaultDynamicData';
|
|
3262
3262
|
activeIncentivesValueUsd: string;
|
|
3263
|
-
apr?:
|
|
3263
|
+
apr?: number | null;
|
|
3264
3264
|
bgtCapturePercentage: string;
|
|
3265
3265
|
allTimeReceivedBGTAmount: string;
|
|
3266
3266
|
} | null;
|
|
@@ -3309,7 +3309,7 @@ type GetPoolQuery = {
|
|
|
3309
3309
|
dynamicData?: {
|
|
3310
3310
|
__typename?: 'GqlRewardVaultDynamicData';
|
|
3311
3311
|
activeIncentivesValueUsd: string;
|
|
3312
|
-
apr?:
|
|
3312
|
+
apr?: number | null;
|
|
3313
3313
|
bgtCapturePercentage: string;
|
|
3314
3314
|
allTimeReceivedBGTAmount: string;
|
|
3315
3315
|
} | null;
|
|
@@ -3358,7 +3358,7 @@ type GetPoolQuery = {
|
|
|
3358
3358
|
dynamicData?: {
|
|
3359
3359
|
__typename?: 'GqlRewardVaultDynamicData';
|
|
3360
3360
|
activeIncentivesValueUsd: string;
|
|
3361
|
-
apr?:
|
|
3361
|
+
apr?: number | null;
|
|
3362
3362
|
bgtCapturePercentage: string;
|
|
3363
3363
|
allTimeReceivedBGTAmount: string;
|
|
3364
3364
|
} | null;
|
|
@@ -3407,7 +3407,7 @@ type GetPoolQuery = {
|
|
|
3407
3407
|
dynamicData?: {
|
|
3408
3408
|
__typename?: 'GqlRewardVaultDynamicData';
|
|
3409
3409
|
activeIncentivesValueUsd: string;
|
|
3410
|
-
apr?:
|
|
3410
|
+
apr?: number | null;
|
|
3411
3411
|
bgtCapturePercentage: string;
|
|
3412
3412
|
allTimeReceivedBGTAmount: string;
|
|
3413
3413
|
} | null;
|
|
@@ -3456,7 +3456,7 @@ type GetPoolQuery = {
|
|
|
3456
3456
|
dynamicData?: {
|
|
3457
3457
|
__typename?: 'GqlRewardVaultDynamicData';
|
|
3458
3458
|
activeIncentivesValueUsd: string;
|
|
3459
|
-
apr?:
|
|
3459
|
+
apr?: number | null;
|
|
3460
3460
|
bgtCapturePercentage: string;
|
|
3461
3461
|
allTimeReceivedBGTAmount: string;
|
|
3462
3462
|
} | null;
|
|
@@ -3505,7 +3505,7 @@ type GetPoolQuery = {
|
|
|
3505
3505
|
dynamicData?: {
|
|
3506
3506
|
__typename?: 'GqlRewardVaultDynamicData';
|
|
3507
3507
|
activeIncentivesValueUsd: string;
|
|
3508
|
-
apr?:
|
|
3508
|
+
apr?: number | null;
|
|
3509
3509
|
bgtCapturePercentage: string;
|
|
3510
3510
|
allTimeReceivedBGTAmount: string;
|
|
3511
3511
|
} | null;
|
package/dist/dex/api.codegen.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
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||{}),b= exports.GqlPoolEventsDataRange =(a=>(a.NinetyDays="NINETY_DAYS",a.SevenDays="SEVEN_DAYS",a.ThirtyDays="THIRTY_DAYS",a))(b||{}),P= 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))(P||{}),q= exports.GqlPoolJoinExitType =(t=>(t.Exit="Exit",t.Join="Join",t))(q||{}),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
2
|
fragment DynamicData on GqlPoolDynamicData {
|
|
3
3
|
totalShares
|
|
4
4
|
fees24h
|
|
@@ -13,13 +13,13 @@ import{gql as o}from"@apollo/client";var m=(a=>(a.Bartio="BARTIO",a.Berachain="B
|
|
|
13
13
|
id
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
`,Q=
|
|
16
|
+
`,Q= exports.UserBalance =_client.gql`
|
|
17
17
|
fragment UserBalance on GqlPoolUserBalance {
|
|
18
18
|
totalBalanceUsd
|
|
19
19
|
walletBalance
|
|
20
20
|
walletBalanceUsd
|
|
21
21
|
}
|
|
22
|
-
`,y=
|
|
22
|
+
`,y= exports.RewardVault =_client.gql`
|
|
23
23
|
fragment RewardVault on GqlRewardVault {
|
|
24
24
|
dynamicData {
|
|
25
25
|
activeIncentivesValueUsd
|
|
@@ -31,7 +31,7 @@ import{gql as o}from"@apollo/client";var m=(a=>(a.Bartio="BARTIO",a.Berachain="B
|
|
|
31
31
|
vaultAddress
|
|
32
32
|
stakingTokenAddress
|
|
33
33
|
}
|
|
34
|
-
`,Y=
|
|
34
|
+
`,Y= exports.MinimalPoolInList =_client.gql`
|
|
35
35
|
fragment MinimalPoolInList on GqlPoolMinimal {
|
|
36
36
|
id
|
|
37
37
|
name
|
|
@@ -58,7 +58,7 @@ import{gql as o}from"@apollo/client";var m=(a=>(a.Bartio="BARTIO",a.Berachain="B
|
|
|
58
58
|
}
|
|
59
59
|
${c}
|
|
60
60
|
${Q}
|
|
61
|
-
${y}`,$=
|
|
61
|
+
${y}`,$= exports.MinimalPool =_client.gql`
|
|
62
62
|
fragment MinimalPool on GqlPoolBase {
|
|
63
63
|
id
|
|
64
64
|
name
|
|
@@ -86,7 +86,7 @@ ${y}`,$=o`
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
${c}
|
|
89
|
-
${y}`,K=
|
|
89
|
+
${y}`,K= exports.PoolHistoricalData =_client.gql`
|
|
90
90
|
fragment PoolHistoricalData on GqlPoolSnapshot {
|
|
91
91
|
id
|
|
92
92
|
volume24h
|
|
@@ -96,7 +96,7 @@ ${y}`,K=o`
|
|
|
96
96
|
fees24h
|
|
97
97
|
totalSwapFee
|
|
98
98
|
}
|
|
99
|
-
`,J=
|
|
99
|
+
`,J= exports.GqlPoolSwapEventCowAmm =_client.gql`
|
|
100
100
|
fragment GqlPoolSwapEventCowAmm on GqlPoolSwapEventCowAmm {
|
|
101
101
|
tokenIn {
|
|
102
102
|
address
|
|
@@ -107,7 +107,7 @@ ${y}`,K=o`
|
|
|
107
107
|
amount
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
`,z=
|
|
110
|
+
`,z= exports.GqlPoolSwapEventV3 =_client.gql`
|
|
111
111
|
fragment GqlPoolSwapEventV3 on GqlPoolSwapEventV3 {
|
|
112
112
|
tokenIn {
|
|
113
113
|
address
|
|
@@ -118,14 +118,14 @@ ${y}`,K=o`
|
|
|
118
118
|
amount
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
|
-
`,X=
|
|
121
|
+
`,X= exports.GqlPoolAddRemoveEventV3 =_client.gql`
|
|
122
122
|
fragment GqlPoolAddRemoveEventV3 on GqlPoolAddRemoveEventV3 {
|
|
123
123
|
tokens {
|
|
124
124
|
address
|
|
125
125
|
amount
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
|
-
`,j=
|
|
128
|
+
`,j= exports.PoolEvent =_client.gql`
|
|
129
129
|
fragment PoolEvent on GqlPoolEvent {
|
|
130
130
|
id
|
|
131
131
|
valueUSD
|
|
@@ -139,7 +139,7 @@ ${y}`,K=o`
|
|
|
139
139
|
}
|
|
140
140
|
${J}
|
|
141
141
|
${z}
|
|
142
|
-
${X}`,at=
|
|
142
|
+
${X}`,at= exports.GetPools =_client.gql`
|
|
143
143
|
query GetPools($textSearch: String, $first: Int, $userAddress: String, $chain: [GqlChain!]!, $orderBy: GqlPoolOrderBy, $skip: Int, $orderDirection: GqlPoolOrderDirection, $blacklistedPoolIds: [String!]) {
|
|
144
144
|
poolGetPools(
|
|
145
145
|
textSearch: $textSearch
|
|
@@ -156,19 +156,19 @@ ${X}`,at=o`
|
|
|
156
156
|
where: {userAddress: $userAddress, chainIn: $chain}
|
|
157
157
|
)
|
|
158
158
|
}
|
|
159
|
-
${Y}`,et=
|
|
159
|
+
${Y}`,et= exports.GetPool =_client.gql`
|
|
160
160
|
query GetPool($id: String!, $userAddress: String, $chain: GqlChain!) {
|
|
161
161
|
poolGetPool(id: $id, userAddress: $userAddress, chain: $chain) {
|
|
162
162
|
...MinimalPool
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
|
-
${$}`,ot=
|
|
165
|
+
${$}`,ot= exports.GetPoolHistoricalData =_client.gql`
|
|
166
166
|
query GetPoolHistoricalData($poolId: String!, $chain: GqlChain!) {
|
|
167
167
|
poolGetSnapshots(id: $poolId, range: NINETY_DAYS, chain: $chain) {
|
|
168
168
|
...PoolHistoricalData
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
${K}`,rt=
|
|
171
|
+
${K}`,rt= exports.GetPoolEvents =_client.gql`
|
|
172
172
|
query GetPoolEvents($poolId: String!, $typeIn: [GqlPoolEventType!]!, $chain: GqlChain!) {
|
|
173
173
|
poolGetEvents(
|
|
174
174
|
poolId: $poolId
|
|
@@ -179,7 +179,7 @@ ${X}`,at=o`
|
|
|
179
179
|
...PoolEvent
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
-
${j}`,nt=
|
|
182
|
+
${j}`,nt= exports.GetTokenCurrentPrices =_client.gql`
|
|
183
183
|
query GetTokenCurrentPrices($chains: [GqlChain!]!, $addressIn: [String!]!) {
|
|
184
184
|
tokenGetCurrentPrices(chains: $chains, addressIn: $addressIn) {
|
|
185
185
|
address
|
|
@@ -189,11 +189,11 @@ ${X}`,at=o`
|
|
|
189
189
|
updatedBy
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
`,lt=
|
|
192
|
+
`,lt= exports.GetGlobalLiquidityAndSwapVolume =_client.gql`
|
|
193
193
|
query GetGlobalLiquidityAndSwapVolume($chain: GqlChain!) {
|
|
194
194
|
protocolMetricsAggregated(chains: [$chain]) {
|
|
195
195
|
swapVolume24h
|
|
196
196
|
totalLiquidity
|
|
197
197
|
}
|
|
198
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;
|
|
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 = b; exports.GqlPoolFilterCategory = P; exports.GqlPoolJoinExitType = q; 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;
|
|
@@ -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||{}),b=(a=>(a.NinetyDays="NINETY_DAYS",a.SevenDays="SEVEN_DAYS",a.ThirtyDays="THIRTY_DAYS",a))(b||{}),P=(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))(P||{}),q=(t=>(t.Exit="Exit",t.Join="Join",t))(q||{}),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,b as GqlPoolEventsDataRange,P as GqlPoolFilterCategory,q 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};
|