Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[factory]: Add new roci-nfcs-holders group #2171

Merged
merged 1 commit into from
Sep 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
Loading