Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions schema.graphql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
type PoolManager @entity {
type PoolManager @entity(immutable: false) {
# poolManager address
id: ID!
# amount of pools created
Expand Down Expand Up @@ -28,13 +28,13 @@ type PoolManager @entity {
}

# stores for USD calculations
type Bundle @entity {
type Bundle @entity(immutable: false) {
id: ID!
# price of ETH in usd
ethPriceUSD: BigDecimal!
}

type Token @entity {
type Token @entity(immutable: false) {
# token address
id: ID!
# token symbol
Expand Down Expand Up @@ -73,7 +73,7 @@ type Token @entity {
tokenDayData: [TokenDayData!]! @derivedFrom(field: "token")
}

type Pool @entity {
type Pool @entity(immutable: false) {
# pool address
id: ID!
# creation
Expand Down Expand Up @@ -142,7 +142,7 @@ type Pool @entity {
ticks: [Tick!]! @derivedFrom(field: "pool")
}

type Tick @entity {
type Tick @entity(immutable: false) {
# format: <pool address>#<tick index>
id: ID!
# pool address
Expand All @@ -165,7 +165,7 @@ type Tick @entity {
createdAtBlockNumber: BigInt!
}

type Transaction @entity {
type Transaction @entity(immutable: true) {
# txn hash
id: ID!
# block txn was included in
Expand All @@ -183,7 +183,7 @@ type Transaction @entity {
unsubscriptions: [Unsubscribe]! @derivedFrom(field: "transaction")
}

type Swap @entity {
type Swap @entity(immutable: true) {
# transaction hash + "#" + index in swaps Transaction array
id: ID!
# pointer to transaction
Expand Down Expand Up @@ -216,7 +216,7 @@ type Swap @entity {
logIndex: BigInt
}

type ModifyLiquidity @entity {
type ModifyLiquidity @entity(immutable: true) {
# transaction hash + "#" + index in mints Transaction array
id: ID!
# which txn the ModifyLiquidity was included in
Expand Down Expand Up @@ -252,7 +252,7 @@ type ModifyLiquidity @entity {
}

# Data accumulated and condensed into day stats for all of Uniswap
type UniswapDayData @entity {
type UniswapDayData @entity(immutable: false) {
# timestamp rounded to current day by dividing by 86400
id: ID!
# timestamp rounded to current day by dividing by 86400
Expand All @@ -272,7 +272,7 @@ type UniswapDayData @entity {
}

# Data accumulated and condensed into day stats for each pool
type PoolDayData @entity {
type PoolDayData @entity(immutable: false) {
# timestamp rounded to current day by dividing by 86400
id: ID!
# timestamp rounded to current day by dividing by 86400
Expand Down Expand Up @@ -312,7 +312,7 @@ type PoolDayData @entity {
}

# hourly stats tracker for pool
type PoolHourData @entity {
type PoolHourData @entity(immutable: false) {
# format: <pool address>-<timestamp>
id: ID!
# unix timestamp for start of hour
Expand Down Expand Up @@ -351,7 +351,7 @@ type PoolHourData @entity {
close: BigDecimal!
}

type TokenDayData @entity {
type TokenDayData @entity(immutable: false) {
# token address concatendated with date
id: ID!
# timestamp rounded to current day by dividing by 86400
Expand Down Expand Up @@ -382,7 +382,7 @@ type TokenDayData @entity {
close: BigDecimal!
}

type TokenHourData @entity {
type TokenHourData @entity(immutable: false) {
# token address concatendated with date
id: ID!
# unix timestamp for start of hour
Expand Down Expand Up @@ -413,7 +413,7 @@ type TokenHourData @entity {
close: BigDecimal!
}

type Position @entity {
type Position @entity(immutable: false) {
# tokenId
id: ID!
# tokenId
Expand All @@ -432,7 +432,7 @@ type Position @entity {
transfers: [Transfer!]! @derivedFrom(field: "position")
}

type Subscribe @entity {
type Subscribe @entity(immutable: true) {
# transaction hash + '-' + log index
id: ID!
# token id of position subscribed to
Expand All @@ -451,7 +451,7 @@ type Subscribe @entity {
position: Position!
}

type Unsubscribe @entity {
type Unsubscribe @entity(immutable: true) {
# transaction hash + '-' + log index
id: ID!
# token id of position unsubscribed from
Expand All @@ -470,7 +470,7 @@ type Unsubscribe @entity {
position: Position!
}

type Transfer @entity {
type Transfer @entity(immutable: true) {
# transaction hash + '-' + log index
id: ID!
# token id of position
Expand All @@ -491,7 +491,7 @@ type Transfer @entity {
position: Position!
}

type EulerSwapHook @entity {
type EulerSwapHook @entity(immutable: false) {
# Composite key = eulerAccount-asset0-asset1
id: ID!
# The latest hook address for this key
Expand Down