diff --git a/group-generators/generators/consensys-demo-lock/index.ts b/group-generators/generators/consensys-demo-lock/index.ts new file mode 100644 index 000000000..7c4ce45d4 --- /dev/null +++ b/group-generators/generators/consensys-demo-lock/index.ts @@ -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.Daily, + + generate: async (context: GenerationContext): Promise => { + + const unlockSubgraphProvider = new dataProviders.UnlockSubgraphProvider(); + + const unlockSubgraphProviderData0 = await unlockSubgraphProvider.getKeysInLock({ + lockAddress: "0x5c92f51e7f84ec3ef0f2494ba281f74805f7e6d5", + chain: "goerli" + }); + + return [ + { + name: "consensys-demo-lock", + timestamp: context.timestamp, + description: "Data group of ConsenSys demo lock members", + specs: "Built with the unlock Data Provider. lock: 0x5c92f51e7f84ec3ef0f2494ba281f74805f7e6d5 on goerli.", + data: unlockSubgraphProviderData0, + valueType: ValueType.Score, + tags: [Tags.Factory], + }, + ]; + }, +}; + +export default generator; diff --git a/group-generators/generators/index.ts b/group-generators/generators/index.ts index 447136170..765fde797 100644 --- a/group-generators/generators/index.ts +++ b/group-generators/generators/index.ts @@ -98,6 +98,7 @@ import commitdao from "./commitdao"; import community from "./community"; import communitylad from "./communitylad"; import connectfast from "./connectfast"; +import consensysDemoLock from "./consensys-demo-lock"; import cowHolders from "./cow-holders"; import cowTraders from "./cow-traders"; import cowTradersAndHolders from "./cow-traders-and-holders"; @@ -861,6 +862,7 @@ export const groupGenerators: GroupGeneratorsLibrary = { "community": community, "communitylad": communitylad, "connectfast": connectfast, + "consensys-demo-lock": consensysDemoLock, "cow-holders": cowHolders, "cow-traders": cowTraders, "cow-traders-and-holders": cowTradersAndHolders,