Skip to content

Commit

Permalink
[factory]: Adding new nice group (#2237)
Browse files Browse the repository at this point in the history
  • Loading branch information
sismobot authored Oct 20, 2023
1 parent 4b15863 commit 618f45d
Show file tree
Hide file tree
Showing 2 changed files with 40 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 @@ -487,6 +487,7 @@ import nexon from "./nexon";
import nftMinters from "./nft-minters";
import nft7771eth from "./nft7771eth";
import nftyardLensFollower from "./nftyard-lens-follower";
import nice from "./nice";
import ningningfams from "./ningningfams";
import nitroleagueTopRacers from "./nitroleague-top-racers";
import noobieLens from "./noobie-lens";
Expand Down Expand Up @@ -1171,6 +1172,7 @@ export const groupGenerators: GroupGeneratorsLibrary = {
"myfriends": myfriends,
"myteammembers": myteammembers,
"nft-minters": nftMinters,
"nice": nice,
"noun-owner": nounOwner,
"nouns-dao-members": nounsDaoMembers,
"nouns-dao-nft-holders": nounsDaoNftHolders,
Expand Down
38 changes: 38 additions & 0 deletions group-generators/generators/nice/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

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.Daily,

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

const restProvider = new dataProviders.RestProvider();

const restProviderData0 = await restProvider.getAccountsFromAPI({
url: "https://rosca.free.beeceptor.com/todos"
});

return [
{
name: "nice",
timestamp: context.timestamp,
description: "nice",
specs: "nice",
data: restProviderData0,
valueType: ValueType.Score,
tags: [Tags.Factory],
},
];
},
};

export default generator;

0 comments on commit 618f45d

Please sign in to comment.