@berachain/graphql 0.4.7 → 0.4.8-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/bend/whisk.codegen.d.cts +3360 -0
- package/dist/dex/api.codegen.cjs +16 -16
- package/dist/dex/api.codegen.d.cts +3637 -0
- package/dist/dex/api.codegen.d.ts +4 -117
- package/dist/dex/api.codegen.mjs +17 -17
- package/dist/dex/subgraph.codegen.d.cts +5362 -0
- package/dist/governance/governance.codegen.d.cts +1533 -0
- package/dist/honey/honey.codegen.d.cts +782 -0
- package/dist/pol/api.codegen.cjs +37 -17
- package/dist/pol/api.codegen.d.cts +3409 -0
- package/dist/pol/api.codegen.d.ts +33 -117
- package/dist/pol/api.codegen.mjs +35 -15
- package/dist/pol/fees.codegen.cjs +9 -0
- package/dist/pol/fees.codegen.d.cts +481 -0
- package/dist/pol/fees.codegen.d.ts +481 -0
- package/dist/pol/fees.codegen.mjs +9 -0
- package/dist/pol/subgraph.codegen.cjs +9 -106
- package/dist/pol/subgraph.codegen.d.cts +4107 -0
- package/dist/pol/subgraph.codegen.d.ts +17 -196
- package/dist/pol/subgraph.codegen.mjs +9 -106
- package/package.json +10 -1
|
@@ -108,21 +108,6 @@ declare enum GqlChain {
|
|
|
108
108
|
Bepolia = "BEPOLIA",
|
|
109
109
|
Berachain = "BERACHAIN"
|
|
110
110
|
}
|
|
111
|
-
type GqlContentNewsItem = {
|
|
112
|
-
__typename?: 'GqlContentNewsItem';
|
|
113
|
-
discussionUrl?: Maybe<Scalars['String']['output']>;
|
|
114
|
-
id: Scalars['ID']['output'];
|
|
115
|
-
image?: Maybe<Scalars['String']['output']>;
|
|
116
|
-
source: GqlContentNewsItemSource;
|
|
117
|
-
text: Scalars['String']['output'];
|
|
118
|
-
timestamp: Scalars['String']['output'];
|
|
119
|
-
url: Scalars['String']['output'];
|
|
120
|
-
};
|
|
121
|
-
declare enum GqlContentNewsItemSource {
|
|
122
|
-
Discord = "discord",
|
|
123
|
-
Medium = "medium",
|
|
124
|
-
Twitter = "twitter"
|
|
125
|
-
}
|
|
126
111
|
type GqlDefaultRewardAllocation = {
|
|
127
112
|
__typename?: 'GqlDefaultRewardAllocation';
|
|
128
113
|
startBlock: Scalars['Int']['output'];
|
|
@@ -135,13 +120,6 @@ type GqlDefaultRewardAllocationWeight = {
|
|
|
135
120
|
receiver: Scalars['String']['output'];
|
|
136
121
|
receiverVault?: Maybe<GqlRewardVault>;
|
|
137
122
|
};
|
|
138
|
-
type GqlFeaturePoolGroupItemExternalLink = {
|
|
139
|
-
__typename?: 'GqlFeaturePoolGroupItemExternalLink';
|
|
140
|
-
buttonText: Scalars['String']['output'];
|
|
141
|
-
buttonUrl: Scalars['String']['output'];
|
|
142
|
-
id: Scalars['ID']['output'];
|
|
143
|
-
image: Scalars['String']['output'];
|
|
144
|
-
};
|
|
145
123
|
type GqlGlobalInfo = {
|
|
146
124
|
__typename?: 'GqlGlobalInfo';
|
|
147
125
|
annualizedBGTEmission: Scalars['String']['output'];
|
|
@@ -684,21 +662,6 @@ type GqlPoolEventsFilter = {
|
|
|
684
662
|
/** USD value of the event */
|
|
685
663
|
valueUSD_gte?: InputMaybe<Scalars['Float']['input']>;
|
|
686
664
|
};
|
|
687
|
-
type GqlPoolFeaturedPool = {
|
|
688
|
-
__typename?: 'GqlPoolFeaturedPool';
|
|
689
|
-
description: Scalars['String']['output'];
|
|
690
|
-
pool: GqlPoolBase;
|
|
691
|
-
poolId: Scalars['ID']['output'];
|
|
692
|
-
primary: Scalars['Boolean']['output'];
|
|
693
|
-
};
|
|
694
|
-
type GqlPoolFeaturedPoolGroup = {
|
|
695
|
-
__typename?: 'GqlPoolFeaturedPoolGroup';
|
|
696
|
-
icon: Scalars['String']['output'];
|
|
697
|
-
id: Scalars['ID']['output'];
|
|
698
|
-
items: Array<GqlPoolFeaturedPoolGroupItem>;
|
|
699
|
-
title: Scalars['String']['output'];
|
|
700
|
-
};
|
|
701
|
-
type GqlPoolFeaturedPoolGroupItem = GqlFeaturePoolGroupItemExternalLink | GqlPoolMinimal;
|
|
702
665
|
type GqlPoolFilter = {
|
|
703
666
|
addressIn?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
704
667
|
addressNotIn?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
@@ -1935,7 +1898,6 @@ type GqlValidatorDynamicData = {
|
|
|
1935
1898
|
boostApr: Scalars['Float']['output'];
|
|
1936
1899
|
chain: GqlChain;
|
|
1937
1900
|
commissionOnIncentives: Scalars['Int']['output'];
|
|
1938
|
-
commissionOnIncentivesHistory: Array<GqlValidatorCommissionHistory>;
|
|
1939
1901
|
lastDayDistributedBGTAmount: Scalars['String']['output'];
|
|
1940
1902
|
lastDayEarnedBGTAmount: Scalars['String']['output'];
|
|
1941
1903
|
queuedBoostAmount: Scalars['String']['output'];
|
|
@@ -2095,12 +2057,10 @@ type Query = {
|
|
|
2095
2057
|
blocksGetBlocksPerDay: Scalars['Float']['output'];
|
|
2096
2058
|
blocksGetBlocksPerSecond: Scalars['Float']['output'];
|
|
2097
2059
|
blocksGetBlocksPerYear: Scalars['Float']['output'];
|
|
2098
|
-
contentGetNewsItems: Array<GqlContentNewsItem>;
|
|
2099
2060
|
/** Returns list of hooks. */
|
|
2100
2061
|
hooks?: Maybe<Array<Hook>>;
|
|
2101
2062
|
latestSyncedBlocks: GqlLatestSyncedBlocks;
|
|
2102
2063
|
polGetActiveIncentives: PaginatedRewardVaultIncentivesResponse;
|
|
2103
|
-
polGetDefaultRewardAllocations?: Maybe<GqlDefaultRewardAllocation>;
|
|
2104
2064
|
polGetGlobalInfo?: Maybe<GqlGlobalInfo>;
|
|
2105
2065
|
polGetRewardVault?: Maybe<GqlRewardVault>;
|
|
2106
2066
|
polGetRewardVaultSnapshots: Array<GqlRewardVaultSnapshot>;
|
|
@@ -2111,34 +2071,20 @@ type Query = {
|
|
|
2111
2071
|
polGetUserVaultDeposits: PaginatedUserVaultDepositsResponse;
|
|
2112
2072
|
polGetValidator?: Maybe<GqlValidator>;
|
|
2113
2073
|
polGetValidatorBlockUptimes: Array<GqlValidatorBlockUptime>;
|
|
2074
|
+
/** @deprecated This query will be removed at the end of March 2026. Read the value from an RPC instead. */
|
|
2114
2075
|
polGetValidatorBoostDelay: GqlValidatorBoostDelay;
|
|
2115
2076
|
polGetValidatorBoosts: PaginatedValidatorBoostsResponse;
|
|
2077
|
+
/** @deprecated This query will be removed at the end of March 2026. Read the value from an RPC instead. */
|
|
2116
2078
|
polGetValidatorCommissionDelay: GqlValidatorCommissionDelay;
|
|
2117
2079
|
polGetValidators: PaginatedValidatorsResponse;
|
|
2080
|
+
/** @deprecated This query will be removed at the end of March 2026. Read the value from an RPC instead. */
|
|
2118
2081
|
polGetVaultDurations: GqlVaultDurations;
|
|
2119
2082
|
/** Getting swap, add and remove events with paging */
|
|
2120
2083
|
poolEvents: Array<GqlPoolEvent>;
|
|
2121
2084
|
/** Returns all pools for a given filter, specific for aggregators */
|
|
2122
2085
|
poolGetAggregatorPools: Array<GqlPoolAggregator>;
|
|
2123
|
-
/**
|
|
2124
|
-
* Will de deprecated in favor of poolEvents
|
|
2125
|
-
* @deprecated Use poolEvents instead
|
|
2126
|
-
*/
|
|
2127
|
-
poolGetBatchSwaps: Array<GqlPoolBatchSwap>;
|
|
2128
2086
|
/** Getting swap, add and remove events with range */
|
|
2129
2087
|
poolGetEvents: Array<GqlPoolEvent>;
|
|
2130
|
-
/**
|
|
2131
|
-
* Will de deprecated in favor of poolGetFeaturedPools
|
|
2132
|
-
* @deprecated Use poolGetFeaturedPools instead
|
|
2133
|
-
*/
|
|
2134
|
-
poolGetFeaturedPoolGroups: Array<GqlPoolFeaturedPoolGroup>;
|
|
2135
|
-
/** Returns the list of featured pools for chains */
|
|
2136
|
-
poolGetFeaturedPools: Array<GqlPoolFeaturedPool>;
|
|
2137
|
-
/**
|
|
2138
|
-
* Will de deprecated in favor of poolEvents
|
|
2139
|
-
* @deprecated Use poolEvents instead
|
|
2140
|
-
*/
|
|
2141
|
-
poolGetJoinExits: Array<GqlPoolJoinExit>;
|
|
2142
2088
|
/** Returns one pool. If a user address is provided, the user balances for the given pool will also be returned. */
|
|
2143
2089
|
poolGetPool: GqlPoolBase;
|
|
2144
2090
|
/** Returns all pools for a given filter */
|
|
@@ -2147,12 +2093,6 @@ type Query = {
|
|
|
2147
2093
|
poolGetPoolsCount: Scalars['Int']['output'];
|
|
2148
2094
|
/** Gets all the snapshots for a given pool on a chain for a certain range */
|
|
2149
2095
|
poolGetSnapshots: Array<GqlPoolSnapshot>;
|
|
2150
|
-
/**
|
|
2151
|
-
* Will de deprecated in favor of poolEvents
|
|
2152
|
-
* @deprecated Use poolEvents instead
|
|
2153
|
-
*/
|
|
2154
|
-
poolGetSwaps: Array<GqlPoolSwap>;
|
|
2155
|
-
poolGetUserBalances: Array<GqlUserPoolBalance>;
|
|
2156
2096
|
protocolMetricsAggregated: GqlProtocolMetricsAggregated;
|
|
2157
2097
|
protocolMetricsChain: GqlProtocolMetricsChain;
|
|
2158
2098
|
/** Get swap quote from the SOR v2 for the V2 vault */
|
|
@@ -2184,20 +2124,10 @@ type Query = {
|
|
|
2184
2124
|
tokenGetRelativePriceChartData: Array<GqlTokenPriceChartDataItem>;
|
|
2185
2125
|
/** Returns a token for a given address and chain */
|
|
2186
2126
|
tokenGetToken: GqlToken;
|
|
2187
|
-
/**
|
|
2188
|
-
* Returns meta data for a given token such as description, website, etc.
|
|
2189
|
-
* @deprecated Use tokenGetTokens instead
|
|
2190
|
-
*/
|
|
2191
|
-
tokenGetTokenData?: Maybe<GqlTokenData>;
|
|
2192
2127
|
/** Returns dynamic data of a token such as price, market cap, etc. */
|
|
2193
2128
|
tokenGetTokenDynamicData?: Maybe<GqlTokenDynamicData>;
|
|
2194
2129
|
/** Returns all allowed tokens for a given chain or chains */
|
|
2195
2130
|
tokenGetTokens: Array<GqlToken>;
|
|
2196
|
-
/**
|
|
2197
|
-
* Returns meta data for a given set of tokens such as description, website, etc.
|
|
2198
|
-
* @deprecated Use tokenGetTokens instead
|
|
2199
|
-
*/
|
|
2200
|
-
tokenGetTokensData: Array<GqlTokenData>;
|
|
2201
2131
|
/** Returns dynamic data of a set of tokens such as price, market cap, etc. */
|
|
2202
2132
|
tokenGetTokensDynamicData: Array<GqlTokenDynamicData>;
|
|
2203
2133
|
userGetPoolBalances: Array<GqlUserPoolBalance>;
|
|
@@ -2205,14 +2135,10 @@ type Query = {
|
|
|
2205
2135
|
userGetPoolJoinExits: Array<GqlPoolJoinExit>;
|
|
2206
2136
|
/** Will de deprecated in favor of poolGetEvents */
|
|
2207
2137
|
userGetSwaps: Array<GqlPoolSwap>;
|
|
2208
|
-
userGetTopBGTBalance: Array<GqlUserBgtBalance>;
|
|
2209
2138
|
};
|
|
2210
2139
|
type QueryBendVaultArgs = {
|
|
2211
2140
|
vaultAddress: Scalars['Bytes']['input'];
|
|
2212
2141
|
};
|
|
2213
|
-
type QueryContentGetNewsItemsArgs = {
|
|
2214
|
-
chain?: InputMaybe<GqlChain>;
|
|
2215
|
-
};
|
|
2216
2142
|
type QueryHooksArgs = {
|
|
2217
2143
|
chain?: InputMaybe<GqlChain>;
|
|
2218
2144
|
};
|
|
@@ -2224,9 +2150,6 @@ type QueryPolGetActiveIncentivesArgs = {
|
|
|
2224
2150
|
search?: InputMaybe<Scalars['String']['input']>;
|
|
2225
2151
|
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
2226
2152
|
};
|
|
2227
|
-
type QueryPolGetDefaultRewardAllocationsArgs = {
|
|
2228
|
-
chain?: InputMaybe<GqlChain>;
|
|
2229
|
-
};
|
|
2230
2153
|
type QueryPolGetGlobalInfoArgs = {
|
|
2231
2154
|
chain: GqlChain;
|
|
2232
2155
|
};
|
|
@@ -2309,11 +2232,6 @@ type QueryPoolGetAggregatorPoolsArgs = {
|
|
|
2309
2232
|
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
2310
2233
|
where?: InputMaybe<GqlPoolFilter>;
|
|
2311
2234
|
};
|
|
2312
|
-
type QueryPoolGetBatchSwapsArgs = {
|
|
2313
|
-
first?: InputMaybe<Scalars['Int']['input']>;
|
|
2314
|
-
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
2315
|
-
where?: InputMaybe<GqlPoolSwapFilter>;
|
|
2316
|
-
};
|
|
2317
2235
|
type QueryPoolGetEventsArgs = {
|
|
2318
2236
|
chain: GqlChain;
|
|
2319
2237
|
poolId: Scalars['String']['input'];
|
|
@@ -2321,17 +2239,6 @@ type QueryPoolGetEventsArgs = {
|
|
|
2321
2239
|
typeIn: Array<GqlPoolEventType>;
|
|
2322
2240
|
userAddress?: InputMaybe<Scalars['String']['input']>;
|
|
2323
2241
|
};
|
|
2324
|
-
type QueryPoolGetFeaturedPoolGroupsArgs = {
|
|
2325
|
-
chains?: InputMaybe<Array<GqlChain>>;
|
|
2326
|
-
};
|
|
2327
|
-
type QueryPoolGetFeaturedPoolsArgs = {
|
|
2328
|
-
chains: Array<GqlChain>;
|
|
2329
|
-
};
|
|
2330
|
-
type QueryPoolGetJoinExitsArgs = {
|
|
2331
|
-
first?: InputMaybe<Scalars['Int']['input']>;
|
|
2332
|
-
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
2333
|
-
where?: InputMaybe<GqlPoolJoinExitFilter>;
|
|
2334
|
-
};
|
|
2335
2242
|
type QueryPoolGetPoolArgs = {
|
|
2336
2243
|
chain?: InputMaybe<GqlChain>;
|
|
2337
2244
|
id: Scalars['String']['input'];
|
|
@@ -2358,16 +2265,6 @@ type QueryPoolGetSnapshotsArgs = {
|
|
|
2358
2265
|
id: Scalars['String']['input'];
|
|
2359
2266
|
range: GqlPoolSnapshotDataRange;
|
|
2360
2267
|
};
|
|
2361
|
-
type QueryPoolGetSwapsArgs = {
|
|
2362
|
-
first?: InputMaybe<Scalars['Int']['input']>;
|
|
2363
|
-
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
2364
|
-
where?: InputMaybe<GqlPoolSwapFilter>;
|
|
2365
|
-
};
|
|
2366
|
-
type QueryPoolGetUserBalancesArgs = {
|
|
2367
|
-
chain: GqlChain;
|
|
2368
|
-
poolId: Scalars['String']['input'];
|
|
2369
|
-
top?: InputMaybe<Scalars['Int']['input']>;
|
|
2370
|
-
};
|
|
2371
2268
|
type QueryProtocolMetricsAggregatedArgs = {
|
|
2372
2269
|
chains?: InputMaybe<Array<GqlChain>>;
|
|
2373
2270
|
};
|
|
@@ -2428,10 +2325,6 @@ type QueryTokenGetTokenArgs = {
|
|
|
2428
2325
|
address: Scalars['String']['input'];
|
|
2429
2326
|
chain: GqlChain;
|
|
2430
2327
|
};
|
|
2431
|
-
type QueryTokenGetTokenDataArgs = {
|
|
2432
|
-
address: Scalars['String']['input'];
|
|
2433
|
-
chain?: InputMaybe<GqlChain>;
|
|
2434
|
-
};
|
|
2435
2328
|
type QueryTokenGetTokenDynamicDataArgs = {
|
|
2436
2329
|
address: Scalars['String']['input'];
|
|
2437
2330
|
chain?: InputMaybe<GqlChain>;
|
|
@@ -2440,9 +2333,6 @@ type QueryTokenGetTokensArgs = {
|
|
|
2440
2333
|
addressIn?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
2441
2334
|
chains: Array<GqlChain>;
|
|
2442
2335
|
};
|
|
2443
|
-
type QueryTokenGetTokensDataArgs = {
|
|
2444
|
-
addresses: Array<Scalars['String']['input']>;
|
|
2445
|
-
};
|
|
2446
2336
|
type QueryTokenGetTokensDynamicDataArgs = {
|
|
2447
2337
|
addresses: Array<Scalars['String']['input']>;
|
|
2448
2338
|
chain?: InputMaybe<GqlChain>;
|
|
@@ -2465,9 +2355,6 @@ type QueryUserGetSwapsArgs = {
|
|
|
2465
2355
|
poolId: Scalars['String']['input'];
|
|
2466
2356
|
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
2467
2357
|
};
|
|
2468
|
-
type QueryUserGetTopBgtBalanceArgs = {
|
|
2469
|
-
chain: GqlChain;
|
|
2470
|
-
};
|
|
2471
2358
|
type Token = {
|
|
2472
2359
|
__typename?: 'Token';
|
|
2473
2360
|
address: Scalars['Bytes']['output'];
|
|
@@ -3747,4 +3634,4 @@ interface PossibleTypesResultData {
|
|
|
3747
3634
|
}
|
|
3748
3635
|
declare const result: PossibleTypesResultData;
|
|
3749
3636
|
|
|
3750
|
-
export { type BendVaultDynamicData, type BendVaultResponse, DynamicData, type DynamicDataFragment, type Exact, GetGlobalLiquidityAndSwapVolume, type GetGlobalLiquidityAndSwapVolumeQuery, type GetGlobalLiquidityAndSwapVolumeQueryVariables, GetPool, GetPoolEvents, type GetPoolEventsQuery, type GetPoolEventsQueryVariables, GetPoolHistoricalData, type GetPoolHistoricalDataQuery, type GetPoolHistoricalDataQueryVariables, type GetPoolQuery, type GetPoolQueryVariables, GetPools, type GetPoolsQuery, type GetPoolsQueryVariables, GetTokenCurrentPrices, type GetTokenCurrentPricesQuery, type GetTokenCurrentPricesQueryVariables, type GqlBalancePoolAprItem, type GqlBalancePoolAprSubItem, GqlChain, type
|
|
3637
|
+
export { type BendVaultDynamicData, type BendVaultResponse, DynamicData, type DynamicDataFragment, type Exact, GetGlobalLiquidityAndSwapVolume, type GetGlobalLiquidityAndSwapVolumeQuery, type GetGlobalLiquidityAndSwapVolumeQueryVariables, GetPool, GetPoolEvents, type GetPoolEventsQuery, type GetPoolEventsQueryVariables, GetPoolHistoricalData, type GetPoolHistoricalDataQuery, type GetPoolHistoricalDataQueryVariables, type GetPoolQuery, type GetPoolQueryVariables, GetPools, type GetPoolsQuery, type GetPoolsQueryVariables, GetTokenCurrentPrices, type GetTokenCurrentPricesQuery, type GetTokenCurrentPricesQueryVariables, type GqlBalancePoolAprItem, type GqlBalancePoolAprSubItem, GqlChain, type GqlDefaultRewardAllocation, type GqlDefaultRewardAllocationWeight, type GqlGlobalInfo, type GqlGraphTraversalConfigInput, type GqlHistoricalTokenPrice, type GqlHistoricalTokenPriceEntry, type GqlLatestSyncedBlocks, type GqlNestedPool, type GqlPagination, GqlPoolAddRemoveEventV3, type GqlPoolAddRemoveEventV3Fragment, 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, GqlPoolSwapEventCowAmm, type GqlPoolSwapEventCowAmmFragment, GqlPoolSwapEventV3, type GqlPoolSwapEventV3Fragment, 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 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, MinimalPool, type MinimalPoolFragment, MinimalPoolInList, type MinimalPoolInListFragment, type PaginatedRewardVaultIncentivesResponse, type PaginatedRewardVaultsResponse, type PaginatedUserVaultDepositsResponse, type PaginatedValidatorBlockUptimesResponse, type PaginatedValidatorBoostsResponse, type PaginatedValidatorsResponse, PoolEvent, type PoolEventFragment, PoolHistoricalData, type PoolHistoricalDataFragment, 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, RewardVault, type RewardVaultFragment, type Scalars, type Token, UserBalance, type UserBalanceFragment, result as default };
|
package/dist/dex/api.codegen.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{gql as r}from"@apollo/client";var S=(t=>(t.Bepolia="BEPOLIA",t.Berachain="BERACHAIN",t))(S||{}),m=(
|
|
1
|
+
import{gql as r}from"@apollo/client";var S=(t=>(t.Bepolia="BEPOLIA",t.Berachain="BERACHAIN",t))(S||{}),m=(s=>(s.Aura="AURA",s.IbYield="IB_YIELD",s.Locking="LOCKING",s.MabeetsEmissions="MABEETS_EMISSIONS",s.Merkl="MERKL",s.Nested="NESTED",s.Staking="STAKING",s.StakingBoost="STAKING_BOOST",s.Surplus="SURPLUS",s.SwapFee="SWAP_FEE",s.VebalEmissions="VEBAL_EMISSIONS",s.Voting="VOTING",s))(m||{}),d=(e=>(e.Add="ADD",e.Remove="REMOVE",e.Swap="SWAP",e))(d||{}),g=(e=>(e.NinetyDays="NINETY_DAYS",e.SevenDays="SEVEN_DAYS",e.ThirtyDays="THIRTY_DAYS",e))(g||{}),G=(i=>(i.BlackListed="BLACK_LISTED",i.Incentivized="INCENTIVIZED",i.Lrt="LRT",i.Points="POINTS",i.PointsEigenlayer="POINTS_EIGENLAYER",i.PointsGyro="POINTS_GYRO",i.PointsKelp="POINTS_KELP",i.PointsRenzo="POINTS_RENZO",i.PointsSwell="POINTS_SWELL",i.Superfest="SUPERFEST",i))(G||{}),b=(t=>(t.Exit="Exit",t.Join="Join",t))(b||{}),q=(e=>(e.HasOnlyPhantomBpt="HAS_ONLY_PHANTOM_BPT",e.HasSomePhantomBpt="HAS_SOME_PHANTOM_BPT",e.NoNesting="NO_NESTING",e))(q||{}),P=(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))(P||{}),A=(t=>(t.Asc="asc",t.Desc="desc",t))(A||{}),I=(a=>(a.AllTime="ALL_TIME",a.NinetyDays="NINETY_DAYS",a.OneHundredEightyDays="ONE_HUNDRED_EIGHTY_DAYS",a.OneYear="ONE_YEAR",a.ThirtyDays="THIRTY_DAYS",a))(I||{}),_=(l=>(l.ComposableStable="COMPOSABLE_STABLE",l.CowAmm="COW_AMM",l.Element="ELEMENT",l.Fx="FX",l.Gyro="GYRO",l.Gyro3="GYRO3",l.Gyroe="GYROE",l.Investment="INVESTMENT",l.LiquidityBootstrapping="LIQUIDITY_BOOTSTRAPPING",l.MetaStable="META_STABLE",l.PhantomStable="PHANTOM_STABLE",l.Stable="STABLE",l.Unknown="UNKNOWN",l.Weighted="WEIGHTED",l))(_||{}),D=(e=>(e.AmountRemaining="amountRemaining",e.AmountRemainingUsd="amountRemainingUsd",e.IncentiveRate="incentiveRate",e))(D||{}),h=(t=>(t.Asc="asc",t.Desc="desc",t))(h||{}),B=(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))(B||{}),T=(t=>(t.Asc="asc",t.Desc="desc",t))(T||{}),k=(a=>(a.AllTime="ALL_TIME",a.NinetyDays="NINETY_DAYS",a.SevenDays="SEVEN_DAYS",a.SixtyDays="SIXTY_DAYS",a.ThirtyDays="THIRTY_DAYS",a))(k||{}),M=(t=>(t.Day="DAY",t.Hour="HOUR",t))(M||{}),v=(t=>(t.OneDay="ONE_DAY",t.SevenDays="SEVEN_DAYS",t))(v||{}),x=(t=>(t.ExactIn="EXACT_IN",t.ExactOut="EXACT_OUT",t))(x||{}),w=(a=>(a.NinetyDay="NINETY_DAY",a.OneHundredEightyDay="ONE_HUNDRED_EIGHTY_DAY",a.OneYear="ONE_YEAR",a.SevenDay="SEVEN_DAY",a.ThirtyDay="THIRTY_DAY",a))(w||{}),V=(e=>(e.Bpt="BPT",e.PhantomBpt="PHANTOM_BPT",e.WhiteListed="WHITE_LISTED",e))(V||{}),C=(y=>(y.Amount="amount",y))(C||{}),R=(t=>(t.Asc="asc",t.Desc="desc",t))(R||{}),E=(u=>(u.Inactive="INACTIVE",u.Offline="OFFLINE",u.Proposed="PROPOSED",u.Signed="SIGNED",u))(E||{}),f=(a=>(a.ActiveBoostAmount="activeBoostAmount",a.LatestBlock="latestBlock",a.LatestBlockTime="latestBlockTime",a.QueuedBoostAmount="queuedBoostAmount",a.QueuedDropBoostAmount="queuedDropBoostAmount",a))(f||{}),U=(t=>(t.Asc="asc",t.Desc="desc",t))(U||{}),$=(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=(t=>(t.Asc="asc",t.Desc="desc",t))(F||{}),N=(u=>(u.NinetyDays="NINETY_DAYS",u.SevenDays="SEVEN_DAYS",u.SixtyDays="SIXTY_DAYS",u.ThirtyDays="THIRTY_DAYS",u))(N||{}),p=r`
|
|
2
2
|
fragment DynamicData on GqlPoolDynamicData {
|
|
3
3
|
totalShares
|
|
4
4
|
fees24h
|
|
@@ -13,7 +13,7 @@ import{gql as r}from"@apollo/client";var S=(t=>(t.Bepolia="BEPOLIA",t.Berachain=
|
|
|
13
13
|
id
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
|
-
`,
|
|
16
|
+
`,L=r`
|
|
17
17
|
fragment UserBalance on GqlPoolUserBalance {
|
|
18
18
|
totalBalanceUsd
|
|
19
19
|
walletBalance
|
|
@@ -31,7 +31,7 @@ import{gql as r}from"@apollo/client";var S=(t=>(t.Bepolia="BEPOLIA",t.Berachain=
|
|
|
31
31
|
vaultAddress
|
|
32
32
|
stakingTokenAddress
|
|
33
33
|
}
|
|
34
|
-
`,
|
|
34
|
+
`,H=r`
|
|
35
35
|
fragment MinimalPoolInList on GqlPoolMinimal {
|
|
36
36
|
id
|
|
37
37
|
name
|
|
@@ -57,7 +57,7 @@ import{gql as r}from"@apollo/client";var S=(t=>(t.Bepolia="BEPOLIA",t.Berachain=
|
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
${p}
|
|
60
|
-
${
|
|
60
|
+
${L}
|
|
61
61
|
${c}`,W=r`
|
|
62
62
|
fragment MinimalPool on GqlPoolBase {
|
|
63
63
|
id
|
|
@@ -96,7 +96,7 @@ ${c}`,O=r`
|
|
|
96
96
|
fees24h
|
|
97
97
|
totalSwapFee
|
|
98
98
|
}
|
|
99
|
-
`,
|
|
99
|
+
`,Q=r`
|
|
100
100
|
fragment GqlPoolSwapEventCowAmm on GqlPoolSwapEventCowAmm {
|
|
101
101
|
tokenIn {
|
|
102
102
|
address
|
|
@@ -107,7 +107,7 @@ ${c}`,O=r`
|
|
|
107
107
|
amount
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
`,
|
|
110
|
+
`,Y=r`
|
|
111
111
|
fragment GqlPoolSwapEventV3 on GqlPoolSwapEventV3 {
|
|
112
112
|
tokenIn {
|
|
113
113
|
address
|
|
@@ -118,14 +118,14 @@ ${c}`,O=r`
|
|
|
118
118
|
amount
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
|
-
`,
|
|
121
|
+
`,K=r`
|
|
122
122
|
fragment GqlPoolAddRemoveEventV3 on GqlPoolAddRemoveEventV3 {
|
|
123
123
|
tokens {
|
|
124
124
|
address
|
|
125
125
|
amount
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
|
-
`,
|
|
128
|
+
`,J=r`
|
|
129
129
|
fragment PoolEvent on GqlPoolEvent {
|
|
130
130
|
id
|
|
131
131
|
valueUSD
|
|
@@ -137,9 +137,9 @@ ${c}`,O=r`
|
|
|
137
137
|
...GqlPoolSwapEventV3
|
|
138
138
|
...GqlPoolAddRemoveEventV3
|
|
139
139
|
}
|
|
140
|
-
${
|
|
141
|
-
${
|
|
142
|
-
${
|
|
140
|
+
${Q}
|
|
141
|
+
${Y}
|
|
142
|
+
${K}`,j=r`
|
|
143
143
|
query GetPools($textSearch: String, $first: Int, $userAddress: String, $chain: [GqlChain!]!, $orderBy: GqlPoolOrderBy, $skip: Int, $orderDirection: GqlPoolOrderDirection, $blacklistedPoolIds: [String!]) {
|
|
144
144
|
poolGetPools(
|
|
145
145
|
textSearch: $textSearch
|
|
@@ -156,19 +156,19 @@ ${J}`,Z=r`
|
|
|
156
156
|
where: {userAddress: $userAddress, chainIn: $chain}
|
|
157
157
|
)
|
|
158
158
|
}
|
|
159
|
-
${
|
|
159
|
+
${H}`,Z=r`
|
|
160
160
|
query GetPool($id: String!, $userAddress: String, $chain: GqlChain!) {
|
|
161
161
|
poolGetPool(id: $id, userAddress: $userAddress, chain: $chain) {
|
|
162
162
|
...MinimalPool
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
|
-
${W}`,
|
|
165
|
+
${W}`,tt=r`
|
|
166
166
|
query GetPoolHistoricalData($poolId: String!, $chain: GqlChain!) {
|
|
167
167
|
poolGetSnapshots(id: $poolId, range: NINETY_DAYS, chain: $chain) {
|
|
168
168
|
...PoolHistoricalData
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
${O}`,
|
|
171
|
+
${O}`,at=r`
|
|
172
172
|
query GetPoolEvents($poolId: String!, $typeIn: [GqlPoolEventType!]!, $chain: GqlChain!) {
|
|
173
173
|
poolGetEvents(
|
|
174
174
|
poolId: $poolId
|
|
@@ -179,7 +179,7 @@ ${J}`,Z=r`
|
|
|
179
179
|
...PoolEvent
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
-
${
|
|
182
|
+
${J}`,et=r`
|
|
183
183
|
query GetTokenCurrentPrices($chains: [GqlChain!]!, $addressIn: [String!]!) {
|
|
184
184
|
tokenGetCurrentPrices(chains: $chains, addressIn: $addressIn) {
|
|
185
185
|
address
|
|
@@ -189,11 +189,11 @@ ${J}`,Z=r`
|
|
|
189
189
|
updatedBy
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
-
`,
|
|
192
|
+
`,ot=r`
|
|
193
193
|
query GetGlobalLiquidityAndSwapVolume($chain: GqlChain!) {
|
|
194
194
|
protocolMetricsAggregated(chains: [$chain]) {
|
|
195
195
|
swapVolume24h
|
|
196
196
|
totalLiquidity
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
`,
|
|
199
|
+
`,z={possibleTypes:{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"]}},rt=z;export{p as DynamicData,ot as GetGlobalLiquidityAndSwapVolume,Z as GetPool,at as GetPoolEvents,tt as GetPoolHistoricalData,j as GetPools,et as GetTokenCurrentPrices,S as GqlChain,K as GqlPoolAddRemoveEventV3,m as GqlPoolAprItemType,d as GqlPoolEventType,g as GqlPoolEventsDataRange,G as GqlPoolFilterCategory,b as GqlPoolJoinExitType,q as GqlPoolNestingType,P as GqlPoolOrderBy,A as GqlPoolOrderDirection,I as GqlPoolSnapshotDataRange,Q as GqlPoolSwapEventCowAmm,Y as GqlPoolSwapEventV3,_ as GqlPoolType,D as GqlRewardVaultIncentiveOrderBy,h as GqlRewardVaultIncentiveOrderDirection,B as GqlRewardVaultOrderBy,T as GqlRewardVaultOrderDirection,k as GqlRewardVaultSnapshotDataRange,M as GqlRewardVaultSnapshotResolution,v as GqlSWberaVaultMetadataResolution,x as GqlSorSwapType,w as GqlTokenChartDataRange,V as GqlTokenType,C as GqlUserVaultDepositOrderBy,R as GqlUserVaultDepositOrderDirection,E as GqlValidatorBlockUptimeStatus,f as GqlValidatorBoostOrderBy,U as GqlValidatorBoostOrderDirection,$ as GqlValidatorOrderBy,F as GqlValidatorOrderDirection,N as GqlVaultSnapshotDataRange,W as MinimalPool,H as MinimalPoolInList,J as PoolEvent,O as PoolHistoricalData,c as RewardVault,L as UserBalance,rt as default};
|