mirror of
https://github.com/zoo-apps/exchange.git
synced 2026-10-30 15:02:24 +00:00
- Full app extraction from zoo monorepo (source only) - Configured for GitHub Pages deployment - Static export enabled - Custom domain: zoo.exchange - Excludes node_modules and build artifacts
100 lines
1.9 KiB
GraphQL
100 lines
1.9 KiB
GraphQL
type Factory @entity {
|
|
id: ID!
|
|
pairCount: Int!
|
|
totalVolumeUSD: BigDecimal!
|
|
totalLiquidityUSD: BigDecimal!
|
|
txCount: BigInt!
|
|
}
|
|
|
|
type Token @entity {
|
|
id: ID!
|
|
symbol: String!
|
|
name: String!
|
|
decimals: BigInt!
|
|
totalSupply: BigInt!
|
|
tradeVolume: BigDecimal!
|
|
tradeVolumeUSD: BigDecimal!
|
|
txCount: BigInt!
|
|
totalLiquidity: BigDecimal!
|
|
derivedETH: BigDecimal
|
|
derivedUSD: BigDecimal
|
|
}
|
|
|
|
type Pair @entity {
|
|
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!
|
|
}
|
|
|
|
type Transaction @entity {
|
|
id: ID!
|
|
blockNumber: BigInt!
|
|
timestamp: BigInt!
|
|
mints: [Mint]! @derivedFrom(field: "transaction")
|
|
burns: [Burn]! @derivedFrom(field: "transaction")
|
|
swaps: [Swap]! @derivedFrom(field: "transaction")
|
|
}
|
|
|
|
type Mint @entity {
|
|
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
|
|
}
|
|
|
|
type Burn @entity {
|
|
id: ID!
|
|
transaction: Transaction!
|
|
timestamp: BigInt!
|
|
pair: Pair!
|
|
liquidity: BigDecimal!
|
|
sender: Bytes
|
|
amount0: BigDecimal
|
|
amount1: BigDecimal
|
|
to: Bytes
|
|
logIndex: BigInt
|
|
amountUSD: BigDecimal
|
|
complete: Boolean!
|
|
feeTo: Bytes
|
|
feeLiquidity: BigDecimal
|
|
}
|
|
|
|
type Swap @entity {
|
|
id: ID!
|
|
transaction: Transaction!
|
|
timestamp: BigInt!
|
|
pair: Pair!
|
|
sender: Bytes!
|
|
from: Bytes!
|
|
amount0In: BigDecimal!
|
|
amount1In: BigDecimal!
|
|
amount0Out: BigDecimal!
|
|
amount1Out: BigDecimal!
|
|
to: Bytes!
|
|
logIndex: BigInt
|
|
amountUSD: BigDecimal!
|
|
} |