From 39733bb4a17dc6c53c6ecfed39ddb18c7c688c99 Mon Sep 17 00:00:00 2001 From: Sismobot <94460392+sismobot@users.noreply.github.com> Date: Mon, 16 Oct 2023 20:22:45 +0200 Subject: [PATCH] [factory]: Adding new deano-annotators group --- .../generators/deano-annotators/index.ts | 38 +++++++++++++++++++ group-generators/generators/index.ts | 2 + 2 files changed, 40 insertions(+) create mode 100644 group-generators/generators/deano-annotators/index.ts diff --git a/group-generators/generators/deano-annotators/index.ts b/group-generators/generators/deano-annotators/index.ts new file mode 100644 index 000000000..f9741ee7a --- /dev/null +++ b/group-generators/generators/deano-annotators/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 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; diff --git a/group-generators/generators/index.ts b/group-generators/generators/index.ts index af1ac60d7..e400c22ed 100644 --- a/group-generators/generators/index.ts +++ b/group-generators/generators/index.ts @@ -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"; @@ -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,