Skip to content

Main#58

Merged
Dargon789 merged 580 commits intosw-devfrom
main
Jan 4, 2026
Merged

Main#58
Dargon789 merged 580 commits intosw-devfrom
main

Conversation

@Dargon789
Copy link
Copy Markdown
Owner

Description

PLEASE NOTE- Checklist must be complete prior to review.

Checklist

  • Increment the version field in package.json of the package you have made changes in following semantic versioning and using alpha release tagging
  • Check the box that allows repo maintainers to update this PR
  • Test locally to make sure this feature/fix works
  • Run yarn check-all to confirm there are not any associated errors
  • Confirm this PR passes Circle CI checks
  • Add or update relevant information in the documentation

Docs Checklist

  • Include a screenshot of any changes (see docs README on running locally)
  • Add/update the appropriate package README (if applicable)
  • Add/update the related module in the docs demo (if applicable)
  • Add/update the related package in the docs/package.json file (if applicable)

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 (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

Dargon789 and others added 30 commits November 29, 2025 19:55
* Create deploy.yml

Signed-off-by: Dargon789 <64915515+Dargon789@users.noreply.github.com>

* Update .circleci/deploy.yml

Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
Signed-off-by: Dargon789 <64915515+Dargon789@users.noreply.github.com>

---------

Signed-off-by: Dargon789 <64915515+Dargon789@users.noreply.github.com>
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
Signed-off-by: Dargon789 <64915515+Dargon789@users.noreply.github.com>
Dargon789 and others added 21 commits January 4, 2026 02:12
…ng or encoding

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Signed-off-by: Dargon789 <64915515+Dargon789@users.noreply.github.com>
Vercel Web Analytics Installation and Configuration

IMPLEMENTATION SUMMARY:
Installed and configured Vercel Web Analytics for Next.js projects in this repository.

FILES CREATED:
None

FILES MODIFIED:
1. examples/with-nextjs/package.json
   - Added "@vercel/analytics": "^1.3.1" to dependencies
   
2. examples/with-nextjs/pages/_app.js
   - Added import: import { Analytics } from '@vercel/analytics/next'
   - Added <Analytics /> component inside Web3OnboardProvider after {children}
   
3. examples/with-nextjs-13/package.json
   - Added "@vercel/analytics": "^1.3.1" to dependencies
   
4. examples/with-nextjs-13/pages/_app.tsx
   - Added import: import { Analytics } from '@vercel/analytics/next'
   - Added <Analytics /> component after <Component {...pageProps} /> wrapped in Fragment

IMPLEMENTATION DETAILS:

Project Structure Analysis:
- This is a monorepo containing multiple packages
- Two Next.js example projects identified: examples/with-nextjs and examples/with-nextjs-13
- Both projects use the Pages Router pattern (pages/_app.js and pages/_app.tsx)
- Projects use yarn as the package manager (based on yarn.lock files)

Changes Made:

1. examples/with-nextjs (Pages Router with JavaScript):
   - Updated package.json to include @vercel/analytics dependency
   - Added import statement for Analytics component from '@vercel/analytics/next'
   - Integrated <Analytics /> component in the MyApp functional component
   - Placed Analytics component inside the existing Web3OnboardProvider wrapper and after <Component {...pageProps} />

2. examples/with-nextjs-13 (Pages Router with TypeScript):
   - Updated package.json to include @vercel/analytics dependency
   - Added import statement for Analytics component from '@vercel/analytics/next'
   - Integrated <Analytics /> component in the App functional component
   - Wrapped the return statement in a Fragment (<></>) and placed Analytics after <Component {...pageProps} />

DESIGN DECISIONS:

1. Package Version: Used ^1.3.1 for @vercel/analytics to ensure compatibility with modern Next.js versions while allowing minor updates

2. Component Placement:
   - For with-nextjs: Placed Analytics inside Web3OnboardProvider to ensure it's within the app's context provider hierarchy
   - For with-nextjs-13: Used Fragment wrapper to maintain structural integrity while allowing multiple top-level elements

3. Import Pattern: Used named import pattern consistent with the project's existing import style

VERIFICATION:
- JSON syntax validated for both modified package.json files
- JavaScript/TypeScript syntax verified for both modified _app files
- All imports are properly formatted and follow Next.js conventions
- Component placement follows best practices for Pages Router pattern

NOTES:
- No lockfile updates were performed as this is a monorepo with individual project dependencies
- The @vercel/analytics package is lightweight and will be installed when each project's dependencies are installed
- Analytics component will collect Web Vitals and other analytics data automatically once dependencies are installed

Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>
Vercel Web Analytics Installation and Configuration

IMPLEMENTATION SUMMARY:
Installed and configured Vercel Web Analytics for Next.js projects in this repository.

FILES CREATED:
None

FILES MODIFIED:
1. examples/with-nextjs/package.json
   - Added "@vercel/analytics": "^1.3.1" to dependencies
   
2. examples/with-nextjs/pages/_app.js
   - Added import: import { Analytics } from '@vercel/analytics/next'
   - Added <Analytics /> component inside Web3OnboardProvider after {children}
   
3. examples/with-nextjs-13/package.json
   - Added "@vercel/analytics": "^1.3.1" to dependencies
   
4. examples/with-nextjs-13/pages/_app.tsx
   - Added import: import { Analytics } from '@vercel/analytics/next'
   - Added <Analytics /> component after <Component {...pageProps} /> wrapped in Fragment

IMPLEMENTATION DETAILS:

Project Structure Analysis:
- This is a monorepo containing multiple packages
- Two Next.js example projects identified: examples/with-nextjs and examples/with-nextjs-13
- Both projects use the Pages Router pattern (pages/_app.js and pages/_app.tsx)
- Projects use yarn as the package manager (based on yarn.lock files)

Changes Made:

1. examples/with-nextjs (Pages Router with JavaScript):
   - Updated package.json to include @vercel/analytics dependency
   - Added import statement for Analytics component from '@vercel/analytics/next'
   - Integrated <Analytics /> component in the MyApp functional component
   - Placed Analytics component inside the existing Web3OnboardProvider wrapper and after <Component {...pageProps} />

2. examples/with-nextjs-13 (Pages Router with TypeScript):
   - Updated package.json to include @vercel/analytics dependency
   - Added import statement for Analytics component from '@vercel/analytics/next'
   - Integrated <Analytics /> component in the App functional component
   - Wrapped the return statement in a Fragment (<></>) and placed Analytics after <Component {...pageProps} />

DESIGN DECISIONS:

1. Package Version: Used ^1.3.1 for @vercel/analytics to ensure compatibility with modern Next.js versions while allowing minor updates

2. Component Placement:
   - For with-nextjs: Placed Analytics inside Web3OnboardProvider to ensure it's within the app's context provider hierarchy
   - For with-nextjs-13: Used Fragment wrapper to maintain structural integrity while allowing multiple top-level elements

3. Import Pattern: Used named import pattern consistent with the project's existing import style

VERIFICATION:
- JSON syntax validated for both modified package.json files
- JavaScript/TypeScript syntax verified for both modified _app files
- All imports are properly formatted and follow Next.js conventions
- Component placement follows best practices for Pages Router pattern

NOTES:
- No lockfile updates were performed as this is a monorepo with individual project dependencies
- The @vercel/analytics package is lightweight and will be installed when each project's dependencies are installed
- Analytics component will collect Web Vitals and other analytics data automatically once dependencies are installed

Co-authored-by: Vercel <vercel[bot]@users.noreply.github.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Jan 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
web3-onboard-demo Canceled Canceled Jan 4, 2026 9:20am

Copy link
Copy Markdown

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Sorry @Dargon789, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello @Dargon789, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces Vercel Analytics to the Next.js example applications, enhancing their ability to track usage. More significantly, it performs a major cleanup and update of the packages/demo and packages/injected modules. The injected module has been streamlined by removing several wallet integrations and related code, likely to focus on a core set of EVM-compatible wallets and update to the new @web3-onboard package structure.

Highlights

  • Vercel Analytics Integration: Vercel Analytics has been integrated into both the Next.js 13 and standard Next.js example applications. This involves adding the @vercel/analytics dependency and rendering the <Analytics /> component in the root _app files.
  • Dependency Overhaul in Demo Package: The packages/demo package underwent a significant dependency refactoring. Its version was updated from 1.0.7 to 2.0.9, and many @subwallet-connect packages were replaced with their @web3-onboard equivalents. Development dependencies and build scripts were also substantially revised.
  • Injected Wallet Module Refactoring and Simplification: The packages/injected module has been extensively refactored. The package name was changed from @subwallet-connect/injected-wallets to @web3-onboard/injected-wallets, and its version updated. Several Substrate-related wallet integrations (e.g., Kayros, SubWalletDOT, TalismanDOT, PolkadotJs) and their associated code, types, and constants have been removed, streamlining the module to primarily focus on EVM-compatible wallets. Repository metadata was also updated.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request primarily focuses on a significant dependency overhaul and refactoring within the demo and injected packages, alongside adding Vercel analytics to the Next.js examples. The changes suggest a migration from a @subwallet-connect fork to the primary @web3-onboard packages and a cleanup of Substrate-related wallet support. While these updates appear intentional, the absence of a descriptive pull request body makes it challenging to fully verify the intended scope. My review has uncovered a critical issue in packages/injected/src/wallets.ts where a required property has been removed from numerous wallet definitions, which will likely cause compilation to fail. I have also identified several medium-severity issues concerning code style and package metadata consistency that should be addressed.

"url": "https://github.com/blocknative/web3-onboard/issues"
},
"homepage": "https://onboard.blocknative.com",
"bugs": "https://github.com/blocknative/web3-onboard/issues",
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The bugs field has been changed from an object to a string. While technically valid, the object format { "url": "..." } is more explicit, extensible, and consistent with other fields in this file, such as repository. I recommend reverting to the object format for better structure and consistency.

Suggested change
"bugs": "https://github.com/blocknative/web3-onboard/issues",
"bugs": {
"url": "https://github.com/blocknative/web3-onboard/issues"
},

Comment on lines +33 to +34
coin98wallet:'Coin98 Wallet',
SubWallet:'SubWallet'
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

There is a missing space after the colon for the coin98wallet and SubWallet properties. This affects code readability and is inconsistent with the formatting of other properties in this object. Please add a space for consistency.

Suggested change
coin98wallet:'Coin98 Wallet',
SubWallet:'SubWallet'
coin98wallet: 'Coin98 Wallet',
SubWallet: 'SubWallet'

Comment on lines 227 to 229
ronin: {
provider: InjectedProvider
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

A trailing comma is missing for the ronin property in the CustomWindow interface. Trailing commas have been added to other properties in this change, so for consistency, one should be added here as well. This practice improves maintainability by minimizing diff noise when new properties are added.

Suggested change
ronin: {
provider: InjectedProvider
}
ronin: {
provider: InjectedProvider
},

@Dargon789 Dargon789 merged commit 1980044 into sw-dev Jan 4, 2026
13 of 67 checks passed
Dargon789 added a commit that referenced this pull request Jan 4, 2026
This reverts commit 1980044.
@Dargon789 Dargon789 mentioned this pull request Jan 4, 2026
Dargon789 added a commit that referenced this pull request Jan 4, 2026
@Dargon789 Dargon789 linked an issue Jan 6, 2026 that may be closed by this pull request
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.

# Flow diagram for selecting a GitHub issue template

3 participants