-
Notifications
You must be signed in to change notification settings - Fork 147
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
Create useContractEvents hook #207
Comments
Yes, I think that would be a great idea! The main issue is that starknet.js provider doesn't support it because it defaults to the gateway provider. Until the ecosystem moves over to the json rpc provider I don't think it's possible to add this in a way that integrates with the rest of the library. To go more in detail, the default provider is replaced with the wallet's provider once the user connects (so network changes with the user's wallet), so we cannot rely on the json rpc at all. For your use case, you can manually instantiate a Keeping this issue open so in the future we can revisit this decision. |
Alchemy does have an events API and it seems fairly similar to TokenFlow? Could they be harmonized/supported? |
For this to happen we need wallets to switch to the rpc provider. Once that happens, we can implement this issue. |
This issue has been automatically marked as stale because it has not had activity in the six months. It will be closed in 2 weeks if no further activity occurs. Please feel free to leave a comment if you believe the issue is still relevant. |
Close in favour of #465 |
Hey, do you think it is a good idea to add Wagmi's
useContractEvent
hook ? https://wagmi.sh/react/hooks/useContractEventI'd live to use that for my project so I guess it could be the case for others as well !
As a junior dev I'm not sure how difficult it is to make the necessary changes to adapt this file useContractEvent but I'd love to give it a try !
The text was updated successfully, but these errors were encountered: