Skip to content

Commit

Permalink
[factory]: Adding new urbe-eth-subdomain-holders group
Browse files Browse the repository at this point in the history
  • Loading branch information
sismobot committed Oct 8, 2023
1 parent fcf5733 commit ccbb31a
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 @@ -796,6 +796,7 @@ import uniswapContributors from "./uniswap-contributors";
import univ3rs from "./univ3rs";
import unstoppableDomains from "./unstoppable-domains"
import unumdao from "./unumdao";
import urbeEthSubdomainHolders from "./urbe-eth-subdomain-holders";
import usdStablecoinPerWallet from "./usd-stablecoin-per-wallet";
import usdTokenHolders from "./usd-token-holders";
import usdcEthLpers from "./usdc-eth-lpers";
Expand Down Expand Up @@ -1669,6 +1670,7 @@ export const groupGenerators: GroupGeneratorsLibrary = {
"uniswap-contributors": uniswapContributors,
"univ3rs": univ3rs,
"unumdao": unumdao,
"urbe-eth-subdomain-holders": urbeEthSubdomainHolders,
"usd-stablecoin-per-wallet": usdStablecoinPerWallet,
"usd-token-holders": usdTokenHolders,
"usdc-eth-lpers": usdcEthLpers,
Expand Down
38 changes: 38 additions & 0 deletions group-generators/generators/urbe-eth-subdomain-holders/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.Once,

generate: async (context: GenerationContext): Promise<GroupWithData[]> => {

const ensSubdomainProvider = new dataProviders.EnsSubdomainProvider();

const ensSubdomainProviderData0 = await ensSubdomainProvider.getEnsSubdomains({
domain: "urbe.eth"
});

return [
{
name: "urbe-eth-subdomain-holders",
timestamp: context.timestamp,
description: "Urbe.ETH subdomain holders",
specs: "Urbe.ETH subdomain holders",
data: ensSubdomainProviderData0,
valueType: ValueType.Score,
tags: [Tags.Factory],
},
];
},
};

export default generator;

0 comments on commit ccbb31a

Please sign in to comment.