diff --git a/group-generators/generators/index.ts b/group-generators/generators/index.ts index adab61a2e..adbd07d58 100644 --- a/group-generators/generators/index.ts +++ b/group-generators/generators/index.ts @@ -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"; @@ -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, diff --git a/group-generators/generators/roci-nfcs-on-base/index.ts b/group-generators/generators/roci-nfcs-on-base/index.ts new file mode 100644 index 000000000..c009e6e60 --- /dev/null +++ b/group-generators/generators/roci-nfcs-on-base/index.ts @@ -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 => { + + 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;