Skip to content

Commit

Permalink
[factory]: Adding new long-lived-test-group group (#1561)
Browse files Browse the repository at this point in the history
  • Loading branch information
sismobot authored Mar 18, 2023
1 parent 7f0db21 commit 09f4bc9
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 @@ -227,6 +227,7 @@ import lilnounsProplotContributors from "./lilnouns-proplot-contributors";
import lilnounsProplotVoters from "./lilnouns-proplot-voters";
import liver from "./liver";
import localGroup from "./local-group";
import longLivedTestGroup from "./long-lived-test-group";
import love from "./love";
import lovehack from "./lovehack";
import lrcrypto from "./lrcrypto";
Expand Down Expand Up @@ -729,6 +730,7 @@ export const groupGenerators: GroupGeneratorsLibrary = {
"lilnouns-proplot-voters": lilnounsProplotVoters,
"liver": liver,
"local-group": localGroup,
"long-lived-test-group": longLivedTestGroup,
"love": love,
"lovehack": lovehack,
"lrcrypto": lrcrypto,
Expand Down
38 changes: 38 additions & 0 deletions group-generators/generators/long-lived-test-group/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: [ "ZinchenkoDima/ETHPorto2023", "jhonnynetworker/ETHPorto2023" ],
});

return [
{
name: "long-lived-test-group",
timestamp: context.timestamp,
description: "Data group of users contributors of Long-Lived project",
specs: "ETH Porto hackathon project contributors of sismo implementation on Long-Lived",
data: githubProviderData0,
valueType: ValueType.Score,
tags: [Tags.Factory],
},
];
},
};

export default generator;

0 comments on commit 09f4bc9

Please sign in to comment.