public-assembly / zora-drops-utils

React hooks and query utils for Zora editions contracts
MIT License
4 stars 2 forks source link

[WIP]: Mint writeFunction wired up within provider #36

Closed dblodorn closed 2 years ago

dblodorn commented 2 years ago

Also have implemented in the sample react app.

Screen Shot 2022-09-29 at 1 01 29 PM
dblodorn commented 2 years ago

Adding more data, and added guards for initial max per address. Now need to retrieve how much an address already owns for a second check if minting again. Also need to add processing state, and tx hash.

Screen Shot 2022-09-29 at 3 34 46 PM
dblodorn commented 2 years ago

WIP Demo: https://www.loom.com/share/ea6084b5d0da4cef85ba0e4f1d8ea7ac

dblodorn commented 2 years ago

Return balanceOf for connected address so we can adjust UI accordingly: (currently doing a contract read with wagmi for this)

balance: {
    walletLimit: false,
    walletBalance: undefined,
 },
Screen Shot 2022-09-29 at 5 53 54 PM