Skip to content

Update the dependency on DH Connect in the TXBuilder Library #518

@skuhlmann

Description

@skuhlmann

App

Feature Type

  • New Feature
  • Enhancement

Feature

The TxBuilder library currently takes a viem provider/public client as a prop. This provider is currently only able to be the provider used in DH connect. We want to be able to use any wagmi/viem provider.

Needs to be evaluated more, but might just be a type issue
https://github.com/HausDAO/monorepo/blob/develop/libs/tx-builder/src/TXBuilder.tsx#L3C10-L3C22

  • What other client types are there and can we update to accept those?

Deliverables

  1. Update TxBuilder package so it can use any provider from wagmi/viem and be used in an app that doesn't have DH connect.
  • test with wallet connect/web3modal, rainbow kit, connectkit
  1. Ensure this is backward compatible with DH connect and still works in the summon and admin apps
  • transaction still process?
  1. Create a branch on this repo with an example of another wallet connection implementation
    https://github.com/HausDAO/dao-app-starter-vite
  • wallet connect/web3modal, rainbow kit or connectkit
  1. Submit a PR for testing and we'll work together on a deployment and new release.

Resources

library code
https://github.com/HausDAO/monorepo/tree/develop/libs/tx-builder

provider prop
https://github.com/HausDAO/monorepo/blob/develop/libs/tx-builder/src/TXBuilder.tsx#L83

starter repo to fork and try with other wallet implementations
https://github.com/HausDAO/dao-app-starter-vite
https://github.com/HausDAO/dao-app-starter-vite/blob/main/src/components/layout/DaoContainer.tsx#L94

Screenshots and Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions