Skip to content

Commit

Permalink
[factory]: Adding new deano-annotators group (#2218)
Browse files Browse the repository at this point in the history
  • Loading branch information
sismobot authored Oct 16, 2023
1 parent abb0a05 commit 8e25f05
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
38 changes: 38 additions & 0 deletions group-generators/generators/deano-annotators/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 restProvider = new dataProviders.RestProvider();

const restProviderData0 = await restProvider.getAccountsFromAPI({
url: "https://deano.vercel.app/api/sismo"
});

return [
{
name: "deano-annotators",
timestamp: context.timestamp,
description: "Data Group of Data Annotation Community of Deano",
specs: "Data Group of Data Annotation Community of Deano. Value for each of the account or member is a reputation score updated based on the performance and accuracy of data annotation performed on the platform.",
data: restProviderData0,
valueType: ValueType.Score,
tags: [Tags.Factory],
},
];
},
};

export default generator;
2 changes: 2 additions & 0 deletions group-generators/generators/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ import daoContributor from "./dao-contributor"
import daoForumUsers from "./dao-forum-users";
import dataverseTestLyf from "./dataverse-test-lyf";
import davidZkBadge from "./david-zk-badge";
import deanoAnnotators from "./deano-annotators";
import degenScore from "./degen-score";
import degenSwag from "./degen-swag";
import degens from "./degens";
Expand Down Expand Up @@ -1037,6 +1038,7 @@ export const groupGenerators: GroupGeneratorsLibrary = {
"dao-contributor": daoContributor,
"dataverse-test-lyf": dataverseTestLyf,
"david-zk-badge": davidZkBadge,
"deano-annotators": deanoAnnotators,
"degen-score": degenScore,
"degen-swag": degenSwag,
"degens": degens,
Expand Down

0 comments on commit 8e25f05

Please sign in to comment.