Skip to content

Comments

Merge branch 'v1' into 0xsequence/master#105

Merged
Dargon789 merged 1 commit intomasterfrom
0xsequence/master
Dec 13, 2025
Merged

Merge branch 'v1' into 0xsequence/master#105
Dargon789 merged 1 commit intomasterfrom
0xsequence/master

Conversation

@Dargon789
Copy link
Owner

@Dargon789 Dargon789 commented Dec 13, 2025

Summary by Sourcery

Release version 1.10.15 across the monorepo packages.

New Features:

  • Introduce the extractProjectIdFromAccessKey utility and expose it across relevant packages.

Enhancements:

  • Bump all 0xsequence packages and internal dependencies from 1.10.14 to 1.10.15, including the core version constant and changelogs.

@codesandbox
Copy link

codesandbox bot commented Dec 13, 2025

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@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 Dec 13, 2025

Reviewer's Guide

Bumps all Sequence monorepo packages from 1.10.14 to 1.10.15 and records the 1.10.15 patch release in each package’s changelog, centering around a new shared utility utils: extractProjectIdFromAccessKey.

Flow diagram for the 1.10.15 patch release and version bump

flowchart LR
  A["Codebase at version 1.10.14"] --> B["Implement utils.extractProjectIdFromAccessKey in @0xsequence/utils"]
  B --> C["Update internal packages to use the shared utility where needed"]
  C --> D["Bump package versions from 1.10.14 to 1.10.15 in package.json"]
  D --> E["Record 1.10.15 entries in each package CHANGELOG (mentioning extractProjectIdFromAccessKey)"]
  E --> F["Update core VERSION constant to 1.10.15"]
  F --> G["Publish 1.10.15 packages to registry"]
Loading

File-Level Changes

Change Details Files
Document the 1.10.15 patch release across all packages, highlighting the new utils helper and aligned dependency versions.
  • Add a 1.10.15 Patch Changes section to each package’s CHANGELOG noting utils: extractProjectIdFromAccessKey and updated dependencies where applicable
  • Update the root 0xsequence CHANGELOG to include the 1.10.15 release entry with the same utility and dependency bumps
  • Ensure every package.json version is incremented from 1.10.14 to 1.10.15, including the umbrella 0xsequence package
packages/0xsequence/CHANGELOG.md
packages/auth/CHANGELOG.md
packages/provider/CHANGELOG.md
packages/account/CHANGELOG.md
packages/wallet/CHANGELOG.md
packages/guard/CHANGELOG.md
packages/network/CHANGELOG.md
packages/estimator/CHANGELOG.md
packages/migration/CHANGELOG.md
packages/multicall/CHANGELOG.md
packages/relayer/CHANGELOG.md
packages/sessions/CHANGELOG.md
packages/replacer/CHANGELOG.md
packages/waas/CHANGELOG.md
packages/core/CHANGELOG.md
packages/deployer/CHANGELOG.md
packages/react-native/CHANGELOG.md
packages/signhub/CHANGELOG.md
packages/simulator/CHANGELOG.md
packages/tests/CHANGELOG.md
packages/waas-ethers/CHANGELOG.md
packages/abi/CHANGELOG.md
packages/api/CHANGELOG.md
packages/indexer/CHANGELOG.md
packages/metadata/CHANGELOG.md
packages/utils/CHANGELOG.md
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-ethers/package.json
packages/waas/package.json
packages/wallet/package.json
packages/core/src/version.ts

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

snyk-io bot commented Dec 13, 2025

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.

Repository owner deleted a comment from vercel bot Dec 13, 2025
@gemini-code-assist
Copy link

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 primarily focuses on a routine version increment for all packages in the 0xsequence monorepo, moving them to "1.10.15". This update incorporates a new utility function, "extractProjectIdFromAccessKey", within the "utils" package, and ensures that all internal package dependencies are aligned with this new version.

Highlights

  • Version Update: All packages within the monorepo have been updated from version "1.10.14" to "1.10.15".
  • New Utility Function: A new utility, "extractProjectIdFromAccessKey", has been introduced in the "@0xsequence/utils" package.
  • Dependency Synchronization: Inter-package dependencies across the monorepo have been synchronized to reflect the new "1.10.15" version.
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

@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 there - I've reviewed your changes and they look great!


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.

@Dargon789 Dargon789 merged commit 1b479e6 into master Dec 13, 2025
37 of 43 checks passed
@Dargon789 Dargon789 deleted the 0xsequence/master branch December 13, 2025 16:07
Copy link

@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 consists of version bumps for the 1.10.15 release and updates to changelogs. The main functional change is the introduction of the extractProjectIdFromAccessKey utility.

My review found a critical issue in the implementation of this new utility. The function for extracting the project ID from an access key is flawed and will produce incorrect results for many keys due to improper handling of 64-bit integers in JavaScript and the use of a non-portable atob function. I've left a detailed comment with a suggested fix on the relevant changelog entry, as the source file itself was not part of the provided patch. It is crucial to address this before the release.


### Patch Changes

- utils: extractProjectIdFromAccessKey

Choose a reason for hiding this comment

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

critical

The new extractProjectIdFromAccessKey utility in packages/utils/src/access-key.ts has a critical bug.

  1. Incorrect 64-bit number reconstruction: The current implementation uses bitwise left shifts (<<) on JavaScript number types. These operators work on 32-bit signed integers, so any shift of 32 or more bits will produce incorrect results. This will lead to incorrect project IDs for many access keys.
  2. Non-portable atob function: The use of atob is not portable as it's a browser-specific API and is deprecated in Node.js. The @0xsequence/utils package already has js-base64 as a dependency, which should be used.
  3. Incorrect return type: The function is declared to return a number, but a 64-bit project ID can exceed Number.MAX_SAFE_INTEGER. The return type should be bigint.

Here is a corrected version of the function that addresses these issues:

import { toUint8Array } from 'js-base64'

export const extractProjectIdFromAccessKey = (accessKey: string): bigint => {
  // Convert URL-safe base64 string to standard base64 string
  const base64String = accessKey.replace(/-/g, '+').replace(/_/g, '/')

  // Decode the base64 string to a byte array
  const byteArray = toUint8Array(base64String)

  if (byteArray.length < 9) {
    throw new Error('InvalidAccessKey: too short')
  }

  if (byteArray[0] !== 1) {
    throw new Error('UnsupportedVersion')
  }

  // Extract the project ID from bytes 1 to 8 (8 bytes for a 64-bit integer)
  const projectIdBytes = byteArray.slice(1, 9)
  
  // Use DataView to read a 64-bit unsigned integer from the byte array
  const view = new DataView(projectIdBytes.buffer, projectIdBytes.byteOffset, projectIdBytes.byteLength);
  
  // false for big-endian, which matches the original logic's intent
  const projectId = view.getBigUint64(0, false);

  return projectId
}

@Dargon789 Dargon789 restored the 0xsequence/master branch December 19, 2025 17:22
@github-project-automation github-project-automation bot moved this from Todo to Done in web3-Defi-Gamefi Feb 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant