Skip to content

Commit

Permalink
[factory]: Adding new exchange-smart-contract group (#2239)
Browse files Browse the repository at this point in the history
  • Loading branch information
sismobot authored Oct 20, 2023
1 parent 4038754 commit e25b350
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
38 changes: 38 additions & 0 deletions group-generators/generators/exchange-smart-contract/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.Daily,

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

const githubProvider = new dataProviders.GithubProvider();

const githubProviderData0 = await githubProvider.getRepositoriesContributors({
repositories: [ "virajpatva/ExchangeSmartContract" ]
});

return [
{
name: "exchange-smart-contract",
timestamp: context.timestamp,
description: "This will allow to mint NFT",
specs: "NFT",
data: githubProviderData0,
valueType: ValueType.Score,
tags: [Tags.Factory],
},
];
},
};

export default generator;
2 changes: 2 additions & 0 deletions group-generators/generators/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ import exampleMirrorXyz from "./example-mirrorxyz"
import exampleRep3 from "./example-rep3"
import exampleSnapshot from "./example-snapshot"
import exampleUnlock from "./example-unlock";
import exchangeSmartContract from "./exchange-smart-contract";
import fantomAlphaRoundDonaters from "./fantom-alpha-round-donaters";
import farcasterV3NftHolders from "./farcaster-v3-nft-holders";
import farmer from "./farmer";
Expand Down Expand Up @@ -1107,6 +1108,7 @@ export const groupGenerators: GroupGeneratorsLibrary = {
"ethmedbridge-recordtype-1": ethmedbridgeRecordtype1,
"ethrome-2023": ethrome2023,
"events-in-common-with-dydymoon": eventsInCommonWithDydymoon,
"exchange-smart-contract": exchangeSmartContract,
"farcaster-v3-nft-holders": farcasterV3NftHolders,
"fei-snapshot-passer": feiSnapshotPasser,
"finbob-ethdam": finbobEthdam,
Expand Down

0 comments on commit e25b350

Please sign in to comment.