diff --git a/packages/constants/src/addresses.ts b/packages/constants/src/addresses.ts index c65e609..4bf1e29 100644 --- a/packages/constants/src/addresses.ts +++ b/packages/constants/src/addresses.ts @@ -117,3 +117,10 @@ export const NFTX_FEE_DISTRIBUTOR = { [Network.Sepolia]: a('0x66EF5B4b6ee05639194844CE4867515665F14fED'), [Network.Arbitrum]: a('0x0d50970C7848ebbE52661e70057D7D063B7de886'), }; + +/** A list of old fee distributors that are no longer active (but useful for historical data) */ +export const NFTX_FEE_DISTRIBUTOR_LEGACY = { + [Network.Mainnet]: [a('0x6845fF5f102bEF9D785468F0bEb535b4687406E7')], + [Network.Sepolia]: [], + [Network.Arbitrum]: [], +}; diff --git a/packages/constants/src/subgraph.ts b/packages/constants/src/subgraph.ts index f927060..d9b6a09 100644 --- a/packages/constants/src/subgraph.ts +++ b/packages/constants/src/subgraph.ts @@ -1,18 +1,7 @@ import { Network } from './networks'; -const SHARED_PATH = 'subgraphs/name'; - -const SHARED_HOST = 'https://api.thegraph.com'; -const PROXY_HOST = 'https://graph-proxy.nftx.xyz'; - -const SHARED_PROXY_NAME = 'shared'; - -const SHARED_ROOT = `${SHARED_HOST}/${SHARED_PATH}`; - -const SHARED_PROXY_ROOT = `${PROXY_HOST}/${SHARED_PROXY_NAME}/${SHARED_PATH}`; - export const NON_STANDARD_SUBGRAPH = { - [Network.Mainnet]: `${SHARED_PROXY_ROOT}/0xorg/non-standard-nfts`, + [Network.Mainnet]: `https://graph-proxy.nftx.xyz/shared/subgraphs/name/0xorg/non-standard-nfts`, }; export const ERC721_SUBGRAPH = { @@ -44,9 +33,9 @@ export const NFTX_SUBGRAPH = { export const NFTX_UNISWAP_SUBGRAPH = { [Network.Mainnet]: - 'https://graph-proxy.nftx.xyz/nftx-indexer/subgraphs/id/QmTqJsUzqsmSzkvDeSGDmGYCcVu8v3Tr3j3MqNsTZvVCMm', + 'https://query.graph.nftx.xyz/subgraphs/id/QmXavb61qVUrfYe7daW47n77LhinFgSoMhWVkMfgEdUspS', [Network.Sepolia]: - 'https://api.thegraph.com/subgraphs/name/nftx-project/nftx-v3-amm-sepolia', + 'https://api.thegraph.com/subgraphs/name/gundamdweeb/nftx-univ3-sepolia', [Network.Arbitrum]: - 'https://api.thegraph.com/subgraphs/name/nftx-project/nftx-v3-amm-arbitrum', + 'https://query.graph.nftx.xyz/subgraphs/id/QmaTrSbtkkCeJW5fhbsm1BoEZm31zEE9HtCP5BEjfeGLMT', }; diff --git a/packages/core/src/pools/fetchLiquidityPools/__tests__/calculateAprs.test.ts b/packages/core/src/pools/fetchLiquidityPools/__tests__/calculateAprs.test.ts index 73320b3..ada5f67 100644 --- a/packages/core/src/pools/fetchLiquidityPools/__tests__/calculateAprs.test.ts +++ b/packages/core/src/pools/fetchLiquidityPools/__tests__/calculateAprs.test.ts @@ -25,20 +25,16 @@ beforeEach(() => { createdAt = oneMonthAgo; dailySnapshots = [ { - dailyTotalRevenueETH: '0.01', - inputTokenBalances: [ - parseEther('10').toString(), - parseEther('5').toString(), - ], - timestamp: `${now - ONE_DAY * 2}`, + feesETH: '0.01', + totalValueLockedToken0: '10', + totalValueLockedToken1: '5', + date: now - ONE_DAY * 2, }, { - dailyTotalRevenueETH: '0.02', - inputTokenBalances: [ - parseEther('10').toString(), - parseEther('5').toString(), - ], - timestamp: `${now - ONE_DAY * 3}`, + feesETH: '0.02', + totalValueLockedToken0: '10', + totalValueLockedToken1: '5', + date: now - ONE_DAY * 3, }, ]; vaultFeeReceipts = [ diff --git a/packages/core/src/pools/fetchLiquidityPools/__tests__/fetchPoolSet.test.ts b/packages/core/src/pools/fetchLiquidityPools/__tests__/fetchPoolSet.test.ts index 2a6ddf0..cf5e3f4 100644 --- a/packages/core/src/pools/fetchLiquidityPools/__tests__/fetchPoolSet.test.ts +++ b/packages/core/src/pools/fetchLiquidityPools/__tests__/fetchPoolSet.test.ts @@ -1,75 +1,90 @@ import { WETH_TOKEN, WeiPerEther } from '@nftx/constants'; import { makeFetchPoolsSet } from '../fetchPoolsSet'; import { getChainConstant } from '@nftx/utils'; +import { NftxV3Uniswap } from '@nftx/types'; import { formatEther } from 'viem'; -let poolData: any; +let poolData: { pools: NftxV3Uniswap.Pool[] }; let queryPoolData: jest.Mock; let fetchPoolsSet: ReturnType; let args: Parameters[0]; let run: () => ReturnType; beforeEach(() => { + const _pool = {} as NftxV3Uniswap.Pool; + const _token = {} as NftxV3Uniswap.Token; + const _poolHourData = {} as NftxV3Uniswap.PoolHourData; + const _poolDayData = {} as NftxV3Uniswap.PoolDayData; + poolData = { - liquidityPools: [ + pools: [ { + ..._pool, id: '0x', name: '0x', - tick: 0, + tick: '0', totalLiquidity: `${WeiPerEther * 3n}`, - activeLiquidity: `${WeiPerEther * 2n}`, - inputTokenBalances: [ - WeiPerEther.toString(), - (WeiPerEther * 2n).toString(), - ], + liquidity: `${WeiPerEther * 2n}`, + totalValueLockedToken0: '1', + totalValueLockedToken1: '2', totalValueLockedETH: '0', openPositionCount: 0, - createdTimestamp: 0, + createdAtTimestamp: '0', fees: [ { id: '0x', - feePercentage: 0, - feeType: 'FIXED_LP_FEE', + feePercentage: '0', + feeType: 'FIXED_LP_FEE' as NftxV3Uniswap.PoolFeeType, }, { id: '0x', - feePercentage: 0, - feeType: 'FIXED_PROTOCOL_FEE', + feePercentage: '0', + feeType: 'FIXED_PROTOCOL_FEE' as NftxV3Uniswap.PoolFeeType, }, { id: '0x', - feePercentage: 0.3, - feeType: 'FIXED_TRADING_FEE', + feePercentage: '0.3', + feeType: 'FIXED_TRADING_FEE' as NftxV3Uniswap.PoolFeeType, }, ], + token0: { ..._token, id: '0x', symbol: '0x', name: '0x' }, + token1: { + ..._token, + id: getChainConstant(WETH_TOKEN, 1), + symbol: 'WETH', + name: 'Wrapped Ether', + }, inputTokens: [ + { ..._token, id: '0x', symbol: '0x', name: '0x' }, { - id: '0x', - symbol: '0x', - name: '0x', - }, - { + ..._token, id: getChainConstant(WETH_TOKEN, 1), symbol: 'WETH', name: 'Wrapped Ether', }, ], - hourlySnapshots: [ + poolHourData: [ { - hourlyVolumeByTokenAmount: ['0', '0'], - hourlyTotalRevenueETH: '0', + ..._poolHourData, + volumeToken0: '0', + volumeToken1: '0', + totalValueLockedToken0: '0', + totalValueLockedToken1: '0', + feesETH: '0', id: '0x', - inputTokenBalances: ['0', '0'], - timestamp: 0, + periodStartUnix: 0, }, ], - dailySnapshots: [ + poolDayData: [ { - dailyVolumeByTokenAmount: ['0', '0'], - dailyTotalRevenueETH: '0.001', + ..._poolDayData, + volumeToken0: '0', + volumeToken1: '1', + feesETH: '0.001', id: '0x', - inputTokenBalances: ['0', '0'], - timestamp: 0, + totalValueLockedToken0: '0', + totalValueLockedToken1: '0', + date: 0, }, ], }, @@ -172,20 +187,20 @@ it('calculates the APRs', async () => { describe('when pool is a 0.3% tier', () => { beforeEach(() => { - poolData.liquidityPools[0].fees[2].feePercentage = 0.3; + poolData.pools[0].fees[2].feePercentage = '0.3'; }); it('calculates the daily and weekly revenue from the vault fee receipts', async () => { const [[pool]] = await run(); expect(formatEther(pool.dailyRevenue)).toEqual('0'); - expect(formatEther(pool.weeklyRevenue)).toEqual('1.4'); + expect(formatEther(pool.weeklyRevenue)).toEqual('1.401'); }); }); describe('when pool is a 1% tier', () => { beforeEach(() => { - poolData.liquidityPools[0].fees[2].feePercentage = 1; + poolData.pools[0].fees[2].feePercentage = '1'; }); it('calculates the daily and weekly revenue from the AMM fees', async () => { @@ -198,8 +213,8 @@ describe('when pool is a 1% tier', () => { describe('when there are more than 1000 pools', () => { beforeEach(() => { - poolData.liquidityPools = Array.from({ length: 1000 }).fill( - poolData.liquidityPools[0] + poolData.pools = Array.from({ length: 1000 }).fill( + poolData.pools[0] ); }); diff --git a/packages/core/src/pools/fetchLiquidityPools/calculateAprs.ts b/packages/core/src/pools/fetchLiquidityPools/calculateAprs.ts index 8f9da26..3d4aa4f 100644 --- a/packages/core/src/pools/fetchLiquidityPools/calculateAprs.ts +++ b/packages/core/src/pools/fetchLiquidityPools/calculateAprs.ts @@ -20,13 +20,27 @@ const calculatePoolValue = ({ isWeth0: boolean; vTokenToEth: bigint; }) => { - const eth = BigInt(balances?.[isWeth0 ? 0 : 1] ?? '0'); - const vToken = BigInt(balances?.[isWeth0 ? 1 : 0] ?? '0'); + const eth = parseEther(balances?.[isWeth0 ? 0 : 1] ?? '0'); + const vToken = parseEther(balances?.[isWeth0 ? 1 : 0] ?? '0'); const vTokenValue = (vToken * vTokenToEth) / WeiPerEther; const poolValue = eth + vTokenValue; return poolValue; }; +const snapshotToBalances = ( + snapshot: + | Pick< + NftxV3Uniswap.PoolDayData, + 'totalValueLockedToken0' | 'totalValueLockedToken1' + > + | undefined +) => { + if (!snapshot) { + return undefined; + } + return [snapshot.totalValueLockedToken0, snapshot.totalValueLockedToken1]; +}; + const calculateAMMApr = ({ createdAt, dailySnapshots, @@ -36,8 +50,8 @@ const calculateAMMApr = ({ vTokenToEth, }: { dailySnapshots: Pick< - NftxV3Uniswap.LiquidityPoolDailySnapshot, - 'timestamp' | 'inputTokenBalances' | 'dailyTotalRevenueETH' + NftxV3Uniswap.PoolDayData, + 'date' | 'totalValueLockedToken0' | 'totalValueLockedToken1' | 'feesETH' >[]; isWeth0: boolean; periodStart: number; @@ -50,17 +64,17 @@ const calculateAMMApr = ({ let start = periodStart > createdAt ? periodStart : createdAt; let end = start + 86400; const initialSnapshot = dailySnapshots.findLast( - (s) => Number(s.timestamp) >= start && Number(s.timestamp) <= end + (s) => Number(s.date) >= start && Number(s.date) <= end ); let lastPoolValue = calculatePoolValue({ isWeth0, - balances: initialSnapshot?.inputTokenBalances, + balances: snapshotToBalances(initialSnapshot), vTokenToEth, }); while (end <= periodEnd) { const dailySnapshot = dailySnapshots.find( - (s) => Number(s.timestamp) >= start && Number(s.timestamp) <= end + (s) => Number(s.date) >= start && Number(s.date) <= end ); let apr = 0n; @@ -68,11 +82,11 @@ const calculateAMMApr = ({ lastPoolValue = calculatePoolValue({ isWeth0, vTokenToEth, - balances: dailySnapshot.inputTokenBalances, + balances: snapshotToBalances(dailySnapshot), }); const poolValue = lastPoolValue; - const periodFees = parseEther(dailySnapshot.dailyTotalRevenueETH); + const periodFees = parseEther(dailySnapshot.feesETH); if (periodFees && poolValue) { apr = (periodFees * WeiPerEther * 365n) / poolValue; if (apr < 0n) { @@ -108,8 +122,8 @@ const calculateVaultFeeApr = ({ periodStart: number; periodEnd: number; dailySnapshots: Pick< - NftxV3Uniswap.LiquidityPoolDailySnapshot, - 'timestamp' | 'inputTokenBalances' + NftxV3Uniswap.PoolDayData, + 'date' | 'totalValueLockedToken0' | 'totalValueLockedToken1' >[]; vaultFeeReceipts: Pick[]; vTokenToEth: bigint; @@ -121,17 +135,17 @@ const calculateVaultFeeApr = ({ let start = periodStart > createdAt ? periodStart : createdAt; let end = start + 86400; const initialSnapshot = dailySnapshots.findLast( - (s) => Number(s.timestamp) >= start && Number(s.timestamp) <= end + (s) => Number(s.date) >= start && Number(s.date) <= end ); let lastPoolValue = calculatePoolValue({ isWeth0, - balances: initialSnapshot?.inputTokenBalances, + balances: snapshotToBalances(initialSnapshot), vTokenToEth, }); while (end <= periodEnd) { const dailySnapshot = dailySnapshots.find( - (s) => Number(s.timestamp) >= start && Number(s.timestamp) <= end + (s) => Number(s.date) >= start && Number(s.date) <= end ); const vaultFeeReceipt = vaultFeeReceipts.find( (r) => r.date >= start && r.date <= end @@ -142,7 +156,7 @@ const calculateVaultFeeApr = ({ lastPoolValue = calculatePoolValue({ isWeth0, vTokenToEth, - balances: dailySnapshot.inputTokenBalances, + balances: snapshotToBalances(dailySnapshot), }); } const poolValue = lastPoolValue; @@ -179,8 +193,8 @@ export default ({ }: { createdAt: number; dailySnapshots: Pick< - NftxV3Uniswap.LiquidityPoolDailySnapshot, - 'timestamp' | 'dailyTotalRevenueETH' | 'inputTokenBalances' + NftxV3Uniswap.PoolDayData, + 'date' | 'totalValueLockedToken0' | 'totalValueLockedToken1' | 'feesETH' >[]; vaultFeeReceipts: VaultFeeReceipt[]; vTokenToEth: bigint; diff --git a/packages/core/src/pools/fetchLiquidityPools/fetchPoolsSet.ts b/packages/core/src/pools/fetchLiquidityPools/fetchPoolsSet.ts index f7a1408..9f774e7 100644 --- a/packages/core/src/pools/fetchLiquidityPools/fetchPoolsSet.ts +++ b/packages/core/src/pools/fetchLiquidityPools/fetchPoolsSet.ts @@ -51,7 +51,7 @@ export const makeFetchPoolsSet = vaultIds, }); - const pools = data.liquidityPools.reduce((acc, pool) => { + const pools = data.pools.reduce((acc, pool) => { const vault = getVaultByTokens({ inputTokens: pool.inputTokens, vaults, @@ -77,8 +77,8 @@ export const makeFetchPoolsSet = }, [] as LiquidityPool[]); let nextId: Address | undefined; - if (data.liquidityPools.length === 1000) { - nextId = data.liquidityPools.pop()?.id as Address; + if (data.pools.length === 1000) { + nextId = data.pools.pop()?.id as Address; } return [pools, nextId] as const; diff --git a/packages/core/src/pools/fetchLiquidityPools/queryPoolData.ts b/packages/core/src/pools/fetchLiquidityPools/queryPoolData.ts index 740e680..803d695 100644 --- a/packages/core/src/pools/fetchLiquidityPools/queryPoolData.ts +++ b/packages/core/src/pools/fetchLiquidityPools/queryPoolData.ts @@ -5,9 +5,6 @@ import type { NftxV3Uniswap, Address, Vault } from '@nftx/types'; type QuerySubgraph = typeof querySubgraph; -const ONE_DAY = 60 * 60 * 24; -const ONE_WEEK = ONE_DAY * 7; - const getAddressesForVaultIds = ( vaultIds: string[], vaults: Pick[] @@ -39,12 +36,8 @@ export const makeQueryPoolData = vaultAddresses = getAddressesForVaultIds(vaultIds, vaults); } - const now = Math.floor(Date.now() / 1000); - const oneDayAgo = now - ONE_DAY; - const oneWeekAgo = now - ONE_WEEK; - const q = createQuery(); - const query = q.liquidityPools + const query = q.pools .first(1000) .orderBy('id') .where((w) => [ @@ -55,39 +48,45 @@ export const makeQueryPoolData = s.id, s.name, s.tick, + s.liquidity, s.totalLiquidity, - s.activeLiquidity, - s.inputTokenBalances, + s.totalValueLockedToken0, + s.totalValueLockedToken1, s.totalValueLockedETH, s.openPositionCount, - s.createdTimestamp, + s.createdAtTimestamp, + s.token0((token0) => [token0.id, token0.symbol, token0.name]), + s.token1((token1) => [token1.id, token1.symbol, token1.name]), s.fees((fee) => [fee.id, fee.feePercentage, fee.feeType]), s.inputTokens((token) => [token.id, token.symbol, token.name]), - s.hourlySnapshots( - q.liquidityPoolHourlySnapshots + s.poolHourData( + q.poolHourDatas .first(1000) - .orderBy('hour') + .orderBy('periodStartUnix') .orderDirection('desc') .select((s) => [ - s.hourlyVolumeByTokenAmount, - s.hourlyTotalRevenueETH, + s.volumeToken0, + s.volumeToken1, + s.feesETH, s.id, - s.inputTokenBalances, - s.timestamp, + s.totalValueLockedToken0, + s.totalValueLockedToken1, + s.periodStartUnix, ]) ), - s.dailySnapshots( - q.liquidityPoolDailySnapshots + s.poolDayData( + q.poolDayDatas .first(1000) - .orderBy('day') + .orderBy('date') .orderDirection('desc') .select((s) => [ s.id, - s.day, - s.dailyVolumeByTokenAmount, - s.dailyTotalRevenueETH, - s.inputTokenBalances, - s.timestamp, + s.date, + s.volumeToken0, + s.volumeToken1, + s.feesETH, + s.totalValueLockedToken0, + s.totalValueLockedToken1, ]) ), ]); diff --git a/packages/core/src/pools/fetchLiquidityPools/transformPool.ts b/packages/core/src/pools/fetchLiquidityPools/transformPool.ts index 5de9ec4..2f384d6 100644 --- a/packages/core/src/pools/fetchLiquidityPools/transformPool.ts +++ b/packages/core/src/pools/fetchLiquidityPools/transformPool.ts @@ -22,7 +22,7 @@ import { parseEther } from 'viem'; import calculateAprs from './calculateAprs'; import { calculatePriceFromTick } from '../../univ3-helpers'; -type Pool = LiquidityPoolsResponse['liquidityPools'][0]; +type Pool = LiquidityPoolsResponse['pools'][0]; const transformFees = (fees: Pool['fees']): LiquidityPool['fees'] => { return fees.map((fee): LiquidityPool['fees'][0] => { @@ -47,15 +47,23 @@ const transformPool = ( premiumPaids: { amount: bigint; date: number }[] ): LiquidityPool => { const fees = transformFees(pool.fees); - const tokens = pool.inputTokens.map(({ id, symbol, name }, i) => ({ - id: id as Address, - symbol, - name, - balance: BigInt(pool.inputTokenBalances[i] ?? '0'), - })); + const tokens = [ + { + id: pool.token0.id as Address, + symbol: pool.token0.symbol, + name: pool.token0.name, + balance: parseEther(pool.totalValueLockedToken0), + }, + { + id: pool.token1.id as Address, + symbol: pool.token1.symbol, + name: pool.token1.name, + balance: parseEther(pool.totalValueLockedToken1), + }, + ]; const wethToken = getChainConstant(WETH_TOKEN, network); const isWeth0 = addressEqual(tokens[0].id, wethToken); - const activeLiquidity = BigInt(pool.activeLiquidity ?? '0'); + const activeLiquidity = BigInt(pool.liquidity ?? '0'); const totalLiquidity = BigInt(pool.totalLiquidity ?? '0'); const tick = BigInt(pool.tick ?? '0'); const tickValue = calculatePriceFromTick(tick); @@ -81,20 +89,20 @@ const transformPool = ( const oneDayAgo = now - 60 * 60 * 24; const oneWeekAgo = now - 60 * 60 * 24 * 7; - const dailyVolume = pool.hourlySnapshots.reduce((total, snapshot) => { - if (Number(snapshot.timestamp) >= oneDayAgo) { - const value = BigInt( - snapshot.hourlyVolumeByTokenAmount[isWeth0 ? 0 : 1] ?? '0' + const dailyVolume = pool.poolHourData.reduce((total, snapshot) => { + if (Number(snapshot.periodStartUnix) >= oneDayAgo) { + const value = parseEther( + (isWeth0 ? snapshot.volumeToken0 : snapshot.volumeToken1) || '0' ); return total + value; } return total; }, Zero); - const weeklyVolume = pool.dailySnapshots.reduce((total, snapshot) => { - if (Number(snapshot.timestamp) >= oneWeekAgo) { - const value = BigInt( - snapshot.dailyVolumeByTokenAmount[isWeth0 ? 0 : 1] ?? '0' + const weeklyVolume = pool.poolDayData.reduce((total, snapshot) => { + if (Number(snapshot.date) >= oneWeekAgo) { + const value = parseEther( + (isWeth0 ? snapshot.volumeToken0 : snapshot.volumeToken1) || '0' ); return total + value; } @@ -118,25 +126,25 @@ const transformPool = ( } return total; }, Zero); - } else { - // All other pools only get the AMM fees - dailyRevenue = pool.hourlySnapshots.reduce((total, snapshot) => { - if (Number(snapshot.timestamp) >= oneDayAgo) { - return total + parseEther(snapshot.hourlyTotalRevenueETH ?? '0'); - } - return total; - }, Zero); - weeklyRevenue = pool.dailySnapshots.reduce((total, snapshot) => { - if (Number(snapshot.timestamp) >= oneWeekAgo) { - return total + parseEther(snapshot.dailyTotalRevenueETH ?? '0'); - } - return total + parseEther(snapshot.dailyTotalRevenueETH ?? '0'); - }, Zero); } + // All other pools only get the AMM fees + dailyRevenue += pool.poolHourData.reduce((total, snapshot) => { + if (Number(snapshot.periodStartUnix) >= oneDayAgo) { + return total + parseEther(snapshot.feesETH ?? '0'); + } + return total; + }, Zero); + weeklyRevenue += pool.poolDayData.reduce((total, snapshot) => { + if (Number(snapshot.date) >= oneWeekAgo) { + return total + parseEther(snapshot.feesETH ?? '0'); + } + return total + parseEther(snapshot.feesETH ?? '0'); + }, Zero); + const apr = calculateAprs({ - createdAt: Number(pool.createdTimestamp), - dailySnapshots: pool.dailySnapshots, + createdAt: Number(pool.createdAtTimestamp), + dailySnapshots: pool.poolDayData, isWeth0, vaultFeeReceipts: receipts, vTokenToEth: vault.vTokenToEth, diff --git a/packages/core/src/pools/fetchLiquidityPools/types.ts b/packages/core/src/pools/fetchLiquidityPools/types.ts index 0e882e4..5ed89d2 100644 --- a/packages/core/src/pools/fetchLiquidityPools/types.ts +++ b/packages/core/src/pools/fetchLiquidityPools/types.ts @@ -1,6 +1,3 @@ import type { NftxV3Uniswap } from '@nftx/types'; -export type LiquidityPoolsResponse = Pick< - NftxV3Uniswap.Query, - 'liquidityPools' ->; +export type LiquidityPoolsResponse = Pick; diff --git a/packages/core/src/positions/fetchLiquidityPositions/__tests__/fetchLiquidityPositions.test.ts b/packages/core/src/positions/fetchLiquidityPositions/__tests__/fetchLiquidityPositions.test.ts index 0d359d2..3bb0dfd 100644 --- a/packages/core/src/positions/fetchLiquidityPositions/__tests__/fetchLiquidityPositions.test.ts +++ b/packages/core/src/positions/fetchLiquidityPositions/__tests__/fetchLiquidityPositions.test.ts @@ -6,8 +6,9 @@ import { getChainConstant } from '@nftx/utils'; import { MAX_TICK, MIN_TICK, WETH_TOKEN } from '@nftx/constants'; import { MAX_PRICE } from '@nftx/constants'; import { MIN_PRICE } from '@nftx/constants'; +import { NftxV3Uniswap } from '@nftx/types'; -let subggraphResponse: any; +let subggraphResponse: { positions: NftxV3Uniswap.Position[] }; let querySubgraph: jest.Mock; let queryPositionData: ReturnType; let fetchClaimableAmount: jest.Mock; @@ -18,26 +19,35 @@ let args: Parameters[0]; let run: () => ReturnType; beforeEach(() => { + const _token = {} as NftxV3Uniswap.Token; + const _pool = {} as NftxV3Uniswap.Pool; + const _owner = {} as NftxV3Uniswap.Account; + const _position = {} as NftxV3Uniswap.Position; + subggraphResponse = { positions: [ { + ..._position, id: '0x1', tokenId: '1', liquidity: '5431575616225859850', - cumulativeDepositTokenAmounts: ['100', '100'], - cumulativeWithdrawTokenAmounts: ['100', '100'], + depositedToken0: '100', + depositedToken1: '100', + withdrawnToken0: '100', + withdrawnToken1: '100', lockedUntil: '0', - tickUpper: { index: '-23160' }, - tickLower: { index: '-36960' }, + tickUpper: -23160, + tickLower: -36960, pool: { + ..._pool, id: '0x2', tick: '-24000', inputTokens: [ - { id: '0xe770493b2663004b356d3374ec23ea52f6c82ca6' }, - { id: getChainConstant(WETH_TOKEN, 1) }, + { ..._token, id: '0xe770493b2663004b356d3374ec23ea52f6c82ca6' }, + { ..._token, id: getChainConstant(WETH_TOKEN, 1) }, ], }, - account: { id: '0x4' }, + owner: { ..._owner, id: '0x4' }, }, ], }; @@ -141,7 +151,7 @@ describe('when userAddresses are provided', () => { const query = querySubgraph.mock.calls[0][0].query.toString(); - expect(query).toContain('account_in: ["0x4"]'); + expect(query).toContain('owner_in: ["0x4"]'); }); }); @@ -203,8 +213,8 @@ it('calculate the tick values', async () => { describe('when position has an infinite range', () => { beforeEach(() => { - subggraphResponse.positions[0].tickLower.index = `${MIN_TICK}`; - subggraphResponse.positions[0].tickUpper.index = `${MAX_TICK}`; + subggraphResponse.positions[0].tickLower = MIN_TICK; + subggraphResponse.positions[0].tickUpper = MAX_TICK; }); it('sets infiniteRange to true', async () => { diff --git a/packages/core/src/positions/fetchLiquidityPositions/__tests__/fetchPoolIdsForVaultIds.test.ts b/packages/core/src/positions/fetchLiquidityPositions/__tests__/fetchPoolIdsForVaultIds.test.ts index a351754..071f333 100644 --- a/packages/core/src/positions/fetchLiquidityPositions/__tests__/fetchPoolIdsForVaultIds.test.ts +++ b/packages/core/src/positions/fetchLiquidityPositions/__tests__/fetchPoolIdsForVaultIds.test.ts @@ -1,25 +1,31 @@ +import { NftxV3Uniswap } from '@nftx/types'; import { makeFetchPoolIdsForVaultIds } from '../fetchPoolIdsForVaultIds'; const trim = (s: string) => { return s.replace(/[\s\n]/g, ''); }; -let subgraphResponse: any; +let subgraphResponse: Pick; let querySubgraph: jest.Mock; let fetchPoolIdsForVaultIds: ReturnType; let run: () => ReturnType; let args: Parameters[0]; beforeEach(() => { + const _pool = {} as NftxV3Uniswap.Pool; + subgraphResponse = { - liquidityPools: [ + pools: [ { + ..._pool, id: '0x3', }, { + ..._pool, id: '0x4', }, { + ..._pool, id: '0x5', }, ], @@ -75,7 +81,7 @@ it('uses the the vault addresses to match up with pool input tokens', async () = describe('when there are more than 1000 pools', () => { beforeEach(() => { querySubgraph.mockResolvedValueOnce({ - liquidityPools: Array(1000).fill({ id: '0x3' }), + pools: Array(1000).fill({ id: '0x3' }), }); }); diff --git a/packages/core/src/positions/fetchLiquidityPositions/fetchPoolIdsForVaultIds.ts b/packages/core/src/positions/fetchLiquidityPositions/fetchPoolIdsForVaultIds.ts index bd76a5e..1d2b994 100644 --- a/packages/core/src/positions/fetchLiquidityPositions/fetchPoolIdsForVaultIds.ts +++ b/packages/core/src/positions/fetchLiquidityPositions/fetchPoolIdsForVaultIds.ts @@ -17,7 +17,7 @@ const fetchPoolIdsNextSet = async ({ querySubgraph: QuerySubgraph; }) => { const query = createQuery() - .liquidityPools.first(1000) + .pools.first(1000) .orderBy('id') .where((w) => [ w.inputTokens((token) => [token.id.in(addresses), token.id.gt(lastId)]), @@ -29,11 +29,11 @@ const fetchPoolIdsNextSet = async ({ query, }); - const poolIds = data.liquidityPools.map((pool) => pool.id as Address); + const poolIds = data.pools.map((pool) => pool.id as Address); let nextId: Address | undefined; - if (data.liquidityPools.length === 1000) { - nextId = data.liquidityPools.pop()?.id as Address; + if (data.pools.length === 1000) { + nextId = data.pools.pop()?.id as Address; } return [poolIds, nextId] as const; diff --git a/packages/core/src/positions/fetchLiquidityPositions/queryPositionData.ts b/packages/core/src/positions/fetchLiquidityPositions/queryPositionData.ts index 7cec210..9b53991 100644 --- a/packages/core/src/positions/fetchLiquidityPositions/queryPositionData.ts +++ b/packages/core/src/positions/fetchLiquidityPositions/queryPositionData.ts @@ -26,7 +26,7 @@ export const makeQueryPositionData = .positions.first(1000) .orderBy('id') .where((w) => [ - w.account.in(userAddresses), + w.owner.in(userAddresses), w.pool.in(poolIds), w.id.in(positionIds), w.id.gt(lastId), @@ -36,20 +36,21 @@ export const makeQueryPositionData = s.id, s.tokenId, s.liquidity, - s.cumulativeDepositTokenAmounts, - s.cumulativeWithdrawTokenAmounts, + s.depositedToken0, + s.depositedToken1, + s.withdrawnToken0, + s.withdrawnToken1, s.lockedUntil, - s.timestampOpened, s.nfpmAddress, - s.tickUpper((tick) => [tick.index]), - s.tickLower((tick) => [tick.index]), + s.tickUpper, + s.tickLower, s.pool((pool) => [ pool.id, pool.tick, pool.name, pool.inputTokens((token) => [token.id]), ]), - s.account((account) => [account.id]), + s.owner((account) => [account.id]), ]); return querySubgraph({ diff --git a/packages/core/src/positions/fetchLiquidityPositions/transformPosition.ts b/packages/core/src/positions/fetchLiquidityPositions/transformPosition.ts index 69426e1..3c2d258 100644 --- a/packages/core/src/positions/fetchLiquidityPositions/transformPosition.ts +++ b/packages/core/src/positions/fetchLiquidityPositions/transformPosition.ts @@ -36,8 +36,8 @@ const transformPosition = ({ }): LiquidityPosition => { const tokenId = position.tokenId as TokenId; const tick = BigInt(position.pool.tick ?? '0'); - const tickLower = BigInt(position.tickLower?.index ?? '0'); - const tickUpper = BigInt(position.tickUpper?.index ?? '0'); + const tickLower = BigInt(position.tickLower ?? '0'); + const tickUpper = BigInt(position.tickUpper ?? '0'); const inRange = tick >= tickLower && tick <= tickUpper; const liquidity = BigInt(position.liquidity); @@ -92,7 +92,7 @@ const transformPosition = ({ tick, isFullRange, tickUpper, - userAddress: position.account.id as Address, + userAddress: position.owner.id as Address, inRange, eth, tickLowerValue, diff --git a/packages/core/src/vaults/__tests__/fetchVaultActivity.test.ts b/packages/core/src/vaults/__tests__/fetchVaultActivity.test.ts index 9458c89..3aaf550 100644 --- a/packages/core/src/vaults/__tests__/fetchVaultActivity.test.ts +++ b/packages/core/src/vaults/__tests__/fetchVaultActivity.test.ts @@ -1,6 +1,7 @@ import { formatJson, getChainConstant } from '@nftx/utils'; import { makeFetchVaultActivity } from '../fetchVaultActivity'; import { NFTX_FEE_DISTRIBUTOR } from '@nftx/constants'; +import { NFTX_FEE_DISTRIBUTOR_LEGACY } from '@nftx/constants'; let subgraphResponse: any; let querySubgraph: jest.Mock; @@ -221,10 +222,13 @@ it('filters transfers by fee distrubtor', async () => { await run(); const str = querySubgraph.mock.calls[0][0].query; - const address = getChainConstant(NFTX_FEE_DISTRIBUTOR, 1).toLowerCase(); + const addresses = [ + getChainConstant(NFTX_FEE_DISTRIBUTOR, 1), + ...getChainConstant(NFTX_FEE_DISTRIBUTOR_LEGACY, 1), + ].map((x) => x.toLowerCase()); expect(`${str}`.replace(/[ \n]/g, '')).toContain( - `transfers(where:{to:"${address}"})` + `transfers(where:{to_in:${JSON.stringify(addresses)}})` ); }); diff --git a/packages/core/src/vaults/fetchVaultActivity.ts b/packages/core/src/vaults/fetchVaultActivity.ts index 4fc22ba..59ed807 100644 --- a/packages/core/src/vaults/fetchVaultActivity.ts +++ b/packages/core/src/vaults/fetchVaultActivity.ts @@ -1,5 +1,8 @@ import config from '@nftx/config'; -import { NFTX_FEE_DISTRIBUTOR } from '@nftx/constants'; +import { + NFTX_FEE_DISTRIBUTOR, + NFTX_FEE_DISTRIBUTOR_LEGACY, +} from '@nftx/constants'; import { Zero } from '@nftx/constants'; import { querySubgraph, createQuery } from '@nftx/subgraph'; import type { @@ -268,10 +271,10 @@ export const makeFetchVaultActivity = ({ }): Promise { let lastId: string | undefined; const activity: VaultActivity[] = []; - const feeDistributorAddress = getChainConstant( - NFTX_FEE_DISTRIBUTOR, - network - ); + const feeDistributorAddresses = [ + getChainConstant(NFTX_FEE_DISTRIBUTOR, network), + ...getChainConstant(NFTX_FEE_DISTRIBUTOR_LEGACY, network), + ]; do { const q = createQuery(); @@ -297,7 +300,7 @@ export const makeFetchVaultActivity = ({ s.feeReceipt((r) => [ r.transfers( q.feeTransfers - .where((w) => [w.to.is(feeDistributorAddress)]) + .where((w) => [w.to.in(feeDistributorAddresses)]) .select((receipt) => [receipt.amount]) ), ]), @@ -308,7 +311,7 @@ export const makeFetchVaultActivity = ({ s.feeReceipt((r) => [ r.transfers( q.feeTransfers - .where((w) => [w.to.is(feeDistributorAddress)]) + .where((w) => [w.to.in(feeDistributorAddresses)]) .select((receipt) => [receipt.amount]) ), ]), @@ -319,7 +322,7 @@ export const makeFetchVaultActivity = ({ s.feeReceipt((r) => [ r.transfers( q.feeTransfers - .where((w) => [w.to.is(feeDistributorAddress)]) + .where((w) => [w.to.in(feeDistributorAddresses)]) .select((receipt) => [receipt.amount]) ), ]), diff --git a/packages/subgraph/src/__tests__/createQuery.test.ts b/packages/subgraph/src/__tests__/createQuery.test.ts index b2d48ba..da56b9a 100644 --- a/packages/subgraph/src/__tests__/createQuery.test.ts +++ b/packages/subgraph/src/__tests__/createQuery.test.ts @@ -9,13 +9,13 @@ const ignoreWs = (str: string) => str.replace(/ /g, '').replace(/\n/g, ''); it('handles a single entity', () => { const g = createQuery(); - const query = g.liquidityPool + const query = g.pool .id('0x1768ccc3fc3a40522fcd3296633ae8c00434b3b6') .select((s) => [s.id]); const actual = query.toString(); const expected = `{ - liquidityPool(id: "0x1768ccc3fc3a40522fcd3296633ae8c00434b3b6") { + pool(id: "0x1768ccc3fc3a40522fcd3296633ae8c00434b3b6") { id } }`; @@ -25,11 +25,11 @@ it('handles a single entity', () => { it('handles a list entity', () => { const g = createQuery(); - const query = g.liquidityPools.select((s) => [s.id]); + const query = g.pools.select((s) => [s.id]); const actual = query.toString(); const expected = `{ - liquidityPools { + pools { id } }`; @@ -39,11 +39,11 @@ it('handles a list entity', () => { it('aliases the collection name', () => { const g = createQuery(); - const query = g.liquidityPools.as('foo').select((s) => [s.id]); + const query = g.pools.as('foo').select((s) => [s.id]); const actual = query.toString(); const expected = `{ - foo: liquidityPools { + foo: pools { id } }`; @@ -53,17 +53,17 @@ it('aliases the collection name', () => { it('adds filters', () => { const g = createQuery(); - const query = g.liquidityPools + const query = g.pools .first(10) - .orderBy('activeLiquidity') + .orderBy('liquidity') .orderDirection('desc') .select((s) => [s.id]); const actual = query.toString(); const expected = `{ - liquidityPools( + pools( first: 10 - orderBy: activeLiquidity + orderBy: liquidity orderDirection: desc ) { id @@ -76,15 +76,15 @@ it('adds filters', () => { it('searches by primitive values', () => { const g = createQuery(); - const query = g.liquidityPools - .where((w) => [w.createdTimestamp('0')]) + const query = g.pools + .where((w) => [w.createdAtTimestamp('0')]) .select((s) => [s.id]); const actual = query.toString(); const expected = `{ - liquidityPools( + pools( where: { - createdTimestamp: "0" + createdAtTimestamp: "0" } ) { id @@ -97,18 +97,21 @@ it('searches by primitive values', () => { it('strips out nullish values', () => { const g = createQuery(); - const query = g.liquidityPools + const query = g.pools .where((w) => [ - w.createdTimestamp(undefined), - w.totalLiquidity(null), - w.activeLiquidity.in(undefined), - w.protocol((w) => [w.id.in(null), w.pools((w) => [w.id.is(undefined)])]), + w.createdAtTimestamp(undefined), + w.liquidity(null), + w.balanceOfBlock.in(undefined), + w.collects((collect) => [ + collect.id.in(null), + collect.owner((owner) => [owner.id.is(undefined)]), + ]), ]) .select((s) => [s.id]); const actual = query.toString(); const expected = `{ - liquidityPools { + pools { id } }`; @@ -118,15 +121,15 @@ it('strips out nullish values', () => { it('filters with a contains query', () => { const q = createQuery(); - const query = q.withdraws - .where((w) => [w.inputTokens.contains(['0x1234'])]) + const query = q.pools + .where((w) => [w.burns.contains(['0x1234'])]) .select((s) => [s.id]); const actual = query.toString(); const expected = `{ - withdraws( + pools( where: { - inputTokens_contains: ["0x1234"] + burns_contains: ["0x1234"] } ) { id @@ -136,36 +139,37 @@ it('filters with a contains query', () => { expect(ignoreWs(actual)).toBe(ignoreWs(expected)); }); -it('filters by an exact array match', () => { - const q = createQuery(); - const query = q.withdraws - .where((w) => [w.inputTokenAmounts.isNot(['0', '0'])]) - .select((s) => [s.id]); +// Pretty sure we no longer have a use case for this in our schemas +// it('filters by an exact array match', () => { +// const q = createQuery(); +// const query = q.pools +// .where((w) => [w.feesUSD.isNot(['0', '0'])]) +// .select((s) => [s.id]); - const actual = query.toString(); - const expected = `{ - withdraws( - where: { - inputTokenAmounts_not: ["0", "0"] - } - ) { - id - } - }`; +// const actual = query.toString(); +// const expected = `{ +// withdraws( +// where: { +// inputTokenAmounts_not: ["0", "0"] +// } +// ) { +// id +// } +// }`; - expect(ignoreWs(actual)).toBe(ignoreWs(expected)); -}); +// expect(ignoreWs(actual)).toBe(ignoreWs(expected)); +// }); // For now we're just saying bigint fields should be stringified // it('handles a bigint value', () => { // const g = createQuery(); -// const query = g.liquidityPools +// const query = g.pools // .where((w) => w.activeLiquidity.is(0n)) // .select((s) => [s.id]); // const actual = query.toString(); // const expected = `{ -// liquidityPools( +// pools( // where: { // activeLiquidity: 0 // } @@ -179,25 +183,25 @@ it('filters by an exact array match', () => { it('searches by lt/lte/gt/gte/ne', () => { const g = createQuery(); - const query = g.liquidityPools + const query = g.pools .where((w) => [ - w.activeLiquidity.gt('0'), - w.activeLiquidity.gte('1'), - w.activeLiquidity.isNot('2'), - w.activeLiquidity.lt('100000000000'), - w.activeLiquidity.lte('9999999999'), + w.liquidity.gt('0'), + w.liquidity.gte('1'), + w.liquidity.isNot('2'), + w.liquidity.lt('100000000000'), + w.liquidity.lte('9999999999'), ]) .select((s) => [s.id]); const actual = query.toString(); const expected = `{ - liquidityPools( + pools( where: { - activeLiquidity_gt: "0", - activeLiquidity_gte: "1", - activeLiquidity_ne: "2", - activeLiquidity_lt: "100000000000", - activeLiquidity_lte: "9999999999" + liquidity_gt: "0", + liquidity_gte: "1", + liquidity_ne: "2", + liquidity_lt: "100000000000", + liquidity_lte: "9999999999" } ) { id @@ -210,16 +214,19 @@ it('searches by lt/lte/gt/gte/ne', () => { it('searches on nested fields', () => { const g = createQuery(); - const query = g.liquidityPools - .where((w) => [w.inputTokens((w) => [w.id('0x00000'), w.decimals(18)])]) + const query = g.pools + // .where((w) => [w.inputTokens((w) => [w.id('0x00000'), w.decimals(18)])]) + .where((w) => [ + w.fees((fee) => [fee.id('0x00000'), fee.feePercentage('0.01')]), + ]) .select((s) => [s.id]); const actual = query.toString(); const expected = `{ - liquidityPools( + pools( where: { - inputTokens_: { + fees_: { id: "0x00000", - decimals: 18 + feePercentage: "0.01" } } ) { @@ -230,18 +237,20 @@ it('searches on nested fields', () => { expect(ignoreWs(actual)).toBe(ignoreWs(expected)); }); +it.todo('allows for OR queries'); + it("searches by a child entity's ID", () => { const g = createQuery(); - const query = g.liquidityPools - .where((w) => w.protocol.is('0x000')) + const query = g.pools + .where((w) => w.token1.is('0x000')) .select((s) => [s.id]); const actual = query.toString(); const expected = `{ - liquidityPools( + pools( where: { - protocol: "0x000" + token1: "0x000" } ) { id @@ -253,18 +262,18 @@ it("searches by a child entity's ID", () => { it('selects primitive fields', () => { const g = createQuery(); - const query = g.liquidityPools.select((s) => [ + const query = g.pools.select((s) => [ s.id, - s.activeLiquidity, - s.createdTimestamp, + s.liquidity, + s.createdAtTimestamp, ]); const actual = query.toString(); const expected = `{ - liquidityPools { + pools { id - activeLiquidity - createdTimestamp + liquidity + createdAtTimestamp } }`; @@ -273,12 +282,13 @@ it('selects primitive fields', () => { it('selects nested primitive fields', () => { const g = createQuery(); - const query = g.liquidityPools.select((s) => [s.positions((s) => [s.id])]); + // const query = g.pools.select((s) => [s.positions((s) => [s.id])]); + const query = g.positions.select((s) => [s.pool((pool) => [pool.id])]); const actual = query.toString(); const expected = `{ - liquidityPools { - positions { + positions { + pool { id } } @@ -289,15 +299,15 @@ it('selects nested primitive fields', () => { it('selects deeply-nested primitive fields', () => { const g = createQuery(); - const query = g.liquidityPools.select((s) => [ - s.positions((s) => [s.pool((s) => [s.id])]), + const query = g.positions.select((s) => [ + s.pool((pool) => [pool.mints((mint) => [mint.id])]), ]); const actual = query.toString(); const expected = `{ - liquidityPools { - positions { - pool { + positions { + pool { + mints { id } } @@ -309,11 +319,11 @@ it('selects deeply-nested primitive fields', () => { it('selects primitives with object-syntax', () => { const g = createQuery(); - const query = g.liquidityPools.select((s) => [s.id]); + const query = g.pools.select((s) => [s.id]); const actual = query.toString(); const expected = `{ - liquidityPools { + pools { id } }`; @@ -323,21 +333,19 @@ it('selects primitives with object-syntax', () => { it('selects and filters child entities with a nested query', () => { const g = createQuery(); - const query = g.liquidityPools.select(() => [ - g.positions - .where((w) => w.account.is('0x0')) - .select((s) => [s.depositCount]), + const query = g.pools.select(() => [ + g.positions.where((w) => w.owner.is('0x0')).select((s) => [s.nfpmAddress]), ]); const actual = query.toString(); const expected = `{ - liquidityPools { + pools { positions( where: { - account: "0x0" + owner: "0x0" } ) { - depositCount + nfpmAddress } } }`; @@ -348,24 +356,25 @@ it('selects and filters child entities with a nested query', () => { it('selects and filters child entities with a nested query assigned to another field', () => { const q = createQuery(); - const query = q.liquidityPools.select((s) => [ - s.hourlySnapshots( - q.liquidityPoolHourlySnapshots + const query = q.pools.select((s) => [ + s.poolHourData( + q.poolHourDatas .first(24) - .orderBy('hour') + .orderBy('periodStartUnix') .orderDirection('desc') - .select((s) => [s.hourlyVolumeUSD, s.id]) + .select((s) => [s.volumeUSD, s.id]) ), ]); + const actual = query.toString(); const expected = `{ - liquidityPools { - hourlySnapshots( + pools { + poolHourData( first: 24 - orderBy: hour + orderBy: periodStartUnix orderDirection: desc ) { - hourlyVolumeUSD + volumeUSD id } } @@ -377,28 +386,28 @@ it('selects and filters child entities with a nested query assigned to another f it('selects and filters child entities with a nested query assigned to an on... field', () => { const q = createQuery(); - const query = q.liquidityPools.select((s) => [ + const query = q.pools.select((s) => [ s.on('Foo', (s) => [ - s.hourlySnapshots( - q.liquidityPoolHourlySnapshots + s.poolHourData( + q.poolHourDatas .first(24) - .orderBy('hour') + .orderBy('periodStartUnix') .orderDirection('desc') - .select((s) => [s.hourlyVolumeUSD, s.id]) + .select((s) => [s.volumeUSD, s.id]) ), ]), ]); const actual = query.toString(); const expected = `{ - liquidityPools { + pools { ... on Foo { - hourlySnapshots( + poolHourData( first: 24 - orderBy: hour + orderBy: periodStartUnix orderDirection: desc ) { - hourlyVolumeUSD + volumeUSD id } } @@ -426,30 +435,27 @@ it('works with optional fields', () => { it('works with implicit stringify', () => { const g = createQuery(); - const query = g.liquidityPools - .where((w) => [ - w.activeLiquidity.gt('0'), - w.inputTokens((w) => [w.id('0xAB')]), - ]) + const query = g.pools + .where((w) => [w.liquidity.gt('0'), w.token0((w) => [w.id('0xAB')])]) .select((s) => [ - s.activeLiquidity, + s.liquidity, s.fees((s) => [s.id, s.feeType, s.feePercentage]), g.positions - .where((w) => [w.account.is('0x0')]) - .select((s) => [s.id, s.account((s) => [s.id])]), + .where((w) => [w.owner.is('0x0')]) + .select((s) => [s.id, s.owner((s) => [s.id])]), ]); const actual = `${query}`; const expected = `{ - liquidityPools( + pools( where: { - activeLiquidity_gt: "0", - inputTokens_: { + liquidity_gt: "0", + token0_: { id: "0xab" } } ) { - activeLiquidity + liquidity fees { id feeType @@ -457,11 +463,11 @@ it('works with implicit stringify', () => { } positions( where: { - account: "0x0" + owner: "0x0" } ) { id - account { + owner { id } } @@ -472,21 +478,21 @@ it('works with implicit stringify', () => { }); it('aliases fields', () => { - const query = createQuery().liquidityPools.select((s) => [ - s.activeLiquidity.as('liquidityActive'), - s.deposits((s) => [s.blockNumber]).as('x'), - s.positions((s) => [s.withdrawCount.as('totalWithdrawals')]).as('y'), + const query = createQuery().pools.select((s) => [ + s.liquidity.as('w'), + s.mints((s) => [s.timestamp]).as('x'), + s.burns((s) => [s.timestamp.as('z')]).as('y'), ]); const actual = query.toString(); const expected = `{ - liquidityPools { - liquidityActive: activeLiquidity - x: deposits { - blockNumber + pools { + w: liquidity + x: mints { + timestamp } - y: positions { - totalWithdrawals: withdrawCount + y: burns { + z: timestamp } } }`; @@ -536,14 +542,14 @@ it('creates "... on" selectors', () => { describe('when select has not been set', () => { it('throws an error', () => { const g = createQuery(); - const query = g.liquidityPools; + const query = g.pools; expect(() => query.toString()).toThrow(); }); }); it('sends a query to the subgraph', async () => { - const response = { data: { liquidityPools: [] } }; + const response = { data: { pools: [] } }; const fetch = jest.fn().mockResolvedValue({ ok: true, status: 200, @@ -551,7 +557,7 @@ it('sends a query to the subgraph', async () => { text: async () => JSON.stringify(response), }); const g = createQuery(); - const query = g.liquidityPools.select((s) => [s.id]).first(1); + const query = g.pools.select((s) => [s.id]).first(1); const result = await querySubgraph({ url: 'https://example.com', @@ -560,14 +566,14 @@ it('sends a query to the subgraph', async () => { }); expect(fetch).toBeCalled(); - expect(fetch.mock.calls[0][1].body).toContain('liquidityPools'); + expect(fetch.mock.calls[0][1].body).toContain('pools'); expect(fetch.mock.calls[0][1].body).toContain('first: 1'); expect(fetch.mock.calls[0][1].body).toContain('id'); expect(result).toEqual(response.data); }); it('combines multiple queries into a single query request', async () => { - const response = { data: { liquidityPools: [] } }; + const response = { data: { pools: [] } }; const fetch = jest.fn().mockResolvedValue({ ok: true, status: 200, @@ -575,14 +581,14 @@ it('combines multiple queries into a single query request', async () => { text: async () => JSON.stringify(response), }); const g = createQuery(); - const q1 = g.liquidityPools.select((s) => [s.id]); + const q1 = g.pools.select((s) => [s.id]); const q2 = g.positions.select((s) => [s.id]); const q3 = g.accounts.select((s) => [s.id]); const query = q1.combine(q2).combine(q3); const actual = query.toString(); const expected = `{ - liquidityPools { + pools { id } positions { @@ -600,6 +606,6 @@ it('combines multiple queries into a single query request', async () => { }); expect(ignoreWs(actual)).toBe(ignoreWs(expected)); - expect(fetch.mock.calls[0][1].body).toContain('liquidityPools'); + expect(fetch.mock.calls[0][1].body).toContain('pools'); expect(fetch.mock.calls[0][1].body).toContain('positions'); }); diff --git a/packages/types/1155.codegen.yml b/packages/types/1155.codegen.yml index 97516a0..24f2423 100644 --- a/packages/types/1155.codegen.yml +++ b/packages/types/1155.codegen.yml @@ -16,5 +16,6 @@ generates: input: string output: string Int8: string|number + Timestamp: string plugins: - typescript diff --git a/packages/types/721.codegen.yml b/packages/types/721.codegen.yml index 81196eb..2abfc63 100644 --- a/packages/types/721.codegen.yml +++ b/packages/types/721.codegen.yml @@ -16,5 +16,6 @@ generates: input: string output: string Int8: string|number + Timestamp: string plugins: - typescript diff --git a/packages/types/nftx-v3-uniswap.codegen.yml b/packages/types/nftx-v3-uniswap.codegen.yml index 88bd952..79c8278 100644 --- a/packages/types/nftx-v3-uniswap.codegen.yml +++ b/packages/types/nftx-v3-uniswap.codegen.yml @@ -1,4 +1,4 @@ -schema: https://api.thegraph.com/subgraphs/name/nftx-project/nftx-v3-amm-sepolia +schema: https://query.graph.nftx.xyz/subgraphs/id/QmXavb61qVUrfYe7daW47n77LhinFgSoMhWVkMfgEdUspS generates: ./src/subgraph/nftx-v3-uniswap.ts: config: @@ -15,5 +15,6 @@ generates: input: string output: string Int8: string|number + Timestamp: string plugins: - typescript diff --git a/packages/types/nftx-v3.codegen.yml b/packages/types/nftx-v3.codegen.yml index eadf09c..44b4c27 100644 --- a/packages/types/nftx-v3.codegen.yml +++ b/packages/types/nftx-v3.codegen.yml @@ -15,5 +15,6 @@ generates: input: string output: string Int8: string|number + Timestamp: string plugins: - typescript diff --git a/packages/types/src/subgraph/1155.ts b/packages/types/src/subgraph/1155.ts index 72bf65e..f1b4c69 100644 --- a/packages/types/src/subgraph/1155.ts +++ b/packages/types/src/subgraph/1155.ts @@ -16,6 +16,7 @@ export type Scalars = { BigInt: { input: string; output: string; } Bytes: { input: string; output: string; } Int8: { input: string|number; output: string|number; } + Timestamp: { input: string; output: string; } }; export type Account = { diff --git a/packages/types/src/subgraph/721.ts b/packages/types/src/subgraph/721.ts index 18b8f2d..a33135a 100644 --- a/packages/types/src/subgraph/721.ts +++ b/packages/types/src/subgraph/721.ts @@ -16,6 +16,7 @@ export type Scalars = { BigInt: { input: string; output: string; } Bytes: { input: string; output: string; } Int8: { input: string|number; output: string|number; } + Timestamp: { input: string; output: string; } }; export enum Aggregation_Interval { diff --git a/packages/types/src/subgraph/nftx-v3-uniswap.ts b/packages/types/src/subgraph/nftx-v3-uniswap.ts index 2bb193c..c231d48 100644 --- a/packages/types/src/subgraph/nftx-v3-uniswap.ts +++ b/packages/types/src/subgraph/nftx-v3-uniswap.ts @@ -20,157 +20,111 @@ export type Scalars = { export type Account = { __typename?: 'Account'; - /** Number of closed positions this account has */ - closedPositionCount: Scalars['Int']['output']; - /** Number of deposits this account made */ - depositCount: Scalars['Int']['output']; - /** All deposit events of this account */ - deposits: Array; + /** All withdraw events of this account */ + burns: Array; /** { Account address } */ - id: Scalars['ID']['output']; - /** Number of open positions this account has */ - openPositionCount: Scalars['Int']['output']; - /** Number of positions this account has */ - positionCount: Scalars['Int']['output']; + id: Scalars['Bytes']['output']; + /** All deposit events of this account */ + mints: Array; /** All positions that belong to this account */ positions: Array; - /** Number of times this account has traded/swapped */ - swapCount: Scalars['Int']['output']; /** All swap events of this account */ swaps: Array; - /** Number of withdrawals this account made */ - withdrawCount: Scalars['Int']['output']; - /** All withdraw events of this account */ - withdraws: Array; }; -export type AccountDepositsArgs = { +export type AccountBurnsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; -export type AccountPositionsArgs = { +export type AccountMintsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; -export type AccountSwapsArgs = { +export type AccountPositionsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; -export type AccountWithdrawsArgs = { +export type AccountSwapsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; export type Account_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; and?: InputMaybe>>; - closedPositionCount?: InputMaybe; - closedPositionCount_gt?: InputMaybe; - closedPositionCount_gte?: InputMaybe; - closedPositionCount_in?: InputMaybe>; - closedPositionCount_lt?: InputMaybe; - closedPositionCount_lte?: InputMaybe; - closedPositionCount_not?: InputMaybe; - closedPositionCount_not_in?: InputMaybe>; - depositCount?: InputMaybe; - depositCount_gt?: InputMaybe; - depositCount_gte?: InputMaybe; - depositCount_in?: InputMaybe>; - depositCount_lt?: InputMaybe; - depositCount_lte?: InputMaybe; - depositCount_not?: InputMaybe; - depositCount_not_in?: InputMaybe>; - deposits_?: 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>; - openPositionCount?: InputMaybe; - openPositionCount_gt?: InputMaybe; - openPositionCount_gte?: InputMaybe; - openPositionCount_in?: InputMaybe>; - openPositionCount_lt?: InputMaybe; - openPositionCount_lte?: InputMaybe; - openPositionCount_not?: InputMaybe; - openPositionCount_not_in?: InputMaybe>; + burns_?: InputMaybe; + id?: InputMaybe; + id_contains?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_contains?: InputMaybe; + id_not_in?: InputMaybe>; + mints_?: InputMaybe; or?: InputMaybe>>; - positionCount?: InputMaybe; - positionCount_gt?: InputMaybe; - positionCount_gte?: InputMaybe; - positionCount_in?: InputMaybe>; - positionCount_lt?: InputMaybe; - positionCount_lte?: InputMaybe; - positionCount_not?: InputMaybe; - positionCount_not_in?: InputMaybe>; positions_?: InputMaybe; - swapCount?: InputMaybe; - swapCount_gt?: InputMaybe; - swapCount_gte?: InputMaybe; - swapCount_in?: InputMaybe>; - swapCount_lt?: InputMaybe; - swapCount_lte?: InputMaybe; - swapCount_not?: InputMaybe; - swapCount_not_in?: InputMaybe>; swaps_?: InputMaybe; - withdrawCount?: InputMaybe; - withdrawCount_gt?: InputMaybe; - withdrawCount_gte?: InputMaybe; - withdrawCount_in?: InputMaybe>; - withdrawCount_lt?: InputMaybe; - withdrawCount_lte?: InputMaybe; - withdrawCount_not?: InputMaybe; - withdrawCount_not_in?: InputMaybe>; - withdraws_?: InputMaybe; }; export enum Account_OrderBy { - ClosedPositionCount = 'closedPositionCount', - DepositCount = 'depositCount', - Deposits = 'deposits', + Burns = 'burns', Id = 'id', - OpenPositionCount = 'openPositionCount', - PositionCount = 'positionCount', + Mints = 'mints', Positions = 'positions', - SwapCount = 'swapCount', - Swaps = 'swaps', - WithdrawCount = 'withdrawCount', - Withdraws = 'withdraws' + Swaps = 'swaps' } -export type ActiveAccount = { - __typename?: 'ActiveAccount'; - /** { daily/hourly }-{ Address of the account }-{ Days/hours since Unix epoch } */ +export type BlockChangedFilter = { + number_gte: Scalars['Int']['input']; +}; + +export type Block_Height = { + hash?: InputMaybe; + number?: InputMaybe; + number_gte?: InputMaybe; +}; + +export type Bundle = { + __typename?: 'Bundle'; + ethPriceUSD: Scalars['BigDecimal']['output']; id: Scalars['ID']['output']; }; -export type ActiveAccount_Filter = { +export type Bundle_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; + ethPriceUSD?: InputMaybe; + ethPriceUSD_gt?: InputMaybe; + ethPriceUSD_gte?: InputMaybe; + ethPriceUSD_in?: InputMaybe>; + ethPriceUSD_lt?: InputMaybe; + ethPriceUSD_lte?: InputMaybe; + ethPriceUSD_not?: InputMaybe; + ethPriceUSD_not_in?: InputMaybe>; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -179,123 +133,53 @@ export type ActiveAccount_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; }; -export enum ActiveAccount_OrderBy { +export enum Bundle_OrderBy { + EthPriceUsd = 'ethPriceUSD', Id = 'id' } -export enum Aggregation_Interval { - Day = 'day', - Hour = 'hour' -} - -export type BlockChangedFilter = { - number_gte: Scalars['Int']['input']; -}; - -export type Block_Height = { - hash?: InputMaybe; - number?: InputMaybe; - number_gte?: InputMaybe; -}; - -/** - * An event is any user action that occurs in a protocol. Generally, they are Ethereum events - * emitted by a function in the smart contracts, stored in transaction receipts as event logs. - * However, some user actions of interest are function calls that don't emit events. For example, - * the deposit and withdraw functions in Yearn do not emit any events. In our subgraphs, we still - * store them as events, although they are not technically Ethereum events emitted by smart - * contracts. - * - */ -export type Deposit = { - __typename?: 'Deposit'; - /** Account that emitted this event */ - account: Account; - /** USD-normalized value of the transaction of the underlying (e.g. sum of tokens deposited into a pool) */ +export type Burn = Event & { + __typename?: 'Burn'; + amount: Scalars['BigInt']['output']; + amount0: Scalars['BigDecimal']['output']; + amount1: Scalars['BigDecimal']['output']; amountUSD: Scalars['BigDecimal']['output']; - /** Block number of this event */ - blockNumber: Scalars['BigInt']['output']; - /** Gas limit of the transaction that emitted this event */ - gasLimit?: Maybe; - /** Gas price of the transaction that emitted this event */ - gasPrice?: Maybe; - /** Gas used in this transaction. (Optional because not every chain will support this) */ - gasUsed?: Maybe; - /** Transaction hash of the transaction that emitted this event */ - hash: Scalars['Bytes']['output']; - /** { Transaction hash }-{ Log index } */ id: Scalars['ID']['output']; - /** Amount of input tokens in the token's native unit */ - inputTokenAmounts: Array; - /** Input tokens of the pool. E.g. WETH and USDC to a WETH-USDC pool */ - inputTokens: Array; - /** Amount of liquidity minted */ - liquidity: Scalars['BigInt']['output']; - /** Event log index. For transactions that don't emit event, create arbitrary index starting from 0 */ - logIndex: Scalars['Int']['output']; - /** Nonce of the transaction that emitted this event */ - nonce: Scalars['BigInt']['output']; - /** The pool involving this event */ - pool: LiquidityPool; - /** The user position changed by this event */ - position?: Maybe; - /** The protocol this transaction belongs to */ - protocol: DexAmmProtocol; - /** Amount of input tokens in the liquidity pool */ - reserveAmounts?: Maybe>; - /** lower tick of position */ - tickLower?: Maybe; - /** upper tick of position */ - tickUpper?: Maybe; - /** Timestamp of this event */ + logIndex?: Maybe; + origin: Account; + owner?: Maybe; + pool: Pool; + tickLower: Scalars['BigInt']['output']; + tickUpper: Scalars['BigInt']['output']; timestamp: Scalars['BigInt']['output']; + token0: Token; + token1: Token; + transaction: Transaction; }; - -/** - * An event is any user action that occurs in a protocol. Generally, they are Ethereum events - * emitted by a function in the smart contracts, stored in transaction receipts as event logs. - * However, some user actions of interest are function calls that don't emit events. For example, - * the deposit and withdraw functions in Yearn do not emit any events. In our subgraphs, we still - * store them as events, although they are not technically Ethereum events emitted by smart - * contracts. - * - */ -export type DepositInputTokensArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - -export type Deposit_Filter = { +export type Burn_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - account?: InputMaybe; - account_?: InputMaybe; - account_contains?: InputMaybe; - account_contains_nocase?: InputMaybe; - account_ends_with?: InputMaybe; - account_ends_with_nocase?: InputMaybe; - account_gt?: InputMaybe; - account_gte?: InputMaybe; - account_in?: InputMaybe>; - account_lt?: InputMaybe; - account_lte?: InputMaybe; - account_not?: InputMaybe; - account_not_contains?: InputMaybe; - account_not_contains_nocase?: InputMaybe; - account_not_ends_with?: InputMaybe; - account_not_ends_with_nocase?: InputMaybe; - account_not_in?: InputMaybe>; - account_not_starts_with?: InputMaybe; - account_not_starts_with_nocase?: InputMaybe; - account_starts_with?: InputMaybe; - account_starts_with_nocase?: InputMaybe; + amount?: InputMaybe; + amount0?: InputMaybe; + amount0_gt?: InputMaybe; + amount0_gte?: InputMaybe; + amount0_in?: InputMaybe>; + amount0_lt?: InputMaybe; + amount0_lte?: InputMaybe; + amount0_not?: InputMaybe; + amount0_not_in?: InputMaybe>; + amount1?: InputMaybe; + amount1_gt?: InputMaybe; + amount1_gte?: InputMaybe; + amount1_in?: InputMaybe>; + amount1_lt?: InputMaybe; + amount1_lte?: InputMaybe; + amount1_not?: InputMaybe; + amount1_not_in?: InputMaybe>; amountUSD?: InputMaybe; amountUSD_gt?: InputMaybe; amountUSD_gte?: InputMaybe; @@ -304,49 +188,14 @@ export type Deposit_Filter = { amountUSD_lte?: InputMaybe; amountUSD_not?: InputMaybe; amountUSD_not_in?: InputMaybe>; - and?: InputMaybe>>; - blockNumber?: InputMaybe; - blockNumber_gt?: InputMaybe; - blockNumber_gte?: InputMaybe; - blockNumber_in?: InputMaybe>; - blockNumber_lt?: InputMaybe; - blockNumber_lte?: InputMaybe; - blockNumber_not?: InputMaybe; - blockNumber_not_in?: InputMaybe>; - gasLimit?: InputMaybe; - gasLimit_gt?: InputMaybe; - gasLimit_gte?: InputMaybe; - gasLimit_in?: InputMaybe>; - gasLimit_lt?: InputMaybe; - gasLimit_lte?: InputMaybe; - gasLimit_not?: InputMaybe; - gasLimit_not_in?: InputMaybe>; - gasPrice?: InputMaybe; - gasPrice_gt?: InputMaybe; - gasPrice_gte?: InputMaybe; - gasPrice_in?: InputMaybe>; - gasPrice_lt?: InputMaybe; - gasPrice_lte?: InputMaybe; - gasPrice_not?: InputMaybe; - gasPrice_not_in?: InputMaybe>; - gasUsed?: InputMaybe; - gasUsed_gt?: InputMaybe; - gasUsed_gte?: InputMaybe; - gasUsed_in?: InputMaybe>; - gasUsed_lt?: InputMaybe; - gasUsed_lte?: InputMaybe; - gasUsed_not?: InputMaybe; - gasUsed_not_in?: InputMaybe>; - hash?: InputMaybe; - hash_contains?: InputMaybe; - hash_gt?: InputMaybe; - hash_gte?: InputMaybe; - hash_in?: InputMaybe>; - hash_lt?: InputMaybe; - hash_lte?: InputMaybe; - hash_not?: InputMaybe; - hash_not_contains?: InputMaybe; - hash_not_in?: 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>>; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -355,46 +204,59 @@ export type Deposit_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - inputTokenAmounts?: InputMaybe>; - inputTokenAmounts_contains?: InputMaybe>; - inputTokenAmounts_contains_nocase?: InputMaybe>; - inputTokenAmounts_not?: InputMaybe>; - inputTokenAmounts_not_contains?: InputMaybe>; - inputTokenAmounts_not_contains_nocase?: InputMaybe>; - inputTokens?: InputMaybe>; - inputTokens_?: InputMaybe; - inputTokens_contains?: InputMaybe>; - inputTokens_contains_nocase?: InputMaybe>; - inputTokens_not?: InputMaybe>; - inputTokens_not_contains?: InputMaybe>; - inputTokens_not_contains_nocase?: 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>; - logIndex?: InputMaybe; - logIndex_gt?: InputMaybe; - logIndex_gte?: InputMaybe; - logIndex_in?: InputMaybe>; - logIndex_lt?: InputMaybe; - logIndex_lte?: InputMaybe; - logIndex_not?: InputMaybe; - logIndex_not_in?: InputMaybe>; - nonce?: InputMaybe; - nonce_gt?: InputMaybe; - nonce_gte?: InputMaybe; - nonce_in?: InputMaybe>; - nonce_lt?: InputMaybe; - nonce_lte?: InputMaybe; - nonce_not?: InputMaybe; - nonce_not_in?: InputMaybe>; - or?: InputMaybe>>; + logIndex?: InputMaybe; + logIndex_gt?: InputMaybe; + logIndex_gte?: InputMaybe; + logIndex_in?: InputMaybe>; + logIndex_lt?: InputMaybe; + logIndex_lte?: InputMaybe; + logIndex_not?: InputMaybe; + logIndex_not_in?: InputMaybe>; + or?: InputMaybe>>; + origin?: InputMaybe; + origin_?: InputMaybe; + origin_contains?: InputMaybe; + origin_contains_nocase?: InputMaybe; + origin_ends_with?: InputMaybe; + origin_ends_with_nocase?: InputMaybe; + origin_gt?: InputMaybe; + origin_gte?: InputMaybe; + origin_in?: InputMaybe>; + origin_lt?: InputMaybe; + origin_lte?: InputMaybe; + origin_not?: InputMaybe; + origin_not_contains?: InputMaybe; + origin_not_contains_nocase?: InputMaybe; + origin_not_ends_with?: InputMaybe; + origin_not_ends_with_nocase?: InputMaybe; + origin_not_in?: InputMaybe>; + origin_not_starts_with?: InputMaybe; + origin_not_starts_with_nocase?: InputMaybe; + origin_starts_with?: InputMaybe; + origin_starts_with_nocase?: InputMaybe; + owner?: InputMaybe; + owner_?: InputMaybe; + owner_contains?: InputMaybe; + owner_contains_nocase?: InputMaybe; + owner_ends_with?: InputMaybe; + owner_ends_with_nocase?: InputMaybe; + owner_gt?: InputMaybe; + owner_gte?: InputMaybe; + owner_in?: InputMaybe>; + owner_lt?: InputMaybe; + owner_lte?: InputMaybe; + owner_not?: InputMaybe; + owner_not_contains?: InputMaybe; + owner_not_contains_nocase?: InputMaybe; + owner_not_ends_with?: InputMaybe; + owner_not_ends_with_nocase?: InputMaybe; + owner_not_in?: InputMaybe>; + owner_not_starts_with?: InputMaybe; + owner_not_starts_with_nocase?: InputMaybe; + owner_starts_with?: InputMaybe; + owner_starts_with_nocase?: InputMaybe; pool?: InputMaybe; - pool_?: InputMaybe; + pool_?: InputMaybe; pool_contains?: InputMaybe; pool_contains_nocase?: InputMaybe; pool_ends_with?: InputMaybe; @@ -414,54 +276,6 @@ export type Deposit_Filter = { pool_not_starts_with_nocase?: InputMaybe; pool_starts_with?: InputMaybe; pool_starts_with_nocase?: InputMaybe; - position?: InputMaybe; - position_?: InputMaybe; - position_contains?: InputMaybe; - position_contains_nocase?: InputMaybe; - position_ends_with?: InputMaybe; - position_ends_with_nocase?: InputMaybe; - position_gt?: InputMaybe; - position_gte?: InputMaybe; - position_in?: InputMaybe>; - position_lt?: InputMaybe; - position_lte?: InputMaybe; - position_not?: InputMaybe; - position_not_contains?: InputMaybe; - position_not_contains_nocase?: InputMaybe; - position_not_ends_with?: InputMaybe; - position_not_ends_with_nocase?: InputMaybe; - position_not_in?: InputMaybe>; - position_not_starts_with?: InputMaybe; - position_not_starts_with_nocase?: InputMaybe; - position_starts_with?: InputMaybe; - position_starts_with_nocase?: InputMaybe; - protocol?: InputMaybe; - protocol_?: InputMaybe; - protocol_contains?: InputMaybe; - protocol_contains_nocase?: InputMaybe; - protocol_ends_with?: InputMaybe; - protocol_ends_with_nocase?: InputMaybe; - protocol_gt?: InputMaybe; - protocol_gte?: InputMaybe; - protocol_in?: InputMaybe>; - protocol_lt?: InputMaybe; - protocol_lte?: InputMaybe; - protocol_not?: InputMaybe; - protocol_not_contains?: InputMaybe; - protocol_not_contains_nocase?: InputMaybe; - protocol_not_ends_with?: InputMaybe; - protocol_not_ends_with_nocase?: InputMaybe; - protocol_not_in?: InputMaybe>; - protocol_not_starts_with?: InputMaybe; - protocol_not_starts_with_nocase?: InputMaybe; - protocol_starts_with?: InputMaybe; - protocol_starts_with_nocase?: InputMaybe; - reserveAmounts?: InputMaybe>; - reserveAmounts_contains?: InputMaybe>; - reserveAmounts_contains_nocase?: InputMaybe>; - reserveAmounts_not?: InputMaybe>; - reserveAmounts_not_contains?: InputMaybe>; - reserveAmounts_not_contains_nocase?: InputMaybe>; tickLower?: InputMaybe; tickLower_gt?: InputMaybe; tickLower_gte?: InputMaybe; @@ -486,373 +300,203 @@ export type Deposit_Filter = { timestamp_lte?: InputMaybe; timestamp_not?: InputMaybe; timestamp_not_in?: InputMaybe>; -}; - -export enum Deposit_OrderBy { - Account = 'account', - AccountClosedPositionCount = 'account__closedPositionCount', - AccountDepositCount = 'account__depositCount', - AccountId = 'account__id', - AccountOpenPositionCount = 'account__openPositionCount', - AccountPositionCount = 'account__positionCount', - AccountSwapCount = 'account__swapCount', - AccountWithdrawCount = 'account__withdrawCount', + 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; + transaction?: InputMaybe; + transaction_?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_contains_nocase?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_ends_with_nocase?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_contains_nocase?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_ends_with_nocase?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_not_starts_with_nocase?: InputMaybe; + transaction_starts_with?: InputMaybe; + transaction_starts_with_nocase?: InputMaybe; +}; + +export enum Burn_OrderBy { + Amount = 'amount', + Amount0 = 'amount0', + Amount1 = 'amount1', AmountUsd = 'amountUSD', - BlockNumber = 'blockNumber', - GasLimit = 'gasLimit', - GasPrice = 'gasPrice', - GasUsed = 'gasUsed', - Hash = 'hash', Id = 'id', - InputTokenAmounts = 'inputTokenAmounts', - InputTokens = 'inputTokens', - Liquidity = 'liquidity', LogIndex = 'logIndex', - Nonce = 'nonce', + Origin = 'origin', + OriginId = 'origin__id', + Owner = 'owner', + OwnerId = 'owner__id', Pool = 'pool', - PoolActiveLiquidity = 'pool__activeLiquidity', - PoolActiveLiquidityEth = 'pool__activeLiquidityETH', - PoolActiveLiquidityUsd = 'pool__activeLiquidityUSD', + PoolBalanceOfBlock = 'pool__balanceOfBlock', PoolClosedPositionCount = 'pool__closedPositionCount', - PoolCreatedBlockNumber = 'pool__createdBlockNumber', - PoolCreatedTimestamp = 'pool__createdTimestamp', - PoolCumulativeDepositCount = 'pool__cumulativeDepositCount', - PoolCumulativeProtocolSideRevenueEth = 'pool__cumulativeProtocolSideRevenueETH', - PoolCumulativeProtocolSideRevenueUsd = 'pool__cumulativeProtocolSideRevenueUSD', - PoolCumulativeSupplySideRevenueEth = 'pool__cumulativeSupplySideRevenueETH', - PoolCumulativeSupplySideRevenueUsd = 'pool__cumulativeSupplySideRevenueUSD', - PoolCumulativeSwapCount = 'pool__cumulativeSwapCount', - PoolCumulativeTotalRevenueEth = 'pool__cumulativeTotalRevenueETH', - PoolCumulativeTotalRevenueUsd = 'pool__cumulativeTotalRevenueUSD', - PoolCumulativeVolumeEth = 'pool__cumulativeVolumeETH', - PoolCumulativeVolumeUsd = 'pool__cumulativeVolumeUSD', - PoolCumulativeWithdrawCount = 'pool__cumulativeWithdrawCount', + PoolCollectedFeesToken0 = 'pool__collectedFeesToken0', + PoolCollectedFeesToken1 = 'pool__collectedFeesToken1', + PoolCollectedFeesUsd = 'pool__collectedFeesUSD', + PoolCollectedVaultWethFees = 'pool__collectedVaultWETHFees', + PoolCreatedAtBlockNumber = 'pool__createdAtBlockNumber', + PoolCreatedAtTimestamp = 'pool__createdAtTimestamp', + PoolFeeGrowthGlobal0X128 = 'pool__feeGrowthGlobal0X128', + PoolFeeGrowthGlobal1X128 = 'pool__feeGrowthGlobal1X128', + PoolFeeTier = 'pool__feeTier', + PoolFeesUsd = 'pool__feesUSD', PoolId = 'pool__id', - PoolIsSingleSided = 'pool__isSingleSided', - PoolLastSnapshotDayId = 'pool__lastSnapshotDayID', - PoolLastSnapshotHourId = 'pool__lastSnapshotHourID', - PoolLastUpdateBlockNumber = 'pool__lastUpdateBlockNumber', - PoolLastUpdateTimestamp = 'pool__lastUpdateTimestamp', - PoolLiquidityTokenType = 'pool__liquidityTokenType', + PoolLiquidity = 'pool__liquidity', + PoolLiquidityProviderCount = 'pool__liquidityProviderCount', PoolName = 'pool__name', + PoolObservationIndex = 'pool__observationIndex', PoolOpenPositionCount = 'pool__openPositionCount', - PoolPositionCount = 'pool__positionCount', - PoolStakedOutputTokenAmount = 'pool__stakedOutputTokenAmount', + PoolSqrtPrice = 'pool__sqrtPrice', PoolSymbol = 'pool__symbol', PoolTick = 'pool__tick', + PoolToken0Price = 'pool__token0Price', + PoolToken1Price = 'pool__token1Price', PoolTotalLiquidity = 'pool__totalLiquidity', - PoolTotalLiquidityEth = 'pool__totalLiquidityETH', - PoolTotalLiquidityUsd = 'pool__totalLiquidityUSD', PoolTotalValueLockedEth = 'pool__totalValueLockedETH', + PoolTotalValueLockedToken0 = 'pool__totalValueLockedToken0', + PoolTotalValueLockedToken1 = 'pool__totalValueLockedToken1', PoolTotalValueLockedUsd = 'pool__totalValueLockedUSD', - Position = 'position', - PositionBlockNumberClosed = 'position__blockNumberClosed', - PositionBlockNumberOpened = 'position__blockNumberOpened', - PositionCumulativeDepositUsd = 'position__cumulativeDepositUSD', - PositionCumulativeWithdrawUsd = 'position__cumulativeWithdrawUSD', - PositionDepositCount = 'position__depositCount', - PositionHashClosed = 'position__hashClosed', - PositionHashOpened = 'position__hashOpened', - PositionId = 'position__id', - PositionLiquidity = 'position__liquidity', - PositionLiquidityEth = 'position__liquidityETH', - PositionLiquidityTokenType = 'position__liquidityTokenType', - PositionLiquidityUsd = 'position__liquidityUSD', - PositionLockedUntil = 'position__lockedUntil', - PositionNfpmAddress = 'position__nfpmAddress', - PositionTimestampClosed = 'position__timestampClosed', - PositionTimestampOpened = 'position__timestampOpened', - PositionTokenId = 'position__tokenId', - PositionWithdrawCount = 'position__withdrawCount', - Protocol = 'protocol', - ProtocolRegenesis = 'protocol___regenesis', - ProtocolActiveLiquidityEth = 'protocol__activeLiquidityETH', - ProtocolActiveLiquidityUsd = 'protocol__activeLiquidityUSD', - ProtocolCumulativePositionCount = 'protocol__cumulativePositionCount', - ProtocolCumulativeProtocolSideRevenueEth = 'protocol__cumulativeProtocolSideRevenueETH', - ProtocolCumulativeProtocolSideRevenueUsd = 'protocol__cumulativeProtocolSideRevenueUSD', - ProtocolCumulativeSupplySideRevenueEth = 'protocol__cumulativeSupplySideRevenueETH', - ProtocolCumulativeSupplySideRevenueUsd = 'protocol__cumulativeSupplySideRevenueUSD', - ProtocolCumulativeTotalRevenueEth = 'protocol__cumulativeTotalRevenueETH', - ProtocolCumulativeTotalRevenueUsd = 'protocol__cumulativeTotalRevenueUSD', - ProtocolCumulativeUniqueLPs = 'protocol__cumulativeUniqueLPs', - ProtocolCumulativeUniqueTraders = 'protocol__cumulativeUniqueTraders', - ProtocolCumulativeUniqueUsers = 'protocol__cumulativeUniqueUsers', - ProtocolCumulativeVolumeEth = 'protocol__cumulativeVolumeETH', - ProtocolCumulativeVolumeUsd = 'protocol__cumulativeVolumeUSD', - ProtocolId = 'protocol__id', - ProtocolLastSnapshotDayId = 'protocol__lastSnapshotDayID', - ProtocolLastUpdateBlockNumber = 'protocol__lastUpdateBlockNumber', - ProtocolLastUpdateTimestamp = 'protocol__lastUpdateTimestamp', - ProtocolMethodologyVersion = 'protocol__methodologyVersion', - ProtocolName = 'protocol__name', - ProtocolNetwork = 'protocol__network', - ProtocolOpenPositionCount = 'protocol__openPositionCount', - ProtocolProtocolControlledValueUsd = 'protocol__protocolControlledValueUSD', - ProtocolSchemaVersion = 'protocol__schemaVersion', - ProtocolSlug = 'protocol__slug', - ProtocolSubgraphVersion = 'protocol__subgraphVersion', - ProtocolTotalLiquidityEth = 'protocol__totalLiquidityETH', - ProtocolTotalLiquidityUsd = 'protocol__totalLiquidityUSD', - ProtocolTotalPoolCount = 'protocol__totalPoolCount', - ProtocolTotalValueLockedEth = 'protocol__totalValueLockedETH', - ProtocolTotalValueLockedUsd = 'protocol__totalValueLockedUSD', - ProtocolType = 'protocol__type', - ProtocolUncollectedProtocolSideValueEth = 'protocol__uncollectedProtocolSideValueETH', - ProtocolUncollectedProtocolSideValueUsd = 'protocol__uncollectedProtocolSideValueUSD', - ProtocolUncollectedSupplySideValueEth = 'protocol__uncollectedSupplySideValueETH', - ProtocolUncollectedSupplySideValueUsd = 'protocol__uncollectedSupplySideValueUSD', - ReserveAmounts = 'reserveAmounts', + PoolTotalValueLockedUsdUntracked = 'pool__totalValueLockedUSDUntracked', + PoolTxCount = 'pool__txCount', + PoolUntrackedVolumeUsd = 'pool__untrackedVolumeUSD', + PoolVolumeToken0 = 'pool__volumeToken0', + PoolVolumeToken1 = 'pool__volumeToken1', + PoolVolumeUsd = 'pool__volumeUSD', TickLower = 'tickLower', TickUpper = 'tickUpper', - Timestamp = 'timestamp' + Timestamp = 'timestamp', + Token0 = 'token0', + Token0Decimals = 'token0__decimals', + Token0DerivedEth = 'token0__derivedETH', + Token0DerivedUsd = 'token0__derivedUSD', + Token0FeesUsd = 'token0__feesUSD', + Token0Id = 'token0__id', + Token0Name = 'token0__name', + Token0PoolCount = 'token0__poolCount', + Token0Symbol = 'token0__symbol', + Token0TotalSupply = 'token0__totalSupply', + Token0TotalValueLocked = 'token0__totalValueLocked', + Token0TotalValueLockedUsd = 'token0__totalValueLockedUSD', + Token0TotalValueLockedUsdUntracked = 'token0__totalValueLockedUSDUntracked', + Token0TxCount = 'token0__txCount', + Token0UntrackedVolumeUsd = 'token0__untrackedVolumeUSD', + Token0Volume = 'token0__volume', + Token0VolumeUsd = 'token0__volumeUSD', + Token1 = 'token1', + Token1Decimals = 'token1__decimals', + Token1DerivedEth = 'token1__derivedETH', + Token1DerivedUsd = 'token1__derivedUSD', + Token1FeesUsd = 'token1__feesUSD', + Token1Id = 'token1__id', + Token1Name = 'token1__name', + Token1PoolCount = 'token1__poolCount', + Token1Symbol = 'token1__symbol', + Token1TotalSupply = 'token1__totalSupply', + Token1TotalValueLocked = 'token1__totalValueLocked', + Token1TotalValueLockedUsd = 'token1__totalValueLockedUSD', + Token1TotalValueLockedUsdUntracked = 'token1__totalValueLockedUSDUntracked', + Token1TxCount = 'token1__txCount', + Token1UntrackedVolumeUsd = 'token1__untrackedVolumeUSD', + Token1Volume = 'token1__volume', + Token1VolumeUsd = 'token1__volumeUSD', + Transaction = 'transaction', + TransactionBlockNumber = 'transaction__blockNumber', + TransactionGasPrice = 'transaction__gasPrice', + TransactionGasUsed = 'transaction__gasUsed', + TransactionId = 'transaction__id', + TransactionTimestamp = 'transaction__timestamp' } -export type DexAmmProtocol = Protocol & { - __typename?: 'DexAmmProtocol'; - /** This is a boolean to indicate whether or not the pools have been instantiated the were initialized before Optimism regenesis */ - _regenesis: Scalars['Boolean']['output']; - /** All liquidity in ETH that is active. Will be equal to totalLiquidity except for in concentrated liquidity - where activeLiquidity is all liquidity positions that contain the pools current tick. */ - activeLiquidityETH: Scalars['BigDecimal']['output']; - /** All liquidity in USD that is active. Will be equal to totalLiquidity except for in concentrated liquidity - where activeLiquidity is all liquidity positions that contain the pools current tick. */ - activeLiquidityUSD: Scalars['BigDecimal']['output']; - /** Total number of positions (open and closed) */ - cumulativePositionCount: Scalars['Int']['output']; - /** Gross revenue for the protocol (revenue claimed by protocol). Examples: AMM protocol fee (Sushi’s 0.05%). OpenSea 10% sell fee. */ - cumulativeProtocolSideRevenueETH: Scalars['BigDecimal']['output']; - /** Gross revenue for the protocol (revenue claimed by protocol). Examples: AMM protocol fee (Sushi’s 0.05%). OpenSea 10% sell fee. */ - cumulativeProtocolSideRevenueUSD: Scalars['BigDecimal']['output']; - /** Revenue claimed by suppliers to the protocol. LPs on DEXs (e.g. 0.25% of the swap fee in Sushiswap). Depositors on Lending Protocols. NFT sellers on OpenSea. */ - cumulativeSupplySideRevenueETH: Scalars['BigDecimal']['output']; - /** Revenue claimed by suppliers to the protocol. LPs on DEXs (e.g. 0.25% of the swap fee in Sushiswap). Depositors on Lending Protocols. NFT sellers on OpenSea. */ - cumulativeSupplySideRevenueUSD: Scalars['BigDecimal']['output']; - /** All revenue generated by the protocol. e.g. 0.30% of swap fee in Sushiswap, all yield generated by Yearn. */ - cumulativeTotalRevenueETH: Scalars['BigDecimal']['output']; - /** All revenue generated by the protocol. e.g. 0.30% of swap fee in Sushiswap, all yield generated by Yearn. */ - cumulativeTotalRevenueUSD: Scalars['BigDecimal']['output']; - /** Number of cumulative liquidity providers */ - cumulativeUniqueLPs: Scalars['Int']['output']; - /** Number of cumulative traders */ - cumulativeUniqueTraders: Scalars['Int']['output']; - /** Number of cumulative unique users */ - cumulativeUniqueUsers: Scalars['Int']['output']; - /** All historical volume in ETH */ - cumulativeVolumeETH: Scalars['BigDecimal']['output']; - /** All historical volume in USD */ - cumulativeVolumeUSD: Scalars['BigDecimal']['output']; - /** Daily usage metrics for this protocol */ - dailyUsageMetrics: Array; - /** Daily financial metrics for this protocol */ - financialMetrics: Array; - /** Hourly usage metrics for this protocol */ - hourlyUsageMetrics: Array; - /** Smart contract address of the protocol's main contract (Factory, Registry, etc) */ +export type Collect = Event & { + __typename?: 'Collect'; + amount0: Scalars['BigDecimal']['output']; + amount1: Scalars['BigDecimal']['output']; + amountUSD: Scalars['BigDecimal']['output']; id: Scalars['ID']['output']; - /** Day ID of the most recent daily snapshot */ - lastSnapshotDayID: Scalars['Int']['output']; - /** Block number of the last time this entity was updated */ - lastUpdateBlockNumber: Scalars['BigInt']['output']; - /** Timestamp of the last time this entity was updated */ - lastUpdateTimestamp: Scalars['BigInt']['output']; - /** Version of the methodology used to compute metrics, loosely based on SemVer format (e.g. 1.0.0) */ - methodologyVersion: Scalars['String']['output']; - /** Name of the protocol, including version. e.g. Uniswap v3 */ - name: Scalars['String']['output']; - /** The blockchain network this subgraph is indexing on */ - network: Network; - /** Total number of open positions */ - openPositionCount: Scalars['Int']['output']; - /** All pools that belong to this protocol */ - pools: Array; - /** Current PCV (Protocol Controlled Value). Only relevant for protocols with PCV. */ - protocolControlledValueUSD?: Maybe; - /** Version of the subgraph schema, in SemVer format (e.g. 1.0.0) */ - schemaVersion: Scalars['String']['output']; - /** Slug of protocol, including version. e.g. uniswap-v3 */ - slug: Scalars['String']['output']; - /** Version of the subgraph implementation, in SemVer format (e.g. 1.0.0) */ - subgraphVersion: Scalars['String']['output']; - /** The sum of all active and non-active liquidity in ETH for this pool. */ - totalLiquidityETH: Scalars['BigDecimal']['output']; - /** The sum of all active and non-active liquidity in USD for this pool. */ - totalLiquidityUSD: Scalars['BigDecimal']['output']; - /** Total number of pools */ - totalPoolCount: Scalars['Int']['output']; - /** Current TVL (Total Value Locked) of the entire protocol in ETH */ - totalValueLockedETH: Scalars['BigDecimal']['output']; - /** Current TVL (Total Value Locked) of the entire protocol */ - totalValueLockedUSD: Scalars['BigDecimal']['output']; - /** The type of protocol (e.g. DEX, Lending, Yield, etc) */ - type: ProtocolType; - /** All protocol-side value locking in USD that remains uncollected and unused in the protocol. */ - uncollectedProtocolSideValueETH: Scalars['BigDecimal']['output']; - /** All protocol-side value locking in USD that remains uncollected and unused in the protocol. */ - uncollectedProtocolSideValueUSD: Scalars['BigDecimal']['output']; - /** All supply-side value locking in USD that remains uncollected and unused in the protocol. */ - uncollectedSupplySideValueETH: Scalars['BigDecimal']['output']; - /** All supply-side value locking in USD that remains uncollected and unused in the protocol. */ - uncollectedSupplySideValueUSD: Scalars['BigDecimal']['output']; -}; - - -export type DexAmmProtocolDailyUsageMetricsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type DexAmmProtocolFinancialMetricsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type DexAmmProtocolHourlyUsageMetricsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type DexAmmProtocolPoolsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; + logIndex?: Maybe; + owner?: Maybe; + pool: Pool; + timestamp: Scalars['BigInt']['output']; + transaction: Transaction; }; -export type DexAmmProtocol_Filter = { +export type Collect_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - _regenesis?: InputMaybe; - _regenesis_in?: InputMaybe>; - _regenesis_not?: InputMaybe; - _regenesis_not_in?: InputMaybe>; - activeLiquidityETH?: InputMaybe; - activeLiquidityETH_gt?: InputMaybe; - activeLiquidityETH_gte?: InputMaybe; - activeLiquidityETH_in?: InputMaybe>; - activeLiquidityETH_lt?: InputMaybe; - activeLiquidityETH_lte?: InputMaybe; - activeLiquidityETH_not?: InputMaybe; - activeLiquidityETH_not_in?: InputMaybe>; - activeLiquidityUSD?: InputMaybe; - activeLiquidityUSD_gt?: InputMaybe; - activeLiquidityUSD_gte?: InputMaybe; - activeLiquidityUSD_in?: InputMaybe>; - activeLiquidityUSD_lt?: InputMaybe; - activeLiquidityUSD_lte?: InputMaybe; - activeLiquidityUSD_not?: InputMaybe; - activeLiquidityUSD_not_in?: InputMaybe>; - and?: InputMaybe>>; - cumulativePositionCount?: InputMaybe; - cumulativePositionCount_gt?: InputMaybe; - cumulativePositionCount_gte?: InputMaybe; - cumulativePositionCount_in?: InputMaybe>; - cumulativePositionCount_lt?: InputMaybe; - cumulativePositionCount_lte?: InputMaybe; - cumulativePositionCount_not?: InputMaybe; - cumulativePositionCount_not_in?: InputMaybe>; - cumulativeProtocolSideRevenueETH?: InputMaybe; - cumulativeProtocolSideRevenueETH_gt?: InputMaybe; - cumulativeProtocolSideRevenueETH_gte?: InputMaybe; - cumulativeProtocolSideRevenueETH_in?: InputMaybe>; - cumulativeProtocolSideRevenueETH_lt?: InputMaybe; - cumulativeProtocolSideRevenueETH_lte?: InputMaybe; - cumulativeProtocolSideRevenueETH_not?: InputMaybe; - cumulativeProtocolSideRevenueETH_not_in?: InputMaybe>; - cumulativeProtocolSideRevenueUSD?: InputMaybe; - cumulativeProtocolSideRevenueUSD_gt?: InputMaybe; - cumulativeProtocolSideRevenueUSD_gte?: InputMaybe; - cumulativeProtocolSideRevenueUSD_in?: InputMaybe>; - cumulativeProtocolSideRevenueUSD_lt?: InputMaybe; - cumulativeProtocolSideRevenueUSD_lte?: InputMaybe; - cumulativeProtocolSideRevenueUSD_not?: InputMaybe; - cumulativeProtocolSideRevenueUSD_not_in?: InputMaybe>; - cumulativeSupplySideRevenueETH?: InputMaybe; - cumulativeSupplySideRevenueETH_gt?: InputMaybe; - cumulativeSupplySideRevenueETH_gte?: InputMaybe; - cumulativeSupplySideRevenueETH_in?: InputMaybe>; - cumulativeSupplySideRevenueETH_lt?: InputMaybe; - cumulativeSupplySideRevenueETH_lte?: InputMaybe; - cumulativeSupplySideRevenueETH_not?: InputMaybe; - cumulativeSupplySideRevenueETH_not_in?: InputMaybe>; - cumulativeSupplySideRevenueUSD?: InputMaybe; - cumulativeSupplySideRevenueUSD_gt?: InputMaybe; - cumulativeSupplySideRevenueUSD_gte?: InputMaybe; - cumulativeSupplySideRevenueUSD_in?: InputMaybe>; - cumulativeSupplySideRevenueUSD_lt?: InputMaybe; - cumulativeSupplySideRevenueUSD_lte?: InputMaybe; - cumulativeSupplySideRevenueUSD_not?: InputMaybe; - cumulativeSupplySideRevenueUSD_not_in?: InputMaybe>; - cumulativeTotalRevenueETH?: InputMaybe; - cumulativeTotalRevenueETH_gt?: InputMaybe; - cumulativeTotalRevenueETH_gte?: InputMaybe; - cumulativeTotalRevenueETH_in?: InputMaybe>; - cumulativeTotalRevenueETH_lt?: InputMaybe; - cumulativeTotalRevenueETH_lte?: InputMaybe; - cumulativeTotalRevenueETH_not?: InputMaybe; - cumulativeTotalRevenueETH_not_in?: InputMaybe>; - cumulativeTotalRevenueUSD?: InputMaybe; - cumulativeTotalRevenueUSD_gt?: InputMaybe; - cumulativeTotalRevenueUSD_gte?: InputMaybe; - cumulativeTotalRevenueUSD_in?: InputMaybe>; - cumulativeTotalRevenueUSD_lt?: InputMaybe; - cumulativeTotalRevenueUSD_lte?: InputMaybe; - cumulativeTotalRevenueUSD_not?: InputMaybe; - cumulativeTotalRevenueUSD_not_in?: InputMaybe>; - cumulativeUniqueLPs?: InputMaybe; - cumulativeUniqueLPs_gt?: InputMaybe; - cumulativeUniqueLPs_gte?: InputMaybe; - cumulativeUniqueLPs_in?: InputMaybe>; - cumulativeUniqueLPs_lt?: InputMaybe; - cumulativeUniqueLPs_lte?: InputMaybe; - cumulativeUniqueLPs_not?: InputMaybe; - cumulativeUniqueLPs_not_in?: InputMaybe>; - cumulativeUniqueTraders?: InputMaybe; - cumulativeUniqueTraders_gt?: InputMaybe; - cumulativeUniqueTraders_gte?: InputMaybe; - cumulativeUniqueTraders_in?: InputMaybe>; - cumulativeUniqueTraders_lt?: InputMaybe; - cumulativeUniqueTraders_lte?: InputMaybe; - cumulativeUniqueTraders_not?: InputMaybe; - cumulativeUniqueTraders_not_in?: InputMaybe>; - cumulativeUniqueUsers?: InputMaybe; - cumulativeUniqueUsers_gt?: InputMaybe; - cumulativeUniqueUsers_gte?: InputMaybe; - cumulativeUniqueUsers_in?: InputMaybe>; - cumulativeUniqueUsers_lt?: InputMaybe; - cumulativeUniqueUsers_lte?: InputMaybe; - cumulativeUniqueUsers_not?: InputMaybe; - cumulativeUniqueUsers_not_in?: InputMaybe>; - cumulativeVolumeETH?: InputMaybe; - cumulativeVolumeETH_gt?: InputMaybe; - cumulativeVolumeETH_gte?: InputMaybe; - cumulativeVolumeETH_in?: InputMaybe>; - cumulativeVolumeETH_lt?: InputMaybe; - cumulativeVolumeETH_lte?: InputMaybe; - cumulativeVolumeETH_not?: InputMaybe; - cumulativeVolumeETH_not_in?: InputMaybe>; - cumulativeVolumeUSD?: InputMaybe; - cumulativeVolumeUSD_gt?: InputMaybe; - cumulativeVolumeUSD_gte?: InputMaybe; - cumulativeVolumeUSD_in?: InputMaybe>; - cumulativeVolumeUSD_lt?: InputMaybe; - cumulativeVolumeUSD_lte?: InputMaybe; - cumulativeVolumeUSD_not?: InputMaybe; - cumulativeVolumeUSD_not_in?: InputMaybe>; - dailyUsageMetrics_?: InputMaybe; - financialMetrics_?: InputMaybe; - hourlyUsageMetrics_?: InputMaybe; + amount0?: InputMaybe; + amount0_gt?: InputMaybe; + amount0_gte?: InputMaybe; + amount0_in?: InputMaybe>; + amount0_lt?: InputMaybe; + amount0_lte?: InputMaybe; + amount0_not?: InputMaybe; + amount0_not_in?: InputMaybe>; + amount1?: InputMaybe; + amount1_gt?: InputMaybe; + amount1_gte?: InputMaybe; + amount1_in?: InputMaybe>; + amount1_lt?: InputMaybe; + amount1_lte?: InputMaybe; + amount1_not?: InputMaybe; + amount1_not_in?: InputMaybe>; + amountUSD?: InputMaybe; + amountUSD_gt?: InputMaybe; + amountUSD_gte?: InputMaybe; + amountUSD_in?: InputMaybe>; + amountUSD_lt?: InputMaybe; + amountUSD_lte?: InputMaybe; + amountUSD_not?: InputMaybe; + amountUSD_not_in?: InputMaybe>; + and?: InputMaybe>>; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -861,546 +505,181 @@ export type DexAmmProtocol_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - lastSnapshotDayID?: InputMaybe; - lastSnapshotDayID_gt?: InputMaybe; - lastSnapshotDayID_gte?: InputMaybe; - lastSnapshotDayID_in?: InputMaybe>; - lastSnapshotDayID_lt?: InputMaybe; - lastSnapshotDayID_lte?: InputMaybe; - lastSnapshotDayID_not?: InputMaybe; - lastSnapshotDayID_not_in?: InputMaybe>; - lastUpdateBlockNumber?: InputMaybe; - lastUpdateBlockNumber_gt?: InputMaybe; - lastUpdateBlockNumber_gte?: InputMaybe; - lastUpdateBlockNumber_in?: InputMaybe>; - lastUpdateBlockNumber_lt?: InputMaybe; - lastUpdateBlockNumber_lte?: InputMaybe; - lastUpdateBlockNumber_not?: InputMaybe; - lastUpdateBlockNumber_not_in?: InputMaybe>; - lastUpdateTimestamp?: InputMaybe; - lastUpdateTimestamp_gt?: InputMaybe; - lastUpdateTimestamp_gte?: InputMaybe; - lastUpdateTimestamp_in?: InputMaybe>; - lastUpdateTimestamp_lt?: InputMaybe; - lastUpdateTimestamp_lte?: InputMaybe; - lastUpdateTimestamp_not?: InputMaybe; - lastUpdateTimestamp_not_in?: InputMaybe>; - methodologyVersion?: InputMaybe; - methodologyVersion_contains?: InputMaybe; - methodologyVersion_contains_nocase?: InputMaybe; - methodologyVersion_ends_with?: InputMaybe; - methodologyVersion_ends_with_nocase?: InputMaybe; - methodologyVersion_gt?: InputMaybe; - methodologyVersion_gte?: InputMaybe; - methodologyVersion_in?: InputMaybe>; - methodologyVersion_lt?: InputMaybe; - methodologyVersion_lte?: InputMaybe; - methodologyVersion_not?: InputMaybe; - methodologyVersion_not_contains?: InputMaybe; - methodologyVersion_not_contains_nocase?: InputMaybe; - methodologyVersion_not_ends_with?: InputMaybe; - methodologyVersion_not_ends_with_nocase?: InputMaybe; - methodologyVersion_not_in?: InputMaybe>; - methodologyVersion_not_starts_with?: InputMaybe; - methodologyVersion_not_starts_with_nocase?: InputMaybe; - methodologyVersion_starts_with?: InputMaybe; - methodologyVersion_starts_with_nocase?: InputMaybe; - name?: InputMaybe; - name_contains?: InputMaybe; - name_contains_nocase?: InputMaybe; - name_ends_with?: InputMaybe; - name_ends_with_nocase?: InputMaybe; - name_gt?: InputMaybe; - name_gte?: InputMaybe; - name_in?: InputMaybe>; - name_lt?: InputMaybe; - name_lte?: InputMaybe; - name_not?: InputMaybe; - name_not_contains?: InputMaybe; - name_not_contains_nocase?: InputMaybe; - name_not_ends_with?: InputMaybe; - name_not_ends_with_nocase?: InputMaybe; - name_not_in?: InputMaybe>; - name_not_starts_with?: InputMaybe; - name_not_starts_with_nocase?: InputMaybe; - name_starts_with?: InputMaybe; - name_starts_with_nocase?: InputMaybe; - network?: InputMaybe; - network_in?: InputMaybe>; - network_not?: InputMaybe; - network_not_in?: InputMaybe>; - openPositionCount?: InputMaybe; - openPositionCount_gt?: InputMaybe; - openPositionCount_gte?: InputMaybe; - openPositionCount_in?: InputMaybe>; - openPositionCount_lt?: InputMaybe; - openPositionCount_lte?: InputMaybe; - openPositionCount_not?: InputMaybe; - openPositionCount_not_in?: InputMaybe>; - or?: InputMaybe>>; - pools_?: InputMaybe; - protocolControlledValueUSD?: InputMaybe; - protocolControlledValueUSD_gt?: InputMaybe; - protocolControlledValueUSD_gte?: InputMaybe; - protocolControlledValueUSD_in?: InputMaybe>; - protocolControlledValueUSD_lt?: InputMaybe; - protocolControlledValueUSD_lte?: InputMaybe; - protocolControlledValueUSD_not?: InputMaybe; - protocolControlledValueUSD_not_in?: InputMaybe>; - schemaVersion?: InputMaybe; - schemaVersion_contains?: InputMaybe; - schemaVersion_contains_nocase?: InputMaybe; - schemaVersion_ends_with?: InputMaybe; - schemaVersion_ends_with_nocase?: InputMaybe; - schemaVersion_gt?: InputMaybe; - schemaVersion_gte?: InputMaybe; - schemaVersion_in?: InputMaybe>; - schemaVersion_lt?: InputMaybe; - schemaVersion_lte?: InputMaybe; - schemaVersion_not?: InputMaybe; - schemaVersion_not_contains?: InputMaybe; - schemaVersion_not_contains_nocase?: InputMaybe; - schemaVersion_not_ends_with?: InputMaybe; - schemaVersion_not_ends_with_nocase?: InputMaybe; - schemaVersion_not_in?: InputMaybe>; - schemaVersion_not_starts_with?: InputMaybe; - schemaVersion_not_starts_with_nocase?: InputMaybe; - schemaVersion_starts_with?: InputMaybe; - schemaVersion_starts_with_nocase?: InputMaybe; - slug?: InputMaybe; - slug_contains?: InputMaybe; - slug_contains_nocase?: InputMaybe; - slug_ends_with?: InputMaybe; - slug_ends_with_nocase?: InputMaybe; - slug_gt?: InputMaybe; - slug_gte?: InputMaybe; - slug_in?: InputMaybe>; - slug_lt?: InputMaybe; - slug_lte?: InputMaybe; - slug_not?: InputMaybe; - slug_not_contains?: InputMaybe; - slug_not_contains_nocase?: InputMaybe; - slug_not_ends_with?: InputMaybe; - slug_not_ends_with_nocase?: InputMaybe; - slug_not_in?: InputMaybe>; - slug_not_starts_with?: InputMaybe; - slug_not_starts_with_nocase?: InputMaybe; - slug_starts_with?: InputMaybe; - slug_starts_with_nocase?: InputMaybe; - subgraphVersion?: InputMaybe; - subgraphVersion_contains?: InputMaybe; - subgraphVersion_contains_nocase?: InputMaybe; - subgraphVersion_ends_with?: InputMaybe; - subgraphVersion_ends_with_nocase?: InputMaybe; - subgraphVersion_gt?: InputMaybe; - subgraphVersion_gte?: InputMaybe; - subgraphVersion_in?: InputMaybe>; - subgraphVersion_lt?: InputMaybe; - subgraphVersion_lte?: InputMaybe; - subgraphVersion_not?: InputMaybe; - subgraphVersion_not_contains?: InputMaybe; - subgraphVersion_not_contains_nocase?: InputMaybe; - subgraphVersion_not_ends_with?: InputMaybe; - subgraphVersion_not_ends_with_nocase?: InputMaybe; - subgraphVersion_not_in?: InputMaybe>; - subgraphVersion_not_starts_with?: InputMaybe; - subgraphVersion_not_starts_with_nocase?: InputMaybe; - subgraphVersion_starts_with?: InputMaybe; - subgraphVersion_starts_with_nocase?: InputMaybe; - totalLiquidityETH?: InputMaybe; - totalLiquidityETH_gt?: InputMaybe; - totalLiquidityETH_gte?: InputMaybe; - totalLiquidityETH_in?: InputMaybe>; - totalLiquidityETH_lt?: InputMaybe; - totalLiquidityETH_lte?: InputMaybe; - totalLiquidityETH_not?: InputMaybe; - totalLiquidityETH_not_in?: InputMaybe>; - totalLiquidityUSD?: InputMaybe; - totalLiquidityUSD_gt?: InputMaybe; - totalLiquidityUSD_gte?: InputMaybe; - totalLiquidityUSD_in?: InputMaybe>; - totalLiquidityUSD_lt?: InputMaybe; - totalLiquidityUSD_lte?: InputMaybe; - totalLiquidityUSD_not?: InputMaybe; - totalLiquidityUSD_not_in?: InputMaybe>; - totalPoolCount?: InputMaybe; - totalPoolCount_gt?: InputMaybe; - totalPoolCount_gte?: InputMaybe; - totalPoolCount_in?: InputMaybe>; - totalPoolCount_lt?: InputMaybe; - totalPoolCount_lte?: InputMaybe; - totalPoolCount_not?: InputMaybe; - totalPoolCount_not_in?: InputMaybe>; - totalValueLockedETH?: InputMaybe; - totalValueLockedETH_gt?: InputMaybe; - totalValueLockedETH_gte?: InputMaybe; - totalValueLockedETH_in?: InputMaybe>; - totalValueLockedETH_lt?: InputMaybe; - totalValueLockedETH_lte?: InputMaybe; - totalValueLockedETH_not?: InputMaybe; - totalValueLockedETH_not_in?: InputMaybe>; - totalValueLockedUSD?: InputMaybe; - totalValueLockedUSD_gt?: InputMaybe; - totalValueLockedUSD_gte?: InputMaybe; - totalValueLockedUSD_in?: InputMaybe>; - totalValueLockedUSD_lt?: InputMaybe; - totalValueLockedUSD_lte?: InputMaybe; - totalValueLockedUSD_not?: InputMaybe; - totalValueLockedUSD_not_in?: InputMaybe>; - type?: InputMaybe; - type_in?: InputMaybe>; - type_not?: InputMaybe; - type_not_in?: InputMaybe>; - uncollectedProtocolSideValueETH?: InputMaybe; - uncollectedProtocolSideValueETH_gt?: InputMaybe; - uncollectedProtocolSideValueETH_gte?: InputMaybe; - uncollectedProtocolSideValueETH_in?: InputMaybe>; - uncollectedProtocolSideValueETH_lt?: InputMaybe; - uncollectedProtocolSideValueETH_lte?: InputMaybe; - uncollectedProtocolSideValueETH_not?: InputMaybe; - uncollectedProtocolSideValueETH_not_in?: InputMaybe>; - uncollectedProtocolSideValueUSD?: InputMaybe; - uncollectedProtocolSideValueUSD_gt?: InputMaybe; - uncollectedProtocolSideValueUSD_gte?: InputMaybe; - uncollectedProtocolSideValueUSD_in?: InputMaybe>; - uncollectedProtocolSideValueUSD_lt?: InputMaybe; - uncollectedProtocolSideValueUSD_lte?: InputMaybe; - uncollectedProtocolSideValueUSD_not?: InputMaybe; - uncollectedProtocolSideValueUSD_not_in?: InputMaybe>; - uncollectedSupplySideValueETH?: InputMaybe; - uncollectedSupplySideValueETH_gt?: InputMaybe; - uncollectedSupplySideValueETH_gte?: InputMaybe; - uncollectedSupplySideValueETH_in?: InputMaybe>; - uncollectedSupplySideValueETH_lt?: InputMaybe; - uncollectedSupplySideValueETH_lte?: InputMaybe; - uncollectedSupplySideValueETH_not?: InputMaybe; - uncollectedSupplySideValueETH_not_in?: InputMaybe>; - uncollectedSupplySideValueUSD?: InputMaybe; - uncollectedSupplySideValueUSD_gt?: InputMaybe; - uncollectedSupplySideValueUSD_gte?: InputMaybe; - uncollectedSupplySideValueUSD_in?: InputMaybe>; - uncollectedSupplySideValueUSD_lt?: InputMaybe; - uncollectedSupplySideValueUSD_lte?: InputMaybe; - uncollectedSupplySideValueUSD_not?: InputMaybe; - uncollectedSupplySideValueUSD_not_in?: InputMaybe>; -}; - -export enum DexAmmProtocol_OrderBy { - Regenesis = '_regenesis', - ActiveLiquidityEth = 'activeLiquidityETH', - ActiveLiquidityUsd = 'activeLiquidityUSD', - CumulativePositionCount = 'cumulativePositionCount', - CumulativeProtocolSideRevenueEth = 'cumulativeProtocolSideRevenueETH', - CumulativeProtocolSideRevenueUsd = 'cumulativeProtocolSideRevenueUSD', - CumulativeSupplySideRevenueEth = 'cumulativeSupplySideRevenueETH', - CumulativeSupplySideRevenueUsd = 'cumulativeSupplySideRevenueUSD', - CumulativeTotalRevenueEth = 'cumulativeTotalRevenueETH', - CumulativeTotalRevenueUsd = 'cumulativeTotalRevenueUSD', - CumulativeUniqueLPs = 'cumulativeUniqueLPs', - CumulativeUniqueTraders = 'cumulativeUniqueTraders', - CumulativeUniqueUsers = 'cumulativeUniqueUsers', - CumulativeVolumeEth = 'cumulativeVolumeETH', - CumulativeVolumeUsd = 'cumulativeVolumeUSD', - DailyUsageMetrics = 'dailyUsageMetrics', - FinancialMetrics = 'financialMetrics', - HourlyUsageMetrics = 'hourlyUsageMetrics', - Id = 'id', - LastSnapshotDayId = 'lastSnapshotDayID', - LastUpdateBlockNumber = 'lastUpdateBlockNumber', - LastUpdateTimestamp = 'lastUpdateTimestamp', - MethodologyVersion = 'methodologyVersion', - Name = 'name', - Network = 'network', - OpenPositionCount = 'openPositionCount', - Pools = 'pools', - ProtocolControlledValueUsd = 'protocolControlledValueUSD', - SchemaVersion = 'schemaVersion', - Slug = 'slug', - SubgraphVersion = 'subgraphVersion', - TotalLiquidityEth = 'totalLiquidityETH', - TotalLiquidityUsd = 'totalLiquidityUSD', - TotalPoolCount = 'totalPoolCount', - TotalValueLockedEth = 'totalValueLockedETH', - TotalValueLockedUsd = 'totalValueLockedUSD', - Type = 'type', - UncollectedProtocolSideValueEth = 'uncollectedProtocolSideValueETH', - UncollectedProtocolSideValueUsd = 'uncollectedProtocolSideValueUSD', - UncollectedSupplySideValueEth = 'uncollectedSupplySideValueETH', - UncollectedSupplySideValueUsd = 'uncollectedSupplySideValueUSD' + logIndex?: InputMaybe; + logIndex_gt?: InputMaybe; + logIndex_gte?: InputMaybe; + logIndex_in?: InputMaybe>; + logIndex_lt?: InputMaybe; + logIndex_lte?: InputMaybe; + logIndex_not?: InputMaybe; + logIndex_not_in?: InputMaybe>; + or?: InputMaybe>>; + owner?: InputMaybe; + owner_?: InputMaybe; + owner_contains?: InputMaybe; + owner_contains_nocase?: InputMaybe; + owner_ends_with?: InputMaybe; + owner_ends_with_nocase?: InputMaybe; + owner_gt?: InputMaybe; + owner_gte?: InputMaybe; + owner_in?: InputMaybe>; + owner_lt?: InputMaybe; + owner_lte?: InputMaybe; + owner_not?: InputMaybe; + owner_not_contains?: InputMaybe; + owner_not_contains_nocase?: InputMaybe; + owner_not_ends_with?: InputMaybe; + owner_not_ends_with_nocase?: InputMaybe; + owner_not_in?: InputMaybe>; + owner_not_starts_with?: InputMaybe; + owner_not_starts_with_nocase?: InputMaybe; + owner_starts_with?: InputMaybe; + owner_starts_with_nocase?: 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; + timestamp?: InputMaybe; + timestamp_gt?: InputMaybe; + timestamp_gte?: InputMaybe; + timestamp_in?: InputMaybe>; + timestamp_lt?: InputMaybe; + timestamp_lte?: InputMaybe; + timestamp_not?: InputMaybe; + timestamp_not_in?: InputMaybe>; + transaction?: InputMaybe; + transaction_?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_contains_nocase?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_ends_with_nocase?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_contains_nocase?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_ends_with_nocase?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_not_starts_with_nocase?: InputMaybe; + transaction_starts_with?: InputMaybe; + transaction_starts_with_nocase?: InputMaybe; +}; + +export enum Collect_OrderBy { + Amount0 = 'amount0', + Amount1 = 'amount1', + AmountUsd = 'amountUSD', + Id = 'id', + LogIndex = 'logIndex', + Owner = 'owner', + OwnerId = 'owner__id', + Pool = 'pool', + PoolBalanceOfBlock = 'pool__balanceOfBlock', + PoolClosedPositionCount = 'pool__closedPositionCount', + PoolCollectedFeesToken0 = 'pool__collectedFeesToken0', + PoolCollectedFeesToken1 = 'pool__collectedFeesToken1', + PoolCollectedFeesUsd = 'pool__collectedFeesUSD', + PoolCollectedVaultWethFees = 'pool__collectedVaultWETHFees', + PoolCreatedAtBlockNumber = 'pool__createdAtBlockNumber', + PoolCreatedAtTimestamp = 'pool__createdAtTimestamp', + PoolFeeGrowthGlobal0X128 = 'pool__feeGrowthGlobal0X128', + PoolFeeGrowthGlobal1X128 = 'pool__feeGrowthGlobal1X128', + PoolFeeTier = 'pool__feeTier', + PoolFeesUsd = 'pool__feesUSD', + PoolId = 'pool__id', + PoolLiquidity = 'pool__liquidity', + PoolLiquidityProviderCount = 'pool__liquidityProviderCount', + PoolName = 'pool__name', + PoolObservationIndex = 'pool__observationIndex', + PoolOpenPositionCount = 'pool__openPositionCount', + PoolSqrtPrice = 'pool__sqrtPrice', + PoolSymbol = 'pool__symbol', + PoolTick = 'pool__tick', + PoolToken0Price = 'pool__token0Price', + PoolToken1Price = 'pool__token1Price', + PoolTotalLiquidity = 'pool__totalLiquidity', + PoolTotalValueLockedEth = 'pool__totalValueLockedETH', + PoolTotalValueLockedToken0 = 'pool__totalValueLockedToken0', + PoolTotalValueLockedToken1 = 'pool__totalValueLockedToken1', + PoolTotalValueLockedUsd = 'pool__totalValueLockedUSD', + PoolTotalValueLockedUsdUntracked = 'pool__totalValueLockedUSDUntracked', + PoolTxCount = 'pool__txCount', + PoolUntrackedVolumeUsd = 'pool__untrackedVolumeUSD', + PoolVolumeToken0 = 'pool__volumeToken0', + PoolVolumeToken1 = 'pool__volumeToken1', + PoolVolumeUsd = 'pool__volumeUSD', + Timestamp = 'timestamp', + Transaction = 'transaction', + TransactionBlockNumber = 'transaction__blockNumber', + TransactionGasPrice = 'transaction__gasPrice', + TransactionGasUsed = 'transaction__gasUsed', + TransactionId = 'transaction__id', + TransactionTimestamp = 'transaction__timestamp' } -export type FinancialsDailySnapshot = { - __typename?: 'FinancialsDailySnapshot'; - /** All liquidity in ETH that is active. Will be equal to totalLiquidity except for in concentrated liquidity - where activeLiquidity is all liquidity positions that contain the pools current tick. */ - activeLiquidityETH: Scalars['BigDecimal']['output']; - /** All liquidity in USD that is active. Will be equal to totalLiquidity except for in concentrated liquidity - where activeLiquidity is all liquidity positions that contain the pools current tick. */ - activeLiquidityUSD: Scalars['BigDecimal']['output']; - /** Block number of when this snapshot was taken/last modified (May be taken after interval has passed) */ - blockNumber: Scalars['BigInt']['output']; - /** Gross revenue for the protocol (revenue claimed by protocol). Examples: AMM protocol fee (Sushi’s 0.05%). OpenSea 10% sell fee. */ - cumulativeProtocolSideRevenueETH: Scalars['BigDecimal']['output']; - /** Gross revenue for the protocol (revenue claimed by protocol). Examples: AMM protocol fee (Sushi’s 0.05%). OpenSea 10% sell fee. */ - cumulativeProtocolSideRevenueUSD: Scalars['BigDecimal']['output']; - /** Revenue claimed by suppliers to the protocol. LPs on DEXs (e.g. 0.25% of the swap fee in Sushiswap). Depositors on Lending Protocols. NFT sellers on OpenSea. */ - cumulativeSupplySideRevenueETH: Scalars['BigDecimal']['output']; - /** Revenue claimed by suppliers to the protocol. LPs on DEXs (e.g. 0.25% of the swap fee in Sushiswap). Depositors on Lending Protocols. NFT sellers on OpenSea. */ - cumulativeSupplySideRevenueUSD: Scalars['BigDecimal']['output']; - /** All revenue generated by the protocol. e.g. 0.30% of swap fee in Sushiswap, all yield generated by Yearn. */ - cumulativeTotalRevenueETH: Scalars['BigDecimal']['output']; - /** All revenue generated by the protocol. e.g. 0.30% of swap fee in Sushiswap, all yield generated by Yearn. */ - cumulativeTotalRevenueUSD: Scalars['BigDecimal']['output']; - /** All historical trade volume in ETH */ - cumulativeVolumeETH: Scalars['BigDecimal']['output']; - /** All historical trade volume in USD */ - cumulativeVolumeUSD: Scalars['BigDecimal']['output']; - /** Gross revenue for the protocol (revenue claimed by protocol). Examples: AMM protocol fee (Sushi’s 0.05%). OpenSea 10% sell fee. */ - dailyProtocolSideRevenueETH: Scalars['BigDecimal']['output']; - /** Gross revenue for the protocol (revenue claimed by protocol). Examples: AMM protocol fee (Sushi’s 0.05%). OpenSea 10% sell fee. */ - dailyProtocolSideRevenueUSD: Scalars['BigDecimal']['output']; - /** Revenue claimed by suppliers to the protocol. LPs on DEXs (e.g. 0.25% of the swap fee in Sushiswap). Depositors on Lending Protocols. NFT sellers on OpenSea. */ - dailySupplySideRevenueETH: Scalars['BigDecimal']['output']; - /** Revenue claimed by suppliers to the protocol. LPs on DEXs (e.g. 0.25% of the swap fee in Sushiswap). Depositors on Lending Protocols. NFT sellers on OpenSea. */ - dailySupplySideRevenueUSD: Scalars['BigDecimal']['output']; - /** All revenue generated by the protocol. e.g. 0.30% of swap fee in Sushiswap, all yield generated by Yearn. */ - dailyTotalRevenueETH: Scalars['BigDecimal']['output']; - /** All revenue generated by the protocol. e.g. 0.30% of swap fee in Sushiswap, all yield generated by Yearn. */ - dailyTotalRevenueUSD: Scalars['BigDecimal']['output']; - /** All trade volume occurred in a given day, in ETH */ - dailyVolumeETH: Scalars['BigDecimal']['output']; - /** All trade volume occurred in a given day, in USD */ - dailyVolumeUSD: Scalars['BigDecimal']['output']; - /** Number of days since Unix epoch time */ - day: Scalars['Int']['output']; - /** ID is # of days since Unix epoch time */ - id: Scalars['Bytes']['output']; - /** Protocol this snapshot is associated with */ - protocol: DexAmmProtocol; - /** Current PCV (Protocol Controlled Value). Only relevant for protocols with PCV. */ - protocolControlledValueUSD?: Maybe; - /** Timestamp of when this snapshot was taken/last modified (May be taken after interval has passed) */ +export type Event = { + id: Scalars['ID']['output']; + pool: Pool; timestamp: Scalars['BigInt']['output']; - /** The sum of all active and non-active liquidity in ETH for this pool. */ - totalLiquidityETH: Scalars['BigDecimal']['output']; - /** The sum of all active and non-active liquidity in USD for this pool. */ - totalLiquidityUSD: Scalars['BigDecimal']['output']; - /** Current TVL (Total Value Locked) of the entire protocol */ - totalValueLockedETH: Scalars['BigDecimal']['output']; - /** Current TVL (Total Value Locked) of the entire protocol */ - totalValueLockedUSD: Scalars['BigDecimal']['output']; - /** All protocol-side value locking in USD that remains uncollected and unused in the protocol. */ - uncollectedProtocolSideValueETH: Scalars['BigDecimal']['output']; - /** All protocol-side value locking in USD that remains uncollected and unused in the protocol. */ - uncollectedProtocolSideValueUSD: Scalars['BigDecimal']['output']; - /** All supply-side value locking in USD that remains uncollected and unused in the protocol. */ - uncollectedSupplySideValueETH: Scalars['BigDecimal']['output']; - /** All supply-side value locking in USD that remains uncollected and unused in the protocol. */ - uncollectedSupplySideValueUSD: Scalars['BigDecimal']['output']; + transaction: Transaction; }; -export type FinancialsDailySnapshot_Filter = { +export type Event_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - activeLiquidityETH?: InputMaybe; - activeLiquidityETH_gt?: InputMaybe; - activeLiquidityETH_gte?: InputMaybe; - activeLiquidityETH_in?: InputMaybe>; - activeLiquidityETH_lt?: InputMaybe; - activeLiquidityETH_lte?: InputMaybe; - activeLiquidityETH_not?: InputMaybe; - activeLiquidityETH_not_in?: InputMaybe>; - activeLiquidityUSD?: InputMaybe; - activeLiquidityUSD_gt?: InputMaybe; - activeLiquidityUSD_gte?: InputMaybe; - activeLiquidityUSD_in?: InputMaybe>; - activeLiquidityUSD_lt?: InputMaybe; - activeLiquidityUSD_lte?: InputMaybe; - activeLiquidityUSD_not?: InputMaybe; - activeLiquidityUSD_not_in?: InputMaybe>; - and?: InputMaybe>>; - blockNumber?: InputMaybe; - blockNumber_gt?: InputMaybe; - blockNumber_gte?: InputMaybe; - blockNumber_in?: InputMaybe>; - blockNumber_lt?: InputMaybe; - blockNumber_lte?: InputMaybe; - blockNumber_not?: InputMaybe; - blockNumber_not_in?: InputMaybe>; - cumulativeProtocolSideRevenueETH?: InputMaybe; - cumulativeProtocolSideRevenueETH_gt?: InputMaybe; - cumulativeProtocolSideRevenueETH_gte?: InputMaybe; - cumulativeProtocolSideRevenueETH_in?: InputMaybe>; - cumulativeProtocolSideRevenueETH_lt?: InputMaybe; - cumulativeProtocolSideRevenueETH_lte?: InputMaybe; - cumulativeProtocolSideRevenueETH_not?: InputMaybe; - cumulativeProtocolSideRevenueETH_not_in?: InputMaybe>; - cumulativeProtocolSideRevenueUSD?: InputMaybe; - cumulativeProtocolSideRevenueUSD_gt?: InputMaybe; - cumulativeProtocolSideRevenueUSD_gte?: InputMaybe; - cumulativeProtocolSideRevenueUSD_in?: InputMaybe>; - cumulativeProtocolSideRevenueUSD_lt?: InputMaybe; - cumulativeProtocolSideRevenueUSD_lte?: InputMaybe; - cumulativeProtocolSideRevenueUSD_not?: InputMaybe; - cumulativeProtocolSideRevenueUSD_not_in?: InputMaybe>; - cumulativeSupplySideRevenueETH?: InputMaybe; - cumulativeSupplySideRevenueETH_gt?: InputMaybe; - cumulativeSupplySideRevenueETH_gte?: InputMaybe; - cumulativeSupplySideRevenueETH_in?: InputMaybe>; - cumulativeSupplySideRevenueETH_lt?: InputMaybe; - cumulativeSupplySideRevenueETH_lte?: InputMaybe; - cumulativeSupplySideRevenueETH_not?: InputMaybe; - cumulativeSupplySideRevenueETH_not_in?: InputMaybe>; - cumulativeSupplySideRevenueUSD?: InputMaybe; - cumulativeSupplySideRevenueUSD_gt?: InputMaybe; - cumulativeSupplySideRevenueUSD_gte?: InputMaybe; - cumulativeSupplySideRevenueUSD_in?: InputMaybe>; - cumulativeSupplySideRevenueUSD_lt?: InputMaybe; - cumulativeSupplySideRevenueUSD_lte?: InputMaybe; - cumulativeSupplySideRevenueUSD_not?: InputMaybe; - cumulativeSupplySideRevenueUSD_not_in?: InputMaybe>; - cumulativeTotalRevenueETH?: InputMaybe; - cumulativeTotalRevenueETH_gt?: InputMaybe; - cumulativeTotalRevenueETH_gte?: InputMaybe; - cumulativeTotalRevenueETH_in?: InputMaybe>; - cumulativeTotalRevenueETH_lt?: InputMaybe; - cumulativeTotalRevenueETH_lte?: InputMaybe; - cumulativeTotalRevenueETH_not?: InputMaybe; - cumulativeTotalRevenueETH_not_in?: InputMaybe>; - cumulativeTotalRevenueUSD?: InputMaybe; - cumulativeTotalRevenueUSD_gt?: InputMaybe; - cumulativeTotalRevenueUSD_gte?: InputMaybe; - cumulativeTotalRevenueUSD_in?: InputMaybe>; - cumulativeTotalRevenueUSD_lt?: InputMaybe; - cumulativeTotalRevenueUSD_lte?: InputMaybe; - cumulativeTotalRevenueUSD_not?: InputMaybe; - cumulativeTotalRevenueUSD_not_in?: InputMaybe>; - cumulativeVolumeETH?: InputMaybe; - cumulativeVolumeETH_gt?: InputMaybe; - cumulativeVolumeETH_gte?: InputMaybe; - cumulativeVolumeETH_in?: InputMaybe>; - cumulativeVolumeETH_lt?: InputMaybe; - cumulativeVolumeETH_lte?: InputMaybe; - cumulativeVolumeETH_not?: InputMaybe; - cumulativeVolumeETH_not_in?: InputMaybe>; - cumulativeVolumeUSD?: InputMaybe; - cumulativeVolumeUSD_gt?: InputMaybe; - cumulativeVolumeUSD_gte?: InputMaybe; - cumulativeVolumeUSD_in?: InputMaybe>; - cumulativeVolumeUSD_lt?: InputMaybe; - cumulativeVolumeUSD_lte?: InputMaybe; - cumulativeVolumeUSD_not?: InputMaybe; - cumulativeVolumeUSD_not_in?: InputMaybe>; - dailyProtocolSideRevenueETH?: InputMaybe; - dailyProtocolSideRevenueETH_gt?: InputMaybe; - dailyProtocolSideRevenueETH_gte?: InputMaybe; - dailyProtocolSideRevenueETH_in?: InputMaybe>; - dailyProtocolSideRevenueETH_lt?: InputMaybe; - dailyProtocolSideRevenueETH_lte?: InputMaybe; - dailyProtocolSideRevenueETH_not?: InputMaybe; - dailyProtocolSideRevenueETH_not_in?: InputMaybe>; - dailyProtocolSideRevenueUSD?: InputMaybe; - dailyProtocolSideRevenueUSD_gt?: InputMaybe; - dailyProtocolSideRevenueUSD_gte?: InputMaybe; - dailyProtocolSideRevenueUSD_in?: InputMaybe>; - dailyProtocolSideRevenueUSD_lt?: InputMaybe; - dailyProtocolSideRevenueUSD_lte?: InputMaybe; - dailyProtocolSideRevenueUSD_not?: InputMaybe; - dailyProtocolSideRevenueUSD_not_in?: InputMaybe>; - dailySupplySideRevenueETH?: InputMaybe; - dailySupplySideRevenueETH_gt?: InputMaybe; - dailySupplySideRevenueETH_gte?: InputMaybe; - dailySupplySideRevenueETH_in?: InputMaybe>; - dailySupplySideRevenueETH_lt?: InputMaybe; - dailySupplySideRevenueETH_lte?: InputMaybe; - dailySupplySideRevenueETH_not?: InputMaybe; - dailySupplySideRevenueETH_not_in?: InputMaybe>; - dailySupplySideRevenueUSD?: InputMaybe; - dailySupplySideRevenueUSD_gt?: InputMaybe; - dailySupplySideRevenueUSD_gte?: InputMaybe; - dailySupplySideRevenueUSD_in?: InputMaybe>; - dailySupplySideRevenueUSD_lt?: InputMaybe; - dailySupplySideRevenueUSD_lte?: InputMaybe; - dailySupplySideRevenueUSD_not?: InputMaybe; - dailySupplySideRevenueUSD_not_in?: InputMaybe>; - dailyTotalRevenueETH?: InputMaybe; - dailyTotalRevenueETH_gt?: InputMaybe; - dailyTotalRevenueETH_gte?: InputMaybe; - dailyTotalRevenueETH_in?: InputMaybe>; - dailyTotalRevenueETH_lt?: InputMaybe; - dailyTotalRevenueETH_lte?: InputMaybe; - dailyTotalRevenueETH_not?: InputMaybe; - dailyTotalRevenueETH_not_in?: InputMaybe>; - dailyTotalRevenueUSD?: InputMaybe; - dailyTotalRevenueUSD_gt?: InputMaybe; - dailyTotalRevenueUSD_gte?: InputMaybe; - dailyTotalRevenueUSD_in?: InputMaybe>; - dailyTotalRevenueUSD_lt?: InputMaybe; - dailyTotalRevenueUSD_lte?: InputMaybe; - dailyTotalRevenueUSD_not?: InputMaybe; - dailyTotalRevenueUSD_not_in?: InputMaybe>; - dailyVolumeETH?: InputMaybe; - dailyVolumeETH_gt?: InputMaybe; - dailyVolumeETH_gte?: InputMaybe; - dailyVolumeETH_in?: InputMaybe>; - dailyVolumeETH_lt?: InputMaybe; - dailyVolumeETH_lte?: InputMaybe; - dailyVolumeETH_not?: InputMaybe; - dailyVolumeETH_not_in?: InputMaybe>; - dailyVolumeUSD?: InputMaybe; - dailyVolumeUSD_gt?: InputMaybe; - dailyVolumeUSD_gte?: InputMaybe; - dailyVolumeUSD_in?: InputMaybe>; - dailyVolumeUSD_lt?: InputMaybe; - dailyVolumeUSD_lte?: InputMaybe; - dailyVolumeUSD_not?: InputMaybe; - dailyVolumeUSD_not_in?: InputMaybe>; - day?: InputMaybe; - day_gt?: InputMaybe; - day_gte?: InputMaybe; - day_in?: InputMaybe>; - day_lt?: InputMaybe; - day_lte?: InputMaybe; - day_not?: InputMaybe; - day_not_in?: InputMaybe>; - id?: InputMaybe; - id_contains?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_contains?: InputMaybe; - id_not_in?: InputMaybe>; - or?: InputMaybe>>; - protocol?: InputMaybe; - protocolControlledValueUSD?: InputMaybe; - protocolControlledValueUSD_gt?: InputMaybe; - protocolControlledValueUSD_gte?: InputMaybe; - protocolControlledValueUSD_in?: InputMaybe>; - protocolControlledValueUSD_lt?: InputMaybe; - protocolControlledValueUSD_lte?: InputMaybe; - protocolControlledValueUSD_not?: InputMaybe; - protocolControlledValueUSD_not_in?: InputMaybe>; - protocol_?: InputMaybe; - protocol_contains?: InputMaybe; - protocol_contains_nocase?: InputMaybe; - protocol_ends_with?: InputMaybe; - protocol_ends_with_nocase?: InputMaybe; - protocol_gt?: InputMaybe; - protocol_gte?: InputMaybe; - protocol_in?: InputMaybe>; - protocol_lt?: InputMaybe; - protocol_lte?: InputMaybe; - protocol_not?: InputMaybe; - protocol_not_contains?: InputMaybe; - protocol_not_contains_nocase?: InputMaybe; - protocol_not_ends_with?: InputMaybe; - protocol_not_ends_with_nocase?: InputMaybe; - protocol_not_in?: InputMaybe>; - protocol_not_starts_with?: InputMaybe; - protocol_not_starts_with_nocase?: InputMaybe; - protocol_starts_with?: InputMaybe; - protocol_starts_with_nocase?: 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>>; + 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; timestamp?: InputMaybe; timestamp_gt?: InputMaybe; timestamp_gte?: InputMaybe; @@ -1409,23 +688,146 @@ export type FinancialsDailySnapshot_Filter = { timestamp_lte?: InputMaybe; timestamp_not?: InputMaybe; timestamp_not_in?: InputMaybe>; - totalLiquidityETH?: InputMaybe; - totalLiquidityETH_gt?: InputMaybe; - totalLiquidityETH_gte?: InputMaybe; - totalLiquidityETH_in?: InputMaybe>; - totalLiquidityETH_lt?: InputMaybe; - totalLiquidityETH_lte?: InputMaybe; - totalLiquidityETH_not?: InputMaybe; - totalLiquidityETH_not_in?: InputMaybe>; - totalLiquidityUSD?: InputMaybe; - totalLiquidityUSD_gt?: InputMaybe; - totalLiquidityUSD_gte?: InputMaybe; - totalLiquidityUSD_in?: InputMaybe>; - totalLiquidityUSD_lt?: InputMaybe; - totalLiquidityUSD_lte?: InputMaybe; - totalLiquidityUSD_not?: InputMaybe; - totalLiquidityUSD_not_in?: InputMaybe>; + transaction?: InputMaybe; + transaction_?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_contains_nocase?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_ends_with_nocase?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_contains_nocase?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_ends_with_nocase?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_not_starts_with_nocase?: InputMaybe; + transaction_starts_with?: InputMaybe; + transaction_starts_with_nocase?: InputMaybe; +}; + +export enum Event_OrderBy { + Id = 'id', + Pool = 'pool', + PoolBalanceOfBlock = 'pool__balanceOfBlock', + PoolClosedPositionCount = 'pool__closedPositionCount', + PoolCollectedFeesToken0 = 'pool__collectedFeesToken0', + PoolCollectedFeesToken1 = 'pool__collectedFeesToken1', + PoolCollectedFeesUsd = 'pool__collectedFeesUSD', + PoolCollectedVaultWethFees = 'pool__collectedVaultWETHFees', + PoolCreatedAtBlockNumber = 'pool__createdAtBlockNumber', + PoolCreatedAtTimestamp = 'pool__createdAtTimestamp', + PoolFeeGrowthGlobal0X128 = 'pool__feeGrowthGlobal0X128', + PoolFeeGrowthGlobal1X128 = 'pool__feeGrowthGlobal1X128', + PoolFeeTier = 'pool__feeTier', + PoolFeesUsd = 'pool__feesUSD', + PoolId = 'pool__id', + PoolLiquidity = 'pool__liquidity', + PoolLiquidityProviderCount = 'pool__liquidityProviderCount', + PoolName = 'pool__name', + PoolObservationIndex = 'pool__observationIndex', + PoolOpenPositionCount = 'pool__openPositionCount', + PoolSqrtPrice = 'pool__sqrtPrice', + PoolSymbol = 'pool__symbol', + PoolTick = 'pool__tick', + PoolToken0Price = 'pool__token0Price', + PoolToken1Price = 'pool__token1Price', + PoolTotalLiquidity = 'pool__totalLiquidity', + PoolTotalValueLockedEth = 'pool__totalValueLockedETH', + PoolTotalValueLockedToken0 = 'pool__totalValueLockedToken0', + PoolTotalValueLockedToken1 = 'pool__totalValueLockedToken1', + PoolTotalValueLockedUsd = 'pool__totalValueLockedUSD', + PoolTotalValueLockedUsdUntracked = 'pool__totalValueLockedUSDUntracked', + PoolTxCount = 'pool__txCount', + PoolUntrackedVolumeUsd = 'pool__untrackedVolumeUSD', + PoolVolumeToken0 = 'pool__volumeToken0', + PoolVolumeToken1 = 'pool__volumeToken1', + PoolVolumeUsd = 'pool__volumeUSD', + Timestamp = 'timestamp', + Transaction = 'transaction', + TransactionBlockNumber = 'transaction__blockNumber', + TransactionGasPrice = 'transaction__gasPrice', + TransactionGasUsed = 'transaction__gasUsed', + TransactionId = 'transaction__id', + TransactionTimestamp = 'transaction__timestamp' +} + +export type Factory = { + __typename?: 'Factory'; + id: Scalars['ID']['output']; + owner: Scalars['ID']['output']; + poolCount: Scalars['BigInt']['output']; + totalFeesETH: Scalars['BigDecimal']['output']; + totalFeesUSD: Scalars['BigDecimal']['output']; + totalValueLockedETH: Scalars['BigDecimal']['output']; + totalValueLockedETHUntracked: Scalars['BigDecimal']['output']; + totalValueLockedUSD: Scalars['BigDecimal']['output']; + totalValueLockedUSDUntracked: Scalars['BigDecimal']['output']; + totalVolumeETH: Scalars['BigDecimal']['output']; + totalVolumeUSD: Scalars['BigDecimal']['output']; + txCount: Scalars['BigInt']['output']; + untrackedVolumeUSD: Scalars['BigDecimal']['output']; +}; + +export type Factory_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>>; + owner?: InputMaybe; + owner_gt?: InputMaybe; + owner_gte?: InputMaybe; + owner_in?: InputMaybe>; + owner_lt?: InputMaybe; + owner_lte?: InputMaybe; + owner_not?: InputMaybe; + owner_not_in?: 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>; + totalFeesETH?: InputMaybe; + totalFeesETH_gt?: InputMaybe; + totalFeesETH_gte?: InputMaybe; + totalFeesETH_in?: InputMaybe>; + totalFeesETH_lt?: InputMaybe; + totalFeesETH_lte?: InputMaybe; + totalFeesETH_not?: InputMaybe; + totalFeesETH_not_in?: InputMaybe>; + totalFeesUSD?: InputMaybe; + totalFeesUSD_gt?: InputMaybe; + totalFeesUSD_gte?: InputMaybe; + totalFeesUSD_in?: InputMaybe>; + totalFeesUSD_lt?: InputMaybe; + totalFeesUSD_lte?: InputMaybe; + totalFeesUSD_not?: InputMaybe; + totalFeesUSD_not_in?: InputMaybe>; totalValueLockedETH?: InputMaybe; + totalValueLockedETHUntracked?: InputMaybe; + totalValueLockedETHUntracked_gt?: InputMaybe; + totalValueLockedETHUntracked_gte?: InputMaybe; + totalValueLockedETHUntracked_in?: InputMaybe>; + totalValueLockedETHUntracked_lt?: InputMaybe; + totalValueLockedETHUntracked_lte?: InputMaybe; + totalValueLockedETHUntracked_not?: InputMaybe; + totalValueLockedETHUntracked_not_in?: InputMaybe>; totalValueLockedETH_gt?: InputMaybe; totalValueLockedETH_gte?: InputMaybe; totalValueLockedETH_in?: InputMaybe>; @@ -1434,6 +836,14 @@ export type FinancialsDailySnapshot_Filter = { totalValueLockedETH_not?: InputMaybe; totalValueLockedETH_not_in?: InputMaybe>; totalValueLockedUSD?: InputMaybe; + totalValueLockedUSDUntracked?: InputMaybe; + totalValueLockedUSDUntracked_gt?: InputMaybe; + totalValueLockedUSDUntracked_gte?: InputMaybe; + totalValueLockedUSDUntracked_in?: InputMaybe>; + totalValueLockedUSDUntracked_lt?: InputMaybe; + totalValueLockedUSDUntracked_lte?: InputMaybe; + totalValueLockedUSDUntracked_not?: InputMaybe; + totalValueLockedUSDUntracked_not_in?: InputMaybe>; totalValueLockedUSD_gt?: InputMaybe; totalValueLockedUSD_gte?: InputMaybe; totalValueLockedUSD_in?: InputMaybe>; @@ -1441,729 +851,881 @@ export type FinancialsDailySnapshot_Filter = { totalValueLockedUSD_lte?: InputMaybe; totalValueLockedUSD_not?: InputMaybe; totalValueLockedUSD_not_in?: InputMaybe>; - uncollectedProtocolSideValueETH?: InputMaybe; - uncollectedProtocolSideValueETH_gt?: InputMaybe; - uncollectedProtocolSideValueETH_gte?: InputMaybe; - uncollectedProtocolSideValueETH_in?: InputMaybe>; - uncollectedProtocolSideValueETH_lt?: InputMaybe; - uncollectedProtocolSideValueETH_lte?: InputMaybe; - uncollectedProtocolSideValueETH_not?: InputMaybe; - uncollectedProtocolSideValueETH_not_in?: InputMaybe>; - uncollectedProtocolSideValueUSD?: InputMaybe; - uncollectedProtocolSideValueUSD_gt?: InputMaybe; - uncollectedProtocolSideValueUSD_gte?: InputMaybe; - uncollectedProtocolSideValueUSD_in?: InputMaybe>; - uncollectedProtocolSideValueUSD_lt?: InputMaybe; - uncollectedProtocolSideValueUSD_lte?: InputMaybe; - uncollectedProtocolSideValueUSD_not?: InputMaybe; - uncollectedProtocolSideValueUSD_not_in?: InputMaybe>; - uncollectedSupplySideValueETH?: InputMaybe; - uncollectedSupplySideValueETH_gt?: InputMaybe; - uncollectedSupplySideValueETH_gte?: InputMaybe; - uncollectedSupplySideValueETH_in?: InputMaybe>; - uncollectedSupplySideValueETH_lt?: InputMaybe; - uncollectedSupplySideValueETH_lte?: InputMaybe; - uncollectedSupplySideValueETH_not?: InputMaybe; - uncollectedSupplySideValueETH_not_in?: InputMaybe>; - uncollectedSupplySideValueUSD?: InputMaybe; - uncollectedSupplySideValueUSD_gt?: InputMaybe; - uncollectedSupplySideValueUSD_gte?: InputMaybe; - uncollectedSupplySideValueUSD_in?: InputMaybe>; - uncollectedSupplySideValueUSD_lt?: InputMaybe; - uncollectedSupplySideValueUSD_lte?: InputMaybe; - uncollectedSupplySideValueUSD_not?: InputMaybe; - uncollectedSupplySideValueUSD_not_in?: InputMaybe>; -}; - -export enum FinancialsDailySnapshot_OrderBy { - ActiveLiquidityEth = 'activeLiquidityETH', - ActiveLiquidityUsd = 'activeLiquidityUSD', - BlockNumber = 'blockNumber', - CumulativeProtocolSideRevenueEth = 'cumulativeProtocolSideRevenueETH', - CumulativeProtocolSideRevenueUsd = 'cumulativeProtocolSideRevenueUSD', - CumulativeSupplySideRevenueEth = 'cumulativeSupplySideRevenueETH', - CumulativeSupplySideRevenueUsd = 'cumulativeSupplySideRevenueUSD', - CumulativeTotalRevenueEth = 'cumulativeTotalRevenueETH', - CumulativeTotalRevenueUsd = 'cumulativeTotalRevenueUSD', - CumulativeVolumeEth = 'cumulativeVolumeETH', - CumulativeVolumeUsd = 'cumulativeVolumeUSD', - DailyProtocolSideRevenueEth = 'dailyProtocolSideRevenueETH', - DailyProtocolSideRevenueUsd = 'dailyProtocolSideRevenueUSD', - DailySupplySideRevenueEth = 'dailySupplySideRevenueETH', - DailySupplySideRevenueUsd = 'dailySupplySideRevenueUSD', - DailyTotalRevenueEth = 'dailyTotalRevenueETH', - DailyTotalRevenueUsd = 'dailyTotalRevenueUSD', - DailyVolumeEth = 'dailyVolumeETH', - DailyVolumeUsd = 'dailyVolumeUSD', - Day = 'day', + totalVolumeETH?: InputMaybe; + totalVolumeETH_gt?: InputMaybe; + totalVolumeETH_gte?: InputMaybe; + totalVolumeETH_in?: InputMaybe>; + totalVolumeETH_lt?: InputMaybe; + totalVolumeETH_lte?: InputMaybe; + totalVolumeETH_not?: InputMaybe; + totalVolumeETH_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>; + txCount?: InputMaybe; + txCount_gt?: InputMaybe; + txCount_gte?: InputMaybe; + txCount_in?: InputMaybe>; + txCount_lt?: InputMaybe; + txCount_lte?: InputMaybe; + txCount_not?: InputMaybe; + txCount_not_in?: InputMaybe>; + untrackedVolumeUSD?: InputMaybe; + untrackedVolumeUSD_gt?: InputMaybe; + untrackedVolumeUSD_gte?: InputMaybe; + untrackedVolumeUSD_in?: InputMaybe>; + untrackedVolumeUSD_lt?: InputMaybe; + untrackedVolumeUSD_lte?: InputMaybe; + untrackedVolumeUSD_not?: InputMaybe; + untrackedVolumeUSD_not_in?: InputMaybe>; +}; + +export enum Factory_OrderBy { Id = 'id', - Protocol = 'protocol', - ProtocolControlledValueUsd = 'protocolControlledValueUSD', - ProtocolRegenesis = 'protocol___regenesis', - ProtocolActiveLiquidityEth = 'protocol__activeLiquidityETH', - ProtocolActiveLiquidityUsd = 'protocol__activeLiquidityUSD', - ProtocolCumulativePositionCount = 'protocol__cumulativePositionCount', - ProtocolCumulativeProtocolSideRevenueEth = 'protocol__cumulativeProtocolSideRevenueETH', - ProtocolCumulativeProtocolSideRevenueUsd = 'protocol__cumulativeProtocolSideRevenueUSD', - ProtocolCumulativeSupplySideRevenueEth = 'protocol__cumulativeSupplySideRevenueETH', - ProtocolCumulativeSupplySideRevenueUsd = 'protocol__cumulativeSupplySideRevenueUSD', - ProtocolCumulativeTotalRevenueEth = 'protocol__cumulativeTotalRevenueETH', - ProtocolCumulativeTotalRevenueUsd = 'protocol__cumulativeTotalRevenueUSD', - ProtocolCumulativeUniqueLPs = 'protocol__cumulativeUniqueLPs', - ProtocolCumulativeUniqueTraders = 'protocol__cumulativeUniqueTraders', - ProtocolCumulativeUniqueUsers = 'protocol__cumulativeUniqueUsers', - ProtocolCumulativeVolumeEth = 'protocol__cumulativeVolumeETH', - ProtocolCumulativeVolumeUsd = 'protocol__cumulativeVolumeUSD', - ProtocolId = 'protocol__id', - ProtocolLastSnapshotDayId = 'protocol__lastSnapshotDayID', - ProtocolLastUpdateBlockNumber = 'protocol__lastUpdateBlockNumber', - ProtocolLastUpdateTimestamp = 'protocol__lastUpdateTimestamp', - ProtocolMethodologyVersion = 'protocol__methodologyVersion', - ProtocolName = 'protocol__name', - ProtocolNetwork = 'protocol__network', - ProtocolOpenPositionCount = 'protocol__openPositionCount', - ProtocolProtocolControlledValueUsd = 'protocol__protocolControlledValueUSD', - ProtocolSchemaVersion = 'protocol__schemaVersion', - ProtocolSlug = 'protocol__slug', - ProtocolSubgraphVersion = 'protocol__subgraphVersion', - ProtocolTotalLiquidityEth = 'protocol__totalLiquidityETH', - ProtocolTotalLiquidityUsd = 'protocol__totalLiquidityUSD', - ProtocolTotalPoolCount = 'protocol__totalPoolCount', - ProtocolTotalValueLockedEth = 'protocol__totalValueLockedETH', - ProtocolTotalValueLockedUsd = 'protocol__totalValueLockedUSD', - ProtocolType = 'protocol__type', - ProtocolUncollectedProtocolSideValueEth = 'protocol__uncollectedProtocolSideValueETH', - ProtocolUncollectedProtocolSideValueUsd = 'protocol__uncollectedProtocolSideValueUSD', - ProtocolUncollectedSupplySideValueEth = 'protocol__uncollectedSupplySideValueETH', - ProtocolUncollectedSupplySideValueUsd = 'protocol__uncollectedSupplySideValueUSD', - Timestamp = 'timestamp', - TotalLiquidityEth = 'totalLiquidityETH', - TotalLiquidityUsd = 'totalLiquidityUSD', + Owner = 'owner', + PoolCount = 'poolCount', + TotalFeesEth = 'totalFeesETH', + TotalFeesUsd = 'totalFeesUSD', TotalValueLockedEth = 'totalValueLockedETH', + TotalValueLockedEthUntracked = 'totalValueLockedETHUntracked', TotalValueLockedUsd = 'totalValueLockedUSD', - UncollectedProtocolSideValueEth = 'uncollectedProtocolSideValueETH', - UncollectedProtocolSideValueUsd = 'uncollectedProtocolSideValueUSD', - UncollectedSupplySideValueEth = 'uncollectedSupplySideValueETH', - UncollectedSupplySideValueUsd = 'uncollectedSupplySideValueUSD' + TotalValueLockedUsdUntracked = 'totalValueLockedUSDUntracked', + TotalVolumeEth = 'totalVolumeETH', + TotalVolumeUsd = 'totalVolumeUSD', + TxCount = 'txCount', + UntrackedVolumeUsd = 'untrackedVolumeUSD' +} + +export type Flash = Event & { + __typename?: 'Flash'; + amount0: Scalars['BigDecimal']['output']; + amount0Paid: Scalars['BigDecimal']['output']; + amount1: Scalars['BigDecimal']['output']; + amount1Paid: Scalars['BigDecimal']['output']; + amountUSD: Scalars['BigDecimal']['output']; + id: Scalars['ID']['output']; + logIndex?: Maybe; + pool: Pool; + recipient: Account; + sender: Account; + timestamp: Scalars['BigInt']['output']; + transaction: Transaction; +}; + +export type Flash_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + amount0?: InputMaybe; + amount0Paid?: InputMaybe; + amount0Paid_gt?: InputMaybe; + amount0Paid_gte?: InputMaybe; + amount0Paid_in?: InputMaybe>; + amount0Paid_lt?: InputMaybe; + amount0Paid_lte?: InputMaybe; + amount0Paid_not?: InputMaybe; + amount0Paid_not_in?: InputMaybe>; + amount0_gt?: InputMaybe; + amount0_gte?: InputMaybe; + amount0_in?: InputMaybe>; + amount0_lt?: InputMaybe; + amount0_lte?: InputMaybe; + amount0_not?: InputMaybe; + amount0_not_in?: InputMaybe>; + amount1?: InputMaybe; + amount1Paid?: InputMaybe; + amount1Paid_gt?: InputMaybe; + amount1Paid_gte?: InputMaybe; + amount1Paid_in?: InputMaybe>; + amount1Paid_lt?: InputMaybe; + amount1Paid_lte?: InputMaybe; + amount1Paid_not?: InputMaybe; + amount1Paid_not_in?: InputMaybe>; + amount1_gt?: InputMaybe; + amount1_gte?: InputMaybe; + amount1_in?: InputMaybe>; + amount1_lt?: InputMaybe; + amount1_lte?: InputMaybe; + amount1_not?: InputMaybe; + amount1_not_in?: InputMaybe>; + amountUSD?: InputMaybe; + amountUSD_gt?: InputMaybe; + amountUSD_gte?: InputMaybe; + amountUSD_in?: InputMaybe>; + amountUSD_lt?: InputMaybe; + amountUSD_lte?: InputMaybe; + amountUSD_not?: InputMaybe; + amountUSD_not_in?: 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>; + logIndex?: InputMaybe; + logIndex_gt?: InputMaybe; + logIndex_gte?: InputMaybe; + logIndex_in?: InputMaybe>; + logIndex_lt?: InputMaybe; + logIndex_lte?: InputMaybe; + logIndex_not?: InputMaybe; + logIndex_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; + recipient?: InputMaybe; + recipient_?: InputMaybe; + recipient_contains?: InputMaybe; + recipient_contains_nocase?: InputMaybe; + recipient_ends_with?: InputMaybe; + recipient_ends_with_nocase?: InputMaybe; + recipient_gt?: InputMaybe; + recipient_gte?: InputMaybe; + recipient_in?: InputMaybe>; + recipient_lt?: InputMaybe; + recipient_lte?: InputMaybe; + recipient_not?: InputMaybe; + recipient_not_contains?: InputMaybe; + recipient_not_contains_nocase?: InputMaybe; + recipient_not_ends_with?: InputMaybe; + recipient_not_ends_with_nocase?: InputMaybe; + recipient_not_in?: InputMaybe>; + recipient_not_starts_with?: InputMaybe; + recipient_not_starts_with_nocase?: InputMaybe; + recipient_starts_with?: InputMaybe; + recipient_starts_with_nocase?: InputMaybe; + sender?: InputMaybe; + sender_?: InputMaybe; + sender_contains?: InputMaybe; + sender_contains_nocase?: InputMaybe; + sender_ends_with?: InputMaybe; + sender_ends_with_nocase?: 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_contains_nocase?: InputMaybe; + sender_not_ends_with?: InputMaybe; + sender_not_ends_with_nocase?: InputMaybe; + sender_not_in?: InputMaybe>; + sender_not_starts_with?: InputMaybe; + sender_not_starts_with_nocase?: InputMaybe; + sender_starts_with?: InputMaybe; + sender_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>; + transaction?: InputMaybe; + transaction_?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_contains_nocase?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_ends_with_nocase?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_contains_nocase?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_ends_with_nocase?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_not_starts_with_nocase?: InputMaybe; + transaction_starts_with?: InputMaybe; + transaction_starts_with_nocase?: InputMaybe; +}; + +export enum Flash_OrderBy { + Amount0 = 'amount0', + Amount0Paid = 'amount0Paid', + Amount1 = 'amount1', + Amount1Paid = 'amount1Paid', + AmountUsd = 'amountUSD', + Id = 'id', + LogIndex = 'logIndex', + Pool = 'pool', + PoolBalanceOfBlock = 'pool__balanceOfBlock', + PoolClosedPositionCount = 'pool__closedPositionCount', + PoolCollectedFeesToken0 = 'pool__collectedFeesToken0', + PoolCollectedFeesToken1 = 'pool__collectedFeesToken1', + PoolCollectedFeesUsd = 'pool__collectedFeesUSD', + PoolCollectedVaultWethFees = 'pool__collectedVaultWETHFees', + PoolCreatedAtBlockNumber = 'pool__createdAtBlockNumber', + PoolCreatedAtTimestamp = 'pool__createdAtTimestamp', + PoolFeeGrowthGlobal0X128 = 'pool__feeGrowthGlobal0X128', + PoolFeeGrowthGlobal1X128 = 'pool__feeGrowthGlobal1X128', + PoolFeeTier = 'pool__feeTier', + PoolFeesUsd = 'pool__feesUSD', + PoolId = 'pool__id', + PoolLiquidity = 'pool__liquidity', + PoolLiquidityProviderCount = 'pool__liquidityProviderCount', + PoolName = 'pool__name', + PoolObservationIndex = 'pool__observationIndex', + PoolOpenPositionCount = 'pool__openPositionCount', + PoolSqrtPrice = 'pool__sqrtPrice', + PoolSymbol = 'pool__symbol', + PoolTick = 'pool__tick', + PoolToken0Price = 'pool__token0Price', + PoolToken1Price = 'pool__token1Price', + PoolTotalLiquidity = 'pool__totalLiquidity', + PoolTotalValueLockedEth = 'pool__totalValueLockedETH', + PoolTotalValueLockedToken0 = 'pool__totalValueLockedToken0', + PoolTotalValueLockedToken1 = 'pool__totalValueLockedToken1', + PoolTotalValueLockedUsd = 'pool__totalValueLockedUSD', + PoolTotalValueLockedUsdUntracked = 'pool__totalValueLockedUSDUntracked', + PoolTxCount = 'pool__txCount', + PoolUntrackedVolumeUsd = 'pool__untrackedVolumeUSD', + PoolVolumeToken0 = 'pool__volumeToken0', + PoolVolumeToken1 = 'pool__volumeToken1', + PoolVolumeUsd = 'pool__volumeUSD', + Recipient = 'recipient', + RecipientId = 'recipient__id', + Sender = 'sender', + SenderId = 'sender__id', + Timestamp = 'timestamp', + Transaction = 'transaction', + TransactionBlockNumber = 'transaction__blockNumber', + TransactionGasPrice = 'transaction__gasPrice', + TransactionGasUsed = 'transaction__gasUsed', + TransactionId = 'transaction__id', + TransactionTimestamp = 'transaction__timestamp' +} + +export type Mint = Event & { + __typename?: 'Mint'; + amount: Scalars['BigInt']['output']; + amount0: Scalars['BigDecimal']['output']; + amount1: Scalars['BigDecimal']['output']; + amountUSD: Scalars['BigDecimal']['output']; + id: Scalars['ID']['output']; + logIndex?: Maybe; + origin: Account; + owner: Account; + pool: Pool; + sender?: Maybe; + tickLower: Scalars['BigInt']['output']; + tickUpper: Scalars['BigInt']['output']; + timestamp: Scalars['BigInt']['output']; + token0: Token; + token1: Token; + transaction: Transaction; +}; + +export type Mint_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + amount?: InputMaybe; + amount0?: InputMaybe; + amount0_gt?: InputMaybe; + amount0_gte?: InputMaybe; + amount0_in?: InputMaybe>; + amount0_lt?: InputMaybe; + amount0_lte?: InputMaybe; + amount0_not?: InputMaybe; + amount0_not_in?: InputMaybe>; + amount1?: InputMaybe; + amount1_gt?: InputMaybe; + amount1_gte?: InputMaybe; + amount1_in?: InputMaybe>; + amount1_lt?: InputMaybe; + amount1_lte?: InputMaybe; + amount1_not?: InputMaybe; + amount1_not_in?: InputMaybe>; + amountUSD?: InputMaybe; + amountUSD_gt?: InputMaybe; + amountUSD_gte?: InputMaybe; + amountUSD_in?: InputMaybe>; + amountUSD_lt?: InputMaybe; + amountUSD_lte?: InputMaybe; + amountUSD_not?: InputMaybe; + amountUSD_not_in?: 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>>; + id?: InputMaybe; + id_gt?: InputMaybe; + id_gte?: InputMaybe; + id_in?: InputMaybe>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + logIndex?: InputMaybe; + logIndex_gt?: InputMaybe; + logIndex_gte?: InputMaybe; + logIndex_in?: InputMaybe>; + logIndex_lt?: InputMaybe; + logIndex_lte?: InputMaybe; + logIndex_not?: InputMaybe; + logIndex_not_in?: InputMaybe>; + or?: InputMaybe>>; + origin?: InputMaybe; + origin_?: InputMaybe; + origin_contains?: InputMaybe; + origin_contains_nocase?: InputMaybe; + origin_ends_with?: InputMaybe; + origin_ends_with_nocase?: InputMaybe; + origin_gt?: InputMaybe; + origin_gte?: InputMaybe; + origin_in?: InputMaybe>; + origin_lt?: InputMaybe; + origin_lte?: InputMaybe; + origin_not?: InputMaybe; + origin_not_contains?: InputMaybe; + origin_not_contains_nocase?: InputMaybe; + origin_not_ends_with?: InputMaybe; + origin_not_ends_with_nocase?: InputMaybe; + origin_not_in?: InputMaybe>; + origin_not_starts_with?: InputMaybe; + origin_not_starts_with_nocase?: InputMaybe; + origin_starts_with?: InputMaybe; + origin_starts_with_nocase?: InputMaybe; + owner?: InputMaybe; + owner_?: InputMaybe; + owner_contains?: InputMaybe; + owner_contains_nocase?: InputMaybe; + owner_ends_with?: InputMaybe; + owner_ends_with_nocase?: InputMaybe; + owner_gt?: InputMaybe; + owner_gte?: InputMaybe; + owner_in?: InputMaybe>; + owner_lt?: InputMaybe; + owner_lte?: InputMaybe; + owner_not?: InputMaybe; + owner_not_contains?: InputMaybe; + owner_not_contains_nocase?: InputMaybe; + owner_not_ends_with?: InputMaybe; + owner_not_ends_with_nocase?: InputMaybe; + owner_not_in?: InputMaybe>; + owner_not_starts_with?: InputMaybe; + owner_not_starts_with_nocase?: InputMaybe; + owner_starts_with?: InputMaybe; + owner_starts_with_nocase?: 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_?: InputMaybe; + sender_contains?: InputMaybe; + sender_contains_nocase?: InputMaybe; + sender_ends_with?: InputMaybe; + sender_ends_with_nocase?: 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_contains_nocase?: InputMaybe; + sender_not_ends_with?: InputMaybe; + sender_not_ends_with_nocase?: InputMaybe; + sender_not_in?: InputMaybe>; + sender_not_starts_with?: InputMaybe; + sender_not_starts_with_nocase?: InputMaybe; + sender_starts_with?: InputMaybe; + sender_starts_with_nocase?: InputMaybe; + tickLower?: InputMaybe; + tickLower_gt?: InputMaybe; + tickLower_gte?: InputMaybe; + tickLower_in?: InputMaybe>; + tickLower_lt?: InputMaybe; + tickLower_lte?: InputMaybe; + tickLower_not?: InputMaybe; + tickLower_not_in?: InputMaybe>; + tickUpper?: InputMaybe; + tickUpper_gt?: InputMaybe; + tickUpper_gte?: InputMaybe; + tickUpper_in?: InputMaybe>; + tickUpper_lt?: InputMaybe; + tickUpper_lte?: InputMaybe; + tickUpper_not?: InputMaybe; + tickUpper_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>; + 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; + transaction?: InputMaybe; + transaction_?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_contains_nocase?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_ends_with_nocase?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_contains_nocase?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_ends_with_nocase?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_not_starts_with_nocase?: InputMaybe; + transaction_starts_with?: InputMaybe; + transaction_starts_with_nocase?: InputMaybe; +}; + +export enum Mint_OrderBy { + Amount = 'amount', + Amount0 = 'amount0', + Amount1 = 'amount1', + AmountUsd = 'amountUSD', + Id = 'id', + LogIndex = 'logIndex', + Origin = 'origin', + OriginId = 'origin__id', + Owner = 'owner', + OwnerId = 'owner__id', + Pool = 'pool', + PoolBalanceOfBlock = 'pool__balanceOfBlock', + PoolClosedPositionCount = 'pool__closedPositionCount', + PoolCollectedFeesToken0 = 'pool__collectedFeesToken0', + PoolCollectedFeesToken1 = 'pool__collectedFeesToken1', + PoolCollectedFeesUsd = 'pool__collectedFeesUSD', + PoolCollectedVaultWethFees = 'pool__collectedVaultWETHFees', + PoolCreatedAtBlockNumber = 'pool__createdAtBlockNumber', + PoolCreatedAtTimestamp = 'pool__createdAtTimestamp', + PoolFeeGrowthGlobal0X128 = 'pool__feeGrowthGlobal0X128', + PoolFeeGrowthGlobal1X128 = 'pool__feeGrowthGlobal1X128', + PoolFeeTier = 'pool__feeTier', + PoolFeesUsd = 'pool__feesUSD', + PoolId = 'pool__id', + PoolLiquidity = 'pool__liquidity', + PoolLiquidityProviderCount = 'pool__liquidityProviderCount', + PoolName = 'pool__name', + PoolObservationIndex = 'pool__observationIndex', + PoolOpenPositionCount = 'pool__openPositionCount', + PoolSqrtPrice = 'pool__sqrtPrice', + PoolSymbol = 'pool__symbol', + PoolTick = 'pool__tick', + PoolToken0Price = 'pool__token0Price', + PoolToken1Price = 'pool__token1Price', + PoolTotalLiquidity = 'pool__totalLiquidity', + PoolTotalValueLockedEth = 'pool__totalValueLockedETH', + PoolTotalValueLockedToken0 = 'pool__totalValueLockedToken0', + PoolTotalValueLockedToken1 = 'pool__totalValueLockedToken1', + PoolTotalValueLockedUsd = 'pool__totalValueLockedUSD', + PoolTotalValueLockedUsdUntracked = 'pool__totalValueLockedUSDUntracked', + PoolTxCount = 'pool__txCount', + PoolUntrackedVolumeUsd = 'pool__untrackedVolumeUSD', + PoolVolumeToken0 = 'pool__volumeToken0', + PoolVolumeToken1 = 'pool__volumeToken1', + PoolVolumeUsd = 'pool__volumeUSD', + Sender = 'sender', + SenderId = 'sender__id', + TickLower = 'tickLower', + TickUpper = 'tickUpper', + Timestamp = 'timestamp', + Token0 = 'token0', + Token0Decimals = 'token0__decimals', + Token0DerivedEth = 'token0__derivedETH', + Token0DerivedUsd = 'token0__derivedUSD', + Token0FeesUsd = 'token0__feesUSD', + Token0Id = 'token0__id', + Token0Name = 'token0__name', + Token0PoolCount = 'token0__poolCount', + Token0Symbol = 'token0__symbol', + Token0TotalSupply = 'token0__totalSupply', + Token0TotalValueLocked = 'token0__totalValueLocked', + Token0TotalValueLockedUsd = 'token0__totalValueLockedUSD', + Token0TotalValueLockedUsdUntracked = 'token0__totalValueLockedUSDUntracked', + Token0TxCount = 'token0__txCount', + Token0UntrackedVolumeUsd = 'token0__untrackedVolumeUSD', + Token0Volume = 'token0__volume', + Token0VolumeUsd = 'token0__volumeUSD', + Token1 = 'token1', + Token1Decimals = 'token1__decimals', + Token1DerivedEth = 'token1__derivedETH', + Token1DerivedUsd = 'token1__derivedUSD', + Token1FeesUsd = 'token1__feesUSD', + Token1Id = 'token1__id', + Token1Name = 'token1__name', + Token1PoolCount = 'token1__poolCount', + Token1Symbol = 'token1__symbol', + Token1TotalSupply = 'token1__totalSupply', + Token1TotalValueLocked = 'token1__totalValueLocked', + Token1TotalValueLockedUsd = 'token1__totalValueLockedUSD', + Token1TotalValueLockedUsdUntracked = 'token1__totalValueLockedUSDUntracked', + Token1TxCount = 'token1__txCount', + Token1UntrackedVolumeUsd = 'token1__untrackedVolumeUSD', + Token1Volume = 'token1__volume', + Token1VolumeUsd = 'token1__volumeUSD', + Transaction = 'transaction', + TransactionBlockNumber = 'transaction__blockNumber', + TransactionGasPrice = 'transaction__gasPrice', + TransactionGasUsed = 'transaction__gasUsed', + TransactionId = 'transaction__id', + TransactionTimestamp = 'transaction__timestamp' +} + +/** Defines the order direction, either ascending or descending */ +export enum OrderDirection { + Asc = 'asc', + Desc = 'desc' } -export type LiquidityPool = { - __typename?: 'LiquidityPool'; - /** All liquidity `k` that is active. Will be equal to totalLiquidity except for in concentrated liquidity - where activeLiquidity is all liquidity positions that contain the pools current tick. */ - activeLiquidity: Scalars['BigInt']['output']; - activeLiquidityETH: Scalars['BigDecimal']['output']; - /** All liquidity in USD that is active. Will be equal to totalLiquidity except for in concentrated liquidity - where activeLiquidity is all liquidity positions that contain the pools current tick. */ - activeLiquidityUSD: Scalars['BigDecimal']['output']; - /** Number of closed positions in this market */ +export type Pool = { + __typename?: 'Pool'; + balanceOfBlock: Scalars['BigInt']['output']; + burns: Array; closedPositionCount: Scalars['Int']['output']; - /** Creation block number */ - createdBlockNumber: Scalars['BigInt']['output']; - /** Creation timestamp */ - createdTimestamp: Scalars['BigInt']['output']; - /** Total number of deposits (add liquidity) */ - cumulativeDepositCount: Scalars['Int']['output']; - cumulativeProtocolSideRevenueETH: Scalars['BigDecimal']['output']; - /** All revenue generated by the liquidity pool, accrued to the protocol. */ - cumulativeProtocolSideRevenueUSD: Scalars['BigDecimal']['output']; - cumulativeSupplySideRevenueETH: Scalars['BigDecimal']['output']; - /** All revenue generated by the liquidity pool, accrued to the supply side. */ - cumulativeSupplySideRevenueUSD: Scalars['BigDecimal']['output']; - /** Total number of trades (swaps) */ - cumulativeSwapCount: Scalars['Int']['output']; - cumulativeTotalRevenueETH: Scalars['BigDecimal']['output']; - /** All revenue generated by the liquidity pool. */ - cumulativeTotalRevenueUSD: Scalars['BigDecimal']['output']; - /** All trade volume occurred for a specific input token, in native amount. The ordering should be the same as the pool's `inputTokens` field. */ - cumulativeVolumeByTokenAmount: Array; - cumulativeVolumeByTokenETH: Array; - /** All trade volume occurred for a specific input token, in USD. The ordering should be the same as the pool's `inputTokens` field. */ - cumulativeVolumeByTokenUSD: Array; - cumulativeVolumeETH: Scalars['BigDecimal']['output']; - /** All historical trade volume occurred in this pool, in USD */ - cumulativeVolumeUSD: Scalars['BigDecimal']['output']; - /** Total number of withdrawals (remove liquidity) */ - cumulativeWithdrawCount: Scalars['Int']['output']; - /** Liquidity pool daily snapshots */ - dailySnapshots: Array; - /** All deposit (add liquidity) events occurred in this pool */ - deposits: Array; - /** Fees per trade incurred to the user. Should include all fees that apply to a pool (e.g. Curve has a trading fee AND an admin fee, which is a portion of the trading fee. Uniswap only has a trading fee and no protocol fee. ) */ - fees: Array; - /** Liquidity pool hourly snapshots */ - hourlySnapshots: Array; - /** Smart contract address of the pool */ + collectedFeesToken0: Scalars['BigDecimal']['output']; + collectedFeesToken1: Scalars['BigDecimal']['output']; + collectedFeesUSD: Scalars['BigDecimal']['output']; + collectedVaultWETHFees: Scalars['BigDecimal']['output']; + collects: Array; + createdAtBlockNumber: Scalars['BigInt']['output']; + createdAtTimestamp: Scalars['BigInt']['output']; + feeGrowthGlobal0X128: Scalars['BigInt']['output']; + feeGrowthGlobal1X128: Scalars['BigInt']['output']; + feeTier: Scalars['BigInt']['output']; + fees: Array; + feesUSD: Scalars['BigDecimal']['output']; id: Scalars['ID']['output']; - /** Amount of input tokens in the pool. The ordering should be the same as the pool's `inputTokens` field. */ - inputTokenBalances: Array; - inputTokenBalancesETH: Array; - /** Amount of input tokens in USD in the pool. The ordering should be the same as the pool's `inputTokens` field. */ - inputTokenBalancesUSD: Array; - /** Weights of input tokens in the liquidity pool in percentage values. For example, 50/50 for Uniswap pools, 48.2/51.8 for a Curve pool, 10/10/80 for a Balancer pool */ - inputTokenWeights: Array; - /** Tokens that need to be deposited to take a position in protocol. e.g. WETH and USDC to deposit into the WETH-USDC pool. Array to account for multi-asset pools like Curve and Balancer */ inputTokens: Array; - /** Whether this pool is single-sided (e.g. Bancor, Platypus's Alternative Pool). The specifics of the implementation depends on the protocol. */ - isSingleSided: Scalars['Boolean']['output']; - /** Day ID of the most recent daily snapshot */ - lastSnapshotDayID: Scalars['Int']['output']; - /** Hour ID of the most recent hourly snapshot */ - lastSnapshotHourID: Scalars['Int']['output']; - /** Block number of the last time this entity was updated */ - lastUpdateBlockNumber: Scalars['BigInt']['output']; - /** Timestamp of the last time this entity was updated */ - lastUpdateTimestamp: Scalars['BigInt']['output']; - /** Token that is to represent ownership of liquidity */ - liquidityToken?: Maybe; - /** Type of token used to track liquidity */ - liquidityTokenType?: Maybe; - /** Name of liquidity pool (e.g. Curve.fi DAI/USDC/USDT) */ - name?: Maybe; - /** Number of open positions in this market */ + liquidity: Scalars['BigInt']['output']; + liquidityProviderCount: Scalars['BigInt']['output']; + mints: Array; + name: Scalars['String']['output']; + observationIndex: Scalars['BigInt']['output']; openPositionCount: Scalars['Int']['output']; - /** Number of positions in this market */ - positionCount: Scalars['Int']['output']; - /** All positions in this market */ + poolDayData: Array; + poolHourData: Array; positions: Array; - /** The protocol this pool belongs to */ - protocol: DexAmmProtocol; - /** Per-block reward token emission as of the current block normalized to a day, in token's native amount. This should be ideally calculated as the theoretical rate instead of the realized amount. */ - rewardTokenEmissionsAmount?: Maybe>; - /** Per-block reward token emission as of the current block normalized to a day, in USD value. This should be ideally calculated as the theoretical rate instead of the realized amount. */ - rewardTokenEmissionsUSD?: Maybe>; - /** Additional tokens that are given as reward for position in a protocol, usually in liquidity mining programs. e.g. SUSHI in the Onsen program, MATIC for Aave Polygon, usually in liquidity mining programs. e.g. SUSHI in the Onsen program, MATIC for Aave Polygon */ - rewardTokens?: Maybe>; - /** Total supply of output tokens that are staked (usually in the MasterChef contract). Used to calculate reward APY. */ - stakedOutputTokenAmount?: Maybe; - /** All trade (swap) events occurred in this pool */ + sqrtPrice: Scalars['BigInt']['output']; swaps: Array; - /** Symbol of liquidity pool (e.g. 3CRV) */ - symbol?: Maybe; - /** Current tick representing the price of token0/token1 */ + symbol: Scalars['String']['output']; tick?: Maybe; - /** The sum of all active and non-active liquidity for this pool. */ + token0: Token; + token0Price: Scalars['BigDecimal']['output']; + token1: Token; + token1Price: Scalars['BigDecimal']['output']; totalLiquidity: Scalars['BigInt']['output']; - totalLiquidityETH: Scalars['BigDecimal']['output']; - /** The sum of all active and non-active liquidity in USD for this pool. */ - totalLiquidityUSD: Scalars['BigDecimal']['output']; totalValueLockedETH: Scalars['BigDecimal']['output']; - /** Current TVL (Total Value Locked) of this pool in USD */ + totalValueLockedToken0: Scalars['BigDecimal']['output']; + totalValueLockedToken1: Scalars['BigDecimal']['output']; totalValueLockedUSD: Scalars['BigDecimal']['output']; - /** All protocol-side value locked in token amounts that remains uncollected and unused in the pool. */ - uncollectedProtocolSideTokenAmounts: Array; - uncollectedProtocolSideValuesETH: Array; - /** All protocol-side value locking in USD that remains uncollected and unused in the pool. */ - uncollectedProtocolSideValuesUSD: Array; - /** All supply-side value locked in token amounts that remains uncollected and unused in the pool. */ - uncollectedSupplySideTokenAmounts: Array; - uncollectedSupplySideValuesETH: Array; - /** All supply-side value locked in USD that remains uncollected and unused in the pool. */ - uncollectedSupplySideValuesUSD: Array; - /** All withdraw (remove liquidity) events occurred in this pool */ - withdraws: Array; -}; - - -export type LiquidityPoolDailySnapshotsArgs = { + totalValueLockedUSDUntracked: Scalars['BigDecimal']['output']; + txCount: Scalars['BigInt']['output']; + untrackedVolumeUSD: Scalars['BigDecimal']['output']; + volumeToken0: Scalars['BigDecimal']['output']; + volumeToken1: Scalars['BigDecimal']['output']; + volumeUSD: Scalars['BigDecimal']['output']; +}; + + +export type PoolBurnsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; -export type LiquidityPoolDepositsArgs = { +export type PoolCollectsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; -export type LiquidityPoolFeesArgs = { +export type PoolFeesArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; -export type LiquidityPoolHourlySnapshotsArgs = { +export type PoolInputTokensArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; -export type LiquidityPoolInputTokensArgs = { +export type PoolMintsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; -export type LiquidityPoolPositionsArgs = { +export type PoolPoolDayDataArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; -export type LiquidityPoolRewardTokensArgs = { +export type PoolPoolHourDataArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; -export type LiquidityPoolSwapsArgs = { +export type PoolPositionsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; }; -export type LiquidityPoolWithdrawsArgs = { +export type PoolSwapsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; -}; - -export type LiquidityPoolDailySnapshot = { - __typename?: 'LiquidityPoolDailySnapshot'; - /** All liquidity `k` that is active. Will be equal to totalLiquidity except for in concentrated liquidity - where activeLiquidity is all liquidity positions that contain the pools current tick. */ - activeLiquidity: Scalars['BigInt']['output']; - /** All liquidity in ETH that is active. Will be equal to totalLiquidity except for in concentrated liquidity - where activeLiquidity is all liquidity positions that contain the pools current tick. */ - activeLiquidityETH: Scalars['BigDecimal']['output']; - /** All liquidity in USD that is active. Will be equal to totalLiquidity except for in concentrated liquidity - where activeLiquidity is all liquidity positions that contain the pools current tick. */ - activeLiquidityUSD: Scalars['BigDecimal']['output']; - /** Block number of when this snapshot was taken/last modified (May be taken after interval has passed) */ - blockNumber: Scalars['BigInt']['output']; - /** Number of closed positions in this market */ - closedPositionCount: Scalars['Int']['output']; - /** Total number of deposits (add liquidity) */ - cumulativeDepositCount: Scalars['Int']['output']; - /** All revenue generated by the liquidity pool, accrued to the protocol. */ - cumulativeProtocolSideRevenueETH: Scalars['BigDecimal']['output']; - /** All revenue generated by the liquidity pool, accrued to the protocol. */ - cumulativeProtocolSideRevenueUSD: Scalars['BigDecimal']['output']; - /** All revenue generated by the liquidity pool, accrued to the supply side. */ - cumulativeSupplySideRevenueETH: Scalars['BigDecimal']['output']; - /** All revenue generated by the liquidity pool, accrued to the supply side. */ - cumulativeSupplySideRevenueUSD: Scalars['BigDecimal']['output']; - /** Total number of trades (swaps) */ - cumulativeSwapCount: Scalars['Int']['output']; - /** All revenue generated by the liquidity pool. */ - cumulativeTotalRevenueETH: Scalars['BigDecimal']['output']; - /** All revenue generated by the liquidity pool. */ - cumulativeTotalRevenueUSD: Scalars['BigDecimal']['output']; - /** All trade volume , in native amount. The ordering should be the same as the pool's `inputTokens` field. */ - cumulativeVolumeByTokenAmount: Array; - /** All trade volume, in USD. The ordering should be the same as the pool's `inputTokens` field. */ - cumulativeVolumeByTokenETH: Array; - /** All trade volume, in USD. The ordering should be the same as the pool's `inputTokens` field. */ - cumulativeVolumeByTokenUSD: Array; - /** All historical trade volume occurred in this pool, in ETH */ - cumulativeVolumeETH: Scalars['BigDecimal']['output']; - /** All historical trade volume occurred in this pool, in USD */ - cumulativeVolumeUSD: Scalars['BigDecimal']['output']; - /** Total number of withdrawals (remove liquidity) */ - cumulativeWithdrawCount: Scalars['Int']['output']; - /** Total number of deposits (add liquidity) in a day */ - dailyDepositCount: Scalars['Int']['output']; - /** Daily revenue generated by the liquidity pool, accrued to the protocol. */ - dailyProtocolSideRevenueETH: Scalars['BigDecimal']['output']; - /** Daily revenue generated by the liquidity pool, accrued to the protocol. */ - dailyProtocolSideRevenueUSD: Scalars['BigDecimal']['output']; - /** Daily revenue generated by the liquidity pool, accrued to the supply side. */ - dailySupplySideRevenueETH: Scalars['BigDecimal']['output']; - /** Daily revenue generated by the liquidity pool, accrued to the supply side. */ - dailySupplySideRevenueUSD: Scalars['BigDecimal']['output']; - /** Total number of trades (swaps) in a day */ - dailySwapCount: Scalars['Int']['output']; - /** Daily revenue generated by the liquidity pool. */ - dailyTotalRevenueETH: Scalars['BigDecimal']['output']; - /** Daily revenue generated by the liquidity pool. */ - dailyTotalRevenueUSD: Scalars['BigDecimal']['output']; - /** All trade volume occurred in a given day for a specific input token, in native amount. The ordering should be the same as the pool's `inputTokens` field. */ - dailyVolumeByTokenAmount: Array; - /** All trade volume occurred in a given day for a specific input token, in USD. The ordering should be the same as the pool's `inputTokens` field. */ - dailyVolumeByTokenETH: Array; - /** All trade volume occurred in a given day for a specific input token, in USD. The ordering should be the same as the pool's `inputTokens` field. */ - dailyVolumeByTokenUSD: Array; - /** All trade volume occurred in a given day, in ETH */ - dailyVolumeETH: Scalars['BigDecimal']['output']; - /** All trade volume occurred in a given day, in USD */ - dailyVolumeUSD: Scalars['BigDecimal']['output']; - /** Total number of withdrawals (remove liquidity) in a day */ - dailyWithdrawCount: Scalars['Int']['output']; - /** Number of days since Unix epoch time */ - day: Scalars['Int']['output']; - /** { Smart contract address of the pool }-{ # of days since Unix epoch time } */ - id: Scalars['Bytes']['output']; - /** Amount of input tokens in the pool. The ordering should be the same as the pool's `inputTokens` field. */ - inputTokenBalances: Array; - /** Amount of input tokens in USD in the pool. The ordering should be the same as the pool's `inputTokens` field. */ - inputTokenBalancesUSD: Array; - /** Weights of input tokens in the liquidity pool in percentage values. For example, 50/50 for Uniswap pools, 48.2/51.8 for a Curve pool, 10/10/80 for a Balancer pool */ - inputTokenWeights: Array; - /** Number of open positions in this market */ - openPositionCount: Scalars['Int']['output']; - /** The pool this snapshot belongs to */ - pool: LiquidityPool; - /** Number of positions in this market */ - positionCount: Scalars['Int']['output']; - /** The protocol this snapshot belongs to */ - protocol: DexAmmProtocol; - /** Per-block reward token emission as of the current block normalized to a day, in token's native amount. This should be ideally calculated as the theoretical rate instead of the realized amount. */ - rewardTokenEmissionsAmount?: Maybe>; - /** Per-block reward token emission as of the current block normalized to a day, in USD value. This should be ideally calculated as the theoretical rate instead of the realized amount. */ - rewardTokenEmissionsUSD?: Maybe>; - /** Total supply of output tokens that are staked (usually in the MasterChef contract). Used to calculate reward APY. */ - stakedOutputTokenAmount?: Maybe; - /** Current tick representing the price of token0/token1 */ + where?: InputMaybe; +}; + +export type PoolDayData = { + __typename?: 'PoolDayData'; + close: Scalars['BigDecimal']['output']; + date: Scalars['Int']['output']; + feeGrowthGlobal0X128: Scalars['BigInt']['output']; + feeGrowthGlobal1X128: Scalars['BigInt']['output']; + feesETH: Scalars['BigDecimal']['output']; + feesUSD: Scalars['BigDecimal']['output']; + high: Scalars['BigDecimal']['output']; + id: Scalars['ID']['output']; + liquidity: Scalars['BigInt']['output']; + low: Scalars['BigDecimal']['output']; + open: Scalars['BigDecimal']['output']; + pool: Pool; + sqrtPrice: Scalars['BigInt']['output']; tick?: Maybe; - /** Timestamp of when this snapshot was taken/last modified (May be taken after interval has passed) */ - timestamp: Scalars['BigInt']['output']; - /** The sum of all active and non-active liquidity for this pool. */ - totalLiquidity: Scalars['BigInt']['output']; - totalLiquidityETH: Scalars['BigDecimal']['output']; - /** The sum of all active and non-active liquidity in USD for this pool. */ - totalLiquidityUSD: Scalars['BigDecimal']['output']; - totalValueLockedETH: Scalars['BigDecimal']['output']; - /** Current TVL (Total Value Locked) of this pool */ - totalValueLockedUSD: Scalars['BigDecimal']['output']; - /** All protocol-side value locked in token amounts that remains uncollected and unused in the pool. */ - uncollectedProtocolSideTokenAmounts: Array; - /** All protocol-side value locking in USD that remains uncollected and unused in the pool. */ - uncollectedProtocolSideValuesETH: Array; - /** All protocol-side value locking in USD that remains uncollected and unused in the pool. */ - uncollectedProtocolSideValuesUSD: Array; - /** All supply-side value locked in token amounts that remains uncollected and unused in the pool. */ - uncollectedSupplySideTokenAmounts: Array; - /** All supply-side value locked in USD that remains uncollected and unused in the pool. */ - uncollectedSupplySideValuesETH: Array; - /** All supply-side value locked in USD that remains uncollected and unused in the pool. */ - uncollectedSupplySideValuesUSD: Array; -}; - -export type LiquidityPoolDailySnapshot_Filter = { + token0Price: Scalars['BigDecimal']['output']; + token1Price: Scalars['BigDecimal']['output']; + totalValueLockedToken0: Scalars['BigDecimal']['output']; + totalValueLockedToken1: Scalars['BigDecimal']['output']; + tvlETH: Scalars['BigDecimal']['output']; + tvlUSD: Scalars['BigDecimal']['output']; + txCount: Scalars['BigInt']['output']; + volumeToken0: Scalars['BigDecimal']['output']; + volumeToken1: Scalars['BigDecimal']['output']; + volumeUSD: Scalars['BigDecimal']['output']; +}; + +export type PoolDayData_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - activeLiquidity?: InputMaybe; - activeLiquidityETH?: InputMaybe; - activeLiquidityETH_gt?: InputMaybe; - activeLiquidityETH_gte?: InputMaybe; - activeLiquidityETH_in?: InputMaybe>; - activeLiquidityETH_lt?: InputMaybe; - activeLiquidityETH_lte?: InputMaybe; - activeLiquidityETH_not?: InputMaybe; - activeLiquidityETH_not_in?: InputMaybe>; - activeLiquidityUSD?: InputMaybe; - activeLiquidityUSD_gt?: InputMaybe; - activeLiquidityUSD_gte?: InputMaybe; - activeLiquidityUSD_in?: InputMaybe>; - activeLiquidityUSD_lt?: InputMaybe; - activeLiquidityUSD_lte?: InputMaybe; - activeLiquidityUSD_not?: InputMaybe; - activeLiquidityUSD_not_in?: InputMaybe>; - activeLiquidity_gt?: InputMaybe; - activeLiquidity_gte?: InputMaybe; - activeLiquidity_in?: InputMaybe>; - activeLiquidity_lt?: InputMaybe; - activeLiquidity_lte?: InputMaybe; - activeLiquidity_not?: InputMaybe; - activeLiquidity_not_in?: InputMaybe>; - and?: InputMaybe>>; - blockNumber?: InputMaybe; - blockNumber_gt?: InputMaybe; - blockNumber_gte?: InputMaybe; - blockNumber_in?: InputMaybe>; - blockNumber_lt?: InputMaybe; - blockNumber_lte?: InputMaybe; - blockNumber_not?: InputMaybe; - blockNumber_not_in?: InputMaybe>; - closedPositionCount?: InputMaybe; - closedPositionCount_gt?: InputMaybe; - closedPositionCount_gte?: InputMaybe; - closedPositionCount_in?: InputMaybe>; - closedPositionCount_lt?: InputMaybe; - closedPositionCount_lte?: InputMaybe; - closedPositionCount_not?: InputMaybe; - closedPositionCount_not_in?: InputMaybe>; - cumulativeDepositCount?: InputMaybe; - cumulativeDepositCount_gt?: InputMaybe; - cumulativeDepositCount_gte?: InputMaybe; - cumulativeDepositCount_in?: InputMaybe>; - cumulativeDepositCount_lt?: InputMaybe; - cumulativeDepositCount_lte?: InputMaybe; - cumulativeDepositCount_not?: InputMaybe; - cumulativeDepositCount_not_in?: InputMaybe>; - cumulativeProtocolSideRevenueETH?: InputMaybe; - cumulativeProtocolSideRevenueETH_gt?: InputMaybe; - cumulativeProtocolSideRevenueETH_gte?: InputMaybe; - cumulativeProtocolSideRevenueETH_in?: InputMaybe>; - cumulativeProtocolSideRevenueETH_lt?: InputMaybe; - cumulativeProtocolSideRevenueETH_lte?: InputMaybe; - cumulativeProtocolSideRevenueETH_not?: InputMaybe; - cumulativeProtocolSideRevenueETH_not_in?: InputMaybe>; - cumulativeProtocolSideRevenueUSD?: InputMaybe; - cumulativeProtocolSideRevenueUSD_gt?: InputMaybe; - cumulativeProtocolSideRevenueUSD_gte?: InputMaybe; - cumulativeProtocolSideRevenueUSD_in?: InputMaybe>; - cumulativeProtocolSideRevenueUSD_lt?: InputMaybe; - cumulativeProtocolSideRevenueUSD_lte?: InputMaybe; - cumulativeProtocolSideRevenueUSD_not?: InputMaybe; - cumulativeProtocolSideRevenueUSD_not_in?: InputMaybe>; - cumulativeSupplySideRevenueETH?: InputMaybe; - cumulativeSupplySideRevenueETH_gt?: InputMaybe; - cumulativeSupplySideRevenueETH_gte?: InputMaybe; - cumulativeSupplySideRevenueETH_in?: InputMaybe>; - cumulativeSupplySideRevenueETH_lt?: InputMaybe; - cumulativeSupplySideRevenueETH_lte?: InputMaybe; - cumulativeSupplySideRevenueETH_not?: InputMaybe; - cumulativeSupplySideRevenueETH_not_in?: InputMaybe>; - cumulativeSupplySideRevenueUSD?: InputMaybe; - cumulativeSupplySideRevenueUSD_gt?: InputMaybe; - cumulativeSupplySideRevenueUSD_gte?: InputMaybe; - cumulativeSupplySideRevenueUSD_in?: InputMaybe>; - cumulativeSupplySideRevenueUSD_lt?: InputMaybe; - cumulativeSupplySideRevenueUSD_lte?: InputMaybe; - cumulativeSupplySideRevenueUSD_not?: InputMaybe; - cumulativeSupplySideRevenueUSD_not_in?: InputMaybe>; - cumulativeSwapCount?: InputMaybe; - cumulativeSwapCount_gt?: InputMaybe; - cumulativeSwapCount_gte?: InputMaybe; - cumulativeSwapCount_in?: InputMaybe>; - cumulativeSwapCount_lt?: InputMaybe; - cumulativeSwapCount_lte?: InputMaybe; - cumulativeSwapCount_not?: InputMaybe; - cumulativeSwapCount_not_in?: InputMaybe>; - cumulativeTotalRevenueETH?: InputMaybe; - cumulativeTotalRevenueETH_gt?: InputMaybe; - cumulativeTotalRevenueETH_gte?: InputMaybe; - cumulativeTotalRevenueETH_in?: InputMaybe>; - cumulativeTotalRevenueETH_lt?: InputMaybe; - cumulativeTotalRevenueETH_lte?: InputMaybe; - cumulativeTotalRevenueETH_not?: InputMaybe; - cumulativeTotalRevenueETH_not_in?: InputMaybe>; - cumulativeTotalRevenueUSD?: InputMaybe; - cumulativeTotalRevenueUSD_gt?: InputMaybe; - cumulativeTotalRevenueUSD_gte?: InputMaybe; - cumulativeTotalRevenueUSD_in?: InputMaybe>; - cumulativeTotalRevenueUSD_lt?: InputMaybe; - cumulativeTotalRevenueUSD_lte?: InputMaybe; - cumulativeTotalRevenueUSD_not?: InputMaybe; - cumulativeTotalRevenueUSD_not_in?: InputMaybe>; - cumulativeVolumeByTokenAmount?: InputMaybe>; - cumulativeVolumeByTokenAmount_contains?: InputMaybe>; - cumulativeVolumeByTokenAmount_contains_nocase?: InputMaybe>; - cumulativeVolumeByTokenAmount_not?: InputMaybe>; - cumulativeVolumeByTokenAmount_not_contains?: InputMaybe>; - cumulativeVolumeByTokenAmount_not_contains_nocase?: InputMaybe>; - cumulativeVolumeByTokenETH?: InputMaybe>; - cumulativeVolumeByTokenETH_contains?: InputMaybe>; - cumulativeVolumeByTokenETH_contains_nocase?: InputMaybe>; - cumulativeVolumeByTokenETH_not?: InputMaybe>; - cumulativeVolumeByTokenETH_not_contains?: InputMaybe>; - cumulativeVolumeByTokenETH_not_contains_nocase?: InputMaybe>; - cumulativeVolumeByTokenUSD?: InputMaybe>; - cumulativeVolumeByTokenUSD_contains?: InputMaybe>; - cumulativeVolumeByTokenUSD_contains_nocase?: InputMaybe>; - cumulativeVolumeByTokenUSD_not?: InputMaybe>; - cumulativeVolumeByTokenUSD_not_contains?: InputMaybe>; - cumulativeVolumeByTokenUSD_not_contains_nocase?: InputMaybe>; - cumulativeVolumeETH?: InputMaybe; - cumulativeVolumeETH_gt?: InputMaybe; - cumulativeVolumeETH_gte?: InputMaybe; - cumulativeVolumeETH_in?: InputMaybe>; - cumulativeVolumeETH_lt?: InputMaybe; - cumulativeVolumeETH_lte?: InputMaybe; - cumulativeVolumeETH_not?: InputMaybe; - cumulativeVolumeETH_not_in?: InputMaybe>; - cumulativeVolumeUSD?: InputMaybe; - cumulativeVolumeUSD_gt?: InputMaybe; - cumulativeVolumeUSD_gte?: InputMaybe; - cumulativeVolumeUSD_in?: InputMaybe>; - cumulativeVolumeUSD_lt?: InputMaybe; - cumulativeVolumeUSD_lte?: InputMaybe; - cumulativeVolumeUSD_not?: InputMaybe; - cumulativeVolumeUSD_not_in?: InputMaybe>; - cumulativeWithdrawCount?: InputMaybe; - cumulativeWithdrawCount_gt?: InputMaybe; - cumulativeWithdrawCount_gte?: InputMaybe; - cumulativeWithdrawCount_in?: InputMaybe>; - cumulativeWithdrawCount_lt?: InputMaybe; - cumulativeWithdrawCount_lte?: InputMaybe; - cumulativeWithdrawCount_not?: InputMaybe; - cumulativeWithdrawCount_not_in?: InputMaybe>; - dailyDepositCount?: InputMaybe; - dailyDepositCount_gt?: InputMaybe; - dailyDepositCount_gte?: InputMaybe; - dailyDepositCount_in?: InputMaybe>; - dailyDepositCount_lt?: InputMaybe; - dailyDepositCount_lte?: InputMaybe; - dailyDepositCount_not?: InputMaybe; - dailyDepositCount_not_in?: InputMaybe>; - dailyProtocolSideRevenueETH?: InputMaybe; - dailyProtocolSideRevenueETH_gt?: InputMaybe; - dailyProtocolSideRevenueETH_gte?: InputMaybe; - dailyProtocolSideRevenueETH_in?: InputMaybe>; - dailyProtocolSideRevenueETH_lt?: InputMaybe; - dailyProtocolSideRevenueETH_lte?: InputMaybe; - dailyProtocolSideRevenueETH_not?: InputMaybe; - dailyProtocolSideRevenueETH_not_in?: InputMaybe>; - dailyProtocolSideRevenueUSD?: InputMaybe; - dailyProtocolSideRevenueUSD_gt?: InputMaybe; - dailyProtocolSideRevenueUSD_gte?: InputMaybe; - dailyProtocolSideRevenueUSD_in?: InputMaybe>; - dailyProtocolSideRevenueUSD_lt?: InputMaybe; - dailyProtocolSideRevenueUSD_lte?: InputMaybe; - dailyProtocolSideRevenueUSD_not?: InputMaybe; - dailyProtocolSideRevenueUSD_not_in?: InputMaybe>; - dailySupplySideRevenueETH?: InputMaybe; - dailySupplySideRevenueETH_gt?: InputMaybe; - dailySupplySideRevenueETH_gte?: InputMaybe; - dailySupplySideRevenueETH_in?: InputMaybe>; - dailySupplySideRevenueETH_lt?: InputMaybe; - dailySupplySideRevenueETH_lte?: InputMaybe; - dailySupplySideRevenueETH_not?: InputMaybe; - dailySupplySideRevenueETH_not_in?: InputMaybe>; - dailySupplySideRevenueUSD?: InputMaybe; - dailySupplySideRevenueUSD_gt?: InputMaybe; - dailySupplySideRevenueUSD_gte?: InputMaybe; - dailySupplySideRevenueUSD_in?: InputMaybe>; - dailySupplySideRevenueUSD_lt?: InputMaybe; - dailySupplySideRevenueUSD_lte?: InputMaybe; - dailySupplySideRevenueUSD_not?: InputMaybe; - dailySupplySideRevenueUSD_not_in?: InputMaybe>; - dailySwapCount?: InputMaybe; - dailySwapCount_gt?: InputMaybe; - dailySwapCount_gte?: InputMaybe; - dailySwapCount_in?: InputMaybe>; - dailySwapCount_lt?: InputMaybe; - dailySwapCount_lte?: InputMaybe; - dailySwapCount_not?: InputMaybe; - dailySwapCount_not_in?: InputMaybe>; - dailyTotalRevenueETH?: InputMaybe; - dailyTotalRevenueETH_gt?: InputMaybe; - dailyTotalRevenueETH_gte?: InputMaybe; - dailyTotalRevenueETH_in?: InputMaybe>; - dailyTotalRevenueETH_lt?: InputMaybe; - dailyTotalRevenueETH_lte?: InputMaybe; - dailyTotalRevenueETH_not?: InputMaybe; - dailyTotalRevenueETH_not_in?: InputMaybe>; - dailyTotalRevenueUSD?: InputMaybe; - dailyTotalRevenueUSD_gt?: InputMaybe; - dailyTotalRevenueUSD_gte?: InputMaybe; - dailyTotalRevenueUSD_in?: InputMaybe>; - dailyTotalRevenueUSD_lt?: InputMaybe; - dailyTotalRevenueUSD_lte?: InputMaybe; - dailyTotalRevenueUSD_not?: InputMaybe; - dailyTotalRevenueUSD_not_in?: InputMaybe>; - dailyVolumeByTokenAmount?: InputMaybe>; - dailyVolumeByTokenAmount_contains?: InputMaybe>; - dailyVolumeByTokenAmount_contains_nocase?: InputMaybe>; - dailyVolumeByTokenAmount_not?: InputMaybe>; - dailyVolumeByTokenAmount_not_contains?: InputMaybe>; - dailyVolumeByTokenAmount_not_contains_nocase?: InputMaybe>; - dailyVolumeByTokenETH?: InputMaybe>; - dailyVolumeByTokenETH_contains?: InputMaybe>; - dailyVolumeByTokenETH_contains_nocase?: InputMaybe>; - dailyVolumeByTokenETH_not?: InputMaybe>; - dailyVolumeByTokenETH_not_contains?: InputMaybe>; - dailyVolumeByTokenETH_not_contains_nocase?: InputMaybe>; - dailyVolumeByTokenUSD?: InputMaybe>; - dailyVolumeByTokenUSD_contains?: InputMaybe>; - dailyVolumeByTokenUSD_contains_nocase?: InputMaybe>; - dailyVolumeByTokenUSD_not?: InputMaybe>; - dailyVolumeByTokenUSD_not_contains?: InputMaybe>; - dailyVolumeByTokenUSD_not_contains_nocase?: InputMaybe>; - dailyVolumeETH?: InputMaybe; - dailyVolumeETH_gt?: InputMaybe; - dailyVolumeETH_gte?: InputMaybe; - dailyVolumeETH_in?: InputMaybe>; - dailyVolumeETH_lt?: InputMaybe; - dailyVolumeETH_lte?: InputMaybe; - dailyVolumeETH_not?: InputMaybe; - dailyVolumeETH_not_in?: InputMaybe>; - dailyVolumeUSD?: InputMaybe; - dailyVolumeUSD_gt?: InputMaybe; - dailyVolumeUSD_gte?: InputMaybe; - dailyVolumeUSD_in?: InputMaybe>; - dailyVolumeUSD_lt?: InputMaybe; - dailyVolumeUSD_lte?: InputMaybe; - dailyVolumeUSD_not?: InputMaybe; - dailyVolumeUSD_not_in?: InputMaybe>; - dailyWithdrawCount?: InputMaybe; - dailyWithdrawCount_gt?: InputMaybe; - dailyWithdrawCount_gte?: InputMaybe; - dailyWithdrawCount_in?: InputMaybe>; - dailyWithdrawCount_lt?: InputMaybe; - dailyWithdrawCount_lte?: InputMaybe; - dailyWithdrawCount_not?: InputMaybe; - dailyWithdrawCount_not_in?: InputMaybe>; - day?: InputMaybe; - day_gt?: InputMaybe; - day_gte?: InputMaybe; - day_in?: InputMaybe>; - day_lt?: InputMaybe; - day_lte?: InputMaybe; - day_not?: InputMaybe; - day_not_in?: InputMaybe>; - id?: InputMaybe; - id_contains?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_contains?: InputMaybe; - id_not_in?: InputMaybe>; - inputTokenBalances?: InputMaybe>; - inputTokenBalancesUSD?: InputMaybe>; - inputTokenBalancesUSD_contains?: InputMaybe>; - inputTokenBalancesUSD_contains_nocase?: InputMaybe>; - inputTokenBalancesUSD_not?: InputMaybe>; - inputTokenBalancesUSD_not_contains?: InputMaybe>; - inputTokenBalancesUSD_not_contains_nocase?: InputMaybe>; - inputTokenBalances_contains?: InputMaybe>; - inputTokenBalances_contains_nocase?: InputMaybe>; - inputTokenBalances_not?: InputMaybe>; - inputTokenBalances_not_contains?: InputMaybe>; - inputTokenBalances_not_contains_nocase?: InputMaybe>; - inputTokenWeights?: InputMaybe>; - inputTokenWeights_contains?: InputMaybe>; - inputTokenWeights_contains_nocase?: InputMaybe>; - inputTokenWeights_not?: InputMaybe>; - inputTokenWeights_not_contains?: InputMaybe>; - inputTokenWeights_not_contains_nocase?: InputMaybe>; - openPositionCount?: InputMaybe; - openPositionCount_gt?: InputMaybe; - openPositionCount_gte?: InputMaybe; - openPositionCount_in?: InputMaybe>; - openPositionCount_lt?: InputMaybe; - openPositionCount_lte?: InputMaybe; - openPositionCount_not?: InputMaybe; - openPositionCount_not_in?: InputMaybe>; - or?: InputMaybe>>; + and?: InputMaybe>>; + close?: InputMaybe; + close_gt?: InputMaybe; + close_gte?: InputMaybe; + close_in?: InputMaybe>; + close_lt?: InputMaybe; + close_lte?: InputMaybe; + close_not?: InputMaybe; + close_not_in?: InputMaybe>; + date?: InputMaybe; + date_gt?: InputMaybe; + date_gte?: InputMaybe; + date_in?: InputMaybe>; + date_lt?: InputMaybe; + date_lte?: InputMaybe; + date_not?: InputMaybe; + date_not_in?: InputMaybe>; + feeGrowthGlobal0X128?: InputMaybe; + feeGrowthGlobal0X128_gt?: InputMaybe; + feeGrowthGlobal0X128_gte?: InputMaybe; + feeGrowthGlobal0X128_in?: InputMaybe>; + feeGrowthGlobal0X128_lt?: InputMaybe; + feeGrowthGlobal0X128_lte?: InputMaybe; + feeGrowthGlobal0X128_not?: InputMaybe; + feeGrowthGlobal0X128_not_in?: InputMaybe>; + feeGrowthGlobal1X128?: InputMaybe; + feeGrowthGlobal1X128_gt?: InputMaybe; + feeGrowthGlobal1X128_gte?: InputMaybe; + feeGrowthGlobal1X128_in?: InputMaybe>; + feeGrowthGlobal1X128_lt?: InputMaybe; + feeGrowthGlobal1X128_lte?: InputMaybe; + feeGrowthGlobal1X128_not?: InputMaybe; + feeGrowthGlobal1X128_not_in?: InputMaybe>; + feesETH?: InputMaybe; + feesETH_gt?: InputMaybe; + feesETH_gte?: InputMaybe; + feesETH_in?: InputMaybe>; + feesETH_lt?: InputMaybe; + feesETH_lte?: InputMaybe; + feesETH_not?: InputMaybe; + feesETH_not_in?: InputMaybe>; + feesUSD?: InputMaybe; + feesUSD_gt?: InputMaybe; + feesUSD_gte?: InputMaybe; + feesUSD_in?: InputMaybe>; + feesUSD_lt?: InputMaybe; + feesUSD_lte?: InputMaybe; + feesUSD_not?: InputMaybe; + feesUSD_not_in?: InputMaybe>; + high?: InputMaybe; + high_gt?: InputMaybe; + high_gte?: InputMaybe; + high_in?: InputMaybe>; + high_lt?: InputMaybe; + high_lte?: InputMaybe; + high_not?: InputMaybe; + high_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>; + low?: InputMaybe; + low_gt?: InputMaybe; + low_gte?: InputMaybe; + low_in?: InputMaybe>; + low_lt?: InputMaybe; + low_lte?: InputMaybe; + low_not?: InputMaybe; + low_not_in?: InputMaybe>; + open?: InputMaybe; + open_gt?: InputMaybe; + open_gte?: InputMaybe; + open_in?: InputMaybe>; + open_lt?: InputMaybe; + open_lte?: InputMaybe; + open_not?: InputMaybe; + open_not_in?: InputMaybe>; + or?: InputMaybe>>; pool?: InputMaybe; - pool_?: InputMaybe; + pool_?: InputMaybe; pool_contains?: InputMaybe; pool_contains_nocase?: InputMaybe; pool_ends_with?: InputMaybe; @@ -2183,55 +1745,14 @@ export type LiquidityPoolDailySnapshot_Filter = { pool_not_starts_with_nocase?: InputMaybe; pool_starts_with?: InputMaybe; pool_starts_with_nocase?: InputMaybe; - positionCount?: InputMaybe; - positionCount_gt?: InputMaybe; - positionCount_gte?: InputMaybe; - positionCount_in?: InputMaybe>; - positionCount_lt?: InputMaybe; - positionCount_lte?: InputMaybe; - positionCount_not?: InputMaybe; - positionCount_not_in?: InputMaybe>; - protocol?: InputMaybe; - protocol_?: InputMaybe; - protocol_contains?: InputMaybe; - protocol_contains_nocase?: InputMaybe; - protocol_ends_with?: InputMaybe; - protocol_ends_with_nocase?: InputMaybe; - protocol_gt?: InputMaybe; - protocol_gte?: InputMaybe; - protocol_in?: InputMaybe>; - protocol_lt?: InputMaybe; - protocol_lte?: InputMaybe; - protocol_not?: InputMaybe; - protocol_not_contains?: InputMaybe; - protocol_not_contains_nocase?: InputMaybe; - protocol_not_ends_with?: InputMaybe; - protocol_not_ends_with_nocase?: InputMaybe; - protocol_not_in?: InputMaybe>; - protocol_not_starts_with?: InputMaybe; - protocol_not_starts_with_nocase?: InputMaybe; - protocol_starts_with?: InputMaybe; - protocol_starts_with_nocase?: InputMaybe; - rewardTokenEmissionsAmount?: InputMaybe>; - rewardTokenEmissionsAmount_contains?: InputMaybe>; - rewardTokenEmissionsAmount_contains_nocase?: InputMaybe>; - rewardTokenEmissionsAmount_not?: InputMaybe>; - rewardTokenEmissionsAmount_not_contains?: InputMaybe>; - rewardTokenEmissionsAmount_not_contains_nocase?: InputMaybe>; - rewardTokenEmissionsUSD?: InputMaybe>; - rewardTokenEmissionsUSD_contains?: InputMaybe>; - rewardTokenEmissionsUSD_contains_nocase?: InputMaybe>; - rewardTokenEmissionsUSD_not?: InputMaybe>; - rewardTokenEmissionsUSD_not_contains?: InputMaybe>; - rewardTokenEmissionsUSD_not_contains_nocase?: InputMaybe>; - stakedOutputTokenAmount?: InputMaybe; - stakedOutputTokenAmount_gt?: InputMaybe; - stakedOutputTokenAmount_gte?: InputMaybe; - stakedOutputTokenAmount_in?: InputMaybe>; - stakedOutputTokenAmount_lt?: InputMaybe; - stakedOutputTokenAmount_lte?: InputMaybe; - stakedOutputTokenAmount_not?: InputMaybe; - stakedOutputTokenAmount_not_in?: InputMaybe>; + sqrtPrice?: InputMaybe; + sqrtPrice_gt?: InputMaybe; + sqrtPrice_gte?: InputMaybe; + sqrtPrice_in?: InputMaybe>; + sqrtPrice_lt?: InputMaybe; + sqrtPrice_lte?: InputMaybe; + sqrtPrice_not?: InputMaybe; + sqrtPrice_not_in?: InputMaybe>; tick?: InputMaybe; tick_gt?: InputMaybe; tick_gte?: InputMaybe; @@ -2240,236 +1761,157 @@ export type LiquidityPoolDailySnapshot_Filter = { tick_lte?: InputMaybe; tick_not?: InputMaybe; tick_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; - totalLiquidityETH?: InputMaybe; - totalLiquidityETH_gt?: InputMaybe; - totalLiquidityETH_gte?: InputMaybe; - totalLiquidityETH_in?: InputMaybe>; - totalLiquidityETH_lt?: InputMaybe; - totalLiquidityETH_lte?: InputMaybe; - totalLiquidityETH_not?: InputMaybe; - totalLiquidityETH_not_in?: InputMaybe>; - totalLiquidityUSD?: InputMaybe; - totalLiquidityUSD_gt?: InputMaybe; - totalLiquidityUSD_gte?: InputMaybe; - totalLiquidityUSD_in?: InputMaybe>; - totalLiquidityUSD_lt?: InputMaybe; - totalLiquidityUSD_lte?: InputMaybe; - totalLiquidityUSD_not?: InputMaybe; - totalLiquidityUSD_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>; - totalValueLockedETH?: InputMaybe; - totalValueLockedETH_gt?: InputMaybe; - totalValueLockedETH_gte?: InputMaybe; - totalValueLockedETH_in?: InputMaybe>; - totalValueLockedETH_lt?: InputMaybe; - totalValueLockedETH_lte?: InputMaybe; - totalValueLockedETH_not?: InputMaybe; - totalValueLockedETH_not_in?: InputMaybe>; - totalValueLockedUSD?: InputMaybe; - totalValueLockedUSD_gt?: InputMaybe; - totalValueLockedUSD_gte?: InputMaybe; - totalValueLockedUSD_in?: InputMaybe>; - totalValueLockedUSD_lt?: InputMaybe; - totalValueLockedUSD_lte?: InputMaybe; - totalValueLockedUSD_not?: InputMaybe; - totalValueLockedUSD_not_in?: InputMaybe>; - uncollectedProtocolSideTokenAmounts?: InputMaybe>; - uncollectedProtocolSideTokenAmounts_contains?: InputMaybe>; - uncollectedProtocolSideTokenAmounts_contains_nocase?: InputMaybe>; - uncollectedProtocolSideTokenAmounts_not?: InputMaybe>; - uncollectedProtocolSideTokenAmounts_not_contains?: InputMaybe>; - uncollectedProtocolSideTokenAmounts_not_contains_nocase?: InputMaybe>; - uncollectedProtocolSideValuesETH?: InputMaybe>; - uncollectedProtocolSideValuesETH_contains?: InputMaybe>; - uncollectedProtocolSideValuesETH_contains_nocase?: InputMaybe>; - uncollectedProtocolSideValuesETH_not?: InputMaybe>; - uncollectedProtocolSideValuesETH_not_contains?: InputMaybe>; - uncollectedProtocolSideValuesETH_not_contains_nocase?: InputMaybe>; - uncollectedProtocolSideValuesUSD?: InputMaybe>; - uncollectedProtocolSideValuesUSD_contains?: InputMaybe>; - uncollectedProtocolSideValuesUSD_contains_nocase?: InputMaybe>; - uncollectedProtocolSideValuesUSD_not?: InputMaybe>; - uncollectedProtocolSideValuesUSD_not_contains?: InputMaybe>; - uncollectedProtocolSideValuesUSD_not_contains_nocase?: InputMaybe>; - uncollectedSupplySideTokenAmounts?: InputMaybe>; - uncollectedSupplySideTokenAmounts_contains?: InputMaybe>; - uncollectedSupplySideTokenAmounts_contains_nocase?: InputMaybe>; - uncollectedSupplySideTokenAmounts_not?: InputMaybe>; - uncollectedSupplySideTokenAmounts_not_contains?: InputMaybe>; - uncollectedSupplySideTokenAmounts_not_contains_nocase?: InputMaybe>; - uncollectedSupplySideValuesETH?: InputMaybe>; - uncollectedSupplySideValuesETH_contains?: InputMaybe>; - uncollectedSupplySideValuesETH_contains_nocase?: InputMaybe>; - uncollectedSupplySideValuesETH_not?: InputMaybe>; - uncollectedSupplySideValuesETH_not_contains?: InputMaybe>; - uncollectedSupplySideValuesETH_not_contains_nocase?: InputMaybe>; - uncollectedSupplySideValuesUSD?: InputMaybe>; - uncollectedSupplySideValuesUSD_contains?: InputMaybe>; - uncollectedSupplySideValuesUSD_contains_nocase?: InputMaybe>; - uncollectedSupplySideValuesUSD_not?: InputMaybe>; - uncollectedSupplySideValuesUSD_not_contains?: InputMaybe>; - uncollectedSupplySideValuesUSD_not_contains_nocase?: InputMaybe>; -}; - -export enum LiquidityPoolDailySnapshot_OrderBy { - ActiveLiquidity = 'activeLiquidity', - ActiveLiquidityEth = 'activeLiquidityETH', - ActiveLiquidityUsd = 'activeLiquidityUSD', - BlockNumber = 'blockNumber', - ClosedPositionCount = 'closedPositionCount', - CumulativeDepositCount = 'cumulativeDepositCount', - CumulativeProtocolSideRevenueEth = 'cumulativeProtocolSideRevenueETH', - CumulativeProtocolSideRevenueUsd = 'cumulativeProtocolSideRevenueUSD', - CumulativeSupplySideRevenueEth = 'cumulativeSupplySideRevenueETH', - CumulativeSupplySideRevenueUsd = 'cumulativeSupplySideRevenueUSD', - CumulativeSwapCount = 'cumulativeSwapCount', - CumulativeTotalRevenueEth = 'cumulativeTotalRevenueETH', - CumulativeTotalRevenueUsd = 'cumulativeTotalRevenueUSD', - CumulativeVolumeByTokenAmount = 'cumulativeVolumeByTokenAmount', - CumulativeVolumeByTokenEth = 'cumulativeVolumeByTokenETH', - CumulativeVolumeByTokenUsd = 'cumulativeVolumeByTokenUSD', - CumulativeVolumeEth = 'cumulativeVolumeETH', - CumulativeVolumeUsd = 'cumulativeVolumeUSD', - CumulativeWithdrawCount = 'cumulativeWithdrawCount', - DailyDepositCount = 'dailyDepositCount', - DailyProtocolSideRevenueEth = 'dailyProtocolSideRevenueETH', - DailyProtocolSideRevenueUsd = 'dailyProtocolSideRevenueUSD', - DailySupplySideRevenueEth = 'dailySupplySideRevenueETH', - DailySupplySideRevenueUsd = 'dailySupplySideRevenueUSD', - DailySwapCount = 'dailySwapCount', - DailyTotalRevenueEth = 'dailyTotalRevenueETH', - DailyTotalRevenueUsd = 'dailyTotalRevenueUSD', - DailyVolumeByTokenAmount = 'dailyVolumeByTokenAmount', - DailyVolumeByTokenEth = 'dailyVolumeByTokenETH', - DailyVolumeByTokenUsd = 'dailyVolumeByTokenUSD', - DailyVolumeEth = 'dailyVolumeETH', - DailyVolumeUsd = 'dailyVolumeUSD', - DailyWithdrawCount = 'dailyWithdrawCount', - Day = 'day', + token0Price?: InputMaybe; + token0Price_gt?: InputMaybe; + token0Price_gte?: InputMaybe; + token0Price_in?: InputMaybe>; + token0Price_lt?: InputMaybe; + token0Price_lte?: InputMaybe; + token0Price_not?: InputMaybe; + token0Price_not_in?: InputMaybe>; + token1Price?: InputMaybe; + token1Price_gt?: InputMaybe; + token1Price_gte?: InputMaybe; + token1Price_in?: InputMaybe>; + token1Price_lt?: InputMaybe; + token1Price_lte?: InputMaybe; + token1Price_not?: InputMaybe; + token1Price_not_in?: InputMaybe>; + totalValueLockedToken0?: InputMaybe; + totalValueLockedToken0_gt?: InputMaybe; + totalValueLockedToken0_gte?: InputMaybe; + totalValueLockedToken0_in?: InputMaybe>; + totalValueLockedToken0_lt?: InputMaybe; + totalValueLockedToken0_lte?: InputMaybe; + totalValueLockedToken0_not?: InputMaybe; + totalValueLockedToken0_not_in?: InputMaybe>; + totalValueLockedToken1?: InputMaybe; + totalValueLockedToken1_gt?: InputMaybe; + totalValueLockedToken1_gte?: InputMaybe; + totalValueLockedToken1_in?: InputMaybe>; + totalValueLockedToken1_lt?: InputMaybe; + totalValueLockedToken1_lte?: InputMaybe; + totalValueLockedToken1_not?: InputMaybe; + totalValueLockedToken1_not_in?: InputMaybe>; + tvlETH?: InputMaybe; + tvlETH_gt?: InputMaybe; + tvlETH_gte?: InputMaybe; + tvlETH_in?: InputMaybe>; + tvlETH_lt?: InputMaybe; + tvlETH_lte?: InputMaybe; + tvlETH_not?: InputMaybe; + tvlETH_not_in?: InputMaybe>; + tvlUSD?: InputMaybe; + tvlUSD_gt?: InputMaybe; + tvlUSD_gte?: InputMaybe; + tvlUSD_in?: InputMaybe>; + tvlUSD_lt?: InputMaybe; + tvlUSD_lte?: InputMaybe; + tvlUSD_not?: InputMaybe; + tvlUSD_not_in?: InputMaybe>; + txCount?: InputMaybe; + txCount_gt?: InputMaybe; + txCount_gte?: InputMaybe; + txCount_in?: InputMaybe>; + txCount_lt?: InputMaybe; + txCount_lte?: InputMaybe; + txCount_not?: InputMaybe; + txCount_not_in?: InputMaybe>; + volumeToken0?: InputMaybe; + volumeToken0_gt?: InputMaybe; + volumeToken0_gte?: InputMaybe; + volumeToken0_in?: InputMaybe>; + volumeToken0_lt?: InputMaybe; + volumeToken0_lte?: InputMaybe; + volumeToken0_not?: InputMaybe; + volumeToken0_not_in?: InputMaybe>; + volumeToken1?: InputMaybe; + volumeToken1_gt?: InputMaybe; + volumeToken1_gte?: InputMaybe; + volumeToken1_in?: InputMaybe>; + volumeToken1_lt?: InputMaybe; + volumeToken1_lte?: InputMaybe; + volumeToken1_not?: InputMaybe; + volumeToken1_not_in?: InputMaybe>; + volumeUSD?: InputMaybe; + volumeUSD_gt?: InputMaybe; + volumeUSD_gte?: InputMaybe; + volumeUSD_in?: InputMaybe>; + volumeUSD_lt?: InputMaybe; + volumeUSD_lte?: InputMaybe; + volumeUSD_not?: InputMaybe; + volumeUSD_not_in?: InputMaybe>; +}; + +export enum PoolDayData_OrderBy { + Close = 'close', + Date = 'date', + FeeGrowthGlobal0X128 = 'feeGrowthGlobal0X128', + FeeGrowthGlobal1X128 = 'feeGrowthGlobal1X128', + FeesEth = 'feesETH', + FeesUsd = 'feesUSD', + High = 'high', Id = 'id', - InputTokenBalances = 'inputTokenBalances', - InputTokenBalancesUsd = 'inputTokenBalancesUSD', - InputTokenWeights = 'inputTokenWeights', - OpenPositionCount = 'openPositionCount', + Liquidity = 'liquidity', + Low = 'low', + Open = 'open', Pool = 'pool', - PoolActiveLiquidity = 'pool__activeLiquidity', - PoolActiveLiquidityEth = 'pool__activeLiquidityETH', - PoolActiveLiquidityUsd = 'pool__activeLiquidityUSD', + PoolBalanceOfBlock = 'pool__balanceOfBlock', PoolClosedPositionCount = 'pool__closedPositionCount', - PoolCreatedBlockNumber = 'pool__createdBlockNumber', - PoolCreatedTimestamp = 'pool__createdTimestamp', - PoolCumulativeDepositCount = 'pool__cumulativeDepositCount', - PoolCumulativeProtocolSideRevenueEth = 'pool__cumulativeProtocolSideRevenueETH', - PoolCumulativeProtocolSideRevenueUsd = 'pool__cumulativeProtocolSideRevenueUSD', - PoolCumulativeSupplySideRevenueEth = 'pool__cumulativeSupplySideRevenueETH', - PoolCumulativeSupplySideRevenueUsd = 'pool__cumulativeSupplySideRevenueUSD', - PoolCumulativeSwapCount = 'pool__cumulativeSwapCount', - PoolCumulativeTotalRevenueEth = 'pool__cumulativeTotalRevenueETH', - PoolCumulativeTotalRevenueUsd = 'pool__cumulativeTotalRevenueUSD', - PoolCumulativeVolumeEth = 'pool__cumulativeVolumeETH', - PoolCumulativeVolumeUsd = 'pool__cumulativeVolumeUSD', - PoolCumulativeWithdrawCount = 'pool__cumulativeWithdrawCount', + PoolCollectedFeesToken0 = 'pool__collectedFeesToken0', + PoolCollectedFeesToken1 = 'pool__collectedFeesToken1', + PoolCollectedFeesUsd = 'pool__collectedFeesUSD', + PoolCollectedVaultWethFees = 'pool__collectedVaultWETHFees', + PoolCreatedAtBlockNumber = 'pool__createdAtBlockNumber', + PoolCreatedAtTimestamp = 'pool__createdAtTimestamp', + PoolFeeGrowthGlobal0X128 = 'pool__feeGrowthGlobal0X128', + PoolFeeGrowthGlobal1X128 = 'pool__feeGrowthGlobal1X128', + PoolFeeTier = 'pool__feeTier', + PoolFeesUsd = 'pool__feesUSD', PoolId = 'pool__id', - PoolIsSingleSided = 'pool__isSingleSided', - PoolLastSnapshotDayId = 'pool__lastSnapshotDayID', - PoolLastSnapshotHourId = 'pool__lastSnapshotHourID', - PoolLastUpdateBlockNumber = 'pool__lastUpdateBlockNumber', - PoolLastUpdateTimestamp = 'pool__lastUpdateTimestamp', - PoolLiquidityTokenType = 'pool__liquidityTokenType', + PoolLiquidity = 'pool__liquidity', + PoolLiquidityProviderCount = 'pool__liquidityProviderCount', PoolName = 'pool__name', + PoolObservationIndex = 'pool__observationIndex', PoolOpenPositionCount = 'pool__openPositionCount', - PoolPositionCount = 'pool__positionCount', - PoolStakedOutputTokenAmount = 'pool__stakedOutputTokenAmount', + PoolSqrtPrice = 'pool__sqrtPrice', PoolSymbol = 'pool__symbol', PoolTick = 'pool__tick', + PoolToken0Price = 'pool__token0Price', + PoolToken1Price = 'pool__token1Price', PoolTotalLiquidity = 'pool__totalLiquidity', - PoolTotalLiquidityEth = 'pool__totalLiquidityETH', - PoolTotalLiquidityUsd = 'pool__totalLiquidityUSD', PoolTotalValueLockedEth = 'pool__totalValueLockedETH', + PoolTotalValueLockedToken0 = 'pool__totalValueLockedToken0', + PoolTotalValueLockedToken1 = 'pool__totalValueLockedToken1', PoolTotalValueLockedUsd = 'pool__totalValueLockedUSD', - PositionCount = 'positionCount', - Protocol = 'protocol', - ProtocolRegenesis = 'protocol___regenesis', - ProtocolActiveLiquidityEth = 'protocol__activeLiquidityETH', - ProtocolActiveLiquidityUsd = 'protocol__activeLiquidityUSD', - ProtocolCumulativePositionCount = 'protocol__cumulativePositionCount', - ProtocolCumulativeProtocolSideRevenueEth = 'protocol__cumulativeProtocolSideRevenueETH', - ProtocolCumulativeProtocolSideRevenueUsd = 'protocol__cumulativeProtocolSideRevenueUSD', - ProtocolCumulativeSupplySideRevenueEth = 'protocol__cumulativeSupplySideRevenueETH', - ProtocolCumulativeSupplySideRevenueUsd = 'protocol__cumulativeSupplySideRevenueUSD', - ProtocolCumulativeTotalRevenueEth = 'protocol__cumulativeTotalRevenueETH', - ProtocolCumulativeTotalRevenueUsd = 'protocol__cumulativeTotalRevenueUSD', - ProtocolCumulativeUniqueLPs = 'protocol__cumulativeUniqueLPs', - ProtocolCumulativeUniqueTraders = 'protocol__cumulativeUniqueTraders', - ProtocolCumulativeUniqueUsers = 'protocol__cumulativeUniqueUsers', - ProtocolCumulativeVolumeEth = 'protocol__cumulativeVolumeETH', - ProtocolCumulativeVolumeUsd = 'protocol__cumulativeVolumeUSD', - ProtocolId = 'protocol__id', - ProtocolLastSnapshotDayId = 'protocol__lastSnapshotDayID', - ProtocolLastUpdateBlockNumber = 'protocol__lastUpdateBlockNumber', - ProtocolLastUpdateTimestamp = 'protocol__lastUpdateTimestamp', - ProtocolMethodologyVersion = 'protocol__methodologyVersion', - ProtocolName = 'protocol__name', - ProtocolNetwork = 'protocol__network', - ProtocolOpenPositionCount = 'protocol__openPositionCount', - ProtocolProtocolControlledValueUsd = 'protocol__protocolControlledValueUSD', - ProtocolSchemaVersion = 'protocol__schemaVersion', - ProtocolSlug = 'protocol__slug', - ProtocolSubgraphVersion = 'protocol__subgraphVersion', - ProtocolTotalLiquidityEth = 'protocol__totalLiquidityETH', - ProtocolTotalLiquidityUsd = 'protocol__totalLiquidityUSD', - ProtocolTotalPoolCount = 'protocol__totalPoolCount', - ProtocolTotalValueLockedEth = 'protocol__totalValueLockedETH', - ProtocolTotalValueLockedUsd = 'protocol__totalValueLockedUSD', - ProtocolType = 'protocol__type', - ProtocolUncollectedProtocolSideValueEth = 'protocol__uncollectedProtocolSideValueETH', - ProtocolUncollectedProtocolSideValueUsd = 'protocol__uncollectedProtocolSideValueUSD', - ProtocolUncollectedSupplySideValueEth = 'protocol__uncollectedSupplySideValueETH', - ProtocolUncollectedSupplySideValueUsd = 'protocol__uncollectedSupplySideValueUSD', - RewardTokenEmissionsAmount = 'rewardTokenEmissionsAmount', - RewardTokenEmissionsUsd = 'rewardTokenEmissionsUSD', - StakedOutputTokenAmount = 'stakedOutputTokenAmount', + PoolTotalValueLockedUsdUntracked = 'pool__totalValueLockedUSDUntracked', + PoolTxCount = 'pool__txCount', + PoolUntrackedVolumeUsd = 'pool__untrackedVolumeUSD', + PoolVolumeToken0 = 'pool__volumeToken0', + PoolVolumeToken1 = 'pool__volumeToken1', + PoolVolumeUsd = 'pool__volumeUSD', + SqrtPrice = 'sqrtPrice', Tick = 'tick', - Timestamp = 'timestamp', - TotalLiquidity = 'totalLiquidity', - TotalLiquidityEth = 'totalLiquidityETH', - TotalLiquidityUsd = 'totalLiquidityUSD', - TotalValueLockedEth = 'totalValueLockedETH', - TotalValueLockedUsd = 'totalValueLockedUSD', - UncollectedProtocolSideTokenAmounts = 'uncollectedProtocolSideTokenAmounts', - UncollectedProtocolSideValuesEth = 'uncollectedProtocolSideValuesETH', - UncollectedProtocolSideValuesUsd = 'uncollectedProtocolSideValuesUSD', - UncollectedSupplySideTokenAmounts = 'uncollectedSupplySideTokenAmounts', - UncollectedSupplySideValuesEth = 'uncollectedSupplySideValuesETH', - UncollectedSupplySideValuesUsd = 'uncollectedSupplySideValuesUSD' + Token0Price = 'token0Price', + Token1Price = 'token1Price', + TotalValueLockedToken0 = 'totalValueLockedToken0', + TotalValueLockedToken1 = 'totalValueLockedToken1', + TvlEth = 'tvlETH', + TvlUsd = 'tvlUSD', + TxCount = 'txCount', + VolumeToken0 = 'volumeToken0', + VolumeToken1 = 'volumeToken1', + VolumeUsd = 'volumeUSD' } -export type LiquidityPoolFee = { - __typename?: 'LiquidityPoolFee'; - /** Fee as a percentage of the trade (swap) amount. Does not always apply */ +export type PoolFee = { + __typename?: 'PoolFee'; feePercentage?: Maybe; - /** Type of fee this pool uses */ - feeType: LiquidityPoolFeeType; - /** { Fee type }-{ Pool address } */ + feeType: PoolFeeType; id: Scalars['ID']['output']; }; -export enum LiquidityPoolFeeType { +export enum PoolFeeType { /** One-time fee charged by the protocol during deposit, in percentages of the deposit token */ DepositFee = 'DEPOSIT_FEE', /** Some protocols use dynamic LP fees (e.g., Bancor v2). Set `feePercentage` as 0 but handle the dynamic fees in the mapping code. */ @@ -2490,10 +1932,10 @@ export enum LiquidityPoolFeeType { WithdrawalFee = 'WITHDRAWAL_FEE' } -export type LiquidityPoolFee_Filter = { +export type PoolFee_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; feePercentage?: InputMaybe; feePercentage_gt?: InputMaybe; feePercentage_gte?: InputMaybe; @@ -2502,448 +1944,150 @@ export type LiquidityPoolFee_Filter = { feePercentage_lte?: InputMaybe; feePercentage_not?: InputMaybe; feePercentage_not_in?: InputMaybe>; - feeType?: InputMaybe; - feeType_in?: InputMaybe>; - feeType_not?: InputMaybe; - feeType_not_in?: InputMaybe>; + feeType?: InputMaybe; + feeType_in?: InputMaybe>; + feeType_not?: InputMaybe; + feeType_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>>; -}; - -export enum LiquidityPoolFee_OrderBy { - FeePercentage = 'feePercentage', - FeeType = 'feeType', - Id = 'id' -} - -export type LiquidityPoolHourlySnapshot = { - __typename?: 'LiquidityPoolHourlySnapshot'; - /** All liquidity `k` that is active. Will be equal to totalLiquidity except for in concentrated liquidity - where activeLiquidity is all liquidity positions that contain the pools current tick. */ - activeLiquidity: Scalars['BigInt']['output']; - /** All liquidity in ETH that is active. Will be equal to totalLiquidity except for in concentrated liquidity - where activeLiquidity is all liquidity positions that contain the pools current tick. */ - activeLiquidityETH: Scalars['BigDecimal']['output']; - /** All liquidity in USD that is active. Will be equal to totalLiquidity except for in concentrated liquidity - where activeLiquidity is all liquidity positions that contain the pools current tick. */ - activeLiquidityUSD: Scalars['BigDecimal']['output']; - /** Block number of when this snapshot was taken/last modified (May be taken after interval has passed) */ - blockNumber: Scalars['BigInt']['output']; - /** Number of closed positions in this market */ - closedPositionCount: Scalars['Int']['output']; - /** Total number of deposits (add liquidity) */ - cumulativeDepositCount: Scalars['Int']['output']; - /** All revenue generated by the liquidity pool, accrued to the protocol. */ - cumulativeProtocolSideRevenueETH: Scalars['BigDecimal']['output']; - /** All revenue generated by the liquidity pool, accrued to the protocol. */ - cumulativeProtocolSideRevenueUSD: Scalars['BigDecimal']['output']; - /** All revenue generated by the liquidity pool, accrued to the supply side. */ - cumulativeSupplySideRevenueETH: Scalars['BigDecimal']['output']; - /** All revenue generated by the liquidity pool, accrued to the supply side. */ - cumulativeSupplySideRevenueUSD: Scalars['BigDecimal']['output']; - /** Total number of trades (swaps) */ - cumulativeSwapCount: Scalars['Int']['output']; - /** All revenue generated by the liquidity pool. */ - cumulativeTotalRevenueETH: Scalars['BigDecimal']['output']; - /** All revenue generated by the liquidity pool. */ - cumulativeTotalRevenueUSD: Scalars['BigDecimal']['output']; - /** All trade volume, in native amount. The ordering should be the same as the pool's `inputTokens` field. */ - cumulativeVolumeByTokenAmount: Array; - /** All trade volume, in USD. The ordering should be the same as the pool's `inputTokens` field. */ - cumulativeVolumeByTokenETH: Array; - /** All trade volume, in USD. The ordering should be the same as the pool's `inputTokens` field. */ - cumulativeVolumeByTokenUSD: Array; - /** All historical trade volume occurred in this pool, in ETH */ - cumulativeVolumeETH: Scalars['BigDecimal']['output']; - /** All historical trade volume occurred in this pool, in USD */ - cumulativeVolumeUSD: Scalars['BigDecimal']['output']; - /** Total number of withdrawals (remove liquidity) */ - cumulativeWithdrawCount: Scalars['Int']['output']; - /** Number of hours since Unix epoch time */ - hour: Scalars['Int']['output']; - /** Total number of deposits (add liquidity) in an hour */ - hourlyDepositCount: Scalars['Int']['output']; - /** Hourly revenue generated by the liquidity pool, accrued to the protocol. */ - hourlyProtocolSideRevenueETH: Scalars['BigDecimal']['output']; - /** Hourly revenue generated by the liquidity pool, accrued to the protocol. */ - hourlyProtocolSideRevenueUSD: Scalars['BigDecimal']['output']; - /** Hourly revenue generated by the liquidity pool, accrued to the supply side. */ - hourlySupplySideRevenueETH: Scalars['BigDecimal']['output']; - /** Hourly revenue generated by the liquidity pool, accrued to the supply side. */ - hourlySupplySideRevenueUSD: Scalars['BigDecimal']['output']; - /** Total number of trades (swaps) in an hour */ - hourlySwapCount: Scalars['Int']['output']; - /** Hourly revenue generated by the liquidity pool. */ - hourlyTotalRevenueETH: Scalars['BigDecimal']['output']; - /** Hourly revenue generated by the liquidity pool. */ - hourlyTotalRevenueUSD: Scalars['BigDecimal']['output']; - /** All trade volume occurred in a given hour for a specific input token, in native amount. The ordering should be the same as the pool's `inputTokens` field. */ - hourlyVolumeByTokenAmount: Array; - /** All trade volume occurred in a given hour for a specific input token, in USD. The ordering should be the same as the pool's `inputTokens` field. */ - hourlyVolumeByTokenETH: Array; - /** All trade volume occurred in a given hour for a specific input token, in USD. The ordering should be the same as the pool's `inputTokens` field. */ - hourlyVolumeByTokenUSD: Array; - /** All trade volume occurred in a given hour, in USD */ - hourlyVolumeETH: Scalars['BigDecimal']['output']; - /** All trade volume occurred in a given hour, in USD */ - hourlyVolumeUSD: Scalars['BigDecimal']['output']; - /** Total number of withdrawals (remove liquidity) in an hour */ - hourlyWithdrawCount: Scalars['Int']['output']; - /** { Smart contract address of the pool }-{ # of hours since Unix epoch time } */ - id: Scalars['Bytes']['output']; - /** Amount of input tokens in the pool. The ordering should be the same as the pool's `inputTokens` field. */ - inputTokenBalances: Array; - /** Amount of input tokens in USD in the pool. The ordering should be the same as the pool's `inputTokens` field. */ - inputTokenBalancesUSD: Array; - /** Weights of input tokens in the liquidity pool in percentage values. For example, 50/50 for Uniswap pools, 48.2/51.8 for a Curve pool, 10/10/80 for a Balancer pool */ - inputTokenWeights: Array; - /** Number of open positions in this market */ - openPositionCount: Scalars['Int']['output']; - /** The pool this snapshot belongs to */ - pool: LiquidityPool; - /** Number of positions in this market */ - positionCount: Scalars['Int']['output']; - /** The protocol this snapshot belongs to */ - protocol: DexAmmProtocol; - /** Per-block reward token emission as of the current block normalized to a day (not hour), in token's native amount. This should be ideally calculated as the theoretical rate instead of the realized amount. */ - rewardTokenEmissionsAmount?: Maybe>; - /** Per-block reward token emission as of the current block normalized to a day (not hour), in USD value. This should be ideally calculated as the theoretical rate instead of the realized amount. */ - rewardTokenEmissionsUSD?: Maybe>; - /** Total supply of output tokens that are staked (usually in the MasterChef contract). Used to calculate reward APY. */ - stakedOutputTokenAmount?: Maybe; - /** Current tick representing the price of token0/token1 */ - tick?: Maybe; - /** Timestamp of when this snapshot was taken/last modified (May be taken after interval has passed) */ - timestamp: Scalars['BigInt']['output']; - /** The sum of all active and non-active liquidity for this pool. */ - totalLiquidity: Scalars['BigInt']['output']; - totalLiquidityETH: Scalars['BigDecimal']['output']; - /** The sum of all active and non-active liquidity in USD for this pool. */ - totalLiquidityUSD: Scalars['BigDecimal']['output']; - totalValueLockedETH: Scalars['BigDecimal']['output']; - /** Current TVL (Total Value Locked) of this pool */ - totalValueLockedUSD: Scalars['BigDecimal']['output']; - /** All protocol-side value locked in token amounts that remains uncollected and unused in the pool. */ - uncollectedProtocolSideTokenAmounts: Array; - /** All protocol-side value locking in USD that remains uncollected and unused in the pool. */ - uncollectedProtocolSideValuesETH: Array; - /** All protocol-side value locking in USD that remains uncollected and unused in the pool. */ - uncollectedProtocolSideValuesUSD: Array; - /** All supply-side value locked in token amounts that remains uncollected and unused in the pool. */ - uncollectedSupplySideTokenAmounts: Array; - /** All supply-side value locked in USD that remains uncollected and unused in the pool. */ - uncollectedSupplySideValuesETH: Array; - /** All supply-side value locked in USD that remains uncollected and unused in the pool. */ - uncollectedSupplySideValuesUSD: Array; -}; - -export type LiquidityPoolHourlySnapshot_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - activeLiquidity?: InputMaybe; - activeLiquidityETH?: InputMaybe; - activeLiquidityETH_gt?: InputMaybe; - activeLiquidityETH_gte?: InputMaybe; - activeLiquidityETH_in?: InputMaybe>; - activeLiquidityETH_lt?: InputMaybe; - activeLiquidityETH_lte?: InputMaybe; - activeLiquidityETH_not?: InputMaybe; - activeLiquidityETH_not_in?: InputMaybe>; - activeLiquidityUSD?: InputMaybe; - activeLiquidityUSD_gt?: InputMaybe; - activeLiquidityUSD_gte?: InputMaybe; - activeLiquidityUSD_in?: InputMaybe>; - activeLiquidityUSD_lt?: InputMaybe; - activeLiquidityUSD_lte?: InputMaybe; - activeLiquidityUSD_not?: InputMaybe; - activeLiquidityUSD_not_in?: InputMaybe>; - activeLiquidity_gt?: InputMaybe; - activeLiquidity_gte?: InputMaybe; - activeLiquidity_in?: InputMaybe>; - activeLiquidity_lt?: InputMaybe; - activeLiquidity_lte?: InputMaybe; - activeLiquidity_not?: InputMaybe; - activeLiquidity_not_in?: InputMaybe>; - and?: InputMaybe>>; - blockNumber?: InputMaybe; - blockNumber_gt?: InputMaybe; - blockNumber_gte?: InputMaybe; - blockNumber_in?: InputMaybe>; - blockNumber_lt?: InputMaybe; - blockNumber_lte?: InputMaybe; - blockNumber_not?: InputMaybe; - blockNumber_not_in?: InputMaybe>; - closedPositionCount?: InputMaybe; - closedPositionCount_gt?: InputMaybe; - closedPositionCount_gte?: InputMaybe; - closedPositionCount_in?: InputMaybe>; - closedPositionCount_lt?: InputMaybe; - closedPositionCount_lte?: InputMaybe; - closedPositionCount_not?: InputMaybe; - closedPositionCount_not_in?: InputMaybe>; - cumulativeDepositCount?: InputMaybe; - cumulativeDepositCount_gt?: InputMaybe; - cumulativeDepositCount_gte?: InputMaybe; - cumulativeDepositCount_in?: InputMaybe>; - cumulativeDepositCount_lt?: InputMaybe; - cumulativeDepositCount_lte?: InputMaybe; - cumulativeDepositCount_not?: InputMaybe; - cumulativeDepositCount_not_in?: InputMaybe>; - cumulativeProtocolSideRevenueETH?: InputMaybe; - cumulativeProtocolSideRevenueETH_gt?: InputMaybe; - cumulativeProtocolSideRevenueETH_gte?: InputMaybe; - cumulativeProtocolSideRevenueETH_in?: InputMaybe>; - cumulativeProtocolSideRevenueETH_lt?: InputMaybe; - cumulativeProtocolSideRevenueETH_lte?: InputMaybe; - cumulativeProtocolSideRevenueETH_not?: InputMaybe; - cumulativeProtocolSideRevenueETH_not_in?: InputMaybe>; - cumulativeProtocolSideRevenueUSD?: InputMaybe; - cumulativeProtocolSideRevenueUSD_gt?: InputMaybe; - cumulativeProtocolSideRevenueUSD_gte?: InputMaybe; - cumulativeProtocolSideRevenueUSD_in?: InputMaybe>; - cumulativeProtocolSideRevenueUSD_lt?: InputMaybe; - cumulativeProtocolSideRevenueUSD_lte?: InputMaybe; - cumulativeProtocolSideRevenueUSD_not?: InputMaybe; - cumulativeProtocolSideRevenueUSD_not_in?: InputMaybe>; - cumulativeSupplySideRevenueETH?: InputMaybe; - cumulativeSupplySideRevenueETH_gt?: InputMaybe; - cumulativeSupplySideRevenueETH_gte?: InputMaybe; - cumulativeSupplySideRevenueETH_in?: InputMaybe>; - cumulativeSupplySideRevenueETH_lt?: InputMaybe; - cumulativeSupplySideRevenueETH_lte?: InputMaybe; - cumulativeSupplySideRevenueETH_not?: InputMaybe; - cumulativeSupplySideRevenueETH_not_in?: InputMaybe>; - cumulativeSupplySideRevenueUSD?: InputMaybe; - cumulativeSupplySideRevenueUSD_gt?: InputMaybe; - cumulativeSupplySideRevenueUSD_gte?: InputMaybe; - cumulativeSupplySideRevenueUSD_in?: InputMaybe>; - cumulativeSupplySideRevenueUSD_lt?: InputMaybe; - cumulativeSupplySideRevenueUSD_lte?: InputMaybe; - cumulativeSupplySideRevenueUSD_not?: InputMaybe; - cumulativeSupplySideRevenueUSD_not_in?: InputMaybe>; - cumulativeSwapCount?: InputMaybe; - cumulativeSwapCount_gt?: InputMaybe; - cumulativeSwapCount_gte?: InputMaybe; - cumulativeSwapCount_in?: InputMaybe>; - cumulativeSwapCount_lt?: InputMaybe; - cumulativeSwapCount_lte?: InputMaybe; - cumulativeSwapCount_not?: InputMaybe; - cumulativeSwapCount_not_in?: InputMaybe>; - cumulativeTotalRevenueETH?: InputMaybe; - cumulativeTotalRevenueETH_gt?: InputMaybe; - cumulativeTotalRevenueETH_gte?: InputMaybe; - cumulativeTotalRevenueETH_in?: InputMaybe>; - cumulativeTotalRevenueETH_lt?: InputMaybe; - cumulativeTotalRevenueETH_lte?: InputMaybe; - cumulativeTotalRevenueETH_not?: InputMaybe; - cumulativeTotalRevenueETH_not_in?: InputMaybe>; - cumulativeTotalRevenueUSD?: InputMaybe; - cumulativeTotalRevenueUSD_gt?: InputMaybe; - cumulativeTotalRevenueUSD_gte?: InputMaybe; - cumulativeTotalRevenueUSD_in?: InputMaybe>; - cumulativeTotalRevenueUSD_lt?: InputMaybe; - cumulativeTotalRevenueUSD_lte?: InputMaybe; - cumulativeTotalRevenueUSD_not?: InputMaybe; - cumulativeTotalRevenueUSD_not_in?: InputMaybe>; - cumulativeVolumeByTokenAmount?: InputMaybe>; - cumulativeVolumeByTokenAmount_contains?: InputMaybe>; - cumulativeVolumeByTokenAmount_contains_nocase?: InputMaybe>; - cumulativeVolumeByTokenAmount_not?: InputMaybe>; - cumulativeVolumeByTokenAmount_not_contains?: InputMaybe>; - cumulativeVolumeByTokenAmount_not_contains_nocase?: InputMaybe>; - cumulativeVolumeByTokenETH?: InputMaybe>; - cumulativeVolumeByTokenETH_contains?: InputMaybe>; - cumulativeVolumeByTokenETH_contains_nocase?: InputMaybe>; - cumulativeVolumeByTokenETH_not?: InputMaybe>; - cumulativeVolumeByTokenETH_not_contains?: InputMaybe>; - cumulativeVolumeByTokenETH_not_contains_nocase?: InputMaybe>; - cumulativeVolumeByTokenUSD?: InputMaybe>; - cumulativeVolumeByTokenUSD_contains?: InputMaybe>; - cumulativeVolumeByTokenUSD_contains_nocase?: InputMaybe>; - cumulativeVolumeByTokenUSD_not?: InputMaybe>; - cumulativeVolumeByTokenUSD_not_contains?: InputMaybe>; - cumulativeVolumeByTokenUSD_not_contains_nocase?: InputMaybe>; - cumulativeVolumeETH?: InputMaybe; - cumulativeVolumeETH_gt?: InputMaybe; - cumulativeVolumeETH_gte?: InputMaybe; - cumulativeVolumeETH_in?: InputMaybe>; - cumulativeVolumeETH_lt?: InputMaybe; - cumulativeVolumeETH_lte?: InputMaybe; - cumulativeVolumeETH_not?: InputMaybe; - cumulativeVolumeETH_not_in?: InputMaybe>; - cumulativeVolumeUSD?: InputMaybe; - cumulativeVolumeUSD_gt?: InputMaybe; - cumulativeVolumeUSD_gte?: InputMaybe; - cumulativeVolumeUSD_in?: InputMaybe>; - cumulativeVolumeUSD_lt?: InputMaybe; - cumulativeVolumeUSD_lte?: InputMaybe; - cumulativeVolumeUSD_not?: InputMaybe; - cumulativeVolumeUSD_not_in?: InputMaybe>; - cumulativeWithdrawCount?: InputMaybe; - cumulativeWithdrawCount_gt?: InputMaybe; - cumulativeWithdrawCount_gte?: InputMaybe; - cumulativeWithdrawCount_in?: InputMaybe>; - cumulativeWithdrawCount_lt?: InputMaybe; - cumulativeWithdrawCount_lte?: InputMaybe; - cumulativeWithdrawCount_not?: InputMaybe; - cumulativeWithdrawCount_not_in?: InputMaybe>; - hour?: InputMaybe; - hour_gt?: InputMaybe; - hour_gte?: InputMaybe; - hour_in?: InputMaybe>; - hour_lt?: InputMaybe; - hour_lte?: InputMaybe; - hour_not?: InputMaybe; - hour_not_in?: InputMaybe>; - hourlyDepositCount?: InputMaybe; - hourlyDepositCount_gt?: InputMaybe; - hourlyDepositCount_gte?: InputMaybe; - hourlyDepositCount_in?: InputMaybe>; - hourlyDepositCount_lt?: InputMaybe; - hourlyDepositCount_lte?: InputMaybe; - hourlyDepositCount_not?: InputMaybe; - hourlyDepositCount_not_in?: InputMaybe>; - hourlyProtocolSideRevenueETH?: InputMaybe; - hourlyProtocolSideRevenueETH_gt?: InputMaybe; - hourlyProtocolSideRevenueETH_gte?: InputMaybe; - hourlyProtocolSideRevenueETH_in?: InputMaybe>; - hourlyProtocolSideRevenueETH_lt?: InputMaybe; - hourlyProtocolSideRevenueETH_lte?: InputMaybe; - hourlyProtocolSideRevenueETH_not?: InputMaybe; - hourlyProtocolSideRevenueETH_not_in?: InputMaybe>; - hourlyProtocolSideRevenueUSD?: InputMaybe; - hourlyProtocolSideRevenueUSD_gt?: InputMaybe; - hourlyProtocolSideRevenueUSD_gte?: InputMaybe; - hourlyProtocolSideRevenueUSD_in?: InputMaybe>; - hourlyProtocolSideRevenueUSD_lt?: InputMaybe; - hourlyProtocolSideRevenueUSD_lte?: InputMaybe; - hourlyProtocolSideRevenueUSD_not?: InputMaybe; - hourlyProtocolSideRevenueUSD_not_in?: InputMaybe>; - hourlySupplySideRevenueETH?: InputMaybe; - hourlySupplySideRevenueETH_gt?: InputMaybe; - hourlySupplySideRevenueETH_gte?: InputMaybe; - hourlySupplySideRevenueETH_in?: InputMaybe>; - hourlySupplySideRevenueETH_lt?: InputMaybe; - hourlySupplySideRevenueETH_lte?: InputMaybe; - hourlySupplySideRevenueETH_not?: InputMaybe; - hourlySupplySideRevenueETH_not_in?: InputMaybe>; - hourlySupplySideRevenueUSD?: InputMaybe; - hourlySupplySideRevenueUSD_gt?: InputMaybe; - hourlySupplySideRevenueUSD_gte?: InputMaybe; - hourlySupplySideRevenueUSD_in?: InputMaybe>; - hourlySupplySideRevenueUSD_lt?: InputMaybe; - hourlySupplySideRevenueUSD_lte?: InputMaybe; - hourlySupplySideRevenueUSD_not?: InputMaybe; - hourlySupplySideRevenueUSD_not_in?: InputMaybe>; - hourlySwapCount?: InputMaybe; - hourlySwapCount_gt?: InputMaybe; - hourlySwapCount_gte?: InputMaybe; - hourlySwapCount_in?: InputMaybe>; - hourlySwapCount_lt?: InputMaybe; - hourlySwapCount_lte?: InputMaybe; - hourlySwapCount_not?: InputMaybe; - hourlySwapCount_not_in?: InputMaybe>; - hourlyTotalRevenueETH?: InputMaybe; - hourlyTotalRevenueETH_gt?: InputMaybe; - hourlyTotalRevenueETH_gte?: InputMaybe; - hourlyTotalRevenueETH_in?: InputMaybe>; - hourlyTotalRevenueETH_lt?: InputMaybe; - hourlyTotalRevenueETH_lte?: InputMaybe; - hourlyTotalRevenueETH_not?: InputMaybe; - hourlyTotalRevenueETH_not_in?: InputMaybe>; - hourlyTotalRevenueUSD?: InputMaybe; - hourlyTotalRevenueUSD_gt?: InputMaybe; - hourlyTotalRevenueUSD_gte?: InputMaybe; - hourlyTotalRevenueUSD_in?: InputMaybe>; - hourlyTotalRevenueUSD_lt?: InputMaybe; - hourlyTotalRevenueUSD_lte?: InputMaybe; - hourlyTotalRevenueUSD_not?: InputMaybe; - hourlyTotalRevenueUSD_not_in?: InputMaybe>; - hourlyVolumeByTokenAmount?: InputMaybe>; - hourlyVolumeByTokenAmount_contains?: InputMaybe>; - hourlyVolumeByTokenAmount_contains_nocase?: InputMaybe>; - hourlyVolumeByTokenAmount_not?: InputMaybe>; - hourlyVolumeByTokenAmount_not_contains?: InputMaybe>; - hourlyVolumeByTokenAmount_not_contains_nocase?: InputMaybe>; - hourlyVolumeByTokenETH?: InputMaybe>; - hourlyVolumeByTokenETH_contains?: InputMaybe>; - hourlyVolumeByTokenETH_contains_nocase?: InputMaybe>; - hourlyVolumeByTokenETH_not?: InputMaybe>; - hourlyVolumeByTokenETH_not_contains?: InputMaybe>; - hourlyVolumeByTokenETH_not_contains_nocase?: InputMaybe>; - hourlyVolumeByTokenUSD?: InputMaybe>; - hourlyVolumeByTokenUSD_contains?: InputMaybe>; - hourlyVolumeByTokenUSD_contains_nocase?: InputMaybe>; - hourlyVolumeByTokenUSD_not?: InputMaybe>; - hourlyVolumeByTokenUSD_not_contains?: InputMaybe>; - hourlyVolumeByTokenUSD_not_contains_nocase?: InputMaybe>; - hourlyVolumeETH?: InputMaybe; - hourlyVolumeETH_gt?: InputMaybe; - hourlyVolumeETH_gte?: InputMaybe; - hourlyVolumeETH_in?: InputMaybe>; - hourlyVolumeETH_lt?: InputMaybe; - hourlyVolumeETH_lte?: InputMaybe; - hourlyVolumeETH_not?: InputMaybe; - hourlyVolumeETH_not_in?: InputMaybe>; - hourlyVolumeUSD?: InputMaybe; - hourlyVolumeUSD_gt?: InputMaybe; - hourlyVolumeUSD_gte?: InputMaybe; - hourlyVolumeUSD_in?: InputMaybe>; - hourlyVolumeUSD_lt?: InputMaybe; - hourlyVolumeUSD_lte?: InputMaybe; - hourlyVolumeUSD_not?: InputMaybe; - hourlyVolumeUSD_not_in?: InputMaybe>; - hourlyWithdrawCount?: InputMaybe; - hourlyWithdrawCount_gt?: InputMaybe; - hourlyWithdrawCount_gte?: InputMaybe; - hourlyWithdrawCount_in?: InputMaybe>; - hourlyWithdrawCount_lt?: InputMaybe; - hourlyWithdrawCount_lte?: InputMaybe; - hourlyWithdrawCount_not?: InputMaybe; - hourlyWithdrawCount_not_in?: InputMaybe>; - id?: InputMaybe; - id_contains?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_contains?: InputMaybe; - id_not_in?: InputMaybe>; - inputTokenBalances?: InputMaybe>; - inputTokenBalancesUSD?: InputMaybe>; - inputTokenBalancesUSD_contains?: InputMaybe>; - inputTokenBalancesUSD_contains_nocase?: InputMaybe>; - inputTokenBalancesUSD_not?: InputMaybe>; - inputTokenBalancesUSD_not_contains?: InputMaybe>; - inputTokenBalancesUSD_not_contains_nocase?: InputMaybe>; - inputTokenBalances_contains?: InputMaybe>; - inputTokenBalances_contains_nocase?: InputMaybe>; - inputTokenBalances_not?: InputMaybe>; - inputTokenBalances_not_contains?: InputMaybe>; - inputTokenBalances_not_contains_nocase?: InputMaybe>; - inputTokenWeights?: InputMaybe>; - inputTokenWeights_contains?: InputMaybe>; - inputTokenWeights_contains_nocase?: InputMaybe>; - inputTokenWeights_not?: InputMaybe>; - inputTokenWeights_not_contains?: InputMaybe>; - inputTokenWeights_not_contains_nocase?: InputMaybe>; - openPositionCount?: InputMaybe; - openPositionCount_gt?: InputMaybe; - openPositionCount_gte?: InputMaybe; - openPositionCount_in?: InputMaybe>; - openPositionCount_lt?: InputMaybe; - openPositionCount_lte?: InputMaybe; - openPositionCount_not?: InputMaybe; - openPositionCount_not_in?: InputMaybe>; - or?: InputMaybe>>; + id_lt?: InputMaybe; + id_lte?: InputMaybe; + id_not?: InputMaybe; + id_not_in?: InputMaybe>; + or?: InputMaybe>>; +}; + +export enum PoolFee_OrderBy { + FeePercentage = 'feePercentage', + FeeType = 'feeType', + Id = 'id' +} + +export type PoolHourData = { + __typename?: 'PoolHourData'; + close: Scalars['BigDecimal']['output']; + feeGrowthGlobal0X128: Scalars['BigInt']['output']; + feeGrowthGlobal1X128: Scalars['BigInt']['output']; + feesETH: Scalars['BigDecimal']['output']; + feesUSD: Scalars['BigDecimal']['output']; + high: Scalars['BigDecimal']['output']; + id: Scalars['ID']['output']; + liquidity: Scalars['BigInt']['output']; + low: Scalars['BigDecimal']['output']; + open: Scalars['BigDecimal']['output']; + periodStartUnix: Scalars['Int']['output']; + pool: Pool; + sqrtPrice: Scalars['BigInt']['output']; + tick?: Maybe; + token0Price: Scalars['BigDecimal']['output']; + token1Price: Scalars['BigDecimal']['output']; + totalValueLockedToken0: Scalars['BigDecimal']['output']; + totalValueLockedToken1: Scalars['BigDecimal']['output']; + tvlETH: Scalars['BigDecimal']['output']; + tvlUSD: Scalars['BigDecimal']['output']; + txCount: Scalars['BigInt']['output']; + volumeToken0: Scalars['BigDecimal']['output']; + volumeToken1: Scalars['BigDecimal']['output']; + volumeUSD: Scalars['BigDecimal']['output']; +}; + +export type PoolHourData_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + close?: InputMaybe; + close_gt?: InputMaybe; + close_gte?: InputMaybe; + close_in?: InputMaybe>; + close_lt?: InputMaybe; + close_lte?: InputMaybe; + close_not?: InputMaybe; + close_not_in?: InputMaybe>; + feeGrowthGlobal0X128?: InputMaybe; + feeGrowthGlobal0X128_gt?: InputMaybe; + feeGrowthGlobal0X128_gte?: InputMaybe; + feeGrowthGlobal0X128_in?: InputMaybe>; + feeGrowthGlobal0X128_lt?: InputMaybe; + feeGrowthGlobal0X128_lte?: InputMaybe; + feeGrowthGlobal0X128_not?: InputMaybe; + feeGrowthGlobal0X128_not_in?: InputMaybe>; + feeGrowthGlobal1X128?: InputMaybe; + feeGrowthGlobal1X128_gt?: InputMaybe; + feeGrowthGlobal1X128_gte?: InputMaybe; + feeGrowthGlobal1X128_in?: InputMaybe>; + feeGrowthGlobal1X128_lt?: InputMaybe; + feeGrowthGlobal1X128_lte?: InputMaybe; + feeGrowthGlobal1X128_not?: InputMaybe; + feeGrowthGlobal1X128_not_in?: InputMaybe>; + feesETH?: InputMaybe; + feesETH_gt?: InputMaybe; + feesETH_gte?: InputMaybe; + feesETH_in?: InputMaybe>; + feesETH_lt?: InputMaybe; + feesETH_lte?: InputMaybe; + feesETH_not?: InputMaybe; + feesETH_not_in?: InputMaybe>; + feesUSD?: InputMaybe; + feesUSD_gt?: InputMaybe; + feesUSD_gte?: InputMaybe; + feesUSD_in?: InputMaybe>; + feesUSD_lt?: InputMaybe; + feesUSD_lte?: InputMaybe; + feesUSD_not?: InputMaybe; + feesUSD_not_in?: InputMaybe>; + high?: InputMaybe; + high_gt?: InputMaybe; + high_gte?: InputMaybe; + high_in?: InputMaybe>; + high_lt?: InputMaybe; + high_lte?: InputMaybe; + high_not?: InputMaybe; + high_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>; + low?: InputMaybe; + low_gt?: InputMaybe; + low_gte?: InputMaybe; + low_in?: InputMaybe>; + low_lt?: InputMaybe; + low_lte?: InputMaybe; + low_not?: InputMaybe; + low_not_in?: InputMaybe>; + open?: InputMaybe; + open_gt?: InputMaybe; + open_gte?: InputMaybe; + open_in?: InputMaybe>; + open_lt?: InputMaybe; + open_lte?: InputMaybe; + open_not?: InputMaybe; + open_not_in?: InputMaybe>; + or?: InputMaybe>>; + periodStartUnix?: InputMaybe; + periodStartUnix_gt?: InputMaybe; + periodStartUnix_gte?: InputMaybe; + periodStartUnix_in?: InputMaybe>; + periodStartUnix_lt?: InputMaybe; + periodStartUnix_lte?: InputMaybe; + periodStartUnix_not?: InputMaybe; + periodStartUnix_not_in?: InputMaybe>; pool?: InputMaybe; - pool_?: InputMaybe; + pool_?: InputMaybe; pool_contains?: InputMaybe; pool_contains_nocase?: InputMaybe; pool_ends_with?: InputMaybe; @@ -2963,55 +2107,14 @@ export type LiquidityPoolHourlySnapshot_Filter = { pool_not_starts_with_nocase?: InputMaybe; pool_starts_with?: InputMaybe; pool_starts_with_nocase?: InputMaybe; - positionCount?: InputMaybe; - positionCount_gt?: InputMaybe; - positionCount_gte?: InputMaybe; - positionCount_in?: InputMaybe>; - positionCount_lt?: InputMaybe; - positionCount_lte?: InputMaybe; - positionCount_not?: InputMaybe; - positionCount_not_in?: InputMaybe>; - protocol?: InputMaybe; - protocol_?: InputMaybe; - protocol_contains?: InputMaybe; - protocol_contains_nocase?: InputMaybe; - protocol_ends_with?: InputMaybe; - protocol_ends_with_nocase?: InputMaybe; - protocol_gt?: InputMaybe; - protocol_gte?: InputMaybe; - protocol_in?: InputMaybe>; - protocol_lt?: InputMaybe; - protocol_lte?: InputMaybe; - protocol_not?: InputMaybe; - protocol_not_contains?: InputMaybe; - protocol_not_contains_nocase?: InputMaybe; - protocol_not_ends_with?: InputMaybe; - protocol_not_ends_with_nocase?: InputMaybe; - protocol_not_in?: InputMaybe>; - protocol_not_starts_with?: InputMaybe; - protocol_not_starts_with_nocase?: InputMaybe; - protocol_starts_with?: InputMaybe; - protocol_starts_with_nocase?: InputMaybe; - rewardTokenEmissionsAmount?: InputMaybe>; - rewardTokenEmissionsAmount_contains?: InputMaybe>; - rewardTokenEmissionsAmount_contains_nocase?: InputMaybe>; - rewardTokenEmissionsAmount_not?: InputMaybe>; - rewardTokenEmissionsAmount_not_contains?: InputMaybe>; - rewardTokenEmissionsAmount_not_contains_nocase?: InputMaybe>; - rewardTokenEmissionsUSD?: InputMaybe>; - rewardTokenEmissionsUSD_contains?: InputMaybe>; - rewardTokenEmissionsUSD_contains_nocase?: InputMaybe>; - rewardTokenEmissionsUSD_not?: InputMaybe>; - rewardTokenEmissionsUSD_not_contains?: InputMaybe>; - rewardTokenEmissionsUSD_not_contains_nocase?: InputMaybe>; - stakedOutputTokenAmount?: InputMaybe; - stakedOutputTokenAmount_gt?: InputMaybe; - stakedOutputTokenAmount_gte?: InputMaybe; - stakedOutputTokenAmount_in?: InputMaybe>; - stakedOutputTokenAmount_lt?: InputMaybe; - stakedOutputTokenAmount_lte?: InputMaybe; - stakedOutputTokenAmount_not?: InputMaybe; - stakedOutputTokenAmount_not_in?: InputMaybe>; + sqrtPrice?: InputMaybe; + sqrtPrice_gt?: InputMaybe; + sqrtPrice_gte?: InputMaybe; + sqrtPrice_in?: InputMaybe>; + sqrtPrice_lt?: InputMaybe; + sqrtPrice_lte?: InputMaybe; + sqrtPrice_not?: InputMaybe; + sqrtPrice_not_in?: InputMaybe>; tick?: InputMaybe; tick_gt?: InputMaybe; tick_gte?: InputMaybe; @@ -3020,253 +2123,162 @@ export type LiquidityPoolHourlySnapshot_Filter = { tick_lte?: InputMaybe; tick_not?: InputMaybe; tick_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; - totalLiquidityETH?: InputMaybe; - totalLiquidityETH_gt?: InputMaybe; - totalLiquidityETH_gte?: InputMaybe; - totalLiquidityETH_in?: InputMaybe>; - totalLiquidityETH_lt?: InputMaybe; - totalLiquidityETH_lte?: InputMaybe; - totalLiquidityETH_not?: InputMaybe; - totalLiquidityETH_not_in?: InputMaybe>; - totalLiquidityUSD?: InputMaybe; - totalLiquidityUSD_gt?: InputMaybe; - totalLiquidityUSD_gte?: InputMaybe; - totalLiquidityUSD_in?: InputMaybe>; - totalLiquidityUSD_lt?: InputMaybe; - totalLiquidityUSD_lte?: InputMaybe; - totalLiquidityUSD_not?: InputMaybe; - totalLiquidityUSD_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>; - totalValueLockedETH?: InputMaybe; - totalValueLockedETH_gt?: InputMaybe; - totalValueLockedETH_gte?: InputMaybe; - totalValueLockedETH_in?: InputMaybe>; - totalValueLockedETH_lt?: InputMaybe; - totalValueLockedETH_lte?: InputMaybe; - totalValueLockedETH_not?: InputMaybe; - totalValueLockedETH_not_in?: InputMaybe>; - totalValueLockedUSD?: InputMaybe; - totalValueLockedUSD_gt?: InputMaybe; - totalValueLockedUSD_gte?: InputMaybe; - totalValueLockedUSD_in?: InputMaybe>; - totalValueLockedUSD_lt?: InputMaybe; - totalValueLockedUSD_lte?: InputMaybe; - totalValueLockedUSD_not?: InputMaybe; - totalValueLockedUSD_not_in?: InputMaybe>; - uncollectedProtocolSideTokenAmounts?: InputMaybe>; - uncollectedProtocolSideTokenAmounts_contains?: InputMaybe>; - uncollectedProtocolSideTokenAmounts_contains_nocase?: InputMaybe>; - uncollectedProtocolSideTokenAmounts_not?: InputMaybe>; - uncollectedProtocolSideTokenAmounts_not_contains?: InputMaybe>; - uncollectedProtocolSideTokenAmounts_not_contains_nocase?: InputMaybe>; - uncollectedProtocolSideValuesETH?: InputMaybe>; - uncollectedProtocolSideValuesETH_contains?: InputMaybe>; - uncollectedProtocolSideValuesETH_contains_nocase?: InputMaybe>; - uncollectedProtocolSideValuesETH_not?: InputMaybe>; - uncollectedProtocolSideValuesETH_not_contains?: InputMaybe>; - uncollectedProtocolSideValuesETH_not_contains_nocase?: InputMaybe>; - uncollectedProtocolSideValuesUSD?: InputMaybe>; - uncollectedProtocolSideValuesUSD_contains?: InputMaybe>; - uncollectedProtocolSideValuesUSD_contains_nocase?: InputMaybe>; - uncollectedProtocolSideValuesUSD_not?: InputMaybe>; - uncollectedProtocolSideValuesUSD_not_contains?: InputMaybe>; - uncollectedProtocolSideValuesUSD_not_contains_nocase?: InputMaybe>; - uncollectedSupplySideTokenAmounts?: InputMaybe>; - uncollectedSupplySideTokenAmounts_contains?: InputMaybe>; - uncollectedSupplySideTokenAmounts_contains_nocase?: InputMaybe>; - uncollectedSupplySideTokenAmounts_not?: InputMaybe>; - uncollectedSupplySideTokenAmounts_not_contains?: InputMaybe>; - uncollectedSupplySideTokenAmounts_not_contains_nocase?: InputMaybe>; - uncollectedSupplySideValuesETH?: InputMaybe>; - uncollectedSupplySideValuesETH_contains?: InputMaybe>; - uncollectedSupplySideValuesETH_contains_nocase?: InputMaybe>; - uncollectedSupplySideValuesETH_not?: InputMaybe>; - uncollectedSupplySideValuesETH_not_contains?: InputMaybe>; - uncollectedSupplySideValuesETH_not_contains_nocase?: InputMaybe>; - uncollectedSupplySideValuesUSD?: InputMaybe>; - uncollectedSupplySideValuesUSD_contains?: InputMaybe>; - uncollectedSupplySideValuesUSD_contains_nocase?: InputMaybe>; - uncollectedSupplySideValuesUSD_not?: InputMaybe>; - uncollectedSupplySideValuesUSD_not_contains?: InputMaybe>; - uncollectedSupplySideValuesUSD_not_contains_nocase?: InputMaybe>; -}; - -export enum LiquidityPoolHourlySnapshot_OrderBy { - ActiveLiquidity = 'activeLiquidity', - ActiveLiquidityEth = 'activeLiquidityETH', - ActiveLiquidityUsd = 'activeLiquidityUSD', - BlockNumber = 'blockNumber', - ClosedPositionCount = 'closedPositionCount', - CumulativeDepositCount = 'cumulativeDepositCount', - CumulativeProtocolSideRevenueEth = 'cumulativeProtocolSideRevenueETH', - CumulativeProtocolSideRevenueUsd = 'cumulativeProtocolSideRevenueUSD', - CumulativeSupplySideRevenueEth = 'cumulativeSupplySideRevenueETH', - CumulativeSupplySideRevenueUsd = 'cumulativeSupplySideRevenueUSD', - CumulativeSwapCount = 'cumulativeSwapCount', - CumulativeTotalRevenueEth = 'cumulativeTotalRevenueETH', - CumulativeTotalRevenueUsd = 'cumulativeTotalRevenueUSD', - CumulativeVolumeByTokenAmount = 'cumulativeVolumeByTokenAmount', - CumulativeVolumeByTokenEth = 'cumulativeVolumeByTokenETH', - CumulativeVolumeByTokenUsd = 'cumulativeVolumeByTokenUSD', - CumulativeVolumeEth = 'cumulativeVolumeETH', - CumulativeVolumeUsd = 'cumulativeVolumeUSD', - CumulativeWithdrawCount = 'cumulativeWithdrawCount', - Hour = 'hour', - HourlyDepositCount = 'hourlyDepositCount', - HourlyProtocolSideRevenueEth = 'hourlyProtocolSideRevenueETH', - HourlyProtocolSideRevenueUsd = 'hourlyProtocolSideRevenueUSD', - HourlySupplySideRevenueEth = 'hourlySupplySideRevenueETH', - HourlySupplySideRevenueUsd = 'hourlySupplySideRevenueUSD', - HourlySwapCount = 'hourlySwapCount', - HourlyTotalRevenueEth = 'hourlyTotalRevenueETH', - HourlyTotalRevenueUsd = 'hourlyTotalRevenueUSD', - HourlyVolumeByTokenAmount = 'hourlyVolumeByTokenAmount', - HourlyVolumeByTokenEth = 'hourlyVolumeByTokenETH', - HourlyVolumeByTokenUsd = 'hourlyVolumeByTokenUSD', - HourlyVolumeEth = 'hourlyVolumeETH', - HourlyVolumeUsd = 'hourlyVolumeUSD', - HourlyWithdrawCount = 'hourlyWithdrawCount', + token0Price?: InputMaybe; + token0Price_gt?: InputMaybe; + token0Price_gte?: InputMaybe; + token0Price_in?: InputMaybe>; + token0Price_lt?: InputMaybe; + token0Price_lte?: InputMaybe; + token0Price_not?: InputMaybe; + token0Price_not_in?: InputMaybe>; + token1Price?: InputMaybe; + token1Price_gt?: InputMaybe; + token1Price_gte?: InputMaybe; + token1Price_in?: InputMaybe>; + token1Price_lt?: InputMaybe; + token1Price_lte?: InputMaybe; + token1Price_not?: InputMaybe; + token1Price_not_in?: InputMaybe>; + totalValueLockedToken0?: InputMaybe; + totalValueLockedToken0_gt?: InputMaybe; + totalValueLockedToken0_gte?: InputMaybe; + totalValueLockedToken0_in?: InputMaybe>; + totalValueLockedToken0_lt?: InputMaybe; + totalValueLockedToken0_lte?: InputMaybe; + totalValueLockedToken0_not?: InputMaybe; + totalValueLockedToken0_not_in?: InputMaybe>; + totalValueLockedToken1?: InputMaybe; + totalValueLockedToken1_gt?: InputMaybe; + totalValueLockedToken1_gte?: InputMaybe; + totalValueLockedToken1_in?: InputMaybe>; + totalValueLockedToken1_lt?: InputMaybe; + totalValueLockedToken1_lte?: InputMaybe; + totalValueLockedToken1_not?: InputMaybe; + totalValueLockedToken1_not_in?: InputMaybe>; + tvlETH?: InputMaybe; + tvlETH_gt?: InputMaybe; + tvlETH_gte?: InputMaybe; + tvlETH_in?: InputMaybe>; + tvlETH_lt?: InputMaybe; + tvlETH_lte?: InputMaybe; + tvlETH_not?: InputMaybe; + tvlETH_not_in?: InputMaybe>; + tvlUSD?: InputMaybe; + tvlUSD_gt?: InputMaybe; + tvlUSD_gte?: InputMaybe; + tvlUSD_in?: InputMaybe>; + tvlUSD_lt?: InputMaybe; + tvlUSD_lte?: InputMaybe; + tvlUSD_not?: InputMaybe; + tvlUSD_not_in?: InputMaybe>; + txCount?: InputMaybe; + txCount_gt?: InputMaybe; + txCount_gte?: InputMaybe; + txCount_in?: InputMaybe>; + txCount_lt?: InputMaybe; + txCount_lte?: InputMaybe; + txCount_not?: InputMaybe; + txCount_not_in?: InputMaybe>; + volumeToken0?: InputMaybe; + volumeToken0_gt?: InputMaybe; + volumeToken0_gte?: InputMaybe; + volumeToken0_in?: InputMaybe>; + volumeToken0_lt?: InputMaybe; + volumeToken0_lte?: InputMaybe; + volumeToken0_not?: InputMaybe; + volumeToken0_not_in?: InputMaybe>; + volumeToken1?: InputMaybe; + volumeToken1_gt?: InputMaybe; + volumeToken1_gte?: InputMaybe; + volumeToken1_in?: InputMaybe>; + volumeToken1_lt?: InputMaybe; + volumeToken1_lte?: InputMaybe; + volumeToken1_not?: InputMaybe; + volumeToken1_not_in?: InputMaybe>; + volumeUSD?: InputMaybe; + volumeUSD_gt?: InputMaybe; + volumeUSD_gte?: InputMaybe; + volumeUSD_in?: InputMaybe>; + volumeUSD_lt?: InputMaybe; + volumeUSD_lte?: InputMaybe; + volumeUSD_not?: InputMaybe; + volumeUSD_not_in?: InputMaybe>; +}; + +export enum PoolHourData_OrderBy { + Close = 'close', + FeeGrowthGlobal0X128 = 'feeGrowthGlobal0X128', + FeeGrowthGlobal1X128 = 'feeGrowthGlobal1X128', + FeesEth = 'feesETH', + FeesUsd = 'feesUSD', + High = 'high', Id = 'id', - InputTokenBalances = 'inputTokenBalances', - InputTokenBalancesUsd = 'inputTokenBalancesUSD', - InputTokenWeights = 'inputTokenWeights', - OpenPositionCount = 'openPositionCount', + Liquidity = 'liquidity', + Low = 'low', + Open = 'open', + PeriodStartUnix = 'periodStartUnix', Pool = 'pool', - PoolActiveLiquidity = 'pool__activeLiquidity', - PoolActiveLiquidityEth = 'pool__activeLiquidityETH', - PoolActiveLiquidityUsd = 'pool__activeLiquidityUSD', + PoolBalanceOfBlock = 'pool__balanceOfBlock', PoolClosedPositionCount = 'pool__closedPositionCount', - PoolCreatedBlockNumber = 'pool__createdBlockNumber', - PoolCreatedTimestamp = 'pool__createdTimestamp', - PoolCumulativeDepositCount = 'pool__cumulativeDepositCount', - PoolCumulativeProtocolSideRevenueEth = 'pool__cumulativeProtocolSideRevenueETH', - PoolCumulativeProtocolSideRevenueUsd = 'pool__cumulativeProtocolSideRevenueUSD', - PoolCumulativeSupplySideRevenueEth = 'pool__cumulativeSupplySideRevenueETH', - PoolCumulativeSupplySideRevenueUsd = 'pool__cumulativeSupplySideRevenueUSD', - PoolCumulativeSwapCount = 'pool__cumulativeSwapCount', - PoolCumulativeTotalRevenueEth = 'pool__cumulativeTotalRevenueETH', - PoolCumulativeTotalRevenueUsd = 'pool__cumulativeTotalRevenueUSD', - PoolCumulativeVolumeEth = 'pool__cumulativeVolumeETH', - PoolCumulativeVolumeUsd = 'pool__cumulativeVolumeUSD', - PoolCumulativeWithdrawCount = 'pool__cumulativeWithdrawCount', + PoolCollectedFeesToken0 = 'pool__collectedFeesToken0', + PoolCollectedFeesToken1 = 'pool__collectedFeesToken1', + PoolCollectedFeesUsd = 'pool__collectedFeesUSD', + PoolCollectedVaultWethFees = 'pool__collectedVaultWETHFees', + PoolCreatedAtBlockNumber = 'pool__createdAtBlockNumber', + PoolCreatedAtTimestamp = 'pool__createdAtTimestamp', + PoolFeeGrowthGlobal0X128 = 'pool__feeGrowthGlobal0X128', + PoolFeeGrowthGlobal1X128 = 'pool__feeGrowthGlobal1X128', + PoolFeeTier = 'pool__feeTier', + PoolFeesUsd = 'pool__feesUSD', PoolId = 'pool__id', - PoolIsSingleSided = 'pool__isSingleSided', - PoolLastSnapshotDayId = 'pool__lastSnapshotDayID', - PoolLastSnapshotHourId = 'pool__lastSnapshotHourID', - PoolLastUpdateBlockNumber = 'pool__lastUpdateBlockNumber', - PoolLastUpdateTimestamp = 'pool__lastUpdateTimestamp', - PoolLiquidityTokenType = 'pool__liquidityTokenType', + PoolLiquidity = 'pool__liquidity', + PoolLiquidityProviderCount = 'pool__liquidityProviderCount', PoolName = 'pool__name', + PoolObservationIndex = 'pool__observationIndex', PoolOpenPositionCount = 'pool__openPositionCount', - PoolPositionCount = 'pool__positionCount', - PoolStakedOutputTokenAmount = 'pool__stakedOutputTokenAmount', + PoolSqrtPrice = 'pool__sqrtPrice', PoolSymbol = 'pool__symbol', PoolTick = 'pool__tick', + PoolToken0Price = 'pool__token0Price', + PoolToken1Price = 'pool__token1Price', PoolTotalLiquidity = 'pool__totalLiquidity', - PoolTotalLiquidityEth = 'pool__totalLiquidityETH', - PoolTotalLiquidityUsd = 'pool__totalLiquidityUSD', PoolTotalValueLockedEth = 'pool__totalValueLockedETH', + PoolTotalValueLockedToken0 = 'pool__totalValueLockedToken0', + PoolTotalValueLockedToken1 = 'pool__totalValueLockedToken1', PoolTotalValueLockedUsd = 'pool__totalValueLockedUSD', - PositionCount = 'positionCount', - Protocol = 'protocol', - ProtocolRegenesis = 'protocol___regenesis', - ProtocolActiveLiquidityEth = 'protocol__activeLiquidityETH', - ProtocolActiveLiquidityUsd = 'protocol__activeLiquidityUSD', - ProtocolCumulativePositionCount = 'protocol__cumulativePositionCount', - ProtocolCumulativeProtocolSideRevenueEth = 'protocol__cumulativeProtocolSideRevenueETH', - ProtocolCumulativeProtocolSideRevenueUsd = 'protocol__cumulativeProtocolSideRevenueUSD', - ProtocolCumulativeSupplySideRevenueEth = 'protocol__cumulativeSupplySideRevenueETH', - ProtocolCumulativeSupplySideRevenueUsd = 'protocol__cumulativeSupplySideRevenueUSD', - ProtocolCumulativeTotalRevenueEth = 'protocol__cumulativeTotalRevenueETH', - ProtocolCumulativeTotalRevenueUsd = 'protocol__cumulativeTotalRevenueUSD', - ProtocolCumulativeUniqueLPs = 'protocol__cumulativeUniqueLPs', - ProtocolCumulativeUniqueTraders = 'protocol__cumulativeUniqueTraders', - ProtocolCumulativeUniqueUsers = 'protocol__cumulativeUniqueUsers', - ProtocolCumulativeVolumeEth = 'protocol__cumulativeVolumeETH', - ProtocolCumulativeVolumeUsd = 'protocol__cumulativeVolumeUSD', - ProtocolId = 'protocol__id', - ProtocolLastSnapshotDayId = 'protocol__lastSnapshotDayID', - ProtocolLastUpdateBlockNumber = 'protocol__lastUpdateBlockNumber', - ProtocolLastUpdateTimestamp = 'protocol__lastUpdateTimestamp', - ProtocolMethodologyVersion = 'protocol__methodologyVersion', - ProtocolName = 'protocol__name', - ProtocolNetwork = 'protocol__network', - ProtocolOpenPositionCount = 'protocol__openPositionCount', - ProtocolProtocolControlledValueUsd = 'protocol__protocolControlledValueUSD', - ProtocolSchemaVersion = 'protocol__schemaVersion', - ProtocolSlug = 'protocol__slug', - ProtocolSubgraphVersion = 'protocol__subgraphVersion', - ProtocolTotalLiquidityEth = 'protocol__totalLiquidityETH', - ProtocolTotalLiquidityUsd = 'protocol__totalLiquidityUSD', - ProtocolTotalPoolCount = 'protocol__totalPoolCount', - ProtocolTotalValueLockedEth = 'protocol__totalValueLockedETH', - ProtocolTotalValueLockedUsd = 'protocol__totalValueLockedUSD', - ProtocolType = 'protocol__type', - ProtocolUncollectedProtocolSideValueEth = 'protocol__uncollectedProtocolSideValueETH', - ProtocolUncollectedProtocolSideValueUsd = 'protocol__uncollectedProtocolSideValueUSD', - ProtocolUncollectedSupplySideValueEth = 'protocol__uncollectedSupplySideValueETH', - ProtocolUncollectedSupplySideValueUsd = 'protocol__uncollectedSupplySideValueUSD', - RewardTokenEmissionsAmount = 'rewardTokenEmissionsAmount', - RewardTokenEmissionsUsd = 'rewardTokenEmissionsUSD', - StakedOutputTokenAmount = 'stakedOutputTokenAmount', + PoolTotalValueLockedUsdUntracked = 'pool__totalValueLockedUSDUntracked', + PoolTxCount = 'pool__txCount', + PoolUntrackedVolumeUsd = 'pool__untrackedVolumeUSD', + PoolVolumeToken0 = 'pool__volumeToken0', + PoolVolumeToken1 = 'pool__volumeToken1', + PoolVolumeUsd = 'pool__volumeUSD', + SqrtPrice = 'sqrtPrice', Tick = 'tick', - Timestamp = 'timestamp', - TotalLiquidity = 'totalLiquidity', - TotalLiquidityEth = 'totalLiquidityETH', - TotalLiquidityUsd = 'totalLiquidityUSD', - TotalValueLockedEth = 'totalValueLockedETH', - TotalValueLockedUsd = 'totalValueLockedUSD', - UncollectedProtocolSideTokenAmounts = 'uncollectedProtocolSideTokenAmounts', - UncollectedProtocolSideValuesEth = 'uncollectedProtocolSideValuesETH', - UncollectedProtocolSideValuesUsd = 'uncollectedProtocolSideValuesUSD', - UncollectedSupplySideTokenAmounts = 'uncollectedSupplySideTokenAmounts', - UncollectedSupplySideValuesEth = 'uncollectedSupplySideValuesETH', - UncollectedSupplySideValuesUsd = 'uncollectedSupplySideValuesUSD' + Token0Price = 'token0Price', + Token1Price = 'token1Price', + TotalValueLockedToken0 = 'totalValueLockedToken0', + TotalValueLockedToken1 = 'totalValueLockedToken1', + TvlEth = 'tvlETH', + TvlUsd = 'tvlUSD', + TxCount = 'txCount', + VolumeToken0 = 'volumeToken0', + VolumeToken1 = 'volumeToken1', + VolumeUsd = 'volumeUSD' } -export type LiquidityPool_Filter = { +export type Pool_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - activeLiquidity?: InputMaybe; - activeLiquidityETH?: InputMaybe; - activeLiquidityETH_gt?: InputMaybe; - activeLiquidityETH_gte?: InputMaybe; - activeLiquidityETH_in?: InputMaybe>; - activeLiquidityETH_lt?: InputMaybe; - activeLiquidityETH_lte?: InputMaybe; - activeLiquidityETH_not?: InputMaybe; - activeLiquidityETH_not_in?: InputMaybe>; - activeLiquidityUSD?: InputMaybe; - activeLiquidityUSD_gt?: InputMaybe; - activeLiquidityUSD_gte?: InputMaybe; - activeLiquidityUSD_in?: InputMaybe>; - activeLiquidityUSD_lt?: InputMaybe; - activeLiquidityUSD_lte?: InputMaybe; - activeLiquidityUSD_not?: InputMaybe; - activeLiquidityUSD_not_in?: InputMaybe>; - activeLiquidity_gt?: InputMaybe; - activeLiquidity_gte?: InputMaybe; - activeLiquidity_in?: InputMaybe>; - activeLiquidity_lt?: InputMaybe; - activeLiquidity_lte?: InputMaybe; - activeLiquidity_not?: InputMaybe; - activeLiquidity_not_in?: InputMaybe>; - and?: InputMaybe>>; + and?: InputMaybe>>; + balanceOfBlock?: InputMaybe; + balanceOfBlock_gt?: InputMaybe; + balanceOfBlock_gte?: InputMaybe; + balanceOfBlock_in?: InputMaybe>; + balanceOfBlock_lt?: InputMaybe; + balanceOfBlock_lte?: InputMaybe; + balanceOfBlock_not?: InputMaybe; + balanceOfBlock_not_in?: InputMaybe>; + burns_?: InputMaybe; closedPositionCount?: InputMaybe; closedPositionCount_gt?: InputMaybe; closedPositionCount_gte?: InputMaybe; @@ -3275,138 +2287,94 @@ export type LiquidityPool_Filter = { closedPositionCount_lte?: InputMaybe; closedPositionCount_not?: InputMaybe; closedPositionCount_not_in?: InputMaybe>; - createdBlockNumber?: InputMaybe; - createdBlockNumber_gt?: InputMaybe; - createdBlockNumber_gte?: InputMaybe; - createdBlockNumber_in?: InputMaybe>; - createdBlockNumber_lt?: InputMaybe; - createdBlockNumber_lte?: InputMaybe; - createdBlockNumber_not?: InputMaybe; - createdBlockNumber_not_in?: InputMaybe>; - createdTimestamp?: InputMaybe; - createdTimestamp_gt?: InputMaybe; - createdTimestamp_gte?: InputMaybe; - createdTimestamp_in?: InputMaybe>; - createdTimestamp_lt?: InputMaybe; - createdTimestamp_lte?: InputMaybe; - createdTimestamp_not?: InputMaybe; - createdTimestamp_not_in?: InputMaybe>; - cumulativeDepositCount?: InputMaybe; - cumulativeDepositCount_gt?: InputMaybe; - cumulativeDepositCount_gte?: InputMaybe; - cumulativeDepositCount_in?: InputMaybe>; - cumulativeDepositCount_lt?: InputMaybe; - cumulativeDepositCount_lte?: InputMaybe; - cumulativeDepositCount_not?: InputMaybe; - cumulativeDepositCount_not_in?: InputMaybe>; - cumulativeProtocolSideRevenueETH?: InputMaybe; - cumulativeProtocolSideRevenueETH_gt?: InputMaybe; - cumulativeProtocolSideRevenueETH_gte?: InputMaybe; - cumulativeProtocolSideRevenueETH_in?: InputMaybe>; - cumulativeProtocolSideRevenueETH_lt?: InputMaybe; - cumulativeProtocolSideRevenueETH_lte?: InputMaybe; - cumulativeProtocolSideRevenueETH_not?: InputMaybe; - cumulativeProtocolSideRevenueETH_not_in?: InputMaybe>; - cumulativeProtocolSideRevenueUSD?: InputMaybe; - cumulativeProtocolSideRevenueUSD_gt?: InputMaybe; - cumulativeProtocolSideRevenueUSD_gte?: InputMaybe; - cumulativeProtocolSideRevenueUSD_in?: InputMaybe>; - cumulativeProtocolSideRevenueUSD_lt?: InputMaybe; - cumulativeProtocolSideRevenueUSD_lte?: InputMaybe; - cumulativeProtocolSideRevenueUSD_not?: InputMaybe; - cumulativeProtocolSideRevenueUSD_not_in?: InputMaybe>; - cumulativeSupplySideRevenueETH?: InputMaybe; - cumulativeSupplySideRevenueETH_gt?: InputMaybe; - cumulativeSupplySideRevenueETH_gte?: InputMaybe; - cumulativeSupplySideRevenueETH_in?: InputMaybe>; - cumulativeSupplySideRevenueETH_lt?: InputMaybe; - cumulativeSupplySideRevenueETH_lte?: InputMaybe; - cumulativeSupplySideRevenueETH_not?: InputMaybe; - cumulativeSupplySideRevenueETH_not_in?: InputMaybe>; - cumulativeSupplySideRevenueUSD?: InputMaybe; - cumulativeSupplySideRevenueUSD_gt?: InputMaybe; - cumulativeSupplySideRevenueUSD_gte?: InputMaybe; - cumulativeSupplySideRevenueUSD_in?: InputMaybe>; - cumulativeSupplySideRevenueUSD_lt?: InputMaybe; - cumulativeSupplySideRevenueUSD_lte?: InputMaybe; - cumulativeSupplySideRevenueUSD_not?: InputMaybe; - cumulativeSupplySideRevenueUSD_not_in?: InputMaybe>; - cumulativeSwapCount?: InputMaybe; - cumulativeSwapCount_gt?: InputMaybe; - cumulativeSwapCount_gte?: InputMaybe; - cumulativeSwapCount_in?: InputMaybe>; - cumulativeSwapCount_lt?: InputMaybe; - cumulativeSwapCount_lte?: InputMaybe; - cumulativeSwapCount_not?: InputMaybe; - cumulativeSwapCount_not_in?: InputMaybe>; - cumulativeTotalRevenueETH?: InputMaybe; - cumulativeTotalRevenueETH_gt?: InputMaybe; - cumulativeTotalRevenueETH_gte?: InputMaybe; - cumulativeTotalRevenueETH_in?: InputMaybe>; - cumulativeTotalRevenueETH_lt?: InputMaybe; - cumulativeTotalRevenueETH_lte?: InputMaybe; - cumulativeTotalRevenueETH_not?: InputMaybe; - cumulativeTotalRevenueETH_not_in?: InputMaybe>; - cumulativeTotalRevenueUSD?: InputMaybe; - cumulativeTotalRevenueUSD_gt?: InputMaybe; - cumulativeTotalRevenueUSD_gte?: InputMaybe; - cumulativeTotalRevenueUSD_in?: InputMaybe>; - cumulativeTotalRevenueUSD_lt?: InputMaybe; - cumulativeTotalRevenueUSD_lte?: InputMaybe; - cumulativeTotalRevenueUSD_not?: InputMaybe; - cumulativeTotalRevenueUSD_not_in?: InputMaybe>; - cumulativeVolumeByTokenAmount?: InputMaybe>; - cumulativeVolumeByTokenAmount_contains?: InputMaybe>; - cumulativeVolumeByTokenAmount_contains_nocase?: InputMaybe>; - cumulativeVolumeByTokenAmount_not?: InputMaybe>; - cumulativeVolumeByTokenAmount_not_contains?: InputMaybe>; - cumulativeVolumeByTokenAmount_not_contains_nocase?: InputMaybe>; - cumulativeVolumeByTokenETH?: InputMaybe>; - cumulativeVolumeByTokenETH_contains?: InputMaybe>; - cumulativeVolumeByTokenETH_contains_nocase?: InputMaybe>; - cumulativeVolumeByTokenETH_not?: InputMaybe>; - cumulativeVolumeByTokenETH_not_contains?: InputMaybe>; - cumulativeVolumeByTokenETH_not_contains_nocase?: InputMaybe>; - cumulativeVolumeByTokenUSD?: InputMaybe>; - cumulativeVolumeByTokenUSD_contains?: InputMaybe>; - cumulativeVolumeByTokenUSD_contains_nocase?: InputMaybe>; - cumulativeVolumeByTokenUSD_not?: InputMaybe>; - cumulativeVolumeByTokenUSD_not_contains?: InputMaybe>; - cumulativeVolumeByTokenUSD_not_contains_nocase?: InputMaybe>; - cumulativeVolumeETH?: InputMaybe; - cumulativeVolumeETH_gt?: InputMaybe; - cumulativeVolumeETH_gte?: InputMaybe; - cumulativeVolumeETH_in?: InputMaybe>; - cumulativeVolumeETH_lt?: InputMaybe; - cumulativeVolumeETH_lte?: InputMaybe; - cumulativeVolumeETH_not?: InputMaybe; - cumulativeVolumeETH_not_in?: InputMaybe>; - cumulativeVolumeUSD?: InputMaybe; - cumulativeVolumeUSD_gt?: InputMaybe; - cumulativeVolumeUSD_gte?: InputMaybe; - cumulativeVolumeUSD_in?: InputMaybe>; - cumulativeVolumeUSD_lt?: InputMaybe; - cumulativeVolumeUSD_lte?: InputMaybe; - cumulativeVolumeUSD_not?: InputMaybe; - cumulativeVolumeUSD_not_in?: InputMaybe>; - cumulativeWithdrawCount?: InputMaybe; - cumulativeWithdrawCount_gt?: InputMaybe; - cumulativeWithdrawCount_gte?: InputMaybe; - cumulativeWithdrawCount_in?: InputMaybe>; - cumulativeWithdrawCount_lt?: InputMaybe; - cumulativeWithdrawCount_lte?: InputMaybe; - cumulativeWithdrawCount_not?: InputMaybe; - cumulativeWithdrawCount_not_in?: InputMaybe>; - dailySnapshots_?: InputMaybe; - deposits_?: InputMaybe; + collectedFeesToken0?: InputMaybe; + collectedFeesToken0_gt?: InputMaybe; + collectedFeesToken0_gte?: InputMaybe; + collectedFeesToken0_in?: InputMaybe>; + collectedFeesToken0_lt?: InputMaybe; + collectedFeesToken0_lte?: InputMaybe; + collectedFeesToken0_not?: InputMaybe; + collectedFeesToken0_not_in?: InputMaybe>; + collectedFeesToken1?: InputMaybe; + collectedFeesToken1_gt?: InputMaybe; + collectedFeesToken1_gte?: InputMaybe; + collectedFeesToken1_in?: InputMaybe>; + collectedFeesToken1_lt?: InputMaybe; + collectedFeesToken1_lte?: InputMaybe; + collectedFeesToken1_not?: InputMaybe; + collectedFeesToken1_not_in?: InputMaybe>; + collectedFeesUSD?: InputMaybe; + collectedFeesUSD_gt?: InputMaybe; + collectedFeesUSD_gte?: InputMaybe; + collectedFeesUSD_in?: InputMaybe>; + collectedFeesUSD_lt?: InputMaybe; + collectedFeesUSD_lte?: InputMaybe; + collectedFeesUSD_not?: InputMaybe; + collectedFeesUSD_not_in?: InputMaybe>; + collectedVaultWETHFees?: InputMaybe; + collectedVaultWETHFees_gt?: InputMaybe; + collectedVaultWETHFees_gte?: InputMaybe; + collectedVaultWETHFees_in?: InputMaybe>; + collectedVaultWETHFees_lt?: InputMaybe; + collectedVaultWETHFees_lte?: InputMaybe; + collectedVaultWETHFees_not?: InputMaybe; + collectedVaultWETHFees_not_in?: InputMaybe>; + collects_?: InputMaybe; + createdAtBlockNumber?: InputMaybe; + createdAtBlockNumber_gt?: InputMaybe; + createdAtBlockNumber_gte?: InputMaybe; + createdAtBlockNumber_in?: InputMaybe>; + createdAtBlockNumber_lt?: InputMaybe; + createdAtBlockNumber_lte?: InputMaybe; + createdAtBlockNumber_not?: InputMaybe; + createdAtBlockNumber_not_in?: InputMaybe>; + createdAtTimestamp?: InputMaybe; + createdAtTimestamp_gt?: InputMaybe; + createdAtTimestamp_gte?: InputMaybe; + createdAtTimestamp_in?: InputMaybe>; + createdAtTimestamp_lt?: InputMaybe; + createdAtTimestamp_lte?: InputMaybe; + createdAtTimestamp_not?: InputMaybe; + createdAtTimestamp_not_in?: InputMaybe>; + feeGrowthGlobal0X128?: InputMaybe; + feeGrowthGlobal0X128_gt?: InputMaybe; + feeGrowthGlobal0X128_gte?: InputMaybe; + feeGrowthGlobal0X128_in?: InputMaybe>; + feeGrowthGlobal0X128_lt?: InputMaybe; + feeGrowthGlobal0X128_lte?: InputMaybe; + feeGrowthGlobal0X128_not?: InputMaybe; + feeGrowthGlobal0X128_not_in?: InputMaybe>; + feeGrowthGlobal1X128?: InputMaybe; + feeGrowthGlobal1X128_gt?: InputMaybe; + feeGrowthGlobal1X128_gte?: InputMaybe; + feeGrowthGlobal1X128_in?: InputMaybe>; + feeGrowthGlobal1X128_lt?: InputMaybe; + feeGrowthGlobal1X128_lte?: InputMaybe; + feeGrowthGlobal1X128_not?: InputMaybe; + feeGrowthGlobal1X128_not_in?: InputMaybe>; + feeTier?: InputMaybe; + feeTier_gt?: InputMaybe; + feeTier_gte?: InputMaybe; + feeTier_in?: InputMaybe>; + feeTier_lt?: InputMaybe; + feeTier_lte?: InputMaybe; + feeTier_not?: InputMaybe; + feeTier_not_in?: InputMaybe>; fees?: InputMaybe>; - fees_?: InputMaybe; + feesUSD?: InputMaybe; + feesUSD_gt?: InputMaybe; + feesUSD_gte?: InputMaybe; + feesUSD_in?: InputMaybe>; + feesUSD_lt?: InputMaybe; + feesUSD_lte?: InputMaybe; + feesUSD_not?: InputMaybe; + feesUSD_not_in?: InputMaybe>; + fees_?: InputMaybe; fees_contains?: InputMaybe>; fees_contains_nocase?: InputMaybe>; fees_not?: InputMaybe>; fees_not_contains?: InputMaybe>; fees_not_contains_nocase?: InputMaybe>; - hourlySnapshots_?: InputMaybe; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -3415,30 +2383,6 @@ export type LiquidityPool_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - inputTokenBalances?: InputMaybe>; - inputTokenBalancesETH?: InputMaybe>; - inputTokenBalancesETH_contains?: InputMaybe>; - inputTokenBalancesETH_contains_nocase?: InputMaybe>; - inputTokenBalancesETH_not?: InputMaybe>; - inputTokenBalancesETH_not_contains?: InputMaybe>; - inputTokenBalancesETH_not_contains_nocase?: InputMaybe>; - inputTokenBalancesUSD?: InputMaybe>; - inputTokenBalancesUSD_contains?: InputMaybe>; - inputTokenBalancesUSD_contains_nocase?: InputMaybe>; - inputTokenBalancesUSD_not?: InputMaybe>; - inputTokenBalancesUSD_not_contains?: InputMaybe>; - inputTokenBalancesUSD_not_contains_nocase?: InputMaybe>; - inputTokenBalances_contains?: InputMaybe>; - inputTokenBalances_contains_nocase?: InputMaybe>; - inputTokenBalances_not?: InputMaybe>; - inputTokenBalances_not_contains?: InputMaybe>; - inputTokenBalances_not_contains_nocase?: InputMaybe>; - inputTokenWeights?: InputMaybe>; - inputTokenWeights_contains?: InputMaybe>; - inputTokenWeights_contains_nocase?: InputMaybe>; - inputTokenWeights_not?: InputMaybe>; - inputTokenWeights_not_contains?: InputMaybe>; - inputTokenWeights_not_contains_nocase?: InputMaybe>; inputTokens?: InputMaybe>; inputTokens_?: InputMaybe; inputTokens_contains?: InputMaybe>; @@ -3446,67 +2390,23 @@ export type LiquidityPool_Filter = { inputTokens_not?: InputMaybe>; inputTokens_not_contains?: InputMaybe>; inputTokens_not_contains_nocase?: InputMaybe>; - isSingleSided?: InputMaybe; - isSingleSided_in?: InputMaybe>; - isSingleSided_not?: InputMaybe; - isSingleSided_not_in?: InputMaybe>; - lastSnapshotDayID?: InputMaybe; - lastSnapshotDayID_gt?: InputMaybe; - lastSnapshotDayID_gte?: InputMaybe; - lastSnapshotDayID_in?: InputMaybe>; - lastSnapshotDayID_lt?: InputMaybe; - lastSnapshotDayID_lte?: InputMaybe; - lastSnapshotDayID_not?: InputMaybe; - lastSnapshotDayID_not_in?: InputMaybe>; - lastSnapshotHourID?: InputMaybe; - lastSnapshotHourID_gt?: InputMaybe; - lastSnapshotHourID_gte?: InputMaybe; - lastSnapshotHourID_in?: InputMaybe>; - lastSnapshotHourID_lt?: InputMaybe; - lastSnapshotHourID_lte?: InputMaybe; - lastSnapshotHourID_not?: InputMaybe; - lastSnapshotHourID_not_in?: InputMaybe>; - lastUpdateBlockNumber?: InputMaybe; - lastUpdateBlockNumber_gt?: InputMaybe; - lastUpdateBlockNumber_gte?: InputMaybe; - lastUpdateBlockNumber_in?: InputMaybe>; - lastUpdateBlockNumber_lt?: InputMaybe; - lastUpdateBlockNumber_lte?: InputMaybe; - lastUpdateBlockNumber_not?: InputMaybe; - lastUpdateBlockNumber_not_in?: InputMaybe>; - lastUpdateTimestamp?: InputMaybe; - lastUpdateTimestamp_gt?: InputMaybe; - lastUpdateTimestamp_gte?: InputMaybe; - lastUpdateTimestamp_in?: InputMaybe>; - lastUpdateTimestamp_lt?: InputMaybe; - lastUpdateTimestamp_lte?: InputMaybe; - lastUpdateTimestamp_not?: InputMaybe; - lastUpdateTimestamp_not_in?: InputMaybe>; - liquidityToken?: InputMaybe; - liquidityTokenType?: InputMaybe; - liquidityTokenType_in?: InputMaybe>; - liquidityTokenType_not?: InputMaybe; - liquidityTokenType_not_in?: InputMaybe>; - liquidityToken_?: InputMaybe; - liquidityToken_contains?: InputMaybe; - liquidityToken_contains_nocase?: InputMaybe; - liquidityToken_ends_with?: InputMaybe; - liquidityToken_ends_with_nocase?: InputMaybe; - liquidityToken_gt?: InputMaybe; - liquidityToken_gte?: InputMaybe; - liquidityToken_in?: InputMaybe>; - liquidityToken_lt?: InputMaybe; - liquidityToken_lte?: InputMaybe; - liquidityToken_not?: InputMaybe; - liquidityToken_not_contains?: InputMaybe; - liquidityToken_not_contains_nocase?: InputMaybe; - liquidityToken_not_ends_with?: InputMaybe; - liquidityToken_not_ends_with_nocase?: InputMaybe; - liquidityToken_not_in?: InputMaybe>; - liquidityToken_not_starts_with?: InputMaybe; - liquidityToken_not_starts_with_nocase?: InputMaybe; - liquidityToken_starts_with?: InputMaybe; - liquidityToken_starts_with_nocase?: InputMaybe; + liquidity?: InputMaybe; + liquidityProviderCount?: InputMaybe; + liquidityProviderCount_gt?: InputMaybe; + liquidityProviderCount_gte?: InputMaybe; + liquidityProviderCount_in?: InputMaybe>; + liquidityProviderCount_lt?: InputMaybe; + liquidityProviderCount_lte?: InputMaybe; + liquidityProviderCount_not?: InputMaybe; + liquidityProviderCount_not_in?: InputMaybe>; + liquidity_gt?: InputMaybe; + liquidity_gte?: InputMaybe; + liquidity_in?: InputMaybe>; + liquidity_lt?: InputMaybe; + liquidity_lte?: InputMaybe; + liquidity_not?: InputMaybe; + liquidity_not_in?: InputMaybe>; + mints_?: InputMaybe; name?: InputMaybe; name_contains?: InputMaybe; name_contains_nocase?: InputMaybe; @@ -3527,6 +2427,14 @@ export type LiquidityPool_Filter = { name_not_starts_with_nocase?: InputMaybe; name_starts_with?: InputMaybe; name_starts_with_nocase?: InputMaybe; + observationIndex?: InputMaybe; + observationIndex_gt?: InputMaybe; + observationIndex_gte?: InputMaybe; + observationIndex_in?: InputMaybe>; + observationIndex_lt?: InputMaybe; + observationIndex_lte?: InputMaybe; + observationIndex_not?: InputMaybe; + observationIndex_not_in?: InputMaybe>; openPositionCount?: InputMaybe; openPositionCount_gt?: InputMaybe; openPositionCount_gte?: InputMaybe; @@ -3535,64 +2443,18 @@ export type LiquidityPool_Filter = { openPositionCount_lte?: InputMaybe; openPositionCount_not?: InputMaybe; openPositionCount_not_in?: InputMaybe>; - or?: InputMaybe>>; - positionCount?: InputMaybe; - positionCount_gt?: InputMaybe; - positionCount_gte?: InputMaybe; - positionCount_in?: InputMaybe>; - positionCount_lt?: InputMaybe; - positionCount_lte?: InputMaybe; - positionCount_not?: InputMaybe; - positionCount_not_in?: InputMaybe>; + or?: InputMaybe>>; + poolDayData_?: InputMaybe; + poolHourData_?: InputMaybe; positions_?: InputMaybe; - protocol?: InputMaybe; - protocol_?: InputMaybe; - protocol_contains?: InputMaybe; - protocol_contains_nocase?: InputMaybe; - protocol_ends_with?: InputMaybe; - protocol_ends_with_nocase?: InputMaybe; - protocol_gt?: InputMaybe; - protocol_gte?: InputMaybe; - protocol_in?: InputMaybe>; - protocol_lt?: InputMaybe; - protocol_lte?: InputMaybe; - protocol_not?: InputMaybe; - protocol_not_contains?: InputMaybe; - protocol_not_contains_nocase?: InputMaybe; - protocol_not_ends_with?: InputMaybe; - protocol_not_ends_with_nocase?: InputMaybe; - protocol_not_in?: InputMaybe>; - protocol_not_starts_with?: InputMaybe; - protocol_not_starts_with_nocase?: InputMaybe; - protocol_starts_with?: InputMaybe; - protocol_starts_with_nocase?: InputMaybe; - rewardTokenEmissionsAmount?: InputMaybe>; - rewardTokenEmissionsAmount_contains?: InputMaybe>; - rewardTokenEmissionsAmount_contains_nocase?: InputMaybe>; - rewardTokenEmissionsAmount_not?: InputMaybe>; - rewardTokenEmissionsAmount_not_contains?: InputMaybe>; - rewardTokenEmissionsAmount_not_contains_nocase?: InputMaybe>; - rewardTokenEmissionsUSD?: InputMaybe>; - rewardTokenEmissionsUSD_contains?: InputMaybe>; - rewardTokenEmissionsUSD_contains_nocase?: InputMaybe>; - rewardTokenEmissionsUSD_not?: InputMaybe>; - rewardTokenEmissionsUSD_not_contains?: InputMaybe>; - rewardTokenEmissionsUSD_not_contains_nocase?: InputMaybe>; - rewardTokens?: InputMaybe>; - rewardTokens_?: InputMaybe; - rewardTokens_contains?: InputMaybe>; - rewardTokens_contains_nocase?: InputMaybe>; - rewardTokens_not?: InputMaybe>; - rewardTokens_not_contains?: InputMaybe>; - rewardTokens_not_contains_nocase?: InputMaybe>; - stakedOutputTokenAmount?: InputMaybe; - stakedOutputTokenAmount_gt?: InputMaybe; - stakedOutputTokenAmount_gte?: InputMaybe; - stakedOutputTokenAmount_in?: InputMaybe>; - stakedOutputTokenAmount_lt?: InputMaybe; - stakedOutputTokenAmount_lte?: InputMaybe; - stakedOutputTokenAmount_not?: InputMaybe; - stakedOutputTokenAmount_not_in?: InputMaybe>; + sqrtPrice?: InputMaybe; + sqrtPrice_gt?: InputMaybe; + sqrtPrice_gte?: InputMaybe; + sqrtPrice_in?: InputMaybe>; + sqrtPrice_lt?: InputMaybe; + sqrtPrice_lte?: InputMaybe; + sqrtPrice_not?: InputMaybe; + sqrtPrice_not_in?: InputMaybe>; swaps_?: InputMaybe; symbol?: InputMaybe; symbol_contains?: InputMaybe; @@ -3622,23 +2484,65 @@ export type LiquidityPool_Filter = { tick_lte?: InputMaybe; tick_not?: InputMaybe; tick_not_in?: InputMaybe>; + token0?: InputMaybe; + token0Price?: InputMaybe; + token0Price_gt?: InputMaybe; + token0Price_gte?: InputMaybe; + token0Price_in?: InputMaybe>; + token0Price_lt?: InputMaybe; + token0Price_lte?: InputMaybe; + token0Price_not?: InputMaybe; + token0Price_not_in?: 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; + token1Price?: InputMaybe; + token1Price_gt?: InputMaybe; + token1Price_gte?: InputMaybe; + token1Price_in?: InputMaybe>; + token1Price_lt?: InputMaybe; + token1Price_lte?: InputMaybe; + token1Price_not?: InputMaybe; + token1Price_not_in?: 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; totalLiquidity?: InputMaybe; - totalLiquidityETH?: InputMaybe; - totalLiquidityETH_gt?: InputMaybe; - totalLiquidityETH_gte?: InputMaybe; - totalLiquidityETH_in?: InputMaybe>; - totalLiquidityETH_lt?: InputMaybe; - totalLiquidityETH_lte?: InputMaybe; - totalLiquidityETH_not?: InputMaybe; - totalLiquidityETH_not_in?: InputMaybe>; - totalLiquidityUSD?: InputMaybe; - totalLiquidityUSD_gt?: InputMaybe; - totalLiquidityUSD_gte?: InputMaybe; - totalLiquidityUSD_in?: InputMaybe>; - totalLiquidityUSD_lt?: InputMaybe; - totalLiquidityUSD_lte?: InputMaybe; - totalLiquidityUSD_not?: InputMaybe; - totalLiquidityUSD_not_in?: InputMaybe>; totalLiquidity_gt?: InputMaybe; totalLiquidity_gte?: InputMaybe; totalLiquidity_in?: InputMaybe>; @@ -3654,7 +2558,31 @@ export type LiquidityPool_Filter = { totalValueLockedETH_lte?: InputMaybe; totalValueLockedETH_not?: InputMaybe; totalValueLockedETH_not_in?: InputMaybe>; + totalValueLockedToken0?: InputMaybe; + totalValueLockedToken0_gt?: InputMaybe; + totalValueLockedToken0_gte?: InputMaybe; + totalValueLockedToken0_in?: InputMaybe>; + totalValueLockedToken0_lt?: InputMaybe; + totalValueLockedToken0_lte?: InputMaybe; + totalValueLockedToken0_not?: InputMaybe; + totalValueLockedToken0_not_in?: InputMaybe>; + totalValueLockedToken1?: InputMaybe; + totalValueLockedToken1_gt?: InputMaybe; + totalValueLockedToken1_gte?: InputMaybe; + totalValueLockedToken1_in?: InputMaybe>; + totalValueLockedToken1_lt?: InputMaybe; + totalValueLockedToken1_lte?: InputMaybe; + totalValueLockedToken1_not?: InputMaybe; + totalValueLockedToken1_not_in?: InputMaybe>; totalValueLockedUSD?: InputMaybe; + totalValueLockedUSDUntracked?: InputMaybe; + totalValueLockedUSDUntracked_gt?: InputMaybe; + totalValueLockedUSDUntracked_gte?: InputMaybe; + totalValueLockedUSDUntracked_in?: InputMaybe>; + totalValueLockedUSDUntracked_lt?: InputMaybe; + totalValueLockedUSDUntracked_lte?: InputMaybe; + totalValueLockedUSDUntracked_not?: InputMaybe; + totalValueLockedUSDUntracked_not_in?: InputMaybe>; totalValueLockedUSD_gt?: InputMaybe; totalValueLockedUSD_gte?: InputMaybe; totalValueLockedUSD_in?: InputMaybe>; @@ -3662,318 +2590,175 @@ export type LiquidityPool_Filter = { totalValueLockedUSD_lte?: InputMaybe; totalValueLockedUSD_not?: InputMaybe; totalValueLockedUSD_not_in?: InputMaybe>; - uncollectedProtocolSideTokenAmounts?: InputMaybe>; - uncollectedProtocolSideTokenAmounts_contains?: InputMaybe>; - uncollectedProtocolSideTokenAmounts_contains_nocase?: InputMaybe>; - uncollectedProtocolSideTokenAmounts_not?: InputMaybe>; - uncollectedProtocolSideTokenAmounts_not_contains?: InputMaybe>; - uncollectedProtocolSideTokenAmounts_not_contains_nocase?: InputMaybe>; - uncollectedProtocolSideValuesETH?: InputMaybe>; - uncollectedProtocolSideValuesETH_contains?: InputMaybe>; - uncollectedProtocolSideValuesETH_contains_nocase?: InputMaybe>; - uncollectedProtocolSideValuesETH_not?: InputMaybe>; - uncollectedProtocolSideValuesETH_not_contains?: InputMaybe>; - uncollectedProtocolSideValuesETH_not_contains_nocase?: InputMaybe>; - uncollectedProtocolSideValuesUSD?: InputMaybe>; - uncollectedProtocolSideValuesUSD_contains?: InputMaybe>; - uncollectedProtocolSideValuesUSD_contains_nocase?: InputMaybe>; - uncollectedProtocolSideValuesUSD_not?: InputMaybe>; - uncollectedProtocolSideValuesUSD_not_contains?: InputMaybe>; - uncollectedProtocolSideValuesUSD_not_contains_nocase?: InputMaybe>; - uncollectedSupplySideTokenAmounts?: InputMaybe>; - uncollectedSupplySideTokenAmounts_contains?: InputMaybe>; - uncollectedSupplySideTokenAmounts_contains_nocase?: InputMaybe>; - uncollectedSupplySideTokenAmounts_not?: InputMaybe>; - uncollectedSupplySideTokenAmounts_not_contains?: InputMaybe>; - uncollectedSupplySideTokenAmounts_not_contains_nocase?: InputMaybe>; - uncollectedSupplySideValuesETH?: InputMaybe>; - uncollectedSupplySideValuesETH_contains?: InputMaybe>; - uncollectedSupplySideValuesETH_contains_nocase?: InputMaybe>; - uncollectedSupplySideValuesETH_not?: InputMaybe>; - uncollectedSupplySideValuesETH_not_contains?: InputMaybe>; - uncollectedSupplySideValuesETH_not_contains_nocase?: InputMaybe>; - uncollectedSupplySideValuesUSD?: InputMaybe>; - uncollectedSupplySideValuesUSD_contains?: InputMaybe>; - uncollectedSupplySideValuesUSD_contains_nocase?: InputMaybe>; - uncollectedSupplySideValuesUSD_not?: InputMaybe>; - uncollectedSupplySideValuesUSD_not_contains?: InputMaybe>; - uncollectedSupplySideValuesUSD_not_contains_nocase?: InputMaybe>; - withdraws_?: InputMaybe; -}; - -export enum LiquidityPool_OrderBy { - ActiveLiquidity = 'activeLiquidity', - ActiveLiquidityEth = 'activeLiquidityETH', - ActiveLiquidityUsd = 'activeLiquidityUSD', + txCount?: InputMaybe; + txCount_gt?: InputMaybe; + txCount_gte?: InputMaybe; + txCount_in?: InputMaybe>; + txCount_lt?: InputMaybe; + txCount_lte?: InputMaybe; + txCount_not?: InputMaybe; + txCount_not_in?: InputMaybe>; + untrackedVolumeUSD?: InputMaybe; + untrackedVolumeUSD_gt?: InputMaybe; + untrackedVolumeUSD_gte?: InputMaybe; + untrackedVolumeUSD_in?: InputMaybe>; + untrackedVolumeUSD_lt?: InputMaybe; + untrackedVolumeUSD_lte?: InputMaybe; + untrackedVolumeUSD_not?: InputMaybe; + untrackedVolumeUSD_not_in?: InputMaybe>; + volumeToken0?: InputMaybe; + volumeToken0_gt?: InputMaybe; + volumeToken0_gte?: InputMaybe; + volumeToken0_in?: InputMaybe>; + volumeToken0_lt?: InputMaybe; + volumeToken0_lte?: InputMaybe; + volumeToken0_not?: InputMaybe; + volumeToken0_not_in?: InputMaybe>; + volumeToken1?: InputMaybe; + volumeToken1_gt?: InputMaybe; + volumeToken1_gte?: InputMaybe; + volumeToken1_in?: InputMaybe>; + volumeToken1_lt?: InputMaybe; + volumeToken1_lte?: InputMaybe; + volumeToken1_not?: InputMaybe; + volumeToken1_not_in?: InputMaybe>; + volumeUSD?: InputMaybe; + volumeUSD_gt?: InputMaybe; + volumeUSD_gte?: InputMaybe; + volumeUSD_in?: InputMaybe>; + volumeUSD_lt?: InputMaybe; + volumeUSD_lte?: InputMaybe; + volumeUSD_not?: InputMaybe; + volumeUSD_not_in?: InputMaybe>; +}; + +export enum Pool_OrderBy { + BalanceOfBlock = 'balanceOfBlock', + Burns = 'burns', ClosedPositionCount = 'closedPositionCount', - CreatedBlockNumber = 'createdBlockNumber', - CreatedTimestamp = 'createdTimestamp', - CumulativeDepositCount = 'cumulativeDepositCount', - CumulativeProtocolSideRevenueEth = 'cumulativeProtocolSideRevenueETH', - CumulativeProtocolSideRevenueUsd = 'cumulativeProtocolSideRevenueUSD', - CumulativeSupplySideRevenueEth = 'cumulativeSupplySideRevenueETH', - CumulativeSupplySideRevenueUsd = 'cumulativeSupplySideRevenueUSD', - CumulativeSwapCount = 'cumulativeSwapCount', - CumulativeTotalRevenueEth = 'cumulativeTotalRevenueETH', - CumulativeTotalRevenueUsd = 'cumulativeTotalRevenueUSD', - CumulativeVolumeByTokenAmount = 'cumulativeVolumeByTokenAmount', - CumulativeVolumeByTokenEth = 'cumulativeVolumeByTokenETH', - CumulativeVolumeByTokenUsd = 'cumulativeVolumeByTokenUSD', - CumulativeVolumeEth = 'cumulativeVolumeETH', - CumulativeVolumeUsd = 'cumulativeVolumeUSD', - CumulativeWithdrawCount = 'cumulativeWithdrawCount', - DailySnapshots = 'dailySnapshots', - Deposits = 'deposits', + CollectedFeesToken0 = 'collectedFeesToken0', + CollectedFeesToken1 = 'collectedFeesToken1', + CollectedFeesUsd = 'collectedFeesUSD', + CollectedVaultWethFees = 'collectedVaultWETHFees', + Collects = 'collects', + CreatedAtBlockNumber = 'createdAtBlockNumber', + CreatedAtTimestamp = 'createdAtTimestamp', + FeeGrowthGlobal0X128 = 'feeGrowthGlobal0X128', + FeeGrowthGlobal1X128 = 'feeGrowthGlobal1X128', + FeeTier = 'feeTier', Fees = 'fees', - HourlySnapshots = 'hourlySnapshots', + FeesUsd = 'feesUSD', Id = 'id', - InputTokenBalances = 'inputTokenBalances', - InputTokenBalancesEth = 'inputTokenBalancesETH', - InputTokenBalancesUsd = 'inputTokenBalancesUSD', - InputTokenWeights = 'inputTokenWeights', InputTokens = 'inputTokens', - IsSingleSided = 'isSingleSided', - LastSnapshotDayId = 'lastSnapshotDayID', - LastSnapshotHourId = 'lastSnapshotHourID', - LastUpdateBlockNumber = 'lastUpdateBlockNumber', - LastUpdateTimestamp = 'lastUpdateTimestamp', - LiquidityToken = 'liquidityToken', - LiquidityTokenType = 'liquidityTokenType', - LiquidityTokenEthPricePool = 'liquidityToken___ethPricePool', - LiquidityTokenLargePriceChangeBuffer = 'liquidityToken___largePriceChangeBuffer', - LiquidityTokenLargeTvlImpactBuffer = 'liquidityToken___largeTVLImpactBuffer', - LiquidityTokenLastPricePool = 'liquidityToken___lastPricePool', - LiquidityTokenTotalSupply = 'liquidityToken___totalSupply', - LiquidityTokenTotalValueLockedEth = 'liquidityToken___totalValueLockedETH', - LiquidityTokenTotalValueLockedUsd = 'liquidityToken___totalValueLockedUSD', - LiquidityTokenDecimals = 'liquidityToken__decimals', - LiquidityTokenId = 'liquidityToken__id', - LiquidityTokenLastPriceBlockNumber = 'liquidityToken__lastPriceBlockNumber', - LiquidityTokenLastPriceEth = 'liquidityToken__lastPriceETH', - LiquidityTokenLastPriceUsd = 'liquidityToken__lastPriceUSD', - LiquidityTokenName = 'liquidityToken__name', - LiquidityTokenSymbol = 'liquidityToken__symbol', + Liquidity = 'liquidity', + LiquidityProviderCount = 'liquidityProviderCount', + Mints = 'mints', Name = 'name', + ObservationIndex = 'observationIndex', OpenPositionCount = 'openPositionCount', - PositionCount = 'positionCount', + PoolDayData = 'poolDayData', + PoolHourData = 'poolHourData', Positions = 'positions', - Protocol = 'protocol', - ProtocolRegenesis = 'protocol___regenesis', - ProtocolActiveLiquidityEth = 'protocol__activeLiquidityETH', - ProtocolActiveLiquidityUsd = 'protocol__activeLiquidityUSD', - ProtocolCumulativePositionCount = 'protocol__cumulativePositionCount', - ProtocolCumulativeProtocolSideRevenueEth = 'protocol__cumulativeProtocolSideRevenueETH', - ProtocolCumulativeProtocolSideRevenueUsd = 'protocol__cumulativeProtocolSideRevenueUSD', - ProtocolCumulativeSupplySideRevenueEth = 'protocol__cumulativeSupplySideRevenueETH', - ProtocolCumulativeSupplySideRevenueUsd = 'protocol__cumulativeSupplySideRevenueUSD', - ProtocolCumulativeTotalRevenueEth = 'protocol__cumulativeTotalRevenueETH', - ProtocolCumulativeTotalRevenueUsd = 'protocol__cumulativeTotalRevenueUSD', - ProtocolCumulativeUniqueLPs = 'protocol__cumulativeUniqueLPs', - ProtocolCumulativeUniqueTraders = 'protocol__cumulativeUniqueTraders', - ProtocolCumulativeUniqueUsers = 'protocol__cumulativeUniqueUsers', - ProtocolCumulativeVolumeEth = 'protocol__cumulativeVolumeETH', - ProtocolCumulativeVolumeUsd = 'protocol__cumulativeVolumeUSD', - ProtocolId = 'protocol__id', - ProtocolLastSnapshotDayId = 'protocol__lastSnapshotDayID', - ProtocolLastUpdateBlockNumber = 'protocol__lastUpdateBlockNumber', - ProtocolLastUpdateTimestamp = 'protocol__lastUpdateTimestamp', - ProtocolMethodologyVersion = 'protocol__methodologyVersion', - ProtocolName = 'protocol__name', - ProtocolNetwork = 'protocol__network', - ProtocolOpenPositionCount = 'protocol__openPositionCount', - ProtocolProtocolControlledValueUsd = 'protocol__protocolControlledValueUSD', - ProtocolSchemaVersion = 'protocol__schemaVersion', - ProtocolSlug = 'protocol__slug', - ProtocolSubgraphVersion = 'protocol__subgraphVersion', - ProtocolTotalLiquidityEth = 'protocol__totalLiquidityETH', - ProtocolTotalLiquidityUsd = 'protocol__totalLiquidityUSD', - ProtocolTotalPoolCount = 'protocol__totalPoolCount', - ProtocolTotalValueLockedEth = 'protocol__totalValueLockedETH', - ProtocolTotalValueLockedUsd = 'protocol__totalValueLockedUSD', - ProtocolType = 'protocol__type', - ProtocolUncollectedProtocolSideValueEth = 'protocol__uncollectedProtocolSideValueETH', - ProtocolUncollectedProtocolSideValueUsd = 'protocol__uncollectedProtocolSideValueUSD', - ProtocolUncollectedSupplySideValueEth = 'protocol__uncollectedSupplySideValueETH', - ProtocolUncollectedSupplySideValueUsd = 'protocol__uncollectedSupplySideValueUSD', - RewardTokenEmissionsAmount = 'rewardTokenEmissionsAmount', - RewardTokenEmissionsUsd = 'rewardTokenEmissionsUSD', - RewardTokens = 'rewardTokens', - StakedOutputTokenAmount = 'stakedOutputTokenAmount', + SqrtPrice = 'sqrtPrice', Swaps = 'swaps', Symbol = 'symbol', Tick = 'tick', + Token0 = 'token0', + Token0Price = 'token0Price', + Token0Decimals = 'token0__decimals', + Token0DerivedEth = 'token0__derivedETH', + Token0DerivedUsd = 'token0__derivedUSD', + Token0FeesUsd = 'token0__feesUSD', + Token0Id = 'token0__id', + Token0Name = 'token0__name', + Token0PoolCount = 'token0__poolCount', + Token0Symbol = 'token0__symbol', + Token0TotalSupply = 'token0__totalSupply', + Token0TotalValueLocked = 'token0__totalValueLocked', + Token0TotalValueLockedUsd = 'token0__totalValueLockedUSD', + Token0TotalValueLockedUsdUntracked = 'token0__totalValueLockedUSDUntracked', + Token0TxCount = 'token0__txCount', + Token0UntrackedVolumeUsd = 'token0__untrackedVolumeUSD', + Token0Volume = 'token0__volume', + Token0VolumeUsd = 'token0__volumeUSD', + Token1 = 'token1', + Token1Price = 'token1Price', + Token1Decimals = 'token1__decimals', + Token1DerivedEth = 'token1__derivedETH', + Token1DerivedUsd = 'token1__derivedUSD', + Token1FeesUsd = 'token1__feesUSD', + Token1Id = 'token1__id', + Token1Name = 'token1__name', + Token1PoolCount = 'token1__poolCount', + Token1Symbol = 'token1__symbol', + Token1TotalSupply = 'token1__totalSupply', + Token1TotalValueLocked = 'token1__totalValueLocked', + Token1TotalValueLockedUsd = 'token1__totalValueLockedUSD', + Token1TotalValueLockedUsdUntracked = 'token1__totalValueLockedUSDUntracked', + Token1TxCount = 'token1__txCount', + Token1UntrackedVolumeUsd = 'token1__untrackedVolumeUSD', + Token1Volume = 'token1__volume', + Token1VolumeUsd = 'token1__volumeUSD', TotalLiquidity = 'totalLiquidity', - TotalLiquidityEth = 'totalLiquidityETH', - TotalLiquidityUsd = 'totalLiquidityUSD', TotalValueLockedEth = 'totalValueLockedETH', + TotalValueLockedToken0 = 'totalValueLockedToken0', + TotalValueLockedToken1 = 'totalValueLockedToken1', TotalValueLockedUsd = 'totalValueLockedUSD', - UncollectedProtocolSideTokenAmounts = 'uncollectedProtocolSideTokenAmounts', - UncollectedProtocolSideValuesEth = 'uncollectedProtocolSideValuesETH', - UncollectedProtocolSideValuesUsd = 'uncollectedProtocolSideValuesUSD', - UncollectedSupplySideTokenAmounts = 'uncollectedSupplySideTokenAmounts', - UncollectedSupplySideValuesEth = 'uncollectedSupplySideValuesETH', - UncollectedSupplySideValuesUsd = 'uncollectedSupplySideValuesUSD', - Withdraws = 'withdraws' -} - -export enum Network { - ArbitrumOne = 'ARBITRUM_ONE', - ArweaveMainnet = 'ARWEAVE_MAINNET', - Aurora = 'AURORA', - Avalanche = 'AVALANCHE', - Boba = 'BOBA', - Bsc = 'BSC', - Celo = 'CELO', - Cosmos = 'COSMOS', - Cronos = 'CRONOS', - Fantom = 'FANTOM', - Fuse = 'FUSE', - Goerli = 'GOERLI', - Harmony = 'HARMONY', - Juno = 'JUNO', - Mainnet = 'MAINNET', - Matic = 'MATIC', - Moonbeam = 'MOONBEAM', - Moonriver = 'MOONRIVER', - NearMainnet = 'NEAR_MAINNET', - Optimism = 'OPTIMISM', - Osmosis = 'OSMOSIS', - Sepolia = 'SEPOLIA', - Xdai = 'XDAI' -} - -/** Defines the order direction, either ascending or descending */ -export enum OrderDirection { - Asc = 'asc', - Desc = 'desc' + TotalValueLockedUsdUntracked = 'totalValueLockedUSDUntracked', + TxCount = 'txCount', + UntrackedVolumeUsd = 'untrackedVolumeUSD', + VolumeToken0 = 'volumeToken0', + VolumeToken1 = 'volumeToken1', + VolumeUsd = 'volumeUSD' } export type Position = { __typename?: 'Position'; - /** Account that owns this position */ - account: Account; - /** Block number of when the position was closed (0 if still open) */ - blockNumberClosed?: Maybe; - /** Block number of when the position was opened */ - blockNumberOpened: Scalars['BigInt']['output']; - /** amount of tokens ever deposited to position */ - cumulativeDepositTokenAmounts: Array; - /** amount of tokens in USD deposited to position */ - cumulativeDepositUSD: Scalars['BigDecimal']['output']; - /** Total reward token accumulated under this position, in USD */ - cumulativeRewardUSD?: Maybe>; - /** amount of tokens ever withdrawn from position (without fees) */ - cumulativeWithdrawTokenAmounts: Array; - /** amount of tokens in USD withdrawn from position (without fees) */ - cumulativeWithdrawUSD: Scalars['BigDecimal']['output']; - /** Number of deposits related to this position */ - depositCount: Scalars['Int']['output']; - /** All deposit events of this position */ - deposits: Array; - /** The hash of the transaction that closed this position */ + collectedFeesToken0: Scalars['BigDecimal']['output']; + collectedFeesToken1: Scalars['BigDecimal']['output']; + depositedToken0: Scalars['BigDecimal']['output']; + depositedToken1: Scalars['BigDecimal']['output']; + feeGrowthInside0LastX128?: Maybe; + feeGrowthInside1LastX128?: Maybe; hashClosed?: Maybe; - /** The hash of the transaction that opened this position */ - hashOpened: Scalars['Bytes']['output']; - /** { Account address }-{ Market address }-{ Count } */ - id: Scalars['Bytes']['output']; - /** total position liquidity */ + id: Scalars['ID']['output']; liquidity: Scalars['BigInt']['output']; - /** total position liquidity in ETH */ - liquidityETH: Scalars['BigDecimal']['output']; - /** Token that is to represent ownership of liquidity */ - liquidityToken?: Maybe; - /** Type of token used to track liquidity */ - liquidityTokenType?: Maybe; - /** total position liquidity in USD */ - liquidityUSD: Scalars['BigDecimal']['output']; - /** Timestamp which position is locked until */ lockedUntil?: Maybe; nfpmAddress: Scalars['Bytes']['output']; - /** The liquidity pool in which this position was opened */ - pool: LiquidityPool; - /** Position daily snapshots for open positions */ - snapshots: Array; - /** lower tick of the position */ - tickLower?: Maybe; - /** upper tick of the position */ - tickUpper?: Maybe; - /** Timestamp when the position was closed (0 if still open) */ - timestampClosed?: Maybe; - /** Timestamp when the position was opened */ - timestampOpened: Scalars['BigInt']['output']; - /** TokenId of the Position */ + owner: Account; + pool: Pool; + tickLower: Scalars['Int']['output']; + tickUpper: Scalars['Int']['output']; + token0: Token; + token1: Token; tokenId: Scalars['BigInt']['output']; - /** Number of withdrawals related to this position */ - withdrawCount: Scalars['Int']['output']; - /** All withdraw events of this position */ - withdraws: Array; -}; - - -export type PositionDepositsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type PositionSnapshotsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type PositionWithdrawsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; + totalToken0Value: Scalars['BigDecimal']['output']; + totalToken1Value: Scalars['BigDecimal']['output']; + transaction: Transaction; + withdrawnToken0: Scalars['BigDecimal']['output']; + withdrawnToken1: Scalars['BigDecimal']['output']; }; export type PositionSnapshot = { __typename?: 'PositionSnapshot'; - /** Block number of this snapshot */ blockNumber: Scalars['BigInt']['output']; - /** amount of tokens ever deposited to position */ - cumulativeDepositTokenAmounts: Array; - /** amount of tokens in USD deposited to position */ - cumulativeDepositUSD: Scalars['BigDecimal']['output']; - /** Total reward token accumulated under this position, in native amounts */ - cumulativeRewardTokenAmounts?: Maybe>; - /** Total reward token accumulated under this position, in USD */ - cumulativeRewardUSD?: Maybe>; - /** amount of tokens ever withdrawn from position (without fees) */ - cumulativeWithdrawTokenAmounts: Array; - /** amount of tokens in USD withdrawn from position (without fees) */ - cumulativeWithdrawUSD: Scalars['BigDecimal']['output']; - /** Number of deposits related to this position */ - depositCount: Scalars['Int']['output']; - /** Transaction hash of the transaction that triggered this snapshot */ - hash: Scalars['Bytes']['output']; - /** { Position ID }-{ Transaction hash }-{ Log index } */ + collectedFeesToken0: Scalars['BigDecimal']['output']; + collectedFeesToken1: Scalars['BigDecimal']['output']; + depositedToken0: Scalars['BigDecimal']['output']; + depositedToken1: Scalars['BigDecimal']['output']; + feeGrowthInside0LastX128?: Maybe; + feeGrowthInside1LastX128?: Maybe; id: Scalars['ID']['output']; - /** total position liquidity */ - liquidity?: Maybe; - /** Type of token used to track liquidity */ - liquidityTokenType?: Maybe; - /** total position liquidity in USD */ - liquidityUSD?: Maybe; - /** Event log index. For transactions that don't emit event, create arbitrary index starting from 0 */ - logIndex: Scalars['Int']['output']; - /** Nonce of the transaction that triggered this snapshot */ - nonce: Scalars['BigInt']['output']; - /** Position of this snapshot */ + liquidity: Scalars['BigInt']['output']; + owner: Account; + pool: Pool; position: Position; - /** Timestamp of this snapshot */ timestamp: Scalars['BigInt']['output']; - /** Number of withdrawals related to this position */ - withdrawCount: Scalars['Int']['output']; + totalToken0Value: Scalars['BigDecimal']['output']; + totalToken1Value: Scalars['BigDecimal']['output']; + transaction: Transaction; + withdrawnToken0: Scalars['BigDecimal']['output']; + withdrawnToken1: Scalars['BigDecimal']['output']; }; export type PositionSnapshot_Filter = { @@ -3988,64 +2773,54 @@ export type PositionSnapshot_Filter = { blockNumber_lte?: InputMaybe; blockNumber_not?: InputMaybe; blockNumber_not_in?: InputMaybe>; - cumulativeDepositTokenAmounts?: InputMaybe>; - cumulativeDepositTokenAmounts_contains?: InputMaybe>; - cumulativeDepositTokenAmounts_contains_nocase?: InputMaybe>; - cumulativeDepositTokenAmounts_not?: InputMaybe>; - cumulativeDepositTokenAmounts_not_contains?: InputMaybe>; - cumulativeDepositTokenAmounts_not_contains_nocase?: InputMaybe>; - cumulativeDepositUSD?: InputMaybe; - cumulativeDepositUSD_gt?: InputMaybe; - cumulativeDepositUSD_gte?: InputMaybe; - cumulativeDepositUSD_in?: InputMaybe>; - cumulativeDepositUSD_lt?: InputMaybe; - cumulativeDepositUSD_lte?: InputMaybe; - cumulativeDepositUSD_not?: InputMaybe; - cumulativeDepositUSD_not_in?: InputMaybe>; - cumulativeRewardTokenAmounts?: InputMaybe>; - cumulativeRewardTokenAmounts_contains?: InputMaybe>; - cumulativeRewardTokenAmounts_contains_nocase?: InputMaybe>; - cumulativeRewardTokenAmounts_not?: InputMaybe>; - cumulativeRewardTokenAmounts_not_contains?: InputMaybe>; - cumulativeRewardTokenAmounts_not_contains_nocase?: InputMaybe>; - cumulativeRewardUSD?: InputMaybe>; - cumulativeRewardUSD_contains?: InputMaybe>; - cumulativeRewardUSD_contains_nocase?: InputMaybe>; - cumulativeRewardUSD_not?: InputMaybe>; - cumulativeRewardUSD_not_contains?: InputMaybe>; - cumulativeRewardUSD_not_contains_nocase?: InputMaybe>; - cumulativeWithdrawTokenAmounts?: InputMaybe>; - cumulativeWithdrawTokenAmounts_contains?: InputMaybe>; - cumulativeWithdrawTokenAmounts_contains_nocase?: InputMaybe>; - cumulativeWithdrawTokenAmounts_not?: InputMaybe>; - cumulativeWithdrawTokenAmounts_not_contains?: InputMaybe>; - cumulativeWithdrawTokenAmounts_not_contains_nocase?: InputMaybe>; - cumulativeWithdrawUSD?: InputMaybe; - cumulativeWithdrawUSD_gt?: InputMaybe; - cumulativeWithdrawUSD_gte?: InputMaybe; - cumulativeWithdrawUSD_in?: InputMaybe>; - cumulativeWithdrawUSD_lt?: InputMaybe; - cumulativeWithdrawUSD_lte?: InputMaybe; - cumulativeWithdrawUSD_not?: InputMaybe; - cumulativeWithdrawUSD_not_in?: InputMaybe>; - depositCount?: InputMaybe; - depositCount_gt?: InputMaybe; - depositCount_gte?: InputMaybe; - depositCount_in?: InputMaybe>; - depositCount_lt?: InputMaybe; - depositCount_lte?: InputMaybe; - depositCount_not?: InputMaybe; - depositCount_not_in?: InputMaybe>; - hash?: InputMaybe; - hash_contains?: InputMaybe; - hash_gt?: InputMaybe; - hash_gte?: InputMaybe; - hash_in?: InputMaybe>; - hash_lt?: InputMaybe; - hash_lte?: InputMaybe; - hash_not?: InputMaybe; - hash_not_contains?: InputMaybe; - hash_not_in?: InputMaybe>; + collectedFeesToken0?: InputMaybe; + collectedFeesToken0_gt?: InputMaybe; + collectedFeesToken0_gte?: InputMaybe; + collectedFeesToken0_in?: InputMaybe>; + collectedFeesToken0_lt?: InputMaybe; + collectedFeesToken0_lte?: InputMaybe; + collectedFeesToken0_not?: InputMaybe; + collectedFeesToken0_not_in?: InputMaybe>; + collectedFeesToken1?: InputMaybe; + collectedFeesToken1_gt?: InputMaybe; + collectedFeesToken1_gte?: InputMaybe; + collectedFeesToken1_in?: InputMaybe>; + collectedFeesToken1_lt?: InputMaybe; + collectedFeesToken1_lte?: InputMaybe; + collectedFeesToken1_not?: InputMaybe; + collectedFeesToken1_not_in?: InputMaybe>; + depositedToken0?: InputMaybe; + depositedToken0_gt?: InputMaybe; + depositedToken0_gte?: InputMaybe; + depositedToken0_in?: InputMaybe>; + depositedToken0_lt?: InputMaybe; + depositedToken0_lte?: InputMaybe; + depositedToken0_not?: InputMaybe; + depositedToken0_not_in?: InputMaybe>; + depositedToken1?: InputMaybe; + depositedToken1_gt?: InputMaybe; + depositedToken1_gte?: InputMaybe; + depositedToken1_in?: InputMaybe>; + depositedToken1_lt?: InputMaybe; + depositedToken1_lte?: InputMaybe; + depositedToken1_not?: InputMaybe; + depositedToken1_not_in?: InputMaybe>; + feeGrowthInside0LastX128?: InputMaybe; + feeGrowthInside0LastX128_gt?: InputMaybe; + feeGrowthInside0LastX128_gte?: InputMaybe; + feeGrowthInside0LastX128_in?: InputMaybe>; + feeGrowthInside0LastX128_lt?: InputMaybe; + feeGrowthInside0LastX128_lte?: InputMaybe; + feeGrowthInside0LastX128_not?: InputMaybe; + feeGrowthInside0LastX128_not_in?: InputMaybe>; + feeGrowthInside1LastX128?: InputMaybe; + feeGrowthInside1LastX128_gt?: InputMaybe; + feeGrowthInside1LastX128_gte?: InputMaybe; + feeGrowthInside1LastX128_in?: InputMaybe>; + feeGrowthInside1LastX128_lt?: InputMaybe; + feeGrowthInside1LastX128_lte?: InputMaybe; + feeGrowthInside1LastX128_not?: InputMaybe; + feeGrowthInside1LastX128_not_in?: InputMaybe>; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -4055,18 +2830,6 @@ export type PositionSnapshot_Filter = { id_not?: InputMaybe; id_not_in?: InputMaybe>; liquidity?: InputMaybe; - liquidityTokenType?: InputMaybe; - liquidityTokenType_in?: InputMaybe>; - liquidityTokenType_not?: InputMaybe; - liquidityTokenType_not_in?: InputMaybe>; - liquidityUSD?: InputMaybe; - liquidityUSD_gt?: InputMaybe; - liquidityUSD_gte?: InputMaybe; - liquidityUSD_in?: InputMaybe>; - liquidityUSD_lt?: InputMaybe; - liquidityUSD_lte?: InputMaybe; - liquidityUSD_not?: InputMaybe; - liquidityUSD_not_in?: InputMaybe>; liquidity_gt?: InputMaybe; liquidity_gte?: InputMaybe; liquidity_in?: InputMaybe>; @@ -4074,23 +2837,49 @@ export type PositionSnapshot_Filter = { liquidity_lte?: InputMaybe; liquidity_not?: InputMaybe; liquidity_not_in?: InputMaybe>; - logIndex?: InputMaybe; - logIndex_gt?: InputMaybe; - logIndex_gte?: InputMaybe; - logIndex_in?: InputMaybe>; - logIndex_lt?: InputMaybe; - logIndex_lte?: InputMaybe; - logIndex_not?: InputMaybe; - logIndex_not_in?: InputMaybe>; - nonce?: InputMaybe; - nonce_gt?: InputMaybe; - nonce_gte?: InputMaybe; - nonce_in?: InputMaybe>; - nonce_lt?: InputMaybe; - nonce_lte?: InputMaybe; - nonce_not?: InputMaybe; - nonce_not_in?: InputMaybe>; or?: InputMaybe>>; + owner?: InputMaybe; + owner_?: InputMaybe; + owner_contains?: InputMaybe; + owner_contains_nocase?: InputMaybe; + owner_ends_with?: InputMaybe; + owner_ends_with_nocase?: InputMaybe; + owner_gt?: InputMaybe; + owner_gte?: InputMaybe; + owner_in?: InputMaybe>; + owner_lt?: InputMaybe; + owner_lte?: InputMaybe; + owner_not?: InputMaybe; + owner_not_contains?: InputMaybe; + owner_not_contains_nocase?: InputMaybe; + owner_not_ends_with?: InputMaybe; + owner_not_ends_with_nocase?: InputMaybe; + owner_not_in?: InputMaybe>; + owner_not_starts_with?: InputMaybe; + owner_not_starts_with_nocase?: InputMaybe; + owner_starts_with?: InputMaybe; + owner_starts_with_nocase?: 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; position?: InputMaybe; position_?: InputMaybe; position_contains?: InputMaybe; @@ -4120,139 +2909,192 @@ export type PositionSnapshot_Filter = { timestamp_lte?: InputMaybe; timestamp_not?: InputMaybe; timestamp_not_in?: InputMaybe>; - withdrawCount?: InputMaybe; - withdrawCount_gt?: InputMaybe; - withdrawCount_gte?: InputMaybe; - withdrawCount_in?: InputMaybe>; - withdrawCount_lt?: InputMaybe; - withdrawCount_lte?: InputMaybe; - withdrawCount_not?: InputMaybe; - withdrawCount_not_in?: InputMaybe>; + totalToken0Value?: InputMaybe; + totalToken0Value_gt?: InputMaybe; + totalToken0Value_gte?: InputMaybe; + totalToken0Value_in?: InputMaybe>; + totalToken0Value_lt?: InputMaybe; + totalToken0Value_lte?: InputMaybe; + totalToken0Value_not?: InputMaybe; + totalToken0Value_not_in?: InputMaybe>; + totalToken1Value?: InputMaybe; + totalToken1Value_gt?: InputMaybe; + totalToken1Value_gte?: InputMaybe; + totalToken1Value_in?: InputMaybe>; + totalToken1Value_lt?: InputMaybe; + totalToken1Value_lte?: InputMaybe; + totalToken1Value_not?: InputMaybe; + totalToken1Value_not_in?: InputMaybe>; + transaction?: InputMaybe; + transaction_?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_contains_nocase?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_ends_with_nocase?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_contains_nocase?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_ends_with_nocase?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_not_starts_with_nocase?: InputMaybe; + transaction_starts_with?: InputMaybe; + transaction_starts_with_nocase?: InputMaybe; + withdrawnToken0?: InputMaybe; + withdrawnToken0_gt?: InputMaybe; + withdrawnToken0_gte?: InputMaybe; + withdrawnToken0_in?: InputMaybe>; + withdrawnToken0_lt?: InputMaybe; + withdrawnToken0_lte?: InputMaybe; + withdrawnToken0_not?: InputMaybe; + withdrawnToken0_not_in?: InputMaybe>; + withdrawnToken1?: InputMaybe; + withdrawnToken1_gt?: InputMaybe; + withdrawnToken1_gte?: InputMaybe; + withdrawnToken1_in?: InputMaybe>; + withdrawnToken1_lt?: InputMaybe; + withdrawnToken1_lte?: InputMaybe; + withdrawnToken1_not?: InputMaybe; + withdrawnToken1_not_in?: InputMaybe>; }; export enum PositionSnapshot_OrderBy { BlockNumber = 'blockNumber', - CumulativeDepositTokenAmounts = 'cumulativeDepositTokenAmounts', - CumulativeDepositUsd = 'cumulativeDepositUSD', - CumulativeRewardTokenAmounts = 'cumulativeRewardTokenAmounts', - CumulativeRewardUsd = 'cumulativeRewardUSD', - CumulativeWithdrawTokenAmounts = 'cumulativeWithdrawTokenAmounts', - CumulativeWithdrawUsd = 'cumulativeWithdrawUSD', - DepositCount = 'depositCount', - Hash = 'hash', + CollectedFeesToken0 = 'collectedFeesToken0', + CollectedFeesToken1 = 'collectedFeesToken1', + DepositedToken0 = 'depositedToken0', + DepositedToken1 = 'depositedToken1', + FeeGrowthInside0LastX128 = 'feeGrowthInside0LastX128', + FeeGrowthInside1LastX128 = 'feeGrowthInside1LastX128', Id = 'id', Liquidity = 'liquidity', - LiquidityTokenType = 'liquidityTokenType', - LiquidityUsd = 'liquidityUSD', - LogIndex = 'logIndex', - Nonce = 'nonce', + Owner = 'owner', + OwnerId = 'owner__id', + Pool = 'pool', + PoolBalanceOfBlock = 'pool__balanceOfBlock', + PoolClosedPositionCount = 'pool__closedPositionCount', + PoolCollectedFeesToken0 = 'pool__collectedFeesToken0', + PoolCollectedFeesToken1 = 'pool__collectedFeesToken1', + PoolCollectedFeesUsd = 'pool__collectedFeesUSD', + PoolCollectedVaultWethFees = 'pool__collectedVaultWETHFees', + PoolCreatedAtBlockNumber = 'pool__createdAtBlockNumber', + PoolCreatedAtTimestamp = 'pool__createdAtTimestamp', + PoolFeeGrowthGlobal0X128 = 'pool__feeGrowthGlobal0X128', + PoolFeeGrowthGlobal1X128 = 'pool__feeGrowthGlobal1X128', + PoolFeeTier = 'pool__feeTier', + PoolFeesUsd = 'pool__feesUSD', + PoolId = 'pool__id', + PoolLiquidity = 'pool__liquidity', + PoolLiquidityProviderCount = 'pool__liquidityProviderCount', + PoolName = 'pool__name', + PoolObservationIndex = 'pool__observationIndex', + PoolOpenPositionCount = 'pool__openPositionCount', + PoolSqrtPrice = 'pool__sqrtPrice', + PoolSymbol = 'pool__symbol', + PoolTick = 'pool__tick', + PoolToken0Price = 'pool__token0Price', + PoolToken1Price = 'pool__token1Price', + PoolTotalLiquidity = 'pool__totalLiquidity', + PoolTotalValueLockedEth = 'pool__totalValueLockedETH', + PoolTotalValueLockedToken0 = 'pool__totalValueLockedToken0', + PoolTotalValueLockedToken1 = 'pool__totalValueLockedToken1', + PoolTotalValueLockedUsd = 'pool__totalValueLockedUSD', + PoolTotalValueLockedUsdUntracked = 'pool__totalValueLockedUSDUntracked', + PoolTxCount = 'pool__txCount', + PoolUntrackedVolumeUsd = 'pool__untrackedVolumeUSD', + PoolVolumeToken0 = 'pool__volumeToken0', + PoolVolumeToken1 = 'pool__volumeToken1', + PoolVolumeUsd = 'pool__volumeUSD', Position = 'position', - PositionBlockNumberClosed = 'position__blockNumberClosed', - PositionBlockNumberOpened = 'position__blockNumberOpened', - PositionCumulativeDepositUsd = 'position__cumulativeDepositUSD', - PositionCumulativeWithdrawUsd = 'position__cumulativeWithdrawUSD', - PositionDepositCount = 'position__depositCount', + PositionCollectedFeesToken0 = 'position__collectedFeesToken0', + PositionCollectedFeesToken1 = 'position__collectedFeesToken1', + PositionDepositedToken0 = 'position__depositedToken0', + PositionDepositedToken1 = 'position__depositedToken1', + PositionFeeGrowthInside0LastX128 = 'position__feeGrowthInside0LastX128', + PositionFeeGrowthInside1LastX128 = 'position__feeGrowthInside1LastX128', PositionHashClosed = 'position__hashClosed', - PositionHashOpened = 'position__hashOpened', PositionId = 'position__id', PositionLiquidity = 'position__liquidity', - PositionLiquidityEth = 'position__liquidityETH', - PositionLiquidityTokenType = 'position__liquidityTokenType', - PositionLiquidityUsd = 'position__liquidityUSD', PositionLockedUntil = 'position__lockedUntil', PositionNfpmAddress = 'position__nfpmAddress', - PositionTimestampClosed = 'position__timestampClosed', - PositionTimestampOpened = 'position__timestampOpened', + PositionTickLower = 'position__tickLower', + PositionTickUpper = 'position__tickUpper', PositionTokenId = 'position__tokenId', - PositionWithdrawCount = 'position__withdrawCount', + PositionTotalToken0Value = 'position__totalToken0Value', + PositionTotalToken1Value = 'position__totalToken1Value', + PositionWithdrawnToken0 = 'position__withdrawnToken0', + PositionWithdrawnToken1 = 'position__withdrawnToken1', Timestamp = 'timestamp', - WithdrawCount = 'withdrawCount' + TotalToken0Value = 'totalToken0Value', + TotalToken1Value = 'totalToken1Value', + Transaction = 'transaction', + TransactionBlockNumber = 'transaction__blockNumber', + TransactionGasPrice = 'transaction__gasPrice', + TransactionGasUsed = 'transaction__gasUsed', + TransactionId = 'transaction__id', + TransactionTimestamp = 'transaction__timestamp', + WithdrawnToken0 = 'withdrawnToken0', + WithdrawnToken1 = 'withdrawnToken1' } export type Position_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - account?: InputMaybe; - account_?: InputMaybe; - account_contains?: InputMaybe; - account_contains_nocase?: InputMaybe; - account_ends_with?: InputMaybe; - account_ends_with_nocase?: InputMaybe; - account_gt?: InputMaybe; - account_gte?: InputMaybe; - account_in?: InputMaybe>; - account_lt?: InputMaybe; - account_lte?: InputMaybe; - account_not?: InputMaybe; - account_not_contains?: InputMaybe; - account_not_contains_nocase?: InputMaybe; - account_not_ends_with?: InputMaybe; - account_not_ends_with_nocase?: InputMaybe; - account_not_in?: InputMaybe>; - account_not_starts_with?: InputMaybe; - account_not_starts_with_nocase?: InputMaybe; - account_starts_with?: InputMaybe; - account_starts_with_nocase?: InputMaybe; and?: InputMaybe>>; - blockNumberClosed?: InputMaybe; - blockNumberClosed_gt?: InputMaybe; - blockNumberClosed_gte?: InputMaybe; - blockNumberClosed_in?: InputMaybe>; - blockNumberClosed_lt?: InputMaybe; - blockNumberClosed_lte?: InputMaybe; - blockNumberClosed_not?: InputMaybe; - blockNumberClosed_not_in?: InputMaybe>; - blockNumberOpened?: InputMaybe; - blockNumberOpened_gt?: InputMaybe; - blockNumberOpened_gte?: InputMaybe; - blockNumberOpened_in?: InputMaybe>; - blockNumberOpened_lt?: InputMaybe; - blockNumberOpened_lte?: InputMaybe; - blockNumberOpened_not?: InputMaybe; - blockNumberOpened_not_in?: InputMaybe>; - cumulativeDepositTokenAmounts?: InputMaybe>; - cumulativeDepositTokenAmounts_contains?: InputMaybe>; - cumulativeDepositTokenAmounts_contains_nocase?: InputMaybe>; - cumulativeDepositTokenAmounts_not?: InputMaybe>; - cumulativeDepositTokenAmounts_not_contains?: InputMaybe>; - cumulativeDepositTokenAmounts_not_contains_nocase?: InputMaybe>; - cumulativeDepositUSD?: InputMaybe; - cumulativeDepositUSD_gt?: InputMaybe; - cumulativeDepositUSD_gte?: InputMaybe; - cumulativeDepositUSD_in?: InputMaybe>; - cumulativeDepositUSD_lt?: InputMaybe; - cumulativeDepositUSD_lte?: InputMaybe; - cumulativeDepositUSD_not?: InputMaybe; - cumulativeDepositUSD_not_in?: InputMaybe>; - cumulativeRewardUSD?: InputMaybe>; - cumulativeRewardUSD_contains?: InputMaybe>; - cumulativeRewardUSD_contains_nocase?: InputMaybe>; - cumulativeRewardUSD_not?: InputMaybe>; - cumulativeRewardUSD_not_contains?: InputMaybe>; - cumulativeRewardUSD_not_contains_nocase?: InputMaybe>; - cumulativeWithdrawTokenAmounts?: InputMaybe>; - cumulativeWithdrawTokenAmounts_contains?: InputMaybe>; - cumulativeWithdrawTokenAmounts_contains_nocase?: InputMaybe>; - cumulativeWithdrawTokenAmounts_not?: InputMaybe>; - cumulativeWithdrawTokenAmounts_not_contains?: InputMaybe>; - cumulativeWithdrawTokenAmounts_not_contains_nocase?: InputMaybe>; - cumulativeWithdrawUSD?: InputMaybe; - cumulativeWithdrawUSD_gt?: InputMaybe; - cumulativeWithdrawUSD_gte?: InputMaybe; - cumulativeWithdrawUSD_in?: InputMaybe>; - cumulativeWithdrawUSD_lt?: InputMaybe; - cumulativeWithdrawUSD_lte?: InputMaybe; - cumulativeWithdrawUSD_not?: InputMaybe; - cumulativeWithdrawUSD_not_in?: InputMaybe>; - depositCount?: InputMaybe; - depositCount_gt?: InputMaybe; - depositCount_gte?: InputMaybe; - depositCount_in?: InputMaybe>; - depositCount_lt?: InputMaybe; - depositCount_lte?: InputMaybe; - depositCount_not?: InputMaybe; - depositCount_not_in?: InputMaybe>; - deposits_?: InputMaybe; + collectedFeesToken0?: InputMaybe; + collectedFeesToken0_gt?: InputMaybe; + collectedFeesToken0_gte?: InputMaybe; + collectedFeesToken0_in?: InputMaybe>; + collectedFeesToken0_lt?: InputMaybe; + collectedFeesToken0_lte?: InputMaybe; + collectedFeesToken0_not?: InputMaybe; + collectedFeesToken0_not_in?: InputMaybe>; + collectedFeesToken1?: InputMaybe; + collectedFeesToken1_gt?: InputMaybe; + collectedFeesToken1_gte?: InputMaybe; + collectedFeesToken1_in?: InputMaybe>; + collectedFeesToken1_lt?: InputMaybe; + collectedFeesToken1_lte?: InputMaybe; + collectedFeesToken1_not?: InputMaybe; + collectedFeesToken1_not_in?: InputMaybe>; + depositedToken0?: InputMaybe; + depositedToken0_gt?: InputMaybe; + depositedToken0_gte?: InputMaybe; + depositedToken0_in?: InputMaybe>; + depositedToken0_lt?: InputMaybe; + depositedToken0_lte?: InputMaybe; + depositedToken0_not?: InputMaybe; + depositedToken0_not_in?: InputMaybe>; + depositedToken1?: InputMaybe; + depositedToken1_gt?: InputMaybe; + depositedToken1_gte?: InputMaybe; + depositedToken1_in?: InputMaybe>; + depositedToken1_lt?: InputMaybe; + depositedToken1_lte?: InputMaybe; + depositedToken1_not?: InputMaybe; + depositedToken1_not_in?: InputMaybe>; + feeGrowthInside0LastX128?: InputMaybe; + feeGrowthInside0LastX128_gt?: InputMaybe; + feeGrowthInside0LastX128_gte?: InputMaybe; + feeGrowthInside0LastX128_in?: InputMaybe>; + feeGrowthInside0LastX128_lt?: InputMaybe; + feeGrowthInside0LastX128_lte?: InputMaybe; + feeGrowthInside0LastX128_not?: InputMaybe; + feeGrowthInside0LastX128_not_in?: InputMaybe>; + feeGrowthInside1LastX128?: InputMaybe; + feeGrowthInside1LastX128_gt?: InputMaybe; + feeGrowthInside1LastX128_gte?: InputMaybe; + feeGrowthInside1LastX128_in?: InputMaybe>; + feeGrowthInside1LastX128_lt?: InputMaybe; + feeGrowthInside1LastX128_lte?: InputMaybe; + feeGrowthInside1LastX128_not?: InputMaybe; + feeGrowthInside1LastX128_not_in?: InputMaybe>; hashClosed?: InputMaybe; hashClosed_contains?: InputMaybe; hashClosed_gt?: InputMaybe; @@ -4263,68 +3105,15 @@ export type Position_Filter = { hashClosed_not?: InputMaybe; hashClosed_not_contains?: InputMaybe; hashClosed_not_in?: InputMaybe>; - hashOpened?: InputMaybe; - hashOpened_contains?: InputMaybe; - hashOpened_gt?: InputMaybe; - hashOpened_gte?: InputMaybe; - hashOpened_in?: InputMaybe>; - hashOpened_lt?: InputMaybe; - hashOpened_lte?: InputMaybe; - hashOpened_not?: InputMaybe; - hashOpened_not_contains?: InputMaybe; - hashOpened_not_in?: InputMaybe>; - id?: InputMaybe; - id_contains?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_contains?: InputMaybe; - id_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; - liquidityETH?: InputMaybe; - liquidityETH_gt?: InputMaybe; - liquidityETH_gte?: InputMaybe; - liquidityETH_in?: InputMaybe>; - liquidityETH_lt?: InputMaybe; - liquidityETH_lte?: InputMaybe; - liquidityETH_not?: InputMaybe; - liquidityETH_not_in?: InputMaybe>; - liquidityToken?: InputMaybe; - liquidityTokenType?: InputMaybe; - liquidityTokenType_in?: InputMaybe>; - liquidityTokenType_not?: InputMaybe; - liquidityTokenType_not_in?: InputMaybe>; - liquidityToken_?: InputMaybe; - liquidityToken_contains?: InputMaybe; - liquidityToken_contains_nocase?: InputMaybe; - liquidityToken_ends_with?: InputMaybe; - liquidityToken_ends_with_nocase?: InputMaybe; - liquidityToken_gt?: InputMaybe; - liquidityToken_gte?: InputMaybe; - liquidityToken_in?: InputMaybe>; - liquidityToken_lt?: InputMaybe; - liquidityToken_lte?: InputMaybe; - liquidityToken_not?: InputMaybe; - liquidityToken_not_contains?: InputMaybe; - liquidityToken_not_contains_nocase?: InputMaybe; - liquidityToken_not_ends_with?: InputMaybe; - liquidityToken_not_ends_with_nocase?: InputMaybe; - liquidityToken_not_in?: InputMaybe>; - liquidityToken_not_starts_with?: InputMaybe; - liquidityToken_not_starts_with_nocase?: InputMaybe; - liquidityToken_starts_with?: InputMaybe; - liquidityToken_starts_with_nocase?: InputMaybe; - liquidityUSD?: InputMaybe; - liquidityUSD_gt?: InputMaybe; - liquidityUSD_gte?: InputMaybe; - liquidityUSD_in?: InputMaybe>; - liquidityUSD_lt?: InputMaybe; - liquidityUSD_lte?: InputMaybe; - liquidityUSD_not?: InputMaybe; - liquidityUSD_not_in?: InputMaybe>; liquidity_gt?: InputMaybe; liquidity_gte?: InputMaybe; liquidity_in?: InputMaybe>; @@ -4351,8 +3140,29 @@ export type Position_Filter = { nfpmAddress_not_contains?: InputMaybe; nfpmAddress_not_in?: InputMaybe>; or?: InputMaybe>>; + owner?: InputMaybe; + owner_?: InputMaybe; + owner_contains?: InputMaybe; + owner_contains_nocase?: InputMaybe; + owner_ends_with?: InputMaybe; + owner_ends_with_nocase?: InputMaybe; + owner_gt?: InputMaybe; + owner_gte?: InputMaybe; + owner_in?: InputMaybe>; + owner_lt?: InputMaybe; + owner_lte?: InputMaybe; + owner_not?: InputMaybe; + owner_not_contains?: InputMaybe; + owner_not_contains_nocase?: InputMaybe; + owner_not_ends_with?: InputMaybe; + owner_not_ends_with_nocase?: InputMaybe; + owner_not_in?: InputMaybe>; + owner_not_starts_with?: InputMaybe; + owner_not_starts_with_nocase?: InputMaybe; + owner_starts_with?: InputMaybe; + owner_starts_with_nocase?: InputMaybe; pool?: InputMaybe; - pool_?: InputMaybe; + pool_?: InputMaybe; pool_contains?: InputMaybe; pool_contains_nocase?: InputMaybe; pool_ends_with?: InputMaybe; @@ -4372,65 +3182,64 @@ export type Position_Filter = { pool_not_starts_with_nocase?: InputMaybe; pool_starts_with?: InputMaybe; pool_starts_with_nocase?: InputMaybe; - snapshots_?: InputMaybe; - tickLower?: InputMaybe; - tickLower_?: InputMaybe; - tickLower_contains?: InputMaybe; - tickLower_contains_nocase?: InputMaybe; - tickLower_ends_with?: InputMaybe; - tickLower_ends_with_nocase?: InputMaybe; - tickLower_gt?: InputMaybe; - tickLower_gte?: InputMaybe; - tickLower_in?: InputMaybe>; - tickLower_lt?: InputMaybe; - tickLower_lte?: InputMaybe; - tickLower_not?: InputMaybe; - tickLower_not_contains?: InputMaybe; - tickLower_not_contains_nocase?: InputMaybe; - tickLower_not_ends_with?: InputMaybe; - tickLower_not_ends_with_nocase?: InputMaybe; - tickLower_not_in?: InputMaybe>; - tickLower_not_starts_with?: InputMaybe; - tickLower_not_starts_with_nocase?: InputMaybe; - tickLower_starts_with?: InputMaybe; - tickLower_starts_with_nocase?: InputMaybe; - tickUpper?: InputMaybe; - tickUpper_?: InputMaybe; - tickUpper_contains?: InputMaybe; - tickUpper_contains_nocase?: InputMaybe; - tickUpper_ends_with?: InputMaybe; - tickUpper_ends_with_nocase?: InputMaybe; - tickUpper_gt?: InputMaybe; - tickUpper_gte?: InputMaybe; - tickUpper_in?: InputMaybe>; - tickUpper_lt?: InputMaybe; - tickUpper_lte?: InputMaybe; - tickUpper_not?: InputMaybe; - tickUpper_not_contains?: InputMaybe; - tickUpper_not_contains_nocase?: InputMaybe; - tickUpper_not_ends_with?: InputMaybe; - tickUpper_not_ends_with_nocase?: InputMaybe; - tickUpper_not_in?: InputMaybe>; - tickUpper_not_starts_with?: InputMaybe; - tickUpper_not_starts_with_nocase?: InputMaybe; - tickUpper_starts_with?: InputMaybe; - tickUpper_starts_with_nocase?: InputMaybe; - timestampClosed?: InputMaybe; - timestampClosed_gt?: InputMaybe; - timestampClosed_gte?: InputMaybe; - timestampClosed_in?: InputMaybe>; - timestampClosed_lt?: InputMaybe; - timestampClosed_lte?: InputMaybe; - timestampClosed_not?: InputMaybe; - timestampClosed_not_in?: InputMaybe>; - timestampOpened?: InputMaybe; - timestampOpened_gt?: InputMaybe; - timestampOpened_gte?: InputMaybe; - timestampOpened_in?: InputMaybe>; - timestampOpened_lt?: InputMaybe; - timestampOpened_lte?: InputMaybe; - timestampOpened_not?: InputMaybe; - timestampOpened_not_in?: InputMaybe>; + tickLower?: InputMaybe; + tickLower_gt?: InputMaybe; + tickLower_gte?: InputMaybe; + tickLower_in?: InputMaybe>; + tickLower_lt?: InputMaybe; + tickLower_lte?: InputMaybe; + tickLower_not?: InputMaybe; + tickLower_not_in?: InputMaybe>; + tickUpper?: InputMaybe; + tickUpper_gt?: InputMaybe; + tickUpper_gte?: InputMaybe; + tickUpper_in?: InputMaybe>; + tickUpper_lt?: InputMaybe; + tickUpper_lte?: InputMaybe; + tickUpper_not?: InputMaybe; + tickUpper_not_in?: 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; tokenId?: InputMaybe; tokenId_gt?: InputMaybe; tokenId_gte?: InputMaybe; @@ -4439,504 +3248,222 @@ export type Position_Filter = { tokenId_lte?: InputMaybe; tokenId_not?: InputMaybe; tokenId_not_in?: InputMaybe>; - withdrawCount?: InputMaybe; - withdrawCount_gt?: InputMaybe; - withdrawCount_gte?: InputMaybe; - withdrawCount_in?: InputMaybe>; - withdrawCount_lt?: InputMaybe; - withdrawCount_lte?: InputMaybe; - withdrawCount_not?: InputMaybe; - withdrawCount_not_in?: InputMaybe>; - withdraws_?: InputMaybe; -}; - -export enum Position_OrderBy { - Account = 'account', - AccountClosedPositionCount = 'account__closedPositionCount', - AccountDepositCount = 'account__depositCount', - AccountId = 'account__id', - AccountOpenPositionCount = 'account__openPositionCount', - AccountPositionCount = 'account__positionCount', - AccountSwapCount = 'account__swapCount', - AccountWithdrawCount = 'account__withdrawCount', - BlockNumberClosed = 'blockNumberClosed', - BlockNumberOpened = 'blockNumberOpened', - CumulativeDepositTokenAmounts = 'cumulativeDepositTokenAmounts', - CumulativeDepositUsd = 'cumulativeDepositUSD', - CumulativeRewardUsd = 'cumulativeRewardUSD', - CumulativeWithdrawTokenAmounts = 'cumulativeWithdrawTokenAmounts', - CumulativeWithdrawUsd = 'cumulativeWithdrawUSD', - DepositCount = 'depositCount', - Deposits = 'deposits', - HashClosed = 'hashClosed', - HashOpened = 'hashOpened', - Id = 'id', - Liquidity = 'liquidity', - LiquidityEth = 'liquidityETH', - LiquidityToken = 'liquidityToken', - LiquidityTokenType = 'liquidityTokenType', - LiquidityTokenEthPricePool = 'liquidityToken___ethPricePool', - LiquidityTokenLargePriceChangeBuffer = 'liquidityToken___largePriceChangeBuffer', - LiquidityTokenLargeTvlImpactBuffer = 'liquidityToken___largeTVLImpactBuffer', - LiquidityTokenLastPricePool = 'liquidityToken___lastPricePool', - LiquidityTokenTotalSupply = 'liquidityToken___totalSupply', - LiquidityTokenTotalValueLockedEth = 'liquidityToken___totalValueLockedETH', - LiquidityTokenTotalValueLockedUsd = 'liquidityToken___totalValueLockedUSD', - LiquidityTokenDecimals = 'liquidityToken__decimals', - LiquidityTokenId = 'liquidityToken__id', - LiquidityTokenLastPriceBlockNumber = 'liquidityToken__lastPriceBlockNumber', - LiquidityTokenLastPriceEth = 'liquidityToken__lastPriceETH', - LiquidityTokenLastPriceUsd = 'liquidityToken__lastPriceUSD', - LiquidityTokenName = 'liquidityToken__name', - LiquidityTokenSymbol = 'liquidityToken__symbol', - LiquidityUsd = 'liquidityUSD', - LockedUntil = 'lockedUntil', - NfpmAddress = 'nfpmAddress', - Pool = 'pool', - PoolActiveLiquidity = 'pool__activeLiquidity', - PoolActiveLiquidityEth = 'pool__activeLiquidityETH', - PoolActiveLiquidityUsd = 'pool__activeLiquidityUSD', - PoolClosedPositionCount = 'pool__closedPositionCount', - PoolCreatedBlockNumber = 'pool__createdBlockNumber', - PoolCreatedTimestamp = 'pool__createdTimestamp', - PoolCumulativeDepositCount = 'pool__cumulativeDepositCount', - PoolCumulativeProtocolSideRevenueEth = 'pool__cumulativeProtocolSideRevenueETH', - PoolCumulativeProtocolSideRevenueUsd = 'pool__cumulativeProtocolSideRevenueUSD', - PoolCumulativeSupplySideRevenueEth = 'pool__cumulativeSupplySideRevenueETH', - PoolCumulativeSupplySideRevenueUsd = 'pool__cumulativeSupplySideRevenueUSD', - PoolCumulativeSwapCount = 'pool__cumulativeSwapCount', - PoolCumulativeTotalRevenueEth = 'pool__cumulativeTotalRevenueETH', - PoolCumulativeTotalRevenueUsd = 'pool__cumulativeTotalRevenueUSD', - PoolCumulativeVolumeEth = 'pool__cumulativeVolumeETH', - PoolCumulativeVolumeUsd = 'pool__cumulativeVolumeUSD', - PoolCumulativeWithdrawCount = 'pool__cumulativeWithdrawCount', - PoolId = 'pool__id', - PoolIsSingleSided = 'pool__isSingleSided', - PoolLastSnapshotDayId = 'pool__lastSnapshotDayID', - PoolLastSnapshotHourId = 'pool__lastSnapshotHourID', - PoolLastUpdateBlockNumber = 'pool__lastUpdateBlockNumber', - PoolLastUpdateTimestamp = 'pool__lastUpdateTimestamp', - PoolLiquidityTokenType = 'pool__liquidityTokenType', - PoolName = 'pool__name', - PoolOpenPositionCount = 'pool__openPositionCount', - PoolPositionCount = 'pool__positionCount', - PoolStakedOutputTokenAmount = 'pool__stakedOutputTokenAmount', - PoolSymbol = 'pool__symbol', - PoolTick = 'pool__tick', - PoolTotalLiquidity = 'pool__totalLiquidity', - PoolTotalLiquidityEth = 'pool__totalLiquidityETH', - PoolTotalLiquidityUsd = 'pool__totalLiquidityUSD', - PoolTotalValueLockedEth = 'pool__totalValueLockedETH', - PoolTotalValueLockedUsd = 'pool__totalValueLockedUSD', - Snapshots = 'snapshots', - TickLower = 'tickLower', - TickLowerCreatedBlockNumber = 'tickLower__createdBlockNumber', - TickLowerCreatedTimestamp = 'tickLower__createdTimestamp', - TickLowerId = 'tickLower__id', - TickLowerIndex = 'tickLower__index', - TickLowerLastSnapshotDayId = 'tickLower__lastSnapshotDayID', - TickLowerLastSnapshotHourId = 'tickLower__lastSnapshotHourID', - TickLowerLastUpdateBlockNumber = 'tickLower__lastUpdateBlockNumber', - TickLowerLastUpdateTimestamp = 'tickLower__lastUpdateTimestamp', - TickLowerLiquidityGross = 'tickLower__liquidityGross', - TickLowerLiquidityGrossUsd = 'tickLower__liquidityGrossUSD', - TickLowerLiquidityNet = 'tickLower__liquidityNet', - TickLowerLiquidityNetUsd = 'tickLower__liquidityNetUSD', - TickUpper = 'tickUpper', - TickUpperCreatedBlockNumber = 'tickUpper__createdBlockNumber', - TickUpperCreatedTimestamp = 'tickUpper__createdTimestamp', - TickUpperId = 'tickUpper__id', - TickUpperIndex = 'tickUpper__index', - TickUpperLastSnapshotDayId = 'tickUpper__lastSnapshotDayID', - TickUpperLastSnapshotHourId = 'tickUpper__lastSnapshotHourID', - TickUpperLastUpdateBlockNumber = 'tickUpper__lastUpdateBlockNumber', - TickUpperLastUpdateTimestamp = 'tickUpper__lastUpdateTimestamp', - TickUpperLiquidityGross = 'tickUpper__liquidityGross', - TickUpperLiquidityGrossUsd = 'tickUpper__liquidityGrossUSD', - TickUpperLiquidityNet = 'tickUpper__liquidityNet', - TickUpperLiquidityNetUsd = 'tickUpper__liquidityNetUSD', - TimestampClosed = 'timestampClosed', - TimestampOpened = 'timestampOpened', - TokenId = 'tokenId', - WithdrawCount = 'withdrawCount', - Withdraws = 'withdraws' -} - -export type Protocol = { - /** Gross revenue for the protocol (revenue claimed by protocol). Examples: AMM protocol fee (Sushi’s 0.05%). OpenSea 10% sell fee. */ - cumulativeProtocolSideRevenueETH: Scalars['BigDecimal']['output']; - /** Gross revenue for the protocol (revenue claimed by protocol). Examples: AMM protocol fee (Sushi’s 0.05%). OpenSea 10% sell fee. */ - cumulativeProtocolSideRevenueUSD: Scalars['BigDecimal']['output']; - /** Revenue claimed by suppliers to the protocol. LPs on DEXs (e.g. 0.25% of the swap fee in Sushiswap). Depositors on Lending Protocols. NFT sellers on OpenSea. */ - cumulativeSupplySideRevenueETH: Scalars['BigDecimal']['output']; - /** Revenue claimed by suppliers to the protocol. LPs on DEXs (e.g. 0.25% of the swap fee in Sushiswap). Depositors on Lending Protocols. NFT sellers on OpenSea. */ - cumulativeSupplySideRevenueUSD: Scalars['BigDecimal']['output']; - /** All revenue generated by the protocol. e.g. 0.30% of swap fee in Sushiswap, all yield generated by Yearn. */ - cumulativeTotalRevenueETH: Scalars['BigDecimal']['output']; - /** All revenue generated by the protocol. e.g. 0.30% of swap fee in Sushiswap, all yield generated by Yearn. */ - cumulativeTotalRevenueUSD: Scalars['BigDecimal']['output']; - /** Number of cumulative unique users */ - cumulativeUniqueUsers: Scalars['Int']['output']; - /** Daily usage metrics for this protocol */ - dailyUsageMetrics: Array; - /** Daily financial metrics for this protocol */ - financialMetrics: Array; - /** Hourly usage metrics for this protocol */ - hourlyUsageMetrics: Array; - /** Smart contract address of the protocol's main contract (Factory, Registry, etc) */ - id: Scalars['ID']['output']; - /** Version of the methodology used to compute metrics, loosely based on SemVer format (e.g. 1.0.0) */ - methodologyVersion: Scalars['String']['output']; - /** Name of the protocol, including version. e.g. Uniswap v3 */ - name: Scalars['String']['output']; - /** The blockchain network this subgraph is indexing on */ - network: Network; - /** Current PCV (Protocol Controlled Value). Only relevant for protocols with PCV. */ - protocolControlledValueUSD?: Maybe; - /** Version of the subgraph schema, in SemVer format (e.g. 1.0.0) */ - schemaVersion: Scalars['String']['output']; - /** Slug of protocol, including version. e.g. uniswap-v3 */ - slug: Scalars['String']['output']; - /** Version of the subgraph implementation, in SemVer format (e.g. 1.0.0) */ - subgraphVersion: Scalars['String']['output']; - /** Total number of pools */ - totalPoolCount: Scalars['Int']['output']; - /** Current TVL (Total Value Locked) of the entire protocol in ETH */ - totalValueLockedETH: Scalars['BigDecimal']['output']; - /** Current TVL (Total Value Locked) of the entire protocol */ - totalValueLockedUSD: Scalars['BigDecimal']['output']; - /** The type of protocol (e.g. DEX, Lending, Yield, etc) */ - type: ProtocolType; -}; - - -export type ProtocolDailyUsageMetricsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type ProtocolFinancialMetricsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - - -export type ProtocolHourlyUsageMetricsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; + totalToken0Value?: InputMaybe; + totalToken0Value_gt?: InputMaybe; + totalToken0Value_gte?: InputMaybe; + totalToken0Value_in?: InputMaybe>; + totalToken0Value_lt?: InputMaybe; + totalToken0Value_lte?: InputMaybe; + totalToken0Value_not?: InputMaybe; + totalToken0Value_not_in?: InputMaybe>; + totalToken1Value?: InputMaybe; + totalToken1Value_gt?: InputMaybe; + totalToken1Value_gte?: InputMaybe; + totalToken1Value_in?: InputMaybe>; + totalToken1Value_lt?: InputMaybe; + totalToken1Value_lte?: InputMaybe; + totalToken1Value_not?: InputMaybe; + totalToken1Value_not_in?: InputMaybe>; + transaction?: InputMaybe; + transaction_?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_contains_nocase?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_ends_with_nocase?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_contains_nocase?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_ends_with_nocase?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_not_starts_with_nocase?: InputMaybe; + transaction_starts_with?: InputMaybe; + transaction_starts_with_nocase?: InputMaybe; + withdrawnToken0?: InputMaybe; + withdrawnToken0_gt?: InputMaybe; + withdrawnToken0_gte?: InputMaybe; + withdrawnToken0_in?: InputMaybe>; + withdrawnToken0_lt?: InputMaybe; + withdrawnToken0_lte?: InputMaybe; + withdrawnToken0_not?: InputMaybe; + withdrawnToken0_not_in?: InputMaybe>; + withdrawnToken1?: InputMaybe; + withdrawnToken1_gt?: InputMaybe; + withdrawnToken1_gte?: InputMaybe; + withdrawnToken1_in?: InputMaybe>; + withdrawnToken1_lt?: InputMaybe; + withdrawnToken1_lte?: InputMaybe; + withdrawnToken1_not?: InputMaybe; + withdrawnToken1_not_in?: InputMaybe>; }; - -export enum ProtocolType { - Bridge = 'BRIDGE', - Exchange = 'EXCHANGE', - Generic = 'GENERIC', - Lending = 'LENDING', - Yield = 'YIELD' -} - -export type Protocol_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - cumulativeProtocolSideRevenueETH?: InputMaybe; - cumulativeProtocolSideRevenueETH_gt?: InputMaybe; - cumulativeProtocolSideRevenueETH_gte?: InputMaybe; - cumulativeProtocolSideRevenueETH_in?: InputMaybe>; - cumulativeProtocolSideRevenueETH_lt?: InputMaybe; - cumulativeProtocolSideRevenueETH_lte?: InputMaybe; - cumulativeProtocolSideRevenueETH_not?: InputMaybe; - cumulativeProtocolSideRevenueETH_not_in?: InputMaybe>; - cumulativeProtocolSideRevenueUSD?: InputMaybe; - cumulativeProtocolSideRevenueUSD_gt?: InputMaybe; - cumulativeProtocolSideRevenueUSD_gte?: InputMaybe; - cumulativeProtocolSideRevenueUSD_in?: InputMaybe>; - cumulativeProtocolSideRevenueUSD_lt?: InputMaybe; - cumulativeProtocolSideRevenueUSD_lte?: InputMaybe; - cumulativeProtocolSideRevenueUSD_not?: InputMaybe; - cumulativeProtocolSideRevenueUSD_not_in?: InputMaybe>; - cumulativeSupplySideRevenueETH?: InputMaybe; - cumulativeSupplySideRevenueETH_gt?: InputMaybe; - cumulativeSupplySideRevenueETH_gte?: InputMaybe; - cumulativeSupplySideRevenueETH_in?: InputMaybe>; - cumulativeSupplySideRevenueETH_lt?: InputMaybe; - cumulativeSupplySideRevenueETH_lte?: InputMaybe; - cumulativeSupplySideRevenueETH_not?: InputMaybe; - cumulativeSupplySideRevenueETH_not_in?: InputMaybe>; - cumulativeSupplySideRevenueUSD?: InputMaybe; - cumulativeSupplySideRevenueUSD_gt?: InputMaybe; - cumulativeSupplySideRevenueUSD_gte?: InputMaybe; - cumulativeSupplySideRevenueUSD_in?: InputMaybe>; - cumulativeSupplySideRevenueUSD_lt?: InputMaybe; - cumulativeSupplySideRevenueUSD_lte?: InputMaybe; - cumulativeSupplySideRevenueUSD_not?: InputMaybe; - cumulativeSupplySideRevenueUSD_not_in?: InputMaybe>; - cumulativeTotalRevenueETH?: InputMaybe; - cumulativeTotalRevenueETH_gt?: InputMaybe; - cumulativeTotalRevenueETH_gte?: InputMaybe; - cumulativeTotalRevenueETH_in?: InputMaybe>; - cumulativeTotalRevenueETH_lt?: InputMaybe; - cumulativeTotalRevenueETH_lte?: InputMaybe; - cumulativeTotalRevenueETH_not?: InputMaybe; - cumulativeTotalRevenueETH_not_in?: InputMaybe>; - cumulativeTotalRevenueUSD?: InputMaybe; - cumulativeTotalRevenueUSD_gt?: InputMaybe; - cumulativeTotalRevenueUSD_gte?: InputMaybe; - cumulativeTotalRevenueUSD_in?: InputMaybe>; - cumulativeTotalRevenueUSD_lt?: InputMaybe; - cumulativeTotalRevenueUSD_lte?: InputMaybe; - cumulativeTotalRevenueUSD_not?: InputMaybe; - cumulativeTotalRevenueUSD_not_in?: InputMaybe>; - cumulativeUniqueUsers?: InputMaybe; - cumulativeUniqueUsers_gt?: InputMaybe; - cumulativeUniqueUsers_gte?: InputMaybe; - cumulativeUniqueUsers_in?: InputMaybe>; - cumulativeUniqueUsers_lt?: InputMaybe; - cumulativeUniqueUsers_lte?: InputMaybe; - cumulativeUniqueUsers_not?: InputMaybe; - cumulativeUniqueUsers_not_in?: InputMaybe>; - dailyUsageMetrics_?: InputMaybe; - financialMetrics_?: InputMaybe; - hourlyUsageMetrics_?: 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>; - methodologyVersion?: InputMaybe; - methodologyVersion_contains?: InputMaybe; - methodologyVersion_contains_nocase?: InputMaybe; - methodologyVersion_ends_with?: InputMaybe; - methodologyVersion_ends_with_nocase?: InputMaybe; - methodologyVersion_gt?: InputMaybe; - methodologyVersion_gte?: InputMaybe; - methodologyVersion_in?: InputMaybe>; - methodologyVersion_lt?: InputMaybe; - methodologyVersion_lte?: InputMaybe; - methodologyVersion_not?: InputMaybe; - methodologyVersion_not_contains?: InputMaybe; - methodologyVersion_not_contains_nocase?: InputMaybe; - methodologyVersion_not_ends_with?: InputMaybe; - methodologyVersion_not_ends_with_nocase?: InputMaybe; - methodologyVersion_not_in?: InputMaybe>; - methodologyVersion_not_starts_with?: InputMaybe; - methodologyVersion_not_starts_with_nocase?: InputMaybe; - methodologyVersion_starts_with?: InputMaybe; - methodologyVersion_starts_with_nocase?: InputMaybe; - name?: InputMaybe; - name_contains?: InputMaybe; - name_contains_nocase?: InputMaybe; - name_ends_with?: InputMaybe; - name_ends_with_nocase?: InputMaybe; - name_gt?: InputMaybe; - name_gte?: InputMaybe; - name_in?: InputMaybe>; - name_lt?: InputMaybe; - name_lte?: InputMaybe; - name_not?: InputMaybe; - name_not_contains?: InputMaybe; - name_not_contains_nocase?: InputMaybe; - name_not_ends_with?: InputMaybe; - name_not_ends_with_nocase?: InputMaybe; - name_not_in?: InputMaybe>; - name_not_starts_with?: InputMaybe; - name_not_starts_with_nocase?: InputMaybe; - name_starts_with?: InputMaybe; - name_starts_with_nocase?: InputMaybe; - network?: InputMaybe; - network_in?: InputMaybe>; - network_not?: InputMaybe; - network_not_in?: InputMaybe>; - or?: InputMaybe>>; - protocolControlledValueUSD?: InputMaybe; - protocolControlledValueUSD_gt?: InputMaybe; - protocolControlledValueUSD_gte?: InputMaybe; - protocolControlledValueUSD_in?: InputMaybe>; - protocolControlledValueUSD_lt?: InputMaybe; - protocolControlledValueUSD_lte?: InputMaybe; - protocolControlledValueUSD_not?: InputMaybe; - protocolControlledValueUSD_not_in?: InputMaybe>; - schemaVersion?: InputMaybe; - schemaVersion_contains?: InputMaybe; - schemaVersion_contains_nocase?: InputMaybe; - schemaVersion_ends_with?: InputMaybe; - schemaVersion_ends_with_nocase?: InputMaybe; - schemaVersion_gt?: InputMaybe; - schemaVersion_gte?: InputMaybe; - schemaVersion_in?: InputMaybe>; - schemaVersion_lt?: InputMaybe; - schemaVersion_lte?: InputMaybe; - schemaVersion_not?: InputMaybe; - schemaVersion_not_contains?: InputMaybe; - schemaVersion_not_contains_nocase?: InputMaybe; - schemaVersion_not_ends_with?: InputMaybe; - schemaVersion_not_ends_with_nocase?: InputMaybe; - schemaVersion_not_in?: InputMaybe>; - schemaVersion_not_starts_with?: InputMaybe; - schemaVersion_not_starts_with_nocase?: InputMaybe; - schemaVersion_starts_with?: InputMaybe; - schemaVersion_starts_with_nocase?: InputMaybe; - slug?: InputMaybe; - slug_contains?: InputMaybe; - slug_contains_nocase?: InputMaybe; - slug_ends_with?: InputMaybe; - slug_ends_with_nocase?: InputMaybe; - slug_gt?: InputMaybe; - slug_gte?: InputMaybe; - slug_in?: InputMaybe>; - slug_lt?: InputMaybe; - slug_lte?: InputMaybe; - slug_not?: InputMaybe; - slug_not_contains?: InputMaybe; - slug_not_contains_nocase?: InputMaybe; - slug_not_ends_with?: InputMaybe; - slug_not_ends_with_nocase?: InputMaybe; - slug_not_in?: InputMaybe>; - slug_not_starts_with?: InputMaybe; - slug_not_starts_with_nocase?: InputMaybe; - slug_starts_with?: InputMaybe; - slug_starts_with_nocase?: InputMaybe; - subgraphVersion?: InputMaybe; - subgraphVersion_contains?: InputMaybe; - subgraphVersion_contains_nocase?: InputMaybe; - subgraphVersion_ends_with?: InputMaybe; - subgraphVersion_ends_with_nocase?: InputMaybe; - subgraphVersion_gt?: InputMaybe; - subgraphVersion_gte?: InputMaybe; - subgraphVersion_in?: InputMaybe>; - subgraphVersion_lt?: InputMaybe; - subgraphVersion_lte?: InputMaybe; - subgraphVersion_not?: InputMaybe; - subgraphVersion_not_contains?: InputMaybe; - subgraphVersion_not_contains_nocase?: InputMaybe; - subgraphVersion_not_ends_with?: InputMaybe; - subgraphVersion_not_ends_with_nocase?: InputMaybe; - subgraphVersion_not_in?: InputMaybe>; - subgraphVersion_not_starts_with?: InputMaybe; - subgraphVersion_not_starts_with_nocase?: InputMaybe; - subgraphVersion_starts_with?: InputMaybe; - subgraphVersion_starts_with_nocase?: InputMaybe; - totalPoolCount?: InputMaybe; - totalPoolCount_gt?: InputMaybe; - totalPoolCount_gte?: InputMaybe; - totalPoolCount_in?: InputMaybe>; - totalPoolCount_lt?: InputMaybe; - totalPoolCount_lte?: InputMaybe; - totalPoolCount_not?: InputMaybe; - totalPoolCount_not_in?: InputMaybe>; - totalValueLockedETH?: InputMaybe; - totalValueLockedETH_gt?: InputMaybe; - totalValueLockedETH_gte?: InputMaybe; - totalValueLockedETH_in?: InputMaybe>; - totalValueLockedETH_lt?: InputMaybe; - totalValueLockedETH_lte?: InputMaybe; - totalValueLockedETH_not?: InputMaybe; - totalValueLockedETH_not_in?: InputMaybe>; - totalValueLockedUSD?: InputMaybe; - totalValueLockedUSD_gt?: InputMaybe; - totalValueLockedUSD_gte?: InputMaybe; - totalValueLockedUSD_in?: InputMaybe>; - totalValueLockedUSD_lt?: InputMaybe; - totalValueLockedUSD_lte?: InputMaybe; - totalValueLockedUSD_not?: InputMaybe; - totalValueLockedUSD_not_in?: InputMaybe>; - type?: InputMaybe; - type_in?: InputMaybe>; - type_not?: InputMaybe; - type_not_in?: InputMaybe>; -}; - -export enum Protocol_OrderBy { - CumulativeProtocolSideRevenueEth = 'cumulativeProtocolSideRevenueETH', - CumulativeProtocolSideRevenueUsd = 'cumulativeProtocolSideRevenueUSD', - CumulativeSupplySideRevenueEth = 'cumulativeSupplySideRevenueETH', - CumulativeSupplySideRevenueUsd = 'cumulativeSupplySideRevenueUSD', - CumulativeTotalRevenueEth = 'cumulativeTotalRevenueETH', - CumulativeTotalRevenueUsd = 'cumulativeTotalRevenueUSD', - CumulativeUniqueUsers = 'cumulativeUniqueUsers', - DailyUsageMetrics = 'dailyUsageMetrics', - FinancialMetrics = 'financialMetrics', - HourlyUsageMetrics = 'hourlyUsageMetrics', + +export enum Position_OrderBy { + CollectedFeesToken0 = 'collectedFeesToken0', + CollectedFeesToken1 = 'collectedFeesToken1', + DepositedToken0 = 'depositedToken0', + DepositedToken1 = 'depositedToken1', + FeeGrowthInside0LastX128 = 'feeGrowthInside0LastX128', + FeeGrowthInside1LastX128 = 'feeGrowthInside1LastX128', + HashClosed = 'hashClosed', Id = 'id', - MethodologyVersion = 'methodologyVersion', - Name = 'name', - Network = 'network', - ProtocolControlledValueUsd = 'protocolControlledValueUSD', - SchemaVersion = 'schemaVersion', - Slug = 'slug', - SubgraphVersion = 'subgraphVersion', - TotalPoolCount = 'totalPoolCount', - TotalValueLockedEth = 'totalValueLockedETH', - TotalValueLockedUsd = 'totalValueLockedUSD', - Type = 'type' + Liquidity = 'liquidity', + LockedUntil = 'lockedUntil', + NfpmAddress = 'nfpmAddress', + Owner = 'owner', + OwnerId = 'owner__id', + Pool = 'pool', + PoolBalanceOfBlock = 'pool__balanceOfBlock', + PoolClosedPositionCount = 'pool__closedPositionCount', + PoolCollectedFeesToken0 = 'pool__collectedFeesToken0', + PoolCollectedFeesToken1 = 'pool__collectedFeesToken1', + PoolCollectedFeesUsd = 'pool__collectedFeesUSD', + PoolCollectedVaultWethFees = 'pool__collectedVaultWETHFees', + PoolCreatedAtBlockNumber = 'pool__createdAtBlockNumber', + PoolCreatedAtTimestamp = 'pool__createdAtTimestamp', + PoolFeeGrowthGlobal0X128 = 'pool__feeGrowthGlobal0X128', + PoolFeeGrowthGlobal1X128 = 'pool__feeGrowthGlobal1X128', + PoolFeeTier = 'pool__feeTier', + PoolFeesUsd = 'pool__feesUSD', + PoolId = 'pool__id', + PoolLiquidity = 'pool__liquidity', + PoolLiquidityProviderCount = 'pool__liquidityProviderCount', + PoolName = 'pool__name', + PoolObservationIndex = 'pool__observationIndex', + PoolOpenPositionCount = 'pool__openPositionCount', + PoolSqrtPrice = 'pool__sqrtPrice', + PoolSymbol = 'pool__symbol', + PoolTick = 'pool__tick', + PoolToken0Price = 'pool__token0Price', + PoolToken1Price = 'pool__token1Price', + PoolTotalLiquidity = 'pool__totalLiquidity', + PoolTotalValueLockedEth = 'pool__totalValueLockedETH', + PoolTotalValueLockedToken0 = 'pool__totalValueLockedToken0', + PoolTotalValueLockedToken1 = 'pool__totalValueLockedToken1', + PoolTotalValueLockedUsd = 'pool__totalValueLockedUSD', + PoolTotalValueLockedUsdUntracked = 'pool__totalValueLockedUSDUntracked', + PoolTxCount = 'pool__txCount', + PoolUntrackedVolumeUsd = 'pool__untrackedVolumeUSD', + PoolVolumeToken0 = 'pool__volumeToken0', + PoolVolumeToken1 = 'pool__volumeToken1', + PoolVolumeUsd = 'pool__volumeUSD', + TickLower = 'tickLower', + TickUpper = 'tickUpper', + Token0 = 'token0', + Token0Decimals = 'token0__decimals', + Token0DerivedEth = 'token0__derivedETH', + Token0DerivedUsd = 'token0__derivedUSD', + Token0FeesUsd = 'token0__feesUSD', + Token0Id = 'token0__id', + Token0Name = 'token0__name', + Token0PoolCount = 'token0__poolCount', + Token0Symbol = 'token0__symbol', + Token0TotalSupply = 'token0__totalSupply', + Token0TotalValueLocked = 'token0__totalValueLocked', + Token0TotalValueLockedUsd = 'token0__totalValueLockedUSD', + Token0TotalValueLockedUsdUntracked = 'token0__totalValueLockedUSDUntracked', + Token0TxCount = 'token0__txCount', + Token0UntrackedVolumeUsd = 'token0__untrackedVolumeUSD', + Token0Volume = 'token0__volume', + Token0VolumeUsd = 'token0__volumeUSD', + Token1 = 'token1', + Token1Decimals = 'token1__decimals', + Token1DerivedEth = 'token1__derivedETH', + Token1DerivedUsd = 'token1__derivedUSD', + Token1FeesUsd = 'token1__feesUSD', + Token1Id = 'token1__id', + Token1Name = 'token1__name', + Token1PoolCount = 'token1__poolCount', + Token1Symbol = 'token1__symbol', + Token1TotalSupply = 'token1__totalSupply', + Token1TotalValueLocked = 'token1__totalValueLocked', + Token1TotalValueLockedUsd = 'token1__totalValueLockedUSD', + Token1TotalValueLockedUsdUntracked = 'token1__totalValueLockedUSDUntracked', + Token1TxCount = 'token1__txCount', + Token1UntrackedVolumeUsd = 'token1__untrackedVolumeUSD', + Token1Volume = 'token1__volume', + Token1VolumeUsd = 'token1__volumeUSD', + TokenId = 'tokenId', + TotalToken0Value = 'totalToken0Value', + TotalToken1Value = 'totalToken1Value', + Transaction = 'transaction', + TransactionBlockNumber = 'transaction__blockNumber', + TransactionGasPrice = 'transaction__gasPrice', + TransactionGasUsed = 'transaction__gasUsed', + TransactionId = 'transaction__id', + TransactionTimestamp = 'transaction__timestamp', + WithdrawnToken0 = 'withdrawnToken0', + WithdrawnToken1 = 'withdrawnToken1' } export type Query = { __typename?: 'Query'; + TokenSearch: Array; /** Access to subgraph metadata */ _meta?: Maybe<_Meta_>; account?: Maybe; accounts: Array; - activeAccount?: Maybe; - activeAccounts: Array; - deposit?: Maybe; - deposits: Array; - dexAmmProtocol?: Maybe; - dexAmmProtocols: Array; - financialsDailySnapshot?: Maybe; - financialsDailySnapshots: Array; - helperStore?: Maybe<_HelperStore>; - helperStores: Array<_HelperStore>; - liquidityPool?: Maybe; - liquidityPoolAmount?: Maybe<_LiquidityPoolAmount>; - liquidityPoolAmounts: Array<_LiquidityPoolAmount>; - liquidityPoolDailySnapshot?: Maybe; - liquidityPoolDailySnapshots: Array; - liquidityPoolFee?: Maybe; - liquidityPoolFees: Array; - liquidityPoolHourlySnapshot?: Maybe; - liquidityPoolHourlySnapshots: Array; - liquidityPools: Array; + bundle?: Maybe; + bundles: Array; + burn?: Maybe; + burns: Array; + collect?: Maybe; + collects: Array; + event?: Maybe; + events: Array; + factories: Array; + factory?: Maybe; + flash?: Maybe; + flashes: Array; + mint?: Maybe; + mints: Array; + pool?: Maybe; + poolDayData?: Maybe; + poolDayDatas: Array; + poolFee?: Maybe; + poolFees: Array; + poolHourData?: Maybe; + poolHourDatas: Array; + pools: Array; position?: Maybe; positionSnapshot?: Maybe; positionSnapshots: Array; positions: Array; - protocol?: Maybe; - protocols: Array; - rewardToken?: Maybe; - rewardTokens: Array; swap?: Maybe; swaps: Array; tick?: Maybe; - tickDailySnapshot?: Maybe; - tickDailySnapshots: Array; - tickHourlySnapshot?: Maybe; - tickHourlySnapshots: Array; + tickDayData?: Maybe; + tickDayDatas: Array; + tickHourData?: Maybe; + tickHourDatas: Array; ticks: Array; token?: Maybe; - tokenWhitelist?: Maybe<_TokenWhitelist>; - tokenWhitelistSymbol?: Maybe<_TokenWhitelistSymbol>; - tokenWhitelistSymbols: Array<_TokenWhitelistSymbol>; - tokenWhitelists: Array<_TokenWhitelist>; + tokenDayData?: Maybe; + tokenDayDatas: Array; + tokenHourData?: Maybe; + tokenHourDatas: Array; tokens: Array; - usageMetricsDailySnapshot?: Maybe; - usageMetricsDailySnapshots: Array; - usageMetricsHourlySnapshot?: Maybe; - usageMetricsHourlySnapshots: Array; - withdraw?: Maybe; - withdraws: Array; + transaction?: Maybe; + transactions: Array; + uniswapDayData?: Maybe; + uniswapDayDatas: Array; + vault?: Maybe; + vaults: Array; +}; + + +export type QueryTokenSearchArgs = { + block?: InputMaybe; + first?: InputMaybe; + skip?: InputMaybe; + subgraphError?: _SubgraphErrorPolicy_; + text: Scalars['String']['input']; + where?: InputMaybe; }; @@ -4963,255 +3490,237 @@ export type QueryAccountsArgs = { }; -export type QueryActiveAccountArgs = { +export type QueryBundleArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryActiveAccountsArgs = { +export type QueryBundlesArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type QueryDepositArgs = { +export type QueryBurnArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryDepositsArgs = { +export type QueryBurnsArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type QueryDexAmmProtocolArgs = { +export type QueryCollectArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryDexAmmProtocolsArgs = { +export type QueryCollectsArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type QueryFinancialsDailySnapshotArgs = { +export type QueryEventArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryFinancialsDailySnapshotsArgs = { +export type QueryEventsArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryHelperStoreArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; }; -export type QueryHelperStoresArgs = { +export type QueryFactoriesArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe<_HelperStore_OrderBy>; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe<_HelperStore_Filter>; + where?: InputMaybe; }; -export type QueryLiquidityPoolArgs = { +export type QueryFactoryArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryLiquidityPoolAmountArgs = { +export type QueryFlashArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryLiquidityPoolAmountsArgs = { +export type QueryFlashesArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe<_LiquidityPoolAmount_OrderBy>; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe<_LiquidityPoolAmount_Filter>; + where?: InputMaybe; }; -export type QueryLiquidityPoolDailySnapshotArgs = { +export type QueryMintArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryLiquidityPoolDailySnapshotsArgs = { +export type QueryMintsArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type QueryLiquidityPoolFeeArgs = { +export type QueryPoolArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryLiquidityPoolFeesArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type QueryLiquidityPoolHourlySnapshotArgs = { +export type QueryPoolDayDataArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryLiquidityPoolHourlySnapshotsArgs = { +export type QueryPoolDayDatasArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type QueryLiquidityPoolsArgs = { +export type QueryPoolFeeArgs = { block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; + id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; }; -export type QueryPositionArgs = { +export type QueryPoolFeesArgs = { block?: InputMaybe; - id: Scalars['ID']['input']; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; }; -export type QueryPositionSnapshotArgs = { +export type QueryPoolHourDataArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryPositionSnapshotsArgs = { +export type QueryPoolHourDatasArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type QueryPositionsArgs = { +export type QueryPoolsArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type QueryProtocolArgs = { +export type QueryPositionArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryProtocolsArgs = { +export type QueryPositionSnapshotArgs = { block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; + id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; }; -export type QueryRewardTokenArgs = { +export type QueryPositionSnapshotsArgs = { block?: InputMaybe; - id: Scalars['ID']['input']; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; }; -export type QueryRewardTokensArgs = { +export type QueryPositionsArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; @@ -5240,39 +3749,39 @@ export type QueryTickArgs = { }; -export type QueryTickDailySnapshotArgs = { +export type QueryTickDayDataArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryTickDailySnapshotsArgs = { +export type QueryTickDayDatasArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type QueryTickHourlySnapshotArgs = { +export type QueryTickHourDataArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryTickHourlySnapshotsArgs = { +export type QueryTickHourDatasArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; @@ -5294,39 +3803,39 @@ export type QueryTokenArgs = { }; -export type QueryTokenWhitelistArgs = { +export type QueryTokenDayDataArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryTokenWhitelistSymbolArgs = { +export type QueryTokenDayDatasArgs = { block?: InputMaybe; - id: Scalars['ID']['input']; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; }; -export type QueryTokenWhitelistSymbolsArgs = { +export type QueryTokenHourDataArgs = { block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe<_TokenWhitelistSymbol_OrderBy>; - orderDirection?: InputMaybe; - skip?: InputMaybe; + id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe<_TokenWhitelistSymbol_Filter>; }; -export type QueryTokenWhitelistsArgs = { +export type QueryTokenHourDatasArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe<_TokenWhitelist_OrderBy>; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe<_TokenWhitelist_Filter>; + where?: InputMaybe; }; @@ -5341,192 +3850,111 @@ export type QueryTokensArgs = { }; -export type QueryUsageMetricsDailySnapshotArgs = { +export type QueryTransactionArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryUsageMetricsDailySnapshotsArgs = { +export type QueryTransactionsArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type QueryUsageMetricsHourlySnapshotArgs = { +export type QueryUniswapDayDataArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryUsageMetricsHourlySnapshotsArgs = { +export type QueryUniswapDayDatasArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type QueryWithdrawArgs = { +export type QueryVaultArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type QueryWithdrawsArgs = { +export type QueryVaultsArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - -export type RewardToken = { - __typename?: 'RewardToken'; - /** { Reward token type }-{ Smart contract address of the reward token } */ - id: Scalars['Bytes']['output']; - /** Reference to the actual token */ - token: Token; - /** The type of the reward token */ - type: RewardTokenType; -}; - -export enum RewardTokenType { - /** For reward tokens awarded to borrowers */ - Borrow = 'BORROW', - /** For reward tokens awarded to LPs/lenders */ - Deposit = 'DEPOSIT' -} - -export type RewardToken_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - id?: InputMaybe; - id_contains?: InputMaybe; - id_gt?: InputMaybe; - id_gte?: InputMaybe; - id_in?: InputMaybe>; - id_lt?: InputMaybe; - id_lte?: InputMaybe; - id_not?: InputMaybe; - id_not_contains?: InputMaybe; - id_not_in?: InputMaybe>; - or?: 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; - type?: InputMaybe; - type_in?: InputMaybe>; - type_not?: InputMaybe; - type_not_in?: InputMaybe>; + where?: InputMaybe; }; -export enum RewardToken_OrderBy { - Id = 'id', - Token = 'token', - TokenEthPricePool = 'token___ethPricePool', - TokenLargePriceChangeBuffer = 'token___largePriceChangeBuffer', - TokenLargeTvlImpactBuffer = 'token___largeTVLImpactBuffer', - TokenLastPricePool = 'token___lastPricePool', - TokenTotalSupply = 'token___totalSupply', - TokenTotalValueLockedEth = 'token___totalValueLockedETH', - TokenTotalValueLockedUsd = 'token___totalValueLockedUSD', - TokenDecimals = 'token__decimals', - TokenId = 'token__id', - TokenLastPriceBlockNumber = 'token__lastPriceBlockNumber', - TokenLastPriceEth = 'token__lastPriceETH', - TokenLastPriceUsd = 'token__lastPriceUSD', - TokenName = 'token__name', - TokenSymbol = 'token__symbol', - Type = 'type' -} - export type Subscription = { __typename?: 'Subscription'; /** Access to subgraph metadata */ _meta?: Maybe<_Meta_>; account?: Maybe; accounts: Array; - activeAccount?: Maybe; - activeAccounts: Array; - deposit?: Maybe; - deposits: Array; - dexAmmProtocol?: Maybe; - dexAmmProtocols: Array; - financialsDailySnapshot?: Maybe; - financialsDailySnapshots: Array; - helperStore?: Maybe<_HelperStore>; - helperStores: Array<_HelperStore>; - liquidityPool?: Maybe; - liquidityPoolAmount?: Maybe<_LiquidityPoolAmount>; - liquidityPoolAmounts: Array<_LiquidityPoolAmount>; - liquidityPoolDailySnapshot?: Maybe; - liquidityPoolDailySnapshots: Array; - liquidityPoolFee?: Maybe; - liquidityPoolFees: Array; - liquidityPoolHourlySnapshot?: Maybe; - liquidityPoolHourlySnapshots: Array; - liquidityPools: Array; + bundle?: Maybe; + bundles: Array; + burn?: Maybe; + burns: Array; + collect?: Maybe; + collects: Array; + event?: Maybe; + events: Array; + factories: Array; + factory?: Maybe; + flash?: Maybe; + flashes: Array; + mint?: Maybe; + mints: Array; + pool?: Maybe; + poolDayData?: Maybe; + poolDayDatas: Array; + poolFee?: Maybe; + poolFees: Array; + poolHourData?: Maybe; + poolHourDatas: Array; + pools: Array; position?: Maybe; positionSnapshot?: Maybe; positionSnapshots: Array; positions: Array; - protocol?: Maybe; - protocols: Array; - rewardToken?: Maybe; - rewardTokens: Array; swap?: Maybe; swaps: Array; tick?: Maybe; - tickDailySnapshot?: Maybe; - tickDailySnapshots: Array; - tickHourlySnapshot?: Maybe; - tickHourlySnapshots: Array; + tickDayData?: Maybe; + tickDayDatas: Array; + tickHourData?: Maybe; + tickHourDatas: Array; ticks: Array; token?: Maybe; - tokenWhitelist?: Maybe<_TokenWhitelist>; - tokenWhitelistSymbol?: Maybe<_TokenWhitelistSymbol>; - tokenWhitelistSymbols: Array<_TokenWhitelistSymbol>; - tokenWhitelists: Array<_TokenWhitelist>; + tokenDayData?: Maybe; + tokenDayDatas: Array; + tokenHourData?: Maybe; + tokenHourDatas: Array; tokens: Array; - usageMetricsDailySnapshot?: Maybe; - usageMetricsDailySnapshots: Array; - usageMetricsHourlySnapshot?: Maybe; - usageMetricsHourlySnapshots: Array; - withdraw?: Maybe; - withdraws: Array; + transaction?: Maybe; + transactions: Array; + uniswapDayData?: Maybe; + uniswapDayDatas: Array; + vault?: Maybe; + vaults: Array; }; @@ -5553,255 +3981,237 @@ export type SubscriptionAccountsArgs = { }; -export type SubscriptionActiveAccountArgs = { +export type SubscriptionBundleArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type SubscriptionActiveAccountsArgs = { +export type SubscriptionBundlesArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type SubscriptionDepositArgs = { +export type SubscriptionBurnArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type SubscriptionDepositsArgs = { +export type SubscriptionBurnsArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type SubscriptionDexAmmProtocolArgs = { +export type SubscriptionCollectArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type SubscriptionDexAmmProtocolsArgs = { +export type SubscriptionCollectsArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type SubscriptionFinancialsDailySnapshotArgs = { +export type SubscriptionEventArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type SubscriptionFinancialsDailySnapshotsArgs = { +export type SubscriptionEventsArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionHelperStoreArgs = { - block?: InputMaybe; - id: Scalars['ID']['input']; - subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; }; -export type SubscriptionHelperStoresArgs = { +export type SubscriptionFactoriesArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe<_HelperStore_OrderBy>; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe<_HelperStore_Filter>; + where?: InputMaybe; }; -export type SubscriptionLiquidityPoolArgs = { +export type SubscriptionFactoryArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type SubscriptionLiquidityPoolAmountArgs = { +export type SubscriptionFlashArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type SubscriptionLiquidityPoolAmountsArgs = { +export type SubscriptionFlashesArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe<_LiquidityPoolAmount_OrderBy>; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe<_LiquidityPoolAmount_Filter>; + where?: InputMaybe; }; -export type SubscriptionLiquidityPoolDailySnapshotArgs = { +export type SubscriptionMintArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type SubscriptionLiquidityPoolDailySnapshotsArgs = { +export type SubscriptionMintsArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type SubscriptionLiquidityPoolFeeArgs = { +export type SubscriptionPoolArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type SubscriptionLiquidityPoolFeesArgs = { - block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; -}; - - -export type SubscriptionLiquidityPoolHourlySnapshotArgs = { +export type SubscriptionPoolDayDataArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type SubscriptionLiquidityPoolHourlySnapshotsArgs = { +export type SubscriptionPoolDayDatasArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type SubscriptionLiquidityPoolsArgs = { +export type SubscriptionPoolFeeArgs = { block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; + id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; }; -export type SubscriptionPositionArgs = { +export type SubscriptionPoolFeesArgs = { block?: InputMaybe; - id: Scalars['ID']['input']; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; }; -export type SubscriptionPositionSnapshotArgs = { +export type SubscriptionPoolHourDataArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type SubscriptionPositionSnapshotsArgs = { +export type SubscriptionPoolHourDatasArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type SubscriptionPositionsArgs = { +export type SubscriptionPoolsArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type SubscriptionProtocolArgs = { +export type SubscriptionPositionArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type SubscriptionProtocolsArgs = { +export type SubscriptionPositionSnapshotArgs = { block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; + id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; }; -export type SubscriptionRewardTokenArgs = { +export type SubscriptionPositionSnapshotsArgs = { block?: InputMaybe; - id: Scalars['ID']['input']; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; }; -export type SubscriptionRewardTokensArgs = { +export type SubscriptionPositionsArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; @@ -5830,39 +4240,39 @@ export type SubscriptionTickArgs = { }; -export type SubscriptionTickDailySnapshotArgs = { +export type SubscriptionTickDayDataArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type SubscriptionTickDailySnapshotsArgs = { +export type SubscriptionTickDayDatasArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type SubscriptionTickHourlySnapshotArgs = { +export type SubscriptionTickHourDataArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type SubscriptionTickHourlySnapshotsArgs = { +export type SubscriptionTickHourDatasArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; @@ -5884,39 +4294,39 @@ export type SubscriptionTokenArgs = { }; -export type SubscriptionTokenWhitelistArgs = { +export type SubscriptionTokenDayDataArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type SubscriptionTokenWhitelistSymbolArgs = { +export type SubscriptionTokenDayDatasArgs = { block?: InputMaybe; - id: Scalars['ID']['input']; + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; + where?: InputMaybe; }; -export type SubscriptionTokenWhitelistSymbolsArgs = { +export type SubscriptionTokenHourDataArgs = { block?: InputMaybe; - first?: InputMaybe; - orderBy?: InputMaybe<_TokenWhitelistSymbol_OrderBy>; - orderDirection?: InputMaybe; - skip?: InputMaybe; + id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe<_TokenWhitelistSymbol_Filter>; }; -export type SubscriptionTokenWhitelistsArgs = { +export type SubscriptionTokenHourDatasArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe<_TokenWhitelist_OrderBy>; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe<_TokenWhitelist_Filter>; + where?: InputMaybe; }; @@ -5931,202 +4341,106 @@ export type SubscriptionTokensArgs = { }; -export type SubscriptionUsageMetricsDailySnapshotArgs = { +export type SubscriptionTransactionArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type SubscriptionUsageMetricsDailySnapshotsArgs = { +export type SubscriptionTransactionsArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type SubscriptionUsageMetricsHourlySnapshotArgs = { +export type SubscriptionUniswapDayDataArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type SubscriptionUsageMetricsHourlySnapshotsArgs = { +export type SubscriptionUniswapDayDatasArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type SubscriptionWithdrawArgs = { +export type SubscriptionVaultArgs = { block?: InputMaybe; id: Scalars['ID']['input']; subgraphError?: _SubgraphErrorPolicy_; }; -export type SubscriptionWithdrawsArgs = { +export type SubscriptionVaultsArgs = { block?: InputMaybe; first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; subgraphError?: _SubgraphErrorPolicy_; - where?: InputMaybe; + where?: InputMaybe; }; -export type Swap = { +export type Swap = Event & { __typename?: 'Swap'; - /** Account that emitted this event */ - account: Account; - /** Amount of token deposited into pool in native units */ - amountIn: Scalars['BigInt']['output']; - /** Amount of token deposited into pool in USD */ - amountInUSD: Scalars['BigDecimal']['output']; - /** Amount of token withdrawn from pool in native units */ - amountOut: Scalars['BigInt']['output']; - /** Amount of token withdrawn from pool in USD */ - amountOutUSD: Scalars['BigDecimal']['output']; - /** Block number of this event */ - blockNumber: Scalars['BigInt']['output']; - /** Gas limit of the transaction that emitted this event */ - gasLimit?: Maybe; - /** Gas price of the transaction that emitted this event */ - gasPrice?: Maybe; - /** Gas used in this transaction. (Optional because not every chain will support this) */ - gasUsed?: Maybe; - /** Transaction hash of the transaction that emitted this event */ - hash: Scalars['Bytes']['output']; - /** { Transaction hash }-{ Log index } */ + amount0: Scalars['BigDecimal']['output']; + amount1: Scalars['BigDecimal']['output']; + amountUSD: Scalars['BigDecimal']['output']; id: Scalars['ID']['output']; - /** Event log index. For transactions that don't emit event, create arbitrary index starting from 0 */ - logIndex: Scalars['Int']['output']; - /** Nonce of the transaction that emitted this event */ - nonce: Scalars['BigInt']['output']; - /** The pool involving this event */ - pool: LiquidityPool; - /** The protocol this transaction belongs to */ - protocol: DexAmmProtocol; - /** Amount of input tokens in the liquidity pool */ - reserveAmounts?: Maybe>; - /** the tick after the swap */ - tick?: Maybe; - /** Timestamp of this event */ + logIndex?: Maybe; + origin: Account; + pool: Pool; + recipient: Account; + sender: Account; + sqrtPriceX96: Scalars['BigInt']['output']; + tick: Scalars['BigInt']['output']; timestamp: Scalars['BigInt']['output']; - /** Token deposited into pool */ - tokenIn: Token; - /** Token withdrawn from pool */ - tokenOut: Token; + token0: Token; + token1: Token; + transaction: Transaction; }; export type Swap_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - account?: InputMaybe; - account_?: InputMaybe; - account_contains?: InputMaybe; - account_contains_nocase?: InputMaybe; - account_ends_with?: InputMaybe; - account_ends_with_nocase?: InputMaybe; - account_gt?: InputMaybe; - account_gte?: InputMaybe; - account_in?: InputMaybe>; - account_lt?: InputMaybe; - account_lte?: InputMaybe; - account_not?: InputMaybe; - account_not_contains?: InputMaybe; - account_not_contains_nocase?: InputMaybe; - account_not_ends_with?: InputMaybe; - account_not_ends_with_nocase?: InputMaybe; - account_not_in?: InputMaybe>; - account_not_starts_with?: InputMaybe; - account_not_starts_with_nocase?: InputMaybe; - account_starts_with?: InputMaybe; - account_starts_with_nocase?: InputMaybe; - amountIn?: InputMaybe; - amountInUSD?: InputMaybe; - amountInUSD_gt?: InputMaybe; - amountInUSD_gte?: InputMaybe; - amountInUSD_in?: InputMaybe>; - amountInUSD_lt?: InputMaybe; - amountInUSD_lte?: InputMaybe; - amountInUSD_not?: InputMaybe; - amountInUSD_not_in?: InputMaybe>; - amountIn_gt?: InputMaybe; - amountIn_gte?: InputMaybe; - amountIn_in?: InputMaybe>; - amountIn_lt?: InputMaybe; - amountIn_lte?: InputMaybe; - amountIn_not?: InputMaybe; - amountIn_not_in?: InputMaybe>; - amountOut?: InputMaybe; - amountOutUSD?: InputMaybe; - amountOutUSD_gt?: InputMaybe; - amountOutUSD_gte?: InputMaybe; - amountOutUSD_in?: InputMaybe>; - amountOutUSD_lt?: InputMaybe; - amountOutUSD_lte?: InputMaybe; - amountOutUSD_not?: InputMaybe; - amountOutUSD_not_in?: InputMaybe>; - amountOut_gt?: InputMaybe; - amountOut_gte?: InputMaybe; - amountOut_in?: InputMaybe>; - amountOut_lt?: InputMaybe; - amountOut_lte?: InputMaybe; - amountOut_not?: InputMaybe; - amountOut_not_in?: InputMaybe>; + amount0?: InputMaybe; + amount0_gt?: InputMaybe; + amount0_gte?: InputMaybe; + amount0_in?: InputMaybe>; + amount0_lt?: InputMaybe; + amount0_lte?: InputMaybe; + amount0_not?: InputMaybe; + amount0_not_in?: InputMaybe>; + amount1?: InputMaybe; + amount1_gt?: InputMaybe; + amount1_gte?: InputMaybe; + amount1_in?: InputMaybe>; + amount1_lt?: InputMaybe; + amount1_lte?: InputMaybe; + amount1_not?: InputMaybe; + amount1_not_in?: InputMaybe>; + amountUSD?: InputMaybe; + amountUSD_gt?: InputMaybe; + amountUSD_gte?: InputMaybe; + amountUSD_in?: InputMaybe>; + amountUSD_lt?: InputMaybe; + amountUSD_lte?: InputMaybe; + amountUSD_not?: InputMaybe; + amountUSD_not_in?: InputMaybe>; and?: InputMaybe>>; - blockNumber?: InputMaybe; - blockNumber_gt?: InputMaybe; - blockNumber_gte?: InputMaybe; - blockNumber_in?: InputMaybe>; - blockNumber_lt?: InputMaybe; - blockNumber_lte?: InputMaybe; - blockNumber_not?: InputMaybe; - blockNumber_not_in?: InputMaybe>; - gasLimit?: InputMaybe; - gasLimit_gt?: InputMaybe; - gasLimit_gte?: InputMaybe; - gasLimit_in?: InputMaybe>; - gasLimit_lt?: InputMaybe; - gasLimit_lte?: InputMaybe; - gasLimit_not?: InputMaybe; - gasLimit_not_in?: InputMaybe>; - gasPrice?: InputMaybe; - gasPrice_gt?: InputMaybe; - gasPrice_gte?: InputMaybe; - gasPrice_in?: InputMaybe>; - gasPrice_lt?: InputMaybe; - gasPrice_lte?: InputMaybe; - gasPrice_not?: InputMaybe; - gasPrice_not_in?: InputMaybe>; - gasUsed?: InputMaybe; - gasUsed_gt?: InputMaybe; - gasUsed_gte?: InputMaybe; - gasUsed_in?: InputMaybe>; - gasUsed_lt?: InputMaybe; - gasUsed_lte?: InputMaybe; - gasUsed_not?: InputMaybe; - gasUsed_not_in?: InputMaybe>; - hash?: InputMaybe; - hash_contains?: InputMaybe; - hash_gt?: InputMaybe; - hash_gte?: InputMaybe; - hash_in?: InputMaybe>; - hash_lt?: InputMaybe; - hash_lte?: InputMaybe; - hash_not?: InputMaybe; - hash_not_contains?: InputMaybe; - hash_not_in?: InputMaybe>; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -6135,25 +4449,38 @@ export type Swap_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - logIndex?: InputMaybe; - logIndex_gt?: InputMaybe; - logIndex_gte?: InputMaybe; - logIndex_in?: InputMaybe>; - logIndex_lt?: InputMaybe; - logIndex_lte?: InputMaybe; - logIndex_not?: InputMaybe; - logIndex_not_in?: InputMaybe>; - nonce?: InputMaybe; - nonce_gt?: InputMaybe; - nonce_gte?: InputMaybe; - nonce_in?: InputMaybe>; - nonce_lt?: InputMaybe; - nonce_lte?: InputMaybe; - nonce_not?: InputMaybe; - nonce_not_in?: InputMaybe>; + logIndex?: InputMaybe; + logIndex_gt?: InputMaybe; + logIndex_gte?: InputMaybe; + logIndex_in?: InputMaybe>; + logIndex_lt?: InputMaybe; + logIndex_lte?: InputMaybe; + logIndex_not?: InputMaybe; + logIndex_not_in?: InputMaybe>; or?: InputMaybe>>; + origin?: InputMaybe; + origin_?: InputMaybe; + origin_contains?: InputMaybe; + origin_contains_nocase?: InputMaybe; + origin_ends_with?: InputMaybe; + origin_ends_with_nocase?: InputMaybe; + origin_gt?: InputMaybe; + origin_gte?: InputMaybe; + origin_in?: InputMaybe>; + origin_lt?: InputMaybe; + origin_lte?: InputMaybe; + origin_not?: InputMaybe; + origin_not_contains?: InputMaybe; + origin_not_contains_nocase?: InputMaybe; + origin_not_ends_with?: InputMaybe; + origin_not_ends_with_nocase?: InputMaybe; + origin_not_in?: InputMaybe>; + origin_not_starts_with?: InputMaybe; + origin_not_starts_with_nocase?: InputMaybe; + origin_starts_with?: InputMaybe; + origin_starts_with_nocase?: InputMaybe; pool?: InputMaybe; - pool_?: InputMaybe; + pool_?: InputMaybe; pool_contains?: InputMaybe; pool_contains_nocase?: InputMaybe; pool_ends_with?: InputMaybe; @@ -6173,33 +4500,56 @@ export type Swap_Filter = { pool_not_starts_with_nocase?: InputMaybe; pool_starts_with?: InputMaybe; pool_starts_with_nocase?: InputMaybe; - protocol?: InputMaybe; - protocol_?: InputMaybe; - protocol_contains?: InputMaybe; - protocol_contains_nocase?: InputMaybe; - protocol_ends_with?: InputMaybe; - protocol_ends_with_nocase?: InputMaybe; - protocol_gt?: InputMaybe; - protocol_gte?: InputMaybe; - protocol_in?: InputMaybe>; - protocol_lt?: InputMaybe; - protocol_lte?: InputMaybe; - protocol_not?: InputMaybe; - protocol_not_contains?: InputMaybe; - protocol_not_contains_nocase?: InputMaybe; - protocol_not_ends_with?: InputMaybe; - protocol_not_ends_with_nocase?: InputMaybe; - protocol_not_in?: InputMaybe>; - protocol_not_starts_with?: InputMaybe; - protocol_not_starts_with_nocase?: InputMaybe; - protocol_starts_with?: InputMaybe; - protocol_starts_with_nocase?: InputMaybe; - reserveAmounts?: InputMaybe>; - reserveAmounts_contains?: InputMaybe>; - reserveAmounts_contains_nocase?: InputMaybe>; - reserveAmounts_not?: InputMaybe>; - reserveAmounts_not_contains?: InputMaybe>; - reserveAmounts_not_contains_nocase?: InputMaybe>; + recipient?: InputMaybe; + recipient_?: InputMaybe; + recipient_contains?: InputMaybe; + recipient_contains_nocase?: InputMaybe; + recipient_ends_with?: InputMaybe; + recipient_ends_with_nocase?: InputMaybe; + recipient_gt?: InputMaybe; + recipient_gte?: InputMaybe; + recipient_in?: InputMaybe>; + recipient_lt?: InputMaybe; + recipient_lte?: InputMaybe; + recipient_not?: InputMaybe; + recipient_not_contains?: InputMaybe; + recipient_not_contains_nocase?: InputMaybe; + recipient_not_ends_with?: InputMaybe; + recipient_not_ends_with_nocase?: InputMaybe; + recipient_not_in?: InputMaybe>; + recipient_not_starts_with?: InputMaybe; + recipient_not_starts_with_nocase?: InputMaybe; + recipient_starts_with?: InputMaybe; + recipient_starts_with_nocase?: InputMaybe; + sender?: InputMaybe; + sender_?: InputMaybe; + sender_contains?: InputMaybe; + sender_contains_nocase?: InputMaybe; + sender_ends_with?: InputMaybe; + sender_ends_with_nocase?: 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_contains_nocase?: InputMaybe; + sender_not_ends_with?: InputMaybe; + sender_not_ends_with_nocase?: InputMaybe; + sender_not_in?: InputMaybe>; + sender_not_starts_with?: InputMaybe; + sender_not_starts_with_nocase?: InputMaybe; + sender_starts_with?: InputMaybe; + sender_starts_with_nocase?: InputMaybe; + sqrtPriceX96?: InputMaybe; + sqrtPriceX96_gt?: InputMaybe; + sqrtPriceX96_gte?: InputMaybe; + sqrtPriceX96_in?: InputMaybe>; + sqrtPriceX96_lt?: InputMaybe; + sqrtPriceX96_lte?: InputMaybe; + sqrtPriceX96_not?: InputMaybe; + sqrtPriceX96_not_in?: InputMaybe>; tick?: InputMaybe; tick_gt?: InputMaybe; tick_gte?: InputMaybe; @@ -6216,256 +4566,246 @@ export type Swap_Filter = { timestamp_lte?: InputMaybe; timestamp_not?: InputMaybe; timestamp_not_in?: InputMaybe>; - tokenIn?: InputMaybe; - tokenIn_?: InputMaybe; - tokenIn_contains?: InputMaybe; - tokenIn_contains_nocase?: InputMaybe; - tokenIn_ends_with?: InputMaybe; - tokenIn_ends_with_nocase?: InputMaybe; - tokenIn_gt?: InputMaybe; - tokenIn_gte?: InputMaybe; - tokenIn_in?: InputMaybe>; - tokenIn_lt?: InputMaybe; - tokenIn_lte?: InputMaybe; - tokenIn_not?: InputMaybe; - tokenIn_not_contains?: InputMaybe; - tokenIn_not_contains_nocase?: InputMaybe; - tokenIn_not_ends_with?: InputMaybe; - tokenIn_not_ends_with_nocase?: InputMaybe; - tokenIn_not_in?: InputMaybe>; - tokenIn_not_starts_with?: InputMaybe; - tokenIn_not_starts_with_nocase?: InputMaybe; - tokenIn_starts_with?: InputMaybe; - tokenIn_starts_with_nocase?: InputMaybe; - tokenOut?: InputMaybe; - tokenOut_?: InputMaybe; - tokenOut_contains?: InputMaybe; - tokenOut_contains_nocase?: InputMaybe; - tokenOut_ends_with?: InputMaybe; - tokenOut_ends_with_nocase?: InputMaybe; - tokenOut_gt?: InputMaybe; - tokenOut_gte?: InputMaybe; - tokenOut_in?: InputMaybe>; - tokenOut_lt?: InputMaybe; - tokenOut_lte?: InputMaybe; - tokenOut_not?: InputMaybe; - tokenOut_not_contains?: InputMaybe; - tokenOut_not_contains_nocase?: InputMaybe; - tokenOut_not_ends_with?: InputMaybe; - tokenOut_not_ends_with_nocase?: InputMaybe; - tokenOut_not_in?: InputMaybe>; - tokenOut_not_starts_with?: InputMaybe; - tokenOut_not_starts_with_nocase?: InputMaybe; - tokenOut_starts_with?: InputMaybe; - tokenOut_starts_with_nocase?: 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; + transaction?: InputMaybe; + transaction_?: InputMaybe; + transaction_contains?: InputMaybe; + transaction_contains_nocase?: InputMaybe; + transaction_ends_with?: InputMaybe; + transaction_ends_with_nocase?: InputMaybe; + transaction_gt?: InputMaybe; + transaction_gte?: InputMaybe; + transaction_in?: InputMaybe>; + transaction_lt?: InputMaybe; + transaction_lte?: InputMaybe; + transaction_not?: InputMaybe; + transaction_not_contains?: InputMaybe; + transaction_not_contains_nocase?: InputMaybe; + transaction_not_ends_with?: InputMaybe; + transaction_not_ends_with_nocase?: InputMaybe; + transaction_not_in?: InputMaybe>; + transaction_not_starts_with?: InputMaybe; + transaction_not_starts_with_nocase?: InputMaybe; + transaction_starts_with?: InputMaybe; + transaction_starts_with_nocase?: InputMaybe; }; export enum Swap_OrderBy { - Account = 'account', - AccountClosedPositionCount = 'account__closedPositionCount', - AccountDepositCount = 'account__depositCount', - AccountId = 'account__id', - AccountOpenPositionCount = 'account__openPositionCount', - AccountPositionCount = 'account__positionCount', - AccountSwapCount = 'account__swapCount', - AccountWithdrawCount = 'account__withdrawCount', - AmountIn = 'amountIn', - AmountInUsd = 'amountInUSD', - AmountOut = 'amountOut', - AmountOutUsd = 'amountOutUSD', - BlockNumber = 'blockNumber', - GasLimit = 'gasLimit', - GasPrice = 'gasPrice', - GasUsed = 'gasUsed', - Hash = 'hash', + Amount0 = 'amount0', + Amount1 = 'amount1', + AmountUsd = 'amountUSD', Id = 'id', LogIndex = 'logIndex', - Nonce = 'nonce', + Origin = 'origin', + OriginId = 'origin__id', Pool = 'pool', - PoolActiveLiquidity = 'pool__activeLiquidity', - PoolActiveLiquidityEth = 'pool__activeLiquidityETH', - PoolActiveLiquidityUsd = 'pool__activeLiquidityUSD', + PoolBalanceOfBlock = 'pool__balanceOfBlock', PoolClosedPositionCount = 'pool__closedPositionCount', - PoolCreatedBlockNumber = 'pool__createdBlockNumber', - PoolCreatedTimestamp = 'pool__createdTimestamp', - PoolCumulativeDepositCount = 'pool__cumulativeDepositCount', - PoolCumulativeProtocolSideRevenueEth = 'pool__cumulativeProtocolSideRevenueETH', - PoolCumulativeProtocolSideRevenueUsd = 'pool__cumulativeProtocolSideRevenueUSD', - PoolCumulativeSupplySideRevenueEth = 'pool__cumulativeSupplySideRevenueETH', - PoolCumulativeSupplySideRevenueUsd = 'pool__cumulativeSupplySideRevenueUSD', - PoolCumulativeSwapCount = 'pool__cumulativeSwapCount', - PoolCumulativeTotalRevenueEth = 'pool__cumulativeTotalRevenueETH', - PoolCumulativeTotalRevenueUsd = 'pool__cumulativeTotalRevenueUSD', - PoolCumulativeVolumeEth = 'pool__cumulativeVolumeETH', - PoolCumulativeVolumeUsd = 'pool__cumulativeVolumeUSD', - PoolCumulativeWithdrawCount = 'pool__cumulativeWithdrawCount', + PoolCollectedFeesToken0 = 'pool__collectedFeesToken0', + PoolCollectedFeesToken1 = 'pool__collectedFeesToken1', + PoolCollectedFeesUsd = 'pool__collectedFeesUSD', + PoolCollectedVaultWethFees = 'pool__collectedVaultWETHFees', + PoolCreatedAtBlockNumber = 'pool__createdAtBlockNumber', + PoolCreatedAtTimestamp = 'pool__createdAtTimestamp', + PoolFeeGrowthGlobal0X128 = 'pool__feeGrowthGlobal0X128', + PoolFeeGrowthGlobal1X128 = 'pool__feeGrowthGlobal1X128', + PoolFeeTier = 'pool__feeTier', + PoolFeesUsd = 'pool__feesUSD', PoolId = 'pool__id', - PoolIsSingleSided = 'pool__isSingleSided', - PoolLastSnapshotDayId = 'pool__lastSnapshotDayID', - PoolLastSnapshotHourId = 'pool__lastSnapshotHourID', - PoolLastUpdateBlockNumber = 'pool__lastUpdateBlockNumber', - PoolLastUpdateTimestamp = 'pool__lastUpdateTimestamp', - PoolLiquidityTokenType = 'pool__liquidityTokenType', + PoolLiquidity = 'pool__liquidity', + PoolLiquidityProviderCount = 'pool__liquidityProviderCount', PoolName = 'pool__name', + PoolObservationIndex = 'pool__observationIndex', PoolOpenPositionCount = 'pool__openPositionCount', - PoolPositionCount = 'pool__positionCount', - PoolStakedOutputTokenAmount = 'pool__stakedOutputTokenAmount', + PoolSqrtPrice = 'pool__sqrtPrice', PoolSymbol = 'pool__symbol', PoolTick = 'pool__tick', + PoolToken0Price = 'pool__token0Price', + PoolToken1Price = 'pool__token1Price', PoolTotalLiquidity = 'pool__totalLiquidity', - PoolTotalLiquidityEth = 'pool__totalLiquidityETH', - PoolTotalLiquidityUsd = 'pool__totalLiquidityUSD', PoolTotalValueLockedEth = 'pool__totalValueLockedETH', + PoolTotalValueLockedToken0 = 'pool__totalValueLockedToken0', + PoolTotalValueLockedToken1 = 'pool__totalValueLockedToken1', PoolTotalValueLockedUsd = 'pool__totalValueLockedUSD', - Protocol = 'protocol', - ProtocolRegenesis = 'protocol___regenesis', - ProtocolActiveLiquidityEth = 'protocol__activeLiquidityETH', - ProtocolActiveLiquidityUsd = 'protocol__activeLiquidityUSD', - ProtocolCumulativePositionCount = 'protocol__cumulativePositionCount', - ProtocolCumulativeProtocolSideRevenueEth = 'protocol__cumulativeProtocolSideRevenueETH', - ProtocolCumulativeProtocolSideRevenueUsd = 'protocol__cumulativeProtocolSideRevenueUSD', - ProtocolCumulativeSupplySideRevenueEth = 'protocol__cumulativeSupplySideRevenueETH', - ProtocolCumulativeSupplySideRevenueUsd = 'protocol__cumulativeSupplySideRevenueUSD', - ProtocolCumulativeTotalRevenueEth = 'protocol__cumulativeTotalRevenueETH', - ProtocolCumulativeTotalRevenueUsd = 'protocol__cumulativeTotalRevenueUSD', - ProtocolCumulativeUniqueLPs = 'protocol__cumulativeUniqueLPs', - ProtocolCumulativeUniqueTraders = 'protocol__cumulativeUniqueTraders', - ProtocolCumulativeUniqueUsers = 'protocol__cumulativeUniqueUsers', - ProtocolCumulativeVolumeEth = 'protocol__cumulativeVolumeETH', - ProtocolCumulativeVolumeUsd = 'protocol__cumulativeVolumeUSD', - ProtocolId = 'protocol__id', - ProtocolLastSnapshotDayId = 'protocol__lastSnapshotDayID', - ProtocolLastUpdateBlockNumber = 'protocol__lastUpdateBlockNumber', - ProtocolLastUpdateTimestamp = 'protocol__lastUpdateTimestamp', - ProtocolMethodologyVersion = 'protocol__methodologyVersion', - ProtocolName = 'protocol__name', - ProtocolNetwork = 'protocol__network', - ProtocolOpenPositionCount = 'protocol__openPositionCount', - ProtocolProtocolControlledValueUsd = 'protocol__protocolControlledValueUSD', - ProtocolSchemaVersion = 'protocol__schemaVersion', - ProtocolSlug = 'protocol__slug', - ProtocolSubgraphVersion = 'protocol__subgraphVersion', - ProtocolTotalLiquidityEth = 'protocol__totalLiquidityETH', - ProtocolTotalLiquidityUsd = 'protocol__totalLiquidityUSD', - ProtocolTotalPoolCount = 'protocol__totalPoolCount', - ProtocolTotalValueLockedEth = 'protocol__totalValueLockedETH', - ProtocolTotalValueLockedUsd = 'protocol__totalValueLockedUSD', - ProtocolType = 'protocol__type', - ProtocolUncollectedProtocolSideValueEth = 'protocol__uncollectedProtocolSideValueETH', - ProtocolUncollectedProtocolSideValueUsd = 'protocol__uncollectedProtocolSideValueUSD', - ProtocolUncollectedSupplySideValueEth = 'protocol__uncollectedSupplySideValueETH', - ProtocolUncollectedSupplySideValueUsd = 'protocol__uncollectedSupplySideValueUSD', - ReserveAmounts = 'reserveAmounts', + PoolTotalValueLockedUsdUntracked = 'pool__totalValueLockedUSDUntracked', + PoolTxCount = 'pool__txCount', + PoolUntrackedVolumeUsd = 'pool__untrackedVolumeUSD', + PoolVolumeToken0 = 'pool__volumeToken0', + PoolVolumeToken1 = 'pool__volumeToken1', + PoolVolumeUsd = 'pool__volumeUSD', + Recipient = 'recipient', + RecipientId = 'recipient__id', + Sender = 'sender', + SenderId = 'sender__id', + SqrtPriceX96 = 'sqrtPriceX96', Tick = 'tick', Timestamp = 'timestamp', - TokenIn = 'tokenIn', - TokenInEthPricePool = 'tokenIn___ethPricePool', - TokenInLargePriceChangeBuffer = 'tokenIn___largePriceChangeBuffer', - TokenInLargeTvlImpactBuffer = 'tokenIn___largeTVLImpactBuffer', - TokenInLastPricePool = 'tokenIn___lastPricePool', - TokenInTotalSupply = 'tokenIn___totalSupply', - TokenInTotalValueLockedEth = 'tokenIn___totalValueLockedETH', - TokenInTotalValueLockedUsd = 'tokenIn___totalValueLockedUSD', - TokenInDecimals = 'tokenIn__decimals', - TokenInId = 'tokenIn__id', - TokenInLastPriceBlockNumber = 'tokenIn__lastPriceBlockNumber', - TokenInLastPriceEth = 'tokenIn__lastPriceETH', - TokenInLastPriceUsd = 'tokenIn__lastPriceUSD', - TokenInName = 'tokenIn__name', - TokenInSymbol = 'tokenIn__symbol', - TokenOut = 'tokenOut', - TokenOutEthPricePool = 'tokenOut___ethPricePool', - TokenOutLargePriceChangeBuffer = 'tokenOut___largePriceChangeBuffer', - TokenOutLargeTvlImpactBuffer = 'tokenOut___largeTVLImpactBuffer', - TokenOutLastPricePool = 'tokenOut___lastPricePool', - TokenOutTotalSupply = 'tokenOut___totalSupply', - TokenOutTotalValueLockedEth = 'tokenOut___totalValueLockedETH', - TokenOutTotalValueLockedUsd = 'tokenOut___totalValueLockedUSD', - TokenOutDecimals = 'tokenOut__decimals', - TokenOutId = 'tokenOut__id', - TokenOutLastPriceBlockNumber = 'tokenOut__lastPriceBlockNumber', - TokenOutLastPriceEth = 'tokenOut__lastPriceETH', - TokenOutLastPriceUsd = 'tokenOut__lastPriceUSD', - TokenOutName = 'tokenOut__name', - TokenOutSymbol = 'tokenOut__symbol' + Token0 = 'token0', + Token0Decimals = 'token0__decimals', + Token0DerivedEth = 'token0__derivedETH', + Token0DerivedUsd = 'token0__derivedUSD', + Token0FeesUsd = 'token0__feesUSD', + Token0Id = 'token0__id', + Token0Name = 'token0__name', + Token0PoolCount = 'token0__poolCount', + Token0Symbol = 'token0__symbol', + Token0TotalSupply = 'token0__totalSupply', + Token0TotalValueLocked = 'token0__totalValueLocked', + Token0TotalValueLockedUsd = 'token0__totalValueLockedUSD', + Token0TotalValueLockedUsdUntracked = 'token0__totalValueLockedUSDUntracked', + Token0TxCount = 'token0__txCount', + Token0UntrackedVolumeUsd = 'token0__untrackedVolumeUSD', + Token0Volume = 'token0__volume', + Token0VolumeUsd = 'token0__volumeUSD', + Token1 = 'token1', + Token1Decimals = 'token1__decimals', + Token1DerivedEth = 'token1__derivedETH', + Token1DerivedUsd = 'token1__derivedUSD', + Token1FeesUsd = 'token1__feesUSD', + Token1Id = 'token1__id', + Token1Name = 'token1__name', + Token1PoolCount = 'token1__poolCount', + Token1Symbol = 'token1__symbol', + Token1TotalSupply = 'token1__totalSupply', + Token1TotalValueLocked = 'token1__totalValueLocked', + Token1TotalValueLockedUsd = 'token1__totalValueLockedUSD', + Token1TotalValueLockedUsdUntracked = 'token1__totalValueLockedUSDUntracked', + Token1TxCount = 'token1__txCount', + Token1UntrackedVolumeUsd = 'token1__untrackedVolumeUSD', + Token1Volume = 'token1__volume', + Token1VolumeUsd = 'token1__volumeUSD', + Transaction = 'transaction', + TransactionBlockNumber = 'transaction__blockNumber', + TransactionGasPrice = 'transaction__gasPrice', + TransactionGasUsed = 'transaction__gasUsed', + TransactionId = 'transaction__id', + TransactionTimestamp = 'transaction__timestamp' } export type Tick = { __typename?: 'Tick'; - /** Creation block number */ - createdBlockNumber: Scalars['BigInt']['output']; - /** Creation timestamp */ - createdTimestamp: Scalars['BigInt']['output']; - /** { pool address }-{ tick index } */ + collectedFeesToken0: Scalars['BigDecimal']['output']; + collectedFeesToken1: Scalars['BigDecimal']['output']; + collectedFeesUSD: Scalars['BigDecimal']['output']; + createdAtBlockNumber: Scalars['BigInt']['output']; + createdAtTimestamp: Scalars['BigInt']['output']; + feeGrowthOutside0X128: Scalars['BigInt']['output']; + feeGrowthOutside1X128: Scalars['BigInt']['output']; + feesUSD: Scalars['BigDecimal']['output']; id: Scalars['ID']['output']; - /** tick index */ - index: Scalars['BigInt']['output']; - /** Day ID of the most recent daily snapshot */ - lastSnapshotDayID: Scalars['Int']['output']; - /** Hour ID of the most recent hourly snapshot */ - lastSnapshotHourID: Scalars['Int']['output']; - /** Block number of the last time this entity was updated */ - lastUpdateBlockNumber: Scalars['BigInt']['output']; - /** Timestamp of the last time this entity was updated */ - lastUpdateTimestamp: Scalars['BigInt']['output']; - /** total liquidity pool has as tick lower or upper */ liquidityGross: Scalars['BigInt']['output']; - /** total liquidity in USD pool has as tick lower or upper */ - liquidityGrossUSD: Scalars['BigDecimal']['output']; - /** how much liquidity changes when tick crossed */ liquidityNet: Scalars['BigInt']['output']; - /** how much liquidity in USD changes when tick crossed */ - liquidityNetUSD: Scalars['BigDecimal']['output']; - /** Liquidity pool this tick belongs to */ - pool: LiquidityPool; - /** calculated price of token0 of tick within this pool - constant */ - prices: Array; -}; - -export type TickDailySnapshot = { - __typename?: 'TickDailySnapshot'; - /** Block number of when this snapshot was taken/last modified (May be taken after interval has passed) */ - blockNumber: Scalars['BigInt']['output']; - /** Number of days since Unix epoch time */ - day: Scalars['Int']['output']; - /** { pool address }-{ tick index }-{ day ID } */ + liquidityProviderCount: Scalars['BigInt']['output']; + pool: Pool; + poolAddress?: Maybe; + price0: Scalars['BigDecimal']['output']; + price1: Scalars['BigDecimal']['output']; + tickIdx: Scalars['BigInt']['output']; + totalValueLockedETH: Scalars['BigDecimal']['output']; + totalValueLockedToken0: Scalars['BigDecimal']['output']; + totalValueLockedToken1: Scalars['BigDecimal']['output']; + untrackedVolumeUSD: Scalars['BigDecimal']['output']; + volumeToken0: Scalars['BigDecimal']['output']; + volumeToken1: Scalars['BigDecimal']['output']; + volumeUSD: Scalars['BigDecimal']['output']; +}; + +export type TickDayData = { + __typename?: 'TickDayData'; + date: Scalars['Int']['output']; + feeGrowthOutside0X128: Scalars['BigInt']['output']; + feeGrowthOutside1X128: Scalars['BigInt']['output']; + feesUSD: Scalars['BigDecimal']['output']; id: Scalars['ID']['output']; - /** total liquidity pool has as tick lower or upper */ liquidityGross: Scalars['BigInt']['output']; - /** total liquidity in USD pool has as tick lower or upper */ - liquidityGrossUSD: Scalars['BigDecimal']['output']; - /** how much liquidity changes when tick crossed */ liquidityNet: Scalars['BigInt']['output']; - /** how much liquidity in USD changes when tick crossed */ - liquidityNetUSD: Scalars['BigDecimal']['output']; - /** liquidity pool this tick belongs to */ - pool: LiquidityPool; - /** tick index */ + pool: Pool; tick: Tick; - /** Timestamp of when this snapshot was taken/last modified (May be taken after interval has passed) */ - timestamp: Scalars['BigInt']['output']; + totalValueLockedETH: Scalars['BigDecimal']['output']; + totalValueLockedToken0: Scalars['BigDecimal']['output']; + totalValueLockedToken1: Scalars['BigDecimal']['output']; + volumeToken0: Scalars['BigDecimal']['output']; + volumeToken1: Scalars['BigDecimal']['output']; + volumeUSD: Scalars['BigDecimal']['output']; }; -export type TickDailySnapshot_Filter = { +export type TickDayData_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; - blockNumber?: InputMaybe; - blockNumber_gt?: InputMaybe; - blockNumber_gte?: InputMaybe; - blockNumber_in?: InputMaybe>; - blockNumber_lt?: InputMaybe; - blockNumber_lte?: InputMaybe; - blockNumber_not?: InputMaybe; - blockNumber_not_in?: InputMaybe>; - day?: InputMaybe; - day_gt?: InputMaybe; - day_gte?: InputMaybe; - day_in?: InputMaybe>; - day_lt?: InputMaybe; - day_lte?: InputMaybe; - day_not?: InputMaybe; - day_not_in?: InputMaybe>; + and?: InputMaybe>>; + date?: InputMaybe; + date_gt?: InputMaybe; + date_gte?: InputMaybe; + date_in?: InputMaybe>; + date_lt?: InputMaybe; + date_lte?: InputMaybe; + date_not?: InputMaybe; + date_not_in?: InputMaybe>; + feeGrowthOutside0X128?: InputMaybe; + feeGrowthOutside0X128_gt?: InputMaybe; + feeGrowthOutside0X128_gte?: InputMaybe; + feeGrowthOutside0X128_in?: InputMaybe>; + feeGrowthOutside0X128_lt?: InputMaybe; + feeGrowthOutside0X128_lte?: InputMaybe; + feeGrowthOutside0X128_not?: InputMaybe; + feeGrowthOutside0X128_not_in?: InputMaybe>; + feeGrowthOutside1X128?: InputMaybe; + feeGrowthOutside1X128_gt?: InputMaybe; + feeGrowthOutside1X128_gte?: InputMaybe; + feeGrowthOutside1X128_in?: InputMaybe>; + feeGrowthOutside1X128_lt?: InputMaybe; + feeGrowthOutside1X128_lte?: InputMaybe; + feeGrowthOutside1X128_not?: InputMaybe; + feeGrowthOutside1X128_not_in?: InputMaybe>; + feesUSD?: InputMaybe; + feesUSD_gt?: InputMaybe; + feesUSD_gte?: InputMaybe; + feesUSD_in?: InputMaybe>; + feesUSD_lt?: InputMaybe; + feesUSD_lte?: InputMaybe; + feesUSD_not?: InputMaybe; + feesUSD_not_in?: InputMaybe>; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -6475,14 +4815,6 @@ export type TickDailySnapshot_Filter = { id_not?: InputMaybe; id_not_in?: InputMaybe>; liquidityGross?: InputMaybe; - liquidityGrossUSD?: InputMaybe; - liquidityGrossUSD_gt?: InputMaybe; - liquidityGrossUSD_gte?: InputMaybe; - liquidityGrossUSD_in?: InputMaybe>; - liquidityGrossUSD_lt?: InputMaybe; - liquidityGrossUSD_lte?: InputMaybe; - liquidityGrossUSD_not?: InputMaybe; - liquidityGrossUSD_not_in?: InputMaybe>; liquidityGross_gt?: InputMaybe; liquidityGross_gte?: InputMaybe; liquidityGross_in?: InputMaybe>; @@ -6491,14 +4823,6 @@ export type TickDailySnapshot_Filter = { liquidityGross_not?: InputMaybe; liquidityGross_not_in?: InputMaybe>; liquidityNet?: InputMaybe; - liquidityNetUSD?: InputMaybe; - liquidityNetUSD_gt?: InputMaybe; - liquidityNetUSD_gte?: InputMaybe; - liquidityNetUSD_in?: InputMaybe>; - liquidityNetUSD_lt?: InputMaybe; - liquidityNetUSD_lte?: InputMaybe; - liquidityNetUSD_not?: InputMaybe; - liquidityNetUSD_not_in?: InputMaybe>; liquidityNet_gt?: InputMaybe; liquidityNet_gte?: InputMaybe; liquidityNet_in?: InputMaybe>; @@ -6506,9 +4830,9 @@ export type TickDailySnapshot_Filter = { liquidityNet_lte?: InputMaybe; liquidityNet_not?: InputMaybe; liquidityNet_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; pool?: InputMaybe; - pool_?: InputMaybe; + pool_?: InputMaybe; pool_contains?: InputMaybe; pool_contains_nocase?: InputMaybe; pool_ends_with?: InputMaybe; @@ -6549,120 +4873,160 @@ export type TickDailySnapshot_Filter = { tick_not_starts_with_nocase?: InputMaybe; tick_starts_with?: InputMaybe; tick_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>; -}; - -export enum TickDailySnapshot_OrderBy { - BlockNumber = 'blockNumber', - Day = 'day', + totalValueLockedETH?: InputMaybe; + totalValueLockedETH_gt?: InputMaybe; + totalValueLockedETH_gte?: InputMaybe; + totalValueLockedETH_in?: InputMaybe>; + totalValueLockedETH_lt?: InputMaybe; + totalValueLockedETH_lte?: InputMaybe; + totalValueLockedETH_not?: InputMaybe; + totalValueLockedETH_not_in?: InputMaybe>; + totalValueLockedToken0?: InputMaybe; + totalValueLockedToken0_gt?: InputMaybe; + totalValueLockedToken0_gte?: InputMaybe; + totalValueLockedToken0_in?: InputMaybe>; + totalValueLockedToken0_lt?: InputMaybe; + totalValueLockedToken0_lte?: InputMaybe; + totalValueLockedToken0_not?: InputMaybe; + totalValueLockedToken0_not_in?: InputMaybe>; + totalValueLockedToken1?: InputMaybe; + totalValueLockedToken1_gt?: InputMaybe; + totalValueLockedToken1_gte?: InputMaybe; + totalValueLockedToken1_in?: InputMaybe>; + totalValueLockedToken1_lt?: InputMaybe; + totalValueLockedToken1_lte?: InputMaybe; + totalValueLockedToken1_not?: InputMaybe; + totalValueLockedToken1_not_in?: InputMaybe>; + volumeToken0?: InputMaybe; + volumeToken0_gt?: InputMaybe; + volumeToken0_gte?: InputMaybe; + volumeToken0_in?: InputMaybe>; + volumeToken0_lt?: InputMaybe; + volumeToken0_lte?: InputMaybe; + volumeToken0_not?: InputMaybe; + volumeToken0_not_in?: InputMaybe>; + volumeToken1?: InputMaybe; + volumeToken1_gt?: InputMaybe; + volumeToken1_gte?: InputMaybe; + volumeToken1_in?: InputMaybe>; + volumeToken1_lt?: InputMaybe; + volumeToken1_lte?: InputMaybe; + volumeToken1_not?: InputMaybe; + volumeToken1_not_in?: InputMaybe>; + volumeUSD?: InputMaybe; + volumeUSD_gt?: InputMaybe; + volumeUSD_gte?: InputMaybe; + volumeUSD_in?: InputMaybe>; + volumeUSD_lt?: InputMaybe; + volumeUSD_lte?: InputMaybe; + volumeUSD_not?: InputMaybe; + volumeUSD_not_in?: InputMaybe>; +}; + +export enum TickDayData_OrderBy { + Date = 'date', + FeeGrowthOutside0X128 = 'feeGrowthOutside0X128', + FeeGrowthOutside1X128 = 'feeGrowthOutside1X128', + FeesUsd = 'feesUSD', Id = 'id', LiquidityGross = 'liquidityGross', - LiquidityGrossUsd = 'liquidityGrossUSD', LiquidityNet = 'liquidityNet', - LiquidityNetUsd = 'liquidityNetUSD', Pool = 'pool', - PoolActiveLiquidity = 'pool__activeLiquidity', - PoolActiveLiquidityEth = 'pool__activeLiquidityETH', - PoolActiveLiquidityUsd = 'pool__activeLiquidityUSD', + PoolBalanceOfBlock = 'pool__balanceOfBlock', PoolClosedPositionCount = 'pool__closedPositionCount', - PoolCreatedBlockNumber = 'pool__createdBlockNumber', - PoolCreatedTimestamp = 'pool__createdTimestamp', - PoolCumulativeDepositCount = 'pool__cumulativeDepositCount', - PoolCumulativeProtocolSideRevenueEth = 'pool__cumulativeProtocolSideRevenueETH', - PoolCumulativeProtocolSideRevenueUsd = 'pool__cumulativeProtocolSideRevenueUSD', - PoolCumulativeSupplySideRevenueEth = 'pool__cumulativeSupplySideRevenueETH', - PoolCumulativeSupplySideRevenueUsd = 'pool__cumulativeSupplySideRevenueUSD', - PoolCumulativeSwapCount = 'pool__cumulativeSwapCount', - PoolCumulativeTotalRevenueEth = 'pool__cumulativeTotalRevenueETH', - PoolCumulativeTotalRevenueUsd = 'pool__cumulativeTotalRevenueUSD', - PoolCumulativeVolumeEth = 'pool__cumulativeVolumeETH', - PoolCumulativeVolumeUsd = 'pool__cumulativeVolumeUSD', - PoolCumulativeWithdrawCount = 'pool__cumulativeWithdrawCount', + PoolCollectedFeesToken0 = 'pool__collectedFeesToken0', + PoolCollectedFeesToken1 = 'pool__collectedFeesToken1', + PoolCollectedFeesUsd = 'pool__collectedFeesUSD', + PoolCollectedVaultWethFees = 'pool__collectedVaultWETHFees', + PoolCreatedAtBlockNumber = 'pool__createdAtBlockNumber', + PoolCreatedAtTimestamp = 'pool__createdAtTimestamp', + PoolFeeGrowthGlobal0X128 = 'pool__feeGrowthGlobal0X128', + PoolFeeGrowthGlobal1X128 = 'pool__feeGrowthGlobal1X128', + PoolFeeTier = 'pool__feeTier', + PoolFeesUsd = 'pool__feesUSD', PoolId = 'pool__id', - PoolIsSingleSided = 'pool__isSingleSided', - PoolLastSnapshotDayId = 'pool__lastSnapshotDayID', - PoolLastSnapshotHourId = 'pool__lastSnapshotHourID', - PoolLastUpdateBlockNumber = 'pool__lastUpdateBlockNumber', - PoolLastUpdateTimestamp = 'pool__lastUpdateTimestamp', - PoolLiquidityTokenType = 'pool__liquidityTokenType', + PoolLiquidity = 'pool__liquidity', + PoolLiquidityProviderCount = 'pool__liquidityProviderCount', PoolName = 'pool__name', + PoolObservationIndex = 'pool__observationIndex', PoolOpenPositionCount = 'pool__openPositionCount', - PoolPositionCount = 'pool__positionCount', - PoolStakedOutputTokenAmount = 'pool__stakedOutputTokenAmount', + PoolSqrtPrice = 'pool__sqrtPrice', PoolSymbol = 'pool__symbol', PoolTick = 'pool__tick', + PoolToken0Price = 'pool__token0Price', + PoolToken1Price = 'pool__token1Price', PoolTotalLiquidity = 'pool__totalLiquidity', - PoolTotalLiquidityEth = 'pool__totalLiquidityETH', - PoolTotalLiquidityUsd = 'pool__totalLiquidityUSD', PoolTotalValueLockedEth = 'pool__totalValueLockedETH', + PoolTotalValueLockedToken0 = 'pool__totalValueLockedToken0', + PoolTotalValueLockedToken1 = 'pool__totalValueLockedToken1', PoolTotalValueLockedUsd = 'pool__totalValueLockedUSD', + PoolTotalValueLockedUsdUntracked = 'pool__totalValueLockedUSDUntracked', + PoolTxCount = 'pool__txCount', + PoolUntrackedVolumeUsd = 'pool__untrackedVolumeUSD', + PoolVolumeToken0 = 'pool__volumeToken0', + PoolVolumeToken1 = 'pool__volumeToken1', + PoolVolumeUsd = 'pool__volumeUSD', Tick = 'tick', - TickCreatedBlockNumber = 'tick__createdBlockNumber', - TickCreatedTimestamp = 'tick__createdTimestamp', + TickCollectedFeesToken0 = 'tick__collectedFeesToken0', + TickCollectedFeesToken1 = 'tick__collectedFeesToken1', + TickCollectedFeesUsd = 'tick__collectedFeesUSD', + TickCreatedAtBlockNumber = 'tick__createdAtBlockNumber', + TickCreatedAtTimestamp = 'tick__createdAtTimestamp', + TickFeeGrowthOutside0X128 = 'tick__feeGrowthOutside0X128', + TickFeeGrowthOutside1X128 = 'tick__feeGrowthOutside1X128', + TickFeesUsd = 'tick__feesUSD', TickId = 'tick__id', - TickIndex = 'tick__index', - TickLastSnapshotDayId = 'tick__lastSnapshotDayID', - TickLastSnapshotHourId = 'tick__lastSnapshotHourID', - TickLastUpdateBlockNumber = 'tick__lastUpdateBlockNumber', - TickLastUpdateTimestamp = 'tick__lastUpdateTimestamp', TickLiquidityGross = 'tick__liquidityGross', - TickLiquidityGrossUsd = 'tick__liquidityGrossUSD', TickLiquidityNet = 'tick__liquidityNet', - TickLiquidityNetUsd = 'tick__liquidityNetUSD', - Timestamp = 'timestamp' + TickLiquidityProviderCount = 'tick__liquidityProviderCount', + TickPoolAddress = 'tick__poolAddress', + TickPrice0 = 'tick__price0', + TickPrice1 = 'tick__price1', + TickTickIdx = 'tick__tickIdx', + TickTotalValueLockedEth = 'tick__totalValueLockedETH', + TickTotalValueLockedToken0 = 'tick__totalValueLockedToken0', + TickTotalValueLockedToken1 = 'tick__totalValueLockedToken1', + TickUntrackedVolumeUsd = 'tick__untrackedVolumeUSD', + TickVolumeToken0 = 'tick__volumeToken0', + TickVolumeToken1 = 'tick__volumeToken1', + TickVolumeUsd = 'tick__volumeUSD', + TotalValueLockedEth = 'totalValueLockedETH', + TotalValueLockedToken0 = 'totalValueLockedToken0', + TotalValueLockedToken1 = 'totalValueLockedToken1', + VolumeToken0 = 'volumeToken0', + VolumeToken1 = 'volumeToken1', + VolumeUsd = 'volumeUSD' } -export type TickHourlySnapshot = { - __typename?: 'TickHourlySnapshot'; - /** Block number of when this snapshot was taken/last modified (May be taken after interval has passed) */ - blockNumber: Scalars['BigInt']['output']; - /** Number of hours since Unix epoch time */ - hour: Scalars['Int']['output']; - /** { pool address }-{ tick index }-{ hour ID } */ +export type TickHourData = { + __typename?: 'TickHourData'; + feesUSD: Scalars['BigDecimal']['output']; id: Scalars['ID']['output']; - /** total liquidity pool has as tick lower or upper */ liquidityGross: Scalars['BigInt']['output']; - /** total liquidity in USD pool has as tick lower or upper */ - liquidityGrossUSD: Scalars['BigDecimal']['output']; - /** how much liquidity changes when tick crossed */ liquidityNet: Scalars['BigInt']['output']; - /** how much liquidity in USD changes when tick crossed */ - liquidityNetUSD: Scalars['BigDecimal']['output']; - /** liquidity pool this tick belongs to */ - pool: LiquidityPool; - /** tick index */ + periodStartUnix: Scalars['Int']['output']; + pool: Pool; tick: Tick; - /** Timestamp of when this snapshot was taken/last modified (May be taken after interval has passed) */ - timestamp: Scalars['BigInt']['output']; + totalValueLockedETH: Scalars['BigDecimal']['output']; + totalValueLockedToken0: Scalars['BigDecimal']['output']; + totalValueLockedToken1: Scalars['BigDecimal']['output']; + volumeToken0: Scalars['BigDecimal']['output']; + volumeToken1: Scalars['BigDecimal']['output']; + volumeUSD: Scalars['BigDecimal']['output']; }; -export type TickHourlySnapshot_Filter = { +export type TickHourData_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; - blockNumber?: InputMaybe; - blockNumber_gt?: InputMaybe; - blockNumber_gte?: InputMaybe; - blockNumber_in?: InputMaybe>; - blockNumber_lt?: InputMaybe; - blockNumber_lte?: InputMaybe; - blockNumber_not?: InputMaybe; - blockNumber_not_in?: InputMaybe>; - hour?: InputMaybe; - hour_gt?: InputMaybe; - hour_gte?: InputMaybe; - hour_in?: InputMaybe>; - hour_lt?: InputMaybe; - hour_lte?: InputMaybe; - hour_not?: InputMaybe; - hour_not_in?: InputMaybe>; + and?: InputMaybe>>; + feesUSD?: InputMaybe; + feesUSD_gt?: InputMaybe; + feesUSD_gte?: InputMaybe; + feesUSD_in?: InputMaybe>; + feesUSD_lt?: InputMaybe; + feesUSD_lte?: InputMaybe; + feesUSD_not?: InputMaybe; + feesUSD_not_in?: InputMaybe>; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -6672,14 +5036,6 @@ export type TickHourlySnapshot_Filter = { id_not?: InputMaybe; id_not_in?: InputMaybe>; liquidityGross?: InputMaybe; - liquidityGrossUSD?: InputMaybe; - liquidityGrossUSD_gt?: InputMaybe; - liquidityGrossUSD_gte?: InputMaybe; - liquidityGrossUSD_in?: InputMaybe>; - liquidityGrossUSD_lt?: InputMaybe; - liquidityGrossUSD_lte?: InputMaybe; - liquidityGrossUSD_not?: InputMaybe; - liquidityGrossUSD_not_in?: InputMaybe>; liquidityGross_gt?: InputMaybe; liquidityGross_gte?: InputMaybe; liquidityGross_in?: InputMaybe>; @@ -6688,14 +5044,6 @@ export type TickHourlySnapshot_Filter = { liquidityGross_not?: InputMaybe; liquidityGross_not_in?: InputMaybe>; liquidityNet?: InputMaybe; - liquidityNetUSD?: InputMaybe; - liquidityNetUSD_gt?: InputMaybe; - liquidityNetUSD_gte?: InputMaybe; - liquidityNetUSD_in?: InputMaybe>; - liquidityNetUSD_lt?: InputMaybe; - liquidityNetUSD_lte?: InputMaybe; - liquidityNetUSD_not?: InputMaybe; - liquidityNetUSD_not_in?: InputMaybe>; liquidityNet_gt?: InputMaybe; liquidityNet_gte?: InputMaybe; liquidityNet_in?: InputMaybe>; @@ -6703,9 +5051,17 @@ export type TickHourlySnapshot_Filter = { liquidityNet_lte?: InputMaybe; liquidityNet_not?: InputMaybe; liquidityNet_not_in?: InputMaybe>; - or?: InputMaybe>>; + or?: InputMaybe>>; + periodStartUnix?: InputMaybe; + periodStartUnix_gt?: InputMaybe; + periodStartUnix_gte?: InputMaybe; + periodStartUnix_in?: InputMaybe>; + periodStartUnix_lt?: InputMaybe; + periodStartUnix_lte?: InputMaybe; + periodStartUnix_not?: InputMaybe; + periodStartUnix_not_in?: InputMaybe>; pool?: InputMaybe; - pool_?: InputMaybe; + pool_?: InputMaybe; pool_contains?: InputMaybe; pool_contains_nocase?: InputMaybe; pool_ends_with?: InputMaybe; @@ -6746,96 +5102,197 @@ export type TickHourlySnapshot_Filter = { tick_not_starts_with_nocase?: InputMaybe; tick_starts_with?: InputMaybe; tick_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>; -}; - -export enum TickHourlySnapshot_OrderBy { - BlockNumber = 'blockNumber', - Hour = 'hour', + totalValueLockedETH?: InputMaybe; + totalValueLockedETH_gt?: InputMaybe; + totalValueLockedETH_gte?: InputMaybe; + totalValueLockedETH_in?: InputMaybe>; + totalValueLockedETH_lt?: InputMaybe; + totalValueLockedETH_lte?: InputMaybe; + totalValueLockedETH_not?: InputMaybe; + totalValueLockedETH_not_in?: InputMaybe>; + totalValueLockedToken0?: InputMaybe; + totalValueLockedToken0_gt?: InputMaybe; + totalValueLockedToken0_gte?: InputMaybe; + totalValueLockedToken0_in?: InputMaybe>; + totalValueLockedToken0_lt?: InputMaybe; + totalValueLockedToken0_lte?: InputMaybe; + totalValueLockedToken0_not?: InputMaybe; + totalValueLockedToken0_not_in?: InputMaybe>; + totalValueLockedToken1?: InputMaybe; + totalValueLockedToken1_gt?: InputMaybe; + totalValueLockedToken1_gte?: InputMaybe; + totalValueLockedToken1_in?: InputMaybe>; + totalValueLockedToken1_lt?: InputMaybe; + totalValueLockedToken1_lte?: InputMaybe; + totalValueLockedToken1_not?: InputMaybe; + totalValueLockedToken1_not_in?: InputMaybe>; + volumeToken0?: InputMaybe; + volumeToken0_gt?: InputMaybe; + volumeToken0_gte?: InputMaybe; + volumeToken0_in?: InputMaybe>; + volumeToken0_lt?: InputMaybe; + volumeToken0_lte?: InputMaybe; + volumeToken0_not?: InputMaybe; + volumeToken0_not_in?: InputMaybe>; + volumeToken1?: InputMaybe; + volumeToken1_gt?: InputMaybe; + volumeToken1_gte?: InputMaybe; + volumeToken1_in?: InputMaybe>; + volumeToken1_lt?: InputMaybe; + volumeToken1_lte?: InputMaybe; + volumeToken1_not?: InputMaybe; + volumeToken1_not_in?: InputMaybe>; + volumeUSD?: InputMaybe; + volumeUSD_gt?: InputMaybe; + volumeUSD_gte?: InputMaybe; + volumeUSD_in?: InputMaybe>; + volumeUSD_lt?: InputMaybe; + volumeUSD_lte?: InputMaybe; + volumeUSD_not?: InputMaybe; + volumeUSD_not_in?: InputMaybe>; +}; + +export enum TickHourData_OrderBy { + FeesUsd = 'feesUSD', Id = 'id', LiquidityGross = 'liquidityGross', - LiquidityGrossUsd = 'liquidityGrossUSD', LiquidityNet = 'liquidityNet', - LiquidityNetUsd = 'liquidityNetUSD', + PeriodStartUnix = 'periodStartUnix', Pool = 'pool', - PoolActiveLiquidity = 'pool__activeLiquidity', - PoolActiveLiquidityEth = 'pool__activeLiquidityETH', - PoolActiveLiquidityUsd = 'pool__activeLiquidityUSD', + PoolBalanceOfBlock = 'pool__balanceOfBlock', PoolClosedPositionCount = 'pool__closedPositionCount', - PoolCreatedBlockNumber = 'pool__createdBlockNumber', - PoolCreatedTimestamp = 'pool__createdTimestamp', - PoolCumulativeDepositCount = 'pool__cumulativeDepositCount', - PoolCumulativeProtocolSideRevenueEth = 'pool__cumulativeProtocolSideRevenueETH', - PoolCumulativeProtocolSideRevenueUsd = 'pool__cumulativeProtocolSideRevenueUSD', - PoolCumulativeSupplySideRevenueEth = 'pool__cumulativeSupplySideRevenueETH', - PoolCumulativeSupplySideRevenueUsd = 'pool__cumulativeSupplySideRevenueUSD', - PoolCumulativeSwapCount = 'pool__cumulativeSwapCount', - PoolCumulativeTotalRevenueEth = 'pool__cumulativeTotalRevenueETH', - PoolCumulativeTotalRevenueUsd = 'pool__cumulativeTotalRevenueUSD', - PoolCumulativeVolumeEth = 'pool__cumulativeVolumeETH', - PoolCumulativeVolumeUsd = 'pool__cumulativeVolumeUSD', - PoolCumulativeWithdrawCount = 'pool__cumulativeWithdrawCount', + PoolCollectedFeesToken0 = 'pool__collectedFeesToken0', + PoolCollectedFeesToken1 = 'pool__collectedFeesToken1', + PoolCollectedFeesUsd = 'pool__collectedFeesUSD', + PoolCollectedVaultWethFees = 'pool__collectedVaultWETHFees', + PoolCreatedAtBlockNumber = 'pool__createdAtBlockNumber', + PoolCreatedAtTimestamp = 'pool__createdAtTimestamp', + PoolFeeGrowthGlobal0X128 = 'pool__feeGrowthGlobal0X128', + PoolFeeGrowthGlobal1X128 = 'pool__feeGrowthGlobal1X128', + PoolFeeTier = 'pool__feeTier', + PoolFeesUsd = 'pool__feesUSD', PoolId = 'pool__id', - PoolIsSingleSided = 'pool__isSingleSided', - PoolLastSnapshotDayId = 'pool__lastSnapshotDayID', - PoolLastSnapshotHourId = 'pool__lastSnapshotHourID', - PoolLastUpdateBlockNumber = 'pool__lastUpdateBlockNumber', - PoolLastUpdateTimestamp = 'pool__lastUpdateTimestamp', - PoolLiquidityTokenType = 'pool__liquidityTokenType', + PoolLiquidity = 'pool__liquidity', + PoolLiquidityProviderCount = 'pool__liquidityProviderCount', PoolName = 'pool__name', + PoolObservationIndex = 'pool__observationIndex', PoolOpenPositionCount = 'pool__openPositionCount', - PoolPositionCount = 'pool__positionCount', - PoolStakedOutputTokenAmount = 'pool__stakedOutputTokenAmount', + PoolSqrtPrice = 'pool__sqrtPrice', PoolSymbol = 'pool__symbol', PoolTick = 'pool__tick', + PoolToken0Price = 'pool__token0Price', + PoolToken1Price = 'pool__token1Price', PoolTotalLiquidity = 'pool__totalLiquidity', - PoolTotalLiquidityEth = 'pool__totalLiquidityETH', - PoolTotalLiquidityUsd = 'pool__totalLiquidityUSD', PoolTotalValueLockedEth = 'pool__totalValueLockedETH', + PoolTotalValueLockedToken0 = 'pool__totalValueLockedToken0', + PoolTotalValueLockedToken1 = 'pool__totalValueLockedToken1', PoolTotalValueLockedUsd = 'pool__totalValueLockedUSD', + PoolTotalValueLockedUsdUntracked = 'pool__totalValueLockedUSDUntracked', + PoolTxCount = 'pool__txCount', + PoolUntrackedVolumeUsd = 'pool__untrackedVolumeUSD', + PoolVolumeToken0 = 'pool__volumeToken0', + PoolVolumeToken1 = 'pool__volumeToken1', + PoolVolumeUsd = 'pool__volumeUSD', Tick = 'tick', - TickCreatedBlockNumber = 'tick__createdBlockNumber', - TickCreatedTimestamp = 'tick__createdTimestamp', + TickCollectedFeesToken0 = 'tick__collectedFeesToken0', + TickCollectedFeesToken1 = 'tick__collectedFeesToken1', + TickCollectedFeesUsd = 'tick__collectedFeesUSD', + TickCreatedAtBlockNumber = 'tick__createdAtBlockNumber', + TickCreatedAtTimestamp = 'tick__createdAtTimestamp', + TickFeeGrowthOutside0X128 = 'tick__feeGrowthOutside0X128', + TickFeeGrowthOutside1X128 = 'tick__feeGrowthOutside1X128', + TickFeesUsd = 'tick__feesUSD', TickId = 'tick__id', - TickIndex = 'tick__index', - TickLastSnapshotDayId = 'tick__lastSnapshotDayID', - TickLastSnapshotHourId = 'tick__lastSnapshotHourID', - TickLastUpdateBlockNumber = 'tick__lastUpdateBlockNumber', - TickLastUpdateTimestamp = 'tick__lastUpdateTimestamp', TickLiquidityGross = 'tick__liquidityGross', - TickLiquidityGrossUsd = 'tick__liquidityGrossUSD', TickLiquidityNet = 'tick__liquidityNet', - TickLiquidityNetUsd = 'tick__liquidityNetUSD', - Timestamp = 'timestamp' + TickLiquidityProviderCount = 'tick__liquidityProviderCount', + TickPoolAddress = 'tick__poolAddress', + TickPrice0 = 'tick__price0', + TickPrice1 = 'tick__price1', + TickTickIdx = 'tick__tickIdx', + TickTotalValueLockedEth = 'tick__totalValueLockedETH', + TickTotalValueLockedToken0 = 'tick__totalValueLockedToken0', + TickTotalValueLockedToken1 = 'tick__totalValueLockedToken1', + TickUntrackedVolumeUsd = 'tick__untrackedVolumeUSD', + TickVolumeToken0 = 'tick__volumeToken0', + TickVolumeToken1 = 'tick__volumeToken1', + TickVolumeUsd = 'tick__volumeUSD', + TotalValueLockedEth = 'totalValueLockedETH', + TotalValueLockedToken0 = 'totalValueLockedToken0', + TotalValueLockedToken1 = 'totalValueLockedToken1', + VolumeToken0 = 'volumeToken0', + VolumeToken1 = 'volumeToken1', + VolumeUsd = 'volumeUSD' } export type Tick_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; and?: InputMaybe>>; - createdBlockNumber?: InputMaybe; - createdBlockNumber_gt?: InputMaybe; - createdBlockNumber_gte?: InputMaybe; - createdBlockNumber_in?: InputMaybe>; - createdBlockNumber_lt?: InputMaybe; - createdBlockNumber_lte?: InputMaybe; - createdBlockNumber_not?: InputMaybe; - createdBlockNumber_not_in?: InputMaybe>; - createdTimestamp?: InputMaybe; - createdTimestamp_gt?: InputMaybe; - createdTimestamp_gte?: InputMaybe; - createdTimestamp_in?: InputMaybe>; - createdTimestamp_lt?: InputMaybe; - createdTimestamp_lte?: InputMaybe; - createdTimestamp_not?: InputMaybe; - createdTimestamp_not_in?: InputMaybe>; + collectedFeesToken0?: InputMaybe; + collectedFeesToken0_gt?: InputMaybe; + collectedFeesToken0_gte?: InputMaybe; + collectedFeesToken0_in?: InputMaybe>; + collectedFeesToken0_lt?: InputMaybe; + collectedFeesToken0_lte?: InputMaybe; + collectedFeesToken0_not?: InputMaybe; + collectedFeesToken0_not_in?: InputMaybe>; + collectedFeesToken1?: InputMaybe; + collectedFeesToken1_gt?: InputMaybe; + collectedFeesToken1_gte?: InputMaybe; + collectedFeesToken1_in?: InputMaybe>; + collectedFeesToken1_lt?: InputMaybe; + collectedFeesToken1_lte?: InputMaybe; + collectedFeesToken1_not?: InputMaybe; + collectedFeesToken1_not_in?: InputMaybe>; + collectedFeesUSD?: InputMaybe; + collectedFeesUSD_gt?: InputMaybe; + collectedFeesUSD_gte?: InputMaybe; + collectedFeesUSD_in?: InputMaybe>; + collectedFeesUSD_lt?: InputMaybe; + collectedFeesUSD_lte?: InputMaybe; + collectedFeesUSD_not?: InputMaybe; + collectedFeesUSD_not_in?: InputMaybe>; + createdAtBlockNumber?: InputMaybe; + createdAtBlockNumber_gt?: InputMaybe; + createdAtBlockNumber_gte?: InputMaybe; + createdAtBlockNumber_in?: InputMaybe>; + createdAtBlockNumber_lt?: InputMaybe; + createdAtBlockNumber_lte?: InputMaybe; + createdAtBlockNumber_not?: InputMaybe; + createdAtBlockNumber_not_in?: InputMaybe>; + createdAtTimestamp?: InputMaybe; + createdAtTimestamp_gt?: InputMaybe; + createdAtTimestamp_gte?: InputMaybe; + createdAtTimestamp_in?: InputMaybe>; + createdAtTimestamp_lt?: InputMaybe; + createdAtTimestamp_lte?: InputMaybe; + createdAtTimestamp_not?: InputMaybe; + createdAtTimestamp_not_in?: InputMaybe>; + feeGrowthOutside0X128?: InputMaybe; + feeGrowthOutside0X128_gt?: InputMaybe; + feeGrowthOutside0X128_gte?: InputMaybe; + feeGrowthOutside0X128_in?: InputMaybe>; + feeGrowthOutside0X128_lt?: InputMaybe; + feeGrowthOutside0X128_lte?: InputMaybe; + feeGrowthOutside0X128_not?: InputMaybe; + feeGrowthOutside0X128_not_in?: InputMaybe>; + feeGrowthOutside1X128?: InputMaybe; + feeGrowthOutside1X128_gt?: InputMaybe; + feeGrowthOutside1X128_gte?: InputMaybe; + feeGrowthOutside1X128_in?: InputMaybe>; + feeGrowthOutside1X128_lt?: InputMaybe; + feeGrowthOutside1X128_lte?: InputMaybe; + feeGrowthOutside1X128_not?: InputMaybe; + feeGrowthOutside1X128_not_in?: InputMaybe>; + feesUSD?: InputMaybe; + feesUSD_gt?: InputMaybe; + feesUSD_gte?: InputMaybe; + feesUSD_in?: InputMaybe>; + feesUSD_lt?: InputMaybe; + feesUSD_lte?: InputMaybe; + feesUSD_not?: InputMaybe; + feesUSD_not_in?: InputMaybe>; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -6844,55 +5301,7 @@ export type Tick_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - index?: InputMaybe; - index_gt?: InputMaybe; - index_gte?: InputMaybe; - index_in?: InputMaybe>; - index_lt?: InputMaybe; - index_lte?: InputMaybe; - index_not?: InputMaybe; - index_not_in?: InputMaybe>; - lastSnapshotDayID?: InputMaybe; - lastSnapshotDayID_gt?: InputMaybe; - lastSnapshotDayID_gte?: InputMaybe; - lastSnapshotDayID_in?: InputMaybe>; - lastSnapshotDayID_lt?: InputMaybe; - lastSnapshotDayID_lte?: InputMaybe; - lastSnapshotDayID_not?: InputMaybe; - lastSnapshotDayID_not_in?: InputMaybe>; - lastSnapshotHourID?: InputMaybe; - lastSnapshotHourID_gt?: InputMaybe; - lastSnapshotHourID_gte?: InputMaybe; - lastSnapshotHourID_in?: InputMaybe>; - lastSnapshotHourID_lt?: InputMaybe; - lastSnapshotHourID_lte?: InputMaybe; - lastSnapshotHourID_not?: InputMaybe; - lastSnapshotHourID_not_in?: InputMaybe>; - lastUpdateBlockNumber?: InputMaybe; - lastUpdateBlockNumber_gt?: InputMaybe; - lastUpdateBlockNumber_gte?: InputMaybe; - lastUpdateBlockNumber_in?: InputMaybe>; - lastUpdateBlockNumber_lt?: InputMaybe; - lastUpdateBlockNumber_lte?: InputMaybe; - lastUpdateBlockNumber_not?: InputMaybe; - lastUpdateBlockNumber_not_in?: InputMaybe>; - lastUpdateTimestamp?: InputMaybe; - lastUpdateTimestamp_gt?: InputMaybe; - lastUpdateTimestamp_gte?: InputMaybe; - lastUpdateTimestamp_in?: InputMaybe>; - lastUpdateTimestamp_lt?: InputMaybe; - lastUpdateTimestamp_lte?: InputMaybe; - lastUpdateTimestamp_not?: InputMaybe; - lastUpdateTimestamp_not_in?: InputMaybe>; liquidityGross?: InputMaybe; - liquidityGrossUSD?: InputMaybe; - liquidityGrossUSD_gt?: InputMaybe; - liquidityGrossUSD_gte?: InputMaybe; - liquidityGrossUSD_in?: InputMaybe>; - liquidityGrossUSD_lt?: InputMaybe; - liquidityGrossUSD_lte?: InputMaybe; - liquidityGrossUSD_not?: InputMaybe; - liquidityGrossUSD_not_in?: InputMaybe>; liquidityGross_gt?: InputMaybe; liquidityGross_gte?: InputMaybe; liquidityGross_in?: InputMaybe>; @@ -6901,14 +5310,6 @@ export type Tick_Filter = { liquidityGross_not?: InputMaybe; liquidityGross_not_in?: InputMaybe>; liquidityNet?: InputMaybe; - liquidityNetUSD?: InputMaybe; - liquidityNetUSD_gt?: InputMaybe; - liquidityNetUSD_gte?: InputMaybe; - liquidityNetUSD_in?: InputMaybe>; - liquidityNetUSD_lt?: InputMaybe; - liquidityNetUSD_lte?: InputMaybe; - liquidityNetUSD_not?: InputMaybe; - liquidityNetUSD_not_in?: InputMaybe>; liquidityNet_gt?: InputMaybe; liquidityNet_gte?: InputMaybe; liquidityNet_in?: InputMaybe>; @@ -6916,9 +5317,37 @@ export type Tick_Filter = { liquidityNet_lte?: InputMaybe; liquidityNet_not?: InputMaybe; liquidityNet_not_in?: InputMaybe>; + liquidityProviderCount?: InputMaybe; + liquidityProviderCount_gt?: InputMaybe; + liquidityProviderCount_gte?: InputMaybe; + liquidityProviderCount_in?: InputMaybe>; + liquidityProviderCount_lt?: InputMaybe; + liquidityProviderCount_lte?: InputMaybe; + liquidityProviderCount_not?: InputMaybe; + liquidityProviderCount_not_in?: InputMaybe>; or?: InputMaybe>>; pool?: InputMaybe; - pool_?: InputMaybe; + poolAddress?: InputMaybe; + poolAddress_contains?: InputMaybe; + poolAddress_contains_nocase?: InputMaybe; + poolAddress_ends_with?: InputMaybe; + poolAddress_ends_with_nocase?: InputMaybe; + poolAddress_gt?: InputMaybe; + poolAddress_gte?: InputMaybe; + poolAddress_in?: InputMaybe>; + poolAddress_lt?: InputMaybe; + poolAddress_lte?: InputMaybe; + poolAddress_not?: InputMaybe; + poolAddress_not_contains?: InputMaybe; + poolAddress_not_contains_nocase?: InputMaybe; + poolAddress_not_ends_with?: InputMaybe; + poolAddress_not_ends_with_nocase?: InputMaybe; + poolAddress_not_in?: InputMaybe>; + poolAddress_not_starts_with?: InputMaybe; + poolAddress_not_starts_with_nocase?: InputMaybe; + poolAddress_starts_with?: InputMaybe; + poolAddress_starts_with_nocase?: InputMaybe; + pool_?: InputMaybe; pool_contains?: InputMaybe; pool_contains_nocase?: InputMaybe; pool_ends_with?: InputMaybe; @@ -6938,188 +5367,592 @@ export type Tick_Filter = { pool_not_starts_with_nocase?: InputMaybe; pool_starts_with?: InputMaybe; pool_starts_with_nocase?: InputMaybe; - prices?: InputMaybe>; - prices_contains?: InputMaybe>; - prices_contains_nocase?: InputMaybe>; - prices_not?: InputMaybe>; - prices_not_contains?: InputMaybe>; - prices_not_contains_nocase?: InputMaybe>; + price0?: InputMaybe; + price0_gt?: InputMaybe; + price0_gte?: InputMaybe; + price0_in?: InputMaybe>; + price0_lt?: InputMaybe; + price0_lte?: InputMaybe; + price0_not?: InputMaybe; + price0_not_in?: InputMaybe>; + price1?: InputMaybe; + price1_gt?: InputMaybe; + price1_gte?: InputMaybe; + price1_in?: InputMaybe>; + price1_lt?: InputMaybe; + price1_lte?: InputMaybe; + price1_not?: InputMaybe; + price1_not_in?: InputMaybe>; + tickIdx?: InputMaybe; + tickIdx_gt?: InputMaybe; + tickIdx_gte?: InputMaybe; + tickIdx_in?: InputMaybe>; + tickIdx_lt?: InputMaybe; + tickIdx_lte?: InputMaybe; + tickIdx_not?: InputMaybe; + tickIdx_not_in?: InputMaybe>; + totalValueLockedETH?: InputMaybe; + totalValueLockedETH_gt?: InputMaybe; + totalValueLockedETH_gte?: InputMaybe; + totalValueLockedETH_in?: InputMaybe>; + totalValueLockedETH_lt?: InputMaybe; + totalValueLockedETH_lte?: InputMaybe; + totalValueLockedETH_not?: InputMaybe; + totalValueLockedETH_not_in?: InputMaybe>; + totalValueLockedToken0?: InputMaybe; + totalValueLockedToken0_gt?: InputMaybe; + totalValueLockedToken0_gte?: InputMaybe; + totalValueLockedToken0_in?: InputMaybe>; + totalValueLockedToken0_lt?: InputMaybe; + totalValueLockedToken0_lte?: InputMaybe; + totalValueLockedToken0_not?: InputMaybe; + totalValueLockedToken0_not_in?: InputMaybe>; + totalValueLockedToken1?: InputMaybe; + totalValueLockedToken1_gt?: InputMaybe; + totalValueLockedToken1_gte?: InputMaybe; + totalValueLockedToken1_in?: InputMaybe>; + totalValueLockedToken1_lt?: InputMaybe; + totalValueLockedToken1_lte?: InputMaybe; + totalValueLockedToken1_not?: InputMaybe; + totalValueLockedToken1_not_in?: InputMaybe>; + untrackedVolumeUSD?: InputMaybe; + untrackedVolumeUSD_gt?: InputMaybe; + untrackedVolumeUSD_gte?: InputMaybe; + untrackedVolumeUSD_in?: InputMaybe>; + untrackedVolumeUSD_lt?: InputMaybe; + untrackedVolumeUSD_lte?: InputMaybe; + untrackedVolumeUSD_not?: InputMaybe; + untrackedVolumeUSD_not_in?: InputMaybe>; + volumeToken0?: InputMaybe; + volumeToken0_gt?: InputMaybe; + volumeToken0_gte?: InputMaybe; + volumeToken0_in?: InputMaybe>; + volumeToken0_lt?: InputMaybe; + volumeToken0_lte?: InputMaybe; + volumeToken0_not?: InputMaybe; + volumeToken0_not_in?: InputMaybe>; + volumeToken1?: InputMaybe; + volumeToken1_gt?: InputMaybe; + volumeToken1_gte?: InputMaybe; + volumeToken1_in?: InputMaybe>; + volumeToken1_lt?: InputMaybe; + volumeToken1_lte?: InputMaybe; + volumeToken1_not?: InputMaybe; + volumeToken1_not_in?: InputMaybe>; + volumeUSD?: InputMaybe; + volumeUSD_gt?: InputMaybe; + volumeUSD_gte?: InputMaybe; + volumeUSD_in?: InputMaybe>; + volumeUSD_lt?: InputMaybe; + volumeUSD_lte?: InputMaybe; + volumeUSD_not?: InputMaybe; + volumeUSD_not_in?: InputMaybe>; }; export enum Tick_OrderBy { - CreatedBlockNumber = 'createdBlockNumber', - CreatedTimestamp = 'createdTimestamp', + CollectedFeesToken0 = 'collectedFeesToken0', + CollectedFeesToken1 = 'collectedFeesToken1', + CollectedFeesUsd = 'collectedFeesUSD', + CreatedAtBlockNumber = 'createdAtBlockNumber', + CreatedAtTimestamp = 'createdAtTimestamp', + FeeGrowthOutside0X128 = 'feeGrowthOutside0X128', + FeeGrowthOutside1X128 = 'feeGrowthOutside1X128', + FeesUsd = 'feesUSD', Id = 'id', - Index = 'index', - LastSnapshotDayId = 'lastSnapshotDayID', - LastSnapshotHourId = 'lastSnapshotHourID', - LastUpdateBlockNumber = 'lastUpdateBlockNumber', - LastUpdateTimestamp = 'lastUpdateTimestamp', LiquidityGross = 'liquidityGross', - LiquidityGrossUsd = 'liquidityGrossUSD', LiquidityNet = 'liquidityNet', - LiquidityNetUsd = 'liquidityNetUSD', + LiquidityProviderCount = 'liquidityProviderCount', Pool = 'pool', - PoolActiveLiquidity = 'pool__activeLiquidity', - PoolActiveLiquidityEth = 'pool__activeLiquidityETH', - PoolActiveLiquidityUsd = 'pool__activeLiquidityUSD', + PoolAddress = 'poolAddress', + PoolBalanceOfBlock = 'pool__balanceOfBlock', PoolClosedPositionCount = 'pool__closedPositionCount', - PoolCreatedBlockNumber = 'pool__createdBlockNumber', - PoolCreatedTimestamp = 'pool__createdTimestamp', - PoolCumulativeDepositCount = 'pool__cumulativeDepositCount', - PoolCumulativeProtocolSideRevenueEth = 'pool__cumulativeProtocolSideRevenueETH', - PoolCumulativeProtocolSideRevenueUsd = 'pool__cumulativeProtocolSideRevenueUSD', - PoolCumulativeSupplySideRevenueEth = 'pool__cumulativeSupplySideRevenueETH', - PoolCumulativeSupplySideRevenueUsd = 'pool__cumulativeSupplySideRevenueUSD', - PoolCumulativeSwapCount = 'pool__cumulativeSwapCount', - PoolCumulativeTotalRevenueEth = 'pool__cumulativeTotalRevenueETH', - PoolCumulativeTotalRevenueUsd = 'pool__cumulativeTotalRevenueUSD', - PoolCumulativeVolumeEth = 'pool__cumulativeVolumeETH', - PoolCumulativeVolumeUsd = 'pool__cumulativeVolumeUSD', - PoolCumulativeWithdrawCount = 'pool__cumulativeWithdrawCount', + PoolCollectedFeesToken0 = 'pool__collectedFeesToken0', + PoolCollectedFeesToken1 = 'pool__collectedFeesToken1', + PoolCollectedFeesUsd = 'pool__collectedFeesUSD', + PoolCollectedVaultWethFees = 'pool__collectedVaultWETHFees', + PoolCreatedAtBlockNumber = 'pool__createdAtBlockNumber', + PoolCreatedAtTimestamp = 'pool__createdAtTimestamp', + PoolFeeGrowthGlobal0X128 = 'pool__feeGrowthGlobal0X128', + PoolFeeGrowthGlobal1X128 = 'pool__feeGrowthGlobal1X128', + PoolFeeTier = 'pool__feeTier', + PoolFeesUsd = 'pool__feesUSD', PoolId = 'pool__id', - PoolIsSingleSided = 'pool__isSingleSided', - PoolLastSnapshotDayId = 'pool__lastSnapshotDayID', - PoolLastSnapshotHourId = 'pool__lastSnapshotHourID', - PoolLastUpdateBlockNumber = 'pool__lastUpdateBlockNumber', - PoolLastUpdateTimestamp = 'pool__lastUpdateTimestamp', - PoolLiquidityTokenType = 'pool__liquidityTokenType', + PoolLiquidity = 'pool__liquidity', + PoolLiquidityProviderCount = 'pool__liquidityProviderCount', PoolName = 'pool__name', + PoolObservationIndex = 'pool__observationIndex', PoolOpenPositionCount = 'pool__openPositionCount', - PoolPositionCount = 'pool__positionCount', - PoolStakedOutputTokenAmount = 'pool__stakedOutputTokenAmount', + PoolSqrtPrice = 'pool__sqrtPrice', PoolSymbol = 'pool__symbol', PoolTick = 'pool__tick', + PoolToken0Price = 'pool__token0Price', + PoolToken1Price = 'pool__token1Price', PoolTotalLiquidity = 'pool__totalLiquidity', - PoolTotalLiquidityEth = 'pool__totalLiquidityETH', - PoolTotalLiquidityUsd = 'pool__totalLiquidityUSD', PoolTotalValueLockedEth = 'pool__totalValueLockedETH', + PoolTotalValueLockedToken0 = 'pool__totalValueLockedToken0', + PoolTotalValueLockedToken1 = 'pool__totalValueLockedToken1', PoolTotalValueLockedUsd = 'pool__totalValueLockedUSD', - Prices = 'prices' + PoolTotalValueLockedUsdUntracked = 'pool__totalValueLockedUSDUntracked', + PoolTxCount = 'pool__txCount', + PoolUntrackedVolumeUsd = 'pool__untrackedVolumeUSD', + PoolVolumeToken0 = 'pool__volumeToken0', + PoolVolumeToken1 = 'pool__volumeToken1', + PoolVolumeUsd = 'pool__volumeUSD', + Price0 = 'price0', + Price1 = 'price1', + TickIdx = 'tickIdx', + TotalValueLockedEth = 'totalValueLockedETH', + TotalValueLockedToken0 = 'totalValueLockedToken0', + TotalValueLockedToken1 = 'totalValueLockedToken1', + UntrackedVolumeUsd = 'untrackedVolumeUSD', + VolumeToken0 = 'volumeToken0', + VolumeToken1 = 'volumeToken1', + VolumeUsd = 'volumeUSD' } export type Token = { __typename?: 'Token'; - /** pool with WETH */ - _ethPricePool: Scalars['String']['output']; - _largePriceChangeBuffer: Scalars['Int']['output']; - _largeTVLImpactBuffer: Scalars['Int']['output']; - /** last pool that gave this token a price */ - _lastPricePool?: Maybe; - /** amount of tokens in the protocol */ - _totalSupply: Scalars['BigInt']['output']; - _totalValueLockedETH: Scalars['BigDecimal']['output']; - /** Total value locked in the protocol */ - _totalValueLockedUSD: Scalars['BigDecimal']['output']; - /** The number of decimal places this token uses, default to 18 */ - decimals: Scalars['Int']['output']; - /** Smart contract address of the token */ + decimals: Scalars['BigInt']['output']; + derivedETH: Scalars['BigDecimal']['output']; + derivedUSD: Scalars['BigDecimal']['output']; + feesUSD: Scalars['BigDecimal']['output']; id: Scalars['ID']['output']; - /** Optional field to track the block number of the last token price */ - lastPriceBlockNumber?: Maybe; - /** Optional field to track the price of a token, mostly for caching purposes */ - lastPriceETH?: Maybe; - /** Optional field to track the price of a token, mostly for caching purposes */ - lastPriceUSD?: Maybe; - /** Name of the token, mirrored from the smart contract */ name: Scalars['String']['output']; - /** Symbol of the token, mirrored from the smart contract */ + poolCount: Scalars['BigInt']['output']; symbol: Scalars['String']['output']; + tokenDayData: Array; + totalSupply: Scalars['BigInt']['output']; + totalValueLocked: Scalars['BigDecimal']['output']; + totalValueLockedUSD: Scalars['BigDecimal']['output']; + totalValueLockedUSDUntracked: Scalars['BigDecimal']['output']; + txCount: Scalars['BigInt']['output']; + untrackedVolumeUSD: Scalars['BigDecimal']['output']; + vault?: Maybe; + volume: Scalars['BigDecimal']['output']; + volumeUSD: Scalars['BigDecimal']['output']; + whitelistPools: Array; +}; + + +export type TokenTokenDayDataArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + + +export type TokenWhitelistPoolsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + +export type TokenDayData = { + __typename?: 'TokenDayData'; + close: Scalars['BigDecimal']['output']; + date: Scalars['Int']['output']; + feesUSD: Scalars['BigDecimal']['output']; + high: Scalars['BigDecimal']['output']; + id: Scalars['ID']['output']; + low: Scalars['BigDecimal']['output']; + open: Scalars['BigDecimal']['output']; + priceUSD: Scalars['BigDecimal']['output']; + token: Token; + totalValueLocked: Scalars['BigDecimal']['output']; + totalValueLockedUSD: Scalars['BigDecimal']['output']; + untrackedVolumeUSD: Scalars['BigDecimal']['output']; + volume: Scalars['BigDecimal']['output']; + volumeUSD: Scalars['BigDecimal']['output']; +}; + +export type TokenDayData_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + close?: InputMaybe; + close_gt?: InputMaybe; + close_gte?: InputMaybe; + close_in?: InputMaybe>; + close_lt?: InputMaybe; + close_lte?: InputMaybe; + close_not?: InputMaybe; + close_not_in?: InputMaybe>; + date?: InputMaybe; + date_gt?: InputMaybe; + date_gte?: InputMaybe; + date_in?: InputMaybe>; + date_lt?: InputMaybe; + date_lte?: InputMaybe; + date_not?: InputMaybe; + date_not_in?: InputMaybe>; + feesUSD?: InputMaybe; + feesUSD_gt?: InputMaybe; + feesUSD_gte?: InputMaybe; + feesUSD_in?: InputMaybe>; + feesUSD_lt?: InputMaybe; + feesUSD_lte?: InputMaybe; + feesUSD_not?: InputMaybe; + feesUSD_not_in?: InputMaybe>; + high?: InputMaybe; + high_gt?: InputMaybe; + high_gte?: InputMaybe; + high_in?: InputMaybe>; + high_lt?: InputMaybe; + high_lte?: InputMaybe; + high_not?: InputMaybe; + high_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>; + low?: InputMaybe; + low_gt?: InputMaybe; + low_gte?: InputMaybe; + low_in?: InputMaybe>; + low_lt?: InputMaybe; + low_lte?: InputMaybe; + low_not?: InputMaybe; + low_not_in?: InputMaybe>; + open?: InputMaybe; + open_gt?: InputMaybe; + open_gte?: InputMaybe; + open_in?: InputMaybe>; + open_lt?: InputMaybe; + open_lte?: InputMaybe; + open_not?: InputMaybe; + open_not_in?: InputMaybe>; + or?: InputMaybe>>; + priceUSD?: InputMaybe; + priceUSD_gt?: InputMaybe; + priceUSD_gte?: InputMaybe; + priceUSD_in?: InputMaybe>; + priceUSD_lt?: InputMaybe; + priceUSD_lte?: InputMaybe; + priceUSD_not?: InputMaybe; + priceUSD_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; + totalValueLocked?: InputMaybe; + totalValueLockedUSD?: InputMaybe; + totalValueLockedUSD_gt?: InputMaybe; + totalValueLockedUSD_gte?: InputMaybe; + totalValueLockedUSD_in?: InputMaybe>; + totalValueLockedUSD_lt?: InputMaybe; + totalValueLockedUSD_lte?: InputMaybe; + totalValueLockedUSD_not?: InputMaybe; + totalValueLockedUSD_not_in?: InputMaybe>; + totalValueLocked_gt?: InputMaybe; + totalValueLocked_gte?: InputMaybe; + totalValueLocked_in?: InputMaybe>; + totalValueLocked_lt?: InputMaybe; + totalValueLocked_lte?: InputMaybe; + totalValueLocked_not?: InputMaybe; + totalValueLocked_not_in?: InputMaybe>; + untrackedVolumeUSD?: InputMaybe; + untrackedVolumeUSD_gt?: InputMaybe; + untrackedVolumeUSD_gte?: InputMaybe; + untrackedVolumeUSD_in?: InputMaybe>; + untrackedVolumeUSD_lt?: InputMaybe; + untrackedVolumeUSD_lte?: InputMaybe; + untrackedVolumeUSD_not?: InputMaybe; + untrackedVolumeUSD_not_in?: InputMaybe>; + volume?: InputMaybe; + volumeUSD?: InputMaybe; + volumeUSD_gt?: InputMaybe; + volumeUSD_gte?: InputMaybe; + volumeUSD_in?: InputMaybe>; + volumeUSD_lt?: InputMaybe; + volumeUSD_lte?: InputMaybe; + volumeUSD_not?: InputMaybe; + volumeUSD_not_in?: InputMaybe>; + volume_gt?: InputMaybe; + volume_gte?: InputMaybe; + volume_in?: InputMaybe>; + volume_lt?: InputMaybe; + volume_lte?: InputMaybe; + volume_not?: InputMaybe; + volume_not_in?: InputMaybe>; +}; + +export enum TokenDayData_OrderBy { + Close = 'close', + Date = 'date', + FeesUsd = 'feesUSD', + High = 'high', + Id = 'id', + Low = 'low', + Open = 'open', + PriceUsd = 'priceUSD', + Token = 'token', + TokenDecimals = 'token__decimals', + TokenDerivedEth = 'token__derivedETH', + TokenDerivedUsd = 'token__derivedUSD', + TokenFeesUsd = 'token__feesUSD', + TokenId = 'token__id', + TokenName = 'token__name', + TokenPoolCount = 'token__poolCount', + TokenSymbol = 'token__symbol', + TokenTotalSupply = 'token__totalSupply', + TokenTotalValueLocked = 'token__totalValueLocked', + TokenTotalValueLockedUsd = 'token__totalValueLockedUSD', + TokenTotalValueLockedUsdUntracked = 'token__totalValueLockedUSDUntracked', + TokenTxCount = 'token__txCount', + TokenUntrackedVolumeUsd = 'token__untrackedVolumeUSD', + TokenVolume = 'token__volume', + TokenVolumeUsd = 'token__volumeUSD', + TotalValueLocked = 'totalValueLocked', + TotalValueLockedUsd = 'totalValueLockedUSD', + UntrackedVolumeUsd = 'untrackedVolumeUSD', + Volume = 'volume', + VolumeUsd = 'volumeUSD' +} + +export type TokenHourData = { + __typename?: 'TokenHourData'; + close: Scalars['BigDecimal']['output']; + feesUSD: Scalars['BigDecimal']['output']; + high: Scalars['BigDecimal']['output']; + id: Scalars['ID']['output']; + low: Scalars['BigDecimal']['output']; + open: Scalars['BigDecimal']['output']; + periodStartUnix: Scalars['Int']['output']; + priceUSD: Scalars['BigDecimal']['output']; + token: Token; + totalValueLocked: Scalars['BigDecimal']['output']; + totalValueLockedUSD: Scalars['BigDecimal']['output']; + untrackedVolumeUSD: Scalars['BigDecimal']['output']; + volume: Scalars['BigDecimal']['output']; + volumeUSD: Scalars['BigDecimal']['output']; }; -export enum TokenType { - Bep20 = 'BEP20', - Bep721 = 'BEP721', - Bep1155 = 'BEP1155', - Erc20 = 'ERC20', - Erc721 = 'ERC721', - Erc1155 = 'ERC1155', - Multiple = 'MULTIPLE', - Unknown = 'UNKNOWN' +export type TokenHourData_Filter = { + /** Filter for the block changed event. */ + _change_block?: InputMaybe; + and?: InputMaybe>>; + close?: InputMaybe; + close_gt?: InputMaybe; + close_gte?: InputMaybe; + close_in?: InputMaybe>; + close_lt?: InputMaybe; + close_lte?: InputMaybe; + close_not?: InputMaybe; + close_not_in?: InputMaybe>; + feesUSD?: InputMaybe; + feesUSD_gt?: InputMaybe; + feesUSD_gte?: InputMaybe; + feesUSD_in?: InputMaybe>; + feesUSD_lt?: InputMaybe; + feesUSD_lte?: InputMaybe; + feesUSD_not?: InputMaybe; + feesUSD_not_in?: InputMaybe>; + high?: InputMaybe; + high_gt?: InputMaybe; + high_gte?: InputMaybe; + high_in?: InputMaybe>; + high_lt?: InputMaybe; + high_lte?: InputMaybe; + high_not?: InputMaybe; + high_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>; + low?: InputMaybe; + low_gt?: InputMaybe; + low_gte?: InputMaybe; + low_in?: InputMaybe>; + low_lt?: InputMaybe; + low_lte?: InputMaybe; + low_not?: InputMaybe; + low_not_in?: InputMaybe>; + open?: InputMaybe; + open_gt?: InputMaybe; + open_gte?: InputMaybe; + open_in?: InputMaybe>; + open_lt?: InputMaybe; + open_lte?: InputMaybe; + open_not?: InputMaybe; + open_not_in?: InputMaybe>; + or?: InputMaybe>>; + periodStartUnix?: InputMaybe; + periodStartUnix_gt?: InputMaybe; + periodStartUnix_gte?: InputMaybe; + periodStartUnix_in?: InputMaybe>; + periodStartUnix_lt?: InputMaybe; + periodStartUnix_lte?: InputMaybe; + periodStartUnix_not?: InputMaybe; + periodStartUnix_not_in?: InputMaybe>; + priceUSD?: InputMaybe; + priceUSD_gt?: InputMaybe; + priceUSD_gte?: InputMaybe; + priceUSD_in?: InputMaybe>; + priceUSD_lt?: InputMaybe; + priceUSD_lte?: InputMaybe; + priceUSD_not?: InputMaybe; + priceUSD_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; + totalValueLocked?: InputMaybe; + totalValueLockedUSD?: InputMaybe; + totalValueLockedUSD_gt?: InputMaybe; + totalValueLockedUSD_gte?: InputMaybe; + totalValueLockedUSD_in?: InputMaybe>; + totalValueLockedUSD_lt?: InputMaybe; + totalValueLockedUSD_lte?: InputMaybe; + totalValueLockedUSD_not?: InputMaybe; + totalValueLockedUSD_not_in?: InputMaybe>; + totalValueLocked_gt?: InputMaybe; + totalValueLocked_gte?: InputMaybe; + totalValueLocked_in?: InputMaybe>; + totalValueLocked_lt?: InputMaybe; + totalValueLocked_lte?: InputMaybe; + totalValueLocked_not?: InputMaybe; + totalValueLocked_not_in?: InputMaybe>; + untrackedVolumeUSD?: InputMaybe; + untrackedVolumeUSD_gt?: InputMaybe; + untrackedVolumeUSD_gte?: InputMaybe; + untrackedVolumeUSD_in?: InputMaybe>; + untrackedVolumeUSD_lt?: InputMaybe; + untrackedVolumeUSD_lte?: InputMaybe; + untrackedVolumeUSD_not?: InputMaybe; + untrackedVolumeUSD_not_in?: InputMaybe>; + volume?: InputMaybe; + volumeUSD?: InputMaybe; + volumeUSD_gt?: InputMaybe; + volumeUSD_gte?: InputMaybe; + volumeUSD_in?: InputMaybe>; + volumeUSD_lt?: InputMaybe; + volumeUSD_lte?: InputMaybe; + volumeUSD_not?: InputMaybe; + volumeUSD_not_in?: InputMaybe>; + volume_gt?: InputMaybe; + volume_gte?: InputMaybe; + volume_in?: InputMaybe>; + volume_lt?: InputMaybe; + volume_lte?: InputMaybe; + volume_not?: InputMaybe; + volume_not_in?: InputMaybe>; +}; + +export enum TokenHourData_OrderBy { + Close = 'close', + FeesUsd = 'feesUSD', + High = 'high', + Id = 'id', + Low = 'low', + Open = 'open', + PeriodStartUnix = 'periodStartUnix', + PriceUsd = 'priceUSD', + Token = 'token', + TokenDecimals = 'token__decimals', + TokenDerivedEth = 'token__derivedETH', + TokenDerivedUsd = 'token__derivedUSD', + TokenFeesUsd = 'token__feesUSD', + TokenId = 'token__id', + TokenName = 'token__name', + TokenPoolCount = 'token__poolCount', + TokenSymbol = 'token__symbol', + TokenTotalSupply = 'token__totalSupply', + TokenTotalValueLocked = 'token__totalValueLocked', + TokenTotalValueLockedUsd = 'token__totalValueLockedUSD', + TokenTotalValueLockedUsdUntracked = 'token__totalValueLockedUSDUntracked', + TokenTxCount = 'token__txCount', + TokenUntrackedVolumeUsd = 'token__untrackedVolumeUSD', + TokenVolume = 'token__volume', + TokenVolumeUsd = 'token__volumeUSD', + TotalValueLocked = 'totalValueLocked', + TotalValueLockedUsd = 'totalValueLockedUSD', + UntrackedVolumeUsd = 'untrackedVolumeUSD', + Volume = 'volume', + VolumeUsd = 'volumeUSD' } export type Token_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - _ethPricePool?: InputMaybe; - _ethPricePool_contains?: InputMaybe; - _ethPricePool_contains_nocase?: InputMaybe; - _ethPricePool_ends_with?: InputMaybe; - _ethPricePool_ends_with_nocase?: InputMaybe; - _ethPricePool_gt?: InputMaybe; - _ethPricePool_gte?: InputMaybe; - _ethPricePool_in?: InputMaybe>; - _ethPricePool_lt?: InputMaybe; - _ethPricePool_lte?: InputMaybe; - _ethPricePool_not?: InputMaybe; - _ethPricePool_not_contains?: InputMaybe; - _ethPricePool_not_contains_nocase?: InputMaybe; - _ethPricePool_not_ends_with?: InputMaybe; - _ethPricePool_not_ends_with_nocase?: InputMaybe; - _ethPricePool_not_in?: InputMaybe>; - _ethPricePool_not_starts_with?: InputMaybe; - _ethPricePool_not_starts_with_nocase?: InputMaybe; - _ethPricePool_starts_with?: InputMaybe; - _ethPricePool_starts_with_nocase?: InputMaybe; - _largePriceChangeBuffer?: InputMaybe; - _largePriceChangeBuffer_gt?: InputMaybe; - _largePriceChangeBuffer_gte?: InputMaybe; - _largePriceChangeBuffer_in?: InputMaybe>; - _largePriceChangeBuffer_lt?: InputMaybe; - _largePriceChangeBuffer_lte?: InputMaybe; - _largePriceChangeBuffer_not?: InputMaybe; - _largePriceChangeBuffer_not_in?: InputMaybe>; - _largeTVLImpactBuffer?: InputMaybe; - _largeTVLImpactBuffer_gt?: InputMaybe; - _largeTVLImpactBuffer_gte?: InputMaybe; - _largeTVLImpactBuffer_in?: InputMaybe>; - _largeTVLImpactBuffer_lt?: InputMaybe; - _largeTVLImpactBuffer_lte?: InputMaybe; - _largeTVLImpactBuffer_not?: InputMaybe; - _largeTVLImpactBuffer_not_in?: InputMaybe>; - _lastPricePool?: InputMaybe; - _lastPricePool_contains?: InputMaybe; - _lastPricePool_gt?: InputMaybe; - _lastPricePool_gte?: InputMaybe; - _lastPricePool_in?: InputMaybe>; - _lastPricePool_lt?: InputMaybe; - _lastPricePool_lte?: InputMaybe; - _lastPricePool_not?: InputMaybe; - _lastPricePool_not_contains?: InputMaybe; - _lastPricePool_not_in?: InputMaybe>; - _totalSupply?: InputMaybe; - _totalSupply_gt?: InputMaybe; - _totalSupply_gte?: InputMaybe; - _totalSupply_in?: InputMaybe>; - _totalSupply_lt?: InputMaybe; - _totalSupply_lte?: InputMaybe; - _totalSupply_not?: InputMaybe; - _totalSupply_not_in?: InputMaybe>; - _totalValueLockedETH?: InputMaybe; - _totalValueLockedETH_gt?: InputMaybe; - _totalValueLockedETH_gte?: InputMaybe; - _totalValueLockedETH_in?: InputMaybe>; - _totalValueLockedETH_lt?: InputMaybe; - _totalValueLockedETH_lte?: InputMaybe; - _totalValueLockedETH_not?: InputMaybe; - _totalValueLockedETH_not_in?: InputMaybe>; - _totalValueLockedUSD?: InputMaybe; - _totalValueLockedUSD_gt?: InputMaybe; - _totalValueLockedUSD_gte?: InputMaybe; - _totalValueLockedUSD_in?: InputMaybe>; - _totalValueLockedUSD_lt?: InputMaybe; - _totalValueLockedUSD_lte?: InputMaybe; - _totalValueLockedUSD_not?: InputMaybe; - _totalValueLockedUSD_not_in?: 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>; + decimals?: InputMaybe; + decimals_gt?: InputMaybe; + decimals_gte?: InputMaybe; + decimals_in?: InputMaybe>; + decimals_lt?: InputMaybe; + decimals_lte?: InputMaybe; + decimals_not?: InputMaybe; + decimals_not_in?: InputMaybe>; + derivedETH?: InputMaybe; + derivedETH_gt?: InputMaybe; + derivedETH_gte?: InputMaybe; + derivedETH_in?: InputMaybe>; + derivedETH_lt?: InputMaybe; + derivedETH_lte?: InputMaybe; + derivedETH_not?: InputMaybe; + derivedETH_not_in?: InputMaybe>; + derivedUSD?: InputMaybe; + derivedUSD_gt?: InputMaybe; + derivedUSD_gte?: InputMaybe; + derivedUSD_in?: InputMaybe>; + derivedUSD_lt?: InputMaybe; + derivedUSD_lte?: InputMaybe; + derivedUSD_not?: InputMaybe; + derivedUSD_not_in?: InputMaybe>; + feesUSD?: InputMaybe; + feesUSD_gt?: InputMaybe; + feesUSD_gte?: InputMaybe; + feesUSD_in?: InputMaybe>; + feesUSD_lt?: InputMaybe; + feesUSD_lte?: InputMaybe; + feesUSD_not?: InputMaybe; + feesUSD_not_in?: InputMaybe>; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -7128,30 +5961,6 @@ export type Token_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - lastPriceBlockNumber?: InputMaybe; - lastPriceBlockNumber_gt?: InputMaybe; - lastPriceBlockNumber_gte?: InputMaybe; - lastPriceBlockNumber_in?: InputMaybe>; - lastPriceBlockNumber_lt?: InputMaybe; - lastPriceBlockNumber_lte?: InputMaybe; - lastPriceBlockNumber_not?: InputMaybe; - lastPriceBlockNumber_not_in?: InputMaybe>; - lastPriceETH?: InputMaybe; - lastPriceETH_gt?: InputMaybe; - lastPriceETH_gte?: InputMaybe; - lastPriceETH_in?: InputMaybe>; - lastPriceETH_lt?: InputMaybe; - lastPriceETH_lte?: InputMaybe; - lastPriceETH_not?: InputMaybe; - lastPriceETH_not_in?: InputMaybe>; - lastPriceUSD?: InputMaybe; - lastPriceUSD_gt?: InputMaybe; - lastPriceUSD_gte?: InputMaybe; - lastPriceUSD_in?: InputMaybe>; - lastPriceUSD_lt?: InputMaybe; - lastPriceUSD_lte?: InputMaybe; - lastPriceUSD_not?: InputMaybe; - lastPriceUSD_not_in?: InputMaybe>; name?: InputMaybe; name_contains?: InputMaybe; name_contains_nocase?: InputMaybe; @@ -7173,6 +5982,14 @@ export type Token_Filter = { name_starts_with?: InputMaybe; name_starts_with_nocase?: 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>; symbol?: InputMaybe; symbol_contains?: InputMaybe; symbol_contains_nocase?: InputMaybe; @@ -7193,492 +6010,187 @@ export type Token_Filter = { symbol_not_starts_with_nocase?: InputMaybe; symbol_starts_with?: InputMaybe; symbol_starts_with_nocase?: InputMaybe; + tokenDayData_?: InputMaybe; + totalSupply?: InputMaybe; + totalSupply_gt?: InputMaybe; + totalSupply_gte?: InputMaybe; + totalSupply_in?: InputMaybe>; + totalSupply_lt?: InputMaybe; + totalSupply_lte?: InputMaybe; + totalSupply_not?: InputMaybe; + totalSupply_not_in?: InputMaybe>; + totalValueLocked?: InputMaybe; + totalValueLockedUSD?: InputMaybe; + totalValueLockedUSDUntracked?: InputMaybe; + totalValueLockedUSDUntracked_gt?: InputMaybe; + totalValueLockedUSDUntracked_gte?: InputMaybe; + totalValueLockedUSDUntracked_in?: InputMaybe>; + totalValueLockedUSDUntracked_lt?: InputMaybe; + totalValueLockedUSDUntracked_lte?: InputMaybe; + totalValueLockedUSDUntracked_not?: InputMaybe; + totalValueLockedUSDUntracked_not_in?: InputMaybe>; + totalValueLockedUSD_gt?: InputMaybe; + totalValueLockedUSD_gte?: InputMaybe; + totalValueLockedUSD_in?: InputMaybe>; + totalValueLockedUSD_lt?: InputMaybe; + totalValueLockedUSD_lte?: InputMaybe; + totalValueLockedUSD_not?: InputMaybe; + totalValueLockedUSD_not_in?: InputMaybe>; + totalValueLocked_gt?: InputMaybe; + totalValueLocked_gte?: InputMaybe; + totalValueLocked_in?: InputMaybe>; + totalValueLocked_lt?: InputMaybe; + totalValueLocked_lte?: InputMaybe; + totalValueLocked_not?: InputMaybe; + totalValueLocked_not_in?: InputMaybe>; + txCount?: InputMaybe; + txCount_gt?: InputMaybe; + txCount_gte?: InputMaybe; + txCount_in?: InputMaybe>; + txCount_lt?: InputMaybe; + txCount_lte?: InputMaybe; + txCount_not?: InputMaybe; + txCount_not_in?: InputMaybe>; + untrackedVolumeUSD?: InputMaybe; + untrackedVolumeUSD_gt?: InputMaybe; + untrackedVolumeUSD_gte?: InputMaybe; + untrackedVolumeUSD_in?: InputMaybe>; + untrackedVolumeUSD_lt?: InputMaybe; + untrackedVolumeUSD_lte?: InputMaybe; + untrackedVolumeUSD_not?: InputMaybe; + untrackedVolumeUSD_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; + volume?: InputMaybe; + volumeUSD?: InputMaybe; + volumeUSD_gt?: InputMaybe; + volumeUSD_gte?: InputMaybe; + volumeUSD_in?: InputMaybe>; + volumeUSD_lt?: InputMaybe; + volumeUSD_lte?: InputMaybe; + volumeUSD_not?: InputMaybe; + volumeUSD_not_in?: InputMaybe>; + volume_gt?: InputMaybe; + volume_gte?: InputMaybe; + volume_in?: InputMaybe>; + volume_lt?: InputMaybe; + volume_lte?: InputMaybe; + volume_not?: InputMaybe; + volume_not_in?: InputMaybe>; + whitelistPools?: InputMaybe>; + whitelistPools_?: InputMaybe; + whitelistPools_contains?: InputMaybe>; + whitelistPools_contains_nocase?: InputMaybe>; + whitelistPools_not?: InputMaybe>; + whitelistPools_not_contains?: InputMaybe>; + whitelistPools_not_contains_nocase?: InputMaybe>; }; export enum Token_OrderBy { - EthPricePool = '_ethPricePool', - LargePriceChangeBuffer = '_largePriceChangeBuffer', - LargeTvlImpactBuffer = '_largeTVLImpactBuffer', - LastPricePool = '_lastPricePool', - TotalSupply = '_totalSupply', - TotalValueLockedEth = '_totalValueLockedETH', - TotalValueLockedUsd = '_totalValueLockedUSD', Decimals = 'decimals', + DerivedEth = 'derivedETH', + DerivedUsd = 'derivedUSD', + FeesUsd = 'feesUSD', Id = 'id', - LastPriceBlockNumber = 'lastPriceBlockNumber', - LastPriceEth = 'lastPriceETH', - LastPriceUsd = 'lastPriceUSD', Name = 'name', - Symbol = 'symbol' -} - -export type UsageMetricsDailySnapshot = { - __typename?: 'UsageMetricsDailySnapshot'; - /** Block number of when this snapshot was taken/last modified (May be taken after interval has passed) */ - blockNumber: Scalars['BigInt']['output']; - /** Number of cumulative unique users */ - cumulativeUniqueUsers: Scalars['Int']['output']; - /** Number of unique daily active users */ - dailyActiveUsers: Scalars['Int']['output']; - /** Total number of deposits (add liquidity) in an day */ - dailyDepositCount: Scalars['Int']['output']; - /** Total number of trades (swaps) in an day */ - dailySwapCount: Scalars['Int']['output']; - /** Total number of transactions occurred in a day. Transactions include all entities that implement the Event interface. */ - dailyTransactionCount: Scalars['Int']['output']; - /** Total number of withdrawals (remove liquidity) in an day */ - dailyWithdrawCount: Scalars['Int']['output']; - /** Number of days since Unix epoch time */ - day: Scalars['Int']['output']; - /** ID is # of days since Unix epoch time */ - id: Scalars['ID']['output']; - /** Protocol this snapshot is associated with */ - protocol: DexAmmProtocol; - /** Timestamp of when this snapshot was taken/last modified (May be taken after interval has passed) */ - timestamp: Scalars['BigInt']['output']; - /** Total number of pools */ - totalPoolCount: Scalars['Int']['output']; -}; - -export type UsageMetricsDailySnapshot_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - blockNumber?: InputMaybe; - blockNumber_gt?: InputMaybe; - blockNumber_gte?: InputMaybe; - blockNumber_in?: InputMaybe>; - blockNumber_lt?: InputMaybe; - blockNumber_lte?: InputMaybe; - blockNumber_not?: InputMaybe; - blockNumber_not_in?: InputMaybe>; - cumulativeUniqueUsers?: InputMaybe; - cumulativeUniqueUsers_gt?: InputMaybe; - cumulativeUniqueUsers_gte?: InputMaybe; - cumulativeUniqueUsers_in?: InputMaybe>; - cumulativeUniqueUsers_lt?: InputMaybe; - cumulativeUniqueUsers_lte?: InputMaybe; - cumulativeUniqueUsers_not?: InputMaybe; - cumulativeUniqueUsers_not_in?: InputMaybe>; - dailyActiveUsers?: InputMaybe; - dailyActiveUsers_gt?: InputMaybe; - dailyActiveUsers_gte?: InputMaybe; - dailyActiveUsers_in?: InputMaybe>; - dailyActiveUsers_lt?: InputMaybe; - dailyActiveUsers_lte?: InputMaybe; - dailyActiveUsers_not?: InputMaybe; - dailyActiveUsers_not_in?: InputMaybe>; - dailyDepositCount?: InputMaybe; - dailyDepositCount_gt?: InputMaybe; - dailyDepositCount_gte?: InputMaybe; - dailyDepositCount_in?: InputMaybe>; - dailyDepositCount_lt?: InputMaybe; - dailyDepositCount_lte?: InputMaybe; - dailyDepositCount_not?: InputMaybe; - dailyDepositCount_not_in?: InputMaybe>; - dailySwapCount?: InputMaybe; - dailySwapCount_gt?: InputMaybe; - dailySwapCount_gte?: InputMaybe; - dailySwapCount_in?: InputMaybe>; - dailySwapCount_lt?: InputMaybe; - dailySwapCount_lte?: InputMaybe; - dailySwapCount_not?: InputMaybe; - dailySwapCount_not_in?: InputMaybe>; - dailyTransactionCount?: InputMaybe; - dailyTransactionCount_gt?: InputMaybe; - dailyTransactionCount_gte?: InputMaybe; - dailyTransactionCount_in?: InputMaybe>; - dailyTransactionCount_lt?: InputMaybe; - dailyTransactionCount_lte?: InputMaybe; - dailyTransactionCount_not?: InputMaybe; - dailyTransactionCount_not_in?: InputMaybe>; - dailyWithdrawCount?: InputMaybe; - dailyWithdrawCount_gt?: InputMaybe; - dailyWithdrawCount_gte?: InputMaybe; - dailyWithdrawCount_in?: InputMaybe>; - dailyWithdrawCount_lt?: InputMaybe; - dailyWithdrawCount_lte?: InputMaybe; - dailyWithdrawCount_not?: InputMaybe; - dailyWithdrawCount_not_in?: InputMaybe>; - day?: InputMaybe; - day_gt?: InputMaybe; - day_gte?: InputMaybe; - day_in?: InputMaybe>; - day_lt?: InputMaybe; - day_lte?: InputMaybe; - day_not?: InputMaybe; - day_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>>; - protocol?: InputMaybe; - protocol_?: InputMaybe; - protocol_contains?: InputMaybe; - protocol_contains_nocase?: InputMaybe; - protocol_ends_with?: InputMaybe; - protocol_ends_with_nocase?: InputMaybe; - protocol_gt?: InputMaybe; - protocol_gte?: InputMaybe; - protocol_in?: InputMaybe>; - protocol_lt?: InputMaybe; - protocol_lte?: InputMaybe; - protocol_not?: InputMaybe; - protocol_not_contains?: InputMaybe; - protocol_not_contains_nocase?: InputMaybe; - protocol_not_ends_with?: InputMaybe; - protocol_not_ends_with_nocase?: InputMaybe; - protocol_not_in?: InputMaybe>; - protocol_not_starts_with?: InputMaybe; - protocol_not_starts_with_nocase?: InputMaybe; - protocol_starts_with?: InputMaybe; - protocol_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>; - totalPoolCount?: InputMaybe; - totalPoolCount_gt?: InputMaybe; - totalPoolCount_gte?: InputMaybe; - totalPoolCount_in?: InputMaybe>; - totalPoolCount_lt?: InputMaybe; - totalPoolCount_lte?: InputMaybe; - totalPoolCount_not?: InputMaybe; - totalPoolCount_not_in?: InputMaybe>; -}; - -export enum UsageMetricsDailySnapshot_OrderBy { - BlockNumber = 'blockNumber', - CumulativeUniqueUsers = 'cumulativeUniqueUsers', - DailyActiveUsers = 'dailyActiveUsers', - DailyDepositCount = 'dailyDepositCount', - DailySwapCount = 'dailySwapCount', - DailyTransactionCount = 'dailyTransactionCount', - DailyWithdrawCount = 'dailyWithdrawCount', - Day = 'day', - Id = 'id', - Protocol = 'protocol', - ProtocolRegenesis = 'protocol___regenesis', - ProtocolActiveLiquidityEth = 'protocol__activeLiquidityETH', - ProtocolActiveLiquidityUsd = 'protocol__activeLiquidityUSD', - ProtocolCumulativePositionCount = 'protocol__cumulativePositionCount', - ProtocolCumulativeProtocolSideRevenueEth = 'protocol__cumulativeProtocolSideRevenueETH', - ProtocolCumulativeProtocolSideRevenueUsd = 'protocol__cumulativeProtocolSideRevenueUSD', - ProtocolCumulativeSupplySideRevenueEth = 'protocol__cumulativeSupplySideRevenueETH', - ProtocolCumulativeSupplySideRevenueUsd = 'protocol__cumulativeSupplySideRevenueUSD', - ProtocolCumulativeTotalRevenueEth = 'protocol__cumulativeTotalRevenueETH', - ProtocolCumulativeTotalRevenueUsd = 'protocol__cumulativeTotalRevenueUSD', - ProtocolCumulativeUniqueLPs = 'protocol__cumulativeUniqueLPs', - ProtocolCumulativeUniqueTraders = 'protocol__cumulativeUniqueTraders', - ProtocolCumulativeUniqueUsers = 'protocol__cumulativeUniqueUsers', - ProtocolCumulativeVolumeEth = 'protocol__cumulativeVolumeETH', - ProtocolCumulativeVolumeUsd = 'protocol__cumulativeVolumeUSD', - ProtocolId = 'protocol__id', - ProtocolLastSnapshotDayId = 'protocol__lastSnapshotDayID', - ProtocolLastUpdateBlockNumber = 'protocol__lastUpdateBlockNumber', - ProtocolLastUpdateTimestamp = 'protocol__lastUpdateTimestamp', - ProtocolMethodologyVersion = 'protocol__methodologyVersion', - ProtocolName = 'protocol__name', - ProtocolNetwork = 'protocol__network', - ProtocolOpenPositionCount = 'protocol__openPositionCount', - ProtocolProtocolControlledValueUsd = 'protocol__protocolControlledValueUSD', - ProtocolSchemaVersion = 'protocol__schemaVersion', - ProtocolSlug = 'protocol__slug', - ProtocolSubgraphVersion = 'protocol__subgraphVersion', - ProtocolTotalLiquidityEth = 'protocol__totalLiquidityETH', - ProtocolTotalLiquidityUsd = 'protocol__totalLiquidityUSD', - ProtocolTotalPoolCount = 'protocol__totalPoolCount', - ProtocolTotalValueLockedEth = 'protocol__totalValueLockedETH', - ProtocolTotalValueLockedUsd = 'protocol__totalValueLockedUSD', - ProtocolType = 'protocol__type', - ProtocolUncollectedProtocolSideValueEth = 'protocol__uncollectedProtocolSideValueETH', - ProtocolUncollectedProtocolSideValueUsd = 'protocol__uncollectedProtocolSideValueUSD', - ProtocolUncollectedSupplySideValueEth = 'protocol__uncollectedSupplySideValueETH', - ProtocolUncollectedSupplySideValueUsd = 'protocol__uncollectedSupplySideValueUSD', - Timestamp = 'timestamp', - TotalPoolCount = 'totalPoolCount' -} - -export type UsageMetricsHourlySnapshot = { - __typename?: 'UsageMetricsHourlySnapshot'; - /** Block number of when this snapshot was taken/last modified (May be taken after interval has passed) */ - blockNumber: Scalars['BigInt']['output']; - /** Number of cumulative unique users */ - cumulativeUniqueUsers: Scalars['Int']['output']; - /** Number of hours since Unix epoch time */ - hour: Scalars['Int']['output']; - /** Number of unique hourly active users */ - hourlyActiveUsers: Scalars['Int']['output']; - /** Total number of deposits (add liquidity) in an hour */ - hourlyDepositCount: Scalars['Int']['output']; - /** Total number of trades (swaps) in an hour */ - hourlySwapCount: Scalars['Int']['output']; - /** Total number of transactions occurred in an hour. Transactions include all entities that implement the Event interface. */ - hourlyTransactionCount: Scalars['Int']['output']; - /** Total number of withdrawals (remove liquidity) in an hour */ - hourlyWithdrawCount: Scalars['Int']['output']; - /** { # of hours since Unix epoch time } */ - id: Scalars['ID']['output']; - /** Protocol this snapshot is associated with */ - protocol: DexAmmProtocol; - /** Timestamp of when this snapshot was taken/last modified (May be taken after interval has passed) */ - timestamp: Scalars['BigInt']['output']; -}; - -export type UsageMetricsHourlySnapshot_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - and?: InputMaybe>>; - blockNumber?: InputMaybe; - blockNumber_gt?: InputMaybe; - blockNumber_gte?: InputMaybe; - blockNumber_in?: InputMaybe>; - blockNumber_lt?: InputMaybe; - blockNumber_lte?: InputMaybe; - blockNumber_not?: InputMaybe; - blockNumber_not_in?: InputMaybe>; - cumulativeUniqueUsers?: InputMaybe; - cumulativeUniqueUsers_gt?: InputMaybe; - cumulativeUniqueUsers_gte?: InputMaybe; - cumulativeUniqueUsers_in?: InputMaybe>; - cumulativeUniqueUsers_lt?: InputMaybe; - cumulativeUniqueUsers_lte?: InputMaybe; - cumulativeUniqueUsers_not?: InputMaybe; - cumulativeUniqueUsers_not_in?: InputMaybe>; - hour?: InputMaybe; - hour_gt?: InputMaybe; - hour_gte?: InputMaybe; - hour_in?: InputMaybe>; - hour_lt?: InputMaybe; - hour_lte?: InputMaybe; - hour_not?: InputMaybe; - hour_not_in?: InputMaybe>; - hourlyActiveUsers?: InputMaybe; - hourlyActiveUsers_gt?: InputMaybe; - hourlyActiveUsers_gte?: InputMaybe; - hourlyActiveUsers_in?: InputMaybe>; - hourlyActiveUsers_lt?: InputMaybe; - hourlyActiveUsers_lte?: InputMaybe; - hourlyActiveUsers_not?: InputMaybe; - hourlyActiveUsers_not_in?: InputMaybe>; - hourlyDepositCount?: InputMaybe; - hourlyDepositCount_gt?: InputMaybe; - hourlyDepositCount_gte?: InputMaybe; - hourlyDepositCount_in?: InputMaybe>; - hourlyDepositCount_lt?: InputMaybe; - hourlyDepositCount_lte?: InputMaybe; - hourlyDepositCount_not?: InputMaybe; - hourlyDepositCount_not_in?: InputMaybe>; - hourlySwapCount?: InputMaybe; - hourlySwapCount_gt?: InputMaybe; - hourlySwapCount_gte?: InputMaybe; - hourlySwapCount_in?: InputMaybe>; - hourlySwapCount_lt?: InputMaybe; - hourlySwapCount_lte?: InputMaybe; - hourlySwapCount_not?: InputMaybe; - hourlySwapCount_not_in?: InputMaybe>; - hourlyTransactionCount?: InputMaybe; - hourlyTransactionCount_gt?: InputMaybe; - hourlyTransactionCount_gte?: InputMaybe; - hourlyTransactionCount_in?: InputMaybe>; - hourlyTransactionCount_lt?: InputMaybe; - hourlyTransactionCount_lte?: InputMaybe; - hourlyTransactionCount_not?: InputMaybe; - hourlyTransactionCount_not_in?: InputMaybe>; - hourlyWithdrawCount?: InputMaybe; - hourlyWithdrawCount_gt?: InputMaybe; - hourlyWithdrawCount_gte?: InputMaybe; - hourlyWithdrawCount_in?: InputMaybe>; - hourlyWithdrawCount_lt?: InputMaybe; - hourlyWithdrawCount_lte?: InputMaybe; - hourlyWithdrawCount_not?: InputMaybe; - hourlyWithdrawCount_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>>; - protocol?: InputMaybe; - protocol_?: InputMaybe; - protocol_contains?: InputMaybe; - protocol_contains_nocase?: InputMaybe; - protocol_ends_with?: InputMaybe; - protocol_ends_with_nocase?: InputMaybe; - protocol_gt?: InputMaybe; - protocol_gte?: InputMaybe; - protocol_in?: InputMaybe>; - protocol_lt?: InputMaybe; - protocol_lte?: InputMaybe; - protocol_not?: InputMaybe; - protocol_not_contains?: InputMaybe; - protocol_not_contains_nocase?: InputMaybe; - protocol_not_ends_with?: InputMaybe; - protocol_not_ends_with_nocase?: InputMaybe; - protocol_not_in?: InputMaybe>; - protocol_not_starts_with?: InputMaybe; - protocol_not_starts_with_nocase?: InputMaybe; - protocol_starts_with?: InputMaybe; - protocol_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>; -}; - -export enum UsageMetricsHourlySnapshot_OrderBy { - BlockNumber = 'blockNumber', - CumulativeUniqueUsers = 'cumulativeUniqueUsers', - Hour = 'hour', - HourlyActiveUsers = 'hourlyActiveUsers', - HourlyDepositCount = 'hourlyDepositCount', - HourlySwapCount = 'hourlySwapCount', - HourlyTransactionCount = 'hourlyTransactionCount', - HourlyWithdrawCount = 'hourlyWithdrawCount', - Id = 'id', - Protocol = 'protocol', - ProtocolRegenesis = 'protocol___regenesis', - ProtocolActiveLiquidityEth = 'protocol__activeLiquidityETH', - ProtocolActiveLiquidityUsd = 'protocol__activeLiquidityUSD', - ProtocolCumulativePositionCount = 'protocol__cumulativePositionCount', - ProtocolCumulativeProtocolSideRevenueEth = 'protocol__cumulativeProtocolSideRevenueETH', - ProtocolCumulativeProtocolSideRevenueUsd = 'protocol__cumulativeProtocolSideRevenueUSD', - ProtocolCumulativeSupplySideRevenueEth = 'protocol__cumulativeSupplySideRevenueETH', - ProtocolCumulativeSupplySideRevenueUsd = 'protocol__cumulativeSupplySideRevenueUSD', - ProtocolCumulativeTotalRevenueEth = 'protocol__cumulativeTotalRevenueETH', - ProtocolCumulativeTotalRevenueUsd = 'protocol__cumulativeTotalRevenueUSD', - ProtocolCumulativeUniqueLPs = 'protocol__cumulativeUniqueLPs', - ProtocolCumulativeUniqueTraders = 'protocol__cumulativeUniqueTraders', - ProtocolCumulativeUniqueUsers = 'protocol__cumulativeUniqueUsers', - ProtocolCumulativeVolumeEth = 'protocol__cumulativeVolumeETH', - ProtocolCumulativeVolumeUsd = 'protocol__cumulativeVolumeUSD', - ProtocolId = 'protocol__id', - ProtocolLastSnapshotDayId = 'protocol__lastSnapshotDayID', - ProtocolLastUpdateBlockNumber = 'protocol__lastUpdateBlockNumber', - ProtocolLastUpdateTimestamp = 'protocol__lastUpdateTimestamp', - ProtocolMethodologyVersion = 'protocol__methodologyVersion', - ProtocolName = 'protocol__name', - ProtocolNetwork = 'protocol__network', - ProtocolOpenPositionCount = 'protocol__openPositionCount', - ProtocolProtocolControlledValueUsd = 'protocol__protocolControlledValueUSD', - ProtocolSchemaVersion = 'protocol__schemaVersion', - ProtocolSlug = 'protocol__slug', - ProtocolSubgraphVersion = 'protocol__subgraphVersion', - ProtocolTotalLiquidityEth = 'protocol__totalLiquidityETH', - ProtocolTotalLiquidityUsd = 'protocol__totalLiquidityUSD', - ProtocolTotalPoolCount = 'protocol__totalPoolCount', - ProtocolTotalValueLockedEth = 'protocol__totalValueLockedETH', - ProtocolTotalValueLockedUsd = 'protocol__totalValueLockedUSD', - ProtocolType = 'protocol__type', - ProtocolUncollectedProtocolSideValueEth = 'protocol__uncollectedProtocolSideValueETH', - ProtocolUncollectedProtocolSideValueUsd = 'protocol__uncollectedProtocolSideValueUSD', - ProtocolUncollectedSupplySideValueEth = 'protocol__uncollectedSupplySideValueETH', - ProtocolUncollectedSupplySideValueUsd = 'protocol__uncollectedSupplySideValueUSD', - Timestamp = 'timestamp' + PoolCount = 'poolCount', + Symbol = 'symbol', + TokenDayData = 'tokenDayData', + TotalSupply = 'totalSupply', + TotalValueLocked = 'totalValueLocked', + TotalValueLockedUsd = 'totalValueLockedUSD', + TotalValueLockedUsdUntracked = 'totalValueLockedUSDUntracked', + TxCount = 'txCount', + UntrackedVolumeUsd = 'untrackedVolumeUSD', + Vault = 'vault', + VaultId = 'vault__id', + Volume = 'volume', + VolumeUsd = 'volumeUSD', + WhitelistPools = 'whitelistPools' } -export type Withdraw = { - __typename?: 'Withdraw'; - /** Account that emitted this event */ - account: Account; - /** USD-normalized value of the transaction of the underlying (e.g. sum of tokens withdrawn from a pool) */ - amountUSD: Scalars['BigDecimal']['output']; - /** Block number of this event */ +export type Transaction = { + __typename?: 'Transaction'; blockNumber: Scalars['BigInt']['output']; - /** Gas limit of the transaction that emitted this event */ - gasLimit?: Maybe; - /** Gas price of the transaction that emitted this event */ - gasPrice?: Maybe; - /** Gas used in this transaction. (Optional because not every chain will support this) */ + burns: Array>; + collects: Array>; + flashed: Array>; + gasPrice: Scalars['BigInt']['output']; gasUsed?: Maybe; - /** Transaction hash of the transaction that emitted this event */ - hash: Scalars['Bytes']['output']; - /** { Transaction hash }-{ Log index } */ id: Scalars['ID']['output']; - /** Amount of input tokens in the token's native unit */ - inputTokenAmounts: Array; - /** Input tokens of the pool (not input tokens of the event/transaction). E.g. WETH and USDC from a WETH-USDC pool */ - inputTokens: Array; - /** Amount of liquidity burned */ - liquidity: Scalars['BigInt']['output']; - /** Event log index. For transactions that don't emit event, create arbitrary index starting from 0 */ - logIndex: Scalars['Int']['output']; - /** Nonce of the transaction that emitted this event */ - nonce: Scalars['BigInt']['output']; - /** The pool involving this event */ - pool: LiquidityPool; - /** The user position changed by this event */ - position?: Maybe; - /** The protocol this transaction belongs to */ - protocol: DexAmmProtocol; - /** Amount of input tokens in the liquidity pool */ - reserveAmounts?: Maybe>; - /** lower tick of position */ - tickLower?: Maybe; - /** upper tick of position */ - tickUpper?: Maybe; - /** Timestamp of this event */ + mints: Array>; + swaps: Array>; timestamp: Scalars['BigInt']['output']; }; -export type WithdrawInputTokensArgs = { +export type TransactionBurnsArgs = { first?: InputMaybe; - orderBy?: InputMaybe; + orderBy?: InputMaybe; orderDirection?: InputMaybe; skip?: InputMaybe; - where?: InputMaybe; + where?: InputMaybe; +}; + + +export type TransactionCollectsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + + +export type TransactionFlashedArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + + +export type TransactionMintsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; +}; + + +export type TransactionSwapsArgs = { + first?: InputMaybe; + orderBy?: InputMaybe; + orderDirection?: InputMaybe; + skip?: InputMaybe; + where?: InputMaybe; }; -export type Withdraw_Filter = { +export type Transaction_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - account?: InputMaybe; - account_?: InputMaybe; - account_contains?: InputMaybe; - account_contains_nocase?: InputMaybe; - account_ends_with?: InputMaybe; - account_ends_with_nocase?: InputMaybe; - account_gt?: InputMaybe; - account_gte?: InputMaybe; - account_in?: InputMaybe>; - account_lt?: InputMaybe; - account_lte?: InputMaybe; - account_not?: InputMaybe; - account_not_contains?: InputMaybe; - account_not_contains_nocase?: InputMaybe; - account_not_ends_with?: InputMaybe; - account_not_ends_with_nocase?: InputMaybe; - account_not_in?: InputMaybe>; - account_not_starts_with?: InputMaybe; - account_not_starts_with_nocase?: InputMaybe; - account_starts_with?: InputMaybe; - account_starts_with_nocase?: InputMaybe; - amountUSD?: InputMaybe; - amountUSD_gt?: InputMaybe; - amountUSD_gte?: InputMaybe; - amountUSD_in?: InputMaybe>; - amountUSD_lt?: InputMaybe; - amountUSD_lte?: InputMaybe; - amountUSD_not?: InputMaybe; - amountUSD_not_in?: InputMaybe>; - and?: InputMaybe>>; + and?: InputMaybe>>; blockNumber?: InputMaybe; blockNumber_gt?: InputMaybe; blockNumber_gte?: InputMaybe; @@ -7687,14 +6199,9 @@ export type Withdraw_Filter = { blockNumber_lte?: InputMaybe; blockNumber_not?: InputMaybe; blockNumber_not_in?: InputMaybe>; - gasLimit?: InputMaybe; - gasLimit_gt?: InputMaybe; - gasLimit_gte?: InputMaybe; - gasLimit_in?: InputMaybe>; - gasLimit_lt?: InputMaybe; - gasLimit_lte?: InputMaybe; - gasLimit_not?: InputMaybe; - gasLimit_not_in?: InputMaybe>; + burns_?: InputMaybe; + collects_?: InputMaybe; + flashed_?: InputMaybe; gasPrice?: InputMaybe; gasPrice_gt?: InputMaybe; gasPrice_gte?: InputMaybe; @@ -7711,16 +6218,6 @@ export type Withdraw_Filter = { gasUsed_lte?: InputMaybe; gasUsed_not?: InputMaybe; gasUsed_not_in?: InputMaybe>; - hash?: InputMaybe; - hash_contains?: InputMaybe; - hash_gt?: InputMaybe; - hash_gte?: InputMaybe; - hash_in?: InputMaybe>; - hash_lt?: InputMaybe; - hash_lte?: InputMaybe; - hash_not?: InputMaybe; - hash_not_contains?: InputMaybe; - hash_not_in?: InputMaybe>; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -7729,129 +6226,9 @@ export type Withdraw_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - inputTokenAmounts?: InputMaybe>; - inputTokenAmounts_contains?: InputMaybe>; - inputTokenAmounts_contains_nocase?: InputMaybe>; - inputTokenAmounts_not?: InputMaybe>; - inputTokenAmounts_not_contains?: InputMaybe>; - inputTokenAmounts_not_contains_nocase?: InputMaybe>; - inputTokens?: InputMaybe>; - inputTokens_?: InputMaybe; - inputTokens_contains?: InputMaybe>; - inputTokens_contains_nocase?: InputMaybe>; - inputTokens_not?: InputMaybe>; - inputTokens_not_contains?: InputMaybe>; - inputTokens_not_contains_nocase?: 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>; - logIndex?: InputMaybe; - logIndex_gt?: InputMaybe; - logIndex_gte?: InputMaybe; - logIndex_in?: InputMaybe>; - logIndex_lt?: InputMaybe; - logIndex_lte?: InputMaybe; - logIndex_not?: InputMaybe; - logIndex_not_in?: InputMaybe>; - nonce?: InputMaybe; - nonce_gt?: InputMaybe; - nonce_gte?: InputMaybe; - nonce_in?: InputMaybe>; - nonce_lt?: InputMaybe; - nonce_lte?: InputMaybe; - nonce_not?: InputMaybe; - nonce_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; - position?: InputMaybe; - position_?: InputMaybe; - position_contains?: InputMaybe; - position_contains_nocase?: InputMaybe; - position_ends_with?: InputMaybe; - position_ends_with_nocase?: InputMaybe; - position_gt?: InputMaybe; - position_gte?: InputMaybe; - position_in?: InputMaybe>; - position_lt?: InputMaybe; - position_lte?: InputMaybe; - position_not?: InputMaybe; - position_not_contains?: InputMaybe; - position_not_contains_nocase?: InputMaybe; - position_not_ends_with?: InputMaybe; - position_not_ends_with_nocase?: InputMaybe; - position_not_in?: InputMaybe>; - position_not_starts_with?: InputMaybe; - position_not_starts_with_nocase?: InputMaybe; - position_starts_with?: InputMaybe; - position_starts_with_nocase?: InputMaybe; - protocol?: InputMaybe; - protocol_?: InputMaybe; - protocol_contains?: InputMaybe; - protocol_contains_nocase?: InputMaybe; - protocol_ends_with?: InputMaybe; - protocol_ends_with_nocase?: InputMaybe; - protocol_gt?: InputMaybe; - protocol_gte?: InputMaybe; - protocol_in?: InputMaybe>; - protocol_lt?: InputMaybe; - protocol_lte?: InputMaybe; - protocol_not?: InputMaybe; - protocol_not_contains?: InputMaybe; - protocol_not_contains_nocase?: InputMaybe; - protocol_not_ends_with?: InputMaybe; - protocol_not_ends_with_nocase?: InputMaybe; - protocol_not_in?: InputMaybe>; - protocol_not_starts_with?: InputMaybe; - protocol_not_starts_with_nocase?: InputMaybe; - protocol_starts_with?: InputMaybe; - protocol_starts_with_nocase?: InputMaybe; - reserveAmounts?: InputMaybe>; - reserveAmounts_contains?: InputMaybe>; - reserveAmounts_contains_nocase?: InputMaybe>; - reserveAmounts_not?: InputMaybe>; - reserveAmounts_not_contains?: InputMaybe>; - reserveAmounts_not_contains_nocase?: InputMaybe>; - tickLower?: InputMaybe; - tickLower_gt?: InputMaybe; - tickLower_gte?: InputMaybe; - tickLower_in?: InputMaybe>; - tickLower_lt?: InputMaybe; - tickLower_lte?: InputMaybe; - tickLower_not?: InputMaybe; - tickLower_not_in?: InputMaybe>; - tickUpper?: InputMaybe; - tickUpper_gt?: InputMaybe; - tickUpper_gte?: InputMaybe; - tickUpper_in?: InputMaybe>; - tickUpper_lt?: InputMaybe; - tickUpper_lte?: InputMaybe; - tickUpper_not?: InputMaybe; - tickUpper_not_in?: InputMaybe>; + mints_?: InputMaybe; + or?: InputMaybe>>; + swaps_?: InputMaybe; timestamp?: InputMaybe; timestamp_gt?: InputMaybe; timestamp_gte?: InputMaybe; @@ -7862,154 +6239,51 @@ export type Withdraw_Filter = { timestamp_not_in?: InputMaybe>; }; -export enum Withdraw_OrderBy { - Account = 'account', - AccountClosedPositionCount = 'account__closedPositionCount', - AccountDepositCount = 'account__depositCount', - AccountId = 'account__id', - AccountOpenPositionCount = 'account__openPositionCount', - AccountPositionCount = 'account__positionCount', - AccountSwapCount = 'account__swapCount', - AccountWithdrawCount = 'account__withdrawCount', - AmountUsd = 'amountUSD', +export enum Transaction_OrderBy { BlockNumber = 'blockNumber', - GasLimit = 'gasLimit', + Burns = 'burns', + Collects = 'collects', + Flashed = 'flashed', GasPrice = 'gasPrice', GasUsed = 'gasUsed', - Hash = 'hash', Id = 'id', - InputTokenAmounts = 'inputTokenAmounts', - InputTokens = 'inputTokens', - Liquidity = 'liquidity', - LogIndex = 'logIndex', - Nonce = 'nonce', - Pool = 'pool', - PoolActiveLiquidity = 'pool__activeLiquidity', - PoolActiveLiquidityEth = 'pool__activeLiquidityETH', - PoolActiveLiquidityUsd = 'pool__activeLiquidityUSD', - PoolClosedPositionCount = 'pool__closedPositionCount', - PoolCreatedBlockNumber = 'pool__createdBlockNumber', - PoolCreatedTimestamp = 'pool__createdTimestamp', - PoolCumulativeDepositCount = 'pool__cumulativeDepositCount', - PoolCumulativeProtocolSideRevenueEth = 'pool__cumulativeProtocolSideRevenueETH', - PoolCumulativeProtocolSideRevenueUsd = 'pool__cumulativeProtocolSideRevenueUSD', - PoolCumulativeSupplySideRevenueEth = 'pool__cumulativeSupplySideRevenueETH', - PoolCumulativeSupplySideRevenueUsd = 'pool__cumulativeSupplySideRevenueUSD', - PoolCumulativeSwapCount = 'pool__cumulativeSwapCount', - PoolCumulativeTotalRevenueEth = 'pool__cumulativeTotalRevenueETH', - PoolCumulativeTotalRevenueUsd = 'pool__cumulativeTotalRevenueUSD', - PoolCumulativeVolumeEth = 'pool__cumulativeVolumeETH', - PoolCumulativeVolumeUsd = 'pool__cumulativeVolumeUSD', - PoolCumulativeWithdrawCount = 'pool__cumulativeWithdrawCount', - PoolId = 'pool__id', - PoolIsSingleSided = 'pool__isSingleSided', - PoolLastSnapshotDayId = 'pool__lastSnapshotDayID', - PoolLastSnapshotHourId = 'pool__lastSnapshotHourID', - PoolLastUpdateBlockNumber = 'pool__lastUpdateBlockNumber', - PoolLastUpdateTimestamp = 'pool__lastUpdateTimestamp', - PoolLiquidityTokenType = 'pool__liquidityTokenType', - PoolName = 'pool__name', - PoolOpenPositionCount = 'pool__openPositionCount', - PoolPositionCount = 'pool__positionCount', - PoolStakedOutputTokenAmount = 'pool__stakedOutputTokenAmount', - PoolSymbol = 'pool__symbol', - PoolTick = 'pool__tick', - PoolTotalLiquidity = 'pool__totalLiquidity', - PoolTotalLiquidityEth = 'pool__totalLiquidityETH', - PoolTotalLiquidityUsd = 'pool__totalLiquidityUSD', - PoolTotalValueLockedEth = 'pool__totalValueLockedETH', - PoolTotalValueLockedUsd = 'pool__totalValueLockedUSD', - Position = 'position', - PositionBlockNumberClosed = 'position__blockNumberClosed', - PositionBlockNumberOpened = 'position__blockNumberOpened', - PositionCumulativeDepositUsd = 'position__cumulativeDepositUSD', - PositionCumulativeWithdrawUsd = 'position__cumulativeWithdrawUSD', - PositionDepositCount = 'position__depositCount', - PositionHashClosed = 'position__hashClosed', - PositionHashOpened = 'position__hashOpened', - PositionId = 'position__id', - PositionLiquidity = 'position__liquidity', - PositionLiquidityEth = 'position__liquidityETH', - PositionLiquidityTokenType = 'position__liquidityTokenType', - PositionLiquidityUsd = 'position__liquidityUSD', - PositionLockedUntil = 'position__lockedUntil', - PositionNfpmAddress = 'position__nfpmAddress', - PositionTimestampClosed = 'position__timestampClosed', - PositionTimestampOpened = 'position__timestampOpened', - PositionTokenId = 'position__tokenId', - PositionWithdrawCount = 'position__withdrawCount', - Protocol = 'protocol', - ProtocolRegenesis = 'protocol___regenesis', - ProtocolActiveLiquidityEth = 'protocol__activeLiquidityETH', - ProtocolActiveLiquidityUsd = 'protocol__activeLiquidityUSD', - ProtocolCumulativePositionCount = 'protocol__cumulativePositionCount', - ProtocolCumulativeProtocolSideRevenueEth = 'protocol__cumulativeProtocolSideRevenueETH', - ProtocolCumulativeProtocolSideRevenueUsd = 'protocol__cumulativeProtocolSideRevenueUSD', - ProtocolCumulativeSupplySideRevenueEth = 'protocol__cumulativeSupplySideRevenueETH', - ProtocolCumulativeSupplySideRevenueUsd = 'protocol__cumulativeSupplySideRevenueUSD', - ProtocolCumulativeTotalRevenueEth = 'protocol__cumulativeTotalRevenueETH', - ProtocolCumulativeTotalRevenueUsd = 'protocol__cumulativeTotalRevenueUSD', - ProtocolCumulativeUniqueLPs = 'protocol__cumulativeUniqueLPs', - ProtocolCumulativeUniqueTraders = 'protocol__cumulativeUniqueTraders', - ProtocolCumulativeUniqueUsers = 'protocol__cumulativeUniqueUsers', - ProtocolCumulativeVolumeEth = 'protocol__cumulativeVolumeETH', - ProtocolCumulativeVolumeUsd = 'protocol__cumulativeVolumeUSD', - ProtocolId = 'protocol__id', - ProtocolLastSnapshotDayId = 'protocol__lastSnapshotDayID', - ProtocolLastUpdateBlockNumber = 'protocol__lastUpdateBlockNumber', - ProtocolLastUpdateTimestamp = 'protocol__lastUpdateTimestamp', - ProtocolMethodologyVersion = 'protocol__methodologyVersion', - ProtocolName = 'protocol__name', - ProtocolNetwork = 'protocol__network', - ProtocolOpenPositionCount = 'protocol__openPositionCount', - ProtocolProtocolControlledValueUsd = 'protocol__protocolControlledValueUSD', - ProtocolSchemaVersion = 'protocol__schemaVersion', - ProtocolSlug = 'protocol__slug', - ProtocolSubgraphVersion = 'protocol__subgraphVersion', - ProtocolTotalLiquidityEth = 'protocol__totalLiquidityETH', - ProtocolTotalLiquidityUsd = 'protocol__totalLiquidityUSD', - ProtocolTotalPoolCount = 'protocol__totalPoolCount', - ProtocolTotalValueLockedEth = 'protocol__totalValueLockedETH', - ProtocolTotalValueLockedUsd = 'protocol__totalValueLockedUSD', - ProtocolType = 'protocol__type', - ProtocolUncollectedProtocolSideValueEth = 'protocol__uncollectedProtocolSideValueETH', - ProtocolUncollectedProtocolSideValueUsd = 'protocol__uncollectedProtocolSideValueUSD', - ProtocolUncollectedSupplySideValueEth = 'protocol__uncollectedSupplySideValueETH', - ProtocolUncollectedSupplySideValueUsd = 'protocol__uncollectedSupplySideValueUSD', - ReserveAmounts = 'reserveAmounts', - TickLower = 'tickLower', - TickUpper = 'tickUpper', + Mints = 'mints', + Swaps = 'swaps', Timestamp = 'timestamp' } -export type _Block_ = { - __typename?: '_Block_'; - /** The hash of the block */ - hash?: Maybe; - /** The block number */ - number: Scalars['Int']['output']; - /** The hash of the parent block */ - parentHash?: Maybe; - /** Integer representation of the timestamp stored in blocks for the chain */ - timestamp?: Maybe; -}; - -/** Used to keep track of the price of Ether/TVL in USD, pool deposit count, and total unique users */ -export type _HelperStore = { - __typename?: '_HelperStore'; +export type UniswapDayData = { + __typename?: 'UniswapDayData'; + date: Scalars['Int']['output']; + feesUSD: Scalars['BigDecimal']['output']; id: Scalars['ID']['output']; - /** price of ETH/TVL in USD */ - valueDecimal?: Maybe; - /** Token Prices */ - valueDecimalList?: Maybe>; - /** # of deposits, # of unique users */ - valueInt?: Maybe; + tvlUSD: Scalars['BigDecimal']['output']; + txCount: Scalars['BigInt']['output']; + volumeETH: Scalars['BigDecimal']['output']; + volumeUSD: Scalars['BigDecimal']['output']; + volumeUSDUntracked: Scalars['BigDecimal']['output']; }; -export type _HelperStore_Filter = { +export type UniswapDayData_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; + date?: InputMaybe; + date_gt?: InputMaybe; + date_gte?: InputMaybe; + date_in?: InputMaybe>; + date_lt?: InputMaybe; + date_lte?: InputMaybe; + date_not?: InputMaybe; + date_not_in?: InputMaybe>; + feesUSD?: InputMaybe; + feesUSD_gt?: InputMaybe; + feesUSD_gte?: InputMaybe; + feesUSD_in?: InputMaybe>; + feesUSD_lt?: InputMaybe; + feesUSD_lte?: InputMaybe; + feesUSD_not?: InputMaybe; + feesUSD_not_in?: InputMaybe>; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -8018,62 +6292,70 @@ export type _HelperStore_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - or?: InputMaybe>>; - valueDecimal?: InputMaybe; - valueDecimalList?: InputMaybe>; - valueDecimalList_contains?: InputMaybe>; - valueDecimalList_contains_nocase?: InputMaybe>; - valueDecimalList_not?: InputMaybe>; - valueDecimalList_not_contains?: InputMaybe>; - valueDecimalList_not_contains_nocase?: InputMaybe>; - valueDecimal_gt?: InputMaybe; - valueDecimal_gte?: InputMaybe; - valueDecimal_in?: InputMaybe>; - valueDecimal_lt?: InputMaybe; - valueDecimal_lte?: InputMaybe; - valueDecimal_not?: InputMaybe; - valueDecimal_not_in?: InputMaybe>; - valueInt?: InputMaybe; - valueInt_gt?: InputMaybe; - valueInt_gte?: InputMaybe; - valueInt_in?: InputMaybe>; - valueInt_lt?: InputMaybe; - valueInt_lte?: InputMaybe; - valueInt_not?: InputMaybe; - valueInt_not_in?: InputMaybe>; -}; - -export enum _HelperStore_OrderBy { + or?: InputMaybe>>; + tvlUSD?: InputMaybe; + tvlUSD_gt?: InputMaybe; + tvlUSD_gte?: InputMaybe; + tvlUSD_in?: InputMaybe>; + tvlUSD_lt?: InputMaybe; + tvlUSD_lte?: InputMaybe; + tvlUSD_not?: InputMaybe; + tvlUSD_not_in?: InputMaybe>; + txCount?: InputMaybe; + txCount_gt?: InputMaybe; + txCount_gte?: InputMaybe; + txCount_in?: InputMaybe>; + txCount_lt?: InputMaybe; + txCount_lte?: InputMaybe; + txCount_not?: InputMaybe; + txCount_not_in?: InputMaybe>; + volumeETH?: InputMaybe; + volumeETH_gt?: InputMaybe; + volumeETH_gte?: InputMaybe; + volumeETH_in?: InputMaybe>; + volumeETH_lt?: InputMaybe; + volumeETH_lte?: InputMaybe; + volumeETH_not?: InputMaybe; + volumeETH_not_in?: InputMaybe>; + volumeUSD?: InputMaybe; + volumeUSDUntracked?: InputMaybe; + volumeUSDUntracked_gt?: InputMaybe; + volumeUSDUntracked_gte?: InputMaybe; + volumeUSDUntracked_in?: InputMaybe>; + volumeUSDUntracked_lt?: InputMaybe; + volumeUSDUntracked_lte?: InputMaybe; + volumeUSDUntracked_not?: InputMaybe; + volumeUSDUntracked_not_in?: InputMaybe>; + volumeUSD_gt?: InputMaybe; + volumeUSD_gte?: InputMaybe; + volumeUSD_in?: InputMaybe>; + volumeUSD_lt?: InputMaybe; + volumeUSD_lte?: InputMaybe; + volumeUSD_not?: InputMaybe; + volumeUSD_not_in?: InputMaybe>; +}; + +export enum UniswapDayData_OrderBy { + Date = 'date', + FeesUsd = 'feesUSD', Id = 'id', - ValueDecimal = 'valueDecimal', - ValueDecimalList = 'valueDecimalList', - ValueInt = 'valueInt' + TvlUsd = 'tvlUSD', + TxCount = 'txCount', + VolumeEth = 'volumeETH', + VolumeUsd = 'volumeUSD', + VolumeUsdUntracked = 'volumeUSDUntracked' } -export type _LiquidityPoolAmount = { - __typename?: '_LiquidityPoolAmount'; - /** Smart contract address of the pool */ +export type Vault = { + __typename?: 'Vault'; id: Scalars['ID']['output']; - /** Amount of input tokens in the pool. The ordering should be the same as the pool's `inputTokens` field. */ - inputTokenBalances: Array; - /** Input tokens of the pool (not input tokens of the event/transaction). E.g. WETH and USDC from a WETH-USDC pool */ - inputTokens: Array; - tokenPrices: Array; -}; - - -export type _LiquidityPoolAmountInputTokensArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; + pool: Pool; }; -export type _LiquidityPoolAmount_Filter = { +export type Vault_Filter = { /** Filter for the block changed event. */ _change_block?: InputMaybe; - and?: InputMaybe>>; + and?: InputMaybe>>; id?: InputMaybe; id_gt?: InputMaybe; id_gte?: InputMaybe; @@ -8082,35 +6364,79 @@ export type _LiquidityPoolAmount_Filter = { id_lte?: InputMaybe; id_not?: InputMaybe; id_not_in?: InputMaybe>; - inputTokenBalances?: InputMaybe>; - inputTokenBalances_contains?: InputMaybe>; - inputTokenBalances_contains_nocase?: InputMaybe>; - inputTokenBalances_not?: InputMaybe>; - inputTokenBalances_not_contains?: InputMaybe>; - inputTokenBalances_not_contains_nocase?: InputMaybe>; - inputTokens?: InputMaybe>; - inputTokens_?: InputMaybe; - inputTokens_contains?: InputMaybe>; - inputTokens_contains_nocase?: InputMaybe>; - inputTokens_not?: InputMaybe>; - inputTokens_not_contains?: InputMaybe>; - inputTokens_not_contains_nocase?: InputMaybe>; - or?: InputMaybe>>; - tokenPrices?: InputMaybe>; - tokenPrices_contains?: InputMaybe>; - tokenPrices_contains_nocase?: InputMaybe>; - tokenPrices_not?: InputMaybe>; - tokenPrices_not_contains?: InputMaybe>; - tokenPrices_not_contains_nocase?: 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; }; -export enum _LiquidityPoolAmount_OrderBy { +export enum Vault_OrderBy { Id = 'id', - InputTokenBalances = 'inputTokenBalances', - InputTokens = 'inputTokens', - TokenPrices = 'tokenPrices' + Pool = 'pool', + PoolBalanceOfBlock = 'pool__balanceOfBlock', + PoolClosedPositionCount = 'pool__closedPositionCount', + PoolCollectedFeesToken0 = 'pool__collectedFeesToken0', + PoolCollectedFeesToken1 = 'pool__collectedFeesToken1', + PoolCollectedFeesUsd = 'pool__collectedFeesUSD', + PoolCollectedVaultWethFees = 'pool__collectedVaultWETHFees', + PoolCreatedAtBlockNumber = 'pool__createdAtBlockNumber', + PoolCreatedAtTimestamp = 'pool__createdAtTimestamp', + PoolFeeGrowthGlobal0X128 = 'pool__feeGrowthGlobal0X128', + PoolFeeGrowthGlobal1X128 = 'pool__feeGrowthGlobal1X128', + PoolFeeTier = 'pool__feeTier', + PoolFeesUsd = 'pool__feesUSD', + PoolId = 'pool__id', + PoolLiquidity = 'pool__liquidity', + PoolLiquidityProviderCount = 'pool__liquidityProviderCount', + PoolName = 'pool__name', + PoolObservationIndex = 'pool__observationIndex', + PoolOpenPositionCount = 'pool__openPositionCount', + PoolSqrtPrice = 'pool__sqrtPrice', + PoolSymbol = 'pool__symbol', + PoolTick = 'pool__tick', + PoolToken0Price = 'pool__token0Price', + PoolToken1Price = 'pool__token1Price', + PoolTotalLiquidity = 'pool__totalLiquidity', + PoolTotalValueLockedEth = 'pool__totalValueLockedETH', + PoolTotalValueLockedToken0 = 'pool__totalValueLockedToken0', + PoolTotalValueLockedToken1 = 'pool__totalValueLockedToken1', + PoolTotalValueLockedUsd = 'pool__totalValueLockedUSD', + PoolTotalValueLockedUsdUntracked = 'pool__totalValueLockedUSDUntracked', + PoolTxCount = 'pool__txCount', + PoolUntrackedVolumeUsd = 'pool__untrackedVolumeUSD', + PoolVolumeToken0 = 'pool__volumeToken0', + PoolVolumeToken1 = 'pool__volumeToken1', + PoolVolumeUsd = 'pool__volumeUSD' } +export type _Block_ = { + __typename?: '_Block_'; + /** The hash of the block */ + hash?: Maybe; + /** The block number */ + number: Scalars['Int']['output']; + /** Integer representation of the timestamp stored in blocks for the chain */ + timestamp?: Maybe; +}; + /** The type for the top-level _meta field */ export type _Meta_ = { __typename?: '_Meta_'; @@ -8134,87 +6460,3 @@ export enum _SubgraphErrorPolicy_ { /** If the subgraph has indexing errors, data will be omitted. The default. */ Deny = 'deny' } - -/** This is used to keep tract of the derived price of tokens in ethereum and the whitelisted pools to which it belongs */ -export type _TokenWhitelist = { - __typename?: '_TokenWhitelist'; - /** Token Address */ - id: Scalars['ID']['output']; - /** pools token is in that are white listed for USD pricing */ - whitelistPools: Array; -}; - - -/** This is used to keep tract of the derived price of tokens in ethereum and the whitelisted pools to which it belongs */ -export type _TokenWhitelistWhitelistPoolsArgs = { - first?: InputMaybe; - orderBy?: InputMaybe; - orderDirection?: InputMaybe; - skip?: InputMaybe; - where?: InputMaybe; -}; - -export type _TokenWhitelistSymbol = { - __typename?: '_TokenWhitelistSymbol'; - /** Whitelist Token Address */ - address: Scalars['Bytes']['output']; - /** Whitelist Token Symbol */ - id: Scalars['ID']['output']; -}; - -export type _TokenWhitelistSymbol_Filter = { - /** Filter for the block changed event. */ - _change_block?: InputMaybe; - address?: InputMaybe; - address_contains?: InputMaybe; - address_gt?: InputMaybe; - address_gte?: InputMaybe; - address_in?: InputMaybe>; - address_lt?: InputMaybe; - address_lte?: InputMaybe; - address_not?: InputMaybe; - address_not_contains?: InputMaybe; - address_not_in?: 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>>; -}; - -export enum _TokenWhitelistSymbol_OrderBy { - Address = 'address', - Id = 'id' -} - -export type _TokenWhitelist_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>>; - whitelistPools?: InputMaybe>; - whitelistPools_?: InputMaybe; - whitelistPools_contains?: InputMaybe>; - whitelistPools_contains_nocase?: InputMaybe>; - whitelistPools_not?: InputMaybe>; - whitelistPools_not_contains?: InputMaybe>; - whitelistPools_not_contains_nocase?: InputMaybe>; -}; - -export enum _TokenWhitelist_OrderBy { - Id = 'id', - WhitelistPools = 'whitelistPools' -} diff --git a/packages/types/src/subgraph/nftx-v3.ts b/packages/types/src/subgraph/nftx-v3.ts index 27bf700..cf5ab72 100644 --- a/packages/types/src/subgraph/nftx-v3.ts +++ b/packages/types/src/subgraph/nftx-v3.ts @@ -16,6 +16,7 @@ export type Scalars = { BigInt: { input: string; output: string; } Bytes: { input: string; output: string; } Int8: { input: string|number; output: string|number; } + Timestamp: { input: string; output: string; } }; export type Account = {