From efa564c31753398d65f9586990913836a67450bf Mon Sep 17 00:00:00 2001 From: ogous Date: Tue, 6 Aug 2024 16:58:18 +0300 Subject: [PATCH] fix: codegen for graphql --- web/src/gql/gql.ts | 18 +++++++++--------- web/src/gql/graphql.ts | 5 ++++- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/web/src/gql/gql.ts b/web/src/gql/gql.ts index a66bfc80..b3569aad 100644 --- a/web/src/gql/gql.ts +++ b/web/src/gql/gql.ts @@ -21,9 +21,9 @@ const documents = { types.SelectPrimeAssetFragmentFragmentDoc, "\n fragment ManagePoolFragment on SeawaterPool {\n address\n id\n liquidity {\n liquidity\n }\n token {\n symbol\n name\n decimals\n }\n liquidityIncentives {\n valueScaled\n }\n superIncentives {\n valueScaled\n }\n utilityIncentives {\n amountGivenOut\n maximumAmount\n }\n earnedFeesAPRFUSDC\n }\n": types.ManagePoolFragmentFragmentDoc, - "\nfragment PositionsFragment on Wallet {\n positions {\n positions {\n positionId\n pool {\n address\n }\n lower\n upper\n liquidity {\n fusdc {\n valueUsd\n }\n token1 {\n valueUsd\n }\n }\n }\n }\n}\n": + "\n fragment PositionsFragment on Wallet {\n positions {\n positions {\n positionId\n pool {\n address\n }\n lower\n upper\n liquidity {\n fusdc {\n valueUsd\n }\n token1 {\n valueUsd\n }\n }\n }\n }\n }\n": types.PositionsFragmentFragmentDoc, - "\nfragment WithdrawPositionsFragment on Wallet {\n positions {\n positions {\n positionId\n lower\n upper\n owner {\n address\n }\n liquidity {\n fusdc {\n valueUsd\n valueScaled\n }\n token1 {\n valueUsd\n valueScaled\n }\n }\n }\n }\n}\n": + "\n fragment WithdrawPositionsFragment on Wallet {\n positions {\n positions {\n positionId\n lower\n upper\n owner {\n address\n }\n liquidity {\n fusdc {\n valueUsd\n valueScaled\n }\n token1 {\n valueUsd\n valueScaled\n }\n }\n }\n }\n }\n": types.WithdrawPositionsFragmentFragmentDoc, "\n fragment SwapExploreFragment on SeawaterPool {\n token {\n name\n symbol\n address\n decimals\n }\n price\n }\n": types.SwapExploreFragmentFragmentDoc, @@ -33,7 +33,7 @@ const documents = { types.TradeTabTransactionsFragmentFragmentDoc, "\n fragment StakeFormFragment on SeawaterPool {\n address\n earnedFeesAPRFUSDC\n }\n": types.StakeFormFragmentFragmentDoc, - "\nfragment DepositPositionsFragment on Wallet {\n positions {\n positions {\n positionId\n lower\n upper\n }\n }\n}\n": + "\n fragment DepositPositionsFragment on Wallet {\n positions {\n positions {\n positionId\n lower\n upper\n }\n }\n }\n": types.DepositPositionsFragmentFragmentDoc, "\n fragment SwapFormFragment on SeawaterPool {\n address\n earnedFeesAPRFUSDC\n earnedFeesAPRToken1\n token {\n address\n decimals\n name\n symbol\n }\n }\n": types.SwapFormFragmentFragmentDoc, @@ -87,14 +87,14 @@ export function graphql( * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function graphql( - source: "\nfragment PositionsFragment on Wallet {\n positions {\n positions {\n positionId\n pool {\n address\n }\n lower\n upper\n liquidity {\n fusdc {\n valueUsd\n }\n token1 {\n valueUsd\n }\n }\n }\n }\n}\n", -): (typeof documents)["\nfragment PositionsFragment on Wallet {\n positions {\n positions {\n positionId\n pool {\n address\n }\n lower\n upper\n liquidity {\n fusdc {\n valueUsd\n }\n token1 {\n valueUsd\n }\n }\n }\n }\n}\n"]; + source: "\n fragment PositionsFragment on Wallet {\n positions {\n positions {\n positionId\n pool {\n address\n }\n lower\n upper\n liquidity {\n fusdc {\n valueUsd\n }\n token1 {\n valueUsd\n }\n }\n }\n }\n }\n", +): (typeof documents)["\n fragment PositionsFragment on Wallet {\n positions {\n positions {\n positionId\n pool {\n address\n }\n lower\n upper\n liquidity {\n fusdc {\n valueUsd\n }\n token1 {\n valueUsd\n }\n }\n }\n }\n }\n"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function graphql( - source: "\nfragment WithdrawPositionsFragment on Wallet {\n positions {\n positions {\n positionId\n lower\n upper\n owner {\n address\n }\n liquidity {\n fusdc {\n valueUsd\n valueScaled\n }\n token1 {\n valueUsd\n valueScaled\n }\n }\n }\n }\n}\n", -): (typeof documents)["\nfragment WithdrawPositionsFragment on Wallet {\n positions {\n positions {\n positionId\n lower\n upper\n owner {\n address\n }\n liquidity {\n fusdc {\n valueUsd\n valueScaled\n }\n token1 {\n valueUsd\n valueScaled\n }\n }\n }\n }\n}\n"]; + source: "\n fragment WithdrawPositionsFragment on Wallet {\n positions {\n positions {\n positionId\n lower\n upper\n owner {\n address\n }\n liquidity {\n fusdc {\n valueUsd\n valueScaled\n }\n token1 {\n valueUsd\n valueScaled\n }\n }\n }\n }\n }\n", +): (typeof documents)["\n fragment WithdrawPositionsFragment on Wallet {\n positions {\n positions {\n positionId\n lower\n upper\n owner {\n address\n }\n liquidity {\n fusdc {\n valueUsd\n valueScaled\n }\n token1 {\n valueUsd\n valueScaled\n }\n }\n }\n }\n }\n"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ @@ -123,8 +123,8 @@ export function graphql( * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ export function graphql( - source: "\nfragment DepositPositionsFragment on Wallet {\n positions {\n positions {\n positionId\n lower\n upper\n }\n }\n}\n", -): (typeof documents)["\nfragment DepositPositionsFragment on Wallet {\n positions {\n positions {\n positionId\n lower\n upper\n }\n }\n}\n"]; + source: "\n fragment DepositPositionsFragment on Wallet {\n positions {\n positions {\n positionId\n lower\n upper\n }\n }\n }\n", +): (typeof documents)["\n fragment DepositPositionsFragment on Wallet {\n positions {\n positions {\n positionId\n lower\n upper\n }\n }\n }\n"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ diff --git a/web/src/gql/graphql.ts b/web/src/gql/graphql.ts index 4ee8c28b..f2719f87 100644 --- a/web/src/gql/graphql.ts +++ b/web/src/gql/graphql.ts @@ -225,7 +225,10 @@ export type SeawaterPool = { address: Scalars["String"]["output"]; /** Amounts currently contained in this pool. */ amounts: PairAmount; - /** Configuration details available to this pool. Should be mostly static. */ + /** + * Configuration details available to this pool. Should be mostly static. This is displayed + * to the frontend. Can be used to hint how the display of the tick selection should work. + */ config: SeawaterConfig; /** TODO */ earnedFeesAPRFUSDC: Array;