Skip to content

Codesandbox dev#586

Merged
Dargon789 merged 10 commits into
0xsequence-sdkfrom
codesandbox-dev
May 23, 2026
Merged

Codesandbox dev#586
Dargon789 merged 10 commits into
0xsequence-sdkfrom
codesandbox-dev

Conversation

@Dargon789
Copy link
Copy Markdown
Owner

@Dargon789 Dargon789 commented May 22, 2026

Summary by Sourcery

Add a new example wagmi-based Vite React app and introduce security scanning and issue management infrastructure.

New Features:

  • Introduce a wagmi-based Vite React demo application with wallet connectors and basic account UI.

Enhancements:

  • Document a new major 2.0.0 release entry in the indexer service changelog.

Build:

  • Add Vite, TypeScript, and Biome configuration for the new wagmi demo project.

CI:

  • Add a Fortify AST GitHub Actions workflow for SAST scanning on master and PRs.
  • Add an Azure Pipelines configuration to build the Node.js project on master.

Documentation:

  • Add a SECURITY policy document outlining supported versions and vulnerability reporting.
  • Add GitHub issue templates for bug reports, feature requests, and custom issues.
  • Document the wagmi Vite starter app with a minimal README.

Chores:

  • Check in additional project metadata and environment files for Codesandbox, CNAME, and cached artifacts.

Dargon789 and others added 9 commits March 6, 2026 12:54
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@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>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Signed-off-by: Dargon789 <64915515+Dargon789@users.noreply.github.com>
* Bump next from 15.5.14 to 15.5.15 (0xsequence#989)

Bumps [next](https://github.com/vercel/next.js) from 15.5.14 to 15.5.15.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](vercel/next.js@v15.5.14...v15.5.15)

---
updated-dependencies:
- dependency-name: next
  dependency-version: 15.5.15
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Update to latest pnpm

* 3.0.8

* Fix fee options stub signature (0xsequence#999)

* 3.0.9

* Enforce minimum age limitation for packages

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Taylan Pince <taylanpince@gmail.com>
Co-authored-by: tolgahan-arikan <tolgahan.arikan@gmail.com>
@bolt-new-by-stackblitz
Copy link
Copy Markdown

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

@codesandbox
Copy link
Copy Markdown

codesandbox Bot commented May 22, 2026

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@vercel
Copy link
Copy Markdown

vercel Bot commented May 22, 2026

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

Project Deployment Actions Updated (UTC)
sequence-js-docs Canceled Canceled May 23, 2026 5:04am
sequence-js-web Canceled Canceled May 23, 2026 5:04am
sequence.js Ready Ready Preview, Comment May 23, 2026 5:04am
wagmi-project Ready Ready Preview, Comment May 23, 2026 5:04am

@sourcery-ai
Copy link
Copy Markdown

sourcery-ai Bot commented May 22, 2026

Reviewer's Guide

Adds a new wagmi-based Vite demo project for wallet connection (likely for CodeSandbox dev), introduces Fortify AST and Azure Pipelines CI workflows plus GitHub issue/security templates, and updates the indexer changelog for a 2.0.0 release placeholder along with various sandbox/config/cache files.

Sequence diagram for wallet connection flow in wagmi App

sequenceDiagram
  actor User
  participant App
  participant useConnect

  User ->> App: click connector button
  App ->> useConnect: connect(connector)
  alt [connection succeeds]
    useConnect -->> App: status=connected
  else [connection fails]
    useConnect -->> App: error.message
  end
  App -->> User: render account.status and addresses
Loading

Flow diagram for React app bootstrapping with Wagmi and React Query

flowchart LR
  Browser --> ReactDOM_root
  ReactDOM_root --> WagmiProvider
  WagmiProvider --> QueryClientProvider
  QueryClientProvider --> App
  WagmiProvider --> Wagmi_config
  App --> useAccount
  App --> useConnect
  App --> useDisconnect
Loading

File-Level Changes

Change Details Files
Introduce a wagmi-based Vite React demo app for wallet connections (CodeSandbox-style dev environment).
  • Add a Vite React entry point that bootstraps React, WagmiProvider, QueryClientProvider, and polyfills Buffer on globalThis
  • Implement an App component that displays wagmi account status and allows connecting/disconnecting via injected, Coinbase Wallet, and WalletConnect connectors
  • Configure wagmi with mainnet and sepolia chains, HTTP transports, and connectors including WalletConnect with projectId from Vite env
  • Add Vite config, TypeScript configs, basic dark/light CSS, HTML shell, and project metadata (package.json, README, gitignore, npmrc, biome config, vite env types) for the wagmi project
wagmi-project/src/main.tsx
wagmi-project/src/App.tsx
wagmi-project/src/wagmi.ts
wagmi-project/src/index.css
wagmi-project/src/vite-env.d.ts
wagmi-project/index.html
wagmi-project/vite.config.ts
wagmi-project/tsconfig.json
wagmi-project/tsconfig.node.json
wagmi-project/package.json
wagmi-project/README.md
wagmi-project/.gitignore
wagmi-project/.npmrc
wagmi-project/biome.json
Add Fortify Application Security Testing GitHub Actions workflow for SAST scanning.
  • Create a Fortify AST Scan GitHub Actions workflow triggered on pushes, PRs to master, scheduled cron, and manual dispatch
  • Configure job permissions, Java 17 setup, and use fortify/github-action to run SAST scan against Fortify on Demand with secrets-based configuration hooks
.github/workflows/fortify.yml
Add Azure Pipelines definition for basic Node.js build.
  • Configure pipeline trigger on master branch using ubuntu-latest agent
  • Install Node.js 10.x via NodeTool task and run npm install and npm run build
azure-pipelines.yml
Introduce repository governance and security meta-files (issue templates and security policy).
  • Add bug report, feature request, and custom GitHub issue templates
  • Add a SECURITY.md with version support matrix and placeholder instructions for reporting vulnerabilities
.github/ISSUE_TEMPLATE/bug_report.md
.github/ISSUE_TEMPLATE/feature_request.md
.github/ISSUE_TEMPLATE/custom.md
SECURITY.md
Update indexer service changelog with 2.0.0 placeholder entry.
  • Add new 2.0.0 section with a Major Changes heading and a placeholder item indicating a changeset
packages/services/indexer/CHANGELOG.md
Add miscellaneous project/environment artifacts for hosting and tooling.
  • Add CodeSandbox tasks configuration file placeholder
  • Add CNAME and v8-compile-cache artifacts likely from a previous run/environment
.codesandbox/tasks.json
CNAME
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: They describe the same wagmi integration and repo setup: wagmi project, SECURITY.md, Azure pipeline, and placeholders.

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

@snyk-io
Copy link
Copy Markdown

snyk-io Bot commented May 22, 2026

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

Status Scan Engine 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
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.

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

  • Consider excluding generated and environment-specific artifacts like v8-compile-cache-0/**, .codesandbox/tasks.json, and CNAME from source control (e.g., via .gitignore) to avoid bloating the repo with cache and hosting-specific files.
  • The Azure pipeline is pinned to Node 10 (versionSpec: '10.x'), which is EOL; aligning this with the Node version your project actually uses (e.g., a current LTS) will prevent future incompatibilities and security issues.
  • In wagmi-project/src/wagmi.ts, walletConnect depends on import.meta.env.VITE_WC_PROJECT_ID; you may want to add a guard or fallback to avoid runtime failures when this env var is missing or misconfigured.
Prompt for AI Agents
Please address the comments from this code review:

## Overall Comments
- Consider excluding generated and environment-specific artifacts like `v8-compile-cache-0/**`, `.codesandbox/tasks.json`, and `CNAME` from source control (e.g., via `.gitignore`) to avoid bloating the repo with cache and hosting-specific files.
- The Azure pipeline is pinned to Node 10 (`versionSpec: '10.x'`), which is EOL; aligning this with the Node version your project actually uses (e.g., a current LTS) will prevent future incompatibilities and security issues.
- In `wagmi-project/src/wagmi.ts`, `walletConnect` depends on `import.meta.env.VITE_WC_PROJECT_ID`; you may want to add a guard or fallback to avoid runtime failures when this env var is missing or misconfigured.

## Individual Comments

### Comment 1
<location path="azure-pipelines.yml" line_range="15" />
<code_context>
+steps:
+- task: NodeTool@0
+  inputs:
+    versionSpec: '10.x'
+  displayName: 'Install Node.js'
+
</code_context>
<issue_to_address>
**🚨 issue (security):** Node.js 10.x in the pipeline is EOL and likely incompatible with this toolchain

This stack (Vite 5, TypeScript 5, React 18) expects at least Node 16, ideally 18+. Node 10 is EOL, insecure, and likely to break the build. Please update `versionSpec` to a supported LTS (e.g. `18.x` or `20.x`).
</issue_to_address>

### Comment 2
<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>
**suggestion:** No guard around `VITE_WC_PROJECT_ID` could cause runtime failures when missing or misconfigured

Consider validating `import.meta.env.VITE_WC_PROJECT_ID` at startup and either disabling the WalletConnect connector or throwing a clear configuration error when it’s missing/invalid, so failures are deterministic and not triggered deep in the connector logic.

Suggested implementation:

```typescript
const walletConnectProjectId = import.meta.env.VITE_WC_PROJECT_ID

if (!walletConnectProjectId) {
  // WalletConnect is disabled when the project ID is not configured
  console.warn(
    '[wagmi] WalletConnect disabled: VITE_WC_PROJECT_ID is not set or invalid.',
  )
}

export const config = createConfig({

```

```typescript
  connectors: [
    injected(),
    coinbaseWallet(),
    ...(walletConnectProjectId
      ? [walletConnect({ projectId: walletConnectProjectId })]
      : []),
  ],

```
</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.

Comment thread azure-pipelines.yml
Comment thread wagmi-project/src/wagmi.ts
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 introduces a new project structure, including a Vite-based web application, Azure Pipelines configuration, and repository metadata like issue templates. The review identifies several critical issues: the CI pipeline uses an obsolete Node.js version (10.x) incompatible with the modern stack, environment-specific build artifacts were mistakenly committed, the WalletConnect project ID requires validation to prevent runtime errors, and dependencies should be pinned rather than using the 'latest' tag to ensure build stability.

Comment thread azure-pipelines.yml
Comment thread wagmi-project/src/wagmi.ts
Comment thread wagmi-project/package.json Outdated
@vercel
Copy link
Copy Markdown

vercel Bot commented May 23, 2026

Deployment failed with the following error:

Resource is limited - try again in 24 hours (more than 100, code: "api-deployments-free-per-day").

Learn More: https://vercel.com/dargon789-forge?upgradeToPro=build-rate-limit

@vercel vercel Bot temporarily deployed to Preview – sequence-js-docs May 23, 2026 05:04 Inactive
@vercel vercel Bot temporarily deployed to Preview – sequence-js-web May 23, 2026 05:04 Inactive
@Dargon789 Dargon789 merged commit b3b0a9c into 0xsequence-sdk May 23, 2026
13 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants