-
Notifications
You must be signed in to change notification settings - Fork 16
Description
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
- 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
- Ensure this is backward compatible with DH connect and still works in the summon and admin apps
- transaction still process?
- 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
- 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