From 5c2692ac0269e014cce066f69cdcdabe5896ec54 Mon Sep 17 00:00:00 2001 From: MasterHW <43460021+MasterHW@users.noreply.github.com> Date: Fri, 28 Feb 2025 12:08:09 -0700 Subject: [PATCH] update scorer requests --- .env.example | 2 +- packages/common/src/index.ts | 4 ++-- packages/grant-explorer/README.md | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.env.example b/.env.example index 42524dc8de..ff5b5f01ec 100644 --- a/.env.example +++ b/.env.example @@ -20,7 +20,7 @@ REACT_APP_WALLETCONNECT_PROJECT_ID=42a4d689485d5a324116e53ed077d907 #REACT_APP_INFURA_ID= ##Passport - nonessential in local -REACT_APP_PASSPORT_API_ENDPOINT=https://api.scorer.gitcoin.co +REACT_APP_PASSPORT_API_ENDPOINT=https://api.passport.xyz # Get your own key at https://scorer.gitcoin.co REACT_APP_PASSPORT_API_KEY= REACT_APP_PASSPORT_API_COMMUNITY_ID=335 diff --git a/packages/common/src/index.ts b/packages/common/src/index.ts index 7e36e72636..9c80f8d474 100644 --- a/packages/common/src/index.ts +++ b/packages/common/src/index.ts @@ -61,12 +61,12 @@ export const fetchPassport = ( communityId: string, apiKey: string ): Promise => { - const url = `${process.env.REACT_APP_PASSPORT_API_ENDPOINT}/registry/score/${communityId}/${address}`; + const url = `${process.env.REACT_APP_PASSPORT_API_ENDPOINT}/v2/stamps/${communityId}/score/${address}`; return fetch(url, { method: "GET", headers: { "Content-Type": "application/json", - Authorization: `Bearer ${apiKey}`, + "X-API-Key": `${apiKey}`, }, }); }; diff --git a/packages/grant-explorer/README.md b/packages/grant-explorer/README.md index 1a45205071..e42d8e2da5 100644 --- a/packages/grant-explorer/README.md +++ b/packages/grant-explorer/README.md @@ -55,8 +55,8 @@ To contribute to this project, fork the project and follow the instructions at [ ### Passport Integration -In your `.env` you will need to specify two environment variables for [Gitcoin Passport Integration](https://passport.gitcoin.co/#/). +In your `.env` you will need to specify two environment variables for [Passport Integration](https://passport.human.tech/). -Generate a community scorer API Key with the Passport Scorer Dashboard [here](https://www.scorer.gitcoin.co/dashboard) by selecting API Keys in the sidebar. +Generate an API Key with the Passport Scorer [developer portal](https://developer.passport.xyz/). -Specify the `https://api.scorer.gitcoin.co` for the `REACT_APP_PASSPORT_API_ENDPOINT` and your generated API key for `REACT_APP_PASSPORT_API_KEY` in your `.env`. +Specify `https://api.passport.xyz` for the `REACT_APP_PASSPORT_API_ENDPOINT` and your generated API key for `REACT_APP_PASSPORT_API_KEY` in your `.env`.