@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
|
@@ -1473,17 +1473,17 @@ type GqlRewardVaultDynamicData = {
|
|
|
1473
1473
|
activeIncentivesRateUsd: Scalars['String']['output'];
|
|
1474
1474
|
activeIncentivesValueUsd: Scalars['String']['output'];
|
|
1475
1475
|
allTimeReceivedBGTAmount: Scalars['String']['output'];
|
|
1476
|
-
apr?: Maybe<Scalars['
|
|
1476
|
+
apr?: Maybe<Scalars['Float']['output']>;
|
|
1477
1477
|
/** @deprecated Use apr instead */
|
|
1478
|
-
apy?: Maybe<Scalars['
|
|
1478
|
+
apy?: Maybe<Scalars['Float']['output']>;
|
|
1479
1479
|
bgtCapturePerBlock: Scalars['String']['output'];
|
|
1480
1480
|
bgtCapturePercentage: Scalars['String']['output'];
|
|
1481
1481
|
chain: GqlChain;
|
|
1482
1482
|
lastDayReceivedBGTAmount: Scalars['String']['output'];
|
|
1483
|
-
projectedApr?: Maybe<Scalars['
|
|
1483
|
+
projectedApr?: Maybe<Scalars['Float']['output']>;
|
|
1484
1484
|
/** @deprecated Use projectedApr instead */
|
|
1485
|
-
projectedApy?: Maybe<Scalars['
|
|
1486
|
-
tvl
|
|
1485
|
+
projectedApy?: Maybe<Scalars['Float']['output']>;
|
|
1486
|
+
tvl?: Maybe<Scalars['Float']['output']>;
|
|
1487
1487
|
vaultAddress: Scalars['String']['output'];
|
|
1488
1488
|
};
|
|
1489
1489
|
type GqlRewardVaultFilter = {
|
|
@@ -2040,7 +2040,7 @@ type GqlValidatorDynamicData = {
|
|
|
2040
2040
|
apy: Scalars['String']['output'];
|
|
2041
2041
|
bgtCapturePerBlock: Scalars['String']['output'];
|
|
2042
2042
|
bgtCapturePercentage: Scalars['String']['output'];
|
|
2043
|
-
boostApr: Scalars['
|
|
2043
|
+
boostApr: Scalars['Float']['output'];
|
|
2044
2044
|
chain: GqlChain;
|
|
2045
2045
|
commissionOnIncentives: Scalars['Int']['output'];
|
|
2046
2046
|
commissionOnIncentivesHistory: Array<GqlValidatorCommissionHistory>;
|
|
@@ -2685,12 +2685,12 @@ type ApiVaultFragment = {
|
|
|
2685
2685
|
dynamicData?: {
|
|
2686
2686
|
__typename?: 'GqlRewardVaultDynamicData';
|
|
2687
2687
|
allTimeReceivedBGTAmount: string;
|
|
2688
|
-
apr?:
|
|
2688
|
+
apr?: number | null;
|
|
2689
2689
|
bgtCapturePercentage: string;
|
|
2690
2690
|
bgtCapturePerBlock: string;
|
|
2691
2691
|
activeIncentivesValueUsd: string;
|
|
2692
2692
|
activeIncentivesRateUsd: string;
|
|
2693
|
-
tvl
|
|
2693
|
+
tvl?: number | null;
|
|
2694
2694
|
} | null;
|
|
2695
2695
|
stakingToken: {
|
|
2696
2696
|
__typename?: 'GqlToken';
|
|
@@ -2754,12 +2754,12 @@ type GetVaultsQuery = {
|
|
|
2754
2754
|
dynamicData?: {
|
|
2755
2755
|
__typename?: 'GqlRewardVaultDynamicData';
|
|
2756
2756
|
allTimeReceivedBGTAmount: string;
|
|
2757
|
-
apr?:
|
|
2757
|
+
apr?: number | null;
|
|
2758
2758
|
bgtCapturePercentage: string;
|
|
2759
2759
|
bgtCapturePerBlock: string;
|
|
2760
2760
|
activeIncentivesValueUsd: string;
|
|
2761
2761
|
activeIncentivesRateUsd: string;
|
|
2762
|
-
tvl
|
|
2762
|
+
tvl?: number | null;
|
|
2763
2763
|
} | null;
|
|
2764
2764
|
stakingToken: {
|
|
2765
2765
|
__typename?: 'GqlToken';
|
|
@@ -2820,7 +2820,7 @@ type ApiValidatorMinimalFragment = {
|
|
|
2820
2820
|
stakedBeraAmount: string;
|
|
2821
2821
|
lastDayDistributedBGTAmount: string;
|
|
2822
2822
|
activeBoostAmountRank: number;
|
|
2823
|
-
boostApr:
|
|
2823
|
+
boostApr: number;
|
|
2824
2824
|
commissionOnIncentives: number;
|
|
2825
2825
|
} | null;
|
|
2826
2826
|
};
|
|
@@ -2846,12 +2846,12 @@ type ApiValidatorFragment = {
|
|
|
2846
2846
|
dynamicData?: {
|
|
2847
2847
|
__typename?: 'GqlRewardVaultDynamicData';
|
|
2848
2848
|
allTimeReceivedBGTAmount: string;
|
|
2849
|
-
apr?:
|
|
2849
|
+
apr?: number | null;
|
|
2850
2850
|
bgtCapturePercentage: string;
|
|
2851
2851
|
bgtCapturePerBlock: string;
|
|
2852
2852
|
activeIncentivesValueUsd: string;
|
|
2853
2853
|
activeIncentivesRateUsd: string;
|
|
2854
|
-
tvl
|
|
2854
|
+
tvl?: number | null;
|
|
2855
2855
|
} | null;
|
|
2856
2856
|
stakingToken: {
|
|
2857
2857
|
__typename?: 'GqlToken';
|
|
@@ -2911,7 +2911,7 @@ type ApiValidatorFragment = {
|
|
|
2911
2911
|
stakedBeraAmount: string;
|
|
2912
2912
|
lastDayDistributedBGTAmount: string;
|
|
2913
2913
|
activeBoostAmountRank: number;
|
|
2914
|
-
boostApr:
|
|
2914
|
+
boostApr: number;
|
|
2915
2915
|
commissionOnIncentives: number;
|
|
2916
2916
|
} | null;
|
|
2917
2917
|
};
|
|
@@ -2931,12 +2931,12 @@ type ApiRewardAllocationWeightFragment = {
|
|
|
2931
2931
|
dynamicData?: {
|
|
2932
2932
|
__typename?: 'GqlRewardVaultDynamicData';
|
|
2933
2933
|
allTimeReceivedBGTAmount: string;
|
|
2934
|
-
apr?:
|
|
2934
|
+
apr?: number | null;
|
|
2935
2935
|
bgtCapturePercentage: string;
|
|
2936
2936
|
bgtCapturePerBlock: string;
|
|
2937
2937
|
activeIncentivesValueUsd: string;
|
|
2938
2938
|
activeIncentivesRateUsd: string;
|
|
2939
|
-
tvl
|
|
2939
|
+
tvl?: number | null;
|
|
2940
2940
|
} | null;
|
|
2941
2941
|
stakingToken: {
|
|
2942
2942
|
__typename?: 'GqlToken';
|
|
@@ -3010,12 +3010,12 @@ type GetValidatorQuery = {
|
|
|
3010
3010
|
dynamicData?: {
|
|
3011
3011
|
__typename?: 'GqlRewardVaultDynamicData';
|
|
3012
3012
|
allTimeReceivedBGTAmount: string;
|
|
3013
|
-
apr?:
|
|
3013
|
+
apr?: number | null;
|
|
3014
3014
|
bgtCapturePercentage: string;
|
|
3015
3015
|
bgtCapturePerBlock: string;
|
|
3016
3016
|
activeIncentivesValueUsd: string;
|
|
3017
3017
|
activeIncentivesRateUsd: string;
|
|
3018
|
-
tvl
|
|
3018
|
+
tvl?: number | null;
|
|
3019
3019
|
} | null;
|
|
3020
3020
|
stakingToken: {
|
|
3021
3021
|
__typename?: 'GqlToken';
|
|
@@ -3075,7 +3075,7 @@ type GetValidatorQuery = {
|
|
|
3075
3075
|
stakedBeraAmount: string;
|
|
3076
3076
|
lastDayDistributedBGTAmount: string;
|
|
3077
3077
|
activeBoostAmountRank: number;
|
|
3078
|
-
boostApr:
|
|
3078
|
+
boostApr: number;
|
|
3079
3079
|
commissionOnIncentives: number;
|
|
3080
3080
|
} | null;
|
|
3081
3081
|
} | null;
|
|
@@ -3130,12 +3130,12 @@ type GetValidatorsQuery = {
|
|
|
3130
3130
|
dynamicData?: {
|
|
3131
3131
|
__typename?: 'GqlRewardVaultDynamicData';
|
|
3132
3132
|
allTimeReceivedBGTAmount: string;
|
|
3133
|
-
apr?:
|
|
3133
|
+
apr?: number | null;
|
|
3134
3134
|
bgtCapturePercentage: string;
|
|
3135
3135
|
bgtCapturePerBlock: string;
|
|
3136
3136
|
activeIncentivesValueUsd: string;
|
|
3137
3137
|
activeIncentivesRateUsd: string;
|
|
3138
|
-
tvl
|
|
3138
|
+
tvl?: number | null;
|
|
3139
3139
|
} | null;
|
|
3140
3140
|
stakingToken: {
|
|
3141
3141
|
__typename?: 'GqlToken';
|
|
@@ -3195,7 +3195,7 @@ type GetValidatorsQuery = {
|
|
|
3195
3195
|
stakedBeraAmount: string;
|
|
3196
3196
|
lastDayDistributedBGTAmount: string;
|
|
3197
3197
|
activeBoostAmountRank: number;
|
|
3198
|
-
boostApr:
|
|
3198
|
+
boostApr: number;
|
|
3199
3199
|
commissionOnIncentives: number;
|
|
3200
3200
|
} | null;
|
|
3201
3201
|
}>;
|
|
@@ -3237,12 +3237,12 @@ type GetVaultValidatorsQuery = {
|
|
|
3237
3237
|
dynamicData?: {
|
|
3238
3238
|
__typename?: 'GqlRewardVaultDynamicData';
|
|
3239
3239
|
allTimeReceivedBGTAmount: string;
|
|
3240
|
-
apr?:
|
|
3240
|
+
apr?: number | null;
|
|
3241
3241
|
bgtCapturePercentage: string;
|
|
3242
3242
|
bgtCapturePerBlock: string;
|
|
3243
3243
|
activeIncentivesValueUsd: string;
|
|
3244
3244
|
activeIncentivesRateUsd: string;
|
|
3245
|
-
tvl
|
|
3245
|
+
tvl?: number | null;
|
|
3246
3246
|
} | null;
|
|
3247
3247
|
stakingToken: {
|
|
3248
3248
|
__typename?: 'GqlToken';
|
|
@@ -3302,7 +3302,7 @@ type GetVaultValidatorsQuery = {
|
|
|
3302
3302
|
stakedBeraAmount: string;
|
|
3303
3303
|
lastDayDistributedBGTAmount: string;
|
|
3304
3304
|
activeBoostAmountRank: number;
|
|
3305
|
-
boostApr:
|
|
3305
|
+
boostApr: number;
|
|
3306
3306
|
commissionOnIncentives: number;
|
|
3307
3307
|
} | null;
|
|
3308
3308
|
}>;
|
|
@@ -3324,12 +3324,12 @@ type GetRewardVaultQuery = {
|
|
|
3324
3324
|
dynamicData?: {
|
|
3325
3325
|
__typename?: 'GqlRewardVaultDynamicData';
|
|
3326
3326
|
allTimeReceivedBGTAmount: string;
|
|
3327
|
-
apr?:
|
|
3327
|
+
apr?: number | null;
|
|
3328
3328
|
bgtCapturePercentage: string;
|
|
3329
3329
|
bgtCapturePerBlock: string;
|
|
3330
3330
|
activeIncentivesValueUsd: string;
|
|
3331
3331
|
activeIncentivesRateUsd: string;
|
|
3332
|
-
tvl
|
|
3332
|
+
tvl?: number | null;
|
|
3333
3333
|
} | null;
|
|
3334
3334
|
stakingToken: {
|
|
3335
3335
|
__typename?: 'GqlToken';
|
|
@@ -3401,7 +3401,7 @@ type GlobalDataQuery = {
|
|
|
3401
3401
|
stakedBeraAmount: string;
|
|
3402
3402
|
lastDayDistributedBGTAmount: string;
|
|
3403
3403
|
activeBoostAmountRank: number;
|
|
3404
|
-
boostApr:
|
|
3404
|
+
boostApr: number;
|
|
3405
3405
|
commissionOnIncentives: number;
|
|
3406
3406
|
} | null;
|
|
3407
3407
|
}>;
|
|
@@ -3454,12 +3454,12 @@ type GetUserVaultsQuery = {
|
|
|
3454
3454
|
dynamicData?: {
|
|
3455
3455
|
__typename?: 'GqlRewardVaultDynamicData';
|
|
3456
3456
|
allTimeReceivedBGTAmount: string;
|
|
3457
|
-
apr?:
|
|
3457
|
+
apr?: number | null;
|
|
3458
3458
|
bgtCapturePercentage: string;
|
|
3459
3459
|
bgtCapturePerBlock: string;
|
|
3460
3460
|
activeIncentivesValueUsd: string;
|
|
3461
3461
|
activeIncentivesRateUsd: string;
|
|
3462
|
-
tvl
|
|
3462
|
+
tvl?: number | null;
|
|
3463
3463
|
} | null;
|
|
3464
3464
|
stakingToken: {
|
|
3465
3465
|
__typename?: 'GqlToken';
|
package/dist/pol/api.codegen.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _client = require('@apollo/client');var d=(a=>(a.Bartio="BARTIO",a.Berachain="BERACHAIN",a.Cartio="CARTIO",a))(d||{}),m= exports.GqlContentNewsItemSource =(a=>(a.Discord="discord",a.Medium="medium",a.Twitter="twitter",a))(m||{}),G= exports.GqlPoolAprItemType =(i=>(i.Aura="AURA",i.IbYield="IB_YIELD",i.Locking="LOCKING",i.MabeetsEmissions="MABEETS_EMISSIONS",i.Merkl="MERKL",i.Nested="NESTED",i.Staking="STAKING",i.StakingBoost="STAKING_BOOST",i.Surplus="SURPLUS",i.SwapFee="SWAP_FEE",i.VebalEmissions="VEBAL_EMISSIONS",i.Voting="VOTING",i))(G||{}),A= exports.GqlPoolEventType =(a=>(a.Add="ADD",a.Remove="REMOVE",a.Swap="SWAP",a))(A||{}),b= exports.GqlPoolEventsDataRange =(a=>(a.NinetyDays="NINETY_DAYS",a.SevenDays="SEVEN_DAYS",a.ThirtyDays="THIRTY_DAYS",a))(b||{}),I= exports.GqlPoolFilterCategory =(s=>(s.BlackListed="BLACK_LISTED",s.Incentivized="INCENTIVIZED",s.Lrt="LRT",s.Points="POINTS",s.PointsEigenlayer="POINTS_EIGENLAYER",s.PointsGyro="POINTS_GYRO",s.PointsKelp="POINTS_KELP",s.PointsRenzo="POINTS_RENZO",s.PointsSwell="POINTS_SWELL",s.Superfest="SUPERFEST",s))(I||{}),q= exports.GqlPoolJoinExitType =(t=>(t.Exit="Exit",t.Join="Join",t))(q||{}),P= exports.GqlPoolNestingType =(a=>(a.HasOnlyPhantomBpt="HAS_ONLY_PHANTOM_BPT",a.HasSomePhantomBpt="HAS_SOME_PHANTOM_BPT",a.NoNesting="NO_NESTING",a))(P||{}),h= 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))(h||{}),k= exports.GqlPoolOrderDirection =(t=>(t.Asc="asc",t.Desc="desc",t))(k||{}),B= exports.GqlPoolSnapshotDataRange =(r=>(r.AllTime="ALL_TIME",r.NinetyDays="NINETY_DAYS",r.OneHundredEightyDays="ONE_HUNDRED_EIGHTY_DAYS",r.OneYear="ONE_YEAR",r.ThirtyDays="THIRTY_DAYS",r))(B||{}),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||{}),_= exports.GqlRewardVaultIncentiveOrderBy =(a=>(a.AmountRemaining="amountRemaining",a.AmountRemainingUsd="amountRemainingUsd",a.IncentiveRate="incentiveRate",a))(_||{}),v= exports.GqlRewardVaultIncentiveOrderDirection =(t=>(t.Asc="asc",t.Desc="desc",t))(v||{}),M= exports.GqlRewardVaultOrderBy =(u=>(u.ActiveIncentivesRateUsd="activeIncentivesRateUsd",u.ActiveIncentivesValueUsd="activeIncentivesValueUsd",u.AllTimeBgtReceived="allTimeBGTReceived",u.Apr="apr",u.Apy="apy",u.BgtCapturePercentage="bgtCapturePercentage",u.Last24hBgtReceived="last24hBGTReceived",u.ProjectedApr="projectedApr",u))(M||{}),T= exports.GqlRewardVaultOrderDirection =(t=>(t.Asc="asc",t.Desc="desc",t))(T||{}),V= exports.GqlRewardVaultSnapshotDataRange =(n=>(n.NinetyDays="NINETY_DAYS",n.SevenDays="SEVEN_DAYS",n.SixtyDays="SIXTY_DAYS",n.ThirtyDays="THIRTY_DAYS",n))(V||{}),w= exports.GqlRewardVaultSnapshotResolution =(t=>(t.Day="DAY",t.Hour="HOUR",t))(w||{}),R= exports.GqlSWberaVaultMetadataResolution =(t=>(t.OneDay="ONE_DAY",t.SevenDays="SEVEN_DAYS",t))(R||{}),x= exports.GqlSorSwapType =(t=>(t.ExactIn="EXACT_IN",t.ExactOut="EXACT_OUT",t))(x||{}),C= exports.GqlStakeBeraVaultEventType =(t=>(t.Deposit="DEPOSIT",t.WithdrawalCompleted="WITHDRAWAL_COMPLETED",t))(C||{}),U= exports.GqlTokenChartDataRange =(r=>(r.NinetyDay="NINETY_DAY",r.OneHundredEightyDay="ONE_HUNDRED_EIGHTY_DAY",r.OneYear="ONE_YEAR",r.SevenDay="SEVEN_DAY",r.ThirtyDay="THIRTY_DAY",r))(U||{}),E= exports.GqlTokenType =(a=>(a.Bpt="BPT",a.PhantomBpt="PHANTOM_BPT",a.WhiteListed="WHITE_LISTED",a))(E||{}),f= exports.GqlUserVaultDepositOrderBy =(g=>(g.Amount="amount",g))(f||{}),F= exports.GqlUserVaultDepositOrderDirection =(t=>(t.Asc="asc",t.Desc="desc",t))(F||{}),N= exports.GqlValidatorBlockUptimeStatus =(n=>(n.Inactive="INACTIVE",n.Offline="OFFLINE",n.Proposed="PROPOSED",n.Signed="SIGNED",n))(N||{}),Q= exports.GqlValidatorBoostOrderBy =(r=>(r.ActiveBoostAmount="activeBoostAmount",r.LatestBlock="latestBlock",r.LatestBlockTime="latestBlockTime",r.QueuedBoostAmount="queuedBoostAmount",r.QueuedDropBoostAmount="queuedDropBoostAmount",r))(Q||{}),W= exports.GqlValidatorBoostOrderDirection =(t=>(t.Asc="asc",t.Desc="desc",t))(W||{}),O= exports.GqlValidatorOrderBy =(o=>(o.ActiveBoostAmount="activeBoostAmount",o.AllTimeDistributedBgtAmount="allTimeDistributedBGTAmount",o.AllTimeEarnedBgtAmount="allTimeEarnedBGTAmount",o.Apy="apy",o.BgtCapturePercentage="bgtCapturePercentage",o.BoostApr="boostApr",o.CommissionOnIncentives="commissionOnIncentives",o.LastDayDistributedBgtAmount="lastDayDistributedBGTAmount",o.LastDayEarnedBgtAmount="lastDayEarnedBGTAmount",o.QueuedBoostAmount="queuedBoostAmount",o.QueuedDropBoostAmount="queuedDropBoostAmount",o.RewardRate="rewardRate",o.StakedBeraAmount="stakedBeraAmount",o.UsersActiveBoostCount="usersActiveBoostCount",o.UsersQueuedBoostCount="usersQueuedBoostCount",o))(O||{}),H= exports.GqlValidatorOrderDirection =(t=>(t.Asc="asc",t.Desc="desc",t))(H||{}),L= exports.GqlVaultSnapshotDataRange =(n=>(n.NinetyDays="NINETY_DAYS",n.SevenDays="SEVEN_DAYS",n.SixtyDays="SIXTY_DAYS",n.ThirtyDays="THIRTY_DAYS",n))(L||{}),y= exports.ApiValidatorMinimal =_client.gql`
|
|
2
2
|
fragment ApiValidatorMinimal on GqlValidator {
|
|
3
3
|
id
|
|
4
4
|
pubkey
|
|
@@ -22,7 +22,7 @@ import{gql as e}from"@apollo/client";var d=(a=>(a.Bartio="BARTIO",a.Berachain="B
|
|
|
22
22
|
commissionOnIncentives
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
`,$=
|
|
25
|
+
`,$= exports.ApiVaultIncentive =_client.gql`
|
|
26
26
|
fragment ApiVaultIncentive on GqlRewardVaultIncentive {
|
|
27
27
|
active
|
|
28
28
|
remainingAmount
|
|
@@ -37,7 +37,7 @@ import{gql as e}from"@apollo/client";var d=(a=>(a.Bartio="BARTIO",a.Berachain="B
|
|
|
37
37
|
decimals
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
-
`,c=
|
|
40
|
+
`,c= exports.ApiVault =_client.gql`
|
|
41
41
|
fragment ApiVault on GqlRewardVault {
|
|
42
42
|
id: vaultAddress
|
|
43
43
|
vaultAddress
|
|
@@ -74,7 +74,7 @@ import{gql as e}from"@apollo/client";var d=(a=>(a.Bartio="BARTIO",a.Berachain="B
|
|
|
74
74
|
...ApiVaultIncentive
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
${$}`,Y=
|
|
77
|
+
${$}`,Y= exports.ApiRewardAllocationWeight =_client.gql`
|
|
78
78
|
fragment ApiRewardAllocationWeight on GqlValidatorRewardAllocationWeight {
|
|
79
79
|
percentageNumerator
|
|
80
80
|
validatorId
|
|
@@ -84,7 +84,7 @@ import{gql as e}from"@apollo/client";var d=(a=>(a.Bartio="BARTIO",a.Berachain="B
|
|
|
84
84
|
receiver
|
|
85
85
|
startBlock
|
|
86
86
|
}
|
|
87
|
-
${c}`,S=
|
|
87
|
+
${c}`,S= exports.ApiValidator =_client.gql`
|
|
88
88
|
fragment ApiValidator on GqlValidator {
|
|
89
89
|
...ApiValidatorMinimal
|
|
90
90
|
operator
|
|
@@ -102,7 +102,7 @@ import{gql as e}from"@apollo/client";var d=(a=>(a.Bartio="BARTIO",a.Berachain="B
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
${y}
|
|
105
|
-
${Y}`,z=
|
|
105
|
+
${Y}`,z= exports.ApiValidatorBlockUptime =_client.gql`
|
|
106
106
|
fragment ApiValidatorBlockUptime on GqlValidatorBlockUptime {
|
|
107
107
|
isActive
|
|
108
108
|
isProposer
|
|
@@ -110,7 +110,7 @@ ${Y}`,z=e`
|
|
|
110
110
|
status
|
|
111
111
|
blockNumber
|
|
112
112
|
}
|
|
113
|
-
`,X=
|
|
113
|
+
`,X= exports.GetVaults =_client.gql`
|
|
114
114
|
query GetVaults($where: GqlRewardVaultFilter, $pageSize: Int, $skip: Int, $orderBy: GqlRewardVaultOrderBy = bgtCapturePercentage, $orderDirection: GqlRewardVaultOrderDirection = desc, $search: String) {
|
|
115
115
|
polGetRewardVaults(
|
|
116
116
|
where: $where
|
|
@@ -129,7 +129,7 @@ ${Y}`,z=e`
|
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
${c}`,j=
|
|
132
|
+
${c}`,j= exports.GetValidator =_client.gql`
|
|
133
133
|
query GetValidator($id: String!, $chain: GqlChain!) {
|
|
134
134
|
validator: polGetValidator(validatorId: $id, chain: $chain) {
|
|
135
135
|
...ApiValidator
|
|
@@ -139,7 +139,7 @@ ${Y}`,z=e`
|
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
${S}
|
|
142
|
-
${z}`,Z=
|
|
142
|
+
${z}`,Z= exports.GetValidators =_client.gql`
|
|
143
143
|
query GetValidators($where: GqlValidatorFilter, $sortBy: GqlValidatorOrderBy = lastDayDistributedBGTAmount, $sortOrder: GqlValidatorOrderDirection = desc, $pageSize: Int, $skip: Int, $search: String, $chain: GqlChain) {
|
|
144
144
|
validators: polGetValidators(
|
|
145
145
|
where: $where
|
|
@@ -161,7 +161,7 @@ ${z}`,Z=e`
|
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
|
-
${S}`,tt=
|
|
164
|
+
${S}`,tt= exports.GetVaultValidators =_client.gql`
|
|
165
165
|
query GetVaultValidators($vaultId: String!, $chain: GqlChain, $isActive: Boolean = true) {
|
|
166
166
|
validators: polGetValidators(
|
|
167
167
|
where: {vaultAddress: $vaultId, isActive: $isActive}
|
|
@@ -178,13 +178,13 @@ ${z}`,Z=e`
|
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
|
-
${S}`,at=
|
|
181
|
+
${S}`,at= exports.GetRewardVault =_client.gql`
|
|
182
182
|
query GetRewardVault($vaultId: String!, $chain: GqlChain!) {
|
|
183
183
|
rewardVault: polGetRewardVault(vaultAddress: $vaultId, chain: $chain) {
|
|
184
184
|
...ApiVault
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
${c}`,et=
|
|
187
|
+
${c}`,et= exports.GlobalData =_client.gql`
|
|
188
188
|
query GlobalData($chain: GqlChain!) {
|
|
189
189
|
top3EmittingValidators: polGetValidators(
|
|
190
190
|
orderBy: bgtCapturePercentage
|
|
@@ -217,7 +217,7 @@ ${z}`,Z=e`
|
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
|
-
${y}`,rt=
|
|
220
|
+
${y}`,rt= exports.GetUserVaults =_client.gql`
|
|
221
221
|
query GetUserVaults($userId: String!, $chain: GqlChain!) {
|
|
222
222
|
userVaultDeposits: polGetUserVaultDeposits(userAddress: $userId, chain: $chain) {
|
|
223
223
|
pagination {
|
|
@@ -233,7 +233,7 @@ ${z}`,Z=e`
|
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
|
-
${c}`,ot=
|
|
236
|
+
${c}`,ot= exports.GetVaultHistory =_client.gql`
|
|
237
237
|
query GetVaultHistory($vaultId: String!, $chain: GqlChain!, $resolution: GqlRewardVaultSnapshotResolution = DAY, $range: GqlRewardVaultSnapshotDataRange = THIRTY_DAYS) {
|
|
238
238
|
polGetRewardVaultSnapshots(
|
|
239
239
|
chain: $chain
|
|
@@ -246,7 +246,7 @@ ${z}`,Z=e`
|
|
|
246
246
|
apr
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
|
-
`,nt=
|
|
249
|
+
`,nt= exports.GetVaultDurations =_client.gql`
|
|
250
250
|
query GetVaultDurations {
|
|
251
251
|
polGetVaultDurations {
|
|
252
252
|
maxRewardDuration
|
|
@@ -254,14 +254,14 @@ ${z}`,Z=e`
|
|
|
254
254
|
rewardDurationCooldownPeriod
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
|
-
`,lt=
|
|
257
|
+
`,lt= exports.GetBoostDelay =_client.gql`
|
|
258
258
|
query GetBoostDelay {
|
|
259
259
|
polGetValidatorBoostDelay {
|
|
260
260
|
boostDelay
|
|
261
261
|
unboostDelay
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
|
-
`,it=
|
|
264
|
+
`,it= exports.GetCommissionChangeDelay =_client.gql`
|
|
265
265
|
query GetCommissionChangeDelay {
|
|
266
266
|
polGetValidatorCommissionDelay {
|
|
267
267
|
rewardAllocationBlockDelay
|
|
@@ -269,14 +269,14 @@ ${z}`,Z=e`
|
|
|
269
269
|
commissionChangeDelay
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
|
-
`,st=
|
|
272
|
+
`,st= exports.GetSWberaVaultMetadata =_client.gql`
|
|
273
273
|
query GetSWberaVaultMetadata($chain: GqlChain!, $resolution: GqlSWberaVaultMetadataResolution) {
|
|
274
274
|
polGetSWberaVaultMetadata(chain: $chain, resolution: $resolution) {
|
|
275
275
|
apr
|
|
276
276
|
chain
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
|
-
`,ut=
|
|
279
|
+
`,ut= exports.GetSWberaVaultSnapshots =_client.gql`
|
|
280
280
|
query GetSWberaVaultSnapshots($chain: GqlChain!, $range: GqlVaultSnapshotDataRange) {
|
|
281
281
|
polGetSWberaVaultSnapshots(chain: $chain, range: $range) {
|
|
282
282
|
apr
|
|
@@ -287,7 +287,7 @@ ${z}`,Z=e`
|
|
|
287
287
|
vaultAddress
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
|
-
`,pt=
|
|
290
|
+
`,pt= exports.GetPolStakeBeraVaultEventsByOwner =_client.gql`
|
|
291
291
|
query GetPolStakeBeraVaultEventsByOwner($owner: String!) {
|
|
292
292
|
events: polGetStakeBeraVaultEventsByOwner(owner: $owner) {
|
|
293
293
|
type
|
|
@@ -298,4 +298,4 @@ ${z}`,Z=e`
|
|
|
298
298
|
_timestamp
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
|
-
`,K={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"]}},ct=K;
|
|
301
|
+
`,K={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"]}},ct= exports.default =K;exports.ApiRewardAllocationWeight = Y; exports.ApiValidator = S; exports.ApiValidatorBlockUptime = z; exports.ApiValidatorMinimal = y; exports.ApiVault = c; exports.ApiVaultIncentive = $; exports.GetBoostDelay = lt; exports.GetCommissionChangeDelay = it; exports.GetPolStakeBeraVaultEventsByOwner = pt; exports.GetRewardVault = at; exports.GetSWberaVaultMetadata = st; exports.GetSWberaVaultSnapshots = ut; exports.GetUserVaults = rt; exports.GetValidator = j; exports.GetValidators = Z; exports.GetVaultDurations = nt; exports.GetVaultHistory = ot; exports.GetVaultValidators = tt; exports.GetVaults = X; exports.GlobalData = et; exports.GqlChain = d; exports.GqlContentNewsItemSource = m; exports.GqlPoolAprItemType = G; exports.GqlPoolEventType = A; exports.GqlPoolEventsDataRange = b; exports.GqlPoolFilterCategory = I; exports.GqlPoolJoinExitType = q; exports.GqlPoolNestingType = P; exports.GqlPoolOrderBy = h; exports.GqlPoolOrderDirection = k; exports.GqlPoolSnapshotDataRange = B; exports.GqlPoolType = D; exports.GqlRewardVaultIncentiveOrderBy = _; exports.GqlRewardVaultIncentiveOrderDirection = v; exports.GqlRewardVaultOrderBy = M; exports.GqlRewardVaultOrderDirection = T; exports.GqlRewardVaultSnapshotDataRange = V; exports.GqlRewardVaultSnapshotResolution = w; exports.GqlSWberaVaultMetadataResolution = R; exports.GqlSorSwapType = x; exports.GqlStakeBeraVaultEventType = C; exports.GqlTokenChartDataRange = U; exports.GqlTokenType = E; exports.GqlUserVaultDepositOrderBy = f; exports.GqlUserVaultDepositOrderDirection = F; exports.GqlValidatorBlockUptimeStatus = N; exports.GqlValidatorBoostOrderBy = Q; exports.GqlValidatorBoostOrderDirection = W; exports.GqlValidatorOrderBy = O; exports.GqlValidatorOrderDirection = H; exports.GqlVaultSnapshotDataRange = L; exports.default = ct;
|