Skip to content

Commit

Permalink
add balancer snapshots and joins exits derived fields
Browse files Browse the repository at this point in the history
  • Loading branch information
mendesfabio committed Dec 22, 2023
1 parent 9e566a5 commit f7a8555
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ type Balancer @entity {
id: ID!
poolCount: Int!
pools: [Pool!] @derivedFrom(field: "vaultID")
snapshots: [BalancerSnapshot!] @derivedFrom(field: "vault")

totalLiquidity: BigDecimal!
totalSwapCount: BigInt!
Expand All @@ -22,16 +23,16 @@ type Pool @entity {
oracleEnabled: Boolean!
symbol: String
name: String

"Indicates if a pool can be swapped against. Combines multiple sources, including offchain curation"
swapEnabled: Boolean!

"The native swapEnabled boolean. internal to the pool. Only applies to Gyro, LBPs and InvestmentPools"
swapEnabledInternal: Boolean

"External indication from an offchain permissioned actor"
swapEnabledCurationSignal: Boolean

swapFee: BigDecimal!
owner: Bytes
isPaused: Boolean
Expand All @@ -53,6 +54,7 @@ type Pool @entity {
tokensList: [Bytes!]!

tokens: [PoolToken!] @derivedFrom(field: "poolId")
joinsExits: [JoinExit!] @derivedFrom(field: "pool")
swaps: [Swap!] @derivedFrom(field: "poolId")
shares: [PoolShare!] @derivedFrom(field: "poolId")
snapshots: [PoolSnapshot!] @derivedFrom(field: "pool")
Expand Down

0 comments on commit f7a8555

Please sign in to comment.