diff --git a/codegen.ts b/codegen.ts index bcc4fa533..8ce78bbce 100644 --- a/codegen.ts +++ b/codegen.ts @@ -36,7 +36,7 @@ const files = { ...defaults.types, }, ['modules/subgraphs/balancer-subgraph/generated/balancer-subgraph-types.ts']: { - schema: config.MAINNET.subgraphs.balancer, + schema: config.SONIC.subgraphs.balancer, documents: 'modules/subgraphs/balancer-subgraph/balancer-subgraph-queries.graphql', ...defaults.types, }, diff --git a/modules/actions/pool/v2/sync-swaps.ts b/modules/actions/pool/v2/sync-swaps.ts index 1a6f5ddc0..3a7d863ac 100644 --- a/modules/actions/pool/v2/sync-swaps.ts +++ b/modules/actions/pool/v2/sync-swaps.ts @@ -1,4 +1,4 @@ -import { Chain } from '@prisma/client'; +import { Chain, PrismaPoolToken } from '@prisma/client'; import { prisma } from '../../../../prisma/prisma-client'; import { V2SubgraphClient } from '../../../subgraphs/balancer-subgraph'; import _ from 'lodash'; @@ -29,9 +29,10 @@ export async function syncSwaps( }, select: { id: true, - typeData: true, // contains the quote token address + typeData: true, // contains the quote token address' + tokens: true, }, - })) as { id: string; typeData: { quoteToken: string } }[]; + })) as { id: string; typeData: { quoteToken: string }; tokens: PrismaPoolToken[] }[]; // Get events console.time('BalancerSwaps'); @@ -39,14 +40,14 @@ export async function syncSwaps( console.timeEnd('BalancerSwaps'); console.time('swapV2Transformer'); - const dbSwaps = swaps.map((swap) => swapV2Transformer(swap, chain, fxPools)); + const dbSwaps = swaps.map((swap) => swapV2Transformer(swap, chain)); console.timeEnd('swapV2Transformer'); // TODO: parse batchSwaps, if needed // Enrich with USD values console.time('swapsUsd'); - const dbEntries = await swapsUsd(dbSwaps, chain); + const dbEntries = await swapsUsd(dbSwaps, chain, fxPools); console.timeEnd('swapsUsd'); console.time('prismaPoolEvent.createMany'); @@ -76,17 +77,18 @@ export async function reloadSwapsForPool( select: { id: true, typeData: true, // contains the quote token address + tokens: true, }, - })) as { id: string; typeData: { quoteToken: string } }[]; + })) as { id: string; typeData: { quoteToken: string }; tokens: PrismaPoolToken[] }[]; // Get events const swaps = await subgraphClient.getAllSwapsForPool(poolId); - const dbSwaps = swaps.map((swap) => swapV2Transformer(swap, chain, fxPools)); + const dbSwaps = swaps.map((swap) => swapV2Transformer(swap, chain)); // Enrich with USD values console.time('swapsUsd'); - const dbEntries = await swapsUsd(dbSwaps, chain); + const dbEntries = await swapsUsd(dbSwaps, chain, fxPools); console.timeEnd('swapsUsd'); await eventRepo.upsertEvents(dbEntries); diff --git a/modules/pool/subgraph-mapper.ts b/modules/pool/subgraph-mapper.ts index bfada0ccb..4cf94d320 100644 --- a/modules/pool/subgraph-mapper.ts +++ b/modules/pool/subgraph-mapper.ts @@ -91,7 +91,7 @@ const subgraphMapper = ( swapEnabled: pool.swapEnabled, totalShares: pool.totalShares, totalSharesNum: parseFloat(pool.totalShares), - totalLiquidity: Math.max(parseFloat(pool.totalLiquidity), 0), + totalLiquidity: 0, }; const typeData: ReturnType<(typeof typeDataMapper)[keyof typeof typeDataMapper]> | {} = Object.keys( diff --git a/modules/sources/enrichers/swaps-usd.ts b/modules/sources/enrichers/swaps-usd.ts index 6fbe447e9..a8f5ec3ea 100644 --- a/modules/sources/enrichers/swaps-usd.ts +++ b/modules/sources/enrichers/swaps-usd.ts @@ -1,6 +1,6 @@ import _ from 'lodash'; import { daysAgo, roundToHour, roundToMidnight } from '../../common/time'; -import { Chain } from '@prisma/client'; +import { Chain, PrismaPoolToken } from '@prisma/client'; import { prisma } from '../../../prisma/prisma-client'; import { SwapEvent } from '../../../prisma/prisma-types'; @@ -11,7 +11,11 @@ import { SwapEvent } from '../../../prisma/prisma-types'; * @param chain * @returns */ -export async function swapsUsd(swaps: SwapEvent[], chain: Chain): Promise { +export async function swapsUsd( + swaps: SwapEvent[], + chain: Chain, + fxPools: { id: string; typeData: { quoteToken: string }; tokens: PrismaPoolToken[] }[] = [], +): Promise { // Enrich with USD values // Group swaps based on timestamp, hourly and daily buckets const groupedSwaps = _.groupBy(swaps, (swap) => { @@ -40,9 +44,33 @@ export async function swapsUsd(swaps: SwapEvent[], chain: Chain): Promise price.tokenAddress === swap.payload.tokenOut.address); const feeToken = tokenPrices.find((price) => price.tokenAddress === swap.payload.fee.address); const surplusToken = tokenPrices.find((price) => price.tokenAddress === swap.payload.surplus?.address); - const feeValueUSD = parseFloat(swap.payload.fee.amount) * (feeToken?.price || 0); + let feeValueUSD = parseFloat(swap.payload.fee.amount) * (feeToken?.price || 0); const dynamicFeeValueUSD = parseFloat(swap.payload.dynamicFee?.amount || '0') * (feeToken?.price || 0); + const fxPool = fxPools.find((pool) => pool.id === swap.poolId); + if (fxPool) { + const quoteTokenAddress = fxPool.typeData.quoteToken; + const baseTokenAddress = + swap.payload.tokenIn.address === quoteTokenAddress + ? swap.payload.tokenOut.address + : swap.payload.tokenIn.address; + let isTokenInBase = swap.payload.tokenOut.address === quoteTokenAddress; + let baseRate = fxPool.tokens.find((t) => t.address === baseTokenAddress)?.latestFxPrice; + let quoteRate = fxPool.tokens.find((t) => t.address === quoteTokenAddress)?.latestFxPrice; + + if (baseRate && quoteRate) { + if (isTokenInBase) { + feeValueUSD += + parseFloat(swap.payload.tokenIn.amount) * baseRate - + parseFloat(swap.payload.tokenOut.amount) * quoteRate; + } else { + feeValueUSD += + parseFloat(swap.payload.tokenIn.amount) * quoteRate - + parseFloat(swap.payload.tokenOut.amount) * baseRate; + } + } + } + const payload = { fee: { ...swap.payload.fee, diff --git a/modules/sources/subgraphs/balancer-v3-vault/generated/types.ts b/modules/sources/subgraphs/balancer-v3-vault/generated/types.ts index 9bee56a92..43f621975 100644 --- a/modules/sources/subgraphs/balancer-v3-vault/generated/types.ts +++ b/modules/sources/subgraphs/balancer-v3-vault/generated/types.ts @@ -2835,7 +2835,6 @@ export type _Meta_ = { * will be null if the _meta field has a block constraint that asks for * a block number. It will be filled if the _meta field has no block constraint * and therefore asks for the latest block - * */ block: _Block_; /** The deployment ID */ diff --git a/modules/sources/transformers/swap-v2-transformer.ts b/modules/sources/transformers/swap-v2-transformer.ts index 3974895e6..aa1e3f239 100644 --- a/modules/sources/transformers/swap-v2-transformer.ts +++ b/modules/sources/transformers/swap-v2-transformer.ts @@ -10,52 +10,10 @@ import { SwapEvent } from '../../../prisma/prisma-types'; * @param chain * @returns */ -export function swapV2Transformer( - swap: BalancerSwapFragment, - chain: Chain, - fxPools: { id: string; typeData: { quoteToken: string } }[] = [], -): SwapEvent { +export function swapV2Transformer(swap: BalancerSwapFragment, chain: Chain): SwapEvent { // Avoiding scientific notation const feeFloat = parseFloat(swap.tokenAmountIn) * parseFloat(swap.poolId.swapFee ?? 0); let fee = feeFloat < 1e6 ? feeFloat.toFixed(18).replace(/0+$/, '').replace(/\.$/, '') : String(feeFloat); - let feeFloatUSD = parseFloat(swap.valueUSD) * parseFloat(swap.poolId.swapFee ?? 0); - let feeUSD = - feeFloatUSD < 1e6 ? feeFloatUSD.toFixed(18).replace(/0+$/, '').replace(/\.$/, '') : String(feeFloatUSD); - - // FX pools have a different fee calculation - // Replica of the subgraph logic: - // https://github.com/balancer/balancer-subgraph-v2/blob/60453224453bd07a0a3a22a8ad6cc26e65fd809f/src/mappings/vault.ts#L551-L564 - if (swap.poolId.poolType === 'FX') { - // Find the pool that has the quote token - const fxPool = fxPools.find((pool) => pool.id === swap.poolId.id); - if (fxPool && [swap.tokenOut, swap.tokenIn].includes(fxPool.typeData.quoteToken)) { - const quoteTokenAddress = fxPool.typeData.quoteToken; - const baseTokenAddress = swap.tokenIn === quoteTokenAddress ? swap.tokenOut : swap.tokenIn; - let isTokenInBase = swap.tokenOut === quoteTokenAddress; - let baseToken = swap.poolId.tokens?.find(({ token }) => token.address == baseTokenAddress); - let quoteToken = swap.poolId.tokens?.find(({ token }) => token.address == quoteTokenAddress); - let baseRate = baseToken != null ? baseToken.token.latestFXPrice : null; - let quoteRate = quoteToken != null ? quoteToken.token.latestFXPrice : null; - - if (baseRate && quoteRate) { - if (isTokenInBase) { - feeFloatUSD += - parseFloat(swap.tokenAmountIn) * parseFloat(baseRate) - - parseFloat(swap.tokenAmountOut) * parseFloat(quoteRate); - // Need to set the fee in the tokenIn price, because it's later recalculated based on the DB prices - fee = String(feeFloatUSD / parseFloat(baseRate)); // fee / tokenIn price - } else { - feeFloatUSD += - parseFloat(swap.tokenAmountIn) * parseFloat(quoteRate) - - parseFloat(swap.tokenAmountOut) * parseFloat(baseRate); - // Need to set the fee in the tokenIn price, because it's later recalculated based on the DB prices - fee = String(feeFloatUSD / parseFloat(quoteRate)); // fee / tokenIn price - } - } - - feeUSD = String(feeFloatUSD); - } - } return { id: swap.id, // tx + logIndex @@ -64,16 +22,16 @@ export function swapV2Transformer( poolId: swap.poolId.id, chain: chain, protocolVersion: 2, - userAddress: swap.userAddress.id, + userAddress: typeof swap.userAddress === 'string' ? swap.userAddress : swap.userAddress.id, blockNumber: Number(swap.block ?? 0), // FANTOM is missing block blockTimestamp: Number(swap.timestamp), logIndex: Number(swap.id.substring(66)), - valueUSD: Number(swap.valueUSD), + valueUSD: 0, payload: { fee: { address: swap.tokenIn, amount: fee, - valueUSD: feeUSD, + valueUSD: '0', // to be filled later }, tokenIn: { address: swap.tokenIn, diff --git a/modules/subgraphs/balancer-subgraph/balancer-subgraph-queries.graphql b/modules/subgraphs/balancer-subgraph/balancer-subgraph-queries.graphql index 7f15a9e3a..24ec2e800 100644 --- a/modules/subgraphs/balancer-subgraph/balancer-subgraph-queries.graphql +++ b/modules/subgraphs/balancer-subgraph/balancer-subgraph-queries.graphql @@ -34,10 +34,6 @@ fragment BalancerPool on Pool { symbol name swapFee - totalWeight - totalSwapVolume - totalSwapFee - totalLiquidity totalShares swapsCount holdersCount @@ -129,41 +125,6 @@ query BalancerPool($id: ID!, $block: Block_height) { } } -query BalancerPoolSnapshots( - $skip: Int - $first: Int - $orderBy: PoolSnapshot_orderBy - $orderDirection: OrderDirection - $where: PoolSnapshot_filter - $block: Block_height -) { - poolSnapshots( - skip: $skip - first: $first - orderBy: $orderBy - orderDirection: $orderDirection - where: $where - block: $block - ) { - ...BalancerPoolSnapshot - } -} - -fragment BalancerPoolSnapshot on PoolSnapshot { - id - pool { - id - } - amounts - totalShares - swapVolume - swapFees - timestamp - liquidity - swapsCount - holdersCount -} - query BalancerJoinExits( $skip: Int $first: Int @@ -196,7 +157,6 @@ fragment BalancerJoinExit on JoinExit { id tokensList } - valueUSD } query BalancerSwaps( @@ -239,12 +199,9 @@ fragment BalancerSwap on Swap { } } } - userAddress { - id - } + userAddress timestamp tx - valueUSD block } @@ -254,11 +211,6 @@ query BalancerGetPoolsWithActiveUpdates($timestamp: BigInt!) { id } } - gradualWeightUpdates(where: { endTimestamp_gte: $timestamp }) { - poolId { - id - } - } } query BalancerGetMeta { diff --git a/modules/subgraphs/balancer-subgraph/balancer-subgraph.service.ts b/modules/subgraphs/balancer-subgraph/balancer-subgraph.service.ts index b2ade6054..ae91a127c 100644 --- a/modules/subgraphs/balancer-subgraph/balancer-subgraph.service.ts +++ b/modules/subgraphs/balancer-subgraph/balancer-subgraph.service.ts @@ -144,10 +144,10 @@ export class BalancerSubgraphService { } public async getPoolsWithActiveUpdates(timestamp: number): Promise { - const { ampUpdates, gradualWeightUpdates } = await this.sdk.BalancerGetPoolsWithActiveUpdates({ + const { ampUpdates } = await this.sdk.BalancerGetPoolsWithActiveUpdates({ timestamp: `${timestamp}`, }); - return [...ampUpdates, ...gradualWeightUpdates].map((item) => item.poolId.id); + return ampUpdates.map((item) => item.poolId.id); } } diff --git a/modules/subgraphs/balancer-subgraph/generated/balancer-subgraph-types.ts b/modules/subgraphs/balancer-subgraph/generated/balancer-subgraph-types.ts index f1f81b73e..9a4241cea 100644 --- a/modules/subgraphs/balancer-subgraph/generated/balancer-subgraph-types.ts +++ b/modules/subgraphs/balancer-subgraph/generated/balancer-subgraph-types.ts @@ -168,13 +168,8 @@ export enum AmpUpdate_OrderBy { PoolIdTauBetaX = 'poolId__tauBetaX', PoolIdTauBetaY = 'poolId__tauBetaY', PoolIdTotalAumFeeCollectedInBpt = 'poolId__totalAumFeeCollectedInBPT', - PoolIdTotalLiquidity = 'poolId__totalLiquidity', - PoolIdTotalLiquiditySansBpt = 'poolId__totalLiquiditySansBPT', - PoolIdTotalProtocolFee = 'poolId__totalProtocolFee', PoolIdTotalProtocolFeePaidInBpt = 'poolId__totalProtocolFeePaidInBPT', PoolIdTotalShares = 'poolId__totalShares', - PoolIdTotalSwapFee = 'poolId__totalSwapFee', - PoolIdTotalSwapVolume = 'poolId__totalSwapVolume', PoolIdTotalWeight = 'poolId__totalWeight', PoolIdTx = 'poolId__tx', PoolIdU = 'poolId__u', @@ -194,13 +189,6 @@ export type Balancer = { id: Scalars['ID']; poolCount: Scalars['Int']; pools?: Maybe>; - protocolFeesCollector?: Maybe; - snapshots?: Maybe>; - totalLiquidity: Scalars['BigDecimal']; - totalProtocolFee?: Maybe; - totalSwapCount: Scalars['BigInt']; - totalSwapFee: Scalars['BigDecimal']; - totalSwapVolume: Scalars['BigDecimal']; }; export type BalancerPoolsArgs = { @@ -211,139 +199,6 @@ export type BalancerPoolsArgs = { where?: InputMaybe; }; -export type BalancerSnapshotsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - -export type BalancerSnapshot = { - __typename?: 'BalancerSnapshot'; - id: Scalars['ID']; - poolCount: Scalars['Int']; - timestamp: Scalars['Int']; - totalLiquidity: Scalars['BigDecimal']; - totalProtocolFee?: Maybe; - totalSwapCount: Scalars['BigInt']; - totalSwapFee: Scalars['BigDecimal']; - totalSwapVolume: Scalars['BigDecimal']; - vault: Balancer; -}; - -export type BalancerSnapshot_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - poolCount?: InputMaybe; - poolCount_gt?: InputMaybe; - poolCount_gte?: InputMaybe; - poolCount_in?: InputMaybe>; - poolCount_lt?: InputMaybe; - poolCount_lte?: InputMaybe; - poolCount_not?: InputMaybe; - poolCount_not_in?: InputMaybe>; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - totalLiquidity?: InputMaybe; - totalLiquidity_gt?: InputMaybe; - totalLiquidity_gte?: InputMaybe; - totalLiquidity_in?: InputMaybe>; - totalLiquidity_lt?: InputMaybe; - totalLiquidity_lte?: InputMaybe; - totalLiquidity_not?: InputMaybe; - totalLiquidity_not_in?: InputMaybe>; - totalProtocolFee?: InputMaybe; - totalProtocolFee_gt?: InputMaybe; - totalProtocolFee_gte?: InputMaybe; - totalProtocolFee_in?: InputMaybe>; - totalProtocolFee_lt?: InputMaybe; - totalProtocolFee_lte?: InputMaybe; - totalProtocolFee_not?: InputMaybe; - totalProtocolFee_not_in?: InputMaybe>; - totalSwapCount?: InputMaybe; - totalSwapCount_gt?: InputMaybe; - totalSwapCount_gte?: InputMaybe; - totalSwapCount_in?: InputMaybe>; - totalSwapCount_lt?: InputMaybe; - totalSwapCount_lte?: InputMaybe; - totalSwapCount_not?: InputMaybe; - totalSwapCount_not_in?: InputMaybe>; - totalSwapFee?: InputMaybe; - totalSwapFee_gt?: InputMaybe; - totalSwapFee_gte?: InputMaybe; - totalSwapFee_in?: InputMaybe>; - totalSwapFee_lt?: InputMaybe; - totalSwapFee_lte?: InputMaybe; - totalSwapFee_not?: InputMaybe; - totalSwapFee_not_in?: InputMaybe>; - totalSwapVolume?: InputMaybe; - totalSwapVolume_gt?: InputMaybe; - totalSwapVolume_gte?: InputMaybe; - totalSwapVolume_in?: InputMaybe>; - totalSwapVolume_lt?: InputMaybe; - totalSwapVolume_lte?: InputMaybe; - totalSwapVolume_not?: InputMaybe; - totalSwapVolume_not_in?: InputMaybe>; - vault?: InputMaybe; - vault_?: InputMaybe; - vault_contains?: InputMaybe; - vault_contains_nocase?: InputMaybe; - vault_ends_with?: InputMaybe; - vault_ends_with_nocase?: InputMaybe; - vault_gt?: InputMaybe; - vault_gte?: InputMaybe; - vault_in?: InputMaybe>; - vault_lt?: InputMaybe; - vault_lte?: InputMaybe; - vault_not?: InputMaybe; - vault_not_contains?: InputMaybe; - vault_not_contains_nocase?: InputMaybe; - vault_not_ends_with?: InputMaybe; - vault_not_ends_with_nocase?: InputMaybe; - vault_not_in?: InputMaybe>; - vault_not_starts_with?: InputMaybe; - vault_not_starts_with_nocase?: InputMaybe; - vault_starts_with?: InputMaybe; - vault_starts_with_nocase?: InputMaybe; -}; - -export enum BalancerSnapshot_OrderBy { - Id = 'id', - PoolCount = 'poolCount', - Timestamp = 'timestamp', - TotalLiquidity = 'totalLiquidity', - TotalProtocolFee = 'totalProtocolFee', - TotalSwapCount = 'totalSwapCount', - TotalSwapFee = 'totalSwapFee', - TotalSwapVolume = 'totalSwapVolume', - Vault = 'vault', - VaultId = 'vault__id', - VaultPoolCount = 'vault__poolCount', - VaultProtocolFeesCollector = 'vault__protocolFeesCollector', - VaultTotalLiquidity = 'vault__totalLiquidity', - VaultTotalProtocolFee = 'vault__totalProtocolFee', - VaultTotalSwapCount = 'vault__totalSwapCount', - VaultTotalSwapFee = 'vault__totalSwapFee', - VaultTotalSwapVolume = 'vault__totalSwapVolume', -} - export type Balancer_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; @@ -366,70 +221,12 @@ export type Balancer_Filter = { poolCount_not?: InputMaybe; poolCount_not_in?: InputMaybe>; pools_?: InputMaybe; - protocolFeesCollector?: InputMaybe; - protocolFeesCollector_contains?: InputMaybe; - protocolFeesCollector_gt?: InputMaybe; - protocolFeesCollector_gte?: InputMaybe; - protocolFeesCollector_in?: InputMaybe>; - protocolFeesCollector_lt?: InputMaybe; - protocolFeesCollector_lte?: InputMaybe; - protocolFeesCollector_not?: InputMaybe; - protocolFeesCollector_not_contains?: InputMaybe; - protocolFeesCollector_not_in?: InputMaybe>; - snapshots_?: InputMaybe; - totalLiquidity?: InputMaybe; - totalLiquidity_gt?: InputMaybe; - totalLiquidity_gte?: InputMaybe; - totalLiquidity_in?: InputMaybe>; - totalLiquidity_lt?: InputMaybe; - totalLiquidity_lte?: InputMaybe; - totalLiquidity_not?: InputMaybe; - totalLiquidity_not_in?: InputMaybe>; - totalProtocolFee?: InputMaybe; - totalProtocolFee_gt?: InputMaybe; - totalProtocolFee_gte?: InputMaybe; - totalProtocolFee_in?: InputMaybe>; - totalProtocolFee_lt?: InputMaybe; - totalProtocolFee_lte?: InputMaybe; - totalProtocolFee_not?: InputMaybe; - totalProtocolFee_not_in?: InputMaybe>; - totalSwapCount?: InputMaybe; - totalSwapCount_gt?: InputMaybe; - totalSwapCount_gte?: InputMaybe; - totalSwapCount_in?: InputMaybe>; - totalSwapCount_lt?: InputMaybe; - totalSwapCount_lte?: InputMaybe; - totalSwapCount_not?: InputMaybe; - totalSwapCount_not_in?: InputMaybe>; - totalSwapFee?: InputMaybe; - totalSwapFee_gt?: InputMaybe; - totalSwapFee_gte?: InputMaybe; - totalSwapFee_in?: InputMaybe>; - totalSwapFee_lt?: InputMaybe; - totalSwapFee_lte?: InputMaybe; - totalSwapFee_not?: InputMaybe; - totalSwapFee_not_in?: InputMaybe>; - totalSwapVolume?: InputMaybe; - totalSwapVolume_gt?: InputMaybe; - totalSwapVolume_gte?: InputMaybe; - totalSwapVolume_in?: InputMaybe>; - totalSwapVolume_lt?: InputMaybe; - totalSwapVolume_lte?: InputMaybe; - totalSwapVolume_not?: InputMaybe; - totalSwapVolume_not_in?: InputMaybe>; }; export enum Balancer_OrderBy { Id = 'id', PoolCount = 'poolCount', Pools = 'pools', - ProtocolFeesCollector = 'protocolFeesCollector', - Snapshots = 'snapshots', - TotalLiquidity = 'totalLiquidity', - TotalProtocolFee = 'totalProtocolFee', - TotalSwapCount = 'totalSwapCount', - TotalSwapFee = 'totalSwapFee', - TotalSwapVolume = 'totalSwapVolume', } export type BlockChangedFilter = { @@ -442,28 +239,106 @@ export type Block_Height = { number_gte?: InputMaybe; }; -export type CircuitBreaker = { - __typename?: 'CircuitBreaker'; - bptPrice: Scalars['BigDecimal']; +export type FxOracle = { + __typename?: 'FXOracle'; + decimals?: Maybe; + divisor?: Maybe; + id: Scalars['ID']; + tokens: Array; +}; + +export type FxOracle_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + decimals?: InputMaybe; + decimals_gt?: InputMaybe; + decimals_gte?: InputMaybe; + decimals_in?: InputMaybe>; + decimals_lt?: InputMaybe; + decimals_lte?: InputMaybe; + decimals_not?: InputMaybe; + decimals_not_in?: InputMaybe>; + divisor?: InputMaybe; + divisor_contains?: InputMaybe; + divisor_contains_nocase?: InputMaybe; + divisor_ends_with?: InputMaybe; + divisor_ends_with_nocase?: InputMaybe; + divisor_gt?: InputMaybe; + divisor_gte?: InputMaybe; + divisor_in?: InputMaybe>; + divisor_lt?: InputMaybe; + divisor_lte?: InputMaybe; + divisor_not?: InputMaybe; + divisor_not_contains?: InputMaybe; + divisor_not_contains_nocase?: InputMaybe; + divisor_not_ends_with?: InputMaybe; + divisor_not_ends_with_nocase?: InputMaybe; + divisor_not_in?: InputMaybe>; + divisor_not_starts_with?: InputMaybe; + divisor_not_starts_with_nocase?: InputMaybe; + divisor_starts_with?: InputMaybe; + divisor_starts_with_nocase?: InputMaybe; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; + tokens?: InputMaybe>; + tokens_contains?: InputMaybe>; + tokens_contains_nocase?: InputMaybe>; + tokens_not?: InputMaybe>; + tokens_not_contains?: InputMaybe>; + tokens_not_contains_nocase?: InputMaybe>; +}; + +export enum FxOracle_OrderBy { + Decimals = 'decimals', + Divisor = 'divisor', + Id = 'id', + Tokens = 'tokens', +} + +export enum InvestType { + Exit = 'Exit', + Join = 'Join', +} + +export type JoinExit = { + __typename?: 'JoinExit'; + amounts: Array; + block?: Maybe; id: Scalars['ID']; - lowerBoundPercentage: Scalars['BigDecimal']; pool: Pool; - token: PoolToken; - upperBoundPercentage: Scalars['BigDecimal']; + sender: Scalars['Bytes']; + timestamp: Scalars['Int']; + tx: Scalars['Bytes']; + type: InvestType; + user: Scalars['Bytes']; }; -export type CircuitBreaker_Filter = { +export type JoinExit_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; - bptPrice?: InputMaybe; - bptPrice_gt?: InputMaybe; - bptPrice_gte?: InputMaybe; - bptPrice_in?: InputMaybe>; - bptPrice_lt?: InputMaybe; - bptPrice_lte?: InputMaybe; - bptPrice_not?: InputMaybe; - bptPrice_not_in?: InputMaybe>; + amounts?: InputMaybe>; + amounts_contains?: InputMaybe>; + amounts_contains_nocase?: InputMaybe>; + amounts_not?: InputMaybe>; + amounts_not_contains?: InputMaybe>; + amounts_not_contains_nocase?: InputMaybe>; + and?: InputMaybe>>; + block?: InputMaybe; + block_gt?: InputMaybe; + block_gte?: InputMaybe; + block_in?: InputMaybe>; + block_lt?: InputMaybe; + block_lte?: InputMaybe; + block_not?: InputMaybe; + block_not_in?: InputMaybe>; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -472,15 +347,7 @@ export type CircuitBreaker_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - lowerBoundPercentage?: InputMaybe; - lowerBoundPercentage_gt?: InputMaybe; - lowerBoundPercentage_gte?: InputMaybe; - lowerBoundPercentage_in?: InputMaybe>; - lowerBoundPercentage_lt?: InputMaybe; - lowerBoundPercentage_lte?: InputMaybe; - lowerBoundPercentage_not?: InputMaybe; - lowerBoundPercentage_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; pool?: InputMaybe; pool_?: InputMaybe; pool_contains?: InputMaybe; @@ -502,41 +369,54 @@ export type CircuitBreaker_Filter = { pool_not_starts_with_nocase?: InputMaybe; pool_starts_with?: InputMaybe; pool_starts_with_nocase?: InputMaybe; - token?: InputMaybe; - token_?: InputMaybe; - token_contains?: InputMaybe; - token_contains_nocase?: InputMaybe; - token_ends_with?: InputMaybe; - token_ends_with_nocase?: InputMaybe; - token_gt?: InputMaybe; - token_gte?: InputMaybe; - token_in?: InputMaybe>; - token_lt?: InputMaybe; - token_lte?: InputMaybe; - token_not?: InputMaybe; - token_not_contains?: InputMaybe; - token_not_contains_nocase?: InputMaybe; - token_not_ends_with?: InputMaybe; - token_not_ends_with_nocase?: InputMaybe; - token_not_in?: InputMaybe>; - token_not_starts_with?: InputMaybe; - token_not_starts_with_nocase?: InputMaybe; - token_starts_with?: InputMaybe; - token_starts_with_nocase?: InputMaybe; - upperBoundPercentage?: InputMaybe; - upperBoundPercentage_gt?: InputMaybe; - upperBoundPercentage_gte?: InputMaybe; - upperBoundPercentage_in?: InputMaybe>; - upperBoundPercentage_lt?: InputMaybe; - upperBoundPercentage_lte?: InputMaybe; - upperBoundPercentage_not?: InputMaybe; - upperBoundPercentage_not_in?: InputMaybe>; + sender?: InputMaybe; + sender_contains?: InputMaybe; + sender_gt?: InputMaybe; + sender_gte?: InputMaybe; + sender_in?: InputMaybe>; + sender_lt?: InputMaybe; + sender_lte?: InputMaybe; + sender_not?: InputMaybe; + sender_not_contains?: InputMaybe; + sender_not_in?: InputMaybe>; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + tx?: InputMaybe; + tx_contains?: InputMaybe; + tx_gt?: InputMaybe; + tx_gte?: InputMaybe; + tx_in?: InputMaybe>; + tx_lt?: InputMaybe; + tx_lte?: InputMaybe; + tx_not?: InputMaybe; + tx_not_contains?: InputMaybe; + tx_not_in?: InputMaybe>; + type?: InputMaybe; + type_in?: InputMaybe>; + type_not?: InputMaybe; + type_not_in?: InputMaybe>; + user?: InputMaybe; + user_contains?: InputMaybe; + user_gt?: InputMaybe; + user_gte?: InputMaybe; + user_in?: InputMaybe>; + user_lt?: InputMaybe; + user_lte?: InputMaybe; + user_not?: InputMaybe; + user_not_contains?: InputMaybe; + user_not_in?: InputMaybe>; }; -export enum CircuitBreaker_OrderBy { - BptPrice = 'bptPrice', +export enum JoinExit_OrderBy { + Amounts = 'amounts', + Block = 'block', Id = 'id', - LowerBoundPercentage = 'lowerBoundPercentage', Pool = 'pool', PoolAddress = 'pool__address', PoolAlpha = 'pool__alpha', @@ -589,13 +469,8 @@ export enum CircuitBreaker_OrderBy { PoolTauBetaX = 'pool__tauBetaX', PoolTauBetaY = 'pool__tauBetaY', PoolTotalAumFeeCollectedInBpt = 'pool__totalAumFeeCollectedInBPT', - PoolTotalLiquidity = 'pool__totalLiquidity', - PoolTotalLiquiditySansBpt = 'pool__totalLiquiditySansBPT', - PoolTotalProtocolFee = 'pool__totalProtocolFee', PoolTotalProtocolFeePaidInBpt = 'pool__totalProtocolFeePaidInBPT', PoolTotalShares = 'pool__totalShares', - PoolTotalSwapFee = 'pool__totalSwapFee', - PoolTotalSwapVolume = 'pool__totalSwapVolume', PoolTotalWeight = 'pool__totalWeight', PoolTx = 'pool__tx', PoolU = 'pool__u', @@ -605,721 +480,18 @@ export enum CircuitBreaker_OrderBy { PoolW = 'pool__w', PoolWrappedIndex = 'pool__wrappedIndex', PoolZ = 'pool__z', - Token = 'token', - TokenAddress = 'token__address', - TokenAssetManager = 'token__assetManager', - TokenBalance = 'token__balance', - TokenCashBalance = 'token__cashBalance', - TokenDecimals = 'token__decimals', - TokenId = 'token__id', - TokenIndex = 'token__index', - TokenIsExemptFromYieldProtocolFee = 'token__isExemptFromYieldProtocolFee', - TokenManagedBalance = 'token__managedBalance', - TokenName = 'token__name', - TokenOldPriceRate = 'token__oldPriceRate', - TokenPaidProtocolFees = 'token__paidProtocolFees', - TokenPriceRate = 'token__priceRate', - TokenSymbol = 'token__symbol', - TokenWeight = 'token__weight', - UpperBoundPercentage = 'upperBoundPercentage', + Sender = 'sender', + Timestamp = 'timestamp', + Tx = 'tx', + Type = 'type', + User = 'user', } -export type FxOracle = { - __typename?: 'FXOracle'; - decimals?: Maybe; - divisor?: Maybe; - id: Scalars['ID']; - tokens: Array; -}; - -export type FxOracle_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - decimals?: InputMaybe; - decimals_gt?: InputMaybe; - decimals_gte?: InputMaybe; - decimals_in?: InputMaybe>; - decimals_lt?: InputMaybe; - decimals_lte?: InputMaybe; - decimals_not?: InputMaybe; - decimals_not_in?: InputMaybe>; - divisor?: InputMaybe; - divisor_contains?: InputMaybe; - divisor_contains_nocase?: InputMaybe; - divisor_ends_with?: InputMaybe; - divisor_ends_with_nocase?: InputMaybe; - divisor_gt?: InputMaybe; - divisor_gte?: InputMaybe; - divisor_in?: InputMaybe>; - divisor_lt?: InputMaybe; - divisor_lte?: InputMaybe; - divisor_not?: InputMaybe; - divisor_not_contains?: InputMaybe; - divisor_not_contains_nocase?: InputMaybe; - divisor_not_ends_with?: InputMaybe; - divisor_not_ends_with_nocase?: InputMaybe; - divisor_not_in?: InputMaybe>; - divisor_not_starts_with?: InputMaybe; - divisor_not_starts_with_nocase?: InputMaybe; - divisor_starts_with?: InputMaybe; - divisor_starts_with_nocase?: InputMaybe; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - tokens?: InputMaybe>; - tokens_contains?: InputMaybe>; - tokens_contains_nocase?: InputMaybe>; - tokens_not?: InputMaybe>; - tokens_not_contains?: InputMaybe>; - tokens_not_contains_nocase?: InputMaybe>; -}; - -export enum FxOracle_OrderBy { - Decimals = 'decimals', - Divisor = 'divisor', - Id = 'id', - Tokens = 'tokens', -} - -export type GradualWeightUpdate = { - __typename?: 'GradualWeightUpdate'; - endTimestamp: Scalars['BigInt']; - endWeights: Array; - id: Scalars['ID']; - poolId: Pool; - scheduledTimestamp: Scalars['Int']; - startTimestamp: Scalars['BigInt']; - startWeights: Array; -}; - -export type GradualWeightUpdate_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - endTimestamp?: InputMaybe; - endTimestamp_gt?: InputMaybe; - endTimestamp_gte?: InputMaybe; - endTimestamp_in?: InputMaybe>; - endTimestamp_lt?: InputMaybe; - endTimestamp_lte?: InputMaybe; - endTimestamp_not?: InputMaybe; - endTimestamp_not_in?: InputMaybe>; - endWeights?: InputMaybe>; - endWeights_contains?: InputMaybe>; - endWeights_contains_nocase?: InputMaybe>; - endWeights_not?: InputMaybe>; - endWeights_not_contains?: InputMaybe>; - endWeights_not_contains_nocase?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - poolId?: InputMaybe; - poolId_?: InputMaybe; - poolId_contains?: InputMaybe; - poolId_contains_nocase?: InputMaybe; - poolId_ends_with?: InputMaybe; - poolId_ends_with_nocase?: InputMaybe; - poolId_gt?: InputMaybe; - poolId_gte?: InputMaybe; - poolId_in?: InputMaybe>; - poolId_lt?: InputMaybe; - poolId_lte?: InputMaybe; - poolId_not?: InputMaybe; - poolId_not_contains?: InputMaybe; - poolId_not_contains_nocase?: InputMaybe; - poolId_not_ends_with?: InputMaybe; - poolId_not_ends_with_nocase?: InputMaybe; - poolId_not_in?: InputMaybe>; - poolId_not_starts_with?: InputMaybe; - poolId_not_starts_with_nocase?: InputMaybe; - poolId_starts_with?: InputMaybe; - poolId_starts_with_nocase?: InputMaybe; - scheduledTimestamp?: InputMaybe; - scheduledTimestamp_gt?: InputMaybe; - scheduledTimestamp_gte?: InputMaybe; - scheduledTimestamp_in?: InputMaybe>; - scheduledTimestamp_lt?: InputMaybe; - scheduledTimestamp_lte?: InputMaybe; - scheduledTimestamp_not?: InputMaybe; - scheduledTimestamp_not_in?: InputMaybe>; - startTimestamp?: InputMaybe; - startTimestamp_gt?: InputMaybe; - startTimestamp_gte?: InputMaybe; - startTimestamp_in?: InputMaybe>; - startTimestamp_lt?: InputMaybe; - startTimestamp_lte?: InputMaybe; - startTimestamp_not?: InputMaybe; - startTimestamp_not_in?: InputMaybe>; - startWeights?: InputMaybe>; - startWeights_contains?: InputMaybe>; - startWeights_contains_nocase?: InputMaybe>; - startWeights_not?: InputMaybe>; - startWeights_not_contains?: InputMaybe>; - startWeights_not_contains_nocase?: InputMaybe>; -}; - -export enum GradualWeightUpdate_OrderBy { - EndTimestamp = 'endTimestamp', - EndWeights = 'endWeights', - Id = 'id', - PoolId = 'poolId', - PoolIdAddress = 'poolId__address', - PoolIdAlpha = 'poolId__alpha', - PoolIdAmp = 'poolId__amp', - PoolIdBaseToken = 'poolId__baseToken', - PoolIdBeta = 'poolId__beta', - PoolIdC = 'poolId__c', - PoolIdCreateTime = 'poolId__createTime', - PoolIdDSq = 'poolId__dSq', - PoolIdDelta = 'poolId__delta', - PoolIdEpsilon = 'poolId__epsilon', - PoolIdExpiryTime = 'poolId__expiryTime', - PoolIdFactory = 'poolId__factory', - PoolIdHoldersCount = 'poolId__holdersCount', - PoolIdId = 'poolId__id', - PoolIdIsInRecoveryMode = 'poolId__isInRecoveryMode', - PoolIdIsPaused = 'poolId__isPaused', - PoolIdJoinExitEnabled = 'poolId__joinExitEnabled', - PoolIdLambda = 'poolId__lambda', - PoolIdLastJoinExitAmp = 'poolId__lastJoinExitAmp', - PoolIdLastPostJoinExitInvariant = 'poolId__lastPostJoinExitInvariant', - PoolIdLowerTarget = 'poolId__lowerTarget', - PoolIdMainIndex = 'poolId__mainIndex', - PoolIdManagementAumFee = 'poolId__managementAumFee', - PoolIdManagementFee = 'poolId__managementFee', - PoolIdMustAllowlistLPs = 'poolId__mustAllowlistLPs', - PoolIdName = 'poolId__name', - PoolIdOracleEnabled = 'poolId__oracleEnabled', - PoolIdOwner = 'poolId__owner', - PoolIdPoolType = 'poolId__poolType', - PoolIdPoolTypeVersion = 'poolId__poolTypeVersion', - PoolIdPrincipalToken = 'poolId__principalToken', - PoolIdProtocolAumFeeCache = 'poolId__protocolAumFeeCache', - PoolIdProtocolId = 'poolId__protocolId', - PoolIdProtocolSwapFeeCache = 'poolId__protocolSwapFeeCache', - PoolIdProtocolYieldFeeCache = 'poolId__protocolYieldFeeCache', - PoolIdRoot3Alpha = 'poolId__root3Alpha', - PoolIdS = 'poolId__s', - PoolIdSqrtAlpha = 'poolId__sqrtAlpha', - PoolIdSqrtBeta = 'poolId__sqrtBeta', - PoolIdStrategyType = 'poolId__strategyType', - PoolIdSwapEnabled = 'poolId__swapEnabled', - PoolIdSwapEnabledCurationSignal = 'poolId__swapEnabledCurationSignal', - PoolIdSwapEnabledInternal = 'poolId__swapEnabledInternal', - PoolIdSwapFee = 'poolId__swapFee', - PoolIdSwapsCount = 'poolId__swapsCount', - PoolIdSymbol = 'poolId__symbol', - PoolIdTauAlphaX = 'poolId__tauAlphaX', - PoolIdTauAlphaY = 'poolId__tauAlphaY', - PoolIdTauBetaX = 'poolId__tauBetaX', - PoolIdTauBetaY = 'poolId__tauBetaY', - PoolIdTotalAumFeeCollectedInBpt = 'poolId__totalAumFeeCollectedInBPT', - PoolIdTotalLiquidity = 'poolId__totalLiquidity', - PoolIdTotalLiquiditySansBpt = 'poolId__totalLiquiditySansBPT', - PoolIdTotalProtocolFee = 'poolId__totalProtocolFee', - PoolIdTotalProtocolFeePaidInBpt = 'poolId__totalProtocolFeePaidInBPT', - PoolIdTotalShares = 'poolId__totalShares', - PoolIdTotalSwapFee = 'poolId__totalSwapFee', - PoolIdTotalSwapVolume = 'poolId__totalSwapVolume', - PoolIdTotalWeight = 'poolId__totalWeight', - PoolIdTx = 'poolId__tx', - PoolIdU = 'poolId__u', - PoolIdUnitSeconds = 'poolId__unitSeconds', - PoolIdUpperTarget = 'poolId__upperTarget', - PoolIdV = 'poolId__v', - PoolIdW = 'poolId__w', - PoolIdWrappedIndex = 'poolId__wrappedIndex', - PoolIdZ = 'poolId__z', - ScheduledTimestamp = 'scheduledTimestamp', - StartTimestamp = 'startTimestamp', - StartWeights = 'startWeights', -} - -export enum InvestType { - Exit = 'Exit', - Join = 'Join', -} - -export type JoinExit = { - __typename?: 'JoinExit'; - amounts: Array; - block?: Maybe; - id: Scalars['ID']; - pool: Pool; - sender: Scalars['Bytes']; - timestamp: Scalars['Int']; - tx: Scalars['Bytes']; - type: InvestType; - user: User; - valueUSD?: Maybe; -}; - -export type JoinExit_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - amounts?: InputMaybe>; - amounts_contains?: InputMaybe>; - amounts_contains_nocase?: InputMaybe>; - amounts_not?: InputMaybe>; - amounts_not_contains?: InputMaybe>; - amounts_not_contains_nocase?: InputMaybe>; - and?: InputMaybe>>; - block?: InputMaybe; - block_gt?: InputMaybe; - block_gte?: InputMaybe; - block_in?: InputMaybe>; - block_lt?: InputMaybe; - block_lte?: InputMaybe; - block_not?: InputMaybe; - block_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - pool?: InputMaybe; - pool_?: InputMaybe; - pool_contains?: InputMaybe; - pool_contains_nocase?: InputMaybe; - pool_ends_with?: InputMaybe; - pool_ends_with_nocase?: InputMaybe; - pool_gt?: InputMaybe; - pool_gte?: InputMaybe; - pool_in?: InputMaybe>; - pool_lt?: InputMaybe; - pool_lte?: InputMaybe; - pool_not?: InputMaybe; - pool_not_contains?: InputMaybe; - pool_not_contains_nocase?: InputMaybe; - pool_not_ends_with?: InputMaybe; - pool_not_ends_with_nocase?: InputMaybe; - pool_not_in?: InputMaybe>; - pool_not_starts_with?: InputMaybe; - pool_not_starts_with_nocase?: InputMaybe; - pool_starts_with?: InputMaybe; - pool_starts_with_nocase?: InputMaybe; - sender?: InputMaybe; - sender_contains?: InputMaybe; - sender_gt?: InputMaybe; - sender_gte?: InputMaybe; - sender_in?: InputMaybe>; - sender_lt?: InputMaybe; - sender_lte?: InputMaybe; - sender_not?: InputMaybe; - sender_not_contains?: InputMaybe; - sender_not_in?: InputMaybe>; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - tx?: InputMaybe; - tx_contains?: InputMaybe; - tx_gt?: InputMaybe; - tx_gte?: InputMaybe; - tx_in?: InputMaybe>; - tx_lt?: InputMaybe; - tx_lte?: InputMaybe; - tx_not?: InputMaybe; - tx_not_contains?: InputMaybe; - tx_not_in?: InputMaybe>; - type?: InputMaybe; - type_in?: InputMaybe>; - type_not?: InputMaybe; - type_not_in?: InputMaybe>; - user?: InputMaybe; - user_?: InputMaybe; - user_contains?: InputMaybe; - user_contains_nocase?: InputMaybe; - user_ends_with?: InputMaybe; - user_ends_with_nocase?: InputMaybe; - user_gt?: InputMaybe; - user_gte?: InputMaybe; - user_in?: InputMaybe>; - user_lt?: InputMaybe; - user_lte?: InputMaybe; - user_not?: InputMaybe; - user_not_contains?: InputMaybe; - user_not_contains_nocase?: InputMaybe; - user_not_ends_with?: InputMaybe; - user_not_ends_with_nocase?: InputMaybe; - user_not_in?: InputMaybe>; - user_not_starts_with?: InputMaybe; - user_not_starts_with_nocase?: InputMaybe; - user_starts_with?: InputMaybe; - user_starts_with_nocase?: InputMaybe; - valueUSD?: InputMaybe; - valueUSD_gt?: InputMaybe; - valueUSD_gte?: InputMaybe; - valueUSD_in?: InputMaybe>; - valueUSD_lt?: InputMaybe; - valueUSD_lte?: InputMaybe; - valueUSD_not?: InputMaybe; - valueUSD_not_in?: InputMaybe>; -}; - -export enum JoinExit_OrderBy { - Amounts = 'amounts', - Block = 'block', - Id = 'id', - Pool = 'pool', - PoolAddress = 'pool__address', - PoolAlpha = 'pool__alpha', - PoolAmp = 'pool__amp', - PoolBaseToken = 'pool__baseToken', - PoolBeta = 'pool__beta', - PoolC = 'pool__c', - PoolCreateTime = 'pool__createTime', - PoolDSq = 'pool__dSq', - PoolDelta = 'pool__delta', - PoolEpsilon = 'pool__epsilon', - PoolExpiryTime = 'pool__expiryTime', - PoolFactory = 'pool__factory', - PoolHoldersCount = 'pool__holdersCount', - PoolId = 'pool__id', - PoolIsInRecoveryMode = 'pool__isInRecoveryMode', - PoolIsPaused = 'pool__isPaused', - PoolJoinExitEnabled = 'pool__joinExitEnabled', - PoolLambda = 'pool__lambda', - PoolLastJoinExitAmp = 'pool__lastJoinExitAmp', - PoolLastPostJoinExitInvariant = 'pool__lastPostJoinExitInvariant', - PoolLowerTarget = 'pool__lowerTarget', - PoolMainIndex = 'pool__mainIndex', - PoolManagementAumFee = 'pool__managementAumFee', - PoolManagementFee = 'pool__managementFee', - PoolMustAllowlistLPs = 'pool__mustAllowlistLPs', - PoolName = 'pool__name', - PoolOracleEnabled = 'pool__oracleEnabled', - PoolOwner = 'pool__owner', - PoolPoolType = 'pool__poolType', - PoolPoolTypeVersion = 'pool__poolTypeVersion', - PoolPrincipalToken = 'pool__principalToken', - PoolProtocolAumFeeCache = 'pool__protocolAumFeeCache', - PoolProtocolId = 'pool__protocolId', - PoolProtocolSwapFeeCache = 'pool__protocolSwapFeeCache', - PoolProtocolYieldFeeCache = 'pool__protocolYieldFeeCache', - PoolRoot3Alpha = 'pool__root3Alpha', - PoolS = 'pool__s', - PoolSqrtAlpha = 'pool__sqrtAlpha', - PoolSqrtBeta = 'pool__sqrtBeta', - PoolStrategyType = 'pool__strategyType', - PoolSwapEnabled = 'pool__swapEnabled', - PoolSwapEnabledCurationSignal = 'pool__swapEnabledCurationSignal', - PoolSwapEnabledInternal = 'pool__swapEnabledInternal', - PoolSwapFee = 'pool__swapFee', - PoolSwapsCount = 'pool__swapsCount', - PoolSymbol = 'pool__symbol', - PoolTauAlphaX = 'pool__tauAlphaX', - PoolTauAlphaY = 'pool__tauAlphaY', - PoolTauBetaX = 'pool__tauBetaX', - PoolTauBetaY = 'pool__tauBetaY', - PoolTotalAumFeeCollectedInBpt = 'pool__totalAumFeeCollectedInBPT', - PoolTotalLiquidity = 'pool__totalLiquidity', - PoolTotalLiquiditySansBpt = 'pool__totalLiquiditySansBPT', - PoolTotalProtocolFee = 'pool__totalProtocolFee', - PoolTotalProtocolFeePaidInBpt = 'pool__totalProtocolFeePaidInBPT', - PoolTotalShares = 'pool__totalShares', - PoolTotalSwapFee = 'pool__totalSwapFee', - PoolTotalSwapVolume = 'pool__totalSwapVolume', - PoolTotalWeight = 'pool__totalWeight', - PoolTx = 'pool__tx', - PoolU = 'pool__u', - PoolUnitSeconds = 'pool__unitSeconds', - PoolUpperTarget = 'pool__upperTarget', - PoolV = 'pool__v', - PoolW = 'pool__w', - PoolWrappedIndex = 'pool__wrappedIndex', - PoolZ = 'pool__z', - Sender = 'sender', - Timestamp = 'timestamp', - Tx = 'tx', - Type = 'type', - User = 'user', - UserId = 'user__id', - ValueUsd = 'valueUSD', -} - -export type LatestPrice = { - __typename?: 'LatestPrice'; - asset: Scalars['Bytes']; - block: Scalars['BigInt']; - id: Scalars['ID']; - poolId: Pool; - price: Scalars['BigDecimal']; - pricingAsset: Scalars['Bytes']; -}; - -export type LatestPrice_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - asset?: InputMaybe; - asset_contains?: InputMaybe; - asset_gt?: InputMaybe; - asset_gte?: InputMaybe; - asset_in?: InputMaybe>; - asset_lt?: InputMaybe; - asset_lte?: InputMaybe; - asset_not?: InputMaybe; - asset_not_contains?: InputMaybe; - asset_not_in?: InputMaybe>; - block?: InputMaybe; - block_gt?: InputMaybe; - block_gte?: InputMaybe; - block_in?: InputMaybe>; - block_lt?: InputMaybe; - block_lte?: InputMaybe; - block_not?: InputMaybe; - block_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - poolId?: InputMaybe; - poolId_?: InputMaybe; - poolId_contains?: InputMaybe; - poolId_contains_nocase?: InputMaybe; - poolId_ends_with?: InputMaybe; - poolId_ends_with_nocase?: InputMaybe; - poolId_gt?: InputMaybe; - poolId_gte?: InputMaybe; - poolId_in?: InputMaybe>; - poolId_lt?: InputMaybe; - poolId_lte?: InputMaybe; - poolId_not?: InputMaybe; - poolId_not_contains?: InputMaybe; - poolId_not_contains_nocase?: InputMaybe; - poolId_not_ends_with?: InputMaybe; - poolId_not_ends_with_nocase?: InputMaybe; - poolId_not_in?: InputMaybe>; - poolId_not_starts_with?: InputMaybe; - poolId_not_starts_with_nocase?: InputMaybe; - poolId_starts_with?: InputMaybe; - poolId_starts_with_nocase?: InputMaybe; - price?: InputMaybe; - price_gt?: InputMaybe; - price_gte?: InputMaybe; - price_in?: InputMaybe>; - price_lt?: InputMaybe; - price_lte?: InputMaybe; - price_not?: InputMaybe; - price_not_in?: InputMaybe>; - pricingAsset?: InputMaybe; - pricingAsset_contains?: InputMaybe; - pricingAsset_gt?: InputMaybe; - pricingAsset_gte?: InputMaybe; - pricingAsset_in?: InputMaybe>; - pricingAsset_lt?: InputMaybe; - pricingAsset_lte?: InputMaybe; - pricingAsset_not?: InputMaybe; - pricingAsset_not_contains?: InputMaybe; - pricingAsset_not_in?: InputMaybe>; -}; - -export enum LatestPrice_OrderBy { - Asset = 'asset', - Block = 'block', - Id = 'id', - PoolId = 'poolId', - PoolIdAddress = 'poolId__address', - PoolIdAlpha = 'poolId__alpha', - PoolIdAmp = 'poolId__amp', - PoolIdBaseToken = 'poolId__baseToken', - PoolIdBeta = 'poolId__beta', - PoolIdC = 'poolId__c', - PoolIdCreateTime = 'poolId__createTime', - PoolIdDSq = 'poolId__dSq', - PoolIdDelta = 'poolId__delta', - PoolIdEpsilon = 'poolId__epsilon', - PoolIdExpiryTime = 'poolId__expiryTime', - PoolIdFactory = 'poolId__factory', - PoolIdHoldersCount = 'poolId__holdersCount', - PoolIdId = 'poolId__id', - PoolIdIsInRecoveryMode = 'poolId__isInRecoveryMode', - PoolIdIsPaused = 'poolId__isPaused', - PoolIdJoinExitEnabled = 'poolId__joinExitEnabled', - PoolIdLambda = 'poolId__lambda', - PoolIdLastJoinExitAmp = 'poolId__lastJoinExitAmp', - PoolIdLastPostJoinExitInvariant = 'poolId__lastPostJoinExitInvariant', - PoolIdLowerTarget = 'poolId__lowerTarget', - PoolIdMainIndex = 'poolId__mainIndex', - PoolIdManagementAumFee = 'poolId__managementAumFee', - PoolIdManagementFee = 'poolId__managementFee', - PoolIdMustAllowlistLPs = 'poolId__mustAllowlistLPs', - PoolIdName = 'poolId__name', - PoolIdOracleEnabled = 'poolId__oracleEnabled', - PoolIdOwner = 'poolId__owner', - PoolIdPoolType = 'poolId__poolType', - PoolIdPoolTypeVersion = 'poolId__poolTypeVersion', - PoolIdPrincipalToken = 'poolId__principalToken', - PoolIdProtocolAumFeeCache = 'poolId__protocolAumFeeCache', - PoolIdProtocolId = 'poolId__protocolId', - PoolIdProtocolSwapFeeCache = 'poolId__protocolSwapFeeCache', - PoolIdProtocolYieldFeeCache = 'poolId__protocolYieldFeeCache', - PoolIdRoot3Alpha = 'poolId__root3Alpha', - PoolIdS = 'poolId__s', - PoolIdSqrtAlpha = 'poolId__sqrtAlpha', - PoolIdSqrtBeta = 'poolId__sqrtBeta', - PoolIdStrategyType = 'poolId__strategyType', - PoolIdSwapEnabled = 'poolId__swapEnabled', - PoolIdSwapEnabledCurationSignal = 'poolId__swapEnabledCurationSignal', - PoolIdSwapEnabledInternal = 'poolId__swapEnabledInternal', - PoolIdSwapFee = 'poolId__swapFee', - PoolIdSwapsCount = 'poolId__swapsCount', - PoolIdSymbol = 'poolId__symbol', - PoolIdTauAlphaX = 'poolId__tauAlphaX', - PoolIdTauAlphaY = 'poolId__tauAlphaY', - PoolIdTauBetaX = 'poolId__tauBetaX', - PoolIdTauBetaY = 'poolId__tauBetaY', - PoolIdTotalAumFeeCollectedInBpt = 'poolId__totalAumFeeCollectedInBPT', - PoolIdTotalLiquidity = 'poolId__totalLiquidity', - PoolIdTotalLiquiditySansBpt = 'poolId__totalLiquiditySansBPT', - PoolIdTotalProtocolFee = 'poolId__totalProtocolFee', - PoolIdTotalProtocolFeePaidInBpt = 'poolId__totalProtocolFeePaidInBPT', - PoolIdTotalShares = 'poolId__totalShares', - PoolIdTotalSwapFee = 'poolId__totalSwapFee', - PoolIdTotalSwapVolume = 'poolId__totalSwapVolume', - PoolIdTotalWeight = 'poolId__totalWeight', - PoolIdTx = 'poolId__tx', - PoolIdU = 'poolId__u', - PoolIdUnitSeconds = 'poolId__unitSeconds', - PoolIdUpperTarget = 'poolId__upperTarget', - PoolIdV = 'poolId__v', - PoolIdW = 'poolId__w', - PoolIdWrappedIndex = 'poolId__wrappedIndex', - PoolIdZ = 'poolId__z', - Price = 'price', - PricingAsset = 'pricingAsset', -} - -export type ManagementOperation = { - __typename?: 'ManagementOperation'; - cashDelta: Scalars['BigDecimal']; - id: Scalars['ID']; - managedDelta: Scalars['BigDecimal']; - poolTokenId: PoolToken; - timestamp: Scalars['Int']; - type: OperationType; -}; - -export type ManagementOperation_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - cashDelta?: InputMaybe; - cashDelta_gt?: InputMaybe; - cashDelta_gte?: InputMaybe; - cashDelta_in?: InputMaybe>; - cashDelta_lt?: InputMaybe; - cashDelta_lte?: InputMaybe; - cashDelta_not?: InputMaybe; - cashDelta_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - managedDelta?: InputMaybe; - managedDelta_gt?: InputMaybe; - managedDelta_gte?: InputMaybe; - managedDelta_in?: InputMaybe>; - managedDelta_lt?: InputMaybe; - managedDelta_lte?: InputMaybe; - managedDelta_not?: InputMaybe; - managedDelta_not_in?: InputMaybe>; - or?: InputMaybe>>; - poolTokenId?: InputMaybe; - poolTokenId_?: InputMaybe; - poolTokenId_contains?: InputMaybe; - poolTokenId_contains_nocase?: InputMaybe; - poolTokenId_ends_with?: InputMaybe; - poolTokenId_ends_with_nocase?: InputMaybe; - poolTokenId_gt?: InputMaybe; - poolTokenId_gte?: InputMaybe; - poolTokenId_in?: InputMaybe>; - poolTokenId_lt?: InputMaybe; - poolTokenId_lte?: InputMaybe; - poolTokenId_not?: InputMaybe; - poolTokenId_not_contains?: InputMaybe; - poolTokenId_not_contains_nocase?: InputMaybe; - poolTokenId_not_ends_with?: InputMaybe; - poolTokenId_not_ends_with_nocase?: InputMaybe; - poolTokenId_not_in?: InputMaybe>; - poolTokenId_not_starts_with?: InputMaybe; - poolTokenId_not_starts_with_nocase?: InputMaybe; - poolTokenId_starts_with?: InputMaybe; - poolTokenId_starts_with_nocase?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - type?: InputMaybe; - type_in?: InputMaybe>; - type_not?: InputMaybe; - type_not_in?: InputMaybe>; -}; - -export enum ManagementOperation_OrderBy { - CashDelta = 'cashDelta', - Id = 'id', - ManagedDelta = 'managedDelta', - PoolTokenId = 'poolTokenId', - PoolTokenIdAddress = 'poolTokenId__address', - PoolTokenIdAssetManager = 'poolTokenId__assetManager', - PoolTokenIdBalance = 'poolTokenId__balance', - PoolTokenIdCashBalance = 'poolTokenId__cashBalance', - PoolTokenIdDecimals = 'poolTokenId__decimals', - PoolTokenIdId = 'poolTokenId__id', - PoolTokenIdIndex = 'poolTokenId__index', - PoolTokenIdIsExemptFromYieldProtocolFee = 'poolTokenId__isExemptFromYieldProtocolFee', - PoolTokenIdManagedBalance = 'poolTokenId__managedBalance', - PoolTokenIdName = 'poolTokenId__name', - PoolTokenIdOldPriceRate = 'poolTokenId__oldPriceRate', - PoolTokenIdPaidProtocolFees = 'poolTokenId__paidProtocolFees', - PoolTokenIdPriceRate = 'poolTokenId__priceRate', - PoolTokenIdSymbol = 'poolTokenId__symbol', - PoolTokenIdWeight = 'poolTokenId__weight', - Timestamp = 'timestamp', - Type = 'type', -} - -export enum OperationType { - Deposit = 'Deposit', - Update = 'Update', - Withdraw = 'Withdraw', -} +export enum OperationType { + Deposit = 'Deposit', + Update = 'Update', + Withdraw = 'Withdraw', +} /** Defines the order direction, either ascending or descending */ export enum OrderDirection { @@ -1336,14 +508,12 @@ export type Pool = { baseToken?: Maybe; beta?: Maybe; c?: Maybe; - circuitBreakers?: Maybe>; createTime: Scalars['Int']; dSq?: Maybe; delta?: Maybe; epsilon?: Maybe; expiryTime?: Maybe; factory?: Maybe; - historicalValues?: Maybe>; holdersCount: Scalars['BigInt']; id: Scalars['ID']; isInRecoveryMode?: Maybe; @@ -1374,7 +544,6 @@ export type Pool = { root3Alpha?: Maybe; s?: Maybe; shares?: Maybe>; - snapshots?: Maybe>; sqrtAlpha?: Maybe; sqrtBeta?: Maybe; strategyType: Scalars['Int']; @@ -1395,13 +564,8 @@ export type Pool = { tokens?: Maybe>; tokensList: Array; totalAumFeeCollectedInBPT?: Maybe; - totalLiquidity: Scalars['BigDecimal']; - totalLiquiditySansBPT?: Maybe; - totalProtocolFee?: Maybe; totalProtocolFeePaidInBPT?: Maybe; totalShares: Scalars['BigDecimal']; - totalSwapFee: Scalars['BigDecimal']; - totalSwapVolume: Scalars['BigDecimal']; totalWeight?: Maybe; tx?: Maybe; u?: Maybe; @@ -1410,7 +574,6 @@ export type Pool = { v?: Maybe; vaultID: Balancer; w?: Maybe; - weightUpdates?: Maybe>; wrappedIndex?: Maybe; z?: Maybe; }; @@ -1423,22 +586,6 @@ export type PoolAmpUpdatesArgs = { where?: InputMaybe; }; -export type PoolCircuitBreakersArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - -export type PoolHistoricalValuesArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - export type PoolJoinsExitsArgs = { first?: InputMaybe; orderBy?: InputMaybe; @@ -1463,14 +610,6 @@ export type PoolSharesArgs = { where?: InputMaybe; }; -export type PoolSnapshotsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - export type PoolSwapsArgs = { first?: InputMaybe; orderBy?: InputMaybe; @@ -1487,14 +626,6 @@ export type PoolTokensArgs = { where?: InputMaybe; }; -export type PoolWeightUpdatesArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - export type PoolContract = { __typename?: 'PoolContract'; id: Scalars['ID']; @@ -1571,208 +702,37 @@ export enum PoolContract_OrderBy { PoolPoolType = 'pool__poolType', PoolPoolTypeVersion = 'pool__poolTypeVersion', PoolPrincipalToken = 'pool__principalToken', - PoolProtocolAumFeeCache = 'pool__protocolAumFeeCache', - PoolProtocolId = 'pool__protocolId', - PoolProtocolSwapFeeCache = 'pool__protocolSwapFeeCache', - PoolProtocolYieldFeeCache = 'pool__protocolYieldFeeCache', - PoolRoot3Alpha = 'pool__root3Alpha', - PoolS = 'pool__s', - PoolSqrtAlpha = 'pool__sqrtAlpha', - PoolSqrtBeta = 'pool__sqrtBeta', - PoolStrategyType = 'pool__strategyType', - PoolSwapEnabled = 'pool__swapEnabled', - PoolSwapEnabledCurationSignal = 'pool__swapEnabledCurationSignal', - PoolSwapEnabledInternal = 'pool__swapEnabledInternal', - PoolSwapFee = 'pool__swapFee', - PoolSwapsCount = 'pool__swapsCount', - PoolSymbol = 'pool__symbol', - PoolTauAlphaX = 'pool__tauAlphaX', - PoolTauAlphaY = 'pool__tauAlphaY', - PoolTauBetaX = 'pool__tauBetaX', - PoolTauBetaY = 'pool__tauBetaY', - PoolTotalAumFeeCollectedInBpt = 'pool__totalAumFeeCollectedInBPT', - PoolTotalLiquidity = 'pool__totalLiquidity', - PoolTotalLiquiditySansBpt = 'pool__totalLiquiditySansBPT', - PoolTotalProtocolFee = 'pool__totalProtocolFee', - PoolTotalProtocolFeePaidInBpt = 'pool__totalProtocolFeePaidInBPT', - PoolTotalShares = 'pool__totalShares', - PoolTotalSwapFee = 'pool__totalSwapFee', - PoolTotalSwapVolume = 'pool__totalSwapVolume', - PoolTotalWeight = 'pool__totalWeight', - PoolTx = 'pool__tx', - PoolU = 'pool__u', - PoolUnitSeconds = 'pool__unitSeconds', - PoolUpperTarget = 'pool__upperTarget', - PoolV = 'pool__v', - PoolW = 'pool__w', - PoolWrappedIndex = 'pool__wrappedIndex', - PoolZ = 'pool__z', -} - -export type PoolHistoricalLiquidity = { - __typename?: 'PoolHistoricalLiquidity'; - block: Scalars['BigInt']; - id: Scalars['ID']; - poolId: Pool; - poolLiquidity: Scalars['BigDecimal']; - poolShareValue: Scalars['BigDecimal']; - poolTotalShares: Scalars['BigDecimal']; - pricingAsset: Scalars['Bytes']; -}; - -export type PoolHistoricalLiquidity_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - block?: InputMaybe; - block_gt?: InputMaybe; - block_gte?: InputMaybe; - block_in?: InputMaybe>; - block_lt?: InputMaybe; - block_lte?: InputMaybe; - block_not?: InputMaybe; - block_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - poolId?: InputMaybe; - poolId_?: InputMaybe; - poolId_contains?: InputMaybe; - poolId_contains_nocase?: InputMaybe; - poolId_ends_with?: InputMaybe; - poolId_ends_with_nocase?: InputMaybe; - poolId_gt?: InputMaybe; - poolId_gte?: InputMaybe; - poolId_in?: InputMaybe>; - poolId_lt?: InputMaybe; - poolId_lte?: InputMaybe; - poolId_not?: InputMaybe; - poolId_not_contains?: InputMaybe; - poolId_not_contains_nocase?: InputMaybe; - poolId_not_ends_with?: InputMaybe; - poolId_not_ends_with_nocase?: InputMaybe; - poolId_not_in?: InputMaybe>; - poolId_not_starts_with?: InputMaybe; - poolId_not_starts_with_nocase?: InputMaybe; - poolId_starts_with?: InputMaybe; - poolId_starts_with_nocase?: InputMaybe; - poolLiquidity?: InputMaybe; - poolLiquidity_gt?: InputMaybe; - poolLiquidity_gte?: InputMaybe; - poolLiquidity_in?: InputMaybe>; - poolLiquidity_lt?: InputMaybe; - poolLiquidity_lte?: InputMaybe; - poolLiquidity_not?: InputMaybe; - poolLiquidity_not_in?: InputMaybe>; - poolShareValue?: InputMaybe; - poolShareValue_gt?: InputMaybe; - poolShareValue_gte?: InputMaybe; - poolShareValue_in?: InputMaybe>; - poolShareValue_lt?: InputMaybe; - poolShareValue_lte?: InputMaybe; - poolShareValue_not?: InputMaybe; - poolShareValue_not_in?: InputMaybe>; - poolTotalShares?: InputMaybe; - poolTotalShares_gt?: InputMaybe; - poolTotalShares_gte?: InputMaybe; - poolTotalShares_in?: InputMaybe>; - poolTotalShares_lt?: InputMaybe; - poolTotalShares_lte?: InputMaybe; - poolTotalShares_not?: InputMaybe; - poolTotalShares_not_in?: InputMaybe>; - pricingAsset?: InputMaybe; - pricingAsset_contains?: InputMaybe; - pricingAsset_gt?: InputMaybe; - pricingAsset_gte?: InputMaybe; - pricingAsset_in?: InputMaybe>; - pricingAsset_lt?: InputMaybe; - pricingAsset_lte?: InputMaybe; - pricingAsset_not?: InputMaybe; - pricingAsset_not_contains?: InputMaybe; - pricingAsset_not_in?: InputMaybe>; -}; - -export enum PoolHistoricalLiquidity_OrderBy { - Block = 'block', - Id = 'id', - PoolId = 'poolId', - PoolIdAddress = 'poolId__address', - PoolIdAlpha = 'poolId__alpha', - PoolIdAmp = 'poolId__amp', - PoolIdBaseToken = 'poolId__baseToken', - PoolIdBeta = 'poolId__beta', - PoolIdC = 'poolId__c', - PoolIdCreateTime = 'poolId__createTime', - PoolIdDSq = 'poolId__dSq', - PoolIdDelta = 'poolId__delta', - PoolIdEpsilon = 'poolId__epsilon', - PoolIdExpiryTime = 'poolId__expiryTime', - PoolIdFactory = 'poolId__factory', - PoolIdHoldersCount = 'poolId__holdersCount', - PoolIdId = 'poolId__id', - PoolIdIsInRecoveryMode = 'poolId__isInRecoveryMode', - PoolIdIsPaused = 'poolId__isPaused', - PoolIdJoinExitEnabled = 'poolId__joinExitEnabled', - PoolIdLambda = 'poolId__lambda', - PoolIdLastJoinExitAmp = 'poolId__lastJoinExitAmp', - PoolIdLastPostJoinExitInvariant = 'poolId__lastPostJoinExitInvariant', - PoolIdLowerTarget = 'poolId__lowerTarget', - PoolIdMainIndex = 'poolId__mainIndex', - PoolIdManagementAumFee = 'poolId__managementAumFee', - PoolIdManagementFee = 'poolId__managementFee', - PoolIdMustAllowlistLPs = 'poolId__mustAllowlistLPs', - PoolIdName = 'poolId__name', - PoolIdOracleEnabled = 'poolId__oracleEnabled', - PoolIdOwner = 'poolId__owner', - PoolIdPoolType = 'poolId__poolType', - PoolIdPoolTypeVersion = 'poolId__poolTypeVersion', - PoolIdPrincipalToken = 'poolId__principalToken', - PoolIdProtocolAumFeeCache = 'poolId__protocolAumFeeCache', - PoolIdProtocolId = 'poolId__protocolId', - PoolIdProtocolSwapFeeCache = 'poolId__protocolSwapFeeCache', - PoolIdProtocolYieldFeeCache = 'poolId__protocolYieldFeeCache', - PoolIdRoot3Alpha = 'poolId__root3Alpha', - PoolIdS = 'poolId__s', - PoolIdSqrtAlpha = 'poolId__sqrtAlpha', - PoolIdSqrtBeta = 'poolId__sqrtBeta', - PoolIdStrategyType = 'poolId__strategyType', - PoolIdSwapEnabled = 'poolId__swapEnabled', - PoolIdSwapEnabledCurationSignal = 'poolId__swapEnabledCurationSignal', - PoolIdSwapEnabledInternal = 'poolId__swapEnabledInternal', - PoolIdSwapFee = 'poolId__swapFee', - PoolIdSwapsCount = 'poolId__swapsCount', - PoolIdSymbol = 'poolId__symbol', - PoolIdTauAlphaX = 'poolId__tauAlphaX', - PoolIdTauAlphaY = 'poolId__tauAlphaY', - PoolIdTauBetaX = 'poolId__tauBetaX', - PoolIdTauBetaY = 'poolId__tauBetaY', - PoolIdTotalAumFeeCollectedInBpt = 'poolId__totalAumFeeCollectedInBPT', - PoolIdTotalLiquidity = 'poolId__totalLiquidity', - PoolIdTotalLiquiditySansBpt = 'poolId__totalLiquiditySansBPT', - PoolIdTotalProtocolFee = 'poolId__totalProtocolFee', - PoolIdTotalProtocolFeePaidInBpt = 'poolId__totalProtocolFeePaidInBPT', - PoolIdTotalShares = 'poolId__totalShares', - PoolIdTotalSwapFee = 'poolId__totalSwapFee', - PoolIdTotalSwapVolume = 'poolId__totalSwapVolume', - PoolIdTotalWeight = 'poolId__totalWeight', - PoolIdTx = 'poolId__tx', - PoolIdU = 'poolId__u', - PoolIdUnitSeconds = 'poolId__unitSeconds', - PoolIdUpperTarget = 'poolId__upperTarget', - PoolIdV = 'poolId__v', - PoolIdW = 'poolId__w', - PoolIdWrappedIndex = 'poolId__wrappedIndex', - PoolIdZ = 'poolId__z', - PoolLiquidity = 'poolLiquidity', - PoolShareValue = 'poolShareValue', - PoolTotalShares = 'poolTotalShares', - PricingAsset = 'pricingAsset', + PoolProtocolAumFeeCache = 'pool__protocolAumFeeCache', + PoolProtocolId = 'pool__protocolId', + PoolProtocolSwapFeeCache = 'pool__protocolSwapFeeCache', + PoolProtocolYieldFeeCache = 'pool__protocolYieldFeeCache', + PoolRoot3Alpha = 'pool__root3Alpha', + PoolS = 'pool__s', + PoolSqrtAlpha = 'pool__sqrtAlpha', + PoolSqrtBeta = 'pool__sqrtBeta', + PoolStrategyType = 'pool__strategyType', + PoolSwapEnabled = 'pool__swapEnabled', + PoolSwapEnabledCurationSignal = 'pool__swapEnabledCurationSignal', + PoolSwapEnabledInternal = 'pool__swapEnabledInternal', + PoolSwapFee = 'pool__swapFee', + PoolSwapsCount = 'pool__swapsCount', + PoolSymbol = 'pool__symbol', + PoolTauAlphaX = 'pool__tauAlphaX', + PoolTauAlphaY = 'pool__tauAlphaY', + PoolTauBetaX = 'pool__tauBetaX', + PoolTauBetaY = 'pool__tauBetaY', + PoolTotalAumFeeCollectedInBpt = 'pool__totalAumFeeCollectedInBPT', + PoolTotalProtocolFeePaidInBpt = 'pool__totalProtocolFeePaidInBPT', + PoolTotalShares = 'pool__totalShares', + PoolTotalWeight = 'pool__totalWeight', + PoolTx = 'pool__tx', + PoolU = 'pool__u', + PoolUnitSeconds = 'pool__unitSeconds', + PoolUpperTarget = 'pool__upperTarget', + PoolV = 'pool__v', + PoolW = 'pool__w', + PoolWrappedIndex = 'pool__wrappedIndex', + PoolZ = 'pool__z', } export type PoolShare = { @@ -1780,7 +740,7 @@ export type PoolShare = { balance: Scalars['BigDecimal']; id: Scalars['ID']; poolId: Pool; - userAddress: User; + userAddress: Scalars['Bytes']; }; export type PoolShare_Filter = { @@ -1825,27 +785,16 @@ export type PoolShare_Filter = { poolId_not_starts_with_nocase?: InputMaybe; poolId_starts_with?: InputMaybe; poolId_starts_with_nocase?: InputMaybe; - userAddress?: InputMaybe; - userAddress_?: InputMaybe; - userAddress_contains?: InputMaybe; - userAddress_contains_nocase?: InputMaybe; - userAddress_ends_with?: InputMaybe; - userAddress_ends_with_nocase?: InputMaybe; - userAddress_gt?: InputMaybe; - userAddress_gte?: InputMaybe; - userAddress_in?: InputMaybe>; - userAddress_lt?: InputMaybe; - userAddress_lte?: InputMaybe; - userAddress_not?: InputMaybe; - userAddress_not_contains?: InputMaybe; - userAddress_not_contains_nocase?: InputMaybe; - userAddress_not_ends_with?: InputMaybe; - userAddress_not_ends_with_nocase?: InputMaybe; - userAddress_not_in?: InputMaybe>; - userAddress_not_starts_with?: InputMaybe; - userAddress_not_starts_with_nocase?: InputMaybe; - userAddress_starts_with?: InputMaybe; - userAddress_starts_with_nocase?: InputMaybe; + userAddress?: InputMaybe; + userAddress_contains?: InputMaybe; + userAddress_gt?: InputMaybe; + userAddress_gte?: InputMaybe; + userAddress_in?: InputMaybe>; + userAddress_lt?: InputMaybe; + userAddress_lte?: InputMaybe; + userAddress_not?: InputMaybe; + userAddress_not_contains?: InputMaybe; + userAddress_not_in?: InputMaybe>; }; export enum PoolShare_OrderBy { @@ -1903,13 +852,8 @@ export enum PoolShare_OrderBy { PoolIdTauBetaX = 'poolId__tauBetaX', PoolIdTauBetaY = 'poolId__tauBetaY', PoolIdTotalAumFeeCollectedInBpt = 'poolId__totalAumFeeCollectedInBPT', - PoolIdTotalLiquidity = 'poolId__totalLiquidity', - PoolIdTotalLiquiditySansBpt = 'poolId__totalLiquiditySansBPT', - PoolIdTotalProtocolFee = 'poolId__totalProtocolFee', PoolIdTotalProtocolFeePaidInBpt = 'poolId__totalProtocolFeePaidInBPT', PoolIdTotalShares = 'poolId__totalShares', - PoolIdTotalSwapFee = 'poolId__totalSwapFee', - PoolIdTotalSwapVolume = 'poolId__totalSwapVolume', PoolIdTotalWeight = 'poolId__totalWeight', PoolIdTx = 'poolId__tx', PoolIdU = 'poolId__u', @@ -1920,227 +864,19 @@ export enum PoolShare_OrderBy { PoolIdWrappedIndex = 'poolId__wrappedIndex', PoolIdZ = 'poolId__z', UserAddress = 'userAddress', - UserAddressId = 'userAddress__id', -} - -export type PoolSnapshot = { - __typename?: 'PoolSnapshot'; - amounts: Array; - holdersCount: Scalars['BigInt']; - id: Scalars['ID']; - liquidity: Scalars['BigDecimal']; - pool: Pool; - protocolFee?: Maybe; - swapFees: Scalars['BigDecimal']; - swapVolume: Scalars['BigDecimal']; - swapsCount: Scalars['BigInt']; - timestamp: Scalars['Int']; - totalShares: Scalars['BigDecimal']; -}; - -export type PoolSnapshot_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - amounts?: InputMaybe>; - amounts_contains?: InputMaybe>; - amounts_contains_nocase?: InputMaybe>; - amounts_not?: InputMaybe>; - amounts_not_contains?: InputMaybe>; - amounts_not_contains_nocase?: InputMaybe>; - and?: InputMaybe>>; - holdersCount?: InputMaybe; - holdersCount_gt?: InputMaybe; - holdersCount_gte?: InputMaybe; - holdersCount_in?: InputMaybe>; - holdersCount_lt?: InputMaybe; - holdersCount_lte?: InputMaybe; - holdersCount_not?: InputMaybe; - holdersCount_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - liquidity?: InputMaybe; - liquidity_gt?: InputMaybe; - liquidity_gte?: InputMaybe; - liquidity_in?: InputMaybe>; - liquidity_lt?: InputMaybe; - liquidity_lte?: InputMaybe; - liquidity_not?: InputMaybe; - liquidity_not_in?: InputMaybe>; - or?: InputMaybe>>; - pool?: InputMaybe; - pool_?: InputMaybe; - pool_contains?: InputMaybe; - pool_contains_nocase?: InputMaybe; - pool_ends_with?: InputMaybe; - pool_ends_with_nocase?: InputMaybe; - pool_gt?: InputMaybe; - pool_gte?: InputMaybe; - pool_in?: InputMaybe>; - pool_lt?: InputMaybe; - pool_lte?: InputMaybe; - pool_not?: InputMaybe; - pool_not_contains?: InputMaybe; - pool_not_contains_nocase?: InputMaybe; - pool_not_ends_with?: InputMaybe; - pool_not_ends_with_nocase?: InputMaybe; - pool_not_in?: InputMaybe>; - pool_not_starts_with?: InputMaybe; - pool_not_starts_with_nocase?: InputMaybe; - pool_starts_with?: InputMaybe; - pool_starts_with_nocase?: InputMaybe; - protocolFee?: InputMaybe; - protocolFee_gt?: InputMaybe; - protocolFee_gte?: InputMaybe; - protocolFee_in?: InputMaybe>; - protocolFee_lt?: InputMaybe; - protocolFee_lte?: InputMaybe; - protocolFee_not?: InputMaybe; - protocolFee_not_in?: InputMaybe>; - swapFees?: InputMaybe; - swapFees_gt?: InputMaybe; - swapFees_gte?: InputMaybe; - swapFees_in?: InputMaybe>; - swapFees_lt?: InputMaybe; - swapFees_lte?: InputMaybe; - swapFees_not?: InputMaybe; - swapFees_not_in?: InputMaybe>; - swapVolume?: InputMaybe; - swapVolume_gt?: InputMaybe; - swapVolume_gte?: InputMaybe; - swapVolume_in?: InputMaybe>; - swapVolume_lt?: InputMaybe; - swapVolume_lte?: InputMaybe; - swapVolume_not?: InputMaybe; - swapVolume_not_in?: InputMaybe>; - swapsCount?: InputMaybe; - swapsCount_gt?: InputMaybe; - swapsCount_gte?: InputMaybe; - swapsCount_in?: InputMaybe>; - swapsCount_lt?: InputMaybe; - swapsCount_lte?: InputMaybe; - swapsCount_not?: InputMaybe; - swapsCount_not_in?: InputMaybe>; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - totalShares?: InputMaybe; - totalShares_gt?: InputMaybe; - totalShares_gte?: InputMaybe; - totalShares_in?: InputMaybe>; - totalShares_lt?: InputMaybe; - totalShares_lte?: InputMaybe; - totalShares_not?: InputMaybe; - totalShares_not_in?: InputMaybe>; -}; - -export enum PoolSnapshot_OrderBy { - Amounts = 'amounts', - HoldersCount = 'holdersCount', - Id = 'id', - Liquidity = 'liquidity', - Pool = 'pool', - PoolAddress = 'pool__address', - PoolAlpha = 'pool__alpha', - PoolAmp = 'pool__amp', - PoolBaseToken = 'pool__baseToken', - PoolBeta = 'pool__beta', - PoolC = 'pool__c', - PoolCreateTime = 'pool__createTime', - PoolDSq = 'pool__dSq', - PoolDelta = 'pool__delta', - PoolEpsilon = 'pool__epsilon', - PoolExpiryTime = 'pool__expiryTime', - PoolFactory = 'pool__factory', - PoolHoldersCount = 'pool__holdersCount', - PoolId = 'pool__id', - PoolIsInRecoveryMode = 'pool__isInRecoveryMode', - PoolIsPaused = 'pool__isPaused', - PoolJoinExitEnabled = 'pool__joinExitEnabled', - PoolLambda = 'pool__lambda', - PoolLastJoinExitAmp = 'pool__lastJoinExitAmp', - PoolLastPostJoinExitInvariant = 'pool__lastPostJoinExitInvariant', - PoolLowerTarget = 'pool__lowerTarget', - PoolMainIndex = 'pool__mainIndex', - PoolManagementAumFee = 'pool__managementAumFee', - PoolManagementFee = 'pool__managementFee', - PoolMustAllowlistLPs = 'pool__mustAllowlistLPs', - PoolName = 'pool__name', - PoolOracleEnabled = 'pool__oracleEnabled', - PoolOwner = 'pool__owner', - PoolPoolType = 'pool__poolType', - PoolPoolTypeVersion = 'pool__poolTypeVersion', - PoolPrincipalToken = 'pool__principalToken', - PoolProtocolAumFeeCache = 'pool__protocolAumFeeCache', - PoolProtocolId = 'pool__protocolId', - PoolProtocolSwapFeeCache = 'pool__protocolSwapFeeCache', - PoolProtocolYieldFeeCache = 'pool__protocolYieldFeeCache', - PoolRoot3Alpha = 'pool__root3Alpha', - PoolS = 'pool__s', - PoolSqrtAlpha = 'pool__sqrtAlpha', - PoolSqrtBeta = 'pool__sqrtBeta', - PoolStrategyType = 'pool__strategyType', - PoolSwapEnabled = 'pool__swapEnabled', - PoolSwapEnabledCurationSignal = 'pool__swapEnabledCurationSignal', - PoolSwapEnabledInternal = 'pool__swapEnabledInternal', - PoolSwapFee = 'pool__swapFee', - PoolSwapsCount = 'pool__swapsCount', - PoolSymbol = 'pool__symbol', - PoolTauAlphaX = 'pool__tauAlphaX', - PoolTauAlphaY = 'pool__tauAlphaY', - PoolTauBetaX = 'pool__tauBetaX', - PoolTauBetaY = 'pool__tauBetaY', - PoolTotalAumFeeCollectedInBpt = 'pool__totalAumFeeCollectedInBPT', - PoolTotalLiquidity = 'pool__totalLiquidity', - PoolTotalLiquiditySansBpt = 'pool__totalLiquiditySansBPT', - PoolTotalProtocolFee = 'pool__totalProtocolFee', - PoolTotalProtocolFeePaidInBpt = 'pool__totalProtocolFeePaidInBPT', - PoolTotalShares = 'pool__totalShares', - PoolTotalSwapFee = 'pool__totalSwapFee', - PoolTotalSwapVolume = 'pool__totalSwapVolume', - PoolTotalWeight = 'pool__totalWeight', - PoolTx = 'pool__tx', - PoolU = 'pool__u', - PoolUnitSeconds = 'pool__unitSeconds', - PoolUpperTarget = 'pool__upperTarget', - PoolV = 'pool__v', - PoolW = 'pool__w', - PoolWrappedIndex = 'pool__wrappedIndex', - PoolZ = 'pool__z', - ProtocolFee = 'protocolFee', - SwapFees = 'swapFees', - SwapVolume = 'swapVolume', - SwapsCount = 'swapsCount', - Timestamp = 'timestamp', - TotalShares = 'totalShares', } export type PoolToken = { __typename?: 'PoolToken'; address: Scalars['String']; - assetManager: Scalars['Bytes']; balance: Scalars['BigDecimal']; - cashBalance: Scalars['BigDecimal']; - circuitBreaker?: Maybe; decimals: Scalars['Int']; id: Scalars['ID']; - index?: Maybe; + index: Scalars['Int']; isExemptFromYieldProtocolFee?: Maybe; - managedBalance: Scalars['BigDecimal']; - managements?: Maybe>; name: Scalars['String']; - oldPriceRate?: Maybe; - paidProtocolFees?: Maybe; + oldPriceRate: Scalars['BigDecimal']; + paidProtocolFees: Scalars['BigDecimal']; poolId?: Maybe; priceRate: Scalars['BigDecimal']; symbol: Scalars['String']; @@ -2148,14 +884,6 @@ export type PoolToken = { weight?: Maybe; }; -export type PoolTokenManagementsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - export type PoolToken_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; @@ -2180,16 +908,6 @@ export type PoolToken_Filter = { address_starts_with?: InputMaybe; address_starts_with_nocase?: InputMaybe; and?: InputMaybe>>; - assetManager?: InputMaybe; - assetManager_contains?: InputMaybe; - assetManager_gt?: InputMaybe; - assetManager_gte?: InputMaybe; - assetManager_in?: InputMaybe>; - assetManager_lt?: InputMaybe; - assetManager_lte?: InputMaybe; - assetManager_not?: InputMaybe; - assetManager_not_contains?: InputMaybe; - assetManager_not_in?: InputMaybe>; balance?: InputMaybe; balance_gt?: InputMaybe; balance_gte?: InputMaybe; @@ -2198,35 +916,6 @@ export type PoolToken_Filter = { balance_lte?: InputMaybe; balance_not?: InputMaybe; balance_not_in?: InputMaybe>; - cashBalance?: InputMaybe; - cashBalance_gt?: InputMaybe; - cashBalance_gte?: InputMaybe; - cashBalance_in?: InputMaybe>; - cashBalance_lt?: InputMaybe; - cashBalance_lte?: InputMaybe; - cashBalance_not?: InputMaybe; - cashBalance_not_in?: InputMaybe>; - circuitBreaker?: InputMaybe; - circuitBreaker_?: InputMaybe; - circuitBreaker_contains?: InputMaybe; - circuitBreaker_contains_nocase?: InputMaybe; - circuitBreaker_ends_with?: InputMaybe; - circuitBreaker_ends_with_nocase?: InputMaybe; - circuitBreaker_gt?: InputMaybe; - circuitBreaker_gte?: InputMaybe; - circuitBreaker_in?: InputMaybe>; - circuitBreaker_lt?: InputMaybe; - circuitBreaker_lte?: InputMaybe; - circuitBreaker_not?: InputMaybe; - circuitBreaker_not_contains?: InputMaybe; - circuitBreaker_not_contains_nocase?: InputMaybe; - circuitBreaker_not_ends_with?: InputMaybe; - circuitBreaker_not_ends_with_nocase?: InputMaybe; - circuitBreaker_not_in?: InputMaybe>; - circuitBreaker_not_starts_with?: InputMaybe; - circuitBreaker_not_starts_with_nocase?: InputMaybe; - circuitBreaker_starts_with?: InputMaybe; - circuitBreaker_starts_with_nocase?: InputMaybe; decimals?: InputMaybe; decimals_gt?: InputMaybe; decimals_gte?: InputMaybe; @@ -2255,15 +944,6 @@ export type PoolToken_Filter = { isExemptFromYieldProtocolFee_in?: InputMaybe>; isExemptFromYieldProtocolFee_not?: InputMaybe; isExemptFromYieldProtocolFee_not_in?: InputMaybe>; - managedBalance?: InputMaybe; - managedBalance_gt?: InputMaybe; - managedBalance_gte?: InputMaybe; - managedBalance_in?: InputMaybe>; - managedBalance_lt?: InputMaybe; - managedBalance_lte?: InputMaybe; - managedBalance_not?: InputMaybe; - managedBalance_not_in?: InputMaybe>; - managements_?: InputMaybe; name?: InputMaybe; name_contains?: InputMaybe; name_contains_nocase?: InputMaybe; @@ -2383,20 +1063,11 @@ export type PoolToken_Filter = { export enum PoolToken_OrderBy { Address = 'address', - AssetManager = 'assetManager', Balance = 'balance', - CashBalance = 'cashBalance', - CircuitBreaker = 'circuitBreaker', - CircuitBreakerBptPrice = 'circuitBreaker__bptPrice', - CircuitBreakerId = 'circuitBreaker__id', - CircuitBreakerLowerBoundPercentage = 'circuitBreaker__lowerBoundPercentage', - CircuitBreakerUpperBoundPercentage = 'circuitBreaker__upperBoundPercentage', Decimals = 'decimals', Id = 'id', Index = 'index', IsExemptFromYieldProtocolFee = 'isExemptFromYieldProtocolFee', - ManagedBalance = 'managedBalance', - Managements = 'managements', Name = 'name', OldPriceRate = 'oldPriceRate', PaidProtocolFees = 'paidProtocolFees', @@ -2452,13 +1123,8 @@ export enum PoolToken_OrderBy { PoolIdTauBetaX = 'poolId__tauBetaX', PoolIdTauBetaY = 'poolId__tauBetaY', PoolIdTotalAumFeeCollectedInBpt = 'poolId__totalAumFeeCollectedInBPT', - PoolIdTotalLiquidity = 'poolId__totalLiquidity', - PoolIdTotalLiquiditySansBpt = 'poolId__totalLiquiditySansBPT', - PoolIdTotalProtocolFee = 'poolId__totalProtocolFee', PoolIdTotalProtocolFeePaidInBpt = 'poolId__totalProtocolFeePaidInBPT', PoolIdTotalShares = 'poolId__totalShares', - PoolIdTotalSwapFee = 'poolId__totalSwapFee', - PoolIdTotalSwapVolume = 'poolId__totalSwapVolume', PoolIdTotalWeight = 'poolId__totalWeight', PoolIdTx = 'poolId__tx', PoolIdU = 'poolId__u', @@ -2476,15 +1142,9 @@ export enum PoolToken_OrderBy { TokenFxOracleDecimals = 'token__fxOracleDecimals', TokenId = 'token__id', TokenLatestFxPrice = 'token__latestFXPrice', - TokenLatestUsdPrice = 'token__latestUSDPrice', - TokenLatestUsdPriceTimestamp = 'token__latestUSDPriceTimestamp', TokenName = 'token__name', TokenSymbol = 'token__symbol', TokenTotalBalanceNotional = 'token__totalBalanceNotional', - TokenTotalBalanceUsd = 'token__totalBalanceUSD', - TokenTotalSwapCount = 'token__totalSwapCount', - TokenTotalVolumeNotional = 'token__totalVolumeNotional', - TokenTotalVolumeUsd = 'token__totalVolumeUSD', Weight = 'weight', } @@ -2545,7 +1205,6 @@ export type Pool_Filter = { c_lte?: InputMaybe; c_not?: InputMaybe; c_not_in?: InputMaybe>; - circuitBreakers_?: InputMaybe; createTime?: InputMaybe; createTime_gt?: InputMaybe; createTime_gte?: InputMaybe; @@ -2596,7 +1255,6 @@ export type Pool_Filter = { factory_not?: InputMaybe; factory_not_contains?: InputMaybe; factory_not_in?: InputMaybe>; - historicalValues_?: InputMaybe; holdersCount?: InputMaybe; holdersCount_gt?: InputMaybe; holdersCount_gte?: InputMaybe; @@ -2851,7 +1509,6 @@ export type Pool_Filter = { s_not?: InputMaybe; s_not_in?: InputMaybe>; shares_?: InputMaybe; - snapshots_?: InputMaybe; sqrtAlpha?: InputMaybe; sqrtAlpha_gt?: InputMaybe; sqrtAlpha_gte?: InputMaybe; @@ -2972,23 +1629,6 @@ export type Pool_Filter = { totalAumFeeCollectedInBPT_lte?: InputMaybe; totalAumFeeCollectedInBPT_not?: InputMaybe; totalAumFeeCollectedInBPT_not_in?: InputMaybe>; - totalLiquidity?: InputMaybe; - totalLiquiditySansBPT?: InputMaybe; - totalLiquiditySansBPT_gt?: InputMaybe; - totalLiquiditySansBPT_gte?: InputMaybe; - totalLiquiditySansBPT_in?: InputMaybe>; - totalLiquiditySansBPT_lt?: InputMaybe; - totalLiquiditySansBPT_lte?: InputMaybe; - totalLiquiditySansBPT_not?: InputMaybe; - totalLiquiditySansBPT_not_in?: InputMaybe>; - totalLiquidity_gt?: InputMaybe; - totalLiquidity_gte?: InputMaybe; - totalLiquidity_in?: InputMaybe>; - totalLiquidity_lt?: InputMaybe; - totalLiquidity_lte?: InputMaybe; - totalLiquidity_not?: InputMaybe; - totalLiquidity_not_in?: InputMaybe>; - totalProtocolFee?: InputMaybe; totalProtocolFeePaidInBPT?: InputMaybe; totalProtocolFeePaidInBPT_gt?: InputMaybe; totalProtocolFeePaidInBPT_gte?: InputMaybe; @@ -2997,13 +1637,6 @@ export type Pool_Filter = { totalProtocolFeePaidInBPT_lte?: InputMaybe; totalProtocolFeePaidInBPT_not?: InputMaybe; totalProtocolFeePaidInBPT_not_in?: InputMaybe>; - totalProtocolFee_gt?: InputMaybe; - totalProtocolFee_gte?: InputMaybe; - totalProtocolFee_in?: InputMaybe>; - totalProtocolFee_lt?: InputMaybe; - totalProtocolFee_lte?: InputMaybe; - totalProtocolFee_not?: InputMaybe; - totalProtocolFee_not_in?: InputMaybe>; totalShares?: InputMaybe; totalShares_gt?: InputMaybe; totalShares_gte?: InputMaybe; @@ -3012,22 +1645,6 @@ export type Pool_Filter = { totalShares_lte?: InputMaybe; totalShares_not?: InputMaybe; totalShares_not_in?: InputMaybe>; - totalSwapFee?: InputMaybe; - totalSwapFee_gt?: InputMaybe; - totalSwapFee_gte?: InputMaybe; - totalSwapFee_in?: InputMaybe>; - totalSwapFee_lt?: InputMaybe; - totalSwapFee_lte?: InputMaybe; - totalSwapFee_not?: InputMaybe; - totalSwapFee_not_in?: InputMaybe>; - totalSwapVolume?: InputMaybe; - totalSwapVolume_gt?: InputMaybe; - totalSwapVolume_gte?: InputMaybe; - totalSwapVolume_in?: InputMaybe>; - totalSwapVolume_lt?: InputMaybe; - totalSwapVolume_lte?: InputMaybe; - totalSwapVolume_not?: InputMaybe; - totalSwapVolume_not_in?: InputMaybe>; totalWeight?: InputMaybe; totalWeight_gt?: InputMaybe; totalWeight_gte?: InputMaybe; @@ -3107,7 +1724,6 @@ export type Pool_Filter = { w_lte?: InputMaybe; w_not?: InputMaybe; w_not_in?: InputMaybe>; - weightUpdates_?: InputMaybe; wrappedIndex?: InputMaybe; wrappedIndex_gt?: InputMaybe; wrappedIndex_gte?: InputMaybe; @@ -3134,14 +1750,12 @@ export enum Pool_OrderBy { BaseToken = 'baseToken', Beta = 'beta', C = 'c', - CircuitBreakers = 'circuitBreakers', CreateTime = 'createTime', DSq = 'dSq', Delta = 'delta', Epsilon = 'epsilon', ExpiryTime = 'expiryTime', Factory = 'factory', - HistoricalValues = 'historicalValues', HoldersCount = 'holdersCount', Id = 'id', IsInRecoveryMode = 'isInRecoveryMode', @@ -3180,7 +1794,6 @@ export enum Pool_OrderBy { Root3Alpha = 'root3Alpha', S = 's', Shares = 'shares', - Snapshots = 'snapshots', SqrtAlpha = 'sqrtAlpha', SqrtBeta = 'sqrtBeta', StrategyType = 'strategyType', @@ -3198,13 +1811,8 @@ export enum Pool_OrderBy { Tokens = 'tokens', TokensList = 'tokensList', TotalAumFeeCollectedInBpt = 'totalAumFeeCollectedInBPT', - TotalLiquidity = 'totalLiquidity', - TotalLiquiditySansBpt = 'totalLiquiditySansBPT', - TotalProtocolFee = 'totalProtocolFee', TotalProtocolFeePaidInBpt = 'totalProtocolFeePaidInBPT', TotalShares = 'totalShares', - TotalSwapFee = 'totalSwapFee', - TotalSwapVolume = 'totalSwapVolume', TotalWeight = 'totalWeight', Tx = 'tx', U = 'u', @@ -3214,14 +1822,7 @@ export enum Pool_OrderBy { VaultId = 'vaultID', VaultIdId = 'vaultID__id', VaultIdPoolCount = 'vaultID__poolCount', - VaultIdProtocolFeesCollector = 'vaultID__protocolFeesCollector', - VaultIdTotalLiquidity = 'vaultID__totalLiquidity', - VaultIdTotalProtocolFee = 'vaultID__totalProtocolFee', - VaultIdTotalSwapCount = 'vaultID__totalSwapCount', - VaultIdTotalSwapFee = 'vaultID__totalSwapFee', - VaultIdTotalSwapVolume = 'vaultID__totalSwapVolume', W = 'w', - WeightUpdates = 'weightUpdates', WrappedIndex = 'wrappedIndex', Z = 'z', } @@ -3395,13 +1996,8 @@ export enum PriceRateProvider_OrderBy { PoolIdTauBetaX = 'poolId__tauBetaX', PoolIdTauBetaY = 'poolId__tauBetaY', PoolIdTotalAumFeeCollectedInBpt = 'poolId__totalAumFeeCollectedInBPT', - PoolIdTotalLiquidity = 'poolId__totalLiquidity', - PoolIdTotalLiquiditySansBpt = 'poolId__totalLiquiditySansBPT', - PoolIdTotalProtocolFee = 'poolId__totalProtocolFee', PoolIdTotalProtocolFeePaidInBpt = 'poolId__totalProtocolFeePaidInBPT', PoolIdTotalShares = 'poolId__totalShares', - PoolIdTotalSwapFee = 'poolId__totalSwapFee', - PoolIdTotalSwapVolume = 'poolId__totalSwapVolume', PoolIdTotalWeight = 'poolId__totalWeight', PoolIdTx = 'poolId__tx', PoolIdU = 'poolId__u', @@ -3414,14 +2010,11 @@ export enum PriceRateProvider_OrderBy { Rate = 'rate', Token = 'token', TokenAddress = 'token__address', - TokenAssetManager = 'token__assetManager', TokenBalance = 'token__balance', - TokenCashBalance = 'token__cashBalance', TokenDecimals = 'token__decimals', TokenId = 'token__id', TokenIndex = 'token__index', TokenIsExemptFromYieldProtocolFee = 'token__isExemptFromYieldProtocolFee', - TokenManagedBalance = 'token__managedBalance', TokenName = 'token__name', TokenOldPriceRate = 'token__oldPriceRate', TokenPaidProtocolFees = 'token__paidProtocolFees', @@ -3483,30 +2076,16 @@ export type Query = { ampUpdate?: Maybe; ampUpdates: Array; balancer?: Maybe; - balancerSnapshot?: Maybe; - balancerSnapshots: Array; balancers: Array; - circuitBreaker?: Maybe; - circuitBreakers: Array; fxoracle?: Maybe; fxoracles: Array; - gradualWeightUpdate?: Maybe; - gradualWeightUpdates: Array; joinExit?: Maybe; joinExits: Array; - latestPrice?: Maybe; - latestPrices: Array; - managementOperation?: Maybe; - managementOperations: Array; pool?: Maybe; poolContract?: Maybe; poolContracts: Array; - poolHistoricalLiquidities: Array; - poolHistoricalLiquidity?: Maybe; poolShare?: Maybe; poolShares: Array; - poolSnapshot?: Maybe; - poolSnapshots: Array; poolToken?: Maybe; poolTokens: Array; pools: Array; @@ -3515,171 +2094,77 @@ export type Query = { protocolIdData?: Maybe; protocolIdDatas: Array; swap?: Maybe; - swapFeeUpdate?: Maybe; - swapFeeUpdates: Array; - swaps: Array; - token?: Maybe; - tokenPrice?: Maybe; - tokenPrices: Array; - tokenSnapshot?: Maybe; - tokenSnapshots: Array; - tokens: Array; - tradePair?: Maybe; - tradePairSnapshot?: Maybe; - tradePairSnapshots: Array; - tradePairs: Array; - user?: Maybe; - userInternalBalance?: Maybe; - userInternalBalances: Array; - users: Array; -}; - -export type Query_MetaArgs = { - block?: InputMaybe; -}; - -export type QueryAmpUpdateArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - -export type QueryAmpUpdatesArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - -export type QueryBalancerArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - -export type QueryBalancerSnapshotArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - -export type QueryBalancerSnapshotsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - -export type QueryBalancersArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - -export type QueryCircuitBreakerArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - -export type QueryCircuitBreakersArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - -export type QueryFxoracleArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; + swaps: Array; + token?: Maybe; + tokens: Array; }; -export type QueryFxoraclesArgs = { +export type Query_MetaArgs = { block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; }; -export type QueryGradualWeightUpdateArgs = { +export type QueryAmpUpdateArgs = { block?: InputMaybe; id: Scalars['ID']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryGradualWeightUpdatesArgs = { +export type QueryAmpUpdatesArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type QueryJoinExitArgs = { +export type QueryBalancerArgs = { block?: InputMaybe; id: Scalars['ID']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryJoinExitsArgs = { +export type QueryBalancersArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type QueryLatestPriceArgs = { +export type QueryFxoracleArgs = { block?: InputMaybe; id: Scalars['ID']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryLatestPricesArgs = { +export type QueryFxoraclesArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type QueryManagementOperationArgs = { +export type QueryJoinExitArgs = { block?: InputMaybe; id: Scalars['ID']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryManagementOperationsArgs = { +export type QueryJoinExitsArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; export type QueryPoolArgs = { @@ -3704,22 +2189,6 @@ export type QueryPoolContractsArgs = { where?: InputMaybe; }; -export type QueryPoolHistoricalLiquiditiesArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - -export type QueryPoolHistoricalLiquidityArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - export type QueryPoolShareArgs = { block?: InputMaybe; id: Scalars['ID']; @@ -3736,22 +2205,6 @@ export type QueryPoolSharesArgs = { where?: InputMaybe; }; -export type QueryPoolSnapshotArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - -export type QueryPoolSnapshotsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - export type QueryPoolTokenArgs = { block?: InputMaybe; id: Scalars['ID']; @@ -3803,338 +2256,61 @@ export type QueryProtocolIdDataArgs = { export type QueryProtocolIdDatasArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - -export type QuerySwapArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - -export type QuerySwapFeeUpdateArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - -export type QuerySwapFeeUpdatesArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - -export type QuerySwapsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - -export type QueryTokenArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - -export type QueryTokenPriceArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - -export type QueryTokenPricesArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - -export type QueryTokenSnapshotArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - -export type QueryTokenSnapshotsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - -export type QueryTokensArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - -export type QueryTradePairArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - -export type QueryTradePairSnapshotArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - -export type QueryTradePairSnapshotsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - -export type QueryTradePairsArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - -export type QueryUserArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - -export type QueryUserInternalBalanceArgs = { - block?: InputMaybe; - id: Scalars['ID']; - subgraphError?: _SubgraphErrorPolicy_; -}; - -export type QueryUserInternalBalancesArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - -export type QueryUsersArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - -export type Swap = { - __typename?: 'Swap'; - block?: Maybe; - caller: Scalars['Bytes']; - id: Scalars['ID']; - poolId: Pool; - timestamp: Scalars['Int']; - tokenAmountIn: Scalars['BigDecimal']; - tokenAmountOut: Scalars['BigDecimal']; - tokenIn: Scalars['Bytes']; - tokenInSym: Scalars['String']; - tokenOut: Scalars['Bytes']; - tokenOutSym: Scalars['String']; - tx: Scalars['Bytes']; - userAddress: User; - valueUSD: Scalars['BigDecimal']; -}; - -export type SwapFeeUpdate = { - __typename?: 'SwapFeeUpdate'; - endSwapFeePercentage: Scalars['BigDecimal']; - endTimestamp: Scalars['BigInt']; - id: Scalars['ID']; - pool: Pool; - scheduledTimestamp: Scalars['Int']; - startSwapFeePercentage: Scalars['BigDecimal']; - startTimestamp: Scalars['BigInt']; -}; - -export type SwapFeeUpdate_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - endSwapFeePercentage?: InputMaybe; - endSwapFeePercentage_gt?: InputMaybe; - endSwapFeePercentage_gte?: InputMaybe; - endSwapFeePercentage_in?: InputMaybe>; - endSwapFeePercentage_lt?: InputMaybe; - endSwapFeePercentage_lte?: InputMaybe; - endSwapFeePercentage_not?: InputMaybe; - endSwapFeePercentage_not_in?: InputMaybe>; - endTimestamp?: InputMaybe; - endTimestamp_gt?: InputMaybe; - endTimestamp_gte?: InputMaybe; - endTimestamp_in?: InputMaybe>; - endTimestamp_lt?: InputMaybe; - endTimestamp_lte?: InputMaybe; - endTimestamp_not?: InputMaybe; - endTimestamp_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - pool?: InputMaybe; - pool_?: InputMaybe; - pool_contains?: InputMaybe; - pool_contains_nocase?: InputMaybe; - pool_ends_with?: InputMaybe; - pool_ends_with_nocase?: InputMaybe; - pool_gt?: InputMaybe; - pool_gte?: InputMaybe; - pool_in?: InputMaybe>; - pool_lt?: InputMaybe; - pool_lte?: InputMaybe; - pool_not?: InputMaybe; - pool_not_contains?: InputMaybe; - pool_not_contains_nocase?: InputMaybe; - pool_not_ends_with?: InputMaybe; - pool_not_ends_with_nocase?: InputMaybe; - pool_not_in?: InputMaybe>; - pool_not_starts_with?: InputMaybe; - pool_not_starts_with_nocase?: InputMaybe; - pool_starts_with?: InputMaybe; - pool_starts_with_nocase?: InputMaybe; - scheduledTimestamp?: InputMaybe; - scheduledTimestamp_gt?: InputMaybe; - scheduledTimestamp_gte?: InputMaybe; - scheduledTimestamp_in?: InputMaybe>; - scheduledTimestamp_lt?: InputMaybe; - scheduledTimestamp_lte?: InputMaybe; - scheduledTimestamp_not?: InputMaybe; - scheduledTimestamp_not_in?: InputMaybe>; - startSwapFeePercentage?: InputMaybe; - startSwapFeePercentage_gt?: InputMaybe; - startSwapFeePercentage_gte?: InputMaybe; - startSwapFeePercentage_in?: InputMaybe>; - startSwapFeePercentage_lt?: InputMaybe; - startSwapFeePercentage_lte?: InputMaybe; - startSwapFeePercentage_not?: InputMaybe; - startSwapFeePercentage_not_in?: InputMaybe>; - startTimestamp?: InputMaybe; - startTimestamp_gt?: InputMaybe; - startTimestamp_gte?: InputMaybe; - startTimestamp_in?: InputMaybe>; - startTimestamp_lt?: InputMaybe; - startTimestamp_lte?: InputMaybe; - startTimestamp_not?: InputMaybe; - startTimestamp_not_in?: InputMaybe>; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; }; -export enum SwapFeeUpdate_OrderBy { - EndSwapFeePercentage = 'endSwapFeePercentage', - EndTimestamp = 'endTimestamp', - Id = 'id', - Pool = 'pool', - PoolAddress = 'pool__address', - PoolAlpha = 'pool__alpha', - PoolAmp = 'pool__amp', - PoolBaseToken = 'pool__baseToken', - PoolBeta = 'pool__beta', - PoolC = 'pool__c', - PoolCreateTime = 'pool__createTime', - PoolDSq = 'pool__dSq', - PoolDelta = 'pool__delta', - PoolEpsilon = 'pool__epsilon', - PoolExpiryTime = 'pool__expiryTime', - PoolFactory = 'pool__factory', - PoolHoldersCount = 'pool__holdersCount', - PoolId = 'pool__id', - PoolIsInRecoveryMode = 'pool__isInRecoveryMode', - PoolIsPaused = 'pool__isPaused', - PoolJoinExitEnabled = 'pool__joinExitEnabled', - PoolLambda = 'pool__lambda', - PoolLastJoinExitAmp = 'pool__lastJoinExitAmp', - PoolLastPostJoinExitInvariant = 'pool__lastPostJoinExitInvariant', - PoolLowerTarget = 'pool__lowerTarget', - PoolMainIndex = 'pool__mainIndex', - PoolManagementAumFee = 'pool__managementAumFee', - PoolManagementFee = 'pool__managementFee', - PoolMustAllowlistLPs = 'pool__mustAllowlistLPs', - PoolName = 'pool__name', - PoolOracleEnabled = 'pool__oracleEnabled', - PoolOwner = 'pool__owner', - PoolPoolType = 'pool__poolType', - PoolPoolTypeVersion = 'pool__poolTypeVersion', - PoolPrincipalToken = 'pool__principalToken', - PoolProtocolAumFeeCache = 'pool__protocolAumFeeCache', - PoolProtocolId = 'pool__protocolId', - PoolProtocolSwapFeeCache = 'pool__protocolSwapFeeCache', - PoolProtocolYieldFeeCache = 'pool__protocolYieldFeeCache', - PoolRoot3Alpha = 'pool__root3Alpha', - PoolS = 'pool__s', - PoolSqrtAlpha = 'pool__sqrtAlpha', - PoolSqrtBeta = 'pool__sqrtBeta', - PoolStrategyType = 'pool__strategyType', - PoolSwapEnabled = 'pool__swapEnabled', - PoolSwapEnabledCurationSignal = 'pool__swapEnabledCurationSignal', - PoolSwapEnabledInternal = 'pool__swapEnabledInternal', - PoolSwapFee = 'pool__swapFee', - PoolSwapsCount = 'pool__swapsCount', - PoolSymbol = 'pool__symbol', - PoolTauAlphaX = 'pool__tauAlphaX', - PoolTauAlphaY = 'pool__tauAlphaY', - PoolTauBetaX = 'pool__tauBetaX', - PoolTauBetaY = 'pool__tauBetaY', - PoolTotalAumFeeCollectedInBpt = 'pool__totalAumFeeCollectedInBPT', - PoolTotalLiquidity = 'pool__totalLiquidity', - PoolTotalLiquiditySansBpt = 'pool__totalLiquiditySansBPT', - PoolTotalProtocolFee = 'pool__totalProtocolFee', - PoolTotalProtocolFeePaidInBpt = 'pool__totalProtocolFeePaidInBPT', - PoolTotalShares = 'pool__totalShares', - PoolTotalSwapFee = 'pool__totalSwapFee', - PoolTotalSwapVolume = 'pool__totalSwapVolume', - PoolTotalWeight = 'pool__totalWeight', - PoolTx = 'pool__tx', - PoolU = 'pool__u', - PoolUnitSeconds = 'pool__unitSeconds', - PoolUpperTarget = 'pool__upperTarget', - PoolV = 'pool__v', - PoolW = 'pool__w', - PoolWrappedIndex = 'pool__wrappedIndex', - PoolZ = 'pool__z', - ScheduledTimestamp = 'scheduledTimestamp', - StartSwapFeePercentage = 'startSwapFeePercentage', - StartTimestamp = 'startTimestamp', -} +export type QuerySwapArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QuerySwapsArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type QueryTokenArgs = { + block?: InputMaybe; + id: Scalars['ID']; + subgraphError?: _SubgraphErrorPolicy_; +}; + +export type QueryTokensArgs = { + block?: InputMaybe; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; +}; + +export type Swap = { + __typename?: 'Swap'; + block?: Maybe; + caller: Scalars['Bytes']; + id: Scalars['ID']; + poolId: Pool; + timestamp: Scalars['Int']; + tokenAmountIn: Scalars['BigDecimal']; + tokenAmountOut: Scalars['BigDecimal']; + tokenIn: Scalars['Bytes']; + tokenInSym: Scalars['String']; + tokenOut: Scalars['Bytes']; + tokenOutSym: Scalars['String']; + tx: Scalars['Bytes']; + userAddress: Scalars['Bytes']; +}; export type Swap_Filter = { /** Filter for the block changed event. */ @@ -4282,35 +2458,16 @@ export type Swap_Filter = { tx_not?: InputMaybe; tx_not_contains?: InputMaybe; tx_not_in?: InputMaybe>; - userAddress?: InputMaybe; - userAddress_?: InputMaybe; - userAddress_contains?: InputMaybe; - userAddress_contains_nocase?: InputMaybe; - userAddress_ends_with?: InputMaybe; - userAddress_ends_with_nocase?: InputMaybe; - userAddress_gt?: InputMaybe; - userAddress_gte?: InputMaybe; - userAddress_in?: InputMaybe>; - userAddress_lt?: InputMaybe; - userAddress_lte?: InputMaybe; - userAddress_not?: InputMaybe; - userAddress_not_contains?: InputMaybe; - userAddress_not_contains_nocase?: InputMaybe; - userAddress_not_ends_with?: InputMaybe; - userAddress_not_ends_with_nocase?: InputMaybe; - userAddress_not_in?: InputMaybe>; - userAddress_not_starts_with?: InputMaybe; - userAddress_not_starts_with_nocase?: InputMaybe; - userAddress_starts_with?: InputMaybe; - userAddress_starts_with_nocase?: InputMaybe; - valueUSD?: InputMaybe; - valueUSD_gt?: InputMaybe; - valueUSD_gte?: InputMaybe; - valueUSD_in?: InputMaybe>; - valueUSD_lt?: InputMaybe; - valueUSD_lte?: InputMaybe; - valueUSD_not?: InputMaybe; - valueUSD_not_in?: InputMaybe>; + userAddress?: InputMaybe; + userAddress_contains?: InputMaybe; + userAddress_gt?: InputMaybe; + userAddress_gte?: InputMaybe; + userAddress_in?: InputMaybe>; + userAddress_lt?: InputMaybe; + userAddress_lte?: InputMaybe; + userAddress_not?: InputMaybe; + userAddress_not_contains?: InputMaybe; + userAddress_not_in?: InputMaybe>; }; export enum Swap_OrderBy { @@ -4369,13 +2526,8 @@ export enum Swap_OrderBy { PoolIdTauBetaX = 'poolId__tauBetaX', PoolIdTauBetaY = 'poolId__tauBetaY', PoolIdTotalAumFeeCollectedInBpt = 'poolId__totalAumFeeCollectedInBPT', - PoolIdTotalLiquidity = 'poolId__totalLiquidity', - PoolIdTotalLiquiditySansBpt = 'poolId__totalLiquiditySansBPT', - PoolIdTotalProtocolFee = 'poolId__totalProtocolFee', PoolIdTotalProtocolFeePaidInBpt = 'poolId__totalProtocolFeePaidInBPT', PoolIdTotalShares = 'poolId__totalShares', - PoolIdTotalSwapFee = 'poolId__totalSwapFee', - PoolIdTotalSwapVolume = 'poolId__totalSwapVolume', PoolIdTotalWeight = 'poolId__totalWeight', PoolIdTx = 'poolId__tx', PoolIdU = 'poolId__u', @@ -4393,330 +2545,22 @@ export enum Swap_OrderBy { TokenOut = 'tokenOut', TokenOutSym = 'tokenOutSym', Tx = 'tx', - UserAddress = 'userAddress', - UserAddressId = 'userAddress__id', - ValueUsd = 'valueUSD', -} - -export type Token = { - __typename?: 'Token'; - address: Scalars['String']; - decimals: Scalars['Int']; - fxOracleDecimals?: Maybe; - id: Scalars['ID']; - latestFXPrice?: Maybe; - latestPrice?: Maybe; - latestUSDPrice?: Maybe; - latestUSDPriceTimestamp?: Maybe; - name?: Maybe; - pool?: Maybe; - symbol?: Maybe; - totalBalanceNotional: Scalars['BigDecimal']; - totalBalanceUSD: Scalars['BigDecimal']; - totalSwapCount: Scalars['BigInt']; - totalVolumeNotional: Scalars['BigDecimal']; - totalVolumeUSD: Scalars['BigDecimal']; -}; - -export type TokenPrice = { - __typename?: 'TokenPrice'; - amount: Scalars['BigDecimal']; - asset: Scalars['Bytes']; - block: Scalars['BigInt']; - id: Scalars['ID']; - poolId: Pool; - price: Scalars['BigDecimal']; - pricingAsset: Scalars['Bytes']; - timestamp: Scalars['Int']; -}; - -export type TokenPrice_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - amount?: InputMaybe; - amount_gt?: InputMaybe; - amount_gte?: InputMaybe; - amount_in?: InputMaybe>; - amount_lt?: InputMaybe; - amount_lte?: InputMaybe; - amount_not?: InputMaybe; - amount_not_in?: InputMaybe>; - and?: InputMaybe>>; - asset?: InputMaybe; - asset_contains?: InputMaybe; - asset_gt?: InputMaybe; - asset_gte?: InputMaybe; - asset_in?: InputMaybe>; - asset_lt?: InputMaybe; - asset_lte?: InputMaybe; - asset_not?: InputMaybe; - asset_not_contains?: InputMaybe; - asset_not_in?: InputMaybe>; - block?: InputMaybe; - block_gt?: InputMaybe; - block_gte?: InputMaybe; - block_in?: InputMaybe>; - block_lt?: InputMaybe; - block_lte?: InputMaybe; - block_not?: InputMaybe; - block_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - poolId?: InputMaybe; - poolId_?: InputMaybe; - poolId_contains?: InputMaybe; - poolId_contains_nocase?: InputMaybe; - poolId_ends_with?: InputMaybe; - poolId_ends_with_nocase?: InputMaybe; - poolId_gt?: InputMaybe; - poolId_gte?: InputMaybe; - poolId_in?: InputMaybe>; - poolId_lt?: InputMaybe; - poolId_lte?: InputMaybe; - poolId_not?: InputMaybe; - poolId_not_contains?: InputMaybe; - poolId_not_contains_nocase?: InputMaybe; - poolId_not_ends_with?: InputMaybe; - poolId_not_ends_with_nocase?: InputMaybe; - poolId_not_in?: InputMaybe>; - poolId_not_starts_with?: InputMaybe; - poolId_not_starts_with_nocase?: InputMaybe; - poolId_starts_with?: InputMaybe; - poolId_starts_with_nocase?: InputMaybe; - price?: InputMaybe; - price_gt?: InputMaybe; - price_gte?: InputMaybe; - price_in?: InputMaybe>; - price_lt?: InputMaybe; - price_lte?: InputMaybe; - price_not?: InputMaybe; - price_not_in?: InputMaybe>; - pricingAsset?: InputMaybe; - pricingAsset_contains?: InputMaybe; - pricingAsset_gt?: InputMaybe; - pricingAsset_gte?: InputMaybe; - pricingAsset_in?: InputMaybe>; - pricingAsset_lt?: InputMaybe; - pricingAsset_lte?: InputMaybe; - pricingAsset_not?: InputMaybe; - pricingAsset_not_contains?: InputMaybe; - pricingAsset_not_in?: InputMaybe>; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; -}; - -export enum TokenPrice_OrderBy { - Amount = 'amount', - Asset = 'asset', - Block = 'block', - Id = 'id', - PoolId = 'poolId', - PoolIdAddress = 'poolId__address', - PoolIdAlpha = 'poolId__alpha', - PoolIdAmp = 'poolId__amp', - PoolIdBaseToken = 'poolId__baseToken', - PoolIdBeta = 'poolId__beta', - PoolIdC = 'poolId__c', - PoolIdCreateTime = 'poolId__createTime', - PoolIdDSq = 'poolId__dSq', - PoolIdDelta = 'poolId__delta', - PoolIdEpsilon = 'poolId__epsilon', - PoolIdExpiryTime = 'poolId__expiryTime', - PoolIdFactory = 'poolId__factory', - PoolIdHoldersCount = 'poolId__holdersCount', - PoolIdId = 'poolId__id', - PoolIdIsInRecoveryMode = 'poolId__isInRecoveryMode', - PoolIdIsPaused = 'poolId__isPaused', - PoolIdJoinExitEnabled = 'poolId__joinExitEnabled', - PoolIdLambda = 'poolId__lambda', - PoolIdLastJoinExitAmp = 'poolId__lastJoinExitAmp', - PoolIdLastPostJoinExitInvariant = 'poolId__lastPostJoinExitInvariant', - PoolIdLowerTarget = 'poolId__lowerTarget', - PoolIdMainIndex = 'poolId__mainIndex', - PoolIdManagementAumFee = 'poolId__managementAumFee', - PoolIdManagementFee = 'poolId__managementFee', - PoolIdMustAllowlistLPs = 'poolId__mustAllowlistLPs', - PoolIdName = 'poolId__name', - PoolIdOracleEnabled = 'poolId__oracleEnabled', - PoolIdOwner = 'poolId__owner', - PoolIdPoolType = 'poolId__poolType', - PoolIdPoolTypeVersion = 'poolId__poolTypeVersion', - PoolIdPrincipalToken = 'poolId__principalToken', - PoolIdProtocolAumFeeCache = 'poolId__protocolAumFeeCache', - PoolIdProtocolId = 'poolId__protocolId', - PoolIdProtocolSwapFeeCache = 'poolId__protocolSwapFeeCache', - PoolIdProtocolYieldFeeCache = 'poolId__protocolYieldFeeCache', - PoolIdRoot3Alpha = 'poolId__root3Alpha', - PoolIdS = 'poolId__s', - PoolIdSqrtAlpha = 'poolId__sqrtAlpha', - PoolIdSqrtBeta = 'poolId__sqrtBeta', - PoolIdStrategyType = 'poolId__strategyType', - PoolIdSwapEnabled = 'poolId__swapEnabled', - PoolIdSwapEnabledCurationSignal = 'poolId__swapEnabledCurationSignal', - PoolIdSwapEnabledInternal = 'poolId__swapEnabledInternal', - PoolIdSwapFee = 'poolId__swapFee', - PoolIdSwapsCount = 'poolId__swapsCount', - PoolIdSymbol = 'poolId__symbol', - PoolIdTauAlphaX = 'poolId__tauAlphaX', - PoolIdTauAlphaY = 'poolId__tauAlphaY', - PoolIdTauBetaX = 'poolId__tauBetaX', - PoolIdTauBetaY = 'poolId__tauBetaY', - PoolIdTotalAumFeeCollectedInBpt = 'poolId__totalAumFeeCollectedInBPT', - PoolIdTotalLiquidity = 'poolId__totalLiquidity', - PoolIdTotalLiquiditySansBpt = 'poolId__totalLiquiditySansBPT', - PoolIdTotalProtocolFee = 'poolId__totalProtocolFee', - PoolIdTotalProtocolFeePaidInBpt = 'poolId__totalProtocolFeePaidInBPT', - PoolIdTotalShares = 'poolId__totalShares', - PoolIdTotalSwapFee = 'poolId__totalSwapFee', - PoolIdTotalSwapVolume = 'poolId__totalSwapVolume', - PoolIdTotalWeight = 'poolId__totalWeight', - PoolIdTx = 'poolId__tx', - PoolIdU = 'poolId__u', - PoolIdUnitSeconds = 'poolId__unitSeconds', - PoolIdUpperTarget = 'poolId__upperTarget', - PoolIdV = 'poolId__v', - PoolIdW = 'poolId__w', - PoolIdWrappedIndex = 'poolId__wrappedIndex', - PoolIdZ = 'poolId__z', - Price = 'price', - PricingAsset = 'pricingAsset', - Timestamp = 'timestamp', + UserAddress = 'userAddress', } -export type TokenSnapshot = { - __typename?: 'TokenSnapshot'; +export type Token = { + __typename?: 'Token'; + address: Scalars['String']; + decimals: Scalars['Int']; + fxOracleDecimals?: Maybe; id: Scalars['ID']; - timestamp: Scalars['Int']; - token: Token; + latestFXPrice?: Maybe; + name?: Maybe; + pool?: Maybe; + symbol?: Maybe; totalBalanceNotional: Scalars['BigDecimal']; - totalBalanceUSD: Scalars['BigDecimal']; - totalSwapCount: Scalars['BigInt']; - totalVolumeNotional: Scalars['BigDecimal']; - totalVolumeUSD: Scalars['BigDecimal']; -}; - -export type TokenSnapshot_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - token?: InputMaybe; - token_?: InputMaybe; - token_contains?: InputMaybe; - token_contains_nocase?: InputMaybe; - token_ends_with?: InputMaybe; - token_ends_with_nocase?: InputMaybe; - token_gt?: InputMaybe; - token_gte?: InputMaybe; - token_in?: InputMaybe>; - token_lt?: InputMaybe; - token_lte?: InputMaybe; - token_not?: InputMaybe; - token_not_contains?: InputMaybe; - token_not_contains_nocase?: InputMaybe; - token_not_ends_with?: InputMaybe; - token_not_ends_with_nocase?: InputMaybe; - token_not_in?: InputMaybe>; - token_not_starts_with?: InputMaybe; - token_not_starts_with_nocase?: InputMaybe; - token_starts_with?: InputMaybe; - token_starts_with_nocase?: InputMaybe; - totalBalanceNotional?: InputMaybe; - totalBalanceNotional_gt?: InputMaybe; - totalBalanceNotional_gte?: InputMaybe; - totalBalanceNotional_in?: InputMaybe>; - totalBalanceNotional_lt?: InputMaybe; - totalBalanceNotional_lte?: InputMaybe; - totalBalanceNotional_not?: InputMaybe; - totalBalanceNotional_not_in?: InputMaybe>; - totalBalanceUSD?: InputMaybe; - totalBalanceUSD_gt?: InputMaybe; - totalBalanceUSD_gte?: InputMaybe; - totalBalanceUSD_in?: InputMaybe>; - totalBalanceUSD_lt?: InputMaybe; - totalBalanceUSD_lte?: InputMaybe; - totalBalanceUSD_not?: InputMaybe; - totalBalanceUSD_not_in?: InputMaybe>; - totalSwapCount?: InputMaybe; - totalSwapCount_gt?: InputMaybe; - totalSwapCount_gte?: InputMaybe; - totalSwapCount_in?: InputMaybe>; - totalSwapCount_lt?: InputMaybe; - totalSwapCount_lte?: InputMaybe; - totalSwapCount_not?: InputMaybe; - totalSwapCount_not_in?: InputMaybe>; - totalVolumeNotional?: InputMaybe; - totalVolumeNotional_gt?: InputMaybe; - totalVolumeNotional_gte?: InputMaybe; - totalVolumeNotional_in?: InputMaybe>; - totalVolumeNotional_lt?: InputMaybe; - totalVolumeNotional_lte?: InputMaybe; - totalVolumeNotional_not?: InputMaybe; - totalVolumeNotional_not_in?: InputMaybe>; - totalVolumeUSD?: InputMaybe; - totalVolumeUSD_gt?: InputMaybe; - totalVolumeUSD_gte?: InputMaybe; - totalVolumeUSD_in?: InputMaybe>; - totalVolumeUSD_lt?: InputMaybe; - totalVolumeUSD_lte?: InputMaybe; - totalVolumeUSD_not?: InputMaybe; - totalVolumeUSD_not_in?: InputMaybe>; }; -export enum TokenSnapshot_OrderBy { - Id = 'id', - Timestamp = 'timestamp', - Token = 'token', - TokenAddress = 'token__address', - TokenDecimals = 'token__decimals', - TokenFxOracleDecimals = 'token__fxOracleDecimals', - TokenId = 'token__id', - TokenLatestFxPrice = 'token__latestFXPrice', - TokenLatestUsdPrice = 'token__latestUSDPrice', - TokenLatestUsdPriceTimestamp = 'token__latestUSDPriceTimestamp', - TokenName = 'token__name', - TokenSymbol = 'token__symbol', - TokenTotalBalanceNotional = 'token__totalBalanceNotional', - TokenTotalBalanceUsd = 'token__totalBalanceUSD', - TokenTotalSwapCount = 'token__totalSwapCount', - TokenTotalVolumeNotional = 'token__totalVolumeNotional', - TokenTotalVolumeUsd = 'token__totalVolumeUSD', - TotalBalanceNotional = 'totalBalanceNotional', - TotalBalanceUsd = 'totalBalanceUSD', - TotalSwapCount = 'totalSwapCount', - TotalVolumeNotional = 'totalVolumeNotional', - TotalVolumeUsd = 'totalVolumeUSD', -} - export type Token_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; @@ -4773,43 +2617,6 @@ export type Token_Filter = { latestFXPrice_lte?: InputMaybe; latestFXPrice_not?: InputMaybe; latestFXPrice_not_in?: InputMaybe>; - latestPrice?: InputMaybe; - latestPrice_?: InputMaybe; - latestPrice_contains?: InputMaybe; - latestPrice_contains_nocase?: InputMaybe; - latestPrice_ends_with?: InputMaybe; - latestPrice_ends_with_nocase?: InputMaybe; - latestPrice_gt?: InputMaybe; - latestPrice_gte?: InputMaybe; - latestPrice_in?: InputMaybe>; - latestPrice_lt?: InputMaybe; - latestPrice_lte?: InputMaybe; - latestPrice_not?: InputMaybe; - latestPrice_not_contains?: InputMaybe; - latestPrice_not_contains_nocase?: InputMaybe; - latestPrice_not_ends_with?: InputMaybe; - latestPrice_not_ends_with_nocase?: InputMaybe; - latestPrice_not_in?: InputMaybe>; - latestPrice_not_starts_with?: InputMaybe; - latestPrice_not_starts_with_nocase?: InputMaybe; - latestPrice_starts_with?: InputMaybe; - latestPrice_starts_with_nocase?: InputMaybe; - latestUSDPrice?: InputMaybe; - latestUSDPriceTimestamp?: InputMaybe; - latestUSDPriceTimestamp_gt?: InputMaybe; - latestUSDPriceTimestamp_gte?: InputMaybe; - latestUSDPriceTimestamp_in?: InputMaybe>; - latestUSDPriceTimestamp_lt?: InputMaybe; - latestUSDPriceTimestamp_lte?: InputMaybe; - latestUSDPriceTimestamp_not?: InputMaybe; - latestUSDPriceTimestamp_not_in?: InputMaybe>; - latestUSDPrice_gt?: InputMaybe; - latestUSDPrice_gte?: InputMaybe; - latestUSDPrice_in?: InputMaybe>; - latestUSDPrice_lt?: InputMaybe; - latestUSDPrice_lte?: InputMaybe; - latestUSDPrice_not?: InputMaybe; - latestUSDPrice_not_in?: InputMaybe>; name?: InputMaybe; name_contains?: InputMaybe; name_contains_nocase?: InputMaybe; @@ -4880,38 +2687,6 @@ export type Token_Filter = { totalBalanceNotional_lte?: InputMaybe; totalBalanceNotional_not?: InputMaybe; totalBalanceNotional_not_in?: InputMaybe>; - totalBalanceUSD?: InputMaybe; - totalBalanceUSD_gt?: InputMaybe; - totalBalanceUSD_gte?: InputMaybe; - totalBalanceUSD_in?: InputMaybe>; - totalBalanceUSD_lt?: InputMaybe; - totalBalanceUSD_lte?: InputMaybe; - totalBalanceUSD_not?: InputMaybe; - totalBalanceUSD_not_in?: InputMaybe>; - totalSwapCount?: InputMaybe; - totalSwapCount_gt?: InputMaybe; - totalSwapCount_gte?: InputMaybe; - totalSwapCount_in?: InputMaybe>; - totalSwapCount_lt?: InputMaybe; - totalSwapCount_lte?: InputMaybe; - totalSwapCount_not?: InputMaybe; - totalSwapCount_not_in?: InputMaybe>; - totalVolumeNotional?: InputMaybe; - totalVolumeNotional_gt?: InputMaybe; - totalVolumeNotional_gte?: InputMaybe; - totalVolumeNotional_in?: InputMaybe>; - totalVolumeNotional_lt?: InputMaybe; - totalVolumeNotional_lte?: InputMaybe; - totalVolumeNotional_not?: InputMaybe; - totalVolumeNotional_not_in?: InputMaybe>; - totalVolumeUSD?: InputMaybe; - totalVolumeUSD_gt?: InputMaybe; - totalVolumeUSD_gte?: InputMaybe; - totalVolumeUSD_in?: InputMaybe>; - totalVolumeUSD_lt?: InputMaybe; - totalVolumeUSD_lte?: InputMaybe; - totalVolumeUSD_not?: InputMaybe; - totalVolumeUSD_not_in?: InputMaybe>; }; export enum Token_OrderBy { @@ -4920,14 +2695,6 @@ export enum Token_OrderBy { FxOracleDecimals = 'fxOracleDecimals', Id = 'id', LatestFxPrice = 'latestFXPrice', - LatestPrice = 'latestPrice', - LatestPriceAsset = 'latestPrice__asset', - LatestPriceBlock = 'latestPrice__block', - LatestPriceId = 'latestPrice__id', - LatestPricePrice = 'latestPrice__price', - LatestPricePricingAsset = 'latestPrice__pricingAsset', - LatestUsdPrice = 'latestUSDPrice', - LatestUsdPriceTimestamp = 'latestUSDPriceTimestamp', Name = 'name', Pool = 'pool', PoolAddress = 'pool__address', @@ -4981,13 +2748,8 @@ export enum Token_OrderBy { PoolTauBetaX = 'pool__tauBetaX', PoolTauBetaY = 'pool__tauBetaY', PoolTotalAumFeeCollectedInBpt = 'pool__totalAumFeeCollectedInBPT', - PoolTotalLiquidity = 'pool__totalLiquidity', - PoolTotalLiquiditySansBpt = 'pool__totalLiquiditySansBPT', - PoolTotalProtocolFee = 'pool__totalProtocolFee', PoolTotalProtocolFeePaidInBpt = 'pool__totalProtocolFeePaidInBPT', PoolTotalShares = 'pool__totalShares', - PoolTotalSwapFee = 'pool__totalSwapFee', - PoolTotalSwapVolume = 'pool__totalSwapVolume', PoolTotalWeight = 'pool__totalWeight', PoolTx = 'pool__tx', PoolU = 'pool__u', @@ -4999,373 +2761,6 @@ export enum Token_OrderBy { PoolZ = 'pool__z', Symbol = 'symbol', TotalBalanceNotional = 'totalBalanceNotional', - TotalBalanceUsd = 'totalBalanceUSD', - TotalSwapCount = 'totalSwapCount', - TotalVolumeNotional = 'totalVolumeNotional', - TotalVolumeUsd = 'totalVolumeUSD', -} - -export type TradePair = { - __typename?: 'TradePair'; - /** Token Address - Token Address */ - id: Scalars['ID']; - token0: Token; - token1: Token; - totalSwapFee: Scalars['BigDecimal']; - totalSwapVolume: Scalars['BigDecimal']; -}; - -export type TradePairSnapshot = { - __typename?: 'TradePairSnapshot'; - id: Scalars['ID']; - pair: TradePair; - timestamp: Scalars['Int']; - totalSwapFee: Scalars['BigDecimal']; - totalSwapVolume: Scalars['BigDecimal']; -}; - -export type TradePairSnapshot_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - pair?: InputMaybe; - pair_?: InputMaybe; - pair_contains?: InputMaybe; - pair_contains_nocase?: InputMaybe; - pair_ends_with?: InputMaybe; - pair_ends_with_nocase?: InputMaybe; - pair_gt?: InputMaybe; - pair_gte?: InputMaybe; - pair_in?: InputMaybe>; - pair_lt?: InputMaybe; - pair_lte?: InputMaybe; - pair_not?: InputMaybe; - pair_not_contains?: InputMaybe; - pair_not_contains_nocase?: InputMaybe; - pair_not_ends_with?: InputMaybe; - pair_not_ends_with_nocase?: InputMaybe; - pair_not_in?: InputMaybe>; - pair_not_starts_with?: InputMaybe; - pair_not_starts_with_nocase?: InputMaybe; - pair_starts_with?: InputMaybe; - pair_starts_with_nocase?: InputMaybe; - timestamp?: InputMaybe; - timestamp_gt?: InputMaybe; - timestamp_gte?: InputMaybe; - timestamp_in?: InputMaybe>; - timestamp_lt?: InputMaybe; - timestamp_lte?: InputMaybe; - timestamp_not?: InputMaybe; - timestamp_not_in?: InputMaybe>; - totalSwapFee?: InputMaybe; - totalSwapFee_gt?: InputMaybe; - totalSwapFee_gte?: InputMaybe; - totalSwapFee_in?: InputMaybe>; - totalSwapFee_lt?: InputMaybe; - totalSwapFee_lte?: InputMaybe; - totalSwapFee_not?: InputMaybe; - totalSwapFee_not_in?: InputMaybe>; - totalSwapVolume?: InputMaybe; - totalSwapVolume_gt?: InputMaybe; - totalSwapVolume_gte?: InputMaybe; - totalSwapVolume_in?: InputMaybe>; - totalSwapVolume_lt?: InputMaybe; - totalSwapVolume_lte?: InputMaybe; - totalSwapVolume_not?: InputMaybe; - totalSwapVolume_not_in?: InputMaybe>; -}; - -export enum TradePairSnapshot_OrderBy { - Id = 'id', - Pair = 'pair', - PairId = 'pair__id', - PairTotalSwapFee = 'pair__totalSwapFee', - PairTotalSwapVolume = 'pair__totalSwapVolume', - Timestamp = 'timestamp', - TotalSwapFee = 'totalSwapFee', - TotalSwapVolume = 'totalSwapVolume', -} - -export type TradePair_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - token0?: InputMaybe; - token0_?: InputMaybe; - token0_contains?: InputMaybe; - token0_contains_nocase?: InputMaybe; - token0_ends_with?: InputMaybe; - token0_ends_with_nocase?: InputMaybe; - token0_gt?: InputMaybe; - token0_gte?: InputMaybe; - token0_in?: InputMaybe>; - token0_lt?: InputMaybe; - token0_lte?: InputMaybe; - token0_not?: InputMaybe; - token0_not_contains?: InputMaybe; - token0_not_contains_nocase?: InputMaybe; - token0_not_ends_with?: InputMaybe; - token0_not_ends_with_nocase?: InputMaybe; - token0_not_in?: InputMaybe>; - token0_not_starts_with?: InputMaybe; - token0_not_starts_with_nocase?: InputMaybe; - token0_starts_with?: InputMaybe; - token0_starts_with_nocase?: InputMaybe; - token1?: InputMaybe; - token1_?: InputMaybe; - token1_contains?: InputMaybe; - token1_contains_nocase?: InputMaybe; - token1_ends_with?: InputMaybe; - token1_ends_with_nocase?: InputMaybe; - token1_gt?: InputMaybe; - token1_gte?: InputMaybe; - token1_in?: InputMaybe>; - token1_lt?: InputMaybe; - token1_lte?: InputMaybe; - token1_not?: InputMaybe; - token1_not_contains?: InputMaybe; - token1_not_contains_nocase?: InputMaybe; - token1_not_ends_with?: InputMaybe; - token1_not_ends_with_nocase?: InputMaybe; - token1_not_in?: InputMaybe>; - token1_not_starts_with?: InputMaybe; - token1_not_starts_with_nocase?: InputMaybe; - token1_starts_with?: InputMaybe; - token1_starts_with_nocase?: InputMaybe; - totalSwapFee?: InputMaybe; - totalSwapFee_gt?: InputMaybe; - totalSwapFee_gte?: InputMaybe; - totalSwapFee_in?: InputMaybe>; - totalSwapFee_lt?: InputMaybe; - totalSwapFee_lte?: InputMaybe; - totalSwapFee_not?: InputMaybe; - totalSwapFee_not_in?: InputMaybe>; - totalSwapVolume?: InputMaybe; - totalSwapVolume_gt?: InputMaybe; - totalSwapVolume_gte?: InputMaybe; - totalSwapVolume_in?: InputMaybe>; - totalSwapVolume_lt?: InputMaybe; - totalSwapVolume_lte?: InputMaybe; - totalSwapVolume_not?: InputMaybe; - totalSwapVolume_not_in?: InputMaybe>; -}; - -export enum TradePair_OrderBy { - Id = 'id', - Token0 = 'token0', - Token0Address = 'token0__address', - Token0Decimals = 'token0__decimals', - Token0FxOracleDecimals = 'token0__fxOracleDecimals', - Token0Id = 'token0__id', - Token0LatestFxPrice = 'token0__latestFXPrice', - Token0LatestUsdPrice = 'token0__latestUSDPrice', - Token0LatestUsdPriceTimestamp = 'token0__latestUSDPriceTimestamp', - Token0Name = 'token0__name', - Token0Symbol = 'token0__symbol', - Token0TotalBalanceNotional = 'token0__totalBalanceNotional', - Token0TotalBalanceUsd = 'token0__totalBalanceUSD', - Token0TotalSwapCount = 'token0__totalSwapCount', - Token0TotalVolumeNotional = 'token0__totalVolumeNotional', - Token0TotalVolumeUsd = 'token0__totalVolumeUSD', - Token1 = 'token1', - Token1Address = 'token1__address', - Token1Decimals = 'token1__decimals', - Token1FxOracleDecimals = 'token1__fxOracleDecimals', - Token1Id = 'token1__id', - Token1LatestFxPrice = 'token1__latestFXPrice', - Token1LatestUsdPrice = 'token1__latestUSDPrice', - Token1LatestUsdPriceTimestamp = 'token1__latestUSDPriceTimestamp', - Token1Name = 'token1__name', - Token1Symbol = 'token1__symbol', - Token1TotalBalanceNotional = 'token1__totalBalanceNotional', - Token1TotalBalanceUsd = 'token1__totalBalanceUSD', - Token1TotalSwapCount = 'token1__totalSwapCount', - Token1TotalVolumeNotional = 'token1__totalVolumeNotional', - Token1TotalVolumeUsd = 'token1__totalVolumeUSD', - TotalSwapFee = 'totalSwapFee', - TotalSwapVolume = 'totalSwapVolume', -} - -export type User = { - __typename?: 'User'; - id: Scalars['ID']; - sharesOwned?: Maybe>; - swaps?: Maybe>; - userInternalBalances?: Maybe>; -}; - -export type UserSharesOwnedArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - -export type UserSwapsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - -export type UserUserInternalBalancesArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - -export type UserInternalBalance = { - __typename?: 'UserInternalBalance'; - balance: Scalars['BigDecimal']; - id: Scalars['ID']; - token: Scalars['Bytes']; - tokenInfo?: Maybe; - userAddress?: Maybe; -}; - -export type UserInternalBalance_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - balance?: InputMaybe; - balance_gt?: InputMaybe; - balance_gte?: InputMaybe; - balance_in?: InputMaybe>; - balance_lt?: InputMaybe; - balance_lte?: InputMaybe; - balance_not?: InputMaybe; - balance_not_in?: InputMaybe>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - token?: InputMaybe; - tokenInfo?: InputMaybe; - tokenInfo_?: InputMaybe; - tokenInfo_contains?: InputMaybe; - tokenInfo_contains_nocase?: InputMaybe; - tokenInfo_ends_with?: InputMaybe; - tokenInfo_ends_with_nocase?: InputMaybe; - tokenInfo_gt?: InputMaybe; - tokenInfo_gte?: InputMaybe; - tokenInfo_in?: InputMaybe>; - tokenInfo_lt?: InputMaybe; - tokenInfo_lte?: InputMaybe; - tokenInfo_not?: InputMaybe; - tokenInfo_not_contains?: InputMaybe; - tokenInfo_not_contains_nocase?: InputMaybe; - tokenInfo_not_ends_with?: InputMaybe; - tokenInfo_not_ends_with_nocase?: InputMaybe; - tokenInfo_not_in?: InputMaybe>; - tokenInfo_not_starts_with?: InputMaybe; - tokenInfo_not_starts_with_nocase?: InputMaybe; - tokenInfo_starts_with?: InputMaybe; - tokenInfo_starts_with_nocase?: InputMaybe; - token_contains?: InputMaybe; - token_gt?: InputMaybe; - token_gte?: InputMaybe; - token_in?: InputMaybe>; - token_lt?: InputMaybe; - token_lte?: InputMaybe; - token_not?: InputMaybe; - token_not_contains?: InputMaybe; - token_not_in?: InputMaybe>; - userAddress?: InputMaybe; - userAddress_?: InputMaybe; - userAddress_contains?: InputMaybe; - userAddress_contains_nocase?: InputMaybe; - userAddress_ends_with?: InputMaybe; - userAddress_ends_with_nocase?: InputMaybe; - userAddress_gt?: InputMaybe; - userAddress_gte?: InputMaybe; - userAddress_in?: InputMaybe>; - userAddress_lt?: InputMaybe; - userAddress_lte?: InputMaybe; - userAddress_not?: InputMaybe; - userAddress_not_contains?: InputMaybe; - userAddress_not_contains_nocase?: InputMaybe; - userAddress_not_ends_with?: InputMaybe; - userAddress_not_ends_with_nocase?: InputMaybe; - userAddress_not_in?: InputMaybe>; - userAddress_not_starts_with?: InputMaybe; - userAddress_not_starts_with_nocase?: InputMaybe; - userAddress_starts_with?: InputMaybe; - userAddress_starts_with_nocase?: InputMaybe; -}; - -export enum UserInternalBalance_OrderBy { - Balance = 'balance', - Id = 'id', - Token = 'token', - TokenInfo = 'tokenInfo', - TokenInfoAddress = 'tokenInfo__address', - TokenInfoDecimals = 'tokenInfo__decimals', - TokenInfoFxOracleDecimals = 'tokenInfo__fxOracleDecimals', - TokenInfoId = 'tokenInfo__id', - TokenInfoLatestFxPrice = 'tokenInfo__latestFXPrice', - TokenInfoLatestUsdPrice = 'tokenInfo__latestUSDPrice', - TokenInfoLatestUsdPriceTimestamp = 'tokenInfo__latestUSDPriceTimestamp', - TokenInfoName = 'tokenInfo__name', - TokenInfoSymbol = 'tokenInfo__symbol', - TokenInfoTotalBalanceNotional = 'tokenInfo__totalBalanceNotional', - TokenInfoTotalBalanceUsd = 'tokenInfo__totalBalanceUSD', - TokenInfoTotalSwapCount = 'tokenInfo__totalSwapCount', - TokenInfoTotalVolumeNotional = 'tokenInfo__totalVolumeNotional', - TokenInfoTotalVolumeUsd = 'tokenInfo__totalVolumeUSD', - UserAddress = 'userAddress', - UserAddressId = 'userAddress__id', -} - -export type User_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - id?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - sharesOwned_?: InputMaybe; - swaps_?: InputMaybe; - userInternalBalances_?: InputMaybe; -}; - -export enum User_OrderBy { - Id = 'id', - SharesOwned = 'sharesOwned', - Swaps = 'swaps', - UserInternalBalances = 'userInternalBalances', } export type _Block_ = { @@ -5388,6 +2783,7 @@ export type _Meta_ = { * will be null if the _meta field has a block constraint that asks for * a block number. It will be filled if the _meta field has no block constraint * and therefore asks for the latest block + * */ block: _Block_; /** The deployment ID */ @@ -5438,10 +2834,6 @@ export type BalancerPoolFragment = { symbol?: string | null; name?: string | null; swapFee: string; - totalWeight?: string | null; - totalSwapVolume: string; - totalSwapFee: string; - totalLiquidity: string; totalShares: string; swapsCount: string; holdersCount: string; @@ -5494,7 +2886,7 @@ export type BalancerPoolFragment = { weight?: string | null; priceRate: string; isExemptFromYieldProtocolFee?: boolean | null; - index?: number | null; + index: number; token: { __typename?: 'Token'; latestFXPrice?: string | null }; }> | null; }; @@ -5510,7 +2902,7 @@ export type BalancerPoolTokenFragment = { weight?: string | null; priceRate: string; isExemptFromYieldProtocolFee?: boolean | null; - index?: number | null; + index: number; token: { __typename?: 'Token'; latestFXPrice?: string | null }; }; @@ -5534,10 +2926,6 @@ export type BalancerPoolsQuery = { symbol?: string | null; name?: string | null; swapFee: string; - totalWeight?: string | null; - totalSwapVolume: string; - totalSwapFee: string; - totalLiquidity: string; totalShares: string; swapsCount: string; holdersCount: string; @@ -5590,7 +2978,7 @@ export type BalancerPoolsQuery = { weight?: string | null; priceRate: string; isExemptFromYieldProtocolFee?: boolean | null; - index?: number | null; + index: number; token: { __typename?: 'Token'; latestFXPrice?: string | null }; }> | null; }>; @@ -5612,10 +3000,6 @@ export type BalancerPoolQuery = { symbol?: string | null; name?: string | null; swapFee: string; - totalWeight?: string | null; - totalSwapVolume: string; - totalSwapFee: string; - totalLiquidity: string; totalShares: string; swapsCount: string; holdersCount: string; @@ -5668,52 +3052,12 @@ export type BalancerPoolQuery = { weight?: string | null; priceRate: string; isExemptFromYieldProtocolFee?: boolean | null; - index?: number | null; + index: number; token: { __typename?: 'Token'; latestFXPrice?: string | null }; }> | null; } | null; }; -export type BalancerPoolSnapshotsQueryVariables = Exact<{ - skip?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - where?: InputMaybe; - block?: InputMaybe; -}>; - -export type BalancerPoolSnapshotsQuery = { - __typename?: 'Query'; - poolSnapshots: Array<{ - __typename?: 'PoolSnapshot'; - id: string; - amounts: Array; - totalShares: string; - swapVolume: string; - swapFees: string; - timestamp: number; - liquidity: string; - swapsCount: string; - holdersCount: string; - pool: { __typename?: 'Pool'; id: string }; - }>; -}; - -export type BalancerPoolSnapshotFragment = { - __typename?: 'PoolSnapshot'; - id: string; - amounts: Array; - totalShares: string; - swapVolume: string; - swapFees: string; - timestamp: number; - liquidity: string; - swapsCount: string; - holdersCount: string; - pool: { __typename?: 'Pool'; id: string }; -}; - export type BalancerJoinExitsQueryVariables = Exact<{ skip?: InputMaybe; first?: InputMaybe; @@ -5734,7 +3078,6 @@ export type BalancerJoinExitsQuery = { timestamp: number; tx: string; type: InvestType; - valueUSD?: string | null; pool: { __typename?: 'Pool'; id: string; tokensList: Array }; }>; }; @@ -5748,7 +3091,6 @@ export type BalancerJoinExitFragment = { timestamp: number; tx: string; type: InvestType; - valueUSD?: string | null; pool: { __typename?: 'Pool'; id: string; tokensList: Array }; }; @@ -5773,9 +3115,9 @@ export type BalancerSwapsQuery = { tokenOutSym: string; tokenAmountIn: string; tokenAmountOut: string; + userAddress: string; timestamp: number; tx: string; - valueUSD: string; block?: string | null; poolId: { __typename?: 'Pool'; @@ -5787,7 +3129,6 @@ export type BalancerSwapsQuery = { token: { __typename?: 'Token'; address: string; latestFXPrice?: string | null }; }> | null; }; - userAddress: { __typename?: 'User'; id: string }; }>; }; @@ -5801,9 +3142,9 @@ export type BalancerSwapFragment = { tokenOutSym: string; tokenAmountIn: string; tokenAmountOut: string; + userAddress: string | { id: string }; timestamp: number; tx: string; - valueUSD: string; block?: string | null; poolId: { __typename?: 'Pool'; @@ -5815,7 +3156,6 @@ export type BalancerSwapFragment = { token: { __typename?: 'Token'; address: string; latestFXPrice?: string | null }; }> | null; }; - userAddress: { __typename?: 'User'; id: string }; }; export type BalancerGetPoolsWithActiveUpdatesQueryVariables = Exact<{ @@ -5825,7 +3165,6 @@ export type BalancerGetPoolsWithActiveUpdatesQueryVariables = Exact<{ export type BalancerGetPoolsWithActiveUpdatesQuery = { __typename?: 'Query'; ampUpdates: Array<{ __typename?: 'AmpUpdate'; poolId: { __typename?: 'Pool'; id: string } }>; - gradualWeightUpdates: Array<{ __typename?: 'GradualWeightUpdate'; poolId: { __typename?: 'Pool'; id: string } }>; }; export type BalancerGetMetaQueryVariables = Exact<{ [key: string]: never }>; @@ -5915,10 +3254,6 @@ export const BalancerPoolFragmentDoc = gql` symbol name swapFee - totalWeight - totalSwapVolume - totalSwapFee - totalLiquidity totalShares swapsCount holdersCount @@ -5967,22 +3302,6 @@ export const BalancerPoolFragmentDoc = gql` } ${BalancerPoolTokenFragmentDoc} `; -export const BalancerPoolSnapshotFragmentDoc = gql` - fragment BalancerPoolSnapshot on PoolSnapshot { - id - pool { - id - } - amounts - totalShares - swapVolume - swapFees - timestamp - liquidity - swapsCount - holdersCount - } -`; export const BalancerJoinExitFragmentDoc = gql` fragment BalancerJoinExit on JoinExit { amounts @@ -5996,7 +3315,6 @@ export const BalancerJoinExitFragmentDoc = gql` id tokensList } - valueUSD } `; export const BalancerSwapFragmentDoc = gql` @@ -6020,12 +3338,9 @@ export const BalancerSwapFragmentDoc = gql` } } } - userAddress { - id - } + userAddress timestamp tx - valueUSD block } `; @@ -6094,28 +3409,6 @@ export const BalancerPoolDocument = gql` } ${BalancerPoolFragmentDoc} `; -export const BalancerPoolSnapshotsDocument = gql` - query BalancerPoolSnapshots( - $skip: Int - $first: Int - $orderBy: PoolSnapshot_orderBy - $orderDirection: OrderDirection - $where: PoolSnapshot_filter - $block: Block_height - ) { - poolSnapshots( - skip: $skip - first: $first - orderBy: $orderBy - orderDirection: $orderDirection - where: $where - block: $block - ) { - ...BalancerPoolSnapshot - } - } - ${BalancerPoolSnapshotFragmentDoc} -`; export const BalancerJoinExitsDocument = gql` query BalancerJoinExits( $skip: Int @@ -6167,11 +3460,6 @@ export const BalancerGetPoolsWithActiveUpdatesDocument = gql` id } } - gradualWeightUpdates(where: { endTimestamp_gte: $timestamp }) { - poolId { - id - } - } } `; export const BalancerGetMetaDocument = gql` @@ -6260,20 +3548,6 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper = 'query', ); }, - BalancerPoolSnapshots( - variables?: BalancerPoolSnapshotsQueryVariables, - requestHeaders?: Dom.RequestInit['headers'], - ): Promise { - return withWrapper( - (wrappedRequestHeaders) => - client.request(BalancerPoolSnapshotsDocument, variables, { - ...requestHeaders, - ...wrappedRequestHeaders, - }), - 'BalancerPoolSnapshots', - 'query', - ); - }, BalancerJoinExits( variables?: BalancerJoinExitsQueryVariables, requestHeaders?: Dom.RequestInit['headers'], diff --git a/modules/subgraphs/beets-bar-subgraph/generated/beets-bar-subgraph-types.ts b/modules/subgraphs/beets-bar-subgraph/generated/beets-bar-subgraph-types.ts index 9e54b9bc5..3c382f76c 100644 --- a/modules/subgraphs/beets-bar-subgraph/generated/beets-bar-subgraph-types.ts +++ b/modules/subgraphs/beets-bar-subgraph/generated/beets-bar-subgraph-types.ts @@ -433,7 +433,6 @@ export type _Meta_ = { * will be null if the _meta field has a block constraint that asks for * a block number. It will be filled if the _meta field has no block constraint * and therefore asks for the latest block - * */ block: _Block_; /** The deployment ID */