Attestations Collections
Once you have generated your group, you need to make the group available for an attester.
In the attestations-collections/hydra-s1-simple folder, all the HydraS1Attesters attestations collection are declared.
To make available the previous group we created for the HydraS1SimpleAttestation, we simply need to add a new AttestationsCollection object for the attester.
You can notice that the group sismo-masquerade-lens-followers is fetched for the Masquerade Attestation , and a badge is linked to the Attestation with all the metadata of the NFT thanks to the internalCollectionId.
export const hydraS1SimpleAttester = generateHydraS1Attester(
...
{
name: "hydra-s1-simple",
networks: [Network.Polygon, Network.Rinkeby],
attestationsCollections: [
...
// Masquerade attestation
{
internalCollectionId: 3,
groupFetcher: async (groupStore) => [
await groupStore.latest("sismo-masquerade-lens-followers"),
],
},
],
}
);
export const hydraS1SimpleBadges: BadgesCollection = {
collectionIdFirsts: {
[Network.Polygon]: 10000001,
[Network.Rinkeby]: 10000001,
},
badges: [
...
// Masquerade's Badge metadata
{
internalCollectionId: 3,
name: "Sismo Masquerade Bloomer ZK Badge",
description:
"ZK Badge owned by @masquerade.lens and @sismo.lens Lens followers",
image: "sismo_masquerade_bloomers.svg",
attributes: {},
requirements: [],
},
],
};
This will automatically deploy the associated metadata for the badge
Copy link