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: minting-backend, webhook utility #1732

Merged
merged 40 commits into from
May 13, 2024
Merged

feat: minting-backend, webhook utility #1732

merged 40 commits into from
May 13, 2024

Conversation

shineli1984
Copy link
Collaborator

@shineli1984 shineli1984 commented May 3, 2024

Hi👋, please prefix this PR's title with:

  • feat:, fix:, refactor:, docs:, or chore:.

Summary

  • Include most the code partner needs to write for webhook handling under sdk/webhook package.
  • write most the code partner needs to write for async minting + webhook handler under blockchain-data/sdk/src/minting
  • a sample backend with postgres as default database for demonstrate above is coming

For reviewers

  • blockchain-data/src/minting for assets team
  • support of optional dependencies for sdk team

@shineli1984 shineli1984 changed the title minting-backend feat: minting-backend, webhook utility May 7, 2024
@@ -0,0 +1,3 @@
# Webhook

This package consists of utility to work with [Immutable webhooks](https://docs.immutable.com/docs/zkEVM/products/blockchain-data/webhooks)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

TODO in separate PR: adding more readme.

@shineli1984 shineli1984 marked this pull request as ready for review May 10, 2024 03:34
@shineli1984 shineli1984 requested review from a team as code owners May 10, 2024 03:34
alexi21
alexi21 previously approved these changes May 10, 2024
carleeto
carleeto previously approved these changes May 10, 2024
brayansdt
brayansdt previously approved these changes May 10, 2024
});

// check for topic arn prefix
if (!msg.TopicArn.startsWith(allowedTopicArnPrefix[env])) {

Choose a reason for hiding this comment

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

is there a way to check this first before confirming subscription? Otherwise the partner may confirm a subscription from a malicious actor

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

aha... right right.

@shineli1984 shineli1984 dismissed stale reviews from brayansdt, carleeto, and alexi21 via af899f6 May 10, 2024 05:00
valzam
valzam previously approved these changes May 10, 2024
Copy link
Contributor

@valzam valzam left a comment

Choose a reason for hiding this comment

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

approving changes to /blockchain-data, no review of /minting-backend

@shineli1984 shineli1984 added this pull request to the merge queue May 13, 2024
Merged via the queue into main with commit 01da6af May 13, 2024
11 checks passed
@shineli1984 shineli1984 deleted the minting-backend branch May 13, 2024 03:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants