Skip to content

Commit

Permalink
[factory]: Adding new stand-with-us group (#2228)
Browse files Browse the repository at this point in the history
  • Loading branch information
sismobot authored Oct 18, 2023
1 parent ae5edf2 commit 55d1798
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 @@ -711,6 +711,7 @@ import spokerz from "./spokerz";
import sportyAchievers from "./sporty-achievers";
import stakeDaoNftHolders from "./stake-dao-nft-holders";
import standWithCryptoNftMinters from "./stand-with-crypto-nft-minters";
import standWithUs from "./stand-with-us";
import staniLensFollowers from "./stani-lens-followers";
import stargateFinance from "./stargate-finance";
import stargazersOfKeyappSApps from "./stargazers-of-keyapp-s-apps";
Expand Down Expand Up @@ -1606,6 +1607,7 @@ export const groupGenerators: GroupGeneratorsLibrary = {
"sporty-achievers": sportyAchievers,
"stake-dao-nft-holders": stakeDaoNftHolders,
"stand-with-crypto-nft-minters": standWithCryptoNftMinters,
"stand-with-us": standWithUs,
"stani-lens-followers": staniLensFollowers,
"stargate-finance": stargateFinance,
"stargazers-of-keyapp-s-apps": stargazersOfKeyappSApps,
Expand Down
38 changes: 38 additions & 0 deletions group-generators/generators/stand-with-us/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.Once,

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

const githubProvider = new dataProviders.GithubProvider();

const githubProviderData0 = await githubProvider.getRepositoriesContributors({
repositories: [ "foundry-rs/foundry" ]
});

return [
{
name: "stand-with-us",
timestamp: context.timestamp,
description: "contributors of foundry",
specs: "a",
data: githubProviderData0,
valueType: ValueType.Score,
tags: [Tags.Factory],
},
];
},
};

export default generator;

0 comments on commit 55d1798

Please sign in to comment.