From 6019d857dd104c492744c75bc111f0b14cdfacee Mon Sep 17 00:00:00 2001 From: Luiz Gustavo Abou Hatem De Liz Date: Fri, 15 Sep 2023 19:39:16 -0300 Subject: [PATCH 1/2] Adding type to graphQL pool models: - GqlPoolBase; - GqlPoolWeighted; - GqlPoolStable; - GqlPoolPhantomStable; - GqlPoolMetaStable; - ..and all the other Pools of GqlPoolUnion type --- modules/pool/pool.gql | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/pool/pool.gql b/modules/pool/pool.gql index c168048ae..e8a17b0b1 100644 --- a/modules/pool/pool.gql +++ b/modules/pool/pool.gql @@ -97,6 +97,7 @@ interface GqlPoolBase { #fields that never change after creation id: ID! chain: GqlChain! + type: String! name: String! symbol: String! address: Bytes! @@ -215,6 +216,7 @@ type GqlPoolWeighted implements GqlPoolBase { tokens: [GqlPoolTokenUnion!]! nestingType: GqlPoolNestingType! staking: GqlPoolStaking + type: String! } type GqlPoolGyro implements GqlPoolBase { @@ -240,6 +242,7 @@ type GqlPoolGyro implements GqlPoolBase { tokens: [GqlPoolTokenUnion!]! nestingType: GqlPoolNestingType! staking: GqlPoolStaking + type: String! } type GqlPoolLiquidityBootstrapping implements GqlPoolBase { @@ -261,6 +264,7 @@ type GqlPoolLiquidityBootstrapping implements GqlPoolBase { tokens: [GqlPoolTokenUnion!]! nestingType: GqlPoolNestingType! staking: GqlPoolStaking + type: String! } type GqlPoolStable implements GqlPoolBase { @@ -282,6 +286,7 @@ type GqlPoolStable implements GqlPoolBase { tokens: [GqlPoolToken!]! amp: BigInt! staking: GqlPoolStaking + type: String! } type GqlPoolMetaStable implements GqlPoolBase { @@ -303,6 +308,7 @@ type GqlPoolMetaStable implements GqlPoolBase { tokens: [GqlPoolToken!]! amp: BigInt! staking: GqlPoolStaking + type: String! } type GqlPoolPhantomStable implements GqlPoolBase { @@ -325,6 +331,7 @@ type GqlPoolPhantomStable implements GqlPoolBase { amp: BigInt! staking: GqlPoolStaking bptPriceRate: BigDecimal! + type: String! } type GqlPoolElement implements GqlPoolBase { @@ -349,6 +356,7 @@ type GqlPoolElement implements GqlPoolBase { principalToken: Bytes! baseToken: Bytes! staking: GqlPoolStaking + type: String! } type GqlPoolLinear implements GqlPoolBase { @@ -375,6 +383,7 @@ type GqlPoolLinear implements GqlPoolBase { lowerTarget: BigInt! staking: GqlPoolStaking bptPriceRate: BigDecimal! + type: String! } type GqlPoolLinearNested { From 18e66396595969ece8eb18c67b899dd75201f4fb Mon Sep 17 00:00:00 2001 From: Luiz Gustavo Abou Hatem De Liz Date: Tue, 19 Sep 2023 17:44:26 -0300 Subject: [PATCH 2/2] Adding version to pool gql models; --- modules/pool/pool.gql | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/pool/pool.gql b/modules/pool/pool.gql index e8a17b0b1..244d35fb2 100644 --- a/modules/pool/pool.gql +++ b/modules/pool/pool.gql @@ -76,6 +76,7 @@ type GqlPoolMinimal { dynamicData: GqlPoolDynamicData! staking: GqlPoolStaking type: GqlPoolMinimalType! + version: Int! } enum GqlPoolMinimalType { @@ -98,6 +99,7 @@ interface GqlPoolBase { id: ID! chain: GqlChain! type: String! + version: Int! name: String! symbol: String! address: Bytes! @@ -217,6 +219,7 @@ type GqlPoolWeighted implements GqlPoolBase { nestingType: GqlPoolNestingType! staking: GqlPoolStaking type: String! + version: Int! } type GqlPoolGyro implements GqlPoolBase { @@ -243,6 +246,7 @@ type GqlPoolGyro implements GqlPoolBase { nestingType: GqlPoolNestingType! staking: GqlPoolStaking type: String! + version: Int! } type GqlPoolLiquidityBootstrapping implements GqlPoolBase { @@ -265,6 +269,7 @@ type GqlPoolLiquidityBootstrapping implements GqlPoolBase { nestingType: GqlPoolNestingType! staking: GqlPoolStaking type: String! + version: Int! } type GqlPoolStable implements GqlPoolBase { @@ -287,6 +292,7 @@ type GqlPoolStable implements GqlPoolBase { amp: BigInt! staking: GqlPoolStaking type: String! + version: Int! } type GqlPoolMetaStable implements GqlPoolBase { @@ -309,6 +315,7 @@ type GqlPoolMetaStable implements GqlPoolBase { amp: BigInt! staking: GqlPoolStaking type: String! + version: Int! } type GqlPoolPhantomStable implements GqlPoolBase { @@ -332,6 +339,7 @@ type GqlPoolPhantomStable implements GqlPoolBase { staking: GqlPoolStaking bptPriceRate: BigDecimal! type: String! + version: Int! } type GqlPoolElement implements GqlPoolBase { @@ -357,6 +365,7 @@ type GqlPoolElement implements GqlPoolBase { baseToken: Bytes! staking: GqlPoolStaking type: String! + version: Int! } type GqlPoolLinear implements GqlPoolBase { @@ -384,6 +393,7 @@ type GqlPoolLinear implements GqlPoolBase { staking: GqlPoolStaking bptPriceRate: BigDecimal! type: String! + version: Int! } type GqlPoolLinearNested {