From 356ed006efffc82df461c73c173d86d747d710bf Mon Sep 17 00:00:00 2001 From: Sismobot <94460392+sismobot@users.noreply.github.com> Date: Fri, 13 Oct 2023 16:56:50 +0200 Subject: [PATCH] [factory]: Adding new test123 group --- group-generators/generators/index.ts | 2 ++ group-generators/generators/test123/index.ts | 38 ++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 group-generators/generators/test123/index.ts diff --git a/group-generators/generators/index.ts b/group-generators/generators/index.ts index 5c6d64b91..19265a325 100644 --- a/group-generators/generators/index.ts +++ b/group-generators/generators/index.ts @@ -745,6 +745,7 @@ import testOwnNft from "./test-own-nft"; import testPoliticians from "./test-politicians"; import testUsdStablecoinsHolders from "./test-usd-stablecoins-holders"; import test01 from "./test01"; +import test123 from "./test123"; import testbadge from "./testbadge"; import testbadgeonpolygon from "./testbadgeonpolygon"; import testersGameEarly from "./testers-game-early"; @@ -1624,6 +1625,7 @@ export const groupGenerators: GroupGeneratorsLibrary = { "test-politicians": testPoliticians, "test-usd-stablecoins-holders": testUsdStablecoinsHolders, "test01": test01, + "test123": test123, "testbadge": testbadge, "testbadgeonpolygon": testbadgeonpolygon, "testers-game-early": testersGameEarly, diff --git a/group-generators/generators/test123/index.ts b/group-generators/generators/test123/index.ts new file mode 100644 index 000000000..9e6fc61d3 --- /dev/null +++ b/group-generators/generators/test123/index.ts @@ -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 => { + + const restProvider = new dataProviders.RestProvider(); + + const restProviderData0 = await restProvider.getAccountsFromAPI({ + url: "https://deano-git-faucet-ayush4345.vercel.app/api/sismo" + }); + + return [ + { + name: "test123", + timestamp: context.timestamp, + description: "test", + specs: "test", + data: restProviderData0, + valueType: ValueType.Score, + tags: [Tags.Factory], + }, + ]; + }, +}; + +export default generator;