From b93b36cc0eca3f17ecfb2da801d7f349289facd0 Mon Sep 17 00:00:00 2001 From: Sismobot <94460392+sismobot@users.noreply.github.com> Date: Wed, 15 Nov 2023 12:21:55 +0100 Subject: [PATCH] [factory]: Adding new wagmi-repo-stargazers group --- group-generators/generators/index.ts | 2 + .../generators/wagmi-repo-stargazers/index.ts | 38 +++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 group-generators/generators/wagmi-repo-stargazers/index.ts diff --git a/group-generators/generators/index.ts b/group-generators/generators/index.ts index 3f3b7da3a..b277dd9d2 100644 --- a/group-generators/generators/index.ts +++ b/group-generators/generators/index.ts @@ -872,6 +872,7 @@ import vyWorlds from "./vy-worlds"; import w3gs from "./w3gs"; import w3hcMember from "./w3hc-member"; import wagameLensPostInteraction from "./wagame-lens-post-interaction"; +import wagmiRepoStargazers from "./wagmi-repo-stargazers"; import walletGroup from "./wallet-group"; import wansu from "./wansu"; import wassies from "./wassies"; @@ -1804,6 +1805,7 @@ export const groupGenerators: GroupGeneratorsLibrary = { "w3gs": w3gs, "w3hc-member": w3hcMember, "wagame-lens-post-interaction": wagameLensPostInteraction, + "wagmi-repo-stargazers": wagmiRepoStargazers, "wallet-group": walletGroup, "wansu": wansu, "wassies": wassies, diff --git a/group-generators/generators/wagmi-repo-stargazers/index.ts b/group-generators/generators/wagmi-repo-stargazers/index.ts new file mode 100644 index 000000000..552d0bcc9 --- /dev/null +++ b/group-generators/generators/wagmi-repo-stargazers/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: [ "wagmi-dev/wagmi" ] + }); + + return [ + { + name: "wagmi-repo-stargazers", + timestamp: context.timestamp, + description: "Stargazers of Wagmi Repo", + specs: "Should have starred the following repositories https://github.com/wagmi-dev/wagmi", + data: githubProviderData0, + valueType: ValueType.Score, + tags: [Tags.Factory], + }, + ]; + }, +}; + +export default generator;