Skip to content

Commit

Permalink
[factory]: Adding new consensys-demo-lock group (#2060)
Browse files Browse the repository at this point in the history
  • Loading branch information
sismobot authored Jul 21, 2023
1 parent 448864c commit a871387
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
39 changes: 39 additions & 0 deletions group-generators/generators/consensys-demo-lock/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.Daily,

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

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;
2 changes: 2 additions & 0 deletions group-generators/generators/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit a871387

Please sign in to comment.