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

[v3] beta.5 #1352

Merged
merged 22 commits into from
Sep 25, 2023
Merged

[v3] beta.5 #1352

merged 22 commits into from
Sep 25, 2023

Conversation

xzilja
Copy link
Contributor

@xzilja xzilja commented Sep 22, 2023

Breaking Changes

  • defaultWagmiConfig no longer takes in "appName" as an option, instead you can provide "metadata" like this:
export const wagmiConfig = defaultWagmiConfig({
  // ..
  metadata: {
    name: 'Web3Modal',
    description: 'Web3Modal Example',
    url: 'https://web3modal.com',
    icons: ['https://avatars.githubusercontent.com/u/37784886']
  }
})

Changes

  • chore: Update dependencies
  • fix: Add correct default export order in @web3modal/wagmi package
  • chore: Round down total wallet count badge to nearest 10's
  • fix: Add optionalDependencies for older yarn versions
  • fix: Hide block explorer button when switching to a chain with undefined block explorer url

Experimental

Experimental support added for https://eips.ethereum.org/EIPS/eip-6963 standard, you can add Web3Modal's special connector as part of custom wagmi setup i.e.

import { EIP6963Connector } from '@web3modal/wagmi/react'

// or
// import { EIP6963Connector } from '@web3modal/wagmi/vue'
// import { EIP6963Connector } from '@web3modal/wagmi'

  createConfig({
    connectors: [
      new WalletConnectConnector({ chains, options: { projectId, showQrModal: false, metadata } }),
      new EIP6963Connector({chains}), // <-- Add new connector
      new InjectedConnector({ chains, options: { shimDisconnect: true } }),
      new CoinbaseWalletConnector({ chains, options: { appName: metadata?.name ?? 'Unknown' } })
    ]
    // ...
  })

Associated Issues

closes #1298
closes #1092

@vercel
Copy link

vercel bot commented Sep 22, 2023

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

Name Status Preview Updated (UTC)
web3modal-gallery ✅ Ready (Inspect) Visit Preview Sep 25, 2023 2:13pm
web3modal-laboratory ✅ Ready (Inspect) Visit Preview Sep 25, 2023 2:13pm
web3modal-react-wagmi-ex ✅ Ready (Inspect) Visit Preview Sep 25, 2023 2:13pm
web3modal-vue-wagmi-ex ✅ Ready (Inspect) Visit Preview Sep 25, 2023 2:13pm

@xzilja xzilja marked this pull request as draft September 22, 2023 13:11
@vercel vercel bot temporarily deployed to Preview – web3modal-vue-wagmi-ex September 25, 2023 14:06 Inactive
@vercel vercel bot temporarily deployed to Preview – web3modal-gallery September 25, 2023 14:06 Inactive
@vercel vercel bot temporarily deployed to Preview – web3modal-react-wagmi-ex September 25, 2023 14:07 Inactive
@vercel vercel bot temporarily deployed to Preview – web3modal-laboratory September 25, 2023 14:08 Inactive
@vercel vercel bot temporarily deployed to Preview – web3modal-gallery September 25, 2023 14:12 Inactive
@vercel vercel bot temporarily deployed to Preview – web3modal-laboratory September 25, 2023 14:12 Inactive
@vercel vercel bot temporarily deployed to Preview – web3modal-react-wagmi-ex September 25, 2023 14:13 Inactive
@vercel vercel bot temporarily deployed to Preview – web3modal-vue-wagmi-ex September 25, 2023 14:13 Inactive
@xzilja xzilja merged commit f408e75 into V3 Sep 25, 2023
6 checks passed
@xzilja xzilja deleted the v-3/beta.5 branch September 25, 2023 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants