Created
December 20, 2022 19:30
-
-
Save kassandraoftroy/d43031990cc357d8fa83c13e81416afb to your computer and use it in GitHub Desktop.
schema.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Vault @entity { | |
id: ID! | |
blockCreated: BigInt! | |
timestampCreated: BigInt! | |
manager: Bytes! | |
address: Bytes! | |
uniswapPool: Bytes! | |
token0: Token! | |
token1: Token! | |
feeTier: BigInt! | |
liquidity: BigInt! | |
positionId: String! | |
lowerTick: BigInt! | |
upperTick: BigInt! | |
managerFee: BigInt! | |
totalSupply: BigInt! | |
name: String! | |
reranges: [RangeInfo!] | |
snapshots: [AprSnapshot!] | |
numSnapshots: BigInt! | |
apr: AprInfo! | |
feeInfo: FeeInfo! | |
} | |
type AprInfo @entity { | |
id: ID! | |
averageApr: BigDecimal! | |
timestamp: BigInt! | |
} | |
type RangeInfo @entity { | |
id: ID! | |
lowerTick: BigInt! | |
upperTick: BigInt! | |
timestamp: BigInt! | |
} | |
type FeeInfo @entity { | |
id: ID! | |
burn0: BigInt! | |
burn1: BigInt! | |
collect0: BigInt! | |
collect1: BigInt! | |
feeCheckpoint0: BigInt! | |
feeCheckpoint1: BigInt! | |
checkpointTimestamp: BigInt! | |
} | |
type AprSnapshot @entity { | |
id: ID! | |
apr: BigDecimal! | |
fees0: BigInt! | |
fees1: BigInt! | |
totalFees: BigInt! | |
reserves0: BigInt! | |
reserves1: BigInt! | |
totalReserves: BigInt! | |
startTimestamp: BigInt! | |
endTimestamp: BigInt! | |
sqrtPriceX96: BigInt! | |
} | |
type Token @entity { | |
id: ID! | |
address: Bytes! | |
symbol: String! | |
name: String! | |
decimals: BigInt! | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment