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

Recipes #25

Open
carletex opened this issue Oct 11, 2023 · 1 comment · Fixed by #48
Open

Recipes #25

carletex opened this issue Oct 11, 2023 · 1 comment · Fixed by #48
Assignees

Comments

@carletex
Copy link
Member

Opening this issue so we can throw some ideas for a new "Recipes" section.

Recipes = code snippets that people can copy/paste and work out of the box. Let's think about the top things that we do all the time, and then we can add more complex ones.

Some ideas:

  • Get the current balance of the connected account
  • Read a uint from a contract and display it in a nice way (maybe with & without params)
  • Write to a contract with & without a param (setGreeting?) + button that onclick executes writeAsync
  • Imperatively writing to a contract (passing args to writeAsync)
  • Events...

We can start creating the section and adding some of these.

@technophile-04
Copy link
Collaborator

  • maybe an example of how to use useTransactor with wagmi's useContractWrite so that it shows nice transaction toast's to end user

or maybe we could add useTransactor in hooks section and explain it there, here is the gist which I just shared in TG support chat : https://gist.github.com/technophile-04/397983065d03d946383ef6cb63628bbf


We can start creating the section and adding some of these.

💯💯

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 a pull request may close this issue.

3 participants