Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: direct grants simple event handlers #35

Merged
merged 3 commits into from
Nov 20, 2024

Conversation

0xnigir1
Copy link
Collaborator

@0xnigir1 0xnigir1 commented Nov 18, 2024

🤖 Linear

Closes GIT-161 GIT-163

Description

  • add DirectGrantsSimpleStrategy handler and events handlers:
    • Registered
    • TimestampsUpdated
    • Distributed

Checklist before requesting a review

  • I have conducted a self-review of my code.
  • I have conducted a QA.
  • If it is a core feature, I have included comprehensive tests.

Copy link

linear bot commented Nov 18, 2024

0xkenj1
0xkenj1 previously approved these changes Nov 20, 2024
* - Links the application to both the project and round
*/

export class DGSimpleRegisteredHandler
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
export class DGSimpleRegisteredHandler
export class DirectGrantsSimpleRegisteredHandler

may we use complete names for strategies ? or at least use the same for strategy and event handlers :)

Look here packages/processors/src/processors/strategy/directGrantsSimple/directGrantsSimple.handler.ts

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

9d6a824

i renamed to DGSimple to follow the convention on the other strategies

jahabeebs
jahabeebs previously approved these changes Nov 20, 2024
Copy link
Collaborator

@jahabeebs jahabeebs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small code cleanup comment but looks good 👍🏻

import { createMockEvent } from "../../../mocks/index.js";

// function createMockEvent(
// overrides: DeepPartial<ProcessorEvent<"Strategy", "RegisteredWithSender">> = {},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

commented code

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@0xnigir1 0xnigir1 dismissed stale reviews from jahabeebs and 0xkenj1 via 9d6a824 November 20, 2024 18:47
@0xnigir1 0xnigir1 merged commit 5d2d01b into dev Nov 20, 2024
6 checks passed
@0xnigir1 0xnigir1 deleted the feat/direct-grants-simple-strategy branch November 20, 2024 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants