Skip to content

Commit

Permalink
[factory]: Adding new talent-protocol-test group (#2197)
Browse files Browse the repository at this point in the history
  • Loading branch information
sismobot authored Oct 7, 2023
1 parent b2666f4 commit 6a2676f
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 @@ -714,6 +714,7 @@ import sysmotestbadge1 from "./sysmotestbadge1";
import t0xci from "./t0xci";
import talentLayerCommunity from "./talent-layer-community";
import talentOfTheMonthSolidityMarch2023 from "./talent-of-the-month-solidity-march-2023";
import talentProtocolTest from "./talent-protocol-test";
import talentlayer from "./talentlayer";
import talentofthemonthDesignMarch from "./talentofthemonth-design-march";
import tally from './tally';
Expand Down Expand Up @@ -1584,6 +1585,7 @@ export const groupGenerators: GroupGeneratorsLibrary = {
"t0xci": t0xci,
"talent-layer-community": talentLayerCommunity,
"talent-of-the-month-solidity-march-2023": talentOfTheMonthSolidityMarch2023,
"talent-protocol-test": talentProtocolTest,
"talentlayer": talentlayer,
"talentofthemonth-design-march": talentofthemonthDesignMarch,
"tally": tally,
Expand Down
38 changes: 38 additions & 0 deletions group-generators/generators/talent-protocol-test/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.Once,

generate: async (context: GenerationContext): Promise<GroupWithData[]> => {

const restProvider = new dataProviders.RestProvider();

const restProviderData0 = await restProvider.getAccountsFromAPI({
url: "https://api.talentprotocol.com/api/v1/talents"
});

return [
{
name: "talent-protocol-test",
timestamp: context.timestamp,
description: "Talent Protocol Test",
specs: "Talent Protocol Test from https://api.talentprotocol.com/api/v1/talents",
data: restProviderData0,
valueType: ValueType.Score,
tags: [Tags.Factory],
},
];
},
};

export default generator;

0 comments on commit 6a2676f

Please sign in to comment.