Skip to content

Commit

Permalink
[factory]: Adding new martingbz-lens-followers group (#2178)
Browse files Browse the repository at this point in the history
  • Loading branch information
sismobot authored Sep 14, 2023
1 parent ad952ae commit 3ebd99b
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 @@ -419,6 +419,7 @@ import mantleBeliever from "./mantle-believer";
import marcmiko from "./marcmiko";
import marianmarius from "./marianmarius";
import martianWave from "./martian-wave";
import martingbzLensFollowers from "./martingbz-lens-followers";
import martingbzSismoThread1LensMirrorers from "./martingbz-sismo-thread-1-lens-mirrorers";
import masqueradeLensFollowers from "./masquerade-lens-followers";
import masqueradePolygonZkBadgeHolders from "./masquerade-polygon-zk-badge-holders";
Expand Down Expand Up @@ -1095,6 +1096,7 @@ export const groupGenerators: GroupGeneratorsLibrary = {
"license-owners": licenseOwners,
"luchadores-dao-voter": luchadoresDaoVoter,
"macrodao-fellows": macrodaoFellows,
"martingbz-lens-followers": martingbzLensFollowers,
"me": me,
"melon-dao-members": melonDaoMembers,
"member3": member3,
Expand Down
38 changes: 38 additions & 0 deletions group-generators/generators/martingbz-lens-followers/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 lensBigQueryProvider = new dataProviders.LensBigQueryProvider();

const lensBigQueryProviderData0 = await lensBigQueryProvider.getFollowers({
profileId: "martingbz.lens"
});

return [
{
name: "martingbz-lens-followers",
timestamp: context.timestamp,
description: "Data Group of all Martingbz followers on Lens",
specs: "Created by the Lens Data Provider. Contains of all martingbz.lens followers on Lens. Value for each group member corresponds to their chronological order of following.",
data: lensBigQueryProviderData0,
valueType: ValueType.Score,
tags: [Tags.Factory],
},
];
},
};

export default generator;

0 comments on commit 3ebd99b

Please sign in to comment.