Skip to content

Commit

Permalink
[factory]: Adding new airdrop group (#2272)
Browse files Browse the repository at this point in the history
  • Loading branch information
sismobot authored Nov 18, 2023
1 parent 52243a3 commit 63385d6
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
39 changes: 39 additions & 0 deletions group-generators/generators/airdrop/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.Once,

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

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;
2 changes: 2 additions & 0 deletions group-generators/generators/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 63385d6

Please sign in to comment.