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

Add SAFE_CREATED as a no-action event #1502

Merged
merged 1 commit into from
May 6, 2024

Conversation

hectorgomezv
Copy link
Member

@hectorgomezv hectorgomezv commented May 3, 2024

Summary

Before this PR, and after the migration to the queue-based events reception, SAFE_CREATED events were being validated against WebHookSchema, and this validation was generating errors. This PR adds the SAFE_CREATED event to the events known by the CGW but does not associate any action (cache invalidation, etc.) to the reception of this event.

Changes

  • Adds SAFE_CREATED event (without any associated action).

@hectorgomezv hectorgomezv self-assigned this May 3, 2024
Comment on lines 1 to 16
export const enum EventType {
CHAIN_UPDATE = 'CHAIN_UPDATE',
NEW_CONFIRMATION = 'NEW_CONFIRMATION',
DELETED_MULTISIG_TRANSACTION = 'DELETED_MULTISIG_TRANSACTION',
EXECUTED_MULTISIG_TRANSACTION = 'EXECUTED_MULTISIG_TRANSACTION',
PENDING_MULTISIG_TRANSACTION = 'PENDING_MULTISIG_TRANSACTION',
INCOMING_TOKEN = 'INCOMING_TOKEN',
INCOMING_ETHER = 'INCOMING_ETHER',
INCOMING_TOKEN = 'INCOMING_TOKEN',
MESSAGE_CONFIRMATION = 'MESSAGE_CONFIRMATION',
MESSAGE_CREATED = 'MESSAGE_CREATED',
MODULE_TRANSACTION = 'MODULE_TRANSACTION',
OUTGOING_TOKEN = 'OUTGOING_TOKEN',
NEW_CONFIRMATION = 'NEW_CONFIRMATION',
OUTGOING_ETHER = 'OUTGOING_ETHER',
MESSAGE_CREATED = 'MESSAGE_CREATED',
MESSAGE_CONFIRMATION = 'MESSAGE_CONFIRMATION',
OUTGOING_TOKEN = 'OUTGOING_TOKEN',
PENDING_MULTISIG_TRANSACTION = 'PENDING_MULTISIG_TRANSACTION',
SAFE_APPS_UPDATE = 'SAFE_APPS_UPDATE',
DELETED_MULTISIG_TRANSACTION = 'DELETED_MULTISIG_TRANSACTION',
SAFE_CREATED = 'SAFE_CREATED',
}
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm just sorting the keys in alphabetical order here, besides adding SAFE_CREATED.

@hectorgomezv hectorgomezv marked this pull request as ready for review May 3, 2024 09:51
@hectorgomezv hectorgomezv requested a review from a team as a code owner May 3, 2024 09:51
@coveralls
Copy link

Pull Request Test Coverage Report for Build 8937173593

Details

  • 8 of 8 (100.0%) changed or added relevant lines in 4 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.007%) to 92.236%

Totals Coverage Status
Change from base Build 8923924899: 0.007%
Covered Lines: 6911
Relevant Lines: 7226

💛 - Coveralls

@hectorgomezv hectorgomezv merged commit 9057ef2 into main May 6, 2024
16 checks passed
@hectorgomezv hectorgomezv deleted the add-safe-created-event-type branch May 6, 2024 09:17
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.

None yet

3 participants