Skip to content

Commit

Permalink
[factory]: Adding new just-testing-safe group (#2203)
Browse files Browse the repository at this point in the history
  • Loading branch information
sismobot authored Oct 8, 2023
1 parent f9911a6 commit 1ee960d
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 @@ -347,6 +347,7 @@ import jiangxiansen from "./jiangxiansen";
import jirayaOgBadge from "./jiraya-og-badge";
import justALittleTest from "./just-a-little-test";
import justDemo from "./just-demo";
import justTestingSafe from "./just-testing-safe";
import justme from "./justme";
import justsometest from "./justsometest";
import kanipanFriends from "./kanipan-friends";
Expand Down Expand Up @@ -1106,6 +1107,7 @@ export const groupGenerators: GroupGeneratorsLibrary = {
"is-payment-channel-recepient": isPaymentChannelRecepient,
"iykyk": iykyk,
"just-demo": justDemo,
"just-testing-safe": justTestingSafe,
"ktst": ktst,
"kunal-data-group": kunalDataGroup,
"kunal-gits": kunalGits,
Expand Down
38 changes: 38 additions & 0 deletions group-generators/generators/just-testing-safe/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.Once,

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

const safeProvider = new dataProviders.SafeProvider();

const safeProviderData0 = await safeProvider.getSafeOwners({
safeAddress: "0xAa17006f6cCe0b365dB6Ea43D55708A297cd0685"
});

return [
{
name: "just-testing-safe",
timestamp: context.timestamp,
description: "Data group of Safe testers",
specs: "Data group of Safe testers, only 1 for each value",
data: safeProviderData0,
valueType: ValueType.Score,
tags: [Tags.Factory],
},
];
},
};

export default generator;

0 comments on commit 1ee960d

Please sign in to comment.