Skip to content

Commit 08b3427

Browse files
authored
update scorer requests (#3776)
1 parent 04ff59a commit 08b3427

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ REACT_APP_WALLETCONNECT_PROJECT_ID=42a4d689485d5a324116e53ed077d907
2020
#REACT_APP_INFURA_ID=
2121

2222
##Passport - nonessential in local
23-
REACT_APP_PASSPORT_API_ENDPOINT=https://api.scorer.gitcoin.co
23+
REACT_APP_PASSPORT_API_ENDPOINT=https://api.passport.xyz
2424
# Get your own key at https://scorer.gitcoin.co
2525
REACT_APP_PASSPORT_API_KEY=
2626
REACT_APP_PASSPORT_API_COMMUNITY_ID=335

packages/common/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ export const fetchPassport = (
6161
communityId: string,
6262
apiKey: string
6363
): Promise<Response> => {
64-
const url = `${process.env.REACT_APP_PASSPORT_API_ENDPOINT}/registry/score/${communityId}/${address}`;
64+
const url = `${process.env.REACT_APP_PASSPORT_API_ENDPOINT}/v2/stamps/${communityId}/score/${address}`;
6565
return fetch(url, {
6666
method: "GET",
6767
headers: {
6868
"Content-Type": "application/json",
69-
Authorization: `Bearer ${apiKey}`,
69+
"X-API-Key": `${apiKey}`,
7070
},
7171
});
7272
};

packages/grant-explorer/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ To contribute to this project, fork the project and follow the instructions at [
5555

5656
### Passport Integration
5757

58-
In your `.env` you will need to specify two environment variables for [Gitcoin Passport Integration](https://passport.gitcoin.co/#/).
58+
In your `.env` you will need to specify two environment variables for [Passport Integration](https://passport.human.tech/).
5959

60-
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.
60+
Generate an API Key with the Passport Scorer [developer portal](https://developer.passport.xyz/).
6161

62-
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`.
62+
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`.

0 commit comments

Comments
 (0)