Skip to content

Commit

Permalink
Export EIP6963 connector
Browse files Browse the repository at this point in the history
  • Loading branch information
xzilja committed Sep 25, 2023
1 parent d640b41 commit a6e0948
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions packages/wagmi/exports/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Web3Modal } from '../src/client.js'
import { VERSION } from '../src/utils/constants.js'

export type { Web3ModalOptions } from '../src/client.js'
export { EIP6963Connector } from '../src/connectors/EIP6963Connector.js'
export { defaultWagmiConfig } from '../src/utils/defaultWagmiCoreConfig.js'
export { walletConnectProvider } from '../src/utils/provider.js'

Expand Down
6 changes: 4 additions & 2 deletions packages/wagmi/exports/react.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ export function createWeb3Modal(options: Web3ModalOptions) {
return modal
}

export { defaultWagmiConfig } from '../src/utils/defaultWagmiReactConfig.js'

// -- Hooks -------------------------------------------------------------------
export function useWeb3ModalTheme() {
if (!modal) {
Expand Down Expand Up @@ -115,3 +113,7 @@ export function useWeb3ModalState() {

return state
}

// -- Universal Exports -------------------------------------------------------
export { EIP6963Connector } from '../src/connectors/EIP6963Connector.js'
export { defaultWagmiConfig } from '../src/utils/defaultWagmiReactConfig.js'
6 changes: 4 additions & 2 deletions packages/wagmi/exports/vue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ export function createWeb3Modal(options: Web3ModalOptions) {
return modal
}

export { defaultWagmiConfig } from '../src/utils/defaultWagmiCoreConfig.js'

// -- Composites --------------------------------------------------------------
export function useWeb3ModalTheme() {
if (!modal) {
Expand Down Expand Up @@ -113,3 +111,7 @@ export function useWeb3ModalState() {

return reactive({ open, selectedNetworkId })
}

// -- Universal Exports -------------------------------------------------------
export { EIP6963Connector } from '../src/connectors/EIP6963Connector.js'
export { defaultWagmiConfig } from '../src/utils/defaultWagmiCoreConfig.js'
1 change: 0 additions & 1 deletion packages/wagmi/src/utils/defaultWagmiCoreConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export function defaultWagmiConfig({ projectId, chains, metadata }: ConfigOption
autoConnect: true,
connectors: [
new WalletConnectConnector({ chains, options: { projectId, showQrModal: false, metadata } }),
// Ilja: new EIP6963Connector({ chains }),
new InjectedConnector({ chains, options: { shimDisconnect: true } }),
new CoinbaseWalletConnector({ chains, options: { appName: metadata?.name ?? 'Unknown' } })
],
Expand Down
1 change: 0 additions & 1 deletion packages/wagmi/src/utils/defaultWagmiReactConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export function defaultWagmiConfig({ projectId, chains, metadata }: ConfigOption
autoConnect: true,
connectors: [
new WalletConnectConnector({ chains, options: { projectId, showQrModal: false, metadata } }),
// Ilja new EIP6963Connector({ chains }),
new InjectedConnector({ chains, options: { shimDisconnect: true } }),
new CoinbaseWalletConnector({ chains, options: { appName: metadata?.name ?? 'Unknown' } })
],
Expand Down

0 comments on commit a6e0948

Please sign in to comment.