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 talent-layer-community group #2196

Merged
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
2 changes: 2 additions & 0 deletions group-generators/generators/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -712,6 +712,7 @@ import syndicateDao from "./syndicate-dao";
import syndicateDaoCreator from "./syndicate-dao-creator";
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 talentlayer from "./talentlayer";
import talentofthemonthDesignMarch from "./talentofthemonth-design-march";
Expand Down Expand Up @@ -1581,6 +1582,7 @@ export const groupGenerators: GroupGeneratorsLibrary = {
"syndicate-dao-creator": syndicateDaoCreator,
"sysmotestbadge1": sysmotestbadge1,
"t0xci": t0xci,
"talent-layer-community": talentLayerCommunity,
"talent-of-the-month-solidity-march-2023": talentOfTheMonthSolidityMarch2023,
"talentlayer": talentlayer,
"talentofthemonth-design-march": talentofthemonthDesignMarch,
Expand Down
39 changes: 39 additions & 0 deletions group-generators/generators/talent-layer-community/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@

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 alchemyProvider = new dataProviders.AlchemyProvider();

const alchemyProviderData0 = await alchemyProvider.getOwnersForCollection({
contractAddress: "0x3F87289e6Ec2D05C32d8A74CCfb30773fF549306",
chain: "polygon-mumbai"
});

return [
{
name: "talent-layer-community",
timestamp: context.timestamp,
description: "Talent Layer Community",
specs: "Owned talent layer NFT.",
data: alchemyProviderData0,
valueType: ValueType.Score,
tags: [Tags.Factory],
},
];
},
};

export default generator;
Loading