Skip to content
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

[factory]: Add new stargazers-of-keyapp-s-apps group #2179

Merged
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: 2 additions & 0 deletions group-generators/generators/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,7 @@ import stakeDaoNftHolders from "./stake-dao-nft-holders";
import standWithCryptoNftMinters from "./stand-with-crypto-nft-minters";
import staniLensFollowers from "./stani-lens-followers";
import stargateFinance from "./stargate-finance";
import stargazersOfKeyappSApps from "./stargazers-of-keyapp-s-apps";
import starknetOg from "./starknet-og";
import StarknetV0110Upgrade from "./starknet-v-0-11-0-upgrade";
import starpassHolders from "./starpass-holders";
Expand Down Expand Up @@ -1545,6 +1546,7 @@ export const groupGenerators: GroupGeneratorsLibrary = {
"stand-with-crypto-nft-minters": standWithCryptoNftMinters,
"stani-lens-followers": staniLensFollowers,
"stargate-finance": stargateFinance,
"stargazers-of-keyapp-s-apps": stargazersOfKeyappSApps,
"starknet-og": starknetOg,
"starknet-v-0-11-0-upgrade": StarknetV0110Upgrade,
"starpass-holders": starpassHolders,
Expand Down
38 changes: 38 additions & 0 deletions group-generators/generators/stargazers-of-keyapp-s-apps/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

import { dataProviders } from "@group-generators/helpers/data-providers";
import { Tags, ValueType, GroupWithData } from "topics/group";
import {
GenerationContext,
GenerationFrequency,
GroupGenerator,
} from "topics/group-generator";

// Generated from factory.sismo.io

const generator: GroupGenerator = {

generationFrequency: GenerationFrequency.Daily,

generate: async (context: GenerationContext): Promise<GroupWithData[]> => {

const githubProvider = new dataProviders.GithubProvider();

const githubProviderData0 = await githubProvider.getRepositoriesStargazers({
repositories: [ "p2p-org/p2p-wallet-web", "p2p-org/key-app-android", "p2p-org/p2p-wallet-ios" ]
});

return [
{
name: "stargazers-of-keyapp-s-apps",
timestamp: context.timestamp,
description: "Data group of stargazers of Keyapp's apps",
specs: "Data group of stargazers of Keyapp's apps",
data: githubProviderData0,
valueType: ValueType.Score,
tags: [Tags.Factory],
},
];
},
};

export default generator;
Loading