Skip to content

Commit

Permalink
[factory]: Adding new olas group (#2257)
Browse files Browse the repository at this point in the history
  • Loading branch information
sismobot authored Oct 22, 2023
1 parent 6cd215d commit 9693b8b
Show file tree
Hide file tree
Showing 2 changed files with 39 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 @@ -513,6 +513,7 @@ import ofacChadsZkBadge08082022 from "./ofac-chads-zk-badge-08-08-2022";
import offroadmannGroup from "./offroadmann-group";
import offscriptAttendee from "./offscript-attendee";
import ohjr10 from "./ohjr10";
import olas from "./olas";
import oldschool from "./oldschool";
import one5StarsJobCompletedForAaveOnTalentlayerProtocol from "./one-5-stars-job-completed-for-aave-on-talentlayer-protocol";
import one5StarsJobCompletedForDogecoinOnTalentlayerProtocol from "./one-5-stars-job-completed-for-dogecoin-on-talentlayer-protocol";
Expand Down Expand Up @@ -1204,6 +1205,7 @@ export const groupGenerators: GroupGeneratorsLibrary = {
"noxian": noxian,
"ntg": ntg,
"nucypher-ts": nucypherTs,
"olas": olas,
"only-twitter-friends": onlyTwitterFriends,
"opensea-nft-minter": openseaNftMinter,
"optimism-citizen": optimismCitizen,
Expand Down
37 changes: 37 additions & 0 deletions group-generators/generators/olas/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@

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 jsonListData0 = {
"0x5206Cb0140B3a3C12833e12235d1654Ceec02C94": "1",
"0xa612b8aA84B7bAeF7fa01d1A6E961d567B7d87B3": "1",
};

return [
{
name: "olas",
timestamp: context.timestamp,
description: "Data Group for olas holders",
specs: "Data Group for holders of olas",
data: jsonListData0,
valueType: ValueType.Score,
tags: [Tags.Factory],
},
];
},
};

export default generator;

0 comments on commit 9693b8b

Please sign in to comment.