Skip to content

Commit

Permalink
[factory]: Adding new roci-nfcs-on-base group
Browse files Browse the repository at this point in the history
  • Loading branch information
sismobot committed Sep 7, 2023
1 parent f852e79 commit 2a7b59c
Show file tree
Hide file tree
Showing 2 changed files with 41 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 @@ -591,6 +591,7 @@ import roadtolife from "./roadtolife";
import roadtolife2 from "./roadtolife2";
import roboplex from "./roboplex";
import rociNfcsHolders from "./roci-nfcs-holders";
import rociNfcsOnBase from "./roci-nfcs-on-base";
import rocifiCreditScoreAddresses from "./rocifi-credit-score-addresses";
import rocketeersNftHolder from "./rocketeers-nft-holder";
import rocketlab from "./rocketlab";
Expand Down Expand Up @@ -1444,6 +1445,7 @@ export const groupGenerators: GroupGeneratorsLibrary = {
"roadtolife2": roadtolife2,
"roboplex": roboplex,
"roci-nfcs-holders": rociNfcsHolders,
"roci-nfcs-on-base": rociNfcsOnBase,
"rocifi-credit-score-addresses": rocifiCreditScoreAddresses,
"rocketeers-nft-holder": rocketeersNftHolder,
"rocketlab": rocketlab,
Expand Down
39 changes: 39 additions & 0 deletions group-generators/generators/roci-nfcs-on-base/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@

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 ankrProvider = new dataProviders.AnkrProvider();

const ankrProviderData0 = await ankrProvider.getNftHolders({
address: "0x5CaceDF7850CCD6aa4FB133268e8531588aFE603",
network: "base"
});

return [
{
name: "roci-nfcs-on-base",
timestamp: context.timestamp,
description: "Roci NFCS Holders on Base",
specs: "Data Group of NFCS holders on Base (https://roci.fi/nfcs)",
data: ankrProviderData0,
valueType: ValueType.Score,
tags: [Tags.Factory],
},
];
},
};

export default generator;

0 comments on commit 2a7b59c

Please sign in to comment.