Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Commit

Permalink
Chore/walletconnect dependencies (#384)
Browse files Browse the repository at this point in the history
* Update WalletConnect dependencies

* Update to wcm 2.5.4 (adds sourcemaps)

* Updated @walletconnect/ethereum-provider dependency

* [chore] Update WalletConnect dependencies

* chore: format

* remove duplicated changesets

* Update .changeset/pretty-feet-boil.md

---------

Co-authored-by: 0xAsimetriq <[email protected]>
Co-authored-by: awkweb <[email protected]>
  • Loading branch information
3 people authored Jun 29, 2023
1 parent d7e7d32 commit f2d532d
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 42 deletions.
5 changes: 5 additions & 0 deletions .changeset/pretty-feet-boil.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wagmi/connectors": patch
---

Updated WalletConnect dependencies, exposed `relayUrl` option for `WalletConnectConnector`
4 changes: 2 additions & 2 deletions packages/connectors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
"@ledgerhq/connect-kit-loader": "^1.1.0",
"@safe-global/safe-apps-provider": "^0.17.1",
"@safe-global/safe-apps-sdk": "^8.0.0",
"@walletconnect/ethereum-provider": "2.8.4",
"@walletconnect/ethereum-provider": "2.8.6",
"@walletconnect/legacy-provider": "^2.0.0",
"@walletconnect/modal": "2.5.4",
"@walletconnect/modal": "2.5.9",
"abitype": "0.8.7",
"eventemitter3": "^4.0.7"
},
Expand Down
9 changes: 8 additions & 1 deletion packages/connectors/src/walletConnect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,14 @@ type WalletConnectOptions = {
showQrModal?: EthereumProviderOptions['showQrModal']
/**
* Options of QR code modal.
* @link https://docs.walletconnect.com/2.0/web3modal/options
* @link https://docs.walletconnect.com/2.0/web/walletConnectModal/modal/options
*/
qrModalOptions?: EthereumProviderOptions['qrModalOptions']
/**
* Option to override default relay url.
* @link https://docs.walletconnect.com/2.0/web/providers/ethereum
*/
relayUrl?: string
}

type ConnectConfig = {
Expand Down Expand Up @@ -291,6 +296,7 @@ export class WalletConnectConnector extends Connector<
showQrModal = true,
qrModalOptions,
metadata,
relayUrl,
} = this.options
this.#provider = await EthereumProvider.init({
showQrModal,
Expand All @@ -307,6 +313,7 @@ export class WalletConnectConnector extends Connector<
]),
),
metadata,
relayUrl,
})
}
}
Expand Down
78 changes: 39 additions & 39 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f2d532d

Please sign in to comment.