Skip to content

Wagmi project two.vercel.app#342

Open
Dargon789 wants to merge 24 commits intomasterfrom
wagmi-project-two.vercel.app
Open

Wagmi project two.vercel.app#342
Dargon789 wants to merge 24 commits intomasterfrom
wagmi-project-two.vercel.app

Conversation

@Dargon789
Copy link
Owner

@Dargon789 Dargon789 commented Mar 6, 2026

Summary by Sourcery

Introduce a new Wagmi-based demo app and promote the Sequence JS monorepo to a 2.0.0 release with updated tooling and security workflows.

New Features:

  • Add a new wagmi-project Vite React application demonstrating wallet connection and account state via wagmi and viem.

Enhancements:

  • Bump all core 0xsequence packages and their changelogs from 1.10.14 to 2.0.0, including the shared core version constant.
  • Update development tooling by upgrading Hardhat and Puppeteer and adding Vitest as a test runner dependency.
  • Tighten dependency management with additional security-focused resolutions constraints and onlyBuiltDependencies configuration.

CI:

  • Add a Fortify AST GitHub Actions workflow to run SAST scans and optionally publish results to GitHub code scanning.
  • Add an Azure Pipelines configuration to build the project on pushes to master.

Documentation:

  • Add a SECURITY policy document describing supported versions and vulnerability reporting.
  • Add GitHub issue templates for bug reports, feature requests, and custom issues.

Chores:

  • Check in ancillary project files for the Wagmi app and tooling (Vite config, TypeScript configs, Biome config, npmrc, Codesandbox tasks, and related metadata).

dependabot bot and others added 23 commits March 30, 2024 07:24
Bumps the npm_and_yarn group with 1 update in the / directory: [express](https://github.com/expressjs/express).


Updates `express` from 4.18.2 to 4.19.2
- [Release notes](https://github.com/expressjs/express/releases)
- [Changelog](https://github.com/expressjs/express/blob/master/History.md)
- [Commits](expressjs/express@4.18.2...4.19.2)

---
updated-dependencies:
- dependency-name: express
  dependency-type: direct:development
  dependency-group: npm_and_yarn-security-group
...

Signed-off-by: dependabot[bot] <support@github.com>
…yarn-security-group-e0cd778f82

Bump the npm_and_yarn group across 1 directory with 1 update
@bolt-new-by-stackblitz
Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@sourcery-ai
Copy link

sourcery-ai bot commented Mar 6, 2026

Reviewer's Guide

Introduces a new Wagmi-based Vite React demo app, upgrades the Sequence monorepo to version 2.0.0 across all packages, adds security-related tooling and docs (Fortify workflow, SECURITY policy, Azure pipeline, issue templates), and updates root dependencies and resolutions for newer tooling and security patches.

Sequence diagram for wallet connect and disconnect flow in Wagmi React app

sequenceDiagram
  actor User
  participant Browser
  participant App as App_component
  participant Wagmi as WagmiProvider
  participant Connector as Wallet_connector
  participant Wallet as User_wallet
  participant Chain as Ethereum_chain

  User->>Browser: Open wagmi-project URL
  Browser->>App: Render App
  App->>Wagmi: useAccount useConnect useDisconnect
  Wagmi-->>App: account status, connectors, connect(), disconnect()

  User->>App: Click Connect button
  App->>Wagmi: connect(connector)
  Wagmi->>Connector: initiate_connection
  Connector->>Wallet: request_approval
  Wallet-->>User: Prompt to connect
  User-->>Wallet: Approve connection
  Wallet-->>Connector: connection_approved
  Connector-->>Wagmi: session_established
  Wagmi-->>App: status=connected, account.addresses, account.chainId
  App-->>User: Show connected account info

  User->>App: Click Disconnect button
  App->>Wagmi: disconnect()
  Wagmi->>Connector: terminate_session
  Connector-->>Wagmi: session_terminated
  Wagmi-->>App: status=disconnected, account cleared
  App-->>User: Show disconnected state
Loading

Class diagram for new Wagmi React app modules and hooks usage

classDiagram
  class App {
    +useAccount() account
    +useConnect() connectors, connect(), status, error
    +useDisconnect() disconnect()
    +render(): JSX
  }

  class WagmiConfigModule {
    +config
    +createConfig(options)
  }

  class MainEntry {
    +Buffer
    +QueryClient
    +createRoot(element)
    +renderTree(): void
  }

  class QueryClientProviderModule {
    +QueryClient
    +QueryClientProvider
  }

  class WagmiProviderModule {
    +WagmiProvider
  }

  class Connectors {
    +injected()
    +coinbaseWallet()
    +walletConnect(projectId)
  }

  class Chains {
    +mainnet
    +sepolia
  }

  MainEntry --> App : renders
  MainEntry --> WagmiProviderModule : wraps_with
  MainEntry --> QueryClientProviderModule : wraps_with

  WagmiProviderModule --> WagmiConfigModule : uses_config
  WagmiConfigModule --> Chains : configures
  WagmiConfigModule --> Connectors : provides

  App --> WagmiProviderModule : consumes_hooks
  App --> QueryClientProviderModule : uses_react_query
Loading

File-Level Changes

Change Details Files
Add a new Vite + React wagmi demo application showcasing wallet connection and account state.
  • Create wagmi-project Vite app scaffold with React, TypeScript, and Biome configuration.
  • Implement Wagmi configuration for mainnet and Sepolia with injected, Coinbase Wallet, and WalletConnect connectors.
  • Build a minimal App component that displays account status and renders connector buttons for connecting/disconnecting.
  • Wire up ReactDOM entry point with WagmiProvider, QueryClientProvider, and global Buffer polyfill for browser use.
  • Add basic HTML shell and dark/light CSS theming for the wagmi-project UI.
wagmi-project/package.json
wagmi-project/tsconfig.json
wagmi-project/tsconfig.node.json
wagmi-project/vite.config.ts
wagmi-project/biome.json
wagmi-project/.gitignore
wagmi-project/.npmrc
wagmi-project/index.html
wagmi-project/README.md
wagmi-project/src/App.tsx
wagmi-project/src/main.tsx
wagmi-project/src/wagmi.ts
wagmi-project/src/index.css
wagmi-project/src/vite-env.d.ts
Upgrade Sequence packages to a new 2.0.0 release and record changes in changelogs.
  • Bump version from 1.10.14 to 2.0.0 across all @0xsequence/* packages and the root 0xsequence package.
  • Update core VERSION constant to 2.0.0 to align with the new release.
  • Add 2.0.0 entries to each package CHANGELOG.md with placeholder "changeset" notes and updated dependency references.
packages/0xsequence/package.json
packages/abi/package.json
packages/account/package.json
packages/api/package.json
packages/auth/package.json
packages/core/package.json
packages/deployer/package.json
packages/estimator/package.json
packages/guard/package.json
packages/indexer/package.json
packages/metadata/package.json
packages/migration/package.json
packages/multicall/package.json
packages/network/package.json
packages/provider/package.json
packages/react-native/package.json
packages/relayer/package.json
packages/replacer/package.json
packages/sessions/package.json
packages/signhub/package.json
packages/simulator/package.json
packages/tests/package.json
packages/utils/package.json
packages/waas/package.json
packages/waas-ethers/package.json
packages/wallet/package.json
packages/core/src/version.ts
packages/0xsequence/CHANGELOG.md
packages/abi/CHANGELOG.md
packages/account/CHANGELOG.md
packages/api/CHANGELOG.md
packages/auth/CHANGELOG.md
packages/core/CHANGELOG.md
packages/deployer/CHANGELOG.md
packages/estimator/CHANGELOG.md
packages/guard/CHANGELOG.md
packages/indexer/CHANGELOG.md
packages/metadata/CHANGELOG.md
packages/migration/CHANGELOG.md
packages/multicall/CHANGELOG.md
packages/network/CHANGELOG.md
packages/provider/CHANGELOG.md
packages/react-native/CHANGELOG.md
packages/relayer/CHANGELOG.md
packages/replacer/CHANGELOG.md
packages/sessions/CHANGELOG.md
packages/signhub/CHANGELOG.md
packages/simulator/CHANGELOG.md
packages/tests/CHANGELOG.md
packages/utils/CHANGELOG.md
packages/waas/CHANGELOG.md
packages/waas-ethers/CHANGELOG.md
packages/wallet/CHANGELOG.md
Adjust root tooling dependencies, add new runtime libraries, and tighten security via resolutions and build-time options.
  • Upgrade hardhat and puppeteer devDependencies and add vitest for testing.
  • Add new runtime dependencies @tanstack/react-query, geth, viem 2.x, and a wagmi canary version at the root level.
  • Extend pnpm overrides/resolutions with additional security patches for semver, webpack-dev-middleware, tar, tough-cookie, braces, and multiple ws ranges.
  • Configure onlyBuiltDependencies for native/SCA-sensitive packages to optimize builds and security posture.
  • Touch pnpm-lock.yaml to reflect the dependency graph changes (content not shown).
package.json
pnpm-lock.yaml
Introduce CI/CD and security workflows along with issue templates and security policy documentation.
  • Add a GitHub Actions workflow to run Fortify AST SAST scans on pushes, PRs, schedules, and manual dispatch.
  • Add an Azure Pipelines configuration to build the Node.js project on master using Node 10.x.
  • Create SECURITY.md describing supported versions and vulnerability reporting process (currently template text).
  • Add standard GitHub issue templates for bug reports, feature requests, and a custom template placeholder.
.github/workflows/fortify.yml
azure-pipelines.yml
SECURITY.md
.github/ISSUE_TEMPLATE/bug_report.md
.github/ISSUE_TEMPLATE/feature_request.md
.github/ISSUE_TEMPLATE/custom.md
Add repository metadata and auxiliary files for deployment and tooling caches.
  • Add a CNAME file for custom domain configuration (content not shown).
  • Introduce CodeSandbox tasks configuration placeholder.
  • Check in v8-compile-cache artifacts for preconstruct CLI (likely generated build artifacts).
CNAME
.codesandbox/tasks.json
v8-compile-cache-0/x64/11.3.244.8-node.19/zSprojectzSsequence.jszSnode_moduleszS.pnpmzS@preconstruct+cli@2.8.7zSnode_moduleszS@preconstructzSclizSbin.js.MAP
v8-compile-cache-0/x64/11.3.244.8-node.19/zSprojectzSworkspacezSnode_moduleszS.pnpmzS@preconstruct+cli@2.8.7zSnode_moduleszS@preconstructzSclizSbin.js.MAP

Possibly linked issues

  • Feature/integration #17: PR directly implements the issue’s wagmi React project, dependency upgrades, SECURITY policy, and Azure/Fortify pipeline setup.
  • Fix merge branch 0xsequence/master #86: They match: both add wagmi demo app with config/connectors plus security policies, CI workflows, and dependency updates.

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@vercel
Copy link

vercel bot commented Mar 6, 2026

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

Project Deployment Actions Updated (UTC)
sequence-js-docs Error Error Mar 6, 2026 0:55am
sequence-js-web Error Error Mar 6, 2026 0:55am
sequence.js Ready Ready Preview, Comment Mar 6, 2026 0:55am
wagmi-project Ready Ready Preview, Comment Mar 6, 2026 0:55am

@vercel vercel bot temporarily deployed to Preview – sequence.js March 6, 2026 12:52 Inactive
@snyk-io
Copy link

snyk-io bot commented Mar 6, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
🔚 Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

Copy link

@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.

Hey - I've found 4 issues, and left some high level feedback:

  • The new wagmi-project uses latest versions for viem, wagmi, and @wagmi/cli, which can introduce non-deterministic builds and version drift from the root project; consider pinning explicit versions and aligning them with the top-level dependencies.
  • The added v8-compile-cache-0 directory, .codesandbox tasks, and CNAME look like environment- or tooling-specific artifacts rather than source; please confirm they’re intended to be versioned and, if not, remove them and/or update .gitignore accordingly.
  • The new CI configs (Fortify workflow and azure-pipelines.yml) target master and in the Azure pipeline use Node 10.x, which is EOL and likely incompatible with current tooling; verify branch names and upgrade the Node version to match what the repo actually supports.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- The new `wagmi-project` uses `latest` versions for `viem`, `wagmi`, and `@wagmi/cli`, which can introduce non-deterministic builds and version drift from the root project; consider pinning explicit versions and aligning them with the top-level dependencies.
- The added `v8-compile-cache-0` directory, `.codesandbox` tasks, and `CNAME` look like environment- or tooling-specific artifacts rather than source; please confirm they’re intended to be versioned and, if not, remove them and/or update `.gitignore` accordingly.
- The new CI configs (Fortify workflow and `azure-pipelines.yml`) target `master` and in the Azure pipeline use Node 10.x, which is EOL and likely incompatible with current tooling; verify branch names and upgrade the Node version to match what the repo actually supports.

## Individual Comments

### Comment 1
<location path="wagmi-project/src/wagmi.ts" line_range="10" />
<code_context>
+  connectors: [
+    injected(),
+    coinbaseWallet(),
+    walletConnect({ projectId: import.meta.env.VITE_WC_PROJECT_ID }),
+  ],
+  transports: {
</code_context>
<issue_to_address>
**issue:** Handle missing or misconfigured `VITE_WC_PROJECT_ID` to avoid runtime failures.

If `import.meta.env.VITE_WC_PROJECT_ID` is undefined or empty, `walletConnect` will likely throw at runtime and break the connect UI. Please validate this env var and either:

- Fail fast with a clear error when building `config`, or
- Omit the WalletConnect connector and show a user-friendly message.

This will surface misconfiguration issues earlier, especially in non-local environments.
</issue_to_address>

### Comment 2
<location path="azure-pipelines.yml" line_range="13-15" />
<code_context>
+  vmImage: ubuntu-latest
+
+steps:
+- task: NodeTool@0
+  inputs:
+    versionSpec: '10.x'
+  displayName: 'Install Node.js'
+
</code_context>
<issue_to_address>
**issue (bug_risk):** Using Node.js 10.x in CI is likely incompatible with the current toolchain and is EOL.

Many dependencies in this repo (TypeScript, Vite, wagmi, etc.) require a much newer Node (typically >=16 or >=18), so installs/builds on Node 10 will likely fail or be flaky. Please update `versionSpec` to the Node version actually used/supported (e.g. `18.x` or `20.x`) so CI matches your development/production environment.
</issue_to_address>

### Comment 3
<location path="wagmi-project/src/main.tsx" line_range="12" />
<code_context>
+
+import './index.css'
+
+globalThis.Buffer = Buffer
+
+const queryClient = new QueryClient()
</code_context>
<issue_to_address>
**suggestion (bug_risk):** Guard the Buffer polyfill assignment to avoid clobbering an existing implementation.

Unconditionally assigning `globalThis.Buffer = Buffer` may overwrite an existing implementation from the runtime or another polyfill. Consider guarding this to avoid conflicts:

```ts
if (typeof globalThis.Buffer === 'undefined') {
  globalThis.Buffer = Buffer
}
```

```suggestion
if (typeof globalThis.Buffer === 'undefined') {
  globalThis.Buffer = Buffer
}
```
</issue_to_address>

### Comment 4
<location path="SECURITY.md" line_range="3-12" />
<code_context>
+# Security Policy
+
+## Supported Versions
+
+Use this section to tell people about which versions of your project are
+currently being supported with security updates.
+
+| Version | Supported          |
+| ------- | ------------------ |
+| 5.1.x   | :white_check_mark: |
+| 5.0.x   | :x:                |
+| 4.0.x   | :white_check_mark: |
+| < 4.0   | :x:                |
+
+## Reporting a Vulnerability
</code_context>
<issue_to_address>
**issue:** Customize the supported versions table and placeholder text to reflect this project's actual security support policy.

This section still uses the default GitHub template (e.g., 5.x/4.x) and doesn’t align with this repo’s actual versions (e.g., 2.0.0, 1.x). Please replace the placeholder text and version ranges with the real security support matrix so users know which releases still receive fixes.
</issue_to_address>

Fix all in Cursor


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

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

Warning

Gemini is experiencing higher than usual traffic and was unable to create the summary. Please try again in a few hours by commenting /gemini summary.

@Dargon789 Dargon789 self-assigned this Mar 7, 2026
@Dargon789 Dargon789 added bug Something isn't working documentation Improvements or additions to documentation duplicate This issue or pull request already exists enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers dependencies Pull requests that update a dependency file labels Mar 7, 2026
@github-project-automation github-project-automation bot moved this to Backlog in Hardhat Mar 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation duplicate This issue or pull request already exists enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Projects

Status: Backlog
Status: Todo

Development

Successfully merging this pull request may close these issues.

# Sequence diagram for ChainSessionManager cached signed call reuse on relay

1 participant