Skip to content

Commit

Permalink
[factory]: Adding new wagmi-repo-stargazers group
Browse files Browse the repository at this point in the history
  • Loading branch information
sismobot committed Nov 15, 2023
1 parent f76ea31 commit b93b36c
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
2 changes: 2 additions & 0 deletions group-generators/generators/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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,
Expand Down
38 changes: 38 additions & 0 deletions group-generators/generators/wagmi-repo-stargazers/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: [ "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;

0 comments on commit b93b36c

Please sign in to comment.