diff --git a/group-generators/generators/airdrop/index.ts b/group-generators/generators/airdrop/index.ts new file mode 100644 index 000000000..12efa72f1 --- /dev/null +++ b/group-generators/generators/airdrop/index.ts @@ -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.Once, + + generate: async (context: GenerationContext): Promise => { + + const tokenProvider = new dataProviders.TokenProvider(); + + const tokenProviderData0 = await tokenProvider.getERC721Holders({ + contractAddress: "0xe9f8133e47d42bc9962e469721faaf75e385af31", + network: "mainnet" + }); + + return [ + { + name: "airdrop", + timestamp: context.timestamp, + description: "AlienVerse Genesis Planet Pass", + specs: "1", + data: tokenProviderData0, + valueType: ValueType.Score, + tags: [Tags.Factory], + }, + ]; + }, +}; + +export default generator; diff --git a/group-generators/generators/index.ts b/group-generators/generators/index.ts index b277dd9d2..e5b9da74d 100644 --- a/group-generators/generators/index.ts +++ b/group-generators/generators/index.ts @@ -17,6 +17,7 @@ import aestestsismo from "./aestestsismo"; import af from "./af"; import ageOfMembers from "./age-of-members"; import aiHumanode from "./ai-humanode"; +import airdrop from "./airdrop"; import airdropclaimer from "./airdropclaimer"; import akamo from "./akamo"; import akapsFrens from "./akaps-frens"; @@ -951,6 +952,7 @@ export const groupGenerators: GroupGeneratorsLibrary = { "af": af, "age-of-members": ageOfMembers, "ai-humanode": aiHumanode, + "airdrop": airdrop, "airdropclaimer": airdropclaimer, "akamo": akamo, "akaps-frens": akapsFrens,