From cc46dad1500d1982cf236df21848a79ac8cacb65 Mon Sep 17 00:00:00 2001 From: Iain Nash Date: Fri, 7 May 2021 12:20:19 -0400 Subject: [PATCH] Circleci project setup (#1) * Add .circleci/config.yml * Updated config.yml * fix missing renderer dep * comitting graphql schemas for testing --- .gitignore | 1 - graph-schemas/uniswap.graphql | 2531 +++++++++++++++++++++++++++++++++ graph-schemas/zora.graphql | 2350 ++++++++++++++++++++++++++++++ package.json | 3 +- yarn.lock | 32 +- 5 files changed, 4912 insertions(+), 5 deletions(-) create mode 100644 graph-schemas/uniswap.graphql create mode 100644 graph-schemas/zora.graphql diff --git a/.gitignore b/.gitignore index 6297be5..8b33d24 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ dist/ -graph-schemas/*.graphql yarn-error.log node_modules/ .DS_Store diff --git a/graph-schemas/uniswap.graphql b/graph-schemas/uniswap.graphql new file mode 100644 index 0000000..c4b8e1d --- /dev/null +++ b/graph-schemas/uniswap.graphql @@ -0,0 +1,2531 @@ +directive @entity on OBJECT + +directive @derivedFrom(field: String) on FIELD_DEFINITION + +directive @subgraphId(id: String) on OBJECT + +type _Block_ { + """The hash of the block""" + hash: Bytes + + """The block number""" + number: Int! +} + +"""The type for the top-level _meta field""" +type _Meta_ { + """ + Information about a specific subgraph block. The hash of the block + will be null if the _meta field has a block constraint that asks for + a block number. It will be filled if the _meta field has no block constraint + and therefore asks for the latest block + + """ + block: _Block_! + + """The deployment ID""" + deployment: String! + + """If `true`, the subgraph encountered indexing errors at some past block""" + hasIndexingErrors: Boolean! +} + +enum _SubgraphErrorPolicy_ { + """Data will be returned even if the subgraph has indexing errors""" + allow + + """ + If the subgraph has indexing errors, data will be omitted. The default. + """ + deny +} + +scalar BigDecimal + +scalar BigInt + +input Block_height { + hash: Bytes + number: Int +} + +type Bundle { + id: ID! + ethPrice: BigDecimal! +} + +input Bundle_filter { + id: ID + id_not: ID + id_gt: ID + id_lt: ID + id_gte: ID + id_lte: ID + id_in: [ID!] + id_not_in: [ID!] + ethPrice: BigDecimal + ethPrice_not: BigDecimal + ethPrice_gt: BigDecimal + ethPrice_lt: BigDecimal + ethPrice_gte: BigDecimal + ethPrice_lte: BigDecimal + ethPrice_in: [BigDecimal!] + ethPrice_not_in: [BigDecimal!] +} + +enum Bundle_orderBy { + id + ethPrice +} + +type Burn { + id: ID! + transaction: Transaction! + timestamp: BigInt! + pair: Pair! + liquidity: BigDecimal! + sender: Bytes + amount0: BigDecimal + amount1: BigDecimal + to: Bytes + logIndex: BigInt + amountUSD: BigDecimal + needsComplete: Boolean! + feeTo: Bytes + feeLiquidity: BigDecimal +} + +input Burn_filter { + id: ID + id_not: ID + id_gt: ID + id_lt: ID + id_gte: ID + id_lte: ID + id_in: [ID!] + id_not_in: [ID!] + transaction: String + transaction_not: String + transaction_gt: String + transaction_lt: String + transaction_gte: String + transaction_lte: String + transaction_in: [String!] + transaction_not_in: [String!] + transaction_contains: String + transaction_not_contains: String + transaction_starts_with: String + transaction_not_starts_with: String + transaction_ends_with: String + transaction_not_ends_with: String + timestamp: BigInt + timestamp_not: BigInt + timestamp_gt: BigInt + timestamp_lt: BigInt + timestamp_gte: BigInt + timestamp_lte: BigInt + timestamp_in: [BigInt!] + timestamp_not_in: [BigInt!] + pair: String + pair_not: String + pair_gt: String + pair_lt: String + pair_gte: String + pair_lte: String + pair_in: [String!] + pair_not_in: [String!] + pair_contains: String + pair_not_contains: String + pair_starts_with: String + pair_not_starts_with: String + pair_ends_with: String + pair_not_ends_with: String + liquidity: BigDecimal + liquidity_not: BigDecimal + liquidity_gt: BigDecimal + liquidity_lt: BigDecimal + liquidity_gte: BigDecimal + liquidity_lte: BigDecimal + liquidity_in: [BigDecimal!] + liquidity_not_in: [BigDecimal!] + sender: Bytes + sender_not: Bytes + sender_in: [Bytes!] + sender_not_in: [Bytes!] + sender_contains: Bytes + sender_not_contains: Bytes + amount0: BigDecimal + amount0_not: BigDecimal + amount0_gt: BigDecimal + amount0_lt: BigDecimal + amount0_gte: BigDecimal + amount0_lte: BigDecimal + amount0_in: [BigDecimal!] + amount0_not_in: [BigDecimal!] + amount1: BigDecimal + amount1_not: BigDecimal + amount1_gt: BigDecimal + amount1_lt: BigDecimal + amount1_gte: BigDecimal + amount1_lte: BigDecimal + amount1_in: [BigDecimal!] + amount1_not_in: [BigDecimal!] + to: Bytes + to_not: Bytes + to_in: [Bytes!] + to_not_in: [Bytes!] + to_contains: Bytes + to_not_contains: Bytes + logIndex: BigInt + logIndex_not: BigInt + logIndex_gt: BigInt + logIndex_lt: BigInt + logIndex_gte: BigInt + logIndex_lte: BigInt + logIndex_in: [BigInt!] + logIndex_not_in: [BigInt!] + amountUSD: BigDecimal + amountUSD_not: BigDecimal + amountUSD_gt: BigDecimal + amountUSD_lt: BigDecimal + amountUSD_gte: BigDecimal + amountUSD_lte: BigDecimal + amountUSD_in: [BigDecimal!] + amountUSD_not_in: [BigDecimal!] + needsComplete: Boolean + needsComplete_not: Boolean + needsComplete_in: [Boolean!] + needsComplete_not_in: [Boolean!] + feeTo: Bytes + feeTo_not: Bytes + feeTo_in: [Bytes!] + feeTo_not_in: [Bytes!] + feeTo_contains: Bytes + feeTo_not_contains: Bytes + feeLiquidity: BigDecimal + feeLiquidity_not: BigDecimal + feeLiquidity_gt: BigDecimal + feeLiquidity_lt: BigDecimal + feeLiquidity_gte: BigDecimal + feeLiquidity_lte: BigDecimal + feeLiquidity_in: [BigDecimal!] + feeLiquidity_not_in: [BigDecimal!] +} + +enum Burn_orderBy { + id + transaction + timestamp + pair + liquidity + sender + amount0 + amount1 + to + logIndex + amountUSD + needsComplete + feeTo + feeLiquidity +} + +scalar Bytes + +type LiquidityPosition { + id: ID! + user: User! + pair: Pair! + liquidityTokenBalance: BigDecimal! +} + +input LiquidityPosition_filter { + id: ID + id_not: ID + id_gt: ID + id_lt: ID + id_gte: ID + id_lte: ID + id_in: [ID!] + id_not_in: [ID!] + user: String + user_not: String + user_gt: String + user_lt: String + user_gte: String + user_lte: String + user_in: [String!] + user_not_in: [String!] + user_contains: String + user_not_contains: String + user_starts_with: String + user_not_starts_with: String + user_ends_with: String + user_not_ends_with: String + pair: String + pair_not: String + pair_gt: String + pair_lt: String + pair_gte: String + pair_lte: String + pair_in: [String!] + pair_not_in: [String!] + pair_contains: String + pair_not_contains: String + pair_starts_with: String + pair_not_starts_with: String + pair_ends_with: String + pair_not_ends_with: String + liquidityTokenBalance: BigDecimal + liquidityTokenBalance_not: BigDecimal + liquidityTokenBalance_gt: BigDecimal + liquidityTokenBalance_lt: BigDecimal + liquidityTokenBalance_gte: BigDecimal + liquidityTokenBalance_lte: BigDecimal + liquidityTokenBalance_in: [BigDecimal!] + liquidityTokenBalance_not_in: [BigDecimal!] +} + +enum LiquidityPosition_orderBy { + id + user + pair + liquidityTokenBalance +} + +type LiquidityPositionSnapshot { + id: ID! + liquidityPosition: LiquidityPosition! + timestamp: Int! + block: Int! + user: User! + pair: Pair! + token0PriceUSD: BigDecimal! + token1PriceUSD: BigDecimal! + reserve0: BigDecimal! + reserve1: BigDecimal! + reserveUSD: BigDecimal! + liquidityTokenTotalSupply: BigDecimal! + liquidityTokenBalance: BigDecimal! +} + +input LiquidityPositionSnapshot_filter { + id: ID + id_not: ID + id_gt: ID + id_lt: ID + id_gte: ID + id_lte: ID + id_in: [ID!] + id_not_in: [ID!] + liquidityPosition: String + liquidityPosition_not: String + liquidityPosition_gt: String + liquidityPosition_lt: String + liquidityPosition_gte: String + liquidityPosition_lte: String + liquidityPosition_in: [String!] + liquidityPosition_not_in: [String!] + liquidityPosition_contains: String + liquidityPosition_not_contains: String + liquidityPosition_starts_with: String + liquidityPosition_not_starts_with: String + liquidityPosition_ends_with: String + liquidityPosition_not_ends_with: String + timestamp: Int + timestamp_not: Int + timestamp_gt: Int + timestamp_lt: Int + timestamp_gte: Int + timestamp_lte: Int + timestamp_in: [Int!] + timestamp_not_in: [Int!] + block: Int + block_not: Int + block_gt: Int + block_lt: Int + block_gte: Int + block_lte: Int + block_in: [Int!] + block_not_in: [Int!] + user: String + user_not: String + user_gt: String + user_lt: String + user_gte: String + user_lte: String + user_in: [String!] + user_not_in: [String!] + user_contains: String + user_not_contains: String + user_starts_with: String + user_not_starts_with: String + user_ends_with: String + user_not_ends_with: String + pair: String + pair_not: String + pair_gt: String + pair_lt: String + pair_gte: String + pair_lte: String + pair_in: [String!] + pair_not_in: [String!] + pair_contains: String + pair_not_contains: String + pair_starts_with: String + pair_not_starts_with: String + pair_ends_with: String + pair_not_ends_with: String + token0PriceUSD: BigDecimal + token0PriceUSD_not: BigDecimal + token0PriceUSD_gt: BigDecimal + token0PriceUSD_lt: BigDecimal + token0PriceUSD_gte: BigDecimal + token0PriceUSD_lte: BigDecimal + token0PriceUSD_in: [BigDecimal!] + token0PriceUSD_not_in: [BigDecimal!] + token1PriceUSD: BigDecimal + token1PriceUSD_not: BigDecimal + token1PriceUSD_gt: BigDecimal + token1PriceUSD_lt: BigDecimal + token1PriceUSD_gte: BigDecimal + token1PriceUSD_lte: BigDecimal + token1PriceUSD_in: [BigDecimal!] + token1PriceUSD_not_in: [BigDecimal!] + reserve0: BigDecimal + reserve0_not: BigDecimal + reserve0_gt: BigDecimal + reserve0_lt: BigDecimal + reserve0_gte: BigDecimal + reserve0_lte: BigDecimal + reserve0_in: [BigDecimal!] + reserve0_not_in: [BigDecimal!] + reserve1: BigDecimal + reserve1_not: BigDecimal + reserve1_gt: BigDecimal + reserve1_lt: BigDecimal + reserve1_gte: BigDecimal + reserve1_lte: BigDecimal + reserve1_in: [BigDecimal!] + reserve1_not_in: [BigDecimal!] + reserveUSD: BigDecimal + reserveUSD_not: BigDecimal + reserveUSD_gt: BigDecimal + reserveUSD_lt: BigDecimal + reserveUSD_gte: BigDecimal + reserveUSD_lte: BigDecimal + reserveUSD_in: [BigDecimal!] + reserveUSD_not_in: [BigDecimal!] + liquidityTokenTotalSupply: BigDecimal + liquidityTokenTotalSupply_not: BigDecimal + liquidityTokenTotalSupply_gt: BigDecimal + liquidityTokenTotalSupply_lt: BigDecimal + liquidityTokenTotalSupply_gte: BigDecimal + liquidityTokenTotalSupply_lte: BigDecimal + liquidityTokenTotalSupply_in: [BigDecimal!] + liquidityTokenTotalSupply_not_in: [BigDecimal!] + liquidityTokenBalance: BigDecimal + liquidityTokenBalance_not: BigDecimal + liquidityTokenBalance_gt: BigDecimal + liquidityTokenBalance_lt: BigDecimal + liquidityTokenBalance_gte: BigDecimal + liquidityTokenBalance_lte: BigDecimal + liquidityTokenBalance_in: [BigDecimal!] + liquidityTokenBalance_not_in: [BigDecimal!] +} + +enum LiquidityPositionSnapshot_orderBy { + id + liquidityPosition + timestamp + block + user + pair + token0PriceUSD + token1PriceUSD + reserve0 + reserve1 + reserveUSD + liquidityTokenTotalSupply + liquidityTokenBalance +} + +type Mint { + id: ID! + transaction: Transaction! + timestamp: BigInt! + pair: Pair! + to: Bytes! + liquidity: BigDecimal! + sender: Bytes + amount0: BigDecimal + amount1: BigDecimal + logIndex: BigInt + amountUSD: BigDecimal + feeTo: Bytes + feeLiquidity: BigDecimal +} + +input Mint_filter { + id: ID + id_not: ID + id_gt: ID + id_lt: ID + id_gte: ID + id_lte: ID + id_in: [ID!] + id_not_in: [ID!] + transaction: String + transaction_not: String + transaction_gt: String + transaction_lt: String + transaction_gte: String + transaction_lte: String + transaction_in: [String!] + transaction_not_in: [String!] + transaction_contains: String + transaction_not_contains: String + transaction_starts_with: String + transaction_not_starts_with: String + transaction_ends_with: String + transaction_not_ends_with: String + timestamp: BigInt + timestamp_not: BigInt + timestamp_gt: BigInt + timestamp_lt: BigInt + timestamp_gte: BigInt + timestamp_lte: BigInt + timestamp_in: [BigInt!] + timestamp_not_in: [BigInt!] + pair: String + pair_not: String + pair_gt: String + pair_lt: String + pair_gte: String + pair_lte: String + pair_in: [String!] + pair_not_in: [String!] + pair_contains: String + pair_not_contains: String + pair_starts_with: String + pair_not_starts_with: String + pair_ends_with: String + pair_not_ends_with: String + to: Bytes + to_not: Bytes + to_in: [Bytes!] + to_not_in: [Bytes!] + to_contains: Bytes + to_not_contains: Bytes + liquidity: BigDecimal + liquidity_not: BigDecimal + liquidity_gt: BigDecimal + liquidity_lt: BigDecimal + liquidity_gte: BigDecimal + liquidity_lte: BigDecimal + liquidity_in: [BigDecimal!] + liquidity_not_in: [BigDecimal!] + sender: Bytes + sender_not: Bytes + sender_in: [Bytes!] + sender_not_in: [Bytes!] + sender_contains: Bytes + sender_not_contains: Bytes + amount0: BigDecimal + amount0_not: BigDecimal + amount0_gt: BigDecimal + amount0_lt: BigDecimal + amount0_gte: BigDecimal + amount0_lte: BigDecimal + amount0_in: [BigDecimal!] + amount0_not_in: [BigDecimal!] + amount1: BigDecimal + amount1_not: BigDecimal + amount1_gt: BigDecimal + amount1_lt: BigDecimal + amount1_gte: BigDecimal + amount1_lte: BigDecimal + amount1_in: [BigDecimal!] + amount1_not_in: [BigDecimal!] + logIndex: BigInt + logIndex_not: BigInt + logIndex_gt: BigInt + logIndex_lt: BigInt + logIndex_gte: BigInt + logIndex_lte: BigInt + logIndex_in: [BigInt!] + logIndex_not_in: [BigInt!] + amountUSD: BigDecimal + amountUSD_not: BigDecimal + amountUSD_gt: BigDecimal + amountUSD_lt: BigDecimal + amountUSD_gte: BigDecimal + amountUSD_lte: BigDecimal + amountUSD_in: [BigDecimal!] + amountUSD_not_in: [BigDecimal!] + feeTo: Bytes + feeTo_not: Bytes + feeTo_in: [Bytes!] + feeTo_not_in: [Bytes!] + feeTo_contains: Bytes + feeTo_not_contains: Bytes + feeLiquidity: BigDecimal + feeLiquidity_not: BigDecimal + feeLiquidity_gt: BigDecimal + feeLiquidity_lt: BigDecimal + feeLiquidity_gte: BigDecimal + feeLiquidity_lte: BigDecimal + feeLiquidity_in: [BigDecimal!] + feeLiquidity_not_in: [BigDecimal!] +} + +enum Mint_orderBy { + id + transaction + timestamp + pair + to + liquidity + sender + amount0 + amount1 + logIndex + amountUSD + feeTo + feeLiquidity +} + +enum OrderDirection { + asc + desc +} + +type Pair { + id: ID! + token0: Token! + token1: Token! + reserve0: BigDecimal! + reserve1: BigDecimal! + totalSupply: BigDecimal! + reserveETH: BigDecimal! + reserveUSD: BigDecimal! + trackedReserveETH: BigDecimal! + token0Price: BigDecimal! + token1Price: BigDecimal! + volumeToken0: BigDecimal! + volumeToken1: BigDecimal! + volumeUSD: BigDecimal! + untrackedVolumeUSD: BigDecimal! + txCount: BigInt! + createdAtTimestamp: BigInt! + createdAtBlockNumber: BigInt! + liquidityProviderCount: BigInt! +} + +input Pair_filter { + id: ID + id_not: ID + id_gt: ID + id_lt: ID + id_gte: ID + id_lte: ID + id_in: [ID!] + id_not_in: [ID!] + token0: String + token0_not: String + token0_gt: String + token0_lt: String + token0_gte: String + token0_lte: String + token0_in: [String!] + token0_not_in: [String!] + token0_contains: String + token0_not_contains: String + token0_starts_with: String + token0_not_starts_with: String + token0_ends_with: String + token0_not_ends_with: String + token1: String + token1_not: String + token1_gt: String + token1_lt: String + token1_gte: String + token1_lte: String + token1_in: [String!] + token1_not_in: [String!] + token1_contains: String + token1_not_contains: String + token1_starts_with: String + token1_not_starts_with: String + token1_ends_with: String + token1_not_ends_with: String + reserve0: BigDecimal + reserve0_not: BigDecimal + reserve0_gt: BigDecimal + reserve0_lt: BigDecimal + reserve0_gte: BigDecimal + reserve0_lte: BigDecimal + reserve0_in: [BigDecimal!] + reserve0_not_in: [BigDecimal!] + reserve1: BigDecimal + reserve1_not: BigDecimal + reserve1_gt: BigDecimal + reserve1_lt: BigDecimal + reserve1_gte: BigDecimal + reserve1_lte: BigDecimal + reserve1_in: [BigDecimal!] + reserve1_not_in: [BigDecimal!] + totalSupply: BigDecimal + totalSupply_not: BigDecimal + totalSupply_gt: BigDecimal + totalSupply_lt: BigDecimal + totalSupply_gte: BigDecimal + totalSupply_lte: BigDecimal + totalSupply_in: [BigDecimal!] + totalSupply_not_in: [BigDecimal!] + reserveETH: BigDecimal + reserveETH_not: BigDecimal + reserveETH_gt: BigDecimal + reserveETH_lt: BigDecimal + reserveETH_gte: BigDecimal + reserveETH_lte: BigDecimal + reserveETH_in: [BigDecimal!] + reserveETH_not_in: [BigDecimal!] + reserveUSD: BigDecimal + reserveUSD_not: BigDecimal + reserveUSD_gt: BigDecimal + reserveUSD_lt: BigDecimal + reserveUSD_gte: BigDecimal + reserveUSD_lte: BigDecimal + reserveUSD_in: [BigDecimal!] + reserveUSD_not_in: [BigDecimal!] + trackedReserveETH: BigDecimal + trackedReserveETH_not: BigDecimal + trackedReserveETH_gt: BigDecimal + trackedReserveETH_lt: BigDecimal + trackedReserveETH_gte: BigDecimal + trackedReserveETH_lte: BigDecimal + trackedReserveETH_in: [BigDecimal!] + trackedReserveETH_not_in: [BigDecimal!] + token0Price: BigDecimal + token0Price_not: BigDecimal + token0Price_gt: BigDecimal + token0Price_lt: BigDecimal + token0Price_gte: BigDecimal + token0Price_lte: BigDecimal + token0Price_in: [BigDecimal!] + token0Price_not_in: [BigDecimal!] + token1Price: BigDecimal + token1Price_not: BigDecimal + token1Price_gt: BigDecimal + token1Price_lt: BigDecimal + token1Price_gte: BigDecimal + token1Price_lte: BigDecimal + token1Price_in: [BigDecimal!] + token1Price_not_in: [BigDecimal!] + volumeToken0: BigDecimal + volumeToken0_not: BigDecimal + volumeToken0_gt: BigDecimal + volumeToken0_lt: BigDecimal + volumeToken0_gte: BigDecimal + volumeToken0_lte: BigDecimal + volumeToken0_in: [BigDecimal!] + volumeToken0_not_in: [BigDecimal!] + volumeToken1: BigDecimal + volumeToken1_not: BigDecimal + volumeToken1_gt: BigDecimal + volumeToken1_lt: BigDecimal + volumeToken1_gte: BigDecimal + volumeToken1_lte: BigDecimal + volumeToken1_in: [BigDecimal!] + volumeToken1_not_in: [BigDecimal!] + volumeUSD: BigDecimal + volumeUSD_not: BigDecimal + volumeUSD_gt: BigDecimal + volumeUSD_lt: BigDecimal + volumeUSD_gte: BigDecimal + volumeUSD_lte: BigDecimal + volumeUSD_in: [BigDecimal!] + volumeUSD_not_in: [BigDecimal!] + untrackedVolumeUSD: BigDecimal + untrackedVolumeUSD_not: BigDecimal + untrackedVolumeUSD_gt: BigDecimal + untrackedVolumeUSD_lt: BigDecimal + untrackedVolumeUSD_gte: BigDecimal + untrackedVolumeUSD_lte: BigDecimal + untrackedVolumeUSD_in: [BigDecimal!] + untrackedVolumeUSD_not_in: [BigDecimal!] + txCount: BigInt + txCount_not: BigInt + txCount_gt: BigInt + txCount_lt: BigInt + txCount_gte: BigInt + txCount_lte: BigInt + txCount_in: [BigInt!] + txCount_not_in: [BigInt!] + createdAtTimestamp: BigInt + createdAtTimestamp_not: BigInt + createdAtTimestamp_gt: BigInt + createdAtTimestamp_lt: BigInt + createdAtTimestamp_gte: BigInt + createdAtTimestamp_lte: BigInt + createdAtTimestamp_in: [BigInt!] + createdAtTimestamp_not_in: [BigInt!] + createdAtBlockNumber: BigInt + createdAtBlockNumber_not: BigInt + createdAtBlockNumber_gt: BigInt + createdAtBlockNumber_lt: BigInt + createdAtBlockNumber_gte: BigInt + createdAtBlockNumber_lte: BigInt + createdAtBlockNumber_in: [BigInt!] + createdAtBlockNumber_not_in: [BigInt!] + liquidityProviderCount: BigInt + liquidityProviderCount_not: BigInt + liquidityProviderCount_gt: BigInt + liquidityProviderCount_lt: BigInt + liquidityProviderCount_gte: BigInt + liquidityProviderCount_lte: BigInt + liquidityProviderCount_in: [BigInt!] + liquidityProviderCount_not_in: [BigInt!] +} + +enum Pair_orderBy { + id + token0 + token1 + reserve0 + reserve1 + totalSupply + reserveETH + reserveUSD + trackedReserveETH + token0Price + token1Price + volumeToken0 + volumeToken1 + volumeUSD + untrackedVolumeUSD + txCount + createdAtTimestamp + createdAtBlockNumber + liquidityProviderCount +} + +type PairDayData { + id: ID! + date: Int! + pairAddress: Bytes! + token0: Token! + token1: Token! + reserve0: BigDecimal! + reserve1: BigDecimal! + totalSupply: BigDecimal! + reserveUSD: BigDecimal! + dailyVolumeToken0: BigDecimal! + dailyVolumeToken1: BigDecimal! + dailyVolumeUSD: BigDecimal! + dailyTxns: BigInt! +} + +input PairDayData_filter { + id: ID + id_not: ID + id_gt: ID + id_lt: ID + id_gte: ID + id_lte: ID + id_in: [ID!] + id_not_in: [ID!] + date: Int + date_not: Int + date_gt: Int + date_lt: Int + date_gte: Int + date_lte: Int + date_in: [Int!] + date_not_in: [Int!] + pairAddress: Bytes + pairAddress_not: Bytes + pairAddress_in: [Bytes!] + pairAddress_not_in: [Bytes!] + pairAddress_contains: Bytes + pairAddress_not_contains: Bytes + token0: String + token0_not: String + token0_gt: String + token0_lt: String + token0_gte: String + token0_lte: String + token0_in: [String!] + token0_not_in: [String!] + token0_contains: String + token0_not_contains: String + token0_starts_with: String + token0_not_starts_with: String + token0_ends_with: String + token0_not_ends_with: String + token1: String + token1_not: String + token1_gt: String + token1_lt: String + token1_gte: String + token1_lte: String + token1_in: [String!] + token1_not_in: [String!] + token1_contains: String + token1_not_contains: String + token1_starts_with: String + token1_not_starts_with: String + token1_ends_with: String + token1_not_ends_with: String + reserve0: BigDecimal + reserve0_not: BigDecimal + reserve0_gt: BigDecimal + reserve0_lt: BigDecimal + reserve0_gte: BigDecimal + reserve0_lte: BigDecimal + reserve0_in: [BigDecimal!] + reserve0_not_in: [BigDecimal!] + reserve1: BigDecimal + reserve1_not: BigDecimal + reserve1_gt: BigDecimal + reserve1_lt: BigDecimal + reserve1_gte: BigDecimal + reserve1_lte: BigDecimal + reserve1_in: [BigDecimal!] + reserve1_not_in: [BigDecimal!] + totalSupply: BigDecimal + totalSupply_not: BigDecimal + totalSupply_gt: BigDecimal + totalSupply_lt: BigDecimal + totalSupply_gte: BigDecimal + totalSupply_lte: BigDecimal + totalSupply_in: [BigDecimal!] + totalSupply_not_in: [BigDecimal!] + reserveUSD: BigDecimal + reserveUSD_not: BigDecimal + reserveUSD_gt: BigDecimal + reserveUSD_lt: BigDecimal + reserveUSD_gte: BigDecimal + reserveUSD_lte: BigDecimal + reserveUSD_in: [BigDecimal!] + reserveUSD_not_in: [BigDecimal!] + dailyVolumeToken0: BigDecimal + dailyVolumeToken0_not: BigDecimal + dailyVolumeToken0_gt: BigDecimal + dailyVolumeToken0_lt: BigDecimal + dailyVolumeToken0_gte: BigDecimal + dailyVolumeToken0_lte: BigDecimal + dailyVolumeToken0_in: [BigDecimal!] + dailyVolumeToken0_not_in: [BigDecimal!] + dailyVolumeToken1: BigDecimal + dailyVolumeToken1_not: BigDecimal + dailyVolumeToken1_gt: BigDecimal + dailyVolumeToken1_lt: BigDecimal + dailyVolumeToken1_gte: BigDecimal + dailyVolumeToken1_lte: BigDecimal + dailyVolumeToken1_in: [BigDecimal!] + dailyVolumeToken1_not_in: [BigDecimal!] + dailyVolumeUSD: BigDecimal + dailyVolumeUSD_not: BigDecimal + dailyVolumeUSD_gt: BigDecimal + dailyVolumeUSD_lt: BigDecimal + dailyVolumeUSD_gte: BigDecimal + dailyVolumeUSD_lte: BigDecimal + dailyVolumeUSD_in: [BigDecimal!] + dailyVolumeUSD_not_in: [BigDecimal!] + dailyTxns: BigInt + dailyTxns_not: BigInt + dailyTxns_gt: BigInt + dailyTxns_lt: BigInt + dailyTxns_gte: BigInt + dailyTxns_lte: BigInt + dailyTxns_in: [BigInt!] + dailyTxns_not_in: [BigInt!] +} + +enum PairDayData_orderBy { + id + date + pairAddress + token0 + token1 + reserve0 + reserve1 + totalSupply + reserveUSD + dailyVolumeToken0 + dailyVolumeToken1 + dailyVolumeUSD + dailyTxns +} + +type PairHourData { + id: ID! + hourStartUnix: Int! + pair: Pair! + reserve0: BigDecimal! + reserve1: BigDecimal! + reserveUSD: BigDecimal! + hourlyVolumeToken0: BigDecimal! + hourlyVolumeToken1: BigDecimal! + hourlyVolumeUSD: BigDecimal! + hourlyTxns: BigInt! +} + +input PairHourData_filter { + id: ID + id_not: ID + id_gt: ID + id_lt: ID + id_gte: ID + id_lte: ID + id_in: [ID!] + id_not_in: [ID!] + hourStartUnix: Int + hourStartUnix_not: Int + hourStartUnix_gt: Int + hourStartUnix_lt: Int + hourStartUnix_gte: Int + hourStartUnix_lte: Int + hourStartUnix_in: [Int!] + hourStartUnix_not_in: [Int!] + pair: String + pair_not: String + pair_gt: String + pair_lt: String + pair_gte: String + pair_lte: String + pair_in: [String!] + pair_not_in: [String!] + pair_contains: String + pair_not_contains: String + pair_starts_with: String + pair_not_starts_with: String + pair_ends_with: String + pair_not_ends_with: String + reserve0: BigDecimal + reserve0_not: BigDecimal + reserve0_gt: BigDecimal + reserve0_lt: BigDecimal + reserve0_gte: BigDecimal + reserve0_lte: BigDecimal + reserve0_in: [BigDecimal!] + reserve0_not_in: [BigDecimal!] + reserve1: BigDecimal + reserve1_not: BigDecimal + reserve1_gt: BigDecimal + reserve1_lt: BigDecimal + reserve1_gte: BigDecimal + reserve1_lte: BigDecimal + reserve1_in: [BigDecimal!] + reserve1_not_in: [BigDecimal!] + reserveUSD: BigDecimal + reserveUSD_not: BigDecimal + reserveUSD_gt: BigDecimal + reserveUSD_lt: BigDecimal + reserveUSD_gte: BigDecimal + reserveUSD_lte: BigDecimal + reserveUSD_in: [BigDecimal!] + reserveUSD_not_in: [BigDecimal!] + hourlyVolumeToken0: BigDecimal + hourlyVolumeToken0_not: BigDecimal + hourlyVolumeToken0_gt: BigDecimal + hourlyVolumeToken0_lt: BigDecimal + hourlyVolumeToken0_gte: BigDecimal + hourlyVolumeToken0_lte: BigDecimal + hourlyVolumeToken0_in: [BigDecimal!] + hourlyVolumeToken0_not_in: [BigDecimal!] + hourlyVolumeToken1: BigDecimal + hourlyVolumeToken1_not: BigDecimal + hourlyVolumeToken1_gt: BigDecimal + hourlyVolumeToken1_lt: BigDecimal + hourlyVolumeToken1_gte: BigDecimal + hourlyVolumeToken1_lte: BigDecimal + hourlyVolumeToken1_in: [BigDecimal!] + hourlyVolumeToken1_not_in: [BigDecimal!] + hourlyVolumeUSD: BigDecimal + hourlyVolumeUSD_not: BigDecimal + hourlyVolumeUSD_gt: BigDecimal + hourlyVolumeUSD_lt: BigDecimal + hourlyVolumeUSD_gte: BigDecimal + hourlyVolumeUSD_lte: BigDecimal + hourlyVolumeUSD_in: [BigDecimal!] + hourlyVolumeUSD_not_in: [BigDecimal!] + hourlyTxns: BigInt + hourlyTxns_not: BigInt + hourlyTxns_gt: BigInt + hourlyTxns_lt: BigInt + hourlyTxns_gte: BigInt + hourlyTxns_lte: BigInt + hourlyTxns_in: [BigInt!] + hourlyTxns_not_in: [BigInt!] +} + +enum PairHourData_orderBy { + id + hourStartUnix + pair + reserve0 + reserve1 + reserveUSD + hourlyVolumeToken0 + hourlyVolumeToken1 + hourlyVolumeUSD + hourlyTxns +} + +type Query { + uniswapFactory( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): UniswapFactory + uniswapFactories( + skip: Int = 0 + first: Int = 100 + orderBy: UniswapFactory_orderBy + orderDirection: OrderDirection + where: UniswapFactory_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [UniswapFactory!]! + token( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): Token + tokens( + skip: Int = 0 + first: Int = 100 + orderBy: Token_orderBy + orderDirection: OrderDirection + where: Token_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [Token!]! + pair( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): Pair + pairs( + skip: Int = 0 + first: Int = 100 + orderBy: Pair_orderBy + orderDirection: OrderDirection + where: Pair_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [Pair!]! + user( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): User + users( + skip: Int = 0 + first: Int = 100 + orderBy: User_orderBy + orderDirection: OrderDirection + where: User_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [User!]! + liquidityPosition( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): LiquidityPosition + liquidityPositions( + skip: Int = 0 + first: Int = 100 + orderBy: LiquidityPosition_orderBy + orderDirection: OrderDirection + where: LiquidityPosition_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [LiquidityPosition!]! + liquidityPositionSnapshot( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): LiquidityPositionSnapshot + liquidityPositionSnapshots( + skip: Int = 0 + first: Int = 100 + orderBy: LiquidityPositionSnapshot_orderBy + orderDirection: OrderDirection + where: LiquidityPositionSnapshot_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [LiquidityPositionSnapshot!]! + transaction( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): Transaction + transactions( + skip: Int = 0 + first: Int = 100 + orderBy: Transaction_orderBy + orderDirection: OrderDirection + where: Transaction_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [Transaction!]! + mint( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): Mint + mints( + skip: Int = 0 + first: Int = 100 + orderBy: Mint_orderBy + orderDirection: OrderDirection + where: Mint_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [Mint!]! + burn( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): Burn + burns( + skip: Int = 0 + first: Int = 100 + orderBy: Burn_orderBy + orderDirection: OrderDirection + where: Burn_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [Burn!]! + swap( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): Swap + swaps( + skip: Int = 0 + first: Int = 100 + orderBy: Swap_orderBy + orderDirection: OrderDirection + where: Swap_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [Swap!]! + bundle( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): Bundle + bundles( + skip: Int = 0 + first: Int = 100 + orderBy: Bundle_orderBy + orderDirection: OrderDirection + where: Bundle_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [Bundle!]! + uniswapDayData( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): UniswapDayData + uniswapDayDatas( + skip: Int = 0 + first: Int = 100 + orderBy: UniswapDayData_orderBy + orderDirection: OrderDirection + where: UniswapDayData_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [UniswapDayData!]! + pairHourData( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): PairHourData + pairHourDatas( + skip: Int = 0 + first: Int = 100 + orderBy: PairHourData_orderBy + orderDirection: OrderDirection + where: PairHourData_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [PairHourData!]! + pairDayData( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): PairDayData + pairDayDatas( + skip: Int = 0 + first: Int = 100 + orderBy: PairDayData_orderBy + orderDirection: OrderDirection + where: PairDayData_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [PairDayData!]! + tokenDayData( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): TokenDayData + tokenDayDatas( + skip: Int = 0 + first: Int = 100 + orderBy: TokenDayData_orderBy + orderDirection: OrderDirection + where: TokenDayData_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [TokenDayData!]! + + """Access to subgraph metadata""" + _meta(block: Block_height): _Meta_ +} + +type Subscription { + uniswapFactory( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): UniswapFactory + uniswapFactories( + skip: Int = 0 + first: Int = 100 + orderBy: UniswapFactory_orderBy + orderDirection: OrderDirection + where: UniswapFactory_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [UniswapFactory!]! + token( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): Token + tokens( + skip: Int = 0 + first: Int = 100 + orderBy: Token_orderBy + orderDirection: OrderDirection + where: Token_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [Token!]! + pair( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): Pair + pairs( + skip: Int = 0 + first: Int = 100 + orderBy: Pair_orderBy + orderDirection: OrderDirection + where: Pair_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [Pair!]! + user( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): User + users( + skip: Int = 0 + first: Int = 100 + orderBy: User_orderBy + orderDirection: OrderDirection + where: User_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [User!]! + liquidityPosition( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): LiquidityPosition + liquidityPositions( + skip: Int = 0 + first: Int = 100 + orderBy: LiquidityPosition_orderBy + orderDirection: OrderDirection + where: LiquidityPosition_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [LiquidityPosition!]! + liquidityPositionSnapshot( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): LiquidityPositionSnapshot + liquidityPositionSnapshots( + skip: Int = 0 + first: Int = 100 + orderBy: LiquidityPositionSnapshot_orderBy + orderDirection: OrderDirection + where: LiquidityPositionSnapshot_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [LiquidityPositionSnapshot!]! + transaction( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): Transaction + transactions( + skip: Int = 0 + first: Int = 100 + orderBy: Transaction_orderBy + orderDirection: OrderDirection + where: Transaction_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [Transaction!]! + mint( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): Mint + mints( + skip: Int = 0 + first: Int = 100 + orderBy: Mint_orderBy + orderDirection: OrderDirection + where: Mint_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [Mint!]! + burn( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): Burn + burns( + skip: Int = 0 + first: Int = 100 + orderBy: Burn_orderBy + orderDirection: OrderDirection + where: Burn_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [Burn!]! + swap( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): Swap + swaps( + skip: Int = 0 + first: Int = 100 + orderBy: Swap_orderBy + orderDirection: OrderDirection + where: Swap_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [Swap!]! + bundle( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): Bundle + bundles( + skip: Int = 0 + first: Int = 100 + orderBy: Bundle_orderBy + orderDirection: OrderDirection + where: Bundle_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [Bundle!]! + uniswapDayData( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): UniswapDayData + uniswapDayDatas( + skip: Int = 0 + first: Int = 100 + orderBy: UniswapDayData_orderBy + orderDirection: OrderDirection + where: UniswapDayData_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [UniswapDayData!]! + pairHourData( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): PairHourData + pairHourDatas( + skip: Int = 0 + first: Int = 100 + orderBy: PairHourData_orderBy + orderDirection: OrderDirection + where: PairHourData_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [PairHourData!]! + pairDayData( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): PairDayData + pairDayDatas( + skip: Int = 0 + first: Int = 100 + orderBy: PairDayData_orderBy + orderDirection: OrderDirection + where: PairDayData_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [PairDayData!]! + tokenDayData( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): TokenDayData + tokenDayDatas( + skip: Int = 0 + first: Int = 100 + orderBy: TokenDayData_orderBy + orderDirection: OrderDirection + where: TokenDayData_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [TokenDayData!]! + + """Access to subgraph metadata""" + _meta(block: Block_height): _Meta_ +} + +type Swap { + id: ID! + transaction: Transaction! + timestamp: BigInt! + pair: Pair! + sender: Bytes! + amount0In: BigDecimal! + amount1In: BigDecimal! + amount0Out: BigDecimal! + amount1Out: BigDecimal! + to: Bytes! + logIndex: BigInt + amountUSD: BigDecimal! +} + +input Swap_filter { + id: ID + id_not: ID + id_gt: ID + id_lt: ID + id_gte: ID + id_lte: ID + id_in: [ID!] + id_not_in: [ID!] + transaction: String + transaction_not: String + transaction_gt: String + transaction_lt: String + transaction_gte: String + transaction_lte: String + transaction_in: [String!] + transaction_not_in: [String!] + transaction_contains: String + transaction_not_contains: String + transaction_starts_with: String + transaction_not_starts_with: String + transaction_ends_with: String + transaction_not_ends_with: String + timestamp: BigInt + timestamp_not: BigInt + timestamp_gt: BigInt + timestamp_lt: BigInt + timestamp_gte: BigInt + timestamp_lte: BigInt + timestamp_in: [BigInt!] + timestamp_not_in: [BigInt!] + pair: String + pair_not: String + pair_gt: String + pair_lt: String + pair_gte: String + pair_lte: String + pair_in: [String!] + pair_not_in: [String!] + pair_contains: String + pair_not_contains: String + pair_starts_with: String + pair_not_starts_with: String + pair_ends_with: String + pair_not_ends_with: String + sender: Bytes + sender_not: Bytes + sender_in: [Bytes!] + sender_not_in: [Bytes!] + sender_contains: Bytes + sender_not_contains: Bytes + amount0In: BigDecimal + amount0In_not: BigDecimal + amount0In_gt: BigDecimal + amount0In_lt: BigDecimal + amount0In_gte: BigDecimal + amount0In_lte: BigDecimal + amount0In_in: [BigDecimal!] + amount0In_not_in: [BigDecimal!] + amount1In: BigDecimal + amount1In_not: BigDecimal + amount1In_gt: BigDecimal + amount1In_lt: BigDecimal + amount1In_gte: BigDecimal + amount1In_lte: BigDecimal + amount1In_in: [BigDecimal!] + amount1In_not_in: [BigDecimal!] + amount0Out: BigDecimal + amount0Out_not: BigDecimal + amount0Out_gt: BigDecimal + amount0Out_lt: BigDecimal + amount0Out_gte: BigDecimal + amount0Out_lte: BigDecimal + amount0Out_in: [BigDecimal!] + amount0Out_not_in: [BigDecimal!] + amount1Out: BigDecimal + amount1Out_not: BigDecimal + amount1Out_gt: BigDecimal + amount1Out_lt: BigDecimal + amount1Out_gte: BigDecimal + amount1Out_lte: BigDecimal + amount1Out_in: [BigDecimal!] + amount1Out_not_in: [BigDecimal!] + to: Bytes + to_not: Bytes + to_in: [Bytes!] + to_not_in: [Bytes!] + to_contains: Bytes + to_not_contains: Bytes + logIndex: BigInt + logIndex_not: BigInt + logIndex_gt: BigInt + logIndex_lt: BigInt + logIndex_gte: BigInt + logIndex_lte: BigInt + logIndex_in: [BigInt!] + logIndex_not_in: [BigInt!] + amountUSD: BigDecimal + amountUSD_not: BigDecimal + amountUSD_gt: BigDecimal + amountUSD_lt: BigDecimal + amountUSD_gte: BigDecimal + amountUSD_lte: BigDecimal + amountUSD_in: [BigDecimal!] + amountUSD_not_in: [BigDecimal!] +} + +enum Swap_orderBy { + id + transaction + timestamp + pair + sender + amount0In + amount1In + amount0Out + amount1Out + to + logIndex + amountUSD +} + +type Token { + id: ID! + symbol: String! + name: String! + decimals: BigInt! + totalSupply: BigInt! + tradeVolume: BigDecimal! + tradeVolumeUSD: BigDecimal! + untrackedVolumeUSD: BigDecimal! + txCount: BigInt! + totalLiquidity: BigDecimal! + derivedETH: BigDecimal + mostLiquidPairs(skip: Int = 0, first: Int = 100, orderBy: PairDayData_orderBy, orderDirection: OrderDirection, where: PairDayData_filter): [PairDayData]! +} + +input Token_filter { + id: ID + id_not: ID + id_gt: ID + id_lt: ID + id_gte: ID + id_lte: ID + id_in: [ID!] + id_not_in: [ID!] + symbol: String + symbol_not: String + symbol_gt: String + symbol_lt: String + symbol_gte: String + symbol_lte: String + symbol_in: [String!] + symbol_not_in: [String!] + symbol_contains: String + symbol_not_contains: String + symbol_starts_with: String + symbol_not_starts_with: String + symbol_ends_with: String + symbol_not_ends_with: String + name: String + name_not: String + name_gt: String + name_lt: String + name_gte: String + name_lte: String + name_in: [String!] + name_not_in: [String!] + name_contains: String + name_not_contains: String + name_starts_with: String + name_not_starts_with: String + name_ends_with: String + name_not_ends_with: String + decimals: BigInt + decimals_not: BigInt + decimals_gt: BigInt + decimals_lt: BigInt + decimals_gte: BigInt + decimals_lte: BigInt + decimals_in: [BigInt!] + decimals_not_in: [BigInt!] + totalSupply: BigInt + totalSupply_not: BigInt + totalSupply_gt: BigInt + totalSupply_lt: BigInt + totalSupply_gte: BigInt + totalSupply_lte: BigInt + totalSupply_in: [BigInt!] + totalSupply_not_in: [BigInt!] + tradeVolume: BigDecimal + tradeVolume_not: BigDecimal + tradeVolume_gt: BigDecimal + tradeVolume_lt: BigDecimal + tradeVolume_gte: BigDecimal + tradeVolume_lte: BigDecimal + tradeVolume_in: [BigDecimal!] + tradeVolume_not_in: [BigDecimal!] + tradeVolumeUSD: BigDecimal + tradeVolumeUSD_not: BigDecimal + tradeVolumeUSD_gt: BigDecimal + tradeVolumeUSD_lt: BigDecimal + tradeVolumeUSD_gte: BigDecimal + tradeVolumeUSD_lte: BigDecimal + tradeVolumeUSD_in: [BigDecimal!] + tradeVolumeUSD_not_in: [BigDecimal!] + untrackedVolumeUSD: BigDecimal + untrackedVolumeUSD_not: BigDecimal + untrackedVolumeUSD_gt: BigDecimal + untrackedVolumeUSD_lt: BigDecimal + untrackedVolumeUSD_gte: BigDecimal + untrackedVolumeUSD_lte: BigDecimal + untrackedVolumeUSD_in: [BigDecimal!] + untrackedVolumeUSD_not_in: [BigDecimal!] + txCount: BigInt + txCount_not: BigInt + txCount_gt: BigInt + txCount_lt: BigInt + txCount_gte: BigInt + txCount_lte: BigInt + txCount_in: [BigInt!] + txCount_not_in: [BigInt!] + totalLiquidity: BigDecimal + totalLiquidity_not: BigDecimal + totalLiquidity_gt: BigDecimal + totalLiquidity_lt: BigDecimal + totalLiquidity_gte: BigDecimal + totalLiquidity_lte: BigDecimal + totalLiquidity_in: [BigDecimal!] + totalLiquidity_not_in: [BigDecimal!] + derivedETH: BigDecimal + derivedETH_not: BigDecimal + derivedETH_gt: BigDecimal + derivedETH_lt: BigDecimal + derivedETH_gte: BigDecimal + derivedETH_lte: BigDecimal + derivedETH_in: [BigDecimal!] + derivedETH_not_in: [BigDecimal!] + mostLiquidPairs: [String!] + mostLiquidPairs_not: [String!] + mostLiquidPairs_contains: [String!] + mostLiquidPairs_not_contains: [String!] +} + +enum Token_orderBy { + id + symbol + name + decimals + totalSupply + tradeVolume + tradeVolumeUSD + untrackedVolumeUSD + txCount + totalLiquidity + derivedETH + mostLiquidPairs +} + +type TokenDayData { + id: ID! + date: Int! + token: Token! + dailyVolumeToken: BigDecimal! + dailyVolumeETH: BigDecimal! + dailyVolumeUSD: BigDecimal! + dailyTxns: BigInt! + totalLiquidityToken: BigDecimal! + totalLiquidityETH: BigDecimal! + totalLiquidityUSD: BigDecimal! + priceUSD: BigDecimal! + maxStored: Int! + mostLiquidPairs(skip: Int = 0, first: Int = 100, orderBy: PairDayData_orderBy, orderDirection: OrderDirection, where: PairDayData_filter): [PairDayData!]! +} + +input TokenDayData_filter { + id: ID + id_not: ID + id_gt: ID + id_lt: ID + id_gte: ID + id_lte: ID + id_in: [ID!] + id_not_in: [ID!] + date: Int + date_not: Int + date_gt: Int + date_lt: Int + date_gte: Int + date_lte: Int + date_in: [Int!] + date_not_in: [Int!] + token: String + token_not: String + token_gt: String + token_lt: String + token_gte: String + token_lte: String + token_in: [String!] + token_not_in: [String!] + token_contains: String + token_not_contains: String + token_starts_with: String + token_not_starts_with: String + token_ends_with: String + token_not_ends_with: String + dailyVolumeToken: BigDecimal + dailyVolumeToken_not: BigDecimal + dailyVolumeToken_gt: BigDecimal + dailyVolumeToken_lt: BigDecimal + dailyVolumeToken_gte: BigDecimal + dailyVolumeToken_lte: BigDecimal + dailyVolumeToken_in: [BigDecimal!] + dailyVolumeToken_not_in: [BigDecimal!] + dailyVolumeETH: BigDecimal + dailyVolumeETH_not: BigDecimal + dailyVolumeETH_gt: BigDecimal + dailyVolumeETH_lt: BigDecimal + dailyVolumeETH_gte: BigDecimal + dailyVolumeETH_lte: BigDecimal + dailyVolumeETH_in: [BigDecimal!] + dailyVolumeETH_not_in: [BigDecimal!] + dailyVolumeUSD: BigDecimal + dailyVolumeUSD_not: BigDecimal + dailyVolumeUSD_gt: BigDecimal + dailyVolumeUSD_lt: BigDecimal + dailyVolumeUSD_gte: BigDecimal + dailyVolumeUSD_lte: BigDecimal + dailyVolumeUSD_in: [BigDecimal!] + dailyVolumeUSD_not_in: [BigDecimal!] + dailyTxns: BigInt + dailyTxns_not: BigInt + dailyTxns_gt: BigInt + dailyTxns_lt: BigInt + dailyTxns_gte: BigInt + dailyTxns_lte: BigInt + dailyTxns_in: [BigInt!] + dailyTxns_not_in: [BigInt!] + totalLiquidityToken: BigDecimal + totalLiquidityToken_not: BigDecimal + totalLiquidityToken_gt: BigDecimal + totalLiquidityToken_lt: BigDecimal + totalLiquidityToken_gte: BigDecimal + totalLiquidityToken_lte: BigDecimal + totalLiquidityToken_in: [BigDecimal!] + totalLiquidityToken_not_in: [BigDecimal!] + totalLiquidityETH: BigDecimal + totalLiquidityETH_not: BigDecimal + totalLiquidityETH_gt: BigDecimal + totalLiquidityETH_lt: BigDecimal + totalLiquidityETH_gte: BigDecimal + totalLiquidityETH_lte: BigDecimal + totalLiquidityETH_in: [BigDecimal!] + totalLiquidityETH_not_in: [BigDecimal!] + totalLiquidityUSD: BigDecimal + totalLiquidityUSD_not: BigDecimal + totalLiquidityUSD_gt: BigDecimal + totalLiquidityUSD_lt: BigDecimal + totalLiquidityUSD_gte: BigDecimal + totalLiquidityUSD_lte: BigDecimal + totalLiquidityUSD_in: [BigDecimal!] + totalLiquidityUSD_not_in: [BigDecimal!] + priceUSD: BigDecimal + priceUSD_not: BigDecimal + priceUSD_gt: BigDecimal + priceUSD_lt: BigDecimal + priceUSD_gte: BigDecimal + priceUSD_lte: BigDecimal + priceUSD_in: [BigDecimal!] + priceUSD_not_in: [BigDecimal!] + maxStored: Int + maxStored_not: Int + maxStored_gt: Int + maxStored_lt: Int + maxStored_gte: Int + maxStored_lte: Int + maxStored_in: [Int!] + maxStored_not_in: [Int!] + mostLiquidPairs: [String!] + mostLiquidPairs_not: [String!] + mostLiquidPairs_contains: [String!] + mostLiquidPairs_not_contains: [String!] +} + +enum TokenDayData_orderBy { + id + date + token + dailyVolumeToken + dailyVolumeETH + dailyVolumeUSD + dailyTxns + totalLiquidityToken + totalLiquidityETH + totalLiquidityUSD + priceUSD + maxStored + mostLiquidPairs +} + +type Transaction { + id: ID! + blockNumber: BigInt! + timestamp: BigInt! + mints(skip: Int = 0, first: Int = 100, orderBy: Mint_orderBy, orderDirection: OrderDirection, where: Mint_filter): [Mint]! + burns(skip: Int = 0, first: Int = 100, orderBy: Burn_orderBy, orderDirection: OrderDirection, where: Burn_filter): [Burn]! + swaps(skip: Int = 0, first: Int = 100, orderBy: Swap_orderBy, orderDirection: OrderDirection, where: Swap_filter): [Swap]! +} + +input Transaction_filter { + id: ID + id_not: ID + id_gt: ID + id_lt: ID + id_gte: ID + id_lte: ID + id_in: [ID!] + id_not_in: [ID!] + blockNumber: BigInt + blockNumber_not: BigInt + blockNumber_gt: BigInt + blockNumber_lt: BigInt + blockNumber_gte: BigInt + blockNumber_lte: BigInt + blockNumber_in: [BigInt!] + blockNumber_not_in: [BigInt!] + timestamp: BigInt + timestamp_not: BigInt + timestamp_gt: BigInt + timestamp_lt: BigInt + timestamp_gte: BigInt + timestamp_lte: BigInt + timestamp_in: [BigInt!] + timestamp_not_in: [BigInt!] + mints: [String!] + mints_not: [String!] + mints_contains: [String!] + mints_not_contains: [String!] + burns: [String!] + burns_not: [String!] + burns_contains: [String!] + burns_not_contains: [String!] + swaps: [String!] + swaps_not: [String!] + swaps_contains: [String!] + swaps_not_contains: [String!] +} + +enum Transaction_orderBy { + id + blockNumber + timestamp + mints + burns + swaps +} + +type UniswapDayData { + id: ID! + date: Int! + dailyVolumeETH: BigDecimal! + dailyVolumeUSD: BigDecimal! + dailyVolumeUntracked: BigDecimal! + totalVolumeETH: BigDecimal! + totalLiquidityETH: BigDecimal! + totalVolumeUSD: BigDecimal! + totalLiquidityUSD: BigDecimal! + maxStored: Int + mostLiquidTokens(skip: Int = 0, first: Int = 100, orderBy: TokenDayData_orderBy, orderDirection: OrderDirection, where: TokenDayData_filter): [TokenDayData!]! + txCount: BigInt! +} + +input UniswapDayData_filter { + id: ID + id_not: ID + id_gt: ID + id_lt: ID + id_gte: ID + id_lte: ID + id_in: [ID!] + id_not_in: [ID!] + date: Int + date_not: Int + date_gt: Int + date_lt: Int + date_gte: Int + date_lte: Int + date_in: [Int!] + date_not_in: [Int!] + dailyVolumeETH: BigDecimal + dailyVolumeETH_not: BigDecimal + dailyVolumeETH_gt: BigDecimal + dailyVolumeETH_lt: BigDecimal + dailyVolumeETH_gte: BigDecimal + dailyVolumeETH_lte: BigDecimal + dailyVolumeETH_in: [BigDecimal!] + dailyVolumeETH_not_in: [BigDecimal!] + dailyVolumeUSD: BigDecimal + dailyVolumeUSD_not: BigDecimal + dailyVolumeUSD_gt: BigDecimal + dailyVolumeUSD_lt: BigDecimal + dailyVolumeUSD_gte: BigDecimal + dailyVolumeUSD_lte: BigDecimal + dailyVolumeUSD_in: [BigDecimal!] + dailyVolumeUSD_not_in: [BigDecimal!] + dailyVolumeUntracked: BigDecimal + dailyVolumeUntracked_not: BigDecimal + dailyVolumeUntracked_gt: BigDecimal + dailyVolumeUntracked_lt: BigDecimal + dailyVolumeUntracked_gte: BigDecimal + dailyVolumeUntracked_lte: BigDecimal + dailyVolumeUntracked_in: [BigDecimal!] + dailyVolumeUntracked_not_in: [BigDecimal!] + totalVolumeETH: BigDecimal + totalVolumeETH_not: BigDecimal + totalVolumeETH_gt: BigDecimal + totalVolumeETH_lt: BigDecimal + totalVolumeETH_gte: BigDecimal + totalVolumeETH_lte: BigDecimal + totalVolumeETH_in: [BigDecimal!] + totalVolumeETH_not_in: [BigDecimal!] + totalLiquidityETH: BigDecimal + totalLiquidityETH_not: BigDecimal + totalLiquidityETH_gt: BigDecimal + totalLiquidityETH_lt: BigDecimal + totalLiquidityETH_gte: BigDecimal + totalLiquidityETH_lte: BigDecimal + totalLiquidityETH_in: [BigDecimal!] + totalLiquidityETH_not_in: [BigDecimal!] + totalVolumeUSD: BigDecimal + totalVolumeUSD_not: BigDecimal + totalVolumeUSD_gt: BigDecimal + totalVolumeUSD_lt: BigDecimal + totalVolumeUSD_gte: BigDecimal + totalVolumeUSD_lte: BigDecimal + totalVolumeUSD_in: [BigDecimal!] + totalVolumeUSD_not_in: [BigDecimal!] + totalLiquidityUSD: BigDecimal + totalLiquidityUSD_not: BigDecimal + totalLiquidityUSD_gt: BigDecimal + totalLiquidityUSD_lt: BigDecimal + totalLiquidityUSD_gte: BigDecimal + totalLiquidityUSD_lte: BigDecimal + totalLiquidityUSD_in: [BigDecimal!] + totalLiquidityUSD_not_in: [BigDecimal!] + maxStored: Int + maxStored_not: Int + maxStored_gt: Int + maxStored_lt: Int + maxStored_gte: Int + maxStored_lte: Int + maxStored_in: [Int!] + maxStored_not_in: [Int!] + mostLiquidTokens: [String!] + mostLiquidTokens_not: [String!] + mostLiquidTokens_contains: [String!] + mostLiquidTokens_not_contains: [String!] + txCount: BigInt + txCount_not: BigInt + txCount_gt: BigInt + txCount_lt: BigInt + txCount_gte: BigInt + txCount_lte: BigInt + txCount_in: [BigInt!] + txCount_not_in: [BigInt!] +} + +enum UniswapDayData_orderBy { + id + date + dailyVolumeETH + dailyVolumeUSD + dailyVolumeUntracked + totalVolumeETH + totalLiquidityETH + totalVolumeUSD + totalLiquidityUSD + maxStored + mostLiquidTokens + txCount +} + +type UniswapFactory { + id: ID! + pairCount: Int! + totalVolumeUSD: BigDecimal! + totalVolumeETH: BigDecimal! + untrackedVolumeUSD: BigDecimal! + totalLiquidityUSD: BigDecimal! + totalLiquidityETH: BigDecimal! + txCount: BigInt! + mostLiquidTokens(skip: Int = 0, first: Int = 100, orderBy: TokenDayData_orderBy, orderDirection: OrderDirection, where: TokenDayData_filter): [TokenDayData!]! +} + +input UniswapFactory_filter { + id: ID + id_not: ID + id_gt: ID + id_lt: ID + id_gte: ID + id_lte: ID + id_in: [ID!] + id_not_in: [ID!] + pairCount: Int + pairCount_not: Int + pairCount_gt: Int + pairCount_lt: Int + pairCount_gte: Int + pairCount_lte: Int + pairCount_in: [Int!] + pairCount_not_in: [Int!] + totalVolumeUSD: BigDecimal + totalVolumeUSD_not: BigDecimal + totalVolumeUSD_gt: BigDecimal + totalVolumeUSD_lt: BigDecimal + totalVolumeUSD_gte: BigDecimal + totalVolumeUSD_lte: BigDecimal + totalVolumeUSD_in: [BigDecimal!] + totalVolumeUSD_not_in: [BigDecimal!] + totalVolumeETH: BigDecimal + totalVolumeETH_not: BigDecimal + totalVolumeETH_gt: BigDecimal + totalVolumeETH_lt: BigDecimal + totalVolumeETH_gte: BigDecimal + totalVolumeETH_lte: BigDecimal + totalVolumeETH_in: [BigDecimal!] + totalVolumeETH_not_in: [BigDecimal!] + untrackedVolumeUSD: BigDecimal + untrackedVolumeUSD_not: BigDecimal + untrackedVolumeUSD_gt: BigDecimal + untrackedVolumeUSD_lt: BigDecimal + untrackedVolumeUSD_gte: BigDecimal + untrackedVolumeUSD_lte: BigDecimal + untrackedVolumeUSD_in: [BigDecimal!] + untrackedVolumeUSD_not_in: [BigDecimal!] + totalLiquidityUSD: BigDecimal + totalLiquidityUSD_not: BigDecimal + totalLiquidityUSD_gt: BigDecimal + totalLiquidityUSD_lt: BigDecimal + totalLiquidityUSD_gte: BigDecimal + totalLiquidityUSD_lte: BigDecimal + totalLiquidityUSD_in: [BigDecimal!] + totalLiquidityUSD_not_in: [BigDecimal!] + totalLiquidityETH: BigDecimal + totalLiquidityETH_not: BigDecimal + totalLiquidityETH_gt: BigDecimal + totalLiquidityETH_lt: BigDecimal + totalLiquidityETH_gte: BigDecimal + totalLiquidityETH_lte: BigDecimal + totalLiquidityETH_in: [BigDecimal!] + totalLiquidityETH_not_in: [BigDecimal!] + txCount: BigInt + txCount_not: BigInt + txCount_gt: BigInt + txCount_lt: BigInt + txCount_gte: BigInt + txCount_lte: BigInt + txCount_in: [BigInt!] + txCount_not_in: [BigInt!] + mostLiquidTokens: [String!] + mostLiquidTokens_not: [String!] + mostLiquidTokens_contains: [String!] + mostLiquidTokens_not_contains: [String!] +} + +enum UniswapFactory_orderBy { + id + pairCount + totalVolumeUSD + totalVolumeETH + untrackedVolumeUSD + totalLiquidityUSD + totalLiquidityETH + txCount + mostLiquidTokens +} + +type User { + id: ID! + liquidityPositions(skip: Int = 0, first: Int = 100, orderBy: LiquidityPosition_orderBy, orderDirection: OrderDirection, where: LiquidityPosition_filter): [LiquidityPosition!] + usdSwapped: BigDecimal! +} + +input User_filter { + id: ID + id_not: ID + id_gt: ID + id_lt: ID + id_gte: ID + id_lte: ID + id_in: [ID!] + id_not_in: [ID!] + usdSwapped: BigDecimal + usdSwapped_not: BigDecimal + usdSwapped_gt: BigDecimal + usdSwapped_lt: BigDecimal + usdSwapped_gte: BigDecimal + usdSwapped_lte: BigDecimal + usdSwapped_in: [BigDecimal!] + usdSwapped_not_in: [BigDecimal!] +} + +enum User_orderBy { + id + liquidityPositions + usdSwapped +} + diff --git a/graph-schemas/zora.graphql b/graph-schemas/zora.graphql new file mode 100644 index 0000000..05b6a41 --- /dev/null +++ b/graph-schemas/zora.graphql @@ -0,0 +1,2350 @@ +directive @entity on OBJECT + +directive @derivedFrom(field: String) on FIELD_DEFINITION + +directive @subgraphId(id: String) on OBJECT + +type _Block_ { + """The hash of the block""" + hash: Bytes + + """The block number""" + number: Int! +} + +"""The type for the top-level _meta field""" +type _Meta_ { + """ + Information about a specific subgraph block. The hash of the block + will be null if the _meta field has a block constraint that asks for + a block number. It will be filled if the _meta field has no block constraint + and therefore asks for the latest block + + """ + block: _Block_! + + """The deployment ID""" + deployment: String! + + """If `true`, the subgraph encountered indexing errors at some past block""" + hasIndexingErrors: Boolean! +} + +enum _SubgraphErrorPolicy_ { + """Data will be returned even if the subgraph has indexing errors""" + allow + + """ + If the subgraph has indexing errors, data will be omitted. The default. + """ + deny +} + +type Ask { + """-""" + id: ID! + + """The Media associated with the Ask""" + media: Media! + + """The Currency of the Ask""" + currency: Currency! + + """The amount of Currency of the Ask""" + amount: BigInt! + + """The owner of the Ask""" + owner: User! + + """The timestamp of the block the Ask was created in""" + createdAtTimestamp: BigInt! + + """The number of the block the Ask created in""" + createdAtBlockNumber: BigInt! +} + +input Ask_filter { + id: ID + id_not: ID + id_gt: ID + id_lt: ID + id_gte: ID + id_lte: ID + id_in: [ID!] + id_not_in: [ID!] + media: String + media_not: String + media_gt: String + media_lt: String + media_gte: String + media_lte: String + media_in: [String!] + media_not_in: [String!] + media_contains: String + media_not_contains: String + media_starts_with: String + media_not_starts_with: String + media_ends_with: String + media_not_ends_with: String + currency: String + currency_not: String + currency_gt: String + currency_lt: String + currency_gte: String + currency_lte: String + currency_in: [String!] + currency_not_in: [String!] + currency_contains: String + currency_not_contains: String + currency_starts_with: String + currency_not_starts_with: String + currency_ends_with: String + currency_not_ends_with: String + amount: BigInt + amount_not: BigInt + amount_gt: BigInt + amount_lt: BigInt + amount_gte: BigInt + amount_lte: BigInt + amount_in: [BigInt!] + amount_not_in: [BigInt!] + owner: String + owner_not: String + owner_gt: String + owner_lt: String + owner_gte: String + owner_lte: String + owner_in: [String!] + owner_not_in: [String!] + owner_contains: String + owner_not_contains: String + owner_starts_with: String + owner_not_starts_with: String + owner_ends_with: String + owner_not_ends_with: String + createdAtTimestamp: BigInt + createdAtTimestamp_not: BigInt + createdAtTimestamp_gt: BigInt + createdAtTimestamp_lt: BigInt + createdAtTimestamp_gte: BigInt + createdAtTimestamp_lte: BigInt + createdAtTimestamp_in: [BigInt!] + createdAtTimestamp_not_in: [BigInt!] + createdAtBlockNumber: BigInt + createdAtBlockNumber_not: BigInt + createdAtBlockNumber_gt: BigInt + createdAtBlockNumber_lt: BigInt + createdAtBlockNumber_gte: BigInt + createdAtBlockNumber_lte: BigInt + createdAtBlockNumber_in: [BigInt!] + createdAtBlockNumber_not_in: [BigInt!] +} + +enum Ask_orderBy { + id + media + currency + amount + owner + createdAtTimestamp + createdAtBlockNumber +} + +type Bid { + """-""" + id: ID! + + """The Media associated with the Bid""" + media: Media! + + """The Currency of the Bid""" + currency: Currency! + + """The amount of Currency of the Bid""" + amount: BigInt! + + """The sellOnShare of the Bid""" + sellOnShare: BigInt! + + """The bidder of the Bid""" + bidder: User! + + """The recipient of Media if the Bid is accepted""" + recipient: User! + + """The timestamp of the block the Bid was created in""" + createdAtTimestamp: BigInt! + + """The number of the block the Bid was created in""" + createdAtBlockNumber: BigInt! +} + +input Bid_filter { + id: ID + id_not: ID + id_gt: ID + id_lt: ID + id_gte: ID + id_lte: ID + id_in: [ID!] + id_not_in: [ID!] + media: String + media_not: String + media_gt: String + media_lt: String + media_gte: String + media_lte: String + media_in: [String!] + media_not_in: [String!] + media_contains: String + media_not_contains: String + media_starts_with: String + media_not_starts_with: String + media_ends_with: String + media_not_ends_with: String + currency: String + currency_not: String + currency_gt: String + currency_lt: String + currency_gte: String + currency_lte: String + currency_in: [String!] + currency_not_in: [String!] + currency_contains: String + currency_not_contains: String + currency_starts_with: String + currency_not_starts_with: String + currency_ends_with: String + currency_not_ends_with: String + amount: BigInt + amount_not: BigInt + amount_gt: BigInt + amount_lt: BigInt + amount_gte: BigInt + amount_lte: BigInt + amount_in: [BigInt!] + amount_not_in: [BigInt!] + sellOnShare: BigInt + sellOnShare_not: BigInt + sellOnShare_gt: BigInt + sellOnShare_lt: BigInt + sellOnShare_gte: BigInt + sellOnShare_lte: BigInt + sellOnShare_in: [BigInt!] + sellOnShare_not_in: [BigInt!] + bidder: String + bidder_not: String + bidder_gt: String + bidder_lt: String + bidder_gte: String + bidder_lte: String + bidder_in: [String!] + bidder_not_in: [String!] + bidder_contains: String + bidder_not_contains: String + bidder_starts_with: String + bidder_not_starts_with: String + bidder_ends_with: String + bidder_not_ends_with: String + recipient: String + recipient_not: String + recipient_gt: String + recipient_lt: String + recipient_gte: String + recipient_lte: String + recipient_in: [String!] + recipient_not_in: [String!] + recipient_contains: String + recipient_not_contains: String + recipient_starts_with: String + recipient_not_starts_with: String + recipient_ends_with: String + recipient_not_ends_with: String + createdAtTimestamp: BigInt + createdAtTimestamp_not: BigInt + createdAtTimestamp_gt: BigInt + createdAtTimestamp_lt: BigInt + createdAtTimestamp_gte: BigInt + createdAtTimestamp_lte: BigInt + createdAtTimestamp_in: [BigInt!] + createdAtTimestamp_not_in: [BigInt!] + createdAtBlockNumber: BigInt + createdAtBlockNumber_not: BigInt + createdAtBlockNumber_gt: BigInt + createdAtBlockNumber_lt: BigInt + createdAtBlockNumber_gte: BigInt + createdAtBlockNumber_lte: BigInt + createdAtBlockNumber_in: [BigInt!] + createdAtBlockNumber_not_in: [BigInt!] +} + +enum Bid_orderBy { + id + media + currency + amount + sellOnShare + bidder + recipient + createdAtTimestamp + createdAtBlockNumber +} + +scalar BigDecimal + +scalar BigInt + +input Block_height { + hash: Bytes + number: Int +} + +scalar Bytes + +type Currency { + """The address of the Currency""" + id: ID! + + """The name of the Currency""" + name: String! + + """The symbol of the Currency""" + symbol: String! + + """The decimals of the Currency""" + decimals: Int + + """Total Bid Liquidity of the Currency on all Zora Media""" + liquidity: BigInt! + + """The active Bids denominated in the Currency""" + activeBids(skip: Int = 0, first: Int = 100, orderBy: Bid_orderBy, orderDirection: OrderDirection, where: Bid_filter): [Bid!] + + """The active Asks denominated in the Currency""" + activeAsks(skip: Int = 0, first: Int = 100, orderBy: Ask_orderBy, orderDirection: OrderDirection, where: Ask_filter): [Ask!] + + """The InactiveBids denominated in the Currency""" + inactiveBids(skip: Int = 0, first: Int = 100, orderBy: InactiveBid_orderBy, orderDirection: OrderDirection, where: InactiveBid_filter): [InactiveBid!] + + """The InactiveAsks denominated in the Currency""" + inactiveAsks(skip: Int = 0, first: Int = 100, orderBy: InactiveAsk_orderBy, orderDirection: OrderDirection, where: InactiveAsk_filter): [InactiveAsk!] +} + +input Currency_filter { + id: ID + id_not: ID + id_gt: ID + id_lt: ID + id_gte: ID + id_lte: ID + id_in: [ID!] + id_not_in: [ID!] + name: String + name_not: String + name_gt: String + name_lt: String + name_gte: String + name_lte: String + name_in: [String!] + name_not_in: [String!] + name_contains: String + name_not_contains: String + name_starts_with: String + name_not_starts_with: String + name_ends_with: String + name_not_ends_with: String + symbol: String + symbol_not: String + symbol_gt: String + symbol_lt: String + symbol_gte: String + symbol_lte: String + symbol_in: [String!] + symbol_not_in: [String!] + symbol_contains: String + symbol_not_contains: String + symbol_starts_with: String + symbol_not_starts_with: String + symbol_ends_with: String + symbol_not_ends_with: String + decimals: Int + decimals_not: Int + decimals_gt: Int + decimals_lt: Int + decimals_gte: Int + decimals_lte: Int + decimals_in: [Int!] + decimals_not_in: [Int!] + liquidity: BigInt + liquidity_not: BigInt + liquidity_gt: BigInt + liquidity_lt: BigInt + liquidity_gte: BigInt + liquidity_lte: BigInt + liquidity_in: [BigInt!] + liquidity_not_in: [BigInt!] +} + +enum Currency_orderBy { + id + name + symbol + decimals + liquidity + activeBids + activeAsks + inactiveBids + inactiveAsks +} + +type InactiveAsk { + """--""" + id: ID! + + """The Media associated with the InactiveAsk""" + media: Media! + + """The why this Ask is Inactive""" + type: MarketEventType! + + """The Currency of the InactiveAsk""" + currency: Currency! + + """The amount of Currency of the InactiveAsk""" + amount: BigInt! + + """The owner of the InactiveAsk""" + owner: User! + + """The timestamp of the block the original Ask was created in""" + createdAtTimestamp: BigInt! + + """The number of the block the original Ask was created in""" + createdAtBlockNumber: BigInt! + + """The timestamp of the block the original Ask was inactivated in""" + inactivatedAtTimestamp: BigInt! + + """The number of the block the original Ask was inactivated in""" + inactivatedAtBlockNumber: BigInt! +} + +input InactiveAsk_filter { + id: ID + id_not: ID + id_gt: ID + id_lt: ID + id_gte: ID + id_lte: ID + id_in: [ID!] + id_not_in: [ID!] + media: String + media_not: String + media_gt: String + media_lt: String + media_gte: String + media_lte: String + media_in: [String!] + media_not_in: [String!] + media_contains: String + media_not_contains: String + media_starts_with: String + media_not_starts_with: String + media_ends_with: String + media_not_ends_with: String + type: MarketEventType + type_not: MarketEventType + currency: String + currency_not: String + currency_gt: String + currency_lt: String + currency_gte: String + currency_lte: String + currency_in: [String!] + currency_not_in: [String!] + currency_contains: String + currency_not_contains: String + currency_starts_with: String + currency_not_starts_with: String + currency_ends_with: String + currency_not_ends_with: String + amount: BigInt + amount_not: BigInt + amount_gt: BigInt + amount_lt: BigInt + amount_gte: BigInt + amount_lte: BigInt + amount_in: [BigInt!] + amount_not_in: [BigInt!] + owner: String + owner_not: String + owner_gt: String + owner_lt: String + owner_gte: String + owner_lte: String + owner_in: [String!] + owner_not_in: [String!] + owner_contains: String + owner_not_contains: String + owner_starts_with: String + owner_not_starts_with: String + owner_ends_with: String + owner_not_ends_with: String + createdAtTimestamp: BigInt + createdAtTimestamp_not: BigInt + createdAtTimestamp_gt: BigInt + createdAtTimestamp_lt: BigInt + createdAtTimestamp_gte: BigInt + createdAtTimestamp_lte: BigInt + createdAtTimestamp_in: [BigInt!] + createdAtTimestamp_not_in: [BigInt!] + createdAtBlockNumber: BigInt + createdAtBlockNumber_not: BigInt + createdAtBlockNumber_gt: BigInt + createdAtBlockNumber_lt: BigInt + createdAtBlockNumber_gte: BigInt + createdAtBlockNumber_lte: BigInt + createdAtBlockNumber_in: [BigInt!] + createdAtBlockNumber_not_in: [BigInt!] + inactivatedAtTimestamp: BigInt + inactivatedAtTimestamp_not: BigInt + inactivatedAtTimestamp_gt: BigInt + inactivatedAtTimestamp_lt: BigInt + inactivatedAtTimestamp_gte: BigInt + inactivatedAtTimestamp_lte: BigInt + inactivatedAtTimestamp_in: [BigInt!] + inactivatedAtTimestamp_not_in: [BigInt!] + inactivatedAtBlockNumber: BigInt + inactivatedAtBlockNumber_not: BigInt + inactivatedAtBlockNumber_gt: BigInt + inactivatedAtBlockNumber_lt: BigInt + inactivatedAtBlockNumber_gte: BigInt + inactivatedAtBlockNumber_lte: BigInt + inactivatedAtBlockNumber_in: [BigInt!] + inactivatedAtBlockNumber_not_in: [BigInt!] +} + +enum InactiveAsk_orderBy { + id + media + type + currency + amount + owner + createdAtTimestamp + createdAtBlockNumber + inactivatedAtTimestamp + inactivatedAtBlockNumber +} + +type InactiveBid { + """--""" + id: ID! + + """The Media associated with the InactiveBid""" + media: Media! + + """The reason why this Bid is Inactive""" + type: MarketEventType! + + """The Currency of the InactiveBid""" + currency: Currency! + + """The amount of Currency of the InactiveBid""" + amount: BigInt! + + """The sellOnShare of the InactiveBid""" + sellOnShare: BigInt! + + """The bidder of the InactiveBid""" + bidder: User! + + """The recipient of the InactiveBid""" + recipient: User! + + """The timestamp of the block the original Bid was created in""" + createdAtTimestamp: BigInt! + + """The number of the block the original Bid was created in""" + createdAtBlockNumber: BigInt! + + """The timestamp of the block the original Bid was inactivated in""" + inactivatedAtTimestamp: BigInt! + + """The number of the block the original Bid was inactivated in""" + inactivatedAtBlockNumber: BigInt! +} + +input InactiveBid_filter { + id: ID + id_not: ID + id_gt: ID + id_lt: ID + id_gte: ID + id_lte: ID + id_in: [ID!] + id_not_in: [ID!] + media: String + media_not: String + media_gt: String + media_lt: String + media_gte: String + media_lte: String + media_in: [String!] + media_not_in: [String!] + media_contains: String + media_not_contains: String + media_starts_with: String + media_not_starts_with: String + media_ends_with: String + media_not_ends_with: String + type: MarketEventType + type_not: MarketEventType + currency: String + currency_not: String + currency_gt: String + currency_lt: String + currency_gte: String + currency_lte: String + currency_in: [String!] + currency_not_in: [String!] + currency_contains: String + currency_not_contains: String + currency_starts_with: String + currency_not_starts_with: String + currency_ends_with: String + currency_not_ends_with: String + amount: BigInt + amount_not: BigInt + amount_gt: BigInt + amount_lt: BigInt + amount_gte: BigInt + amount_lte: BigInt + amount_in: [BigInt!] + amount_not_in: [BigInt!] + sellOnShare: BigInt + sellOnShare_not: BigInt + sellOnShare_gt: BigInt + sellOnShare_lt: BigInt + sellOnShare_gte: BigInt + sellOnShare_lte: BigInt + sellOnShare_in: [BigInt!] + sellOnShare_not_in: [BigInt!] + bidder: String + bidder_not: String + bidder_gt: String + bidder_lt: String + bidder_gte: String + bidder_lte: String + bidder_in: [String!] + bidder_not_in: [String!] + bidder_contains: String + bidder_not_contains: String + bidder_starts_with: String + bidder_not_starts_with: String + bidder_ends_with: String + bidder_not_ends_with: String + recipient: String + recipient_not: String + recipient_gt: String + recipient_lt: String + recipient_gte: String + recipient_lte: String + recipient_in: [String!] + recipient_not_in: [String!] + recipient_contains: String + recipient_not_contains: String + recipient_starts_with: String + recipient_not_starts_with: String + recipient_ends_with: String + recipient_not_ends_with: String + createdAtTimestamp: BigInt + createdAtTimestamp_not: BigInt + createdAtTimestamp_gt: BigInt + createdAtTimestamp_lt: BigInt + createdAtTimestamp_gte: BigInt + createdAtTimestamp_lte: BigInt + createdAtTimestamp_in: [BigInt!] + createdAtTimestamp_not_in: [BigInt!] + createdAtBlockNumber: BigInt + createdAtBlockNumber_not: BigInt + createdAtBlockNumber_gt: BigInt + createdAtBlockNumber_lt: BigInt + createdAtBlockNumber_gte: BigInt + createdAtBlockNumber_lte: BigInt + createdAtBlockNumber_in: [BigInt!] + createdAtBlockNumber_not_in: [BigInt!] + inactivatedAtTimestamp: BigInt + inactivatedAtTimestamp_not: BigInt + inactivatedAtTimestamp_gt: BigInt + inactivatedAtTimestamp_lt: BigInt + inactivatedAtTimestamp_gte: BigInt + inactivatedAtTimestamp_lte: BigInt + inactivatedAtTimestamp_in: [BigInt!] + inactivatedAtTimestamp_not_in: [BigInt!] + inactivatedAtBlockNumber: BigInt + inactivatedAtBlockNumber_not: BigInt + inactivatedAtBlockNumber_gt: BigInt + inactivatedAtBlockNumber_lt: BigInt + inactivatedAtBlockNumber_gte: BigInt + inactivatedAtBlockNumber_lte: BigInt + inactivatedAtBlockNumber_in: [BigInt!] + inactivatedAtBlockNumber_not_in: [BigInt!] +} + +enum InactiveBid_orderBy { + id + media + type + currency + amount + sellOnShare + bidder + recipient + createdAtTimestamp + createdAtBlockNumber + inactivatedAtTimestamp + inactivatedAtBlockNumber +} + +type InactiveReserveAuctionBid { + """--""" + id: ID! + + """The Reserve auction associated with the Bid""" + reserveAuction: ReserveAuction! + + """The amount of the Bid""" + amount: BigInt! + + """The bidder of the Bid""" + bidder: User! + + """The type of bid (active, refunded, final)""" + bidType: ReserveAuctionBidType! + + """ + The timestamp of the block the bid was inactivated at (via outbid, cancellation, winning bid) + """ + bidInactivatedAtTimestamp: BigInt! + + """ + The number of the block the bid was inactivated at (via outbid, cancellation, winning bid) + """ + bidInactivatedAtBlockNumber: BigInt! + + """The timestamp of the block the Bid was created in""" + createdAtTimestamp: BigInt! + + """The number of the block the Bid was created in""" + createdAtBlockNumber: BigInt! +} + +input InactiveReserveAuctionBid_filter { + id: ID + id_not: ID + id_gt: ID + id_lt: ID + id_gte: ID + id_lte: ID + id_in: [ID!] + id_not_in: [ID!] + reserveAuction: String + reserveAuction_not: String + reserveAuction_gt: String + reserveAuction_lt: String + reserveAuction_gte: String + reserveAuction_lte: String + reserveAuction_in: [String!] + reserveAuction_not_in: [String!] + reserveAuction_contains: String + reserveAuction_not_contains: String + reserveAuction_starts_with: String + reserveAuction_not_starts_with: String + reserveAuction_ends_with: String + reserveAuction_not_ends_with: String + amount: BigInt + amount_not: BigInt + amount_gt: BigInt + amount_lt: BigInt + amount_gte: BigInt + amount_lte: BigInt + amount_in: [BigInt!] + amount_not_in: [BigInt!] + bidder: String + bidder_not: String + bidder_gt: String + bidder_lt: String + bidder_gte: String + bidder_lte: String + bidder_in: [String!] + bidder_not_in: [String!] + bidder_contains: String + bidder_not_contains: String + bidder_starts_with: String + bidder_not_starts_with: String + bidder_ends_with: String + bidder_not_ends_with: String + bidType: ReserveAuctionBidType + bidType_not: ReserveAuctionBidType + bidInactivatedAtTimestamp: BigInt + bidInactivatedAtTimestamp_not: BigInt + bidInactivatedAtTimestamp_gt: BigInt + bidInactivatedAtTimestamp_lt: BigInt + bidInactivatedAtTimestamp_gte: BigInt + bidInactivatedAtTimestamp_lte: BigInt + bidInactivatedAtTimestamp_in: [BigInt!] + bidInactivatedAtTimestamp_not_in: [BigInt!] + bidInactivatedAtBlockNumber: BigInt + bidInactivatedAtBlockNumber_not: BigInt + bidInactivatedAtBlockNumber_gt: BigInt + bidInactivatedAtBlockNumber_lt: BigInt + bidInactivatedAtBlockNumber_gte: BigInt + bidInactivatedAtBlockNumber_lte: BigInt + bidInactivatedAtBlockNumber_in: [BigInt!] + bidInactivatedAtBlockNumber_not_in: [BigInt!] + createdAtTimestamp: BigInt + createdAtTimestamp_not: BigInt + createdAtTimestamp_gt: BigInt + createdAtTimestamp_lt: BigInt + createdAtTimestamp_gte: BigInt + createdAtTimestamp_lte: BigInt + createdAtTimestamp_in: [BigInt!] + createdAtTimestamp_not_in: [BigInt!] + createdAtBlockNumber: BigInt + createdAtBlockNumber_not: BigInt + createdAtBlockNumber_gt: BigInt + createdAtBlockNumber_lt: BigInt + createdAtBlockNumber_gte: BigInt + createdAtBlockNumber_lte: BigInt + createdAtBlockNumber_in: [BigInt!] + createdAtBlockNumber_not_in: [BigInt!] +} + +enum InactiveReserveAuctionBid_orderBy { + id + reserveAuction + amount + bidder + bidType + bidInactivatedAtTimestamp + bidInactivatedAtBlockNumber + createdAtTimestamp + createdAtBlockNumber +} + +"""The Types for MarketEvents (Asks, Bids)""" +enum MarketEventType { + Finalized + Removed +} + +type Media { + """The tokenId on the Zora Media Contract""" + id: ID! + + """The current owner of the Media""" + owner: User! + + """The creator of the Media""" + creator: User! + + """The previous owner of the Zora Media's Market""" + prevOwner: User! + + """The approved user of the Media""" + approved: User + + """The sha256 hash of the media's content""" + contentHash: Bytes! + + """The sha256 hash of the media's metadata""" + metadataHash: Bytes! + + """The uri of the content""" + contentURI: String! + + """The uri of the metadata""" + metadataURI: String! + + """The bid share for the current owner of the Media""" + ownerBidShare: BigInt! + + """The bid share for the creator of the Media""" + creatorBidShare: BigInt! + + """The bid share for the previous owner of the Media's market""" + prevOwnerBidShare: BigInt! + + """The timestamp of the block the Media was minted in""" + createdAtTimestamp: BigInt! + + """The number of the block the Media was minted in""" + createdAtBlockNumber: BigInt! + + """The timestamp of the block the Media was burned in""" + burnedAtTimeStamp: BigInt + + """The number of the block the Media was burned in""" + burnedAtBlockNumber: BigInt + + """The current Ask of the Media""" + currentAsk: Ask + + """The current Bids on the Media""" + currentBids(skip: Int = 0, first: Int = 100, orderBy: Bid_orderBy, orderDirection: OrderDirection, where: Bid_filter): [Bid!] + + """The InactiveAsks of the Media""" + inactiveAsks(skip: Int = 0, first: Int = 100, orderBy: InactiveAsk_orderBy, orderDirection: OrderDirection, where: InactiveAsk_filter): [InactiveAsk!] + + """The InactiveBids of the Media""" + inactiveBids(skip: Int = 0, first: Int = 100, orderBy: InactiveBid_orderBy, orderDirection: OrderDirection, where: InactiveBid_filter): [InactiveBid!] +} + +input Media_filter { + id: ID + id_not: ID + id_gt: ID + id_lt: ID + id_gte: ID + id_lte: ID + id_in: [ID!] + id_not_in: [ID!] + owner: String + owner_not: String + owner_gt: String + owner_lt: String + owner_gte: String + owner_lte: String + owner_in: [String!] + owner_not_in: [String!] + owner_contains: String + owner_not_contains: String + owner_starts_with: String + owner_not_starts_with: String + owner_ends_with: String + owner_not_ends_with: String + creator: String + creator_not: String + creator_gt: String + creator_lt: String + creator_gte: String + creator_lte: String + creator_in: [String!] + creator_not_in: [String!] + creator_contains: String + creator_not_contains: String + creator_starts_with: String + creator_not_starts_with: String + creator_ends_with: String + creator_not_ends_with: String + prevOwner: String + prevOwner_not: String + prevOwner_gt: String + prevOwner_lt: String + prevOwner_gte: String + prevOwner_lte: String + prevOwner_in: [String!] + prevOwner_not_in: [String!] + prevOwner_contains: String + prevOwner_not_contains: String + prevOwner_starts_with: String + prevOwner_not_starts_with: String + prevOwner_ends_with: String + prevOwner_not_ends_with: String + approved: String + approved_not: String + approved_gt: String + approved_lt: String + approved_gte: String + approved_lte: String + approved_in: [String!] + approved_not_in: [String!] + approved_contains: String + approved_not_contains: String + approved_starts_with: String + approved_not_starts_with: String + approved_ends_with: String + approved_not_ends_with: String + contentHash: Bytes + contentHash_not: Bytes + contentHash_in: [Bytes!] + contentHash_not_in: [Bytes!] + contentHash_contains: Bytes + contentHash_not_contains: Bytes + metadataHash: Bytes + metadataHash_not: Bytes + metadataHash_in: [Bytes!] + metadataHash_not_in: [Bytes!] + metadataHash_contains: Bytes + metadataHash_not_contains: Bytes + contentURI: String + contentURI_not: String + contentURI_gt: String + contentURI_lt: String + contentURI_gte: String + contentURI_lte: String + contentURI_in: [String!] + contentURI_not_in: [String!] + contentURI_contains: String + contentURI_not_contains: String + contentURI_starts_with: String + contentURI_not_starts_with: String + contentURI_ends_with: String + contentURI_not_ends_with: String + metadataURI: String + metadataURI_not: String + metadataURI_gt: String + metadataURI_lt: String + metadataURI_gte: String + metadataURI_lte: String + metadataURI_in: [String!] + metadataURI_not_in: [String!] + metadataURI_contains: String + metadataURI_not_contains: String + metadataURI_starts_with: String + metadataURI_not_starts_with: String + metadataURI_ends_with: String + metadataURI_not_ends_with: String + ownerBidShare: BigInt + ownerBidShare_not: BigInt + ownerBidShare_gt: BigInt + ownerBidShare_lt: BigInt + ownerBidShare_gte: BigInt + ownerBidShare_lte: BigInt + ownerBidShare_in: [BigInt!] + ownerBidShare_not_in: [BigInt!] + creatorBidShare: BigInt + creatorBidShare_not: BigInt + creatorBidShare_gt: BigInt + creatorBidShare_lt: BigInt + creatorBidShare_gte: BigInt + creatorBidShare_lte: BigInt + creatorBidShare_in: [BigInt!] + creatorBidShare_not_in: [BigInt!] + prevOwnerBidShare: BigInt + prevOwnerBidShare_not: BigInt + prevOwnerBidShare_gt: BigInt + prevOwnerBidShare_lt: BigInt + prevOwnerBidShare_gte: BigInt + prevOwnerBidShare_lte: BigInt + prevOwnerBidShare_in: [BigInt!] + prevOwnerBidShare_not_in: [BigInt!] + createdAtTimestamp: BigInt + createdAtTimestamp_not: BigInt + createdAtTimestamp_gt: BigInt + createdAtTimestamp_lt: BigInt + createdAtTimestamp_gte: BigInt + createdAtTimestamp_lte: BigInt + createdAtTimestamp_in: [BigInt!] + createdAtTimestamp_not_in: [BigInt!] + createdAtBlockNumber: BigInt + createdAtBlockNumber_not: BigInt + createdAtBlockNumber_gt: BigInt + createdAtBlockNumber_lt: BigInt + createdAtBlockNumber_gte: BigInt + createdAtBlockNumber_lte: BigInt + createdAtBlockNumber_in: [BigInt!] + createdAtBlockNumber_not_in: [BigInt!] + burnedAtTimeStamp: BigInt + burnedAtTimeStamp_not: BigInt + burnedAtTimeStamp_gt: BigInt + burnedAtTimeStamp_lt: BigInt + burnedAtTimeStamp_gte: BigInt + burnedAtTimeStamp_lte: BigInt + burnedAtTimeStamp_in: [BigInt!] + burnedAtTimeStamp_not_in: [BigInt!] + burnedAtBlockNumber: BigInt + burnedAtBlockNumber_not: BigInt + burnedAtBlockNumber_gt: BigInt + burnedAtBlockNumber_lt: BigInt + burnedAtBlockNumber_gte: BigInt + burnedAtBlockNumber_lte: BigInt + burnedAtBlockNumber_in: [BigInt!] + burnedAtBlockNumber_not_in: [BigInt!] +} + +enum Media_orderBy { + id + owner + creator + prevOwner + approved + contentHash + metadataHash + contentURI + metadataURI + ownerBidShare + creatorBidShare + prevOwnerBidShare + createdAtTimestamp + createdAtBlockNumber + burnedAtTimeStamp + burnedAtBlockNumber + currentAsk + currentBids + inactiveAsks + inactiveBids +} + +enum OrderDirection { + asc + desc +} + +type Query { + media( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): Media + medias( + skip: Int = 0 + first: Int = 100 + orderBy: Media_orderBy + orderDirection: OrderDirection + where: Media_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [Media!]! + user( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): User + users( + skip: Int = 0 + first: Int = 100 + orderBy: User_orderBy + orderDirection: OrderDirection + where: User_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [User!]! + ask( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): Ask + asks( + skip: Int = 0 + first: Int = 100 + orderBy: Ask_orderBy + orderDirection: OrderDirection + where: Ask_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [Ask!]! + bid( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): Bid + bids( + skip: Int = 0 + first: Int = 100 + orderBy: Bid_orderBy + orderDirection: OrderDirection + where: Bid_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [Bid!]! + inactiveBid( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): InactiveBid + inactiveBids( + skip: Int = 0 + first: Int = 100 + orderBy: InactiveBid_orderBy + orderDirection: OrderDirection + where: InactiveBid_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [InactiveBid!]! + inactiveAsk( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): InactiveAsk + inactiveAsks( + skip: Int = 0 + first: Int = 100 + orderBy: InactiveAsk_orderBy + orderDirection: OrderDirection + where: InactiveAsk_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [InactiveAsk!]! + currency( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): Currency + currencies( + skip: Int = 0 + first: Int = 100 + orderBy: Currency_orderBy + orderDirection: OrderDirection + where: Currency_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [Currency!]! + transfer( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): Transfer + transfers( + skip: Int = 0 + first: Int = 100 + orderBy: Transfer_orderBy + orderDirection: OrderDirection + where: Transfer_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [Transfer!]! + uriupdate( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): URIUpdate + uriupdates( + skip: Int = 0 + first: Int = 100 + orderBy: URIUpdate_orderBy + orderDirection: OrderDirection + where: URIUpdate_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [URIUpdate!]! + reserveAuctionBid( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): ReserveAuctionBid + reserveAuctionBids( + skip: Int = 0 + first: Int = 100 + orderBy: ReserveAuctionBid_orderBy + orderDirection: OrderDirection + where: ReserveAuctionBid_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [ReserveAuctionBid!]! + inactiveReserveAuctionBid( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): InactiveReserveAuctionBid + inactiveReserveAuctionBids( + skip: Int = 0 + first: Int = 100 + orderBy: InactiveReserveAuctionBid_orderBy + orderDirection: OrderDirection + where: InactiveReserveAuctionBid_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [InactiveReserveAuctionBid!]! + reserveAuction( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): ReserveAuction + reserveAuctions( + skip: Int = 0 + first: Int = 100 + orderBy: ReserveAuction_orderBy + orderDirection: OrderDirection + where: ReserveAuction_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [ReserveAuction!]! + + """Access to subgraph metadata""" + _meta(block: Block_height): _Meta_ +} + +type ReserveAuction { + """-""" + id: ID! + + """The originating token contract for this auction""" + tokenContract: String! + + """The token ID for this auction""" + tokenId: BigInt! + + """The media for the auction, if it is a zora NFT""" + media: Media + + """Whether or not the auction has been approved by the curator""" + approved: Boolean! + + """ + The length of time the auction is intended to run for, after the first bid is made + """ + duration: BigInt! + + """ + The expected end of auction timestamp, which can change if bids were placed + within the last 15 minutes, and is not set until the first bid is placed + """ + expectedEndTimestamp: BigInt + + """The time the first bid was placed""" + firstBidTime: BigInt + + """The minimum price of the first bid""" + reservePrice: BigInt! + + """The sale percentage to send to the curator""" + curatorFeePercentage: Int! + + """The address that should receive the funds once the NFT is sold""" + tokenOwner: User! + + """The address of the auction's curator""" + curator: User! + + """ + The address of the ERC-20 currency to run the auction with, or 0x0 for ETH + """ + auctionCurrency: Currency! + status: ReserveAuctionStatus! + + """The current bid on this auction""" + currentBid: ReserveAuctionBid + + """The previous bids on this auction""" + previousBids(skip: Int = 0, first: Int = 100, orderBy: InactiveReserveAuctionBid_orderBy, orderDirection: OrderDirection, where: InactiveReserveAuctionBid_filter): [InactiveReserveAuctionBid!] + + """The timestamp of the block the Transfer was created in""" + createdAtTimestamp: BigInt! + + """The number of the block the Transfer was created in""" + createdAtBlockNumber: BigInt! + + """The timestamp at which the auction end function was called""" + finalizedAtTimestamp: BigInt + + """The block number at which the auction end function was called""" + finalizedAtBlockNumber: BigInt +} + +input ReserveAuction_filter { + id: ID + id_not: ID + id_gt: ID + id_lt: ID + id_gte: ID + id_lte: ID + id_in: [ID!] + id_not_in: [ID!] + tokenContract: String + tokenContract_not: String + tokenContract_gt: String + tokenContract_lt: String + tokenContract_gte: String + tokenContract_lte: String + tokenContract_in: [String!] + tokenContract_not_in: [String!] + tokenContract_contains: String + tokenContract_not_contains: String + tokenContract_starts_with: String + tokenContract_not_starts_with: String + tokenContract_ends_with: String + tokenContract_not_ends_with: String + tokenId: BigInt + tokenId_not: BigInt + tokenId_gt: BigInt + tokenId_lt: BigInt + tokenId_gte: BigInt + tokenId_lte: BigInt + tokenId_in: [BigInt!] + tokenId_not_in: [BigInt!] + media: String + media_not: String + media_gt: String + media_lt: String + media_gte: String + media_lte: String + media_in: [String!] + media_not_in: [String!] + media_contains: String + media_not_contains: String + media_starts_with: String + media_not_starts_with: String + media_ends_with: String + media_not_ends_with: String + approved: Boolean + approved_not: Boolean + approved_in: [Boolean!] + approved_not_in: [Boolean!] + duration: BigInt + duration_not: BigInt + duration_gt: BigInt + duration_lt: BigInt + duration_gte: BigInt + duration_lte: BigInt + duration_in: [BigInt!] + duration_not_in: [BigInt!] + expectedEndTimestamp: BigInt + expectedEndTimestamp_not: BigInt + expectedEndTimestamp_gt: BigInt + expectedEndTimestamp_lt: BigInt + expectedEndTimestamp_gte: BigInt + expectedEndTimestamp_lte: BigInt + expectedEndTimestamp_in: [BigInt!] + expectedEndTimestamp_not_in: [BigInt!] + firstBidTime: BigInt + firstBidTime_not: BigInt + firstBidTime_gt: BigInt + firstBidTime_lt: BigInt + firstBidTime_gte: BigInt + firstBidTime_lte: BigInt + firstBidTime_in: [BigInt!] + firstBidTime_not_in: [BigInt!] + reservePrice: BigInt + reservePrice_not: BigInt + reservePrice_gt: BigInt + reservePrice_lt: BigInt + reservePrice_gte: BigInt + reservePrice_lte: BigInt + reservePrice_in: [BigInt!] + reservePrice_not_in: [BigInt!] + curatorFeePercentage: Int + curatorFeePercentage_not: Int + curatorFeePercentage_gt: Int + curatorFeePercentage_lt: Int + curatorFeePercentage_gte: Int + curatorFeePercentage_lte: Int + curatorFeePercentage_in: [Int!] + curatorFeePercentage_not_in: [Int!] + tokenOwner: String + tokenOwner_not: String + tokenOwner_gt: String + tokenOwner_lt: String + tokenOwner_gte: String + tokenOwner_lte: String + tokenOwner_in: [String!] + tokenOwner_not_in: [String!] + tokenOwner_contains: String + tokenOwner_not_contains: String + tokenOwner_starts_with: String + tokenOwner_not_starts_with: String + tokenOwner_ends_with: String + tokenOwner_not_ends_with: String + curator: String + curator_not: String + curator_gt: String + curator_lt: String + curator_gte: String + curator_lte: String + curator_in: [String!] + curator_not_in: [String!] + curator_contains: String + curator_not_contains: String + curator_starts_with: String + curator_not_starts_with: String + curator_ends_with: String + curator_not_ends_with: String + auctionCurrency: String + auctionCurrency_not: String + auctionCurrency_gt: String + auctionCurrency_lt: String + auctionCurrency_gte: String + auctionCurrency_lte: String + auctionCurrency_in: [String!] + auctionCurrency_not_in: [String!] + auctionCurrency_contains: String + auctionCurrency_not_contains: String + auctionCurrency_starts_with: String + auctionCurrency_not_starts_with: String + auctionCurrency_ends_with: String + auctionCurrency_not_ends_with: String + status: ReserveAuctionStatus + status_not: ReserveAuctionStatus + currentBid: String + currentBid_not: String + currentBid_gt: String + currentBid_lt: String + currentBid_gte: String + currentBid_lte: String + currentBid_in: [String!] + currentBid_not_in: [String!] + currentBid_contains: String + currentBid_not_contains: String + currentBid_starts_with: String + currentBid_not_starts_with: String + currentBid_ends_with: String + currentBid_not_ends_with: String + createdAtTimestamp: BigInt + createdAtTimestamp_not: BigInt + createdAtTimestamp_gt: BigInt + createdAtTimestamp_lt: BigInt + createdAtTimestamp_gte: BigInt + createdAtTimestamp_lte: BigInt + createdAtTimestamp_in: [BigInt!] + createdAtTimestamp_not_in: [BigInt!] + createdAtBlockNumber: BigInt + createdAtBlockNumber_not: BigInt + createdAtBlockNumber_gt: BigInt + createdAtBlockNumber_lt: BigInt + createdAtBlockNumber_gte: BigInt + createdAtBlockNumber_lte: BigInt + createdAtBlockNumber_in: [BigInt!] + createdAtBlockNumber_not_in: [BigInt!] + finalizedAtTimestamp: BigInt + finalizedAtTimestamp_not: BigInt + finalizedAtTimestamp_gt: BigInt + finalizedAtTimestamp_lt: BigInt + finalizedAtTimestamp_gte: BigInt + finalizedAtTimestamp_lte: BigInt + finalizedAtTimestamp_in: [BigInt!] + finalizedAtTimestamp_not_in: [BigInt!] + finalizedAtBlockNumber: BigInt + finalizedAtBlockNumber_not: BigInt + finalizedAtBlockNumber_gt: BigInt + finalizedAtBlockNumber_lt: BigInt + finalizedAtBlockNumber_gte: BigInt + finalizedAtBlockNumber_lte: BigInt + finalizedAtBlockNumber_in: [BigInt!] + finalizedAtBlockNumber_not_in: [BigInt!] +} + +enum ReserveAuction_orderBy { + id + tokenContract + tokenId + media + approved + duration + expectedEndTimestamp + firstBidTime + reservePrice + curatorFeePercentage + tokenOwner + curator + auctionCurrency + status + currentBid + previousBids + createdAtTimestamp + createdAtBlockNumber + finalizedAtTimestamp + finalizedAtBlockNumber +} + +type ReserveAuctionBid { + """--""" + id: ID! + + """The Reserve auction associated with the Bid""" + reserveAuction: ReserveAuction! + + """The amount of the Bid""" + amount: BigInt! + + """The bidder of the Bid""" + bidder: User! + + """The type of bid (active, refunded, final)""" + bidType: ReserveAuctionBidType! + + """The timestamp of the block the Bid was created in""" + createdAtTimestamp: BigInt! + + """The number of the block the Bid was created in""" + createdAtBlockNumber: BigInt! +} + +input ReserveAuctionBid_filter { + id: ID + id_not: ID + id_gt: ID + id_lt: ID + id_gte: ID + id_lte: ID + id_in: [ID!] + id_not_in: [ID!] + reserveAuction: String + reserveAuction_not: String + reserveAuction_gt: String + reserveAuction_lt: String + reserveAuction_gte: String + reserveAuction_lte: String + reserveAuction_in: [String!] + reserveAuction_not_in: [String!] + reserveAuction_contains: String + reserveAuction_not_contains: String + reserveAuction_starts_with: String + reserveAuction_not_starts_with: String + reserveAuction_ends_with: String + reserveAuction_not_ends_with: String + amount: BigInt + amount_not: BigInt + amount_gt: BigInt + amount_lt: BigInt + amount_gte: BigInt + amount_lte: BigInt + amount_in: [BigInt!] + amount_not_in: [BigInt!] + bidder: String + bidder_not: String + bidder_gt: String + bidder_lt: String + bidder_gte: String + bidder_lte: String + bidder_in: [String!] + bidder_not_in: [String!] + bidder_contains: String + bidder_not_contains: String + bidder_starts_with: String + bidder_not_starts_with: String + bidder_ends_with: String + bidder_not_ends_with: String + bidType: ReserveAuctionBidType + bidType_not: ReserveAuctionBidType + createdAtTimestamp: BigInt + createdAtTimestamp_not: BigInt + createdAtTimestamp_gt: BigInt + createdAtTimestamp_lt: BigInt + createdAtTimestamp_gte: BigInt + createdAtTimestamp_lte: BigInt + createdAtTimestamp_in: [BigInt!] + createdAtTimestamp_not_in: [BigInt!] + createdAtBlockNumber: BigInt + createdAtBlockNumber_not: BigInt + createdAtBlockNumber_gt: BigInt + createdAtBlockNumber_lt: BigInt + createdAtBlockNumber_gte: BigInt + createdAtBlockNumber_lte: BigInt + createdAtBlockNumber_in: [BigInt!] + createdAtBlockNumber_not_in: [BigInt!] +} + +enum ReserveAuctionBid_orderBy { + id + reserveAuction + amount + bidder + bidType + createdAtTimestamp + createdAtBlockNumber +} + +enum ReserveAuctionBidType { + Active + Refunded + Final +} + +enum ReserveAuctionStatus { + Pending + Active + Canceled + Finished +} + +type Subscription { + media( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): Media + medias( + skip: Int = 0 + first: Int = 100 + orderBy: Media_orderBy + orderDirection: OrderDirection + where: Media_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [Media!]! + user( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): User + users( + skip: Int = 0 + first: Int = 100 + orderBy: User_orderBy + orderDirection: OrderDirection + where: User_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [User!]! + ask( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): Ask + asks( + skip: Int = 0 + first: Int = 100 + orderBy: Ask_orderBy + orderDirection: OrderDirection + where: Ask_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [Ask!]! + bid( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): Bid + bids( + skip: Int = 0 + first: Int = 100 + orderBy: Bid_orderBy + orderDirection: OrderDirection + where: Bid_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [Bid!]! + inactiveBid( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): InactiveBid + inactiveBids( + skip: Int = 0 + first: Int = 100 + orderBy: InactiveBid_orderBy + orderDirection: OrderDirection + where: InactiveBid_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [InactiveBid!]! + inactiveAsk( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): InactiveAsk + inactiveAsks( + skip: Int = 0 + first: Int = 100 + orderBy: InactiveAsk_orderBy + orderDirection: OrderDirection + where: InactiveAsk_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [InactiveAsk!]! + currency( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): Currency + currencies( + skip: Int = 0 + first: Int = 100 + orderBy: Currency_orderBy + orderDirection: OrderDirection + where: Currency_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [Currency!]! + transfer( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): Transfer + transfers( + skip: Int = 0 + first: Int = 100 + orderBy: Transfer_orderBy + orderDirection: OrderDirection + where: Transfer_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [Transfer!]! + uriupdate( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): URIUpdate + uriupdates( + skip: Int = 0 + first: Int = 100 + orderBy: URIUpdate_orderBy + orderDirection: OrderDirection + where: URIUpdate_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [URIUpdate!]! + reserveAuctionBid( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): ReserveAuctionBid + reserveAuctionBids( + skip: Int = 0 + first: Int = 100 + orderBy: ReserveAuctionBid_orderBy + orderDirection: OrderDirection + where: ReserveAuctionBid_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [ReserveAuctionBid!]! + inactiveReserveAuctionBid( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): InactiveReserveAuctionBid + inactiveReserveAuctionBids( + skip: Int = 0 + first: Int = 100 + orderBy: InactiveReserveAuctionBid_orderBy + orderDirection: OrderDirection + where: InactiveReserveAuctionBid_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [InactiveReserveAuctionBid!]! + reserveAuction( + id: ID! + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): ReserveAuction + reserveAuctions( + skip: Int = 0 + first: Int = 100 + orderBy: ReserveAuction_orderBy + orderDirection: OrderDirection + where: ReserveAuction_filter + + """ + The block at which the query should be executed. Can either be an `{ number: + Int }` containing the block number or a `{ hash: Bytes }` value containing a + block hash. Defaults to the latest block when omitted. + """ + block: Block_height + ): [ReserveAuction!]! + + """Access to subgraph metadata""" + _meta(block: Block_height): _Meta_ +} + +type Transfer { + """--""" + id: ID! + + """The Media associated with the Transfer""" + media: Media! + + """The User transferring the Media""" + from: User! + + """The User receiving the Media""" + to: User! + + """The timestamp of the block the Transfer was created in""" + createdAtTimestamp: BigInt! + + """The number of the block the Transfer was created in""" + createdAtBlockNumber: BigInt! +} + +input Transfer_filter { + id: ID + id_not: ID + id_gt: ID + id_lt: ID + id_gte: ID + id_lte: ID + id_in: [ID!] + id_not_in: [ID!] + media: String + media_not: String + media_gt: String + media_lt: String + media_gte: String + media_lte: String + media_in: [String!] + media_not_in: [String!] + media_contains: String + media_not_contains: String + media_starts_with: String + media_not_starts_with: String + media_ends_with: String + media_not_ends_with: String + from: String + from_not: String + from_gt: String + from_lt: String + from_gte: String + from_lte: String + from_in: [String!] + from_not_in: [String!] + from_contains: String + from_not_contains: String + from_starts_with: String + from_not_starts_with: String + from_ends_with: String + from_not_ends_with: String + to: String + to_not: String + to_gt: String + to_lt: String + to_gte: String + to_lte: String + to_in: [String!] + to_not_in: [String!] + to_contains: String + to_not_contains: String + to_starts_with: String + to_not_starts_with: String + to_ends_with: String + to_not_ends_with: String + createdAtTimestamp: BigInt + createdAtTimestamp_not: BigInt + createdAtTimestamp_gt: BigInt + createdAtTimestamp_lt: BigInt + createdAtTimestamp_gte: BigInt + createdAtTimestamp_lte: BigInt + createdAtTimestamp_in: [BigInt!] + createdAtTimestamp_not_in: [BigInt!] + createdAtBlockNumber: BigInt + createdAtBlockNumber_not: BigInt + createdAtBlockNumber_gt: BigInt + createdAtBlockNumber_lt: BigInt + createdAtBlockNumber_gte: BigInt + createdAtBlockNumber_lte: BigInt + createdAtBlockNumber_in: [BigInt!] + createdAtBlockNumber_not_in: [BigInt!] +} + +enum Transfer_orderBy { + id + media + from + to + createdAtTimestamp + createdAtBlockNumber +} + +type URIUpdate { + """--""" + id: ID! + + """The Type of URIUpdate""" + type: URIUpdateType! + + """The previous uri""" + from: String! + + """The new uri""" + to: String! + + """The Media associated with the URIUpdate""" + media: Media! + + """The owner of the Media""" + owner: User! + + """The updater of the Media's URI""" + updater: User! + + """The timestamp of the block the URIUpdate was created in""" + createdAtTimestamp: BigInt! + + """The number of the block the URIUpdate was created in""" + createdAtBlockNumber: BigInt! +} + +input URIUpdate_filter { + id: ID + id_not: ID + id_gt: ID + id_lt: ID + id_gte: ID + id_lte: ID + id_in: [ID!] + id_not_in: [ID!] + type: URIUpdateType + type_not: URIUpdateType + from: String + from_not: String + from_gt: String + from_lt: String + from_gte: String + from_lte: String + from_in: [String!] + from_not_in: [String!] + from_contains: String + from_not_contains: String + from_starts_with: String + from_not_starts_with: String + from_ends_with: String + from_not_ends_with: String + to: String + to_not: String + to_gt: String + to_lt: String + to_gte: String + to_lte: String + to_in: [String!] + to_not_in: [String!] + to_contains: String + to_not_contains: String + to_starts_with: String + to_not_starts_with: String + to_ends_with: String + to_not_ends_with: String + media: String + media_not: String + media_gt: String + media_lt: String + media_gte: String + media_lte: String + media_in: [String!] + media_not_in: [String!] + media_contains: String + media_not_contains: String + media_starts_with: String + media_not_starts_with: String + media_ends_with: String + media_not_ends_with: String + owner: String + owner_not: String + owner_gt: String + owner_lt: String + owner_gte: String + owner_lte: String + owner_in: [String!] + owner_not_in: [String!] + owner_contains: String + owner_not_contains: String + owner_starts_with: String + owner_not_starts_with: String + owner_ends_with: String + owner_not_ends_with: String + updater: String + updater_not: String + updater_gt: String + updater_lt: String + updater_gte: String + updater_lte: String + updater_in: [String!] + updater_not_in: [String!] + updater_contains: String + updater_not_contains: String + updater_starts_with: String + updater_not_starts_with: String + updater_ends_with: String + updater_not_ends_with: String + createdAtTimestamp: BigInt + createdAtTimestamp_not: BigInt + createdAtTimestamp_gt: BigInt + createdAtTimestamp_lt: BigInt + createdAtTimestamp_gte: BigInt + createdAtTimestamp_lte: BigInt + createdAtTimestamp_in: [BigInt!] + createdAtTimestamp_not_in: [BigInt!] + createdAtBlockNumber: BigInt + createdAtBlockNumber_not: BigInt + createdAtBlockNumber_gt: BigInt + createdAtBlockNumber_lt: BigInt + createdAtBlockNumber_gte: BigInt + createdAtBlockNumber_lte: BigInt + createdAtBlockNumber_in: [BigInt!] + createdAtBlockNumber_not_in: [BigInt!] +} + +enum URIUpdate_orderBy { + id + type + from + to + media + owner + updater + createdAtTimestamp + createdAtBlockNumber +} + +"""The Types of URI Updates""" +enum URIUpdateType { + Content + Metadata +} + +type User { + """Ethereum Address""" + id: ID! + + """ + Users that have been granted `ApprovalForAll` Media of the User's Collection + """ + authorizedUsers(skip: Int = 0, first: Int = 100, orderBy: User_orderBy, orderDirection: OrderDirection, where: User_filter): [User!] + + """The Media the User owns""" + collection(skip: Int = 0, first: Int = 100, orderBy: Media_orderBy, orderDirection: OrderDirection, where: Media_filter): [Media!]! + + """The Media the User created""" + creations(skip: Int = 0, first: Int = 100, orderBy: Media_orderBy, orderDirection: OrderDirection, where: Media_filter): [Media!]! + + """The active Bids made by the User""" + currentBids(skip: Int = 0, first: Int = 100, orderBy: Bid_orderBy, orderDirection: OrderDirection, where: Bid_filter): [Bid!] +} + +input User_filter { + id: ID + id_not: ID + id_gt: ID + id_lt: ID + id_gte: ID + id_lte: ID + id_in: [ID!] + id_not_in: [ID!] + authorizedUsers: [String!] + authorizedUsers_not: [String!] + authorizedUsers_contains: [String!] + authorizedUsers_not_contains: [String!] +} + +enum User_orderBy { + id + authorizedUsers + collection + creations + currentBids +} + diff --git a/package.json b/package.json index a957e84..efdc310 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,8 @@ "dataloader": "^2.0.0", "graphql": "^15.5.0", "graphql-request": "^3.4.0", - "react": "^17.0.2" + "react": "^17.0.2", + "react-test-renderer": "^17.0.2" }, "prettier": { "singleQuote": true, diff --git a/yarn.lock b/yarn.lock index ecdc25b..5f39bc9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6168,15 +6168,33 @@ react-error-boundary@^3.1.0: dependencies: "@babel/runtime" "^7.12.5" +"react-is@^16.12.0 || ^17.0.0", react-is@^17.0.1, react-is@^17.0.2: + version "17.0.2" + resolved "https://registry.yarnpkg.com/react-is/-/react-is-17.0.2.tgz#e691d4a8e9c789365655539ab372762b0efb54f0" + integrity sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w== + react-is@^16.7.0, react-is@^16.8.1, react-is@^16.8.4: version "16.13.1" resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4" integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ== -react-is@^17.0.1: +react-shallow-renderer@^16.13.1: + version "16.14.1" + resolved "https://registry.yarnpkg.com/react-shallow-renderer/-/react-shallow-renderer-16.14.1.tgz#bf0d02df8a519a558fd9b8215442efa5c840e124" + integrity sha512-rkIMcQi01/+kxiTE9D3fdS959U1g7gs+/rborw++42m1O9FAQiNI/UNRZExVUoAOprn4umcXf+pFRou8i4zuBg== + dependencies: + object-assign "^4.1.1" + react-is "^16.12.0 || ^17.0.0" + +react-test-renderer@^17.0.2: version "17.0.2" - resolved "https://registry.yarnpkg.com/react-is/-/react-is-17.0.2.tgz#e691d4a8e9c789365655539ab372762b0efb54f0" - integrity sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w== + resolved "https://registry.yarnpkg.com/react-test-renderer/-/react-test-renderer-17.0.2.tgz#4cd4ae5ef1ad5670fc0ef776e8cc7e1231d9866c" + integrity sha512-yaQ9cB89c17PUb0x6UfWRs7kQCorVdHlutU1boVPEsB8IDZH6n9tHxMacc3y0JoXOJUsZb/t/Mb8FUWMKaM7iQ== + dependencies: + object-assign "^4.1.1" + react-is "^17.0.2" + react-shallow-renderer "^16.13.1" + scheduler "^0.20.2" react@^17.0.2: version "17.0.2" @@ -6523,6 +6541,14 @@ saxes@^5.0.1: dependencies: xmlchars "^2.2.0" +scheduler@^0.20.2: + version "0.20.2" + resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.20.2.tgz#4baee39436e34aa93b4874bddcbf0fe8b8b50e91" + integrity sha512-2eWfGgAqqWFGqtdMmcL5zCMK1U8KlXv8SQFGglL3CEtd0aDVDWgeF/YoCmvln55m5zSk3J/20hTaSBeSObsQDQ== + dependencies: + loose-envify "^1.1.0" + object-assign "^4.1.1" + scuid@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/scuid/-/scuid-1.1.0.tgz#d3f9f920956e737a60f72d0e4ad280bf324d5dab"