@berachain/graphql 0.4.16-beta.4 → 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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Berachain Foundation
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -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 };
@@ -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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@berachain/graphql",
3
- "version": "0.4.16-beta.4",
3
+ "version": "0.4.16-beta.6",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -8,48 +8,31 @@
8
8
  "author": "Berachain",
9
9
  "license": "MIT",
10
10
  "sideEffects": false,
11
- "scripts": {
12
- "prebuild": "pnpm codegen",
13
- "build": "tsup",
14
- "precheck-types": "pnpm codegen",
15
- "clean": "git clean -xdf dist .turbo node_modules *.codegen.ts src/api",
16
- "lint": "biome lint",
17
- "dev": "pnpm codegen:api && tsup --watch",
18
- "format": "biome format --write .",
19
- "codegen:api": "node ./scripts/generate-api-types.mjs",
20
- "codegen:graphql": "graphql-codegen",
21
- "codegen": "pnpm codegen:api && pnpm codegen:graphql",
22
- "postcodegen": "pnpm format",
23
- "postbuild": "pnpm format",
24
- "codegen:watch": "pnpm codegen:api && graphql-codegen --watch",
25
- "prepublishOnly": "pnpm build -- --cjs --esm --minify",
26
- "postpublish": "pnpm format"
27
- },
28
11
  "dependencies": {
29
- "@apollo/client": "catalog:",
30
- "viem": "catalog:"
12
+ "@apollo/client": "4.1.6",
13
+ "viem": "2.45.0"
31
14
  },
32
15
  "peerDependencies": {
33
- "@apollo/client": "catalog:peer",
34
- "graphql": "catalog:peer"
16
+ "@apollo/client": "^4.0",
17
+ "graphql": "^16.8"
35
18
  },
36
19
  "devDependencies": {
37
- "@berachain/config": "workspace:^",
38
- "@biomejs/biome": "catalog:",
39
- "@graphql-codegen/cli": "catalog:",
40
- "@graphql-codegen/client-preset": "catalog:",
41
- "@graphql-codegen/fragment-matcher": "catalog:",
42
- "@graphql-codegen/near-operation-file-preset": "catalog:",
43
- "@graphql-codegen/typescript": "catalog:",
44
- "@graphql-codegen/typescript-document-nodes": "catalog:",
45
- "@graphql-codegen/typescript-operations": "catalog:",
46
- "@graphql-codegen/typescript-react-apollo": "catalog:",
47
- "@types/node": "catalog:",
48
- "dotenv": "catalog:",
49
- "graphql": "catalog:",
50
- "openapi-typescript": "catalog:",
51
- "tsup": "catalog:",
52
- "typescript": "catalog:"
20
+ "@biomejs/biome": "2.4.10",
21
+ "@graphql-codegen/cli": "5.0.7",
22
+ "@graphql-codegen/client-preset": "4.7.0",
23
+ "@graphql-codegen/fragment-matcher": "5.1.0",
24
+ "@graphql-codegen/near-operation-file-preset": "3.0.0",
25
+ "@graphql-codegen/typescript": "5.0.9",
26
+ "@graphql-codegen/typescript-document-nodes": "5.0.9",
27
+ "@graphql-codegen/typescript-operations": "5.0.9",
28
+ "@graphql-codegen/typescript-react-apollo": "4.4.1",
29
+ "@types/node": "24.1.0",
30
+ "dotenv": "16.6.1",
31
+ "graphql": "16.13.2",
32
+ "openapi-typescript": "7.13.0",
33
+ "tsup": "8.5.1",
34
+ "typescript": "5.5.4",
35
+ "@berachain/config": "^0.1.14"
53
36
  },
54
37
  "exports": {
55
38
  "./governance": {
@@ -128,5 +111,20 @@
128
111
  "./dist/api/api.codegen.d.ts"
129
112
  ]
130
113
  }
114
+ },
115
+ "scripts": {
116
+ "prebuild": "pnpm codegen",
117
+ "build": "tsup",
118
+ "precheck-types": "pnpm codegen",
119
+ "clean": "git clean -xdf dist .turbo node_modules *.codegen.ts src/api",
120
+ "lint": "biome lint",
121
+ "dev": "pnpm codegen:api && tsup --watch",
122
+ "format": "biome format --write .",
123
+ "codegen:api": "node ./scripts/generate-api-types.mjs",
124
+ "codegen:graphql": "graphql-codegen",
125
+ "codegen": "pnpm codegen:api && pnpm codegen:graphql",
126
+ "postcodegen": "pnpm format",
127
+ "postbuild": "pnpm format",
128
+ "codegen:watch": "pnpm codegen:api && graphql-codegen --watch"
131
129
  }
132
- }
130
+ }