Skip to content

Commit

Permalink
[factory]: Adding new signpass group
Browse files Browse the repository at this point in the history
  • Loading branch information
sismobot committed Dec 8, 2023
1 parent 6f738df commit de55e2a
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
2 changes: 2 additions & 0 deletions group-generators/generators/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,7 @@ import shieldAirdrop from "./shield-airdrop";
import shieldfiContributors from "./shieldfi-contributors";
import shonya from "./shonya";
import siddxaLensFollow from "./siddxa-lens-follow";
import signpass from "./signpass";
import singularityDao from "./singularity-dao";
import siope from "./siope";
import sisbo from "./sisbo";
Expand Down Expand Up @@ -1604,6 +1605,7 @@ export const groupGenerators: GroupGeneratorsLibrary = {
"shieldfi-contributors": shieldfiContributors,
"shonya": shonya,
"siddxa-lens-follow": siddxaLensFollow,
"signpass": signpass,
"singularity-dao": singularityDao,
"siope": siope,
"sisbo": sisbo,
Expand Down
39 changes: 39 additions & 0 deletions group-generators/generators/signpass/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.Weekly,

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

const tokenProvider = new dataProviders.TokenProvider();

const tokenProviderData0 = await tokenProvider.getERC721Holders({
contractAddress: "0x0a775dD8284a5F824FB48460E6D6460F02834c19",
network: "137"
});

return [
{
name: "signpass",
timestamp: context.timestamp,
description: "Data Group of the "SignPass" NFT",
specs: "The first ever EthSign SignPass, holders can use EthSign without paying for gas on Polygon Matic.",
data: tokenProviderData0,
valueType: ValueType.Score,
tags: [Tags.Factory],
},
];
},
};

export default generator;

0 comments on commit de55e2a

Please sign in to comment.