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

Introducing PolygonTokenHook: An Asynchronous Hook for Verifying Polygon Token Ownership #217

Closed
wants to merge 1 commit into from

Conversation

kingster-will
Copy link
Contributor

This PR introduces a new asynchronous hook named PolygonTokenHook. This hook is used to verify a user owning specific Polygon tokens.

Changes

  • A new contract PolygonTokenHook is added which extends from AsyncBaseHook. This contract is initialized with the address of the access control contract and the address of the callback caller contract during deployment. The callback caller address is immutable and cannot be changed after deployment.
  • The contract emits a PolygonTokenBalanceRequest event which includes the request ID, requester address, token address, token owner address, callback address, and callback function signature.
  • The PolygonToken library is introduced, which defines the Config and Params structs used in the PolygonTokenHook.

@kingster-will kingster-will deleted the twitter-hook branch December 7, 2023 09:16
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.

1 participant