Skip to content

Passport scorer API update #3776

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions packages/common/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ export const fetchPassport = (
communityId: string,
apiKey: string
): Promise<Response> => {
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}`,
},
});
};
Expand Down
6 changes: 3 additions & 3 deletions packages/grant-explorer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Loading