Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[factory]: Add new deano-annotators group #2218

Merged
merged 1 commit into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading