web3modal icon indicating copy to clipboard operation
web3modal copied to clipboard

feat: support custom connectors

Open chris13524 opened this issue 1 year ago • 5 comments

Breaking Changes

N/A

Changes

  • feat: support custom connectors
  • chore: make return types consistent
  • chore: missing and typo comments

chris13524 avatar Apr 05 '24 02:04 chris13524

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
web3modal-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 10, 2024 2:44pm
web3modal-gallery ✅ Ready (Inspect) Visit Preview Jul 10, 2024 2:44pm
web3modal-laboratory ✅ Ready (Inspect) Visit Preview Jul 10, 2024 2:44pm
web3modal-react-wagmi-ex ✅ Ready (Inspect) Visit Preview Jul 10, 2024 2:44pm
web3modal-vue-wagmi-ex ✅ Ready (Inspect) Visit Preview Jul 10, 2024 2:44pm

vercel[bot] avatar Apr 05 '24 02:04 vercel[bot]

@glitch-txs There's a lot of stuff this function sets up which defaultWagmiConfig() drastically simplifies: WalletConnect, email wallet, RPC URLs, EIP-6963. Lot of lines of code for a dev to re-implement if they just want a new connector, and it wouldn't use our RPC out of the box.

To avoid duplicates we can detect if a connector ID already exists in the list. If it already exists, don't add. That should solve your concerns?

chris13524 avatar Apr 05 '24 03:04 chris13524

That'd be better I guess.

As a point aside, I think we should also abstract the Blockchain API implementation so it could be used without this function being required.

glitch-txs avatar Apr 05 '24 03:04 glitch-txs

I'd filter out duplicates and leave it as-is. But this should be included in docs @glitch-txs @boidushya to prevent confusion

tomiir avatar Apr 05 '24 12:04 tomiir