@berachain/graphql 0.4.9 → 0.4.10-beta.1
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/dex/api.codegen.cjs +5 -5
- package/dist/dex/api.codegen.d.cts +88 -82
- package/dist/dex/api.codegen.d.ts +88 -82
- package/dist/dex/api.codegen.mjs +4 -4
- package/dist/honey/honey.codegen.cjs +18 -38
- package/dist/honey/honey.codegen.d.cts +16 -61
- package/dist/honey/honey.codegen.d.ts +16 -61
- package/dist/honey/honey.codegen.mjs +18 -38
- package/dist/pol/api.codegen.cjs +23 -23
- package/dist/pol/api.codegen.d.cts +88 -82
- package/dist/pol/api.codegen.d.ts +88 -82
- package/dist/pol/api.codegen.mjs +10 -10
- package/package.json +3 -3
|
@@ -268,77 +268,6 @@ 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
|
-
};
|
|
342
271
|
type GqlPoolApr = {
|
|
343
272
|
__typename?: 'GqlPoolApr';
|
|
344
273
|
apr: GqlPoolAprValue;
|
|
@@ -1519,6 +1448,7 @@ declare enum GqlRewardVaultOrderBy {
|
|
|
1519
1448
|
Apr = "apr",
|
|
1520
1449
|
Apy = "apy",
|
|
1521
1450
|
BgtCapturePercentage = "bgtCapturePercentage",
|
|
1451
|
+
/** @deprecated This will be removed at mid April 2026 */
|
|
1522
1452
|
Last24hBgtReceived = "last24hBGTReceived",
|
|
1523
1453
|
ProjectedApr = "projectedApr"
|
|
1524
1454
|
}
|
|
@@ -1936,7 +1866,6 @@ type GqlValidator = {
|
|
|
1936
1866
|
pubkey: Scalars['Bytes']['output'];
|
|
1937
1867
|
/** @deprecated Deprecated. It will be removed at mid April 2026. */
|
|
1938
1868
|
rewardAllocationStartBlock?: Maybe<Scalars['Int']['output']>;
|
|
1939
|
-
/** @deprecated Deprecated. It will be removed at mid April 2026. Use incentives if you need an aggregation. */
|
|
1940
1869
|
rewardAllocationWeights: Array<GqlValidatorRewardAllocationWeight>;
|
|
1941
1870
|
rewardAllocator?: Maybe<Scalars['Bytes']['output']>;
|
|
1942
1871
|
valStats?: Maybe<GqlValidatorStats>;
|
|
@@ -2103,6 +2032,7 @@ type GqlValidatorRewardAllocationWeight = {
|
|
|
2103
2032
|
*/
|
|
2104
2033
|
percentageNumerator: Scalars['Int']['output'];
|
|
2105
2034
|
receiver: Scalars['Bytes']['output'];
|
|
2035
|
+
/** @deprecated Deprecated. It will be removed at mid April 2026. */
|
|
2106
2036
|
receivingVault?: Maybe<GqlRewardVault>;
|
|
2107
2037
|
startBlock: Scalars['Int']['output'];
|
|
2108
2038
|
validator?: Maybe<GqlValidator>;
|
|
@@ -2153,6 +2083,87 @@ type HookData = {
|
|
|
2153
2083
|
removeLiquidityFeePercentage?: Maybe<Scalars['String']['output']>;
|
|
2154
2084
|
swapFeePercentage?: Maybe<Scalars['String']['output']>;
|
|
2155
2085
|
};
|
|
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
|
+
};
|
|
2156
2167
|
type PaginatedRewardVaultIncentivesResponse = {
|
|
2157
2168
|
__typename?: 'PaginatedRewardVaultIncentivesResponse';
|
|
2158
2169
|
incentives: Array<GqlRewardVaultIncentive>;
|
|
@@ -2187,9 +2198,13 @@ type Query = {
|
|
|
2187
2198
|
__typename?: 'Query';
|
|
2188
2199
|
bendVault?: Maybe<BendVaultResponse>;
|
|
2189
2200
|
bendVaults: Array<BendVaultResponse>;
|
|
2201
|
+
/** @deprecated This query will be removed at the end of April 2026. */
|
|
2190
2202
|
blocksGetAverageBlockTime: Scalars['Float']['output'];
|
|
2203
|
+
/** @deprecated This query will be removed at the end of April 2026. */
|
|
2191
2204
|
blocksGetBlocksPerDay: Scalars['Float']['output'];
|
|
2205
|
+
/** @deprecated This query will be removed at the end of April 2026. */
|
|
2192
2206
|
blocksGetBlocksPerSecond: Scalars['Float']['output'];
|
|
2207
|
+
/** @deprecated This query will be removed at the end of April 2026. */
|
|
2193
2208
|
blocksGetBlocksPerYear: Scalars['Float']['output'];
|
|
2194
2209
|
/** Returns list of hooks. */
|
|
2195
2210
|
hooks?: Maybe<Array<Hook>>;
|
|
@@ -2215,8 +2230,6 @@ type Query = {
|
|
|
2215
2230
|
polGetVaultDurations: GqlVaultDurations;
|
|
2216
2231
|
/** Getting swap, add and remove events with paging */
|
|
2217
2232
|
poolEvents: Array<GqlPoolEvent>;
|
|
2218
|
-
/** Returns all pools for a given filter, specific for aggregators */
|
|
2219
|
-
poolGetAggregatorPools: Array<GqlPoolAggregator>;
|
|
2220
2233
|
/** Getting swap, add and remove events with range */
|
|
2221
2234
|
poolGetEvents: Array<GqlPoolEvent>;
|
|
2222
2235
|
/** Returns one pool. If a user address is provided, the user balances for the given pool will also be returned. */
|
|
@@ -2359,13 +2372,6 @@ type QueryPoolEventsArgs = {
|
|
|
2359
2372
|
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
2360
2373
|
where?: InputMaybe<GqlPoolEventsFilter>;
|
|
2361
2374
|
};
|
|
2362
|
-
type QueryPoolGetAggregatorPoolsArgs = {
|
|
2363
|
-
first?: InputMaybe<Scalars['Int']['input']>;
|
|
2364
|
-
orderBy?: InputMaybe<GqlPoolOrderBy>;
|
|
2365
|
-
orderDirection?: InputMaybe<GqlPoolOrderDirection>;
|
|
2366
|
-
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
2367
|
-
where?: InputMaybe<GqlPoolFilter>;
|
|
2368
|
-
};
|
|
2369
2375
|
type QueryPoolGetEventsArgs = {
|
|
2370
2376
|
chain: GqlChain;
|
|
2371
2377
|
poolId: Scalars['String']['input'];
|
|
@@ -3503,4 +3509,4 @@ interface PossibleTypesResultData {
|
|
|
3503
3509
|
}
|
|
3504
3510
|
declare const result: PossibleTypesResultData;
|
|
3505
3511
|
|
|
3506
|
-
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
|
|
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 Mutation, type MutationPoolDeletePoolArgs, type MutationPoolInitializeSnapshotsForPoolArgs, type MutationPoolLoadSnapshotsForPoolsArgs, type MutationPoolReloadAllPoolAprsArgs, type MutationPoolSyncLatestSnapshotsForAllPoolsArgs, type MutationPoolSyncPoolArgs, type MutationPoolUpdateAprsArgs, type MutationTokenDeleteTokenTypeArgs, type MutationTokenReloadErc4626TokensArgs, type MutationTokenReloadTokenPricesArgs, type MutationTokenSyncLatestFxPricesArgs, type MutationUserInitWalletBalancesForPoolArgs, type MutationUserSyncBalanceArgs, 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 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||{}),g=(i=>(i.Aura="AURA",i.IbYield="IB_YIELD",i.Locking="LOCKING",i.MabeetsEmissions="MABEETS_EMISSIONS",i.Merkl="MERKL",i.Nested="NESTED",i.Staking="STAKING",i.StakingBoost="STAKING_BOOST",i.Surplus="SURPLUS",i.SwapFee="SWAP_FEE",i.VebalEmissions="VEBAL_EMISSIONS",i.Voting="VOTING",i))(g||{}),m=(o=>(o.Add="ADD",o.Remove="REMOVE",o.Swap="SWAP",o))(m||{}),A=(o=>(o.NinetyDays="NINETY_DAYS",o.SevenDays="SEVEN_DAYS",o.ThirtyDays="THIRTY_DAYS",o))(A||{}),G=(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))(G||{}),b=(t=>(t.Exit="Exit",t.Join="Join",t))(b||{}),I=(o=>(o.HasOnlyPhantomBpt="HAS_ONLY_PHANTOM_BPT",o.HasSomePhantomBpt="HAS_SOME_PHANTOM_BPT",o.NoNesting="NO_NESTING",o))(I||{}),q=(r=>(r.Apr="apr",r.BgtApr="bgtApr",r.CombinedApr="combinedApr",r.Fees24h="fees24h",r.TotalLiquidity="totalLiquidity",r.TotalShares="totalShares",r.UserbalanceUsd="userbalanceUsd",r.Volume24h="volume24h",r))(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||{}),h=(o=>(o.AmountRemaining="amountRemaining",o.AmountRemainingUsd="amountRemainingUsd",o.IncentiveRate="incentiveRate",o))(h||{}),v=(t=>(t.Asc="asc",t.Desc="desc",t))(v||{}),_=(r=>(r.ActiveIncentivesRateUsd="activeIncentivesRateUsd",r.ActiveIncentivesValueUsd="activeIncentivesValueUsd",r.AllTimeBgtReceived="allTimeBGTReceived",r.Apr="apr",r.Apy="apy",r.BgtCapturePercentage="bgtCapturePercentage",r.Last24hBgtReceived="last24hBGTReceived",r.ProjectedApr="projectedApr",r))(_||{}),D=(t=>(t.Asc="asc",t.Desc="desc",t))(D||{}),V=(a=>(a.AllTime="ALL_TIME",a.NinetyDays="NINETY_DAYS",a.SevenDays="SEVEN_DAYS",a.SixtyDays="SIXTY_DAYS",a.ThirtyDays="THIRTY_DAYS",a))(V||{}),M=(t=>(t.Day="DAY",t.Hour="HOUR",t))(M||{}),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=(o=>(o.Bpt="BPT",o.PhantomBpt="PHANTOM_BPT",o.WhiteListed="WHITE_LISTED",o))(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||{}),F=(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))(F||{}),N=(t=>(t.Asc="asc",t.Desc="desc",t))(N||{}),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}`,L=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
|
+
${L}`,X=e`
|
|
123
123
|
fragment ApiValidatorRewardAllocationWeight on GqlValidatorRewardAllocationWeight {
|
|
124
124
|
percentage
|
|
125
125
|
receivingVault {
|
|
@@ -138,7 +138,7 @@ ${H}`,X=e`
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
|
-
`,
|
|
141
|
+
`,H=e`
|
|
142
142
|
fragment ApiValidatorIncentive on GqlValidatorIncentive {
|
|
143
143
|
tokenAddress
|
|
144
144
|
remainingAmount
|
|
@@ -152,7 +152,7 @@ ${H}`,X=e`
|
|
|
152
152
|
decimals
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
`,
|
|
155
|
+
`,O=e`
|
|
156
156
|
fragment ApiValidatorInList on GqlValidator {
|
|
157
157
|
...ApiValidatorMinimal
|
|
158
158
|
operator
|
|
@@ -174,7 +174,7 @@ ${H}`,X=e`
|
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
${c}
|
|
177
|
-
${
|
|
177
|
+
${H}`,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
|
+
${O}`,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}`,ot=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}`,rt=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,L as ApiRewardAllocationWeight,S as ApiValidator,Y as ApiValidatorBlockUptime,O as ApiValidatorInList,H 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,rt as GetUserVaults,Z as GetValidator,tt as GetValidators,nt as GetVaultHistory,at as GetVaultValidators,j as GetVaults,ot as GlobalData,d as GqlChain,g as GqlPoolAprItemType,m as GqlPoolEventType,A as GqlPoolEventsDataRange,G as GqlPoolFilterCategory,b as GqlPoolJoinExitType,I as GqlPoolNestingType,q as GqlPoolOrderBy,B as GqlPoolOrderDirection,P as GqlPoolSnapshotDataRange,k as GqlPoolType,h as GqlRewardVaultIncentiveOrderBy,v as GqlRewardVaultIncentiveOrderDirection,_ as GqlRewardVaultOrderBy,D as GqlRewardVaultOrderDirection,V as GqlRewardVaultSnapshotDataRange,M 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,F as GqlValidatorOrderBy,N as GqlValidatorOrderDirection,W as GqlVaultSnapshotDataRange,ut as default};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@berachain/graphql",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.10-beta.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"@types/node": "24.1.0",
|
|
29
29
|
"dotenv": "16.6.1",
|
|
30
30
|
"graphql": "16.12.0",
|
|
31
|
-
"tsup": "8.
|
|
32
|
-
"@berachain/config": "^0.1.
|
|
31
|
+
"tsup": "8.5.1",
|
|
32
|
+
"@berachain/config": "^0.1.8-beta.0"
|
|
33
33
|
},
|
|
34
34
|
"exports": {
|
|
35
35
|
"./governance": {
|