Skip to content

Commit

Permalink
[factory]: Adding new stargazers-of-keyapp-s-apps group (#2179)
Browse files Browse the repository at this point in the history
  • Loading branch information
sismobot authored Sep 14, 2023
1 parent 3ebd99b commit 66cdfdd
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 @@ -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";
Expand Down Expand Up @@ -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,
Expand Down
38 changes: 38 additions & 0 deletions group-generators/generators/stargazers-of-keyapp-s-apps/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: [ "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;

0 comments on commit 66cdfdd

Please sign in to comment.