Skip to content

Commit

Permalink
feat(platforms): have removed 'GitcoinContributorStatistics#numGrants… (
Browse files Browse the repository at this point in the history
passportxyz#2376)

* feat(platforms): have removed 'GitcoinContributorStatistics#numGrantsContributeToGte#*' stamps

* feat(iam): fix failing tests

* feat(platforms,types): remove 'githubAccountCreationGte#*' prooviders

- this also removed the legacy github providers
- also drops the FF_NEW_GITHUB_STAMPS feature flag in be and app

* fix(app,database-client): removing refs to old providers

* feat(platmros,types): remove 'GuildMember'

* feat(platforms,types): removing providers 'IdenaAge#5' and 'IdenaAge#10'

* feat(platforms,types): removing providers: IdenaStake#100k,IdenaStake#10k,IdenaStake#1k

* feat(app,platforms,types): removing PHIActivityGold,PHIActivitySilver

* feat(app,platforms,types): removing 'Poh' provider

* feat(app,platforms,types): removing 'Twitter' providers + some remains from Poh provider

* feat(app,platforms,types): removing 'ZkSync' provider

* feat(app,platforms,types): removing providers CyberProfile* providers

* feat(app,platforms,types): removing provider ETHPioneer

* feat(app,platforms,types): removing provider SnapshotVotesProvider

* fix(platforms): fix linter config, remove 'plugin:prettier/recommended'

* feat(types): removing providers CommunityStakingBronze,CommunityStakingGold,CommunityStakingSilver
  • Loading branch information
nutrina authored Apr 15, 2024
1 parent cfa4de9 commit 60d6ce2
Show file tree
Hide file tree
Showing 72 changed files with 84 additions and 4,045 deletions.
26 changes: 5 additions & 21 deletions app/__test-fixtures__/contextTestHelpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export const makeTestCeramicContext = (initialState?: Partial<CeramicContextStat
providerSpec: getProviderSpec("Ens", "Ens"),
stamp: undefined,
},
Poh: {
providerSpec: getProviderSpec("Poh", "Poh"),
Github: {
providerSpec: getProviderSpec("Github", "githubContributionActivityGte#30"),
stamp: undefined,
},
POAP: {
Expand All @@ -62,22 +62,6 @@ export const makeTestCeramicContext = (initialState?: Partial<CeramicContextStat
providerSpec: getProviderSpec("Signer", "Signer"),
stamp: undefined,
},
"GitcoinContributorStatistics#numGrantsContributeToGte#1": {
providerSpec: getProviderSpec("Gitcoin", "GitcoinContributorStatistics#numGrantsContributeToGte#1"),
stamp: undefined,
},
"GitcoinContributorStatistics#numGrantsContributeToGte#10": {
providerSpec: getProviderSpec("Gitcoin", "GitcoinContributorStatistics#numGrantsContributeToGte#10"),
stamp: undefined,
},
"GitcoinContributorStatistics#numGrantsContributeToGte#25": {
providerSpec: getProviderSpec("Gitcoin", "GitcoinContributorStatistics#numGrantsContributeToGte#25"),
stamp: undefined,
},
"GitcoinContributorStatistics#numGrantsContributeToGte#100": {
providerSpec: getProviderSpec("Gitcoin", "GitcoinContributorStatistics#numGrantsContributeToGte#100"),
stamp: undefined,
},
"GitcoinContributorStatistics#totalContributionAmountGte#10": {
providerSpec: getProviderSpec("Gitcoin", "GitcoinContributorStatistics#totalContributionAmountGte#10"),
stamp: undefined,
Expand Down Expand Up @@ -247,19 +231,19 @@ export const testOnChainContextState = (initialState?: Partial<OnChainContextSta
onChainProviders: {},
activeChainProviders: [
{
providerName: "githubAccountCreationGte#90",
providerName: "githubContributionActivityGte#30",
credentialHash: "v0.0.0:rnutMGjNA2yPx/8xzJdn6sXDsY46lLUNV3DHAHoPJJg=",
expirationDate: new Date("2090-07-31T11:49:51.433Z"),
issuanceDate: new Date("2023-07-02T11:49:51.433Z"),
},
{
providerName: "githubAccountCreationGte#180",
providerName: "githubContributionActivityGte#60",
credentialHash: "v0.0.0:rnutMGjNA2yPx/8xzJdn6sXDsY46lLUNV3DHAHoPJJg=",
expirationDate: new Date("2090-07-31T11:49:51.433Z"),
issuanceDate: new Date("2023-07-02T11:49:51.433Z"),
},
{
providerName: "githubAccountCreationGte#365",
providerName: "githubContributionActivityGte#120",
credentialHash: "v0.0.0:rnutMGjNA2yPx/8xzJdn6sXDsY46lLUNV3DHAHoPJJg=",
expirationDate: new Date("2090-07-31T11:49:51.433Z"),
issuanceDate: new Date("2023-07-02T11:49:51.433Z"),
Expand Down
4 changes: 2 additions & 2 deletions app/__test-fixtures__/databaseStorageFixtures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ export const ensStampFixture: Stamp = {
};

export const pohStampFixture: Stamp = {
provider: "Poh",
provider: "Lens",
credential,
};

export const twitterStampFixture: Stamp = {
provider: "Twitter",
provider: "ZkSyncEra",
credential,
};

Expand Down
203 changes: 0 additions & 203 deletions app/__tests__/components/ProviderCards/PohCard.test.tsx

This file was deleted.

87 changes: 0 additions & 87 deletions app/__tests__/components/ProviderCards/TwitterCard.test.tsx

This file was deleted.

4 changes: 2 additions & 2 deletions app/__tests__/context/stampClaimingContext.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const TestingComponent = () => {
},
{
platformId: "Gitcoin",
selectedProviders: ["GitcoinContributorStatistics#numGrantsContributeToGte#1"],
selectedProviders: ["GitcoinContributorStatistics#totalContributionAmountGte#10"],
},
]);
}}
Expand All @@ -93,7 +93,7 @@ const TestingComponentWithEvmStamp = () => {
},
{
platformId: "Gitcoin",
selectedProviders: ["GitcoinContributorStatistics#numGrantsContributeToGte#1"],
selectedProviders: ["GitcoinContributorStatistics#totalContributionAmountGte#10"],
},
{
platformId: "EVMBulkVerify",
Expand Down
2 changes: 0 additions & 2 deletions app/components/PlatformCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,6 @@ const usePlatformIsExcluded = (platform: PlatformScoreSpec) => {
// Feature Flag Holonym Stamp
if (process.env.NEXT_PUBLIC_FF_HOLONYM_STAMP !== "on" && platform.platform === "Holonym") return true;

if (process.env.NEXT_PUBLIC_FF_CYBERCONNECT_STAMPS !== "on" && platform.platform === "CyberConnect") return true;

if (process.env.NEXT_PUBLIC_FF_TRUSTALABS_STAMPS !== "on" && platform.platform === "TrustaLabs") return true;

return false;
Expand Down
Loading

0 comments on commit 60d6ce2

Please sign in to comment.