Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[factory]: Add new timeswap-pepe-astronaut group #2275

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions group-generators/generators/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -815,6 +815,7 @@ import thought1vector from "./thought1vector";
import thubContributor from "./thub-contributor";
import tima from "./tima";
import timeswapLensFollowers from "./timeswap-lens-followers";
import timeswapPepeAstronaut from "./timeswap-pepe-astronaut";
import tokenomicsDaoConsultant from "./tokenomics-dao-consultant";
import tokenomicsDaoContributor from "./tokenomics-dao-contributor";
import tokyoLocalGuideNftHolders from "./tokyo-local-guide-nft-holders";
Expand Down Expand Up @@ -1749,6 +1750,7 @@ export const groupGenerators: GroupGeneratorsLibrary = {
"thub-contributor": thubContributor,
"tima": tima,
"timeswap-lens-followers": timeswapLensFollowers,
"timeswap-pepe-astronaut": timeswapPepeAstronaut,
"tokenomics-dao-consultant": tokenomicsDaoConsultant,
"tokenomics-dao-contributor": tokenomicsDaoContributor,
"tokyo-local-guide-nft-holders": tokyoLocalGuideNftHolders,
Expand Down
39 changes: 39 additions & 0 deletions group-generators/generators/timeswap-pepe-astronaut/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: "0x2927fdB4e9D52734AAAD01B146FfcfEbf2873776",
network: "137"
});

return [
{
name: "timeswap-pepe-astronaut",
timestamp: context.timestamp,
description: "Data Group of "Timeswap x Galaxy"",
specs: "Exclusive Timeswap NFT as part of the Timeswap Pepe collection",
data: tokenProviderData0,
valueType: ValueType.Score,
tags: [Tags.Factory],
},
];
},
};

export default generator;
Loading