@berachain/graphql 0.4.10-beta.1 → 0.4.10-beta.3
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/api/api.cjs +1 -0
- package/dist/api/api.d.cts +473 -0
- package/dist/api/api.d.ts +473 -0
- package/dist/api/api.mjs +0 -0
- package/dist/dex/api.codegen.cjs +5 -5
- package/dist/dex/api.codegen.d.cts +81 -82
- package/dist/dex/api.codegen.d.ts +81 -82
- package/dist/dex/api.codegen.mjs +4 -4
- package/dist/dex/subgraph.codegen.cjs +3 -15
- package/dist/dex/subgraph.codegen.d.cts +1 -15
- package/dist/dex/subgraph.codegen.d.ts +1 -15
- package/dist/dex/subgraph.codegen.mjs +4 -16
- package/dist/honey/honey.codegen.cjs +0 -5
- package/dist/honey/honey.codegen.d.cts +0 -10
- package/dist/honey/honey.codegen.d.ts +0 -10
- package/dist/honey/honey.codegen.mjs +0 -5
- package/dist/pol/api.codegen.cjs +23 -23
- package/dist/pol/api.codegen.d.cts +81 -82
- package/dist/pol/api.codegen.d.ts +81 -82
- package/dist/pol/api.codegen.mjs +10 -10
- package/dist/pol/subgraph.codegen.cjs +0 -3
- package/dist/pol/subgraph.codegen.d.cts +0 -7
- package/dist/pol/subgraph.codegen.d.ts +0 -7
- package/dist/pol/subgraph.codegen.mjs +0 -3
- package/package.json +28 -13
|
@@ -268,6 +268,77 @@ type GqlPoolAddRemoveEventV3 = GqlPoolEvent & {
|
|
|
268
268
|
/** The value of the event in USD. */
|
|
269
269
|
valueUSD: Scalars['Float']['output'];
|
|
270
270
|
};
|
|
271
|
+
type GqlPoolAggregator = {
|
|
272
|
+
__typename?: 'GqlPoolAggregator';
|
|
273
|
+
/** The contract address of the pool. */
|
|
274
|
+
address: Scalars['Bytes']['output'];
|
|
275
|
+
/** Data specific to gyro/fx pools */
|
|
276
|
+
alpha?: Maybe<Scalars['String']['output']>;
|
|
277
|
+
/** Data specific to stable pools */
|
|
278
|
+
amp?: Maybe<Scalars['BigInt']['output']>;
|
|
279
|
+
/** Data specific to gyro/fx pools */
|
|
280
|
+
beta?: Maybe<Scalars['String']['output']>;
|
|
281
|
+
/** Data specific to gyro pools */
|
|
282
|
+
c?: Maybe<Scalars['String']['output']>;
|
|
283
|
+
/** The chain on which the pool is deployed */
|
|
284
|
+
chain: GqlChain;
|
|
285
|
+
/** The timestamp the pool was created. */
|
|
286
|
+
createTime: Scalars['Int']['output'];
|
|
287
|
+
/** Data specific to gyro pools */
|
|
288
|
+
dSq?: Maybe<Scalars['String']['output']>;
|
|
289
|
+
/** The decimals of the BPT, usually 18 */
|
|
290
|
+
decimals: Scalars['Int']['output'];
|
|
291
|
+
/** Data specific to fx pools */
|
|
292
|
+
delta?: Maybe<Scalars['String']['output']>;
|
|
293
|
+
/** Dynamic data such as token balances, swap fees or volume */
|
|
294
|
+
dynamicData: GqlPoolDynamicData;
|
|
295
|
+
/** Data specific to fx pools */
|
|
296
|
+
epsilon?: Maybe<Scalars['String']['output']>;
|
|
297
|
+
/** The factory contract address from which the pool was created. */
|
|
298
|
+
factory?: Maybe<Scalars['Bytes']['output']>;
|
|
299
|
+
/** The pool id. This is equal to the address for protocolVersion 3 pools */
|
|
300
|
+
id: Scalars['ID']['output'];
|
|
301
|
+
/** Data specific to gyro/fx pools */
|
|
302
|
+
lambda?: Maybe<Scalars['String']['output']>;
|
|
303
|
+
/** The name of the pool as per contract */
|
|
304
|
+
name: Scalars['String']['output'];
|
|
305
|
+
/** The wallet address of the owner of the pool. Pool owners can set certain properties like swapFees or AMP. */
|
|
306
|
+
owner?: Maybe<Scalars['Bytes']['output']>;
|
|
307
|
+
/** Returns all pool tokens, including BPTs and nested pools if there are any. Only one nested level deep. */
|
|
308
|
+
poolTokens: Array<GqlPoolTokenDetail>;
|
|
309
|
+
/** The protocol version on which the pool is deployed, 1, 2 or 3 */
|
|
310
|
+
protocolVersion: Scalars['Int']['output'];
|
|
311
|
+
/** Data specific to gyro pools */
|
|
312
|
+
root3Alpha?: Maybe<Scalars['String']['output']>;
|
|
313
|
+
/** Data specific to gyro pools */
|
|
314
|
+
s?: Maybe<Scalars['String']['output']>;
|
|
315
|
+
/** Data specific to gyro pools */
|
|
316
|
+
sqrtAlpha?: Maybe<Scalars['String']['output']>;
|
|
317
|
+
/** Data specific to gyro pools */
|
|
318
|
+
sqrtBeta?: Maybe<Scalars['String']['output']>;
|
|
319
|
+
/** The token symbol of the pool as per contract */
|
|
320
|
+
symbol: Scalars['String']['output'];
|
|
321
|
+
/** Data specific to gyro pools */
|
|
322
|
+
tauAlphaX?: Maybe<Scalars['String']['output']>;
|
|
323
|
+
/** Data specific to gyro pools */
|
|
324
|
+
tauAlphaY?: Maybe<Scalars['String']['output']>;
|
|
325
|
+
/** Data specific to gyro pools */
|
|
326
|
+
tauBetaX?: Maybe<Scalars['String']['output']>;
|
|
327
|
+
/** Data specific to gyro pools */
|
|
328
|
+
tauBetaY?: Maybe<Scalars['String']['output']>;
|
|
329
|
+
/** The pool type, such as weighted, stable, etc. */
|
|
330
|
+
type: GqlPoolType;
|
|
331
|
+
/** Data specific to gyro pools */
|
|
332
|
+
u?: Maybe<Scalars['String']['output']>;
|
|
333
|
+
/** Data specific to gyro pools */
|
|
334
|
+
v?: Maybe<Scalars['String']['output']>;
|
|
335
|
+
/** The version of the pool type. */
|
|
336
|
+
version: Scalars['Int']['output'];
|
|
337
|
+
/** Data specific to gyro pools */
|
|
338
|
+
w?: Maybe<Scalars['String']['output']>;
|
|
339
|
+
/** Data specific to gyro pools */
|
|
340
|
+
z?: Maybe<Scalars['String']['output']>;
|
|
341
|
+
};
|
|
271
342
|
type GqlPoolApr = {
|
|
272
343
|
__typename?: 'GqlPoolApr';
|
|
273
344
|
apr: GqlPoolAprValue;
|
|
@@ -2083,87 +2154,6 @@ type HookData = {
|
|
|
2083
2154
|
removeLiquidityFeePercentage?: Maybe<Scalars['String']['output']>;
|
|
2084
2155
|
swapFeePercentage?: Maybe<Scalars['String']['output']>;
|
|
2085
2156
|
};
|
|
2086
|
-
type Mutation = {
|
|
2087
|
-
__typename?: 'Mutation';
|
|
2088
|
-
cacheAverageBlockTime: Scalars['String']['output'];
|
|
2089
|
-
polSyncAllRewardVaultsFromSubgraph: Array<Scalars['String']['output']>;
|
|
2090
|
-
polSyncAllValidatorsFromSubgraph: Array<Scalars['String']['output']>;
|
|
2091
|
-
poolDeletePool: Scalars['String']['output'];
|
|
2092
|
-
poolInitOnChainDataForAllPools: Scalars['String']['output'];
|
|
2093
|
-
poolInitializeSnapshotsForPool: Scalars['String']['output'];
|
|
2094
|
-
poolLoadOnChainDataForAllPools: Scalars['String']['output'];
|
|
2095
|
-
poolLoadOnChainDataForPoolsWithActiveUpdates: Scalars['String']['output'];
|
|
2096
|
-
poolLoadSnapshotsForAllPools: Scalars['String']['output'];
|
|
2097
|
-
poolLoadSnapshotsForPools: Scalars['String']['output'];
|
|
2098
|
-
poolReloadAllPoolAprs: Scalars['String']['output'];
|
|
2099
|
-
poolReloadAllTokenNestedPoolIds: Scalars['String']['output'];
|
|
2100
|
-
poolSyncAllPoolsFromSubgraph: Array<Scalars['String']['output']>;
|
|
2101
|
-
poolSyncLatestSnapshotsForAllPools: Scalars['String']['output'];
|
|
2102
|
-
poolSyncNewPoolsFromSubgraph: Array<Scalars['String']['output']>;
|
|
2103
|
-
poolSyncPool: Scalars['String']['output'];
|
|
2104
|
-
poolSyncPoolAllTokensRelationship: Scalars['String']['output'];
|
|
2105
|
-
poolSyncSanityPoolData: Scalars['String']['output'];
|
|
2106
|
-
poolSyncSwapsForLast48Hours: Scalars['String']['output'];
|
|
2107
|
-
poolSyncTotalShares: Scalars['String']['output'];
|
|
2108
|
-
poolUpdateAprs: Scalars['String']['output'];
|
|
2109
|
-
poolUpdateLifetimeValuesForAllPools: Scalars['String']['output'];
|
|
2110
|
-
poolUpdateLiquidity24hAgoForAllPools: Scalars['String']['output'];
|
|
2111
|
-
poolUpdateLiquidityValuesForAllPools: Scalars['String']['output'];
|
|
2112
|
-
poolUpdateVolumeAndFeeValuesForAllPools: Scalars['String']['output'];
|
|
2113
|
-
protocolCacheMetrics: Scalars['String']['output'];
|
|
2114
|
-
tokenDeleteTokenType: Scalars['String']['output'];
|
|
2115
|
-
tokenReloadAllTokenTypes: Scalars['String']['output'];
|
|
2116
|
-
tokenReloadErc4626Tokens: Array<GqlTokenMutationResult>;
|
|
2117
|
-
tokenReloadTokenPrices?: Maybe<Scalars['Boolean']['output']>;
|
|
2118
|
-
tokenSyncLatestFxPrices: Scalars['String']['output'];
|
|
2119
|
-
tokenSyncTokenDefinitions: Scalars['String']['output'];
|
|
2120
|
-
userInitWalletBalancesForAllPools: Scalars['String']['output'];
|
|
2121
|
-
userInitWalletBalancesForPool: Scalars['String']['output'];
|
|
2122
|
-
userSyncBalance: Scalars['String']['output'];
|
|
2123
|
-
userSyncBalanceAllPools: Scalars['String']['output'];
|
|
2124
|
-
userSyncChangedWalletBalancesForAllPools: Scalars['String']['output'];
|
|
2125
|
-
};
|
|
2126
|
-
type MutationPoolDeletePoolArgs = {
|
|
2127
|
-
poolId: Scalars['String']['input'];
|
|
2128
|
-
};
|
|
2129
|
-
type MutationPoolInitializeSnapshotsForPoolArgs = {
|
|
2130
|
-
poolId: Scalars['String']['input'];
|
|
2131
|
-
};
|
|
2132
|
-
type MutationPoolLoadSnapshotsForPoolsArgs = {
|
|
2133
|
-
poolIds: Array<Scalars['String']['input']>;
|
|
2134
|
-
reload?: InputMaybe<Scalars['Boolean']['input']>;
|
|
2135
|
-
};
|
|
2136
|
-
type MutationPoolReloadAllPoolAprsArgs = {
|
|
2137
|
-
chain: GqlChain;
|
|
2138
|
-
};
|
|
2139
|
-
type MutationPoolSyncLatestSnapshotsForAllPoolsArgs = {
|
|
2140
|
-
chain: GqlChain;
|
|
2141
|
-
};
|
|
2142
|
-
type MutationPoolSyncPoolArgs = {
|
|
2143
|
-
poolId: Scalars['String']['input'];
|
|
2144
|
-
};
|
|
2145
|
-
type MutationPoolUpdateAprsArgs = {
|
|
2146
|
-
chain: GqlChain;
|
|
2147
|
-
};
|
|
2148
|
-
type MutationTokenDeleteTokenTypeArgs = {
|
|
2149
|
-
tokenAddress: Scalars['String']['input'];
|
|
2150
|
-
type: GqlTokenType;
|
|
2151
|
-
};
|
|
2152
|
-
type MutationTokenReloadErc4626TokensArgs = {
|
|
2153
|
-
chains: Array<GqlChain>;
|
|
2154
|
-
};
|
|
2155
|
-
type MutationTokenReloadTokenPricesArgs = {
|
|
2156
|
-
chains: Array<GqlChain>;
|
|
2157
|
-
};
|
|
2158
|
-
type MutationTokenSyncLatestFxPricesArgs = {
|
|
2159
|
-
chain: GqlChain;
|
|
2160
|
-
};
|
|
2161
|
-
type MutationUserInitWalletBalancesForPoolArgs = {
|
|
2162
|
-
poolId: Scalars['String']['input'];
|
|
2163
|
-
};
|
|
2164
|
-
type MutationUserSyncBalanceArgs = {
|
|
2165
|
-
poolId: Scalars['String']['input'];
|
|
2166
|
-
};
|
|
2167
2157
|
type PaginatedRewardVaultIncentivesResponse = {
|
|
2168
2158
|
__typename?: 'PaginatedRewardVaultIncentivesResponse';
|
|
2169
2159
|
incentives: Array<GqlRewardVaultIncentive>;
|
|
@@ -2230,6 +2220,8 @@ type Query = {
|
|
|
2230
2220
|
polGetVaultDurations: GqlVaultDurations;
|
|
2231
2221
|
/** Getting swap, add and remove events with paging */
|
|
2232
2222
|
poolEvents: Array<GqlPoolEvent>;
|
|
2223
|
+
/** Returns all pools for a given filter, specific for aggregators */
|
|
2224
|
+
poolGetAggregatorPools: Array<GqlPoolAggregator>;
|
|
2233
2225
|
/** Getting swap, add and remove events with range */
|
|
2234
2226
|
poolGetEvents: Array<GqlPoolEvent>;
|
|
2235
2227
|
/** Returns one pool. If a user address is provided, the user balances for the given pool will also be returned. */
|
|
@@ -2372,6 +2364,13 @@ type QueryPoolEventsArgs = {
|
|
|
2372
2364
|
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
2373
2365
|
where?: InputMaybe<GqlPoolEventsFilter>;
|
|
2374
2366
|
};
|
|
2367
|
+
type QueryPoolGetAggregatorPoolsArgs = {
|
|
2368
|
+
first?: InputMaybe<Scalars['Int']['input']>;
|
|
2369
|
+
orderBy?: InputMaybe<GqlPoolOrderBy>;
|
|
2370
|
+
orderDirection?: InputMaybe<GqlPoolOrderDirection>;
|
|
2371
|
+
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
2372
|
+
where?: InputMaybe<GqlPoolFilter>;
|
|
2373
|
+
};
|
|
2375
2374
|
type QueryPoolGetEventsArgs = {
|
|
2376
2375
|
chain: GqlChain;
|
|
2377
2376
|
poolId: Scalars['String']['input'];
|
|
@@ -3509,4 +3508,4 @@ interface PossibleTypesResultData {
|
|
|
3509
3508
|
}
|
|
3510
3509
|
declare const result: PossibleTypesResultData;
|
|
3511
3510
|
|
|
3512
|
-
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 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, type GqlValidatorBoostDelay, GqlValidatorBoostOrderBy, GqlValidatorBoostOrderDirection, type GqlValidatorCommissionDelay, type GqlValidatorCommissionHistory, type GqlValidatorDynamicData, type GqlValidatorFilter, type GqlValidatorInList, type GqlValidatorIncentive, type GqlValidatorMetadata, GqlValidatorOrderBy, GqlValidatorOrderDirection, type GqlValidatorRewardAllocationWeight, type GqlValidatorStats, type GqlVaultDurations, GqlVaultSnapshotDataRange, type Hook, type HookData, type Incremental, type InputMaybe, type MakeEmpty, type MakeMaybe, type MakeOptional, type Maybe, type
|
|
3511
|
+
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, type GqlValidatorBoostDelay, GqlValidatorBoostOrderBy, GqlValidatorBoostOrderDirection, type GqlValidatorCommissionDelay, type GqlValidatorCommissionHistory, type GqlValidatorDynamicData, type GqlValidatorFilter, type GqlValidatorInList, type GqlValidatorIncentive, type GqlValidatorMetadata, GqlValidatorOrderBy, GqlValidatorOrderDirection, type GqlValidatorRewardAllocationWeight, type GqlValidatorStats, type GqlVaultDurations, 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 QueryTokenGetCandlestickChartDataArgs, type QueryTokenGetCurrentPriceArgs, type QueryTokenGetCurrentPricesArgs, type QueryTokenGetHistoricalPricesArgs, type QueryTokenGetPriceChartDataArgs, type QueryTokenGetProtocolTokenPriceArgs, type QueryTokenGetRelativePriceChartDataArgs, 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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{gql as e}from"@apollo/client";var d=(t=>(t.Bepolia="BEPOLIA",t.Berachain="BERACHAIN",t))(d||{}),
|
|
1
|
+
import{gql as e}from"@apollo/client";var d=(t=>(t.Bepolia="BEPOLIA",t.Berachain="BERACHAIN",t))(d||{}),m=(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))(m||{}),g=(r=>(r.Add="ADD",r.Remove="REMOVE",r.Swap="SWAP",r))(g||{}),G=(r=>(r.NinetyDays="NINETY_DAYS",r.SevenDays="SEVEN_DAYS",r.ThirtyDays="THIRTY_DAYS",r))(G||{}),b=(s=>(s.BlackListed="BLACK_LISTED",s.Featured="FEATURED",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))(b||{}),A=(t=>(t.Exit="Exit",t.Join="Join",t))(A||{}),I=(r=>(r.HasOnlyPhantomBpt="HAS_ONLY_PHANTOM_BPT",r.HasSomePhantomBpt="HAS_SOME_PHANTOM_BPT",r.NoNesting="NO_NESTING",r))(I||{}),q=(o=>(o.Apr="apr",o.BgtApr="bgtApr",o.CombinedApr="combinedApr",o.Fees24h="fees24h",o.TotalLiquidity="totalLiquidity",o.TotalShares="totalShares",o.UserbalanceUsd="userbalanceUsd",o.Volume24h="volume24h",o))(q||{}),B=(t=>(t.Asc="asc",t.Desc="desc",t))(B||{}),P=(a=>(a.AllTime="ALL_TIME",a.NinetyDays="NINETY_DAYS",a.OneHundredEightyDays="ONE_HUNDRED_EIGHTY_DAYS",a.OneYear="ONE_YEAR",a.ThirtyDays="THIRTY_DAYS",a))(P||{}),k=(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))(k||{}),v=(r=>(r.AmountRemaining="amountRemaining",r.AmountRemainingUsd="amountRemainingUsd",r.IncentiveRate="incentiveRate",r))(v||{}),h=(t=>(t.Asc="asc",t.Desc="desc",t))(h||{}),_=(o=>(o.ActiveIncentivesRateUsd="activeIncentivesRateUsd",o.ActiveIncentivesValueUsd="activeIncentivesValueUsd",o.AllTimeBgtReceived="allTimeBGTReceived",o.Apr="apr",o.Apy="apy",o.BgtCapturePercentage="bgtCapturePercentage",o.Last24hBgtReceived="last24hBGTReceived",o.ProjectedApr="projectedApr",o))(_||{}),D=(t=>(t.Asc="asc",t.Desc="desc",t))(D||{}),M=(a=>(a.AllTime="ALL_TIME",a.NinetyDays="NINETY_DAYS",a.SevenDays="SEVEN_DAYS",a.SixtyDays="SIXTY_DAYS",a.ThirtyDays="THIRTY_DAYS",a))(M||{}),V=(t=>(t.Day="DAY",t.Hour="HOUR",t))(V||{}),T=(t=>(t.OneDay="ONE_DAY",t.SevenDays="SEVEN_DAYS",t))(T||{}),x=(t=>(t.ExactIn="EXACT_IN",t.ExactOut="EXACT_OUT",t))(x||{}),R=(a=>(a.NinetyDay="NINETY_DAY",a.OneHundredEightyDay="ONE_HUNDRED_EIGHTY_DAY",a.OneYear="ONE_YEAR",a.SevenDay="SEVEN_DAY",a.ThirtyDay="THIRTY_DAY",a))(R||{}),w=(r=>(r.Bpt="BPT",r.PhantomBpt="PHANTOM_BPT",r.WhiteListed="WHITE_LISTED",r))(w||{}),C=(y=>(y.Amount="amount",y))(C||{}),U=(t=>(t.Asc="asc",t.Desc="desc",t))(U||{}),E=(u=>(u.Inactive="INACTIVE",u.Offline="OFFLINE",u.Proposed="PROPOSED",u.Signed="SIGNED",u))(E||{}),$=(a=>(a.ActiveBoostAmount="activeBoostAmount",a.LatestBlock="latestBlock",a.LatestBlockTime="latestBlockTime",a.QueuedBoostAmount="queuedBoostAmount",a.QueuedDropBoostAmount="queuedDropBoostAmount",a))($||{}),f=(t=>(t.Asc="asc",t.Desc="desc",t))(f||{}),N=(n=>(n.ActiveBoostAmount="activeBoostAmount",n.AllTimeDistributedBgtAmount="allTimeDistributedBGTAmount",n.AllTimeEarnedBgtAmount="allTimeEarnedBGTAmount",n.Apy="apy",n.BgtCapturePercentage="bgtCapturePercentage",n.BoostApr="boostApr",n.CommissionOnIncentives="commissionOnIncentives",n.LastDayDistributedBgtAmount="lastDayDistributedBGTAmount",n.LastDayEarnedBgtAmount="lastDayEarnedBGTAmount",n.QueuedBoostAmount="queuedBoostAmount",n.QueuedDropBoostAmount="queuedDropBoostAmount",n.RewardRate="rewardRate",n.StakedBeraAmount="stakedBeraAmount",n.UsersActiveBoostCount="usersActiveBoostCount",n.UsersQueuedBoostCount="usersQueuedBoostCount",n))(N||{}),F=(t=>(t.Asc="asc",t.Desc="desc",t))(F||{}),W=(u=>(u.NinetyDays="NINETY_DAYS",u.SevenDays="SEVEN_DAYS",u.SixtyDays="SIXTY_DAYS",u.ThirtyDays="THIRTY_DAYS",u))(W||{}),J=e`
|
|
2
2
|
fragment ApiMinimalVaultIncentive on GqlRewardVaultIncentive {
|
|
3
3
|
remainingAmount
|
|
4
4
|
remainingAmountUsd
|
|
@@ -88,7 +88,7 @@ import{gql as e}from"@apollo/client";var d=(t=>(t.Bepolia="BEPOLIA",t.Berachain=
|
|
|
88
88
|
...ApiVaultIncentive
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
${Q}`,
|
|
91
|
+
${Q}`,H=e`
|
|
92
92
|
fragment ApiRewardAllocationWeight on GqlValidatorRewardAllocationWeight {
|
|
93
93
|
percentage
|
|
94
94
|
receivingVault {
|
|
@@ -119,7 +119,7 @@ import{gql as e}from"@apollo/client";var d=(t=>(t.Bepolia="BEPOLIA",t.Berachain=
|
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
${c}
|
|
122
|
-
${
|
|
122
|
+
${H}`,X=e`
|
|
123
123
|
fragment ApiValidatorRewardAllocationWeight on GqlValidatorRewardAllocationWeight {
|
|
124
124
|
percentage
|
|
125
125
|
receivingVault {
|
|
@@ -138,7 +138,7 @@ ${L}`,X=e`
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
|
-
`,
|
|
141
|
+
`,O=e`
|
|
142
142
|
fragment ApiValidatorIncentive on GqlValidatorIncentive {
|
|
143
143
|
tokenAddress
|
|
144
144
|
remainingAmount
|
|
@@ -152,7 +152,7 @@ ${L}`,X=e`
|
|
|
152
152
|
decimals
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
`,
|
|
155
|
+
`,L=e`
|
|
156
156
|
fragment ApiValidatorInList on GqlValidator {
|
|
157
157
|
...ApiValidatorMinimal
|
|
158
158
|
operator
|
|
@@ -174,7 +174,7 @@ ${L}`,X=e`
|
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
${c}
|
|
177
|
-
${
|
|
177
|
+
${O}`,Y=e`
|
|
178
178
|
fragment ApiValidatorBlockUptime on GqlValidatorBlockUptime {
|
|
179
179
|
isActive
|
|
180
180
|
isProposer
|
|
@@ -233,7 +233,7 @@ ${Y}`,tt=e`
|
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
|
-
${
|
|
236
|
+
${L}`,at=e`
|
|
237
237
|
query GetVaultValidators($vaultId: String!, $chain: GqlChain, $isActive: Boolean = true) {
|
|
238
238
|
validators: polGetValidators(
|
|
239
239
|
where: {vaultAddress: $vaultId, isActive: $isActive}
|
|
@@ -256,7 +256,7 @@ ${Y}`,tt=e`
|
|
|
256
256
|
...ApiVault
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
|
-
${p}`,
|
|
259
|
+
${p}`,rt=e`
|
|
260
260
|
query GlobalData($chain: GqlChain!) {
|
|
261
261
|
top3EmittingValidators: polGetValidators(
|
|
262
262
|
orderBy: bgtCapturePercentage
|
|
@@ -289,7 +289,7 @@ ${Y}`,tt=e`
|
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
291
|
}
|
|
292
|
-
${c}`,
|
|
292
|
+
${c}`,ot=e`
|
|
293
293
|
query GetUserVaults($userId: String!, $chain: GqlChain!) {
|
|
294
294
|
userVaultDeposits: polGetUserVaultDeposits(userAddress: $userId, chain: $chain) {
|
|
295
295
|
pagination {
|
|
@@ -355,4 +355,4 @@ ${Y}`,tt=e`
|
|
|
355
355
|
}
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
|
-
`,z={possibleTypes:{GqlIncentive:["GqlRewardVaultIncentive","GqlValidatorIncentive"],GqlPoolAprValue:["GqlPoolAprRange","GqlPoolAprTotal"],GqlPoolBase:["GqlPoolComposableStable","GqlPoolElement","GqlPoolFx","GqlPoolGyro","GqlPoolLiquidityBootstrapping","GqlPoolMetaStable","GqlPoolStable","GqlPoolWeighted"],GqlPoolEvent:["GqlPoolAddRemoveEventV3","GqlPoolSwapEventCowAmm","GqlPoolSwapEventV3"],GqlPoolNestedUnion:["GqlPoolComposableStableNested"],GqlPoolTokenBase:["GqlPoolToken","GqlPoolTokenComposableStable"],GqlPoolTokenComposableStableNestedUnion:["GqlPoolToken"],GqlPoolTokenUnion:["GqlPoolToken","GqlPoolTokenComposableStable"],GqlPoolUnion:["GqlPoolComposableStable","GqlPoolElement","GqlPoolFx","GqlPoolGyro","GqlPoolLiquidityBootstrapping","GqlPoolMetaStable","GqlPoolStable","GqlPoolWeighted"]}},ut=z;export{J as ApiMinimalVaultIncentive,
|
|
358
|
+
`,z={possibleTypes:{GqlIncentive:["GqlRewardVaultIncentive","GqlValidatorIncentive"],GqlPoolAprValue:["GqlPoolAprRange","GqlPoolAprTotal"],GqlPoolBase:["GqlPoolComposableStable","GqlPoolElement","GqlPoolFx","GqlPoolGyro","GqlPoolLiquidityBootstrapping","GqlPoolMetaStable","GqlPoolStable","GqlPoolWeighted"],GqlPoolEvent:["GqlPoolAddRemoveEventV3","GqlPoolSwapEventCowAmm","GqlPoolSwapEventV3"],GqlPoolNestedUnion:["GqlPoolComposableStableNested"],GqlPoolTokenBase:["GqlPoolToken","GqlPoolTokenComposableStable"],GqlPoolTokenComposableStableNestedUnion:["GqlPoolToken"],GqlPoolTokenUnion:["GqlPoolToken","GqlPoolTokenComposableStable"],GqlPoolUnion:["GqlPoolComposableStable","GqlPoolElement","GqlPoolFx","GqlPoolGyro","GqlPoolLiquidityBootstrapping","GqlPoolMetaStable","GqlPoolStable","GqlPoolWeighted"]}},ut=z;export{J as ApiMinimalVaultIncentive,H as ApiRewardAllocationWeight,S as ApiValidator,Y as ApiValidatorBlockUptime,L as ApiValidatorInList,O as ApiValidatorIncentive,c as ApiValidatorMinimal,X as ApiValidatorRewardAllocationWeight,p as ApiVault,Q as ApiVaultIncentive,et as GetRewardVault,lt as GetSWberaVaultMetadata,it as GetSWberaVaultSnapshots,st as GetUserValidatorInformation,ot as GetUserVaults,Z as GetValidator,tt as GetValidators,nt as GetVaultHistory,at as GetVaultValidators,j as GetVaults,rt as GlobalData,d as GqlChain,m as GqlPoolAprItemType,g as GqlPoolEventType,G as GqlPoolEventsDataRange,b as GqlPoolFilterCategory,A as GqlPoolJoinExitType,I as GqlPoolNestingType,q as GqlPoolOrderBy,B as GqlPoolOrderDirection,P as GqlPoolSnapshotDataRange,k as GqlPoolType,v as GqlRewardVaultIncentiveOrderBy,h as GqlRewardVaultIncentiveOrderDirection,_ as GqlRewardVaultOrderBy,D as GqlRewardVaultOrderDirection,M as GqlRewardVaultSnapshotDataRange,V as GqlRewardVaultSnapshotResolution,T as GqlSWberaVaultMetadataResolution,x as GqlSorSwapType,R as GqlTokenChartDataRange,w as GqlTokenType,C as GqlUserVaultDepositOrderBy,U as GqlUserVaultDepositOrderDirection,E as GqlValidatorBlockUptimeStatus,$ as GqlValidatorBoostOrderBy,f as GqlValidatorBoostOrderDirection,N as GqlValidatorOrderBy,F as GqlValidatorOrderDirection,W as GqlVaultSnapshotDataRange,ut as default};
|
|
@@ -2,12 +2,10 @@
|
|
|
2
2
|
fragment BoostByValidator on BoostByValidator {
|
|
3
3
|
allTimeNetAmount
|
|
4
4
|
netAmount
|
|
5
|
-
id
|
|
6
5
|
timestamp
|
|
7
6
|
}
|
|
8
7
|
`,h=A.gql`
|
|
9
8
|
fragment ValidatorMinimal on Validator {
|
|
10
|
-
id
|
|
11
9
|
publicKey
|
|
12
10
|
activeBoostAmount: activeBoostAmount
|
|
13
11
|
}
|
|
@@ -71,7 +69,6 @@
|
|
|
71
69
|
}
|
|
72
70
|
receivedTokenAmount
|
|
73
71
|
timestamp
|
|
74
|
-
id
|
|
75
72
|
}
|
|
76
73
|
userValidatorBoostQueued: userBoosts(
|
|
77
74
|
first: 10
|
|
@@ -3965,7 +3965,6 @@ declare enum _SubgraphErrorPolicy_ {
|
|
|
3965
3965
|
}
|
|
3966
3966
|
type ValidatorMinimalFragment = {
|
|
3967
3967
|
__typename?: 'Validator';
|
|
3968
|
-
id: `0x${string}`;
|
|
3969
3968
|
publicKey: `0x${string}`;
|
|
3970
3969
|
activeBoostAmount: string;
|
|
3971
3970
|
};
|
|
@@ -3973,7 +3972,6 @@ type BoostByValidatorFragment = {
|
|
|
3973
3972
|
__typename?: 'BoostByValidator';
|
|
3974
3973
|
allTimeNetAmount: string;
|
|
3975
3974
|
netAmount: string;
|
|
3976
|
-
id: string;
|
|
3977
3975
|
timestamp: string;
|
|
3978
3976
|
};
|
|
3979
3977
|
type BlockRewardStatsByValidatorFragment = {
|
|
@@ -3983,7 +3981,6 @@ type BlockRewardStatsByValidatorFragment = {
|
|
|
3983
3981
|
earnedBGTAmount: string;
|
|
3984
3982
|
validator: {
|
|
3985
3983
|
__typename?: 'Validator';
|
|
3986
|
-
id: `0x${string}`;
|
|
3987
3984
|
publicKey: `0x${string}`;
|
|
3988
3985
|
activeBoostAmount: string;
|
|
3989
3986
|
};
|
|
@@ -4001,7 +3998,6 @@ type GetValidatorBlockStatsQuery = {
|
|
|
4001
3998
|
timestamp: string;
|
|
4002
3999
|
validator: {
|
|
4003
4000
|
__typename?: 'Validator';
|
|
4004
|
-
id: `0x${string}`;
|
|
4005
4001
|
publicKey: `0x${string}`;
|
|
4006
4002
|
activeBoostAmount: string;
|
|
4007
4003
|
};
|
|
@@ -4028,7 +4024,6 @@ type GetValidatorAnalyticsQuery = {
|
|
|
4028
4024
|
__typename?: 'BoostByValidator';
|
|
4029
4025
|
allTimeNetAmount: string;
|
|
4030
4026
|
netAmount: string;
|
|
4031
|
-
id: string;
|
|
4032
4027
|
timestamp: string;
|
|
4033
4028
|
}>;
|
|
4034
4029
|
blockRewardStatsByValidators: Array<{
|
|
@@ -4038,7 +4033,6 @@ type GetValidatorAnalyticsQuery = {
|
|
|
4038
4033
|
earnedBGTAmount: string;
|
|
4039
4034
|
validator: {
|
|
4040
4035
|
__typename?: 'Validator';
|
|
4041
|
-
id: `0x${string}`;
|
|
4042
4036
|
publicKey: `0x${string}`;
|
|
4043
4037
|
activeBoostAmount: string;
|
|
4044
4038
|
};
|
|
@@ -4047,7 +4041,6 @@ type GetValidatorAnalyticsQuery = {
|
|
|
4047
4041
|
__typename?: 'IncentiveDistributionByValidator';
|
|
4048
4042
|
receivedTokenAmount: string;
|
|
4049
4043
|
timestamp: string;
|
|
4050
|
-
id: string;
|
|
4051
4044
|
token: {
|
|
4052
4045
|
__typename?: 'TokenInformation';
|
|
4053
4046
|
address: `0x${string}`;
|
|
@@ -3965,7 +3965,6 @@ declare enum _SubgraphErrorPolicy_ {
|
|
|
3965
3965
|
}
|
|
3966
3966
|
type ValidatorMinimalFragment = {
|
|
3967
3967
|
__typename?: 'Validator';
|
|
3968
|
-
id: `0x${string}`;
|
|
3969
3968
|
publicKey: `0x${string}`;
|
|
3970
3969
|
activeBoostAmount: string;
|
|
3971
3970
|
};
|
|
@@ -3973,7 +3972,6 @@ type BoostByValidatorFragment = {
|
|
|
3973
3972
|
__typename?: 'BoostByValidator';
|
|
3974
3973
|
allTimeNetAmount: string;
|
|
3975
3974
|
netAmount: string;
|
|
3976
|
-
id: string;
|
|
3977
3975
|
timestamp: string;
|
|
3978
3976
|
};
|
|
3979
3977
|
type BlockRewardStatsByValidatorFragment = {
|
|
@@ -3983,7 +3981,6 @@ type BlockRewardStatsByValidatorFragment = {
|
|
|
3983
3981
|
earnedBGTAmount: string;
|
|
3984
3982
|
validator: {
|
|
3985
3983
|
__typename?: 'Validator';
|
|
3986
|
-
id: `0x${string}`;
|
|
3987
3984
|
publicKey: `0x${string}`;
|
|
3988
3985
|
activeBoostAmount: string;
|
|
3989
3986
|
};
|
|
@@ -4001,7 +3998,6 @@ type GetValidatorBlockStatsQuery = {
|
|
|
4001
3998
|
timestamp: string;
|
|
4002
3999
|
validator: {
|
|
4003
4000
|
__typename?: 'Validator';
|
|
4004
|
-
id: `0x${string}`;
|
|
4005
4001
|
publicKey: `0x${string}`;
|
|
4006
4002
|
activeBoostAmount: string;
|
|
4007
4003
|
};
|
|
@@ -4028,7 +4024,6 @@ type GetValidatorAnalyticsQuery = {
|
|
|
4028
4024
|
__typename?: 'BoostByValidator';
|
|
4029
4025
|
allTimeNetAmount: string;
|
|
4030
4026
|
netAmount: string;
|
|
4031
|
-
id: string;
|
|
4032
4027
|
timestamp: string;
|
|
4033
4028
|
}>;
|
|
4034
4029
|
blockRewardStatsByValidators: Array<{
|
|
@@ -4038,7 +4033,6 @@ type GetValidatorAnalyticsQuery = {
|
|
|
4038
4033
|
earnedBGTAmount: string;
|
|
4039
4034
|
validator: {
|
|
4040
4035
|
__typename?: 'Validator';
|
|
4041
|
-
id: `0x${string}`;
|
|
4042
4036
|
publicKey: `0x${string}`;
|
|
4043
4037
|
activeBoostAmount: string;
|
|
4044
4038
|
};
|
|
@@ -4047,7 +4041,6 @@ type GetValidatorAnalyticsQuery = {
|
|
|
4047
4041
|
__typename?: 'IncentiveDistributionByValidator';
|
|
4048
4042
|
receivedTokenAmount: string;
|
|
4049
4043
|
timestamp: string;
|
|
4050
|
-
id: string;
|
|
4051
4044
|
token: {
|
|
4052
4045
|
__typename?: 'TokenInformation';
|
|
4053
4046
|
address: `0x${string}`;
|
|
@@ -2,12 +2,10 @@ import{gql as d}from"@apollo/client";var k=(a=>(a.Id="id",a.IncentiveRate="incen
|
|
|
2
2
|
fragment BoostByValidator on BoostByValidator {
|
|
3
3
|
allTimeNetAmount
|
|
4
4
|
netAmount
|
|
5
|
-
id
|
|
6
5
|
timestamp
|
|
7
6
|
}
|
|
8
7
|
`,B=d`
|
|
9
8
|
fragment ValidatorMinimal on Validator {
|
|
10
|
-
id
|
|
11
9
|
publicKey
|
|
12
10
|
activeBoostAmount: activeBoostAmount
|
|
13
11
|
}
|
|
@@ -71,7 +69,6 @@ import{gql as d}from"@apollo/client";var k=(a=>(a.Id="id",a.IncentiveRate="incen
|
|
|
71
69
|
}
|
|
72
70
|
receivedTokenAmount
|
|
73
71
|
timestamp
|
|
74
|
-
id
|
|
75
72
|
}
|
|
76
73
|
userValidatorBoostQueued: userBoosts(
|
|
77
74
|
first: 10
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@berachain/graphql",
|
|
3
|
-
"version": "0.4.10-beta.
|
|
3
|
+
"version": "0.4.10-beta.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -9,27 +9,30 @@
|
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"sideEffects": false,
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@apollo/client": "4.1.6"
|
|
12
|
+
"@apollo/client": "4.1.6",
|
|
13
|
+
"viem": "2.45.0"
|
|
13
14
|
},
|
|
14
15
|
"peerDependencies": {
|
|
15
16
|
"@apollo/client": "^4.0",
|
|
16
17
|
"graphql": "^16.8"
|
|
17
18
|
},
|
|
18
19
|
"devDependencies": {
|
|
19
|
-
"@biomejs/biome": "2.4.
|
|
20
|
+
"@biomejs/biome": "2.4.10",
|
|
20
21
|
"@graphql-codegen/cli": "5.0.7",
|
|
21
22
|
"@graphql-codegen/client-preset": "4.7.0",
|
|
22
23
|
"@graphql-codegen/fragment-matcher": "5.1.0",
|
|
23
24
|
"@graphql-codegen/near-operation-file-preset": "3.0.0",
|
|
24
|
-
"@graphql-codegen/typescript": "5.0.
|
|
25
|
-
"@graphql-codegen/typescript-document-nodes": "5.0.
|
|
26
|
-
"@graphql-codegen/typescript-operations": "5.0.
|
|
27
|
-
"@graphql-codegen/typescript-react-apollo": "4.
|
|
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",
|
|
28
29
|
"@types/node": "24.1.0",
|
|
29
30
|
"dotenv": "16.6.1",
|
|
30
|
-
"graphql": "16.
|
|
31
|
+
"graphql": "16.13.2",
|
|
32
|
+
"openapi-typescript": "7.13.0",
|
|
31
33
|
"tsup": "8.5.1",
|
|
32
|
-
"
|
|
34
|
+
"typescript": "5.5.4",
|
|
35
|
+
"@berachain/config": "^0.1.9-beta.1"
|
|
33
36
|
},
|
|
34
37
|
"exports": {
|
|
35
38
|
"./governance": {
|
|
@@ -85,6 +88,12 @@
|
|
|
85
88
|
"require": "./dist/bend/whisk.codegen.cjs",
|
|
86
89
|
"module": "./dist/bend/whisk.codegen.mjs",
|
|
87
90
|
"import": "./dist/bend/whisk.codegen.mjs"
|
|
91
|
+
},
|
|
92
|
+
"./api": {
|
|
93
|
+
"types": "./dist/api/api.d.ts",
|
|
94
|
+
"require": "./dist/api/api.cjs",
|
|
95
|
+
"module": "./dist/api/api.mjs",
|
|
96
|
+
"import": "./dist/api/api.mjs"
|
|
88
97
|
}
|
|
89
98
|
},
|
|
90
99
|
"typesVersions": {
|
|
@@ -115,6 +124,9 @@
|
|
|
115
124
|
],
|
|
116
125
|
"bend/whisk": [
|
|
117
126
|
"./dist/bend/whisk.codegen.d.ts"
|
|
127
|
+
],
|
|
128
|
+
"api": [
|
|
129
|
+
"./dist/api/api.d.ts"
|
|
118
130
|
]
|
|
119
131
|
}
|
|
120
132
|
},
|
|
@@ -122,13 +134,16 @@
|
|
|
122
134
|
"prebuild": "pnpm codegen",
|
|
123
135
|
"build": "tsup",
|
|
124
136
|
"precheck-types": "pnpm codegen",
|
|
125
|
-
"
|
|
137
|
+
"check-types": "tsup --dtsOnly",
|
|
138
|
+
"clean": "git clean -xdf dist .turbo node_modules *.codegen.ts src/api",
|
|
126
139
|
"lint": "biome lint",
|
|
127
|
-
"dev": "tsup --watch",
|
|
140
|
+
"dev": "pnpm codegen:api && tsup --watch",
|
|
128
141
|
"format": "biome format --write .",
|
|
129
|
-
"codegen": "
|
|
142
|
+
"codegen:api": "node ./scripts/generate-api-types.mjs",
|
|
143
|
+
"codegen:graphql": "graphql-codegen",
|
|
144
|
+
"codegen": "pnpm codegen:api && pnpm codegen:graphql",
|
|
130
145
|
"postcodegen": "pnpm format",
|
|
131
146
|
"postbuild": "pnpm format",
|
|
132
|
-
"codegen:watch": "graphql-codegen --watch"
|
|
147
|
+
"codegen:watch": "pnpm codegen:api && graphql-codegen --watch"
|
|
133
148
|
}
|
|
134
149
|
}
|