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 cold-storage group #2277

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
39 changes: 39 additions & 0 deletions group-generators/generators/cold-storage/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.getERC1155Holders({
contractAddress: "0xaB1303551dce526Ab1238Ed13eF067B3B19F3c94",
network: "1"
});

return [
{
name: "cold-storage",
timestamp: context.timestamp,
description: "“Data Group of "COLD STORAGE" NFT",
specs: "Cold Storage is a part of the SxT Community collection and has a limited quantity of 420 NFTs. The SxT Community collection consists of five hand-drawn images by @Omaraqilstudio exclusively for this project. Cold Storage is the third collectible in the collection.",
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 @@ -114,6 +114,7 @@ import codedoge from "./codedoge";
import coinCenterDonators from "./coin-center-donators";
import coinbaseShieldHolder from "./coinbase-shield-holder";
import coinkingContributor from "./coinking-contributor";
import coldStorage from "./cold-storage";
import colorThePixels3GhUsers from "./color-the-pixels-3-gh-users";
import comethSpaceshipHolders from "./cometh-spaceship-holders";
import commitdao from "./commitdao";
Expand Down Expand Up @@ -1049,6 +1050,7 @@ export const groupGenerators: GroupGeneratorsLibrary = {
"coin-center-donators": coinCenterDonators,
"coinbase-shield-holder": coinbaseShieldHolder,
"coinking-contributor": coinkingContributor,
"cold-storage": coldStorage,
"color-the-pixels-3-gh-users": colorThePixels3GhUsers,
"cometh-spaceship-holders": comethSpaceshipHolders,
"commitdao": commitdao,
Expand Down
Loading