Skip to content

Commit

Permalink
make pool params as entities
Browse files Browse the repository at this point in the history
  • Loading branch information
mendesfabio committed Oct 15, 2024
1 parent 6fe7eff commit c0b014c
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions subgraphs/v3-pools/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,31 @@ type Factory @entity {
pools: [Pool!] @derivedFrom(field: "factory")
}

type WeightedParams @entity {
"Unique identifier for the WeightedPoolParams"
id: Bytes!
"Token weights for Weighted Pools"
weights: [BigDecimal!]!
}

type StableParams @entity {
"Unique identifier for the StablePoolParams"
id: Bytes!
"Amplification parameter for Stable Pools"
amp: BigInt!
}

type Pool @entity {
"Unique identifier for the Pool"
id: Bytes!
"Address of the Pool contract"
address: Bytes!
"Factory that created this Pool"
factory: Factory!
"Amplification parameter for Stable Pools"
amp: BigInt
"Token weights for Weighted Pools"
weights: [BigDecimal!]
"Type of the pool"
type: PoolType!
"Parameters for Weighted pools (null for other pool types)"
weightedParams: WeightedParams
"Parameters for Stable pools (null for other pool types)"
stableParams: StableParams
}

0 comments on commit c0b014c

Please sign in to comment.