From d1f47decba1697aa7142c46031836393524ab15e Mon Sep 17 00:00:00 2001 From: Marcin Ciarka Date: Tue, 5 Nov 2024 13:56:23 +0100 Subject: [PATCH] Add 'id' field to GraphQL queries for improved data retrieval (#558) --- .../src/queries/global-rebalances.graphql | 2 ++ .../src/queries/users-activity.graphql | 1 + sdk/subgraph-manager-common/src/queries/vaults.graphql | 9 +++++++++ 3 files changed, 12 insertions(+) diff --git a/sdk/subgraph-manager-common/src/queries/global-rebalances.graphql b/sdk/subgraph-manager-common/src/queries/global-rebalances.graphql index 106b5f9f7..295a908a9 100644 --- a/sdk/subgraph-manager-common/src/queries/global-rebalances.graphql +++ b/sdk/subgraph-manager-common/src/queries/global-rebalances.graphql @@ -4,6 +4,7 @@ query GetGlobalRebalances { amount amountUSD asset { + id symbol decimals } @@ -36,6 +37,7 @@ query GetGlobalRebalances { id name inputToken { + id symbol } } diff --git a/sdk/subgraph-manager-common/src/queries/users-activity.graphql b/sdk/subgraph-manager-common/src/queries/users-activity.graphql index e4c7e895b..b13093a6a 100644 --- a/sdk/subgraph-manager-common/src/queries/users-activity.graphql +++ b/sdk/subgraph-manager-common/src/queries/users-activity.graphql @@ -16,6 +16,7 @@ query GetUsersActivity { id name inputToken { + id symbol decimals } diff --git a/sdk/subgraph-manager-common/src/queries/vaults.graphql b/sdk/subgraph-manager-common/src/queries/vaults.graphql index cab5cfa68..1378a2223 100644 --- a/sdk/subgraph-manager-common/src/queries/vaults.graphql +++ b/sdk/subgraph-manager-common/src/queries/vaults.graphql @@ -8,6 +8,7 @@ query GetVaults { rewardTokens { id token { + id symbol decimals } @@ -17,6 +18,7 @@ query GetVaults { id name inputToken { + id name symbol decimals @@ -30,11 +32,13 @@ query GetVaults { lastUpdateTimestamp } inputToken { + id name symbol decimals } outputToken { + id name symbol decimals @@ -66,6 +70,7 @@ query GetVault($id: ID!) { rewardTokens { id token { + id symbol decimals } @@ -108,6 +113,7 @@ query GetVault($id: ID!) { id name inputToken { + id symbol } } @@ -120,6 +126,7 @@ query GetVault($id: ID!) { cumulativeEarnings cumulativeWithdrawals inputToken { + id name symbol decimals @@ -145,11 +152,13 @@ query GetVault($id: ID!) { lastUpdateTimestamp } inputToken { + id name symbol decimals } outputToken { + id name symbol decimals