Skip to content

Commit

Permalink
fix some test
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkuSchick committed Mar 18, 2023
1 parent 61f7d4c commit b3ba22f
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
2 changes: 1 addition & 1 deletion group-generators/generators/degenscore-over-900/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const generator: GroupGenerator = {

generate: async (context: GenerationContext): Promise<GroupWithData[]> => {
const degenscoreProvider = new dataProviders.DegenScoreProvider();
const addresses = await degenscoreProvider.getBeaconOwnersWithScore(900);
const addresses = await degenscoreProvider.getBeaconOwnersWithScore({_score: 900});
return [
{
name: "degens-score-over-900",
Expand Down
29 changes: 29 additions & 0 deletions group-generators/generators/gitpoap/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import { dataProviders } from "@group-generators/helpers/data-providers";
import { GroupWithData, Tags, ValueType } from "topics/group";
import {
GenerationContext,
GenerationFrequency,
GroupGenerator,
} from "topics/group-generator";

const generator: GroupGenerator = {
generationFrequency: GenerationFrequency.Weekly,

generate: async (context: GenerationContext): Promise<GroupWithData[]> => {
const degenscoreProvider = new dataProviders.GitPoapProvider();
const addresses = await degenscoreProvider.getGitPoapHoldersByEventId({gitPoapEventId: "37428"});
return [
{
name: "poap-holder-of-37428",
description: "Get all POAP holder of the event id 37428",
specs: "",
timestamp: context.timestamp,
data: addresses,
valueType: ValueType.Info,
tags: [Tags.User],
},
];
},
};

export default generator;
4 changes: 2 additions & 2 deletions group-generators/helpers/data-providers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ export const dataProvidersInterfacesSchemas = [

export const dataProvidersAPIEndpoints = {
DegenScoreProvider: {
getBeaconOwnersWithScoreCount: async ({ score }: { score: number }) =>
new DegenScoreProvider().getBeaconOwnersWithScoreCount(score),
getBeaconOwnersWithScoreCount: async (_: any) =>
new DegenScoreProvider().getBeaconOwnersWithScoreCount(_),
},
GithubProvider: {
getRepositoriesContributorsCount: async (_: any) =>
Expand Down

0 comments on commit b3ba22f

Please sign in to comment.