@berachain/graphql 0.4.6-beta.2 → 0.4.6-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/dex/api.codegen.cjs +20 -20
- package/dist/dex/api.codegen.d.cts +2 -143
- package/dist/dex/api.codegen.d.ts +2 -143
- package/dist/dex/api.codegen.mjs +19 -19
- package/dist/pol/api.codegen.cjs +34 -19
- package/dist/pol/api.codegen.d.cts +47 -143
- package/dist/pol/api.codegen.d.ts +47 -143
- package/dist/pol/api.codegen.mjs +33 -18
- package/dist/pol/fees.codegen.d.cts +6 -1
- package/dist/pol/fees.codegen.d.ts +6 -1
- package/package.json +1 -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']>>;
|
|
@@ -1466,6 +1429,7 @@ type GqlRewardVaultSnapshot = {
|
|
|
1466
1429
|
vaultAddress: Scalars['Bytes']['output'];
|
|
1467
1430
|
};
|
|
1468
1431
|
declare enum GqlRewardVaultSnapshotDataRange {
|
|
1432
|
+
AllTime = "ALL_TIME",
|
|
1469
1433
|
NinetyDays = "NINETY_DAYS",
|
|
1470
1434
|
SevenDays = "SEVEN_DAYS",
|
|
1471
1435
|
SixtyDays = "SIXTY_DAYS",
|
|
@@ -1660,25 +1624,6 @@ declare enum GqlSorSwapType {
|
|
|
1660
1624
|
ExactIn = "EXACT_IN",
|
|
1661
1625
|
ExactOut = "EXACT_OUT"
|
|
1662
1626
|
}
|
|
1663
|
-
type GqlStakeBeraVaultEarnings = {
|
|
1664
|
-
__typename?: 'GqlStakeBeraVaultEarnings';
|
|
1665
|
-
earnings: Scalars['String']['output'];
|
|
1666
|
-
owner: Scalars['String']['output'];
|
|
1667
|
-
};
|
|
1668
|
-
type GqlStakeBeraVaultEvent = {
|
|
1669
|
-
__typename?: 'GqlStakeBeraVaultEvent';
|
|
1670
|
-
_from: Scalars['String']['output'];
|
|
1671
|
-
_id: Scalars['String']['output'];
|
|
1672
|
-
_timestamp: Scalars['Int']['output'];
|
|
1673
|
-
assets: Scalars['String']['output'];
|
|
1674
|
-
owner: Scalars['String']['output'];
|
|
1675
|
-
shares: Scalars['String']['output'];
|
|
1676
|
-
type: GqlStakeBeraVaultEventType;
|
|
1677
|
-
};
|
|
1678
|
-
declare enum GqlStakeBeraVaultEventType {
|
|
1679
|
-
Deposit = "DEPOSIT",
|
|
1680
|
-
WithdrawalCompleted = "WITHDRAWAL_COMPLETED"
|
|
1681
|
-
}
|
|
1682
1627
|
/** Inputs for the call data to create the swap transaction. If this input is given, call data is added to the response. */
|
|
1683
1628
|
type GqlSwapCallDataInput = {
|
|
1684
1629
|
/** How long the swap should be valid, provide a timestamp. "999999999999999999" for infinite. Default: infinite */
|
|
@@ -2194,20 +2139,16 @@ type Query = {
|
|
|
2194
2139
|
blocksGetBlocksPerDay: Scalars['Float']['output'];
|
|
2195
2140
|
blocksGetBlocksPerSecond: Scalars['Float']['output'];
|
|
2196
2141
|
blocksGetBlocksPerYear: Scalars['Float']['output'];
|
|
2197
|
-
contentGetNewsItems: Array<GqlContentNewsItem>;
|
|
2198
2142
|
/** Returns list of hooks. */
|
|
2199
2143
|
hooks?: Maybe<Array<Hook>>;
|
|
2200
2144
|
latestSyncedBlocks: GqlLatestSyncedBlocks;
|
|
2201
2145
|
polGetActiveIncentives: PaginatedRewardVaultIncentivesResponse;
|
|
2202
|
-
polGetDefaultRewardAllocations?: Maybe<GqlDefaultRewardAllocation>;
|
|
2203
2146
|
polGetGlobalInfo?: Maybe<GqlGlobalInfo>;
|
|
2204
2147
|
polGetRewardVault?: Maybe<GqlRewardVault>;
|
|
2205
2148
|
polGetRewardVaultSnapshots: Array<GqlRewardVaultSnapshot>;
|
|
2206
2149
|
polGetRewardVaults: PaginatedRewardVaultsResponse;
|
|
2207
2150
|
polGetSWberaVaultMetadata: GqlSWberaVaultMetadata;
|
|
2208
2151
|
polGetSWberaVaultSnapshots: Array<GqlSWberaVaultSnapshot>;
|
|
2209
|
-
polGetStakeBeraVaultEarningsByOwner: GqlStakeBeraVaultEarnings;
|
|
2210
|
-
polGetStakeBeraVaultEventsByOwner: Array<GqlStakeBeraVaultEvent>;
|
|
2211
2152
|
polGetTopVaultDeposits: Array<GqlUserVaultDepositMinimal>;
|
|
2212
2153
|
polGetUserVaultDeposits: PaginatedUserVaultDepositsResponse;
|
|
2213
2154
|
polGetValidator?: Maybe<GqlValidator>;
|
|
@@ -2221,25 +2162,8 @@ type Query = {
|
|
|
2221
2162
|
poolEvents: Array<GqlPoolEvent>;
|
|
2222
2163
|
/** Returns all pools for a given filter, specific for aggregators */
|
|
2223
2164
|
poolGetAggregatorPools: Array<GqlPoolAggregator>;
|
|
2224
|
-
/**
|
|
2225
|
-
* Will de deprecated in favor of poolEvents
|
|
2226
|
-
* @deprecated Use poolEvents instead
|
|
2227
|
-
*/
|
|
2228
|
-
poolGetBatchSwaps: Array<GqlPoolBatchSwap>;
|
|
2229
2165
|
/** Getting swap, add and remove events with range */
|
|
2230
2166
|
poolGetEvents: Array<GqlPoolEvent>;
|
|
2231
|
-
/**
|
|
2232
|
-
* Will de deprecated in favor of poolGetFeaturedPools
|
|
2233
|
-
* @deprecated Use poolGetFeaturedPools instead
|
|
2234
|
-
*/
|
|
2235
|
-
poolGetFeaturedPoolGroups: Array<GqlPoolFeaturedPoolGroup>;
|
|
2236
|
-
/** Returns the list of featured pools for chains */
|
|
2237
|
-
poolGetFeaturedPools: Array<GqlPoolFeaturedPool>;
|
|
2238
|
-
/**
|
|
2239
|
-
* Will de deprecated in favor of poolEvents
|
|
2240
|
-
* @deprecated Use poolEvents instead
|
|
2241
|
-
*/
|
|
2242
|
-
poolGetJoinExits: Array<GqlPoolJoinExit>;
|
|
2243
2167
|
/** Returns one pool. If a user address is provided, the user balances for the given pool will also be returned. */
|
|
2244
2168
|
poolGetPool: GqlPoolBase;
|
|
2245
2169
|
/** Returns all pools for a given filter */
|
|
@@ -2248,12 +2172,6 @@ type Query = {
|
|
|
2248
2172
|
poolGetPoolsCount: Scalars['Int']['output'];
|
|
2249
2173
|
/** Gets all the snapshots for a given pool on a chain for a certain range */
|
|
2250
2174
|
poolGetSnapshots: Array<GqlPoolSnapshot>;
|
|
2251
|
-
/**
|
|
2252
|
-
* Will de deprecated in favor of poolEvents
|
|
2253
|
-
* @deprecated Use poolEvents instead
|
|
2254
|
-
*/
|
|
2255
|
-
poolGetSwaps: Array<GqlPoolSwap>;
|
|
2256
|
-
poolGetUserBalances: Array<GqlUserPoolBalance>;
|
|
2257
2175
|
protocolMetricsAggregated: GqlProtocolMetricsAggregated;
|
|
2258
2176
|
protocolMetricsChain: GqlProtocolMetricsChain;
|
|
2259
2177
|
/** Get swap quote from the SOR v2 for the V2 vault */
|
|
@@ -2285,20 +2203,10 @@ type Query = {
|
|
|
2285
2203
|
tokenGetRelativePriceChartData: Array<GqlTokenPriceChartDataItem>;
|
|
2286
2204
|
/** Returns a token for a given address and chain */
|
|
2287
2205
|
tokenGetToken: GqlToken;
|
|
2288
|
-
/**
|
|
2289
|
-
* Returns meta data for a given token such as description, website, etc.
|
|
2290
|
-
* @deprecated Use tokenGetTokens instead
|
|
2291
|
-
*/
|
|
2292
|
-
tokenGetTokenData?: Maybe<GqlTokenData>;
|
|
2293
2206
|
/** Returns dynamic data of a token such as price, market cap, etc. */
|
|
2294
2207
|
tokenGetTokenDynamicData?: Maybe<GqlTokenDynamicData>;
|
|
2295
2208
|
/** Returns all allowed tokens for a given chain or chains */
|
|
2296
2209
|
tokenGetTokens: Array<GqlToken>;
|
|
2297
|
-
/**
|
|
2298
|
-
* Returns meta data for a given set of tokens such as description, website, etc.
|
|
2299
|
-
* @deprecated Use tokenGetTokens instead
|
|
2300
|
-
*/
|
|
2301
|
-
tokenGetTokensData: Array<GqlTokenData>;
|
|
2302
2210
|
/** Returns dynamic data of a set of tokens such as price, market cap, etc. */
|
|
2303
2211
|
tokenGetTokensDynamicData: Array<GqlTokenDynamicData>;
|
|
2304
2212
|
userGetPoolBalances: Array<GqlUserPoolBalance>;
|
|
@@ -2306,14 +2214,10 @@ type Query = {
|
|
|
2306
2214
|
userGetPoolJoinExits: Array<GqlPoolJoinExit>;
|
|
2307
2215
|
/** Will de deprecated in favor of poolGetEvents */
|
|
2308
2216
|
userGetSwaps: Array<GqlPoolSwap>;
|
|
2309
|
-
userGetTopBGTBalance: Array<GqlUserBgtBalance>;
|
|
2310
2217
|
};
|
|
2311
2218
|
type QueryBendVaultArgs = {
|
|
2312
2219
|
vaultAddress: Scalars['Bytes']['input'];
|
|
2313
2220
|
};
|
|
2314
|
-
type QueryContentGetNewsItemsArgs = {
|
|
2315
|
-
chain?: InputMaybe<GqlChain>;
|
|
2316
|
-
};
|
|
2317
2221
|
type QueryHooksArgs = {
|
|
2318
2222
|
chain?: InputMaybe<GqlChain>;
|
|
2319
2223
|
};
|
|
@@ -2325,9 +2229,6 @@ type QueryPolGetActiveIncentivesArgs = {
|
|
|
2325
2229
|
search?: InputMaybe<Scalars['String']['input']>;
|
|
2326
2230
|
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
2327
2231
|
};
|
|
2328
|
-
type QueryPolGetDefaultRewardAllocationsArgs = {
|
|
2329
|
-
chain?: InputMaybe<GqlChain>;
|
|
2330
|
-
};
|
|
2331
2232
|
type QueryPolGetGlobalInfoArgs = {
|
|
2332
2233
|
chain: GqlChain;
|
|
2333
2234
|
};
|
|
@@ -2358,12 +2259,6 @@ type QueryPolGetSWberaVaultSnapshotsArgs = {
|
|
|
2358
2259
|
chain: GqlChain;
|
|
2359
2260
|
range?: InputMaybe<GqlVaultSnapshotDataRange>;
|
|
2360
2261
|
};
|
|
2361
|
-
type QueryPolGetStakeBeraVaultEarningsByOwnerArgs = {
|
|
2362
|
-
owner: Scalars['String']['input'];
|
|
2363
|
-
};
|
|
2364
|
-
type QueryPolGetStakeBeraVaultEventsByOwnerArgs = {
|
|
2365
|
-
owner: Scalars['String']['input'];
|
|
2366
|
-
};
|
|
2367
2262
|
type QueryPolGetTopVaultDepositsArgs = {
|
|
2368
2263
|
chain: GqlChain;
|
|
2369
2264
|
top?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -2416,11 +2311,6 @@ type QueryPoolGetAggregatorPoolsArgs = {
|
|
|
2416
2311
|
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
2417
2312
|
where?: InputMaybe<GqlPoolFilter>;
|
|
2418
2313
|
};
|
|
2419
|
-
type QueryPoolGetBatchSwapsArgs = {
|
|
2420
|
-
first?: InputMaybe<Scalars['Int']['input']>;
|
|
2421
|
-
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
2422
|
-
where?: InputMaybe<GqlPoolSwapFilter>;
|
|
2423
|
-
};
|
|
2424
2314
|
type QueryPoolGetEventsArgs = {
|
|
2425
2315
|
chain: GqlChain;
|
|
2426
2316
|
poolId: Scalars['String']['input'];
|
|
@@ -2428,17 +2318,6 @@ type QueryPoolGetEventsArgs = {
|
|
|
2428
2318
|
typeIn: Array<GqlPoolEventType>;
|
|
2429
2319
|
userAddress?: InputMaybe<Scalars['String']['input']>;
|
|
2430
2320
|
};
|
|
2431
|
-
type QueryPoolGetFeaturedPoolGroupsArgs = {
|
|
2432
|
-
chains?: InputMaybe<Array<GqlChain>>;
|
|
2433
|
-
};
|
|
2434
|
-
type QueryPoolGetFeaturedPoolsArgs = {
|
|
2435
|
-
chains: Array<GqlChain>;
|
|
2436
|
-
};
|
|
2437
|
-
type QueryPoolGetJoinExitsArgs = {
|
|
2438
|
-
first?: InputMaybe<Scalars['Int']['input']>;
|
|
2439
|
-
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
2440
|
-
where?: InputMaybe<GqlPoolJoinExitFilter>;
|
|
2441
|
-
};
|
|
2442
2321
|
type QueryPoolGetPoolArgs = {
|
|
2443
2322
|
chain?: InputMaybe<GqlChain>;
|
|
2444
2323
|
id: Scalars['String']['input'];
|
|
@@ -2465,16 +2344,6 @@ type QueryPoolGetSnapshotsArgs = {
|
|
|
2465
2344
|
id: Scalars['String']['input'];
|
|
2466
2345
|
range: GqlPoolSnapshotDataRange;
|
|
2467
2346
|
};
|
|
2468
|
-
type QueryPoolGetSwapsArgs = {
|
|
2469
|
-
first?: InputMaybe<Scalars['Int']['input']>;
|
|
2470
|
-
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
2471
|
-
where?: InputMaybe<GqlPoolSwapFilter>;
|
|
2472
|
-
};
|
|
2473
|
-
type QueryPoolGetUserBalancesArgs = {
|
|
2474
|
-
chain: GqlChain;
|
|
2475
|
-
poolId: Scalars['String']['input'];
|
|
2476
|
-
top?: InputMaybe<Scalars['Int']['input']>;
|
|
2477
|
-
};
|
|
2478
2347
|
type QueryProtocolMetricsAggregatedArgs = {
|
|
2479
2348
|
chains?: InputMaybe<Array<GqlChain>>;
|
|
2480
2349
|
};
|
|
@@ -2535,10 +2404,6 @@ type QueryTokenGetTokenArgs = {
|
|
|
2535
2404
|
address: Scalars['String']['input'];
|
|
2536
2405
|
chain: GqlChain;
|
|
2537
2406
|
};
|
|
2538
|
-
type QueryTokenGetTokenDataArgs = {
|
|
2539
|
-
address: Scalars['String']['input'];
|
|
2540
|
-
chain?: InputMaybe<GqlChain>;
|
|
2541
|
-
};
|
|
2542
2407
|
type QueryTokenGetTokenDynamicDataArgs = {
|
|
2543
2408
|
address: Scalars['String']['input'];
|
|
2544
2409
|
chain?: InputMaybe<GqlChain>;
|
|
@@ -2547,9 +2412,6 @@ type QueryTokenGetTokensArgs = {
|
|
|
2547
2412
|
addressIn?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
2548
2413
|
chains: Array<GqlChain>;
|
|
2549
2414
|
};
|
|
2550
|
-
type QueryTokenGetTokensDataArgs = {
|
|
2551
|
-
addresses: Array<Scalars['String']['input']>;
|
|
2552
|
-
};
|
|
2553
2415
|
type QueryTokenGetTokensDynamicDataArgs = {
|
|
2554
2416
|
addresses: Array<Scalars['String']['input']>;
|
|
2555
2417
|
chain?: InputMaybe<GqlChain>;
|
|
@@ -2572,9 +2434,6 @@ type QueryUserGetSwapsArgs = {
|
|
|
2572
2434
|
poolId: Scalars['String']['input'];
|
|
2573
2435
|
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
2574
2436
|
};
|
|
2575
|
-
type QueryUserGetTopBgtBalanceArgs = {
|
|
2576
|
-
chain: GqlChain;
|
|
2577
|
-
};
|
|
2578
2437
|
type Token = {
|
|
2579
2438
|
__typename?: 'Token';
|
|
2580
2439
|
address: Scalars['Bytes']['output'];
|
|
@@ -3854,4 +3713,4 @@ interface PossibleTypesResultData {
|
|
|
3854
3713
|
}
|
|
3855
3714
|
declare const result: PossibleTypesResultData;
|
|
3856
3715
|
|
|
3857
|
-
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
|
|
3716
|
+
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 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, 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||{}),P=(e=>(e.HasOnlyPhantomBpt="HAS_ONLY_PHANTOM_BPT",e.HasSomePhantomBpt="HAS_SOME_PHANTOM_BPT",e.NoNesting="NO_NESTING",e))(P||{}),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||{}),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))(_||{}),h=(e=>(e.AmountRemaining="amountRemaining",e.AmountRemainingUsd="amountRemainingUsd",e.IncentiveRate="incentiveRate",e))(h||{}),D=(t=>(t.Asc="asc",t.Desc="desc",t))(D||{}),T=(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))(T||{}),B=(t=>(t.Asc="asc",t.Desc="desc",t))(B||{}),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||{}),x=(t=>(t.OneDay="ONE_DAY",t.SevenDays="SEVEN_DAYS",t))(x||{}),v=(t=>(t.ExactIn="EXACT_IN",t.ExactOut="EXACT_OUT",t))(v||{}),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||{}),f=(t=>(t.Asc="asc",t.Desc="desc",t))(f||{}),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))(U||{}),$=(t=>(t.Asc="asc",t.Desc="desc",t))($||{}),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,8 +57,8 @@ import{gql as r}from"@apollo/client";var S=(t=>(t.Bepolia="BEPOLIA",t.Berachain=
|
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
${p}
|
|
60
|
-
${
|
|
61
|
-
${c}`,
|
|
60
|
+
${L}
|
|
61
|
+
${c}`,W=r`
|
|
62
62
|
fragment MinimalPool on GqlPoolBase {
|
|
63
63
|
id
|
|
64
64
|
name
|
|
@@ -86,7 +86,7 @@ ${c}`,O=r`
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
${p}
|
|
89
|
-
${c}`,
|
|
89
|
+
${c}`,O=r`
|
|
90
90
|
fragment PoolHistoricalData on GqlPoolSnapshot {
|
|
91
91
|
id
|
|
92
92
|
volume24h
|
|
@@ -96,7 +96,7 @@ ${c}`,Y=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}`,Y=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}`,Y=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
|
+
`,z=r`
|
|
129
129
|
fragment PoolEvent on GqlPoolEvent {
|
|
130
130
|
id
|
|
131
131
|
valueUSD
|
|
@@ -137,9 +137,9 @@ ${c}`,Y=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 @@ ${z}`,tt=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
|
-
${
|
|
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
|
-
${
|
|
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 @@ ${z}`,tt=r`
|
|
|
179
179
|
...PoolEvent
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
-
${
|
|
182
|
+
${z}`,et=r`
|
|
183
183
|
query GetTokenCurrentPrices($chains: [GqlChain!]!, $addressIn: [String!]!) {
|
|
184
184
|
tokenGetCurrentPrices(chains: $chains, addressIn: $addressIn) {
|
|
185
185
|
address
|
|
@@ -189,11 +189,11 @@ ${z}`,tt=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
|
+
`,J={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=J;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,P as GqlPoolNestingType,q as GqlPoolOrderBy,A as GqlPoolOrderDirection,I as GqlPoolSnapshotDataRange,Q as GqlPoolSwapEventCowAmm,Y as GqlPoolSwapEventV3,_ as GqlPoolType,h as GqlRewardVaultIncentiveOrderBy,D as GqlRewardVaultIncentiveOrderDirection,T as GqlRewardVaultOrderBy,B as GqlRewardVaultOrderDirection,k as GqlRewardVaultSnapshotDataRange,M as GqlRewardVaultSnapshotResolution,x as GqlSWberaVaultMetadataResolution,v as GqlSorSwapType,w as GqlTokenChartDataRange,V as GqlTokenType,C as GqlUserVaultDepositOrderBy,R as GqlUserVaultDepositOrderDirection,E as GqlValidatorBlockUptimeStatus,F as GqlValidatorBoostOrderBy,f as GqlValidatorBoostOrderDirection,U as GqlValidatorOrderBy,$ as GqlValidatorOrderDirection,N as GqlVaultSnapshotDataRange,W as MinimalPool,H as MinimalPoolInList,z as PoolEvent,O as PoolHistoricalData,c as RewardVault,L as UserBalance,rt as default};
|