From 66cdfdda905c25ba3757103df977a2ce7f3a274f Mon Sep 17 00:00:00 2001 From: Sismobot <94460392+sismobot@users.noreply.github.com> Date: Thu, 14 Sep 2023 22:40:30 +0200 Subject: [PATCH] [factory]: Adding new stargazers-of-keyapp-s-apps group (#2179) --- group-generators/generators/index.ts | 2 + .../stargazers-of-keyapp-s-apps/index.ts | 38 +++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 group-generators/generators/stargazers-of-keyapp-s-apps/index.ts diff --git a/group-generators/generators/index.ts b/group-generators/generators/index.ts index ea8134b2b..ef90a0baf 100644 --- a/group-generators/generators/index.ts +++ b/group-generators/generators/index.ts @@ -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"; @@ -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, diff --git a/group-generators/generators/stargazers-of-keyapp-s-apps/index.ts b/group-generators/generators/stargazers-of-keyapp-s-apps/index.ts new file mode 100644 index 000000000..4499b2609 --- /dev/null +++ b/group-generators/generators/stargazers-of-keyapp-s-apps/index.ts @@ -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 => { + + 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;