Groups
Off-chain groups are a reusable tool used by Sismo to generate available groups for attesters.
Anyone can propose a new group to Sismo:
For more context on groups of accounts:

Group generator example

1
export default new GroupGenerator({
2
id: 2,
3
name: "ens-voters",
4
generate: async (context: GeneratorContext): Promise<Group> => {
5
const snapshot = new dataProviders.SnapshotProvider();
6
const voters = await snapshot.queryAllVoters({
7
space: "ens.eth",
8
});
9
return new Group({
10
generationDate: new Date(context.timestamp),
11
data: voters,
12
valueType: ValueType.Info,
13
tags: [Tags.Mainnet, Tags.Vote, Tags.User],
14
});
15
},
16
generationFrequency: GenerationFrequency.Weekly,
17
});
Copied!
Copy link