Skip to content

Conversation

@Adamj1232
Copy link
Contributor

@Adamj1232 Adamj1232 commented Feb 24, 2023

Description

This PR expands the WalletConnect init options to include handleUri an optional function to handle the URI created

export type WalletConnectOptions = {
  /**
   * Optional function to handle WalletConnect URI when it becomes available
   */
  handleUri?: (uri: string) => Promise<unknown>
...otherOptions
}

Closes: #1525

Checklist

  • The version field in package.json of the package you have made changes in is incremented following semantic versioning and using alpha release tagging
  • The box that allows repo maintainers to update this PR is checked
  • I tested locally to make sure this feature/fix works
  • I have run yarn file-check, yarn type-check & yarn build to confirm there are not any associated errors
  • This PR passes the Circle CI checks

@vercel
Copy link

vercel bot commented Feb 24, 2023

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

Name Status Preview Comments Updated
web3-onboard-docs ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 27, 2023 at 4:58PM (UTC)

@Adamj1232 Adamj1232 changed the title [walletconnect-2.3.0-alpha.3] - Feat: Walletconnect URI handler [walletconnect-2.3.0-alpha.3] - Feat: Walletconnect URI handler + bump wc package version Feb 24, 2023
Copy link

@kraikov kraikov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure, but I think the method name in the docs must also be handleUri instead of uriHandler

thanks for the blazing-fast reaction

@Adamj1232 Adamj1232 requested a review from kraikov February 25, 2023 17:44
@Adamj1232 Adamj1232 merged commit fe11c73 into develop Feb 27, 2023
@Adamj1232 Adamj1232 deleted the feat/wc_URI_handler branch February 27, 2023 17:13
Adamj1232 added a commit that referenced this pull request Feb 28, 2023
* update root path (#1543)

* Add XDEFI module and injected to docs site (#1544)

* Add xdefi to docs

* Add xdefi module to docs

* Add xdefi package to docs onboard

* Add to injected wallets list

* Feature: "I don't have a wallet" flow + Progress-bar fixup  (#1535)

* Link working and styled

* Progress bar work

* Cleanup progressbar code

* Remove single quote breaking view

* Revert TP testing code

* add transaction preview graphic

* add transaction preview install code snippet

* move md code snippets

- update imports

* add transaction preview section to landing page

* update theming code snippet

* update hero section install code

* update account center graphic

* update hero w3o graphic

* update account center svg

* Update README.md (#1547)

Yeah maybe this needs more thorough changes throughout the docs but I was caught up on this for a minute, and this will help

* move transaction preview section to top

* update link url

* Added XDEFI to readme

* Add theming docs, refine core init options, api actions and code chunks (#1548)

* Add theming docs, still needs refinement

* More docs

* Add theming video

* More docs

* Update layout and add copy to some code chunks

* Add dividers for better visibility between options and copy to code blocks where useful

* Reorder Theming docs layout

* Add note about ethers v6 usage

* edit theming page

- add css variables table
- edit theme descriptions
- re-org existing content

* Update docs/src/lib/components/examples/connect-wallet/ReactConnectWallet.md

* Update theming tool to default to custom

---------

Co-authored-by: Gustavo Esquinca <[email protected]>

* Update docs/src/lib/components/code-snippet/theming-code.md

Co-authored-by: Adam Carpenter <[email protected]>

* Bump versions for release

* Add Infinity Wallet Connector (#1540)

* Add Infinity Wallet Connector

* Update packages/infinity-wallet/package.json

* Update packages/infinity-wallet/src/index.ts

* Remove yarn lock from infin package

* Update packages/demo/package.json

* Add inifinity to docs

* Reorder wallets

* Update docs title

* Bump innjected package version

---------

Co-authored-by: Adam Carpenter <[email protected]>

* [walletconnect-2.3.0-alpha.3] - Feat: Walletconnect URI handler + bump wc package version (#1552)

* accept handleUri prop

* Update docs

* Rename wc prop to handleUri

* Bump wc pakcage version for walletconnect/ethereum-provider

* merge in dev

* Revert unintended change

* Update prop in docs

* Cleanup semicolon

* Yarn it!

* Bump undici from 5.10.0 to 5.19.1 in /examples/with-sveltekit (#1532)

Bumps [undici](https://github.com/nodejs/undici) from 5.10.0 to 5.19.1.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](nodejs/undici@v5.10.0...v5.19.1)

---
updated-dependencies:
- dependency-name: undici
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Adam Carpenter <[email protected]>

* Update fortmatic docs

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Taylor Dawson <[email protected]>
Co-authored-by: Gustavo Esquinca <[email protected]>
Co-authored-by: Brent <[email protected]>
Co-authored-by: mhchaudhry3 <[email protected]>
Co-authored-by: mhchaudhry3 <[email protected]>
Co-authored-by: Aaron <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@Adamj1232 Adamj1232 mentioned this pull request Feb 28, 2023
5 tasks
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.

[Bug]: I can't get the generated walletConnect uri

4 participants