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 web3modal extension #742

Open
wants to merge 53 commits into
base: master
Choose a base branch
from
Open

add web3modal extension #742

wants to merge 53 commits into from

Conversation

hcote
Copy link
Contributor

@hcote hcote commented Apr 22, 2024

📦 Pull Request

[Provide a general summary of the pull request here.]

Looks like a huge PR by the number of files modified, but they are mostly test files.

Changes summary

  • Removes legacy third party wallet logic
  • Adds new web3modal extension which handles the wallet connection request & EIP1193 listeners
  • Adds new thirdPartyWallet module which handles isConnected to third party wallet state & rpc routing to wallets
  • Updates request function to route payload to third party wallet if connected

✅ Fixed Issues

  • [List any fixed issues here like: Fixes #XXXX]

🚨 Test instructions

[Describe any additional context required to test the PR/feature/bug fix.]

⚠️ Don't forget to add a semver label!

Please 🚨 ONLY ADD ONE 🚨 of the following labels, failing to do so may lead to adverse versioning of your changes when published:

  • patch: Bug Fix?
  • minor: New Feature?
  • major: Breaking Change?
  • skip-release: It's unnecessary to publish this change.

Special Note

Please avoid adding any of the Priority labels as they conflict with the labels above ☝️

📦 Published PR as canary version: Canary Versions

✨ Test out this PR locally via:

npm install @magic-ext/algorand@23.2.1-canary.742.10067162636.0
npm install @magic-ext/aptos@11.2.1-canary.742.10067162636.0
npm install @magic-ext/avalanche@23.2.1-canary.742.10067162636.0
npm install @magic-ext/bitcoin@23.2.1-canary.742.10067162636.0
npm install @magic-ext/conflux@21.2.1-canary.742.10067162636.0
npm install @magic-ext/cosmos@23.2.1-canary.742.10067162636.0
npm install @magic-ext/ed25519@19.2.1-canary.742.10067162636.0
npm install @magic-ext/farcaster@0.2.2-canary.742.10067162636.0
npm install @magic-ext/flow@23.2.1-canary.742.10067162636.0
npm install @magic-ext/gdkms@11.2.1-canary.742.10067162636.0
npm install @magic-ext/harmony@23.2.1-canary.742.10067162636.0
npm install @magic-ext/icon@23.2.1-canary.742.10067162636.0
npm install @magic-ext/near@23.2.1-canary.742.10067162636.0
npm install @magic-ext/oauth@22.2.1-canary.742.10067162636.0
npm install @magic-ext/oauth2@9.2.1-canary.742.10067162636.0
npm install @magic-ext/oidc@11.2.1-canary.742.10067162636.0
npm install @magic-ext/polkadot@23.2.1-canary.742.10067162636.0
npm install @magic-ext/react-native-bare-oauth@25.2.1-canary.742.10067162636.0
npm install @magic-ext/react-native-expo-oauth@25.2.1-canary.742.10067162636.0
npm install @magic-ext/solana@25.3.1-canary.742.10067162636.0
npm install @magic-ext/sui@0.3.1-canary.742.10067162636.0
npm install @magic-ext/taquito@20.2.1-canary.742.10067162636.0
npm install @magic-ext/terra@20.2.1-canary.742.10067162636.0
npm install @magic-ext/tezos@23.2.1-canary.742.10067162636.0
npm install @magic-ext/web3modal-ethers5@0.1.1-canary.742.10067162636.0
npm install @magic-ext/webauthn@22.2.1-canary.742.10067162636.0
npm install @magic-ext/zilliqa@23.2.1-canary.742.10067162636.0
npm install @magic-sdk/commons@24.2.1-canary.742.10067162636.0
npm install @magic-sdk/pnp@22.2.1-canary.742.10067162636.0
npm install @magic-sdk/provider@28.2.1-canary.742.10067162636.0
npm install @magic-sdk/react-native-bare@29.2.1-canary.742.10067162636.0
npm install @magic-sdk/react-native-expo@29.2.1-canary.742.10067162636.0
npm install @magic-sdk/types@24.0.6-canary.742.10067162636.0
npm install magic-sdk@28.2.1-canary.742.10067162636.0
# or 
yarn add @magic-ext/algorand@23.2.1-canary.742.10067162636.0
yarn add @magic-ext/aptos@11.2.1-canary.742.10067162636.0
yarn add @magic-ext/avalanche@23.2.1-canary.742.10067162636.0
yarn add @magic-ext/bitcoin@23.2.1-canary.742.10067162636.0
yarn add @magic-ext/conflux@21.2.1-canary.742.10067162636.0
yarn add @magic-ext/cosmos@23.2.1-canary.742.10067162636.0
yarn add @magic-ext/ed25519@19.2.1-canary.742.10067162636.0
yarn add @magic-ext/farcaster@0.2.2-canary.742.10067162636.0
yarn add @magic-ext/flow@23.2.1-canary.742.10067162636.0
yarn add @magic-ext/gdkms@11.2.1-canary.742.10067162636.0
yarn add @magic-ext/harmony@23.2.1-canary.742.10067162636.0
yarn add @magic-ext/icon@23.2.1-canary.742.10067162636.0
yarn add @magic-ext/near@23.2.1-canary.742.10067162636.0
yarn add @magic-ext/oauth@22.2.1-canary.742.10067162636.0
yarn add @magic-ext/oauth2@9.2.1-canary.742.10067162636.0
yarn add @magic-ext/oidc@11.2.1-canary.742.10067162636.0
yarn add @magic-ext/polkadot@23.2.1-canary.742.10067162636.0
yarn add @magic-ext/react-native-bare-oauth@25.2.1-canary.742.10067162636.0
yarn add @magic-ext/react-native-expo-oauth@25.2.1-canary.742.10067162636.0
yarn add @magic-ext/solana@25.3.1-canary.742.10067162636.0
yarn add @magic-ext/sui@0.3.1-canary.742.10067162636.0
yarn add @magic-ext/taquito@20.2.1-canary.742.10067162636.0
yarn add @magic-ext/terra@20.2.1-canary.742.10067162636.0
yarn add @magic-ext/tezos@23.2.1-canary.742.10067162636.0
yarn add @magic-ext/web3modal-ethers5@0.1.1-canary.742.10067162636.0
yarn add @magic-ext/webauthn@22.2.1-canary.742.10067162636.0
yarn add @magic-ext/zilliqa@23.2.1-canary.742.10067162636.0
yarn add @magic-sdk/commons@24.2.1-canary.742.10067162636.0
yarn add @magic-sdk/pnp@22.2.1-canary.742.10067162636.0
yarn add @magic-sdk/provider@28.2.1-canary.742.10067162636.0
yarn add @magic-sdk/react-native-bare@29.2.1-canary.742.10067162636.0
yarn add @magic-sdk/react-native-expo@29.2.1-canary.742.10067162636.0
yarn add @magic-sdk/types@24.0.6-canary.742.10067162636.0
yarn add magic-sdk@28.2.1-canary.742.10067162636.0

Dizigen
Dizigen previously approved these changes Apr 25, 2024
Copy link
Contributor

@Dizigen Dizigen left a comment

Choose a reason for hiding this comment

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

So clean, love it

@hcote hcote mentioned this pull request Jul 3, 2024
Ethella
Ethella previously approved these changes Jul 22, 2024
Copy link
Member

@Ethella Ethella left a comment

Choose a reason for hiding this comment

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

Just one question, LG otherwise

},
"devDependencies": {
"@magic-sdk/commons": "^24.0.2",
"@magic-sdk/types": "24.0.2-canary.742.9175925480.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

is this canary version needed here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because @magic-sdk/types is a separate package, which is getting updated types that this extension is using, we need @magic-sdk/types to be published. So I think yes we need to reference a canary version at least at the first publish, then we can update the extension to use a non-canary

romin-halltari
romin-halltari previously approved these changes Jul 22, 2024
@hcote hcote dismissed stale reviews from romin-halltari and Ethella via 8b1ae7f July 22, 2024 20:58
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.

5 participants