@berachain/graphql 0.4.16-beta.5 → 0.4.16-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pol/api.codegen.d.ts +145 -1
- package/dist/pol/api.codegen.mjs +46 -0
- package/package.json +1 -1
|
@@ -2603,6 +2603,130 @@ type GetVaultsQuery = {
|
|
|
2603
2603
|
}>;
|
|
2604
2604
|
};
|
|
2605
2605
|
};
|
|
2606
|
+
type GetHeroEarnVaultsQueryVariables = Exact<{
|
|
2607
|
+
bestAprExcludedAddresses?: InputMaybe<Array<Scalars['String']['input']> | Scalars['String']['input']>;
|
|
2608
|
+
}>;
|
|
2609
|
+
type GetHeroEarnVaultsQuery = {
|
|
2610
|
+
__typename?: 'Query';
|
|
2611
|
+
bestApr: {
|
|
2612
|
+
__typename?: 'PaginatedRewardVaultsResponse';
|
|
2613
|
+
vaults: Array<{
|
|
2614
|
+
__typename?: 'GqlRewardVault';
|
|
2615
|
+
vaultAddress: `0x${string}`;
|
|
2616
|
+
isVaultWhitelisted: boolean;
|
|
2617
|
+
stakingTokenAmount: string;
|
|
2618
|
+
id: `0x${string}`;
|
|
2619
|
+
address: `0x${string}`;
|
|
2620
|
+
dynamicData?: {
|
|
2621
|
+
__typename?: 'GqlRewardVaultDynamicData';
|
|
2622
|
+
allTimeReceivedBGTAmount: string;
|
|
2623
|
+
apr?: number | null;
|
|
2624
|
+
bgtCapturePercentage: string;
|
|
2625
|
+
bgtCapturePerBlock: string;
|
|
2626
|
+
activeIncentivesValueUsd: string;
|
|
2627
|
+
activeIncentivesRateUsd: string;
|
|
2628
|
+
tvl?: number | null;
|
|
2629
|
+
} | null;
|
|
2630
|
+
stakingToken: {
|
|
2631
|
+
__typename?: 'GqlToken';
|
|
2632
|
+
address: `0x${string}`;
|
|
2633
|
+
name: string;
|
|
2634
|
+
symbol: string;
|
|
2635
|
+
decimals: number;
|
|
2636
|
+
};
|
|
2637
|
+
metadata?: {
|
|
2638
|
+
__typename?: 'GqlRewardVaultMetadata';
|
|
2639
|
+
name: string;
|
|
2640
|
+
logoURI: string;
|
|
2641
|
+
url: string;
|
|
2642
|
+
protocolName: string;
|
|
2643
|
+
protocolIcon: string;
|
|
2644
|
+
description: string;
|
|
2645
|
+
categories: Array<string>;
|
|
2646
|
+
action: string;
|
|
2647
|
+
} | null;
|
|
2648
|
+
activeIncentives: Array<{
|
|
2649
|
+
__typename?: 'GqlRewardVaultIncentive';
|
|
2650
|
+
active: boolean;
|
|
2651
|
+
tokenAddress: `0x${string}`;
|
|
2652
|
+
remainingAmount: string;
|
|
2653
|
+
remainingAmountUsd: string;
|
|
2654
|
+
incentiveRate: string;
|
|
2655
|
+
incentiveRateUsd: string;
|
|
2656
|
+
token: {
|
|
2657
|
+
__typename?: 'GqlToken';
|
|
2658
|
+
address: `0x${string}`;
|
|
2659
|
+
name: string;
|
|
2660
|
+
symbol: string;
|
|
2661
|
+
decimals: number;
|
|
2662
|
+
};
|
|
2663
|
+
}>;
|
|
2664
|
+
}>;
|
|
2665
|
+
};
|
|
2666
|
+
bendRewardVault: {
|
|
2667
|
+
__typename?: 'PaginatedRewardVaultsResponse';
|
|
2668
|
+
vaults: Array<{
|
|
2669
|
+
__typename?: 'GqlRewardVault';
|
|
2670
|
+
vaultAddress: `0x${string}`;
|
|
2671
|
+
isVaultWhitelisted: boolean;
|
|
2672
|
+
stakingTokenAmount: string;
|
|
2673
|
+
id: `0x${string}`;
|
|
2674
|
+
address: `0x${string}`;
|
|
2675
|
+
dynamicData?: {
|
|
2676
|
+
__typename?: 'GqlRewardVaultDynamicData';
|
|
2677
|
+
allTimeReceivedBGTAmount: string;
|
|
2678
|
+
apr?: number | null;
|
|
2679
|
+
bgtCapturePercentage: string;
|
|
2680
|
+
bgtCapturePerBlock: string;
|
|
2681
|
+
activeIncentivesValueUsd: string;
|
|
2682
|
+
activeIncentivesRateUsd: string;
|
|
2683
|
+
tvl?: number | null;
|
|
2684
|
+
} | null;
|
|
2685
|
+
stakingToken: {
|
|
2686
|
+
__typename?: 'GqlToken';
|
|
2687
|
+
address: `0x${string}`;
|
|
2688
|
+
name: string;
|
|
2689
|
+
symbol: string;
|
|
2690
|
+
decimals: number;
|
|
2691
|
+
};
|
|
2692
|
+
metadata?: {
|
|
2693
|
+
__typename?: 'GqlRewardVaultMetadata';
|
|
2694
|
+
name: string;
|
|
2695
|
+
logoURI: string;
|
|
2696
|
+
url: string;
|
|
2697
|
+
protocolName: string;
|
|
2698
|
+
protocolIcon: string;
|
|
2699
|
+
description: string;
|
|
2700
|
+
categories: Array<string>;
|
|
2701
|
+
action: string;
|
|
2702
|
+
} | null;
|
|
2703
|
+
activeIncentives: Array<{
|
|
2704
|
+
__typename?: 'GqlRewardVaultIncentive';
|
|
2705
|
+
active: boolean;
|
|
2706
|
+
tokenAddress: `0x${string}`;
|
|
2707
|
+
remainingAmount: string;
|
|
2708
|
+
remainingAmountUsd: string;
|
|
2709
|
+
incentiveRate: string;
|
|
2710
|
+
incentiveRateUsd: string;
|
|
2711
|
+
token: {
|
|
2712
|
+
__typename?: 'GqlToken';
|
|
2713
|
+
address: `0x${string}`;
|
|
2714
|
+
name: string;
|
|
2715
|
+
symbol: string;
|
|
2716
|
+
decimals: number;
|
|
2717
|
+
};
|
|
2718
|
+
}>;
|
|
2719
|
+
}>;
|
|
2720
|
+
};
|
|
2721
|
+
bendVaults: Array<{
|
|
2722
|
+
__typename?: 'BendVaultResponse';
|
|
2723
|
+
vaultAddress: `0x${string}`;
|
|
2724
|
+
dynamicData?: {
|
|
2725
|
+
__typename?: 'BendVaultDynamicData';
|
|
2726
|
+
totalApy: number;
|
|
2727
|
+
} | null;
|
|
2728
|
+
}>;
|
|
2729
|
+
};
|
|
2606
2730
|
type ApiValidatorMinimalFragment = {
|
|
2607
2731
|
__typename?: 'GqlValidator';
|
|
2608
2732
|
id: `0x${string}`;
|
|
@@ -3430,6 +3554,24 @@ type GetUserValidatorInformationQuery = {
|
|
|
3430
3554
|
}>;
|
|
3431
3555
|
};
|
|
3432
3556
|
};
|
|
3557
|
+
type GetBendVaultsQueryVariables = Exact<{
|
|
3558
|
+
[key: string]: never;
|
|
3559
|
+
}>;
|
|
3560
|
+
type GetBendVaultsQuery = {
|
|
3561
|
+
__typename?: 'Query';
|
|
3562
|
+
bendVaults: Array<{
|
|
3563
|
+
__typename?: 'BendVaultResponse';
|
|
3564
|
+
vaultAddress: `0x${string}`;
|
|
3565
|
+
loanTokenAddress: `0x${string}`;
|
|
3566
|
+
dynamicData?: {
|
|
3567
|
+
__typename?: 'BendVaultDynamicData';
|
|
3568
|
+
totalApy: number;
|
|
3569
|
+
nativeApy: number;
|
|
3570
|
+
platformFee: number;
|
|
3571
|
+
performanceFee: number;
|
|
3572
|
+
} | null;
|
|
3573
|
+
}>;
|
|
3574
|
+
};
|
|
3433
3575
|
declare const ApiMinimalVaultIncentive: _apollo_client.DocumentNode;
|
|
3434
3576
|
declare const ApiValidatorMinimal: _apollo_client.DocumentNode;
|
|
3435
3577
|
declare const ApiVaultIncentive: _apollo_client.DocumentNode;
|
|
@@ -3441,6 +3583,7 @@ declare const ApiValidatorIncentive: _apollo_client.DocumentNode;
|
|
|
3441
3583
|
declare const ApiValidatorInList: _apollo_client.DocumentNode;
|
|
3442
3584
|
declare const ApiValidatorBlockUptime: _apollo_client.DocumentNode;
|
|
3443
3585
|
declare const GetVaults: _apollo_client.DocumentNode;
|
|
3586
|
+
declare const GetHeroEarnVaults: _apollo_client.DocumentNode;
|
|
3444
3587
|
declare const GetValidator: _apollo_client.DocumentNode;
|
|
3445
3588
|
declare const GetValidators: _apollo_client.DocumentNode;
|
|
3446
3589
|
declare const GetVaultValidators: _apollo_client.DocumentNode;
|
|
@@ -3451,6 +3594,7 @@ declare const GetVaultHistory: _apollo_client.DocumentNode;
|
|
|
3451
3594
|
declare const GetSWberaVaultMetadata: _apollo_client.DocumentNode;
|
|
3452
3595
|
declare const GetSWberaVaultSnapshots: _apollo_client.DocumentNode;
|
|
3453
3596
|
declare const GetUserValidatorInformation: _apollo_client.DocumentNode;
|
|
3597
|
+
declare const GetBendVaults: _apollo_client.DocumentNode;
|
|
3454
3598
|
interface PossibleTypesResultData {
|
|
3455
3599
|
possibleTypes: {
|
|
3456
3600
|
[key: string]: string[];
|
|
@@ -3458,4 +3602,4 @@ interface PossibleTypesResultData {
|
|
|
3458
3602
|
}
|
|
3459
3603
|
declare const result: PossibleTypesResultData;
|
|
3460
3604
|
|
|
3461
|
-
export { ApiMinimalVaultIncentive, type ApiMinimalVaultIncentiveFragment, ApiRewardAllocationWeight, type ApiRewardAllocationWeightFragment, ApiValidator, ApiValidatorBlockUptime, type ApiValidatorBlockUptimeFragment, type ApiValidatorFragment, ApiValidatorInList, type ApiValidatorInListFragment, ApiValidatorIncentive, type ApiValidatorIncentiveFragment, ApiValidatorMinimal, type ApiValidatorMinimalFragment, ApiValidatorRewardAllocationWeight, type ApiValidatorRewardAllocationWeightFragment, ApiVault, type ApiVaultFragment, ApiVaultIncentive, type ApiVaultIncentiveFragment, type BendVaultDynamicData, type BendVaultResponse, type Exact, GetRewardVault, type GetRewardVaultQuery, type GetRewardVaultQueryVariables, GetSWberaVaultMetadata, type GetSWberaVaultMetadataQuery, type GetSWberaVaultMetadataQueryVariables, GetSWberaVaultSnapshots, type GetSWberaVaultSnapshotsQuery, type GetSWberaVaultSnapshotsQueryVariables, GetUserValidatorInformation, type GetUserValidatorInformationQuery, type GetUserValidatorInformationQueryVariables, GetUserVaults, type GetUserVaultsQuery, type GetUserVaultsQueryVariables, GetValidator, type GetValidatorQuery, type GetValidatorQueryVariables, GetValidators, type GetValidatorsQuery, type GetValidatorsQueryVariables, GetVaultHistory, type GetVaultHistoryQuery, type GetVaultHistoryQueryVariables, GetVaultValidators, type GetVaultValidatorsQuery, type GetVaultValidatorsQueryVariables, GetVaults, type GetVaultsQuery, type GetVaultsQueryVariables, GlobalData, type GlobalDataQuery, type GlobalDataQueryVariables, type GqlBalancePoolAprItem, type GqlBalancePoolAprSubItem, GqlChain, type GqlDefaultRewardAllocation, type GqlDefaultRewardAllocationWeight, type GqlGlobalInfo, type GqlGraphTraversalConfigInput, type GqlHistoricalTokenPrice, type GqlHistoricalTokenPriceEntry, type GqlIncentive, type GqlLatestSyncedBlocks, type GqlNestedPool, type GqlPagination, type GqlPoolAddRemoveEventV3, type GqlPoolAggregator, type GqlPoolApr, type GqlPoolAprItem, GqlPoolAprItemType, type GqlPoolAprRange, type GqlPoolAprTotal, type GqlPoolAprValue, type GqlPoolBase, type GqlPoolBatchSwap, type GqlPoolBatchSwapPool, type GqlPoolBatchSwapSwap, type GqlPoolComposableStable, type GqlPoolComposableStableNested, type GqlPoolDynamicData, type GqlPoolElement, type GqlPoolEvent, type GqlPoolEventAmount, GqlPoolEventType, GqlPoolEventsDataRange, type GqlPoolEventsFilter, type GqlPoolFilter, GqlPoolFilterCategory, type GqlPoolFx, type GqlPoolGyro, type GqlPoolInvestConfig, type GqlPoolInvestOption, type GqlPoolJoinExit, type GqlPoolJoinExitAmount, type GqlPoolJoinExitFilter, GqlPoolJoinExitType, type GqlPoolLiquidityBootstrapping, type GqlPoolMetaStable, type GqlPoolMinimal, type GqlPoolNestedUnion, GqlPoolNestingType, GqlPoolOrderBy, GqlPoolOrderDirection, type GqlPoolSnapshot, GqlPoolSnapshotDataRange, type GqlPoolStable, type GqlPoolStableComposablePoolData, type GqlPoolSwap, type GqlPoolSwapEventCowAmm, type GqlPoolSwapEventV3, type GqlPoolSwapFilter, type GqlPoolTimePeriod, type GqlPoolToken, type GqlPoolTokenBase, type GqlPoolTokenComposableStable, type GqlPoolTokenComposableStableNestedUnion, type GqlPoolTokenDetail, type GqlPoolTokenDisplay, type GqlPoolTokenExpanded, type GqlPoolTokenUnion, GqlPoolType, type GqlPoolUnion, type GqlPoolUserBalance, type GqlPoolUserSwapVolume, type GqlPoolWeighted, type GqlPoolWithdrawConfig, type GqlPoolWithdrawOption, type GqlPriceImpact, type GqlPriceRateProviderData, type GqlPriceRateProviderUpgradeableComponent, type GqlProtocolMetricsAggregated, type GqlProtocolMetricsChain, type GqlRelicSnapshot, type GqlRewardVault, type GqlRewardVaultDynamicData, type GqlRewardVaultFilter, type GqlRewardVaultIncentive, GqlRewardVaultIncentiveOrderBy, GqlRewardVaultIncentiveOrderDirection, type GqlRewardVaultMetadata, GqlRewardVaultOrderBy, GqlRewardVaultOrderDirection, type GqlRewardVaultSnapshot, GqlRewardVaultSnapshotDataRange, GqlRewardVaultSnapshotResolution, type GqlRewardVaultWhitelistedToken, type GqlSWberaVaultMetadata, GqlSWberaVaultMetadataResolution, type GqlSWberaVaultSnapshot, type GqlSorCallData, type GqlSorGetSwapPaths, type GqlSorGetSwapsResponse, type GqlSorPath, type GqlSorSwap, type GqlSorSwapOptionsInput, type GqlSorSwapRoute, type GqlSorSwapRouteHop, GqlSorSwapType, type GqlSwapCallDataInput, type GqlToken, type GqlTokenAmountHumanReadable, type GqlTokenCandlestickChartDataItem, GqlTokenChartDataRange, type GqlTokenData, type GqlTokenDynamicData, type GqlTokenMutationResult, type GqlTokenPrice, type GqlTokenPriceChartDataItem, GqlTokenType, type GqlUserBgtBalance, type GqlUserPoolBalance, type GqlUserSwapVolumeFilter, type GqlUserVaultDeposit, type GqlUserVaultDepositMinimal, GqlUserVaultDepositOrderBy, GqlUserVaultDepositOrderDirection, type GqlValidator, type GqlValidatorBlockUptime, GqlValidatorBlockUptimeStatus, type GqlValidatorBoost, GqlValidatorBoostOrderBy, GqlValidatorBoostOrderDirection, type GqlValidatorCommissionHistory, type GqlValidatorDynamicData, type GqlValidatorFilter, type GqlValidatorInList, type GqlValidatorIncentive, type GqlValidatorMetadata, GqlValidatorOrderBy, GqlValidatorOrderDirection, type GqlValidatorRewardAllocationWeight, type GqlValidatorStats, GqlVaultSnapshotDataRange, type Hook, type HookData, type Incremental, type InputMaybe, type MakeEmpty, type MakeMaybe, type MakeOptional, type Maybe, type PaginatedRewardVaultIncentivesResponse, type PaginatedRewardVaultsResponse, type PaginatedUserVaultDepositsResponse, type PaginatedValidatorBlockUptimesResponse, type PaginatedValidatorBoostsResponse, type PaginatedValidatorsResponse, type PossibleTypesResultData, type Query, type QueryBendVaultArgs, type QueryHooksArgs, type QueryPolGetActiveIncentivesArgs, type QueryPolGetGlobalInfoArgs, type QueryPolGetRewardVaultArgs, type QueryPolGetRewardVaultSnapshotsArgs, type QueryPolGetRewardVaultsArgs, type QueryPolGetSWberaVaultMetadataArgs, type QueryPolGetSWberaVaultSnapshotsArgs, type QueryPolGetTopVaultDepositsArgs, type QueryPolGetUserVaultDepositsArgs, type QueryPolGetValidatorArgs, type QueryPolGetValidatorBlockUptimesArgs, type QueryPolGetValidatorBoostsArgs, type QueryPolGetValidatorsArgs, type QueryPoolEventsArgs, type QueryPoolGetAggregatorPoolsArgs, type QueryPoolGetEventsArgs, type QueryPoolGetPoolArgs, type QueryPoolGetPoolsArgs, type QueryPoolGetPoolsCountArgs, type QueryPoolGetSnapshotsArgs, type QueryProtocolMetricsAggregatedArgs, type QueryProtocolMetricsChainArgs, type QuerySorGetSwapPathsArgs, type QuerySorGetSwapsArgs, type QueryTokenGetCurrentPriceArgs, type QueryTokenGetCurrentPricesArgs, type QueryTokenGetHistoricalPricesArgs, type QueryTokenGetTokenArgs, type QueryTokenGetTokenDynamicDataArgs, type QueryTokenGetTokensArgs, type QueryTokenGetTokensDynamicDataArgs, type QueryUserGetPoolBalancesArgs, type QueryUserGetPoolJoinExitsArgs, type QueryUserGetSwapsArgs, type Scalars, type Token, result as default };
|
|
3605
|
+
export { ApiMinimalVaultIncentive, type ApiMinimalVaultIncentiveFragment, ApiRewardAllocationWeight, type ApiRewardAllocationWeightFragment, ApiValidator, ApiValidatorBlockUptime, type ApiValidatorBlockUptimeFragment, type ApiValidatorFragment, ApiValidatorInList, type ApiValidatorInListFragment, ApiValidatorIncentive, type ApiValidatorIncentiveFragment, ApiValidatorMinimal, type ApiValidatorMinimalFragment, ApiValidatorRewardAllocationWeight, type ApiValidatorRewardAllocationWeightFragment, ApiVault, type ApiVaultFragment, ApiVaultIncentive, type ApiVaultIncentiveFragment, type BendVaultDynamicData, type BendVaultResponse, type Exact, GetBendVaults, type GetBendVaultsQuery, type GetBendVaultsQueryVariables, GetHeroEarnVaults, type GetHeroEarnVaultsQuery, type GetHeroEarnVaultsQueryVariables, GetRewardVault, type GetRewardVaultQuery, type GetRewardVaultQueryVariables, GetSWberaVaultMetadata, type GetSWberaVaultMetadataQuery, type GetSWberaVaultMetadataQueryVariables, GetSWberaVaultSnapshots, type GetSWberaVaultSnapshotsQuery, type GetSWberaVaultSnapshotsQueryVariables, GetUserValidatorInformation, type GetUserValidatorInformationQuery, type GetUserValidatorInformationQueryVariables, GetUserVaults, type GetUserVaultsQuery, type GetUserVaultsQueryVariables, GetValidator, type GetValidatorQuery, type GetValidatorQueryVariables, GetValidators, type GetValidatorsQuery, type GetValidatorsQueryVariables, GetVaultHistory, type GetVaultHistoryQuery, type GetVaultHistoryQueryVariables, GetVaultValidators, type GetVaultValidatorsQuery, type GetVaultValidatorsQueryVariables, GetVaults, type GetVaultsQuery, type GetVaultsQueryVariables, GlobalData, type GlobalDataQuery, type GlobalDataQueryVariables, type GqlBalancePoolAprItem, type GqlBalancePoolAprSubItem, GqlChain, type GqlDefaultRewardAllocation, type GqlDefaultRewardAllocationWeight, type GqlGlobalInfo, type GqlGraphTraversalConfigInput, type GqlHistoricalTokenPrice, type GqlHistoricalTokenPriceEntry, type GqlIncentive, type GqlLatestSyncedBlocks, type GqlNestedPool, type GqlPagination, type GqlPoolAddRemoveEventV3, type GqlPoolAggregator, type GqlPoolApr, type GqlPoolAprItem, GqlPoolAprItemType, type GqlPoolAprRange, type GqlPoolAprTotal, type GqlPoolAprValue, type GqlPoolBase, type GqlPoolBatchSwap, type GqlPoolBatchSwapPool, type GqlPoolBatchSwapSwap, type GqlPoolComposableStable, type GqlPoolComposableStableNested, type GqlPoolDynamicData, type GqlPoolElement, type GqlPoolEvent, type GqlPoolEventAmount, GqlPoolEventType, GqlPoolEventsDataRange, type GqlPoolEventsFilter, type GqlPoolFilter, GqlPoolFilterCategory, type GqlPoolFx, type GqlPoolGyro, type GqlPoolInvestConfig, type GqlPoolInvestOption, type GqlPoolJoinExit, type GqlPoolJoinExitAmount, type GqlPoolJoinExitFilter, GqlPoolJoinExitType, type GqlPoolLiquidityBootstrapping, type GqlPoolMetaStable, type GqlPoolMinimal, type GqlPoolNestedUnion, GqlPoolNestingType, GqlPoolOrderBy, GqlPoolOrderDirection, type GqlPoolSnapshot, GqlPoolSnapshotDataRange, type GqlPoolStable, type GqlPoolStableComposablePoolData, type GqlPoolSwap, type GqlPoolSwapEventCowAmm, type GqlPoolSwapEventV3, type GqlPoolSwapFilter, type GqlPoolTimePeriod, type GqlPoolToken, type GqlPoolTokenBase, type GqlPoolTokenComposableStable, type GqlPoolTokenComposableStableNestedUnion, type GqlPoolTokenDetail, type GqlPoolTokenDisplay, type GqlPoolTokenExpanded, type GqlPoolTokenUnion, GqlPoolType, type GqlPoolUnion, type GqlPoolUserBalance, type GqlPoolUserSwapVolume, type GqlPoolWeighted, type GqlPoolWithdrawConfig, type GqlPoolWithdrawOption, type GqlPriceImpact, type GqlPriceRateProviderData, type GqlPriceRateProviderUpgradeableComponent, type GqlProtocolMetricsAggregated, type GqlProtocolMetricsChain, type GqlRelicSnapshot, type GqlRewardVault, type GqlRewardVaultDynamicData, type GqlRewardVaultFilter, type GqlRewardVaultIncentive, GqlRewardVaultIncentiveOrderBy, GqlRewardVaultIncentiveOrderDirection, type GqlRewardVaultMetadata, GqlRewardVaultOrderBy, GqlRewardVaultOrderDirection, type GqlRewardVaultSnapshot, GqlRewardVaultSnapshotDataRange, GqlRewardVaultSnapshotResolution, type GqlRewardVaultWhitelistedToken, type GqlSWberaVaultMetadata, GqlSWberaVaultMetadataResolution, type GqlSWberaVaultSnapshot, type GqlSorCallData, type GqlSorGetSwapPaths, type GqlSorGetSwapsResponse, type GqlSorPath, type GqlSorSwap, type GqlSorSwapOptionsInput, type GqlSorSwapRoute, type GqlSorSwapRouteHop, GqlSorSwapType, type GqlSwapCallDataInput, type GqlToken, type GqlTokenAmountHumanReadable, type GqlTokenCandlestickChartDataItem, GqlTokenChartDataRange, type GqlTokenData, type GqlTokenDynamicData, type GqlTokenMutationResult, type GqlTokenPrice, type GqlTokenPriceChartDataItem, GqlTokenType, type GqlUserBgtBalance, type GqlUserPoolBalance, type GqlUserSwapVolumeFilter, type GqlUserVaultDeposit, type GqlUserVaultDepositMinimal, GqlUserVaultDepositOrderBy, GqlUserVaultDepositOrderDirection, type GqlValidator, type GqlValidatorBlockUptime, GqlValidatorBlockUptimeStatus, type GqlValidatorBoost, GqlValidatorBoostOrderBy, GqlValidatorBoostOrderDirection, type GqlValidatorCommissionHistory, type GqlValidatorDynamicData, type GqlValidatorFilter, type GqlValidatorInList, type GqlValidatorIncentive, type GqlValidatorMetadata, GqlValidatorOrderBy, GqlValidatorOrderDirection, type GqlValidatorRewardAllocationWeight, type GqlValidatorStats, GqlVaultSnapshotDataRange, type Hook, type HookData, type Incremental, type InputMaybe, type MakeEmpty, type MakeMaybe, type MakeOptional, type Maybe, type PaginatedRewardVaultIncentivesResponse, type PaginatedRewardVaultsResponse, type PaginatedUserVaultDepositsResponse, type PaginatedValidatorBlockUptimesResponse, type PaginatedValidatorBoostsResponse, type PaginatedValidatorsResponse, type PossibleTypesResultData, type Query, type QueryBendVaultArgs, type QueryHooksArgs, type QueryPolGetActiveIncentivesArgs, type QueryPolGetGlobalInfoArgs, type QueryPolGetRewardVaultArgs, type QueryPolGetRewardVaultSnapshotsArgs, type QueryPolGetRewardVaultsArgs, type QueryPolGetSWberaVaultMetadataArgs, type QueryPolGetSWberaVaultSnapshotsArgs, type QueryPolGetTopVaultDepositsArgs, type QueryPolGetUserVaultDepositsArgs, type QueryPolGetValidatorArgs, type QueryPolGetValidatorBlockUptimesArgs, type QueryPolGetValidatorBoostsArgs, type QueryPolGetValidatorsArgs, type QueryPoolEventsArgs, type QueryPoolGetAggregatorPoolsArgs, type QueryPoolGetEventsArgs, type QueryPoolGetPoolArgs, type QueryPoolGetPoolsArgs, type QueryPoolGetPoolsCountArgs, type QueryPoolGetSnapshotsArgs, type QueryProtocolMetricsAggregatedArgs, type QueryProtocolMetricsChainArgs, type QuerySorGetSwapPathsArgs, type QuerySorGetSwapsArgs, type QueryTokenGetCurrentPriceArgs, type QueryTokenGetCurrentPricesArgs, type QueryTokenGetHistoricalPricesArgs, type QueryTokenGetTokenArgs, type QueryTokenGetTokenDynamicDataArgs, type QueryTokenGetTokensArgs, type QueryTokenGetTokensDynamicDataArgs, type QueryUserGetPoolBalancesArgs, type QueryUserGetPoolJoinExitsArgs, type QueryUserGetSwapsArgs, type Scalars, type Token, result as default };
|
package/dist/pol/api.codegen.mjs
CHANGED
|
@@ -436,6 +436,36 @@ var GetVaults = gql`
|
|
|
436
436
|
}
|
|
437
437
|
}
|
|
438
438
|
${ApiVault}`;
|
|
439
|
+
var GetHeroEarnVaults = gql`
|
|
440
|
+
query GetHeroEarnVaults($bestAprExcludedAddresses: [String!]) {
|
|
441
|
+
bestApr: polGetRewardVaults(
|
|
442
|
+
where: {vaultAddressNotIn: $bestAprExcludedAddresses}
|
|
443
|
+
first: 2
|
|
444
|
+
orderBy: apr
|
|
445
|
+
orderDirection: desc
|
|
446
|
+
) {
|
|
447
|
+
vaults {
|
|
448
|
+
...ApiVault
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
bendRewardVault: polGetRewardVaults(
|
|
452
|
+
where: {protocolsIn: ["bend"]}
|
|
453
|
+
first: 1
|
|
454
|
+
orderBy: apr
|
|
455
|
+
orderDirection: desc
|
|
456
|
+
) {
|
|
457
|
+
vaults {
|
|
458
|
+
...ApiVault
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
bendVaults {
|
|
462
|
+
vaultAddress
|
|
463
|
+
dynamicData {
|
|
464
|
+
totalApy
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
${ApiVault}`;
|
|
439
469
|
var GetValidator = gql`
|
|
440
470
|
query GetValidator($id: String!, $chain: GqlChain!) {
|
|
441
471
|
validator: polGetValidator(validatorId: $id, chain: $chain) {
|
|
@@ -600,6 +630,20 @@ var GetUserValidatorInformation = gql`
|
|
|
600
630
|
}
|
|
601
631
|
}
|
|
602
632
|
`;
|
|
633
|
+
var GetBendVaults = gql`
|
|
634
|
+
query GetBendVaults {
|
|
635
|
+
bendVaults {
|
|
636
|
+
vaultAddress
|
|
637
|
+
loanTokenAddress
|
|
638
|
+
dynamicData {
|
|
639
|
+
totalApy
|
|
640
|
+
nativeApy
|
|
641
|
+
platformFee
|
|
642
|
+
performanceFee
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
`;
|
|
603
647
|
var result = {
|
|
604
648
|
"possibleTypes": {
|
|
605
649
|
"GqlIncentive": [
|
|
@@ -663,6 +707,8 @@ export {
|
|
|
663
707
|
ApiValidatorRewardAllocationWeight,
|
|
664
708
|
ApiVault,
|
|
665
709
|
ApiVaultIncentive,
|
|
710
|
+
GetBendVaults,
|
|
711
|
+
GetHeroEarnVaults,
|
|
666
712
|
GetRewardVault,
|
|
667
713
|
GetSWberaVaultMetadata,
|
|
668
714
|
GetSWberaVaultSnapshots,
|