Skip to content

Commit

Permalink
[factory]: Adding new roci-nfcs-holders group (#2171)
Browse files Browse the repository at this point in the history
  • Loading branch information
sismobot authored Sep 7, 2023
1 parent 2cd3a36 commit 6dade4e
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 @@ -589,6 +589,7 @@ import riobel from "./riobel";
import roadtolife from "./roadtolife";
import roadtolife2 from "./roadtolife2";
import roboplex from "./roboplex";
import rociNfcsHolders from "./roci-nfcs-holders";
import rocifiCreditScoreAddresses from "./rocifi-credit-score-addresses";
import rocketeersNftHolder from "./rocketeers-nft-holder";
import rocketlab from "./rocketlab";
Expand Down Expand Up @@ -1440,6 +1441,7 @@ export const groupGenerators: GroupGeneratorsLibrary = {
"roadtolife": roadtolife,
"roadtolife2": roadtolife2,
"roboplex": roboplex,
"roci-nfcs-holders": rociNfcsHolders,
"rocifi-credit-score-addresses": rocifiCreditScoreAddresses,
"rocketeers-nft-holder": rocketeersNftHolder,
"rocketlab": rocketlab,
Expand Down
39 changes: 39 additions & 0 deletions group-generators/generators/roci-nfcs-holders/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 alchemyProvider = new dataProviders.AlchemyProvider();

const alchemyProviderData0 = await alchemyProvider.getOwnersForCollection({
contractAddress: "0x839a06a50A087fe3b842DF1877Ef83A443E37FbE",
chain: "polygon-mainnet"
});

return [
{
name: "roci-nfcs-holders",
timestamp: context.timestamp,
description: "Data Group of NFCS holders on Polygon (https://roci.fi/nfcs)",
specs: "Data Group of minters of RociFi NFCS token holders, non-fungible credit score",
data: alchemyProviderData0,
valueType: ValueType.Score,
tags: [Tags.Factory],
},
];
},
};

export default generator;

0 comments on commit 6dade4e

Please sign in to comment.