From 51f2b8fc6694775af931b30a175db4d6a49f288e Mon Sep 17 00:00:00 2001 From: Sismobot <94460392+sismobot@users.noreply.github.com> Date: Thu, 19 Oct 2023 08:41:59 +0200 Subject: [PATCH] [factory]: Adding new shardeum-mission-contributors group --- group-generators/generators/index.ts | 2 + .../shardeum-mission-contributors/index.ts | 38 +++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 group-generators/generators/shardeum-mission-contributors/index.ts diff --git a/group-generators/generators/index.ts b/group-generators/generators/index.ts index 975022bb4..1a899ddc0 100644 --- a/group-generators/generators/index.ts +++ b/group-generators/generators/index.ts @@ -638,6 +638,7 @@ import settlemintAssetTokenisation from "./settlemint-asset-tokenisation"; import seunbayo from "./seunbayo"; import seunganTest from "./seungan-test"; import sevenUsers from "./seven-users"; +import shardeumMissionContributors from "./shardeum-mission-contributors"; import shieldAirdrop from "./shield-airdrop"; import shonya from "./shonya"; import siddxaLensFollow from "./siddxa-lens-follow"; @@ -1535,6 +1536,7 @@ export const groupGenerators: GroupGeneratorsLibrary = { "seunbayo": seunbayo, "seungan-test": seunganTest, "seven-users": sevenUsers, + "shardeum-mission-contributors": shardeumMissionContributors, "shield-airdrop": shieldAirdrop, "shonya": shonya, "siddxa-lens-follow": siddxaLensFollow, diff --git a/group-generators/generators/shardeum-mission-contributors/index.ts b/group-generators/generators/shardeum-mission-contributors/index.ts new file mode 100644 index 000000000..9b8d94708 --- /dev/null +++ b/group-generators/generators/shardeum-mission-contributors/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.getRepositoriesContributors({ + repositories: [ "Shardeum/shardeum-missions" ] + }); + + return [ + { + name: "shardeum-mission-contributors", + timestamp: context.timestamp, + description: "Data group of shardeum missions ", + specs: "Shardeum missions", + data: githubProviderData0, + valueType: ValueType.Score, + tags: [Tags.Factory], + }, + ]; + }, +}; + +export default generator;