-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[factory]: Adding new consensys-demo-lock group (#2060)
- Loading branch information
Showing
2 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters