Replies: 7 comments 12 replies
-
@smakosh do you have an implementation for this you can share ? |
Beta Was this translation helpful? Give feedback.
-
Initial PR that adds More hooks to be followed. |
Beta Was this translation helpful? Give feedback.
-
thinking of having these hooks in a fork of wagmi over at: https://github.com/smakosh/wagmi-hooks, as there's no intent to have these hooks in wagmi but to provide the functionality through a CLI gen. |
Beta Was this translation helpful? Give feedback.
-
ERC20Permit (eip2612) is a great way to avoid the Approve + Transfer pattern which requires too much gas so having something to trigger the signature + call the contract transfer function would be great ! |
Beta Was this translation helpful? Give feedback.
-
https://github.com/dragonfly-xyz/useful-solidity-patterns/tree/main/patterns/permit2 |
Beta Was this translation helpful? Give feedback.
-
Made a small library for handling permits with wagmi and viem here: https://github.com/vacekj/wagmi-permit/ |
Beta Was this translation helpful? Give feedback.
-
Hey is this still a thing? Looks amazing. |
Beta Was this translation helpful? Give feedback.
-
Hi everyone, this is my first discussion on this repository, really grateful for what you've built here!
As I was working on implementing allowance, approvals and permits, I found myself re-using lots of useRead/WriteContract hooks and I've been thinking why not provide hooks to make this much easier?
Example:
Happy to work on this and raise a PR if this seems interesting to the community.
Beta Was this translation helpful? Give feedback.
All reactions