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 stand-with-us group #2228

Merged
merged 1 commit into from
Oct 18, 2023
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 @@ -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;
Loading