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

Add Infinity Wallet Connector #1540

Merged
merged 10 commits into from
Feb 27, 2023
Merged

Add Infinity Wallet Connector #1540

merged 10 commits into from
Feb 27, 2023

Conversation

arons1
Copy link
Contributor

@arons1 arons1 commented Feb 17, 2023

Description

Added Infinity Web3 Browser connector and added as an option in the web3 onboard modal.

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

If this PR includes changes to add an injected wallet or SDK wallet module:

Please complete the following using the internal demo package.
To run this demo use the command yarn && yarn dev to get the project running at http://localhost:8080/

Tests with demo app (SDK)

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

@vercel
Copy link

vercel bot commented Feb 17, 2023

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

Name Status Preview Comments Updated
web3-onboard-docs ❌ Failed (Inspect) Feb 27, 2023 at 4:21PM (UTC)

@Adamj1232
Copy link
Member

@arons1 thanks for the PR! We will take a look at this in the next couple days

checkProviderIdentity: ({ provider }) =>
!!provider && !!provider[ProviderIdentityFlag.InfinityWallet],
getIcon: async () => (await import('./icons/infinitywallet.js')).default,
getInterface: getInjectedInterface(ProviderIdentityFlag.InfinityWallet),
Copy link
Member

Choose a reason for hiding this comment

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

Has this been tested through the injected package without the sdk added within the local demo project?
I saw it was removed from the PR checklist.
Sometimes getInjectedInterface is not the correct method and createEIP1193Provider is better suited depending on the wallet

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.

Looking good! Thank you again for the PR!
A few changes requested noted in the comments.
You will also want to add Infinity to the docs site that is part of this repo.
Checkout this PR for an example of adding to the docs site.
You will need to use yarn link to ensure the module works within the docs site.

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.

Thanks for the PR!

@Adamj1232 Adamj1232 merged commit df817dc into blocknative:develop Feb 27, 2023
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 <g.esq.ca@gmail.com>

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

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

* 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 <adamcarpenter86@gmail.com>

* [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] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Adam Carpenter <adamcarpenter86@gmail.com>

* Update fortmatic docs

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Taylor Dawson <taylorjdawson@gmail.com>
Co-authored-by: Gustavo Esquinca <g.esq.ca@gmail.com>
Co-authored-by: Brent <46073594+Brentably@users.noreply.github.com>
Co-authored-by: mhchaudhry3 <mobeen@blocknative.com>
Co-authored-by: mhchaudhry3 <102989386+mhchaudhry3@users.noreply.github.com>
Co-authored-by: Aaron <53439560+arons1@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@Adamj1232 Adamj1232 mentioned this pull request Feb 28, 2023
5 tasks
@Adamj1232
Copy link
Member

@arons1 we are seeing an issue with the Infinity Wallet when used within svelte-kit and have had to temporarily remove it from our docs site. Do you have insight into build configurations for the connector?
Issue: #1564

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.

None yet

2 participants