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

Init wagmi and connect wallet functionality #17

Merged
merged 4 commits into from
Nov 7, 2024
Merged

Commits on Nov 7, 2024

  1. add wagmi and tanstack

    rccsousa committed Nov 7, 2024
    Configuration menu
    Copy the full SHA
    68748fd View commit details
    Browse the repository at this point in the history
  2. init wagmi and wallet connection

    ## Why
    Wordle3 didn't have the proper wallet connection logic to enable players
    to connect and interact with the game.
    ## How
    By adding Wagmi and TanStack Query to enable wallet interaction wrapping
    App.jsx on the respective providers. Also creates a custom ConnectWallet
    component that passes on the respective address for smart contract
    interaction. Style to be added later.
    
    Also adds new publicclients for future usage.
    rccsousa committed Nov 7, 2024
    Configuration menu
    Copy the full SHA
    aac2499 View commit details
    Browse the repository at this point in the history
  3. linting

    rccsousa committed Nov 7, 2024
    Configuration menu
    Copy the full SHA
    059c8ab View commit details
    Browse the repository at this point in the history
  4. Refactor Wordle hooks (#18)

    ## Why
    Wordle3 hooks were using a local account strucutre that had to
    destructure the account into `account.address` in order to separate
    address and private key which is not what will happen in production.
    ## How
    By refactoring the hooks' argument to stop destructuring the account as
    `WagmiProvider` passes the correct data structure to work as intended.
    rccsousa authored Nov 7, 2024
    Configuration menu
    Copy the full SHA
    751f332 View commit details
    Browse the repository at this point in the history