Open
Conversation
Add @base-org/account as an EVM connector for Web3Auth, enabling developers to use Base Account SDK as a wallet option in modal and no-modal flows. Changes: - New BaseAccountConnector extending BaseEvmConnector with full lifecycle - Add BASE_ACCOUNT to WALLET_CONNECTORS and CONNECTOR_NAMES - Skip AA wrapping for Base Account (already a smart account provider) - Add @base-org/account as optional peer dependency - Add Base logo asset and constant for modal UI Co-Authored-By: Claude <noreply@anthropic.com>
|
@youssefea is attempting to deploy a commit to the Consensys Team on Vercel. A member of the Team first needs to authorize it. |
| "require": "./dist/lib.cjs/vue/wagmi/index.js", | ||
| "types": "./dist/lib.cjs/types/vue/wagmi/index.d.ts" | ||
| }, | ||
| "./connectors/base-account-connector": { |
Member
There was a problem hiding this comment.
to follow our conventions, pls re-export from modal package as well
You also need to add this as a path in rollup config to become an export
|
|
||
| export const WALLET_CONNECT_LOGO = "https://images.web3auth.io/login-wallet-connect.svg"; | ||
|
|
||
| export const BASE_ACCOUNT_LOGO = "https://images.web3auth.io/login-base-account.svg"; |
There was a problem hiding this comment.
| <svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"> | ||
| <circle cx="20" cy="20" r="20" fill="#0052FF"/> | ||
| <path d="M19.9756 34.1667C27.8002 34.1667 34.1424 27.8246 34.1424 20C34.1424 12.1755 27.8002 5.83337 19.9756 5.83337C12.5597 5.83337 6.47236 11.5399 5.87109 18.7917H25.3588V21.2084H5.87109C6.47236 28.4602 12.5597 34.1667 19.9756 34.1667Z" fill="white"/> | ||
| </svg> |
There was a problem hiding this comment.
Unused SVG asset file not referenced anywhere
Low Severity
The base-logo.svg file is added to the assets directory but is not imported or referenced anywhere in the codebase. The BASE_ACCOUNT_LOGO constant uses a URL (https://images.web3auth.io/login-base-account.svg) rather than this local asset file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Add @base-org/account as an EVM connector for Web3Auth, enabling developers to
use Base Account SDK as a wallet option in modal and no-modal flows.
Changes:
Motivation and Context
Enable Web3Auth users to connect via Base Account SDK, which provides a smart
account wallet experience on Base chain. This gives developers another wallet
option alongside existing connectors like Coinbase and MetaMask.
Jira Link: N/A
Description
BaseAccountConnectorclass inpackages/no-modal/src/connectors/base-account-connector/following the samepattern as
CoinbaseConnector@base-org/accountSDK and exposes itsEIP-1193 provider
appName,appLogoUrlfrom site metadata andappChainIdsfrom configured EIP-155 chains
noModal.tsto skip AA wrapping for Base Account since it'salready a smart account provider
@base-org/account ^2.5.1as optional peer dependencyBASE_ACCOUNT_LOGOconstant for modal UI@web3auth/modalpackageHow has this been tested?
errors in other files unrelated to this PR)
MetaMaskConnector)
Screenshots (if appropriate):
N/A
Types of changes
to not work as expected)
Checklist:
Note
Medium Risk
Adds a new external EVM connector and tweaks account-abstraction wrapping behavior, which can affect connection/chain-switch flows and provider selection. Dependency/lockfile changes may also impact build/install reproducibility.
Overview
Adds a new
BaseAccountConnectorbacked by@base-org/account, wiring it into@web3auth/no-modal(exports, connector registry/name mapping, and packageexports) and re-exporting it from@web3auth/modal.Updates the connection pipeline to skip account-abstraction wrapping when the connected wallet is
BASE_ACCOUNT(treating it as an already-smart-account provider), and adds Base branding via a new SVG asset andBASE_ACCOUNT_LOGOconstant.Also updates dependencies/lockfile to include
@base-org/accountas an optional peer dependency (and its transitive additions) plus related package-lock metadata reshuffles.Written by Cursor Bugbot for commit 70f8efd. This will update automatically on new commits. Configure here.