-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
MarkuSchick
committed
Mar 18, 2023
1 parent
61f7d4c
commit b3ba22f
Showing
3 changed files
with
32 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters