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

Trust wallet integration & SDK #1463

Conversation

karim-yassine
Copy link
Contributor

@karim-yassine karim-yassine commented Jan 13, 2023

Hey web3-onboard team! I'm Karim, and I'm representing the Web Extension team of Trust Wallet. Based on Pull Request Guide, I'm opening this PR with a complete list of the changes it introduces (all related to Trust Wallet).

Description

  • Trust Wallet SDK package was created.
  • Not displaying Trust Wallet name and logo when wallet was injected fixed.
  • Conflicts between multiple injected wallets fixed.
  • Documentation with Trust Wallet examples added.

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

Tests with demo app (injected)

  • send transaction
  • switch chains
  • sign message
  • sign typed message
  • disconnect

Tests with demo app (SDK)

  • send transaction
  • switch chains
  • sign message
  • sign typed message
  • disconnect

  • QA (ongoing)

@vercel
Copy link

vercel bot commented Jan 13, 2023

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

Name Status Preview Comments Updated
web3-onboard-docs ❌ Failed (Inspect) Jan 27, 2023 at 5:37PM (UTC)

@Adamj1232
Copy link
Member

Thanks for putting this PR together @karim-yassine ! I left a few comments to address. Can you test and complete the new wallet injected and SDK checklist when you have a moment? Thanks! Looking forward to adding support!

Co-authored-by: Adam Carpenter <adamcarpenter86@gmail.com>
karim-yassine and others added 2 commits January 13, 2023 14:22
Co-authored-by: Adam Carpenter <adamcarpenter86@gmail.com>
Co-authored-by: Adam Carpenter <adamcarpenter86@gmail.com>
@karim-yassine
Copy link
Contributor Author

Hello @Adamj1232, all the changes suggested where committed!
Our QA team is working on testing the wallet integration; could you please approve the Vercel deployment workflow?
Thank you in advance!

@Adamj1232
Copy link
Member

@karim-yassine the vercel deployment is for our docs site we pulled into the develop branch. Please pull the latest develop when you have a chance.
For a vercel demo app of the Demo app for QA-ing wallet integration you will have to run yarn build within the demo package and then upload the public file from the demo package to vercel manually. We ill have this automated in the future.

@Adamj1232
Copy link
Member

@karim-yassine we are going to be putting together a release candidate today. Any chance this PR is ready for review? If not we will have a following release coming out next week (or the week after)

@karim-yassine
Copy link
Contributor Author

@Adamj1232 Hello! I'll be opening PR today, we found a bug in the index of injected package that we fixed, I'm just finalizing testing and making sure that it works correctly with other wallets.

@karim-yassine
Copy link
Contributor Author

@Adamj1232 ready for review.

Regarding our fix in the index file of injected package, the bug here was that the implementation assumed that if there is a provider array, that should only be checked, which is wrong because it excludes the global scope. For that reason we first check the global scope and then the providers array, if exist.

@Adamj1232
Copy link
Member

Adamj1232 commented Jan 27, 2023

@karim-yassine thank you for the PR! I will test now!

Copy link
Member

@Adamj1232 Adamj1232 left a comment

Choose a reason for hiding this comment

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

Thank you again for the PR and collaboration! Really appreciate it!

@Adamj1232 Adamj1232 merged commit cd1ff27 into blocknative:v2-web3-onboard-develop Jan 27, 2023
@Adamj1232
Copy link
Member

@karim-yassine If interested in doing a bit of co-marketing/tweeting on the new support and package please feel free to reach out 😃

Adamj1232 added a commit that referenced this pull request Jan 30, 2023
* feat: intergration of SafePal wallet (#1450)

* feat: intergration of SafePal wallet

* cleanup

Co-authored-by: Adam Carpenter <adamcarpenter86@gmail.com>

* Update sdk version for TP (#1495)

* Trust wallet integration & SDK (#1463)

* feat: create trust wallet SDK

* docs: add Trust wallet SDK docs link

* docs: add trust SDK option

* docs:  add trust SDK option

* chore: add trust SDK jobs

* feat: add trust as part of the default wallets

* feat: add trust type

* fix: not identifying injected trust wallet

* fix: building error

* fix: only verify if trustwallet exists

* fix: wallets conflicting with each other

* chore: increment version

* chore: revert version

* docs: update documentation with Trust example

* docs: update description

Co-authored-by: Adam Carpenter <adamcarpenter86@gmail.com>

* chore: update version

Co-authored-by: Adam Carpenter <adamcarpenter86@gmail.com>

* docs: resolve typo

Co-authored-by: Adam Carpenter <adamcarpenter86@gmail.com>

* fix: incorrectly checking providers

* Add trust to docs site

* Add docs and bump version

* Fix deploy config

---------

Co-authored-by: Adam Carpenter <adamcarpenter86@gmail.com>

* Bump cookiejar from 2.1.3 to 2.1.4 (#1482)

Bumps [cookiejar](https://github.com/bmeck/node-cookiejar) from 2.1.3 to 2.1.4.
- [Release notes](https://github.com/bmeck/node-cookiejar/releases)
- [Commits](https://github.com/bmeck/node-cookiejar/commits)

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

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

* Bump cookiejar from 2.1.3 to 2.1.4 in /examples/with-vite-react (#1483)

Bumps [cookiejar](https://github.com/bmeck/node-cookiejar) from 2.1.3 to 2.1.4.
- [Release notes](https://github.com/bmeck/node-cookiejar/releases)
- [Commits](https://github.com/bmeck/node-cookiejar/commits)

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

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

* Bump cookiejar from 2.1.3 to 2.1.4 in /packages/demo (#1485)

Bumps [cookiejar](https://github.com/bmeck/node-cookiejar) from 2.1.3 to 2.1.4.
- [Release notes](https://github.com/bmeck/node-cookiejar/releases)
- [Commits](https://github.com/bmeck/node-cookiejar/commits)

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

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

* Bump cookiejar from 2.1.3 to 2.1.4 in /docs (#1486)

Bumps [cookiejar](https://github.com/bmeck/node-cookiejar) from 2.1.3 to 2.1.4.
- [Release notes](https://github.com/bmeck/node-cookiejar/releases)
- [Commits](https://github.com/bmeck/node-cookiejar/commits)

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

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

* Bump cookiejar from 2.1.3 to 2.1.4 in /examples/with-nextjs-13 (#1484)

Bumps [cookiejar](https://github.com/bmeck/node-cookiejar) from 2.1.3 to 2.1.4.
- [Release notes](https://github.com/bmeck/node-cookiejar/releases)
- [Commits](https://github.com/bmeck/node-cookiejar/commits)

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

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

* Feat/add okx wallet (#1469)

* feature: add okx wallet to injected

* feature: add okx wallet to injected

* feature: add okx wallet to injected

* feature: add okx wallet to injected

* feature: add okx wallet to injected

* Update okx wallet usage

* Add debugging code for okx team

* Update svg for wallet

* Clean up logs

---------

Co-authored-by: Adam Carpenter <adamcarpenter86@gmail.com>

* Update versions for release

* Address a couple of warnings from type-check

* Bump sdk version in core

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: QiAbc <121917904+QiAbc@users.noreply.github.com>
Co-authored-by: karim-yassine <118207693+karim-yassine@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: okxwallet <122091289+okxwallet@users.noreply.github.com>
@atifnimran
Copy link

Please ok

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