From 86463044694e464119aa5274f9561a2cb5d0e01c Mon Sep 17 00:00:00 2001 From: 0xkenj1 Date: Mon, 17 Feb 2025 08:21:07 -0300 Subject: [PATCH 1/2] feat: indexer integration --- packages/ui/.storybook/preview.ts | 6 +++--- .../features/checker/apps/Checker.stories.tsx | 4 ++-- .../checker/hooks/useApplicationEvaluations.ts | 1 + ...pplicationEvaluationOverviewPage.stories.tsx | 14 +++++++------- .../SubmitApplicationEvaluationPage.stories.tsx | 4 ++-- .../ViewApplicationEvaluationsPage.stories.tsx | 6 +++--- .../checker/services/allo/alloClient.ts | 2 +- .../features/checker/services/allo/dataLayer.ts | 6 +++--- .../features/checker/services/allo/queries.ts | 17 ++++++----------- 9 files changed, 28 insertions(+), 32 deletions(-) diff --git a/packages/ui/.storybook/preview.ts b/packages/ui/.storybook/preview.ts index 39821876..4dce719e 100644 --- a/packages/ui/.storybook/preview.ts +++ b/packages/ui/.storybook/preview.ts @@ -32,9 +32,9 @@ const preview: Preview = { locales: "en-US", }, }, - msw: { - handlers, - }, + // msw: { + // handlers, + // }, }, loaders: [mswLoader], diff --git a/packages/ui/src/features/checker/apps/Checker.stories.tsx b/packages/ui/src/features/checker/apps/Checker.stories.tsx index c11ffb3d..2e87e50c 100644 --- a/packages/ui/src/features/checker/apps/Checker.stories.tsx +++ b/packages/ui/src/features/checker/apps/Checker.stories.tsx @@ -10,8 +10,8 @@ const meta = { component: Checker, args: { address: "0x0D1781F0b693b35939A49831A6C799B938Bd2F80", - poolId: "597", - chainId: 11155111, + poolId: "7", + chainId: 10, }, } satisfies Meta; diff --git a/packages/ui/src/features/checker/hooks/useApplicationEvaluations.ts b/packages/ui/src/features/checker/hooks/useApplicationEvaluations.ts index 1266bf38..df61b78b 100644 --- a/packages/ui/src/features/checker/hooks/useApplicationEvaluations.ts +++ b/packages/ui/src/features/checker/hooks/useApplicationEvaluations.ts @@ -20,6 +20,7 @@ export const useApplicationEvaluations = ( roundId, applicationId, ); + if (!application || !applicationEvaluations) return undefined; const data = { application, applicationEvaluations: applicationEvaluations, diff --git a/packages/ui/src/features/checker/pages/ApplicationEvaluationOverviewPage/ApplicationEvaluationOverviewPage.stories.tsx b/packages/ui/src/features/checker/pages/ApplicationEvaluationOverviewPage/ApplicationEvaluationOverviewPage.stories.tsx index 80561bd8..a6f83736 100644 --- a/packages/ui/src/features/checker/pages/ApplicationEvaluationOverviewPage/ApplicationEvaluationOverviewPage.stories.tsx +++ b/packages/ui/src/features/checker/pages/ApplicationEvaluationOverviewPage/ApplicationEvaluationOverviewPage.stories.tsx @@ -34,14 +34,14 @@ export default meta; type Story = StoryObj; export const Default: Story = { - parameters: { - msw: { - handlers, - }, - }, + // parameters: { + // msw: { + // handlers, + // }, + // }, args: { - chainId: 11155111, - poolId: "605", + chainId: 10, + poolId: "7", applicationId: "1", address: "0x0D1781F0b693b35939A49831A6C799B938Bd2F80", }, diff --git a/packages/ui/src/features/checker/pages/SubmitApplicationEvaluationPage/SubmitApplicationEvaluationPage.stories.tsx b/packages/ui/src/features/checker/pages/SubmitApplicationEvaluationPage/SubmitApplicationEvaluationPage.stories.tsx index afe37ec2..8e985b8f 100644 --- a/packages/ui/src/features/checker/pages/SubmitApplicationEvaluationPage/SubmitApplicationEvaluationPage.stories.tsx +++ b/packages/ui/src/features/checker/pages/SubmitApplicationEvaluationPage/SubmitApplicationEvaluationPage.stories.tsx @@ -43,8 +43,8 @@ export const Default: Story = { }, }, args: { - chainId: 11155111, - poolId: "605", + chainId: 10, + poolId: "7", applicationId: "1", address: "0x0D1781F0b693b35939A49831A6C799B938Bd2F80", }, diff --git a/packages/ui/src/features/checker/pages/ViewApplicationEvaluationsPage/ViewApplicationEvaluationsPage.stories.tsx b/packages/ui/src/features/checker/pages/ViewApplicationEvaluationsPage/ViewApplicationEvaluationsPage.stories.tsx index 77ae7486..9caea287 100644 --- a/packages/ui/src/features/checker/pages/ViewApplicationEvaluationsPage/ViewApplicationEvaluationsPage.stories.tsx +++ b/packages/ui/src/features/checker/pages/ViewApplicationEvaluationsPage/ViewApplicationEvaluationsPage.stories.tsx @@ -40,8 +40,8 @@ export const Default: Story = { }, }, args: { - chainId: 42161, - poolId: "609", - applicationId: "0", + chainId: 10, + poolId: "7", + applicationId: "1", }, }; diff --git a/packages/ui/src/features/checker/services/allo/alloClient.ts b/packages/ui/src/features/checker/services/allo/alloClient.ts index 878259ea..19d65c63 100644 --- a/packages/ui/src/features/checker/services/allo/alloClient.ts +++ b/packages/ui/src/features/checker/services/allo/alloClient.ts @@ -2,7 +2,7 @@ import { GraphQLClient } from "graphql-request"; // Base URL for the GraphQL API -const GS_INDEXER_ENDPOINT = "https://grants-stack-indexer-v2.gitcoin.co/graphql"; +const GS_INDEXER_ENDPOINT = "http://gitcoin-data-layer-staging-lb-242619440.us-east-2.elb.amazonaws.com/v1/graphql"; // Create a new instance of GraphQLClient export const graphqlClient = new GraphQLClient(GS_INDEXER_ENDPOINT, { diff --git a/packages/ui/src/features/checker/services/allo/dataLayer.ts b/packages/ui/src/features/checker/services/allo/dataLayer.ts index 3705eee7..d64b4d3f 100644 --- a/packages/ui/src/features/checker/services/allo/dataLayer.ts +++ b/packages/ui/src/features/checker/services/allo/dataLayer.ts @@ -19,7 +19,7 @@ export async function getApplicationsFromIndexer( }); return { applications: response.applications as ProjectApplicationForManager[], - roundData: response.round as PoolInfo, + roundData: response.rounds[0] as PoolInfo, }; } catch (e) { throw new Error(`Failed to fetch applications data. with error: ${e}`); @@ -37,7 +37,7 @@ export async function getApplicationByIdFromIndexer( roundId, applicationId, }); - return response.application as ProjectApplication; + return response.applications[0] as ProjectApplication; } catch (e) { throw new Error(`Failed to fetch application data. with error: ${e}`); } @@ -55,7 +55,7 @@ export async function getPastApplicationsByApplicationIdFromIndexer( applicationId, }); - return response.applications[0].project.applications as PastApplication[]; + return response.applications[0].project[0].applications as PastApplication[]; } catch (e) { throw new Error(`Failed to fetch past applications data. with error: ${e}`); } diff --git a/packages/ui/src/features/checker/services/allo/queries.ts b/packages/ui/src/features/checker/services/allo/queries.ts index 667a29f1..8122aaf6 100644 --- a/packages/ui/src/features/checker/services/allo/queries.ts +++ b/packages/ui/src/features/checker/services/allo/queries.ts @@ -2,10 +2,7 @@ import { gql } from "graphql-request"; export const applicationsForManagerQuery = gql` query getApplicationsForManager($chainId: Int!, $roundId: String!) { - applications( - first: 1000 - filter: { roundId: { equalTo: $roundId }, chainId: { equalTo: $chainId } } - ) { + applications(limit: 1000, where: { roundId: { _eq: $roundId }, chainId: { _eq: $chainId } }) { id projectId chainId @@ -22,7 +19,7 @@ export const applicationsForManagerQuery = gql` } } } - round(chainId: $chainId, id: $roundId) { + rounds(where: { chainId: { _eq: $chainId }, id: { _eq: $roundId } }) { roundMetadata strategyName strategyAddress @@ -42,7 +39,9 @@ export const applicationsForManagerQuery = gql` export const getApplicationByIdQuery = gql` query getApplicationById($chainId: Int!, $roundId: String!, $applicationId: String!) { - application(chainId: $chainId, roundId: $roundId, id: $applicationId) { + applications( + where: { chainId: { _eq: $chainId }, roundId: { _eq: $roundId }, id: { _eq: $applicationId } } + ) { id projectId chainId @@ -69,11 +68,7 @@ export const getPastApplicationsQueryByApplicationId = gql` $applicationId: String! ) { applications( - filter: { - chainId: { equalTo: $chainId } - roundId: { equalTo: $roundId } - id: { equalTo: $applicationId } - } + where: { chainId: { _eq: $chainId }, roundId: { _eq: $roundId }, id: { _eq: $applicationId } } ) { project { applications { From 742acd664c57e72a59e9e679aa770ac044cad714 Mon Sep 17 00:00:00 2001 From: Nick Lionis Date: Tue, 18 Feb 2025 16:22:51 +0200 Subject: [PATCH 2/2] Fix/indexer integration (#1) * fix: added required query param * fix: unsupported canonical project query * fix: mocks --- .../components/ApplicationSummary/mocks.ts | 4 +- .../src/features/checker/hooks/usePoolData.ts | 4 +- .../checker/services/allo/alloClient.ts | 2 + .../features/checker/services/allo/queries.ts | 14 +- .../features/checker/services/allo/types.ts | 4 +- .../ui/src/features/checker/store/types.ts | 6 +- packages/ui/src/mocks/handlers.ts | 2 +- .../mocks/mockData/applicationsForManager.ts | 184 +++++++++--------- .../mockData/indexerGetApplicationById.ts | 4 +- 9 files changed, 115 insertions(+), 109 deletions(-) diff --git a/packages/ui/src/features/application/components/ApplicationSummary/mocks.ts b/packages/ui/src/features/application/components/ApplicationSummary/mocks.ts index 93ea3c28..8dc0c5f1 100644 --- a/packages/ui/src/features/application/components/ApplicationSummary/mocks.ts +++ b/packages/ui/src/features/application/components/ApplicationSummary/mocks.ts @@ -64,8 +64,8 @@ export const application: CheckerApplication = { updatedAt: "2023-01-01T00:00:00Z", }, ], - canonicalProject: { - roles: [{ address: "0xroleaddress1234567890abcdef12345678" }], + project: { + projectRoles: [{ address: "0xroleaddress1234567890abcdef12345678" }], }, alloApplicationId: "", evaluations: [], diff --git a/packages/ui/src/features/checker/hooks/usePoolData.ts b/packages/ui/src/features/checker/hooks/usePoolData.ts index 3e9e319b..cfeb2a7e 100644 --- a/packages/ui/src/features/checker/hooks/usePoolData.ts +++ b/packages/ui/src/features/checker/hooks/usePoolData.ts @@ -72,7 +72,9 @@ export const usePoolData = (): { poolData: CheckerPoolData | null; refetch: () = useEffect(() => { if (data && poolId && chainId && address) { - const managers = data.roundData.roles.map((role) => role.address.toLowerCase()); + const managers = data.roundData.project.projectRoles.map((role) => + role.address.toLowerCase(), + ); dispatch( setPoolDataAction({ poolId, diff --git a/packages/ui/src/features/checker/services/allo/alloClient.ts b/packages/ui/src/features/checker/services/allo/alloClient.ts index 19d65c63..f921c060 100644 --- a/packages/ui/src/features/checker/services/allo/alloClient.ts +++ b/packages/ui/src/features/checker/services/allo/alloClient.ts @@ -3,11 +3,13 @@ import { GraphQLClient } from "graphql-request"; // Base URL for the GraphQL API const GS_INDEXER_ENDPOINT = "http://gitcoin-data-layer-staging-lb-242619440.us-east-2.elb.amazonaws.com/v1/graphql"; +const GS_INDEXER_ADMIN_SECRET = "ADD_SECRET_HERE"; // Create a new instance of GraphQLClient export const graphqlClient = new GraphQLClient(GS_INDEXER_ENDPOINT, { headers: { "Content-Type": "application/json", + "x-hasura-admin-secret": GS_INDEXER_ADMIN_SECRET, }, }); diff --git a/packages/ui/src/features/checker/services/allo/queries.ts b/packages/ui/src/features/checker/services/allo/queries.ts index 8122aaf6..b4913411 100644 --- a/packages/ui/src/features/checker/services/allo/queries.ts +++ b/packages/ui/src/features/checker/services/allo/queries.ts @@ -13,8 +13,8 @@ export const applicationsForManagerQuery = gql` distributionTransaction statusSnapshots anchorAddress - canonicalProject { - roles { + project { + projectRoles { address } } @@ -27,11 +27,11 @@ export const applicationsForManagerQuery = gql` applicationsEndTime donationsEndTime donationsStartTime - roles { - address - } project { id + projectRoles { + address + } } } } @@ -52,8 +52,8 @@ export const getApplicationByIdQuery = gql` distributionTransaction statusSnapshots anchorAddress - canonicalProject { - roles { + project { + projectRoles { address } } diff --git a/packages/ui/src/features/checker/services/allo/types.ts b/packages/ui/src/features/checker/services/allo/types.ts index fde1b9c0..cd5977f9 100644 --- a/packages/ui/src/features/checker/services/allo/types.ts +++ b/packages/ui/src/features/checker/services/allo/types.ts @@ -95,8 +95,8 @@ interface StatusSnapshot { export interface ProjectApplicationForManager extends ProjectApplication { anchorAddress: Address; statusSnapshots: StatusSnapshot[]; - canonicalProject: { - roles: { address: Address }[]; + project: { + projectRoles: { address: Address }[]; }; } diff --git a/packages/ui/src/features/checker/store/types.ts b/packages/ui/src/features/checker/store/types.ts index f9488229..0c170735 100644 --- a/packages/ui/src/features/checker/store/types.ts +++ b/packages/ui/src/features/checker/store/types.ts @@ -14,10 +14,10 @@ export interface PoolInfo { }; project: { id: string; + projectRoles: { + address: string; + }[]; }; - roles: { - address: string; - }[]; strategyAddress: string; strategyName: string; applicationsStartTime: string; diff --git a/packages/ui/src/mocks/handlers.ts b/packages/ui/src/mocks/handlers.ts index 3d2d025f..404d1f4e 100644 --- a/packages/ui/src/mocks/handlers.ts +++ b/packages/ui/src/mocks/handlers.ts @@ -31,7 +31,7 @@ export const checkerPoolDataHandler = graphql.query("getCheckerPoolData", () => }); export const indexerGetApplicationByIdHandler = graphql.query("getApplicationByIdQuery", () => { - return HttpResponse.json({ data: { application: getApplicationById } }); + return HttpResponse.json({ data: { applications: [getApplicationById] } }); }); export const checkerApplicationEvaluationsHandler = graphql.query( diff --git a/packages/ui/src/mocks/mockData/applicationsForManager.ts b/packages/ui/src/mocks/mockData/applicationsForManager.ts index 50b3feaf..9222c035 100644 --- a/packages/ui/src/mocks/mockData/applicationsForManager.ts +++ b/packages/ui/src/mocks/mockData/applicationsForManager.ts @@ -44,8 +44,8 @@ export const applicationsForManagers = { }, ], anchorAddress: "0xb543d56ee04f516602057429ec4f1c85c19b1319", - canonicalProject: { - roles: [ + project: { + projectRoles: [ { address: "0x0d1781f0b693b35939a49831a6c799b938bd2f80", }, @@ -97,8 +97,8 @@ export const applicationsForManagers = { }, ], anchorAddress: "0x3bbb6cd15ff7d268640409aef5b2d407d4891276", - canonicalProject: { - roles: [ + project: { + projectRoles: [ { address: "0x5645bf145c3f1e974d0d7fb91bf3c68592ab5012", }, @@ -146,8 +146,8 @@ export const applicationsForManagers = { }, ], anchorAddress: "0x3cdcb6611703a053751d2e82accd4daeb913aaa6", - canonicalProject: { - roles: [ + project: { + projectRoles: [ { address: "0xe7eb5d2b5b188777df902e89c54570e7ef4f59ce", }, @@ -195,8 +195,8 @@ export const applicationsForManagers = { }, ], anchorAddress: "0x2c7296a5ec0539f0a018c7176c97c92a9c44e2b4", - canonicalProject: { - roles: [ + project: { + projectRoles: [ { address: "0xe7eb5d2b5b188777df902e89c54570e7ef4f59ce", }, @@ -244,8 +244,8 @@ export const applicationsForManagers = { }, ], anchorAddress: "0x739dba380a2e448d66492a19f1efbec4228834ce", - canonicalProject: { - roles: [ + project: { + projectRoles: [ { address: "0xe7eb5d2b5b188777df902e89c54570e7ef4f59ce", }, @@ -293,8 +293,8 @@ export const applicationsForManagers = { }, ], anchorAddress: "0x0193b4e5d895292ee332fe6b624dd5091d43cf75", - canonicalProject: { - roles: [ + project: { + projectRoles: [ { address: "0xe7eb5d2b5b188777df902e89c54570e7ef4f59ce", }, @@ -342,8 +342,8 @@ export const applicationsForManagers = { }, ], anchorAddress: "0xf490040fc45b7405dd695be07f09125a2e75c7a3", - canonicalProject: { - roles: [ + project: { + projectRoles: [ { address: "0xe7eb5d2b5b188777df902e89c54570e7ef4f59ce", }, @@ -391,8 +391,8 @@ export const applicationsForManagers = { }, ], anchorAddress: "0x656f2087b0c88370f74d3ed481694c99b7dcc035", - canonicalProject: { - roles: [ + project: { + projectRoles: [ { address: "0xe7eb5d2b5b188777df902e89c54570e7ef4f59ce", }, @@ -444,8 +444,8 @@ export const applicationsForManagers = { }, ], anchorAddress: "0x98df600f5676cb7b06d4ecd2c7c9df9a866d45a0", - canonicalProject: { - roles: [ + project: { + projectRoles: [ { address: "0x5645bf145c3f1e974d0d7fb91bf3c68592ab5012", }, @@ -554,8 +554,8 @@ export const applicationsForManagers = { }, ], anchorAddress: "0xe5023547991f22274f171f0cf0a88f69b178bb6d", - canonicalProject: { - roles: [ + project: { + projectRoles: [ { address: "0x5645bf145c3f1e974d0d7fb91bf3c68592ab5012", }, @@ -605,8 +605,8 @@ export const applicationsForManagers = { }, ], anchorAddress: "0x741bba71ab5f667b1f1abc5c64f24289aac26cf2", - canonicalProject: { - roles: [ + project: { + projectRoles: [ { address: "0x0d1781f0b693b35939a49831a6c799b938bd2f80", }, @@ -656,8 +656,8 @@ export const applicationsForManagers = { }, ], anchorAddress: "0x9af6aad853b1f1f2908551c3e28c49ccc79cc765", - canonicalProject: { - roles: [ + project: { + projectRoles: [ { address: "0x0d1781f0b693b35939a49831a6c799b938bd2f80", }, @@ -709,8 +709,8 @@ export const applicationsForManagers = { }, ], anchorAddress: "0x697a6cdd40b0bf7ce3ec818225f584ae5c48a573", - canonicalProject: { - roles: [ + project: { + projectRoles: [ { address: "0x5645bf145c3f1e974d0d7fb91bf3c68592ab5012", }, @@ -760,8 +760,8 @@ export const applicationsForManagers = { }, ], anchorAddress: "0x3b6a76df677df5489499ae8f67b07ed33a491dbb", - canonicalProject: { - roles: [ + project: { + projectRoles: [ { address: "0xb8cef765721a6da910f14be93e7684e9a3714123", }, @@ -808,8 +808,8 @@ export const applicationsForManagers = { }, ], anchorAddress: "0xfc024a01c5f837d7ff5164d541e6ec350a7eeff2", - canonicalProject: { - roles: [ + project: { + projectRoles: [ { address: "0x5645bf145c3f1e974d0d7fb91bf3c68592ab5012", }, @@ -854,8 +854,8 @@ export const applicationsForManagers = { }, ], anchorAddress: "0xc482ead44a5ba21b419eaa352bfdaee04592c0f1", - canonicalProject: { - roles: [ + project: { + projectRoles: [ { address: "0x5645bf145c3f1e974d0d7fb91bf3c68592ab5012", }, @@ -863,75 +863,77 @@ export const applicationsForManagers = { }, }, ], - round: { - roundMetadata: { - name: "Checker Test Round", - support: { - info: "yy@yy.yy", - type: "Email", - }, - roundType: "private", - eligibility: { - description: - "This grant round is created purely for testing purposes. The project description is intentionally left empty, and the project itself is not intended to provide any meaningful service or product. This round is a placeholder for testing grant application processes.", - requirements: [ + rounds: [ + { + roundMetadata: { + name: "Checker Test Round", + support: { + info: "yy@yy.yy", + type: "Email", + }, + roundType: "private", + eligibility: { + description: + "This grant round is created purely for testing purposes. The project description is intentionally left empty, and the project itself is not intended to provide any meaningful service or product. This round is a placeholder for testing grant application processes.", + requirements: [ + { + requirement: + "You must provide a link to something (anything). It could be a website, a GitHub repo, or even just a link to your social media.", + }, + { + requirement: + "Your project must have a title. It can be a random word or phrase. Bonus points for creativity, but it's not required.", + }, + { + requirement: + 'Briefly describe your "project" in one sentence. It can be completely unrelated to the title and should not matter at all.', + }, + { + requirement: "Be awesome :)", + }, + ], + }, + feesAddress: "", + feesPercentage: 0, + programContractAddress: + "0x107879486cfb4f5e6284033fbe11a3cfd6bb447a119f15729cd8e3fc8ca8aff5", + quadraticFundingConfig: { + matchingCap: false, + sybilDefense: "passport-mbds", + minDonationThreshold: false, + matchingFundsAvailable: 0.1, + }, + }, + strategyName: "allov2.DonationVotingMerkleDistributionDirectTransferStrategy", + strategyAddress: "0xc5a0a4d4b0c46fc430362377d3d11a23bad4a645", + applicationsStartTime: "2024-11-26T13:50:00+00:00", + applicationsEndTime: "2024-12-27T23:00:00+00:00", + donationsEndTime: "2024-12-30T23:00:00+00:00", + donationsStartTime: "2024-11-29T23:00:00+00:00", + project: { + id: "0x107879486cfb4f5e6284033fbe11a3cfd6bb447a119f15729cd8e3fc8ca8aff5", + projectRoles: [ + { + address: "0x0d1781f0b693b35939a49831a6c799b938bd2f80", + }, { - requirement: - "You must provide a link to something (anything). It could be a website, a GitHub repo, or even just a link to your social media.", + address: "0x5645bf145c3f1e974d0d7fb91bf3c68592ab5012", + }, + { + address: "0x5645bf145c3f1e974d0d7fb91bf3c68592ab5012", }, { - requirement: - "Your project must have a title. It can be a random word or phrase. Bonus points for creativity, but it's not required.", + address: "0x5933fb4969b322220ed8c24f2088633115ecbcc0", }, { - requirement: - 'Briefly describe your "project" in one sentence. It can be completely unrelated to the title and should not matter at all.', + address: "0x7b0e91c75ad9ec537083f61356c532bb882ea2fb", }, { - requirement: "Be awesome :)", + address: "0xb8cef765721a6da910f14be93e7684e9a3714123", }, ], }, - feesAddress: "", - feesPercentage: 0, - programContractAddress: - "0x107879486cfb4f5e6284033fbe11a3cfd6bb447a119f15729cd8e3fc8ca8aff5", - quadraticFundingConfig: { - matchingCap: false, - sybilDefense: "passport-mbds", - minDonationThreshold: false, - matchingFundsAvailable: 0.1, - }, }, - strategyName: "allov2.DonationVotingMerkleDistributionDirectTransferStrategy", - strategyAddress: "0xc5a0a4d4b0c46fc430362377d3d11a23bad4a645", - applicationsStartTime: "2024-11-26T13:50:00+00:00", - applicationsEndTime: "2024-12-27T23:00:00+00:00", - donationsEndTime: "2024-12-30T23:00:00+00:00", - donationsStartTime: "2024-11-29T23:00:00+00:00", - roles: [ - { - address: "0x0d1781f0b693b35939a49831a6c799b938bd2f80", - }, - { - address: "0x5645bf145c3f1e974d0d7fb91bf3c68592ab5012", - }, - { - address: "0x5645bf145c3f1e974d0d7fb91bf3c68592ab5012", - }, - { - address: "0x5933fb4969b322220ed8c24f2088633115ecbcc0", - }, - { - address: "0x7b0e91c75ad9ec537083f61356c532bb882ea2fb", - }, - { - address: "0xb8cef765721a6da910f14be93e7684e9a3714123", - }, - ], - project: { - id: "0x107879486cfb4f5e6284033fbe11a3cfd6bb447a119f15729cd8e3fc8ca8aff5", - }, - }, + ], }, }; diff --git a/packages/ui/src/mocks/mockData/indexerGetApplicationById.ts b/packages/ui/src/mocks/mockData/indexerGetApplicationById.ts index 525f15c7..3a8202cf 100644 --- a/packages/ui/src/mocks/mockData/indexerGetApplicationById.ts +++ b/packages/ui/src/mocks/mockData/indexerGetApplicationById.ts @@ -189,8 +189,8 @@ export const getApplicationById = { strategyName: "allov2.DonationVotingMerkleDistributionDirectTransferStrategy", strategyAddress: "0xd2d99614321becd7cd0636715bbb4c94968e6271", }, - canonicalProject: { - roles: [ + project: { + projectRoles: [ { address: "0xd35e119782059a27fead4edda8b555f393650bc8", },