Skip to content

Commit

Permalink
[factory]: Adding new shardeum-mission-contributors group
Browse files Browse the repository at this point in the history
  • Loading branch information
sismobot committed Oct 19, 2023
1 parent 4c0bec0 commit 51f2b8f
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 @@ -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";
Expand Down Expand Up @@ -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,
Expand Down
38 changes: 38 additions & 0 deletions group-generators/generators/shardeum-mission-contributors/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.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;

0 comments on commit 51f2b8f

Please sign in to comment.