support x-layer#162
Open
koo-virtuals wants to merge 4 commits intomainfrom
Open
Conversation
twx-virtuals
previously approved these changes
Apr 27, 2026
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 0e985b9. Configure here.
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.

Note
High Risk
High risk because it introduces new token-bound account (ERC-6551) + ERC-4337 execution and upgrade authorization logic, which is security-critical and easy to misconfigure. Also adds new network/verification settings for X Layer that could affect deployments and contract verification behavior.
Overview
Adds a new token-bound account stack under
contracts/tba, includingAccountV3/AccountV3Upgradable, a localERC6551Registry, and supporting modules for locking, permissioned execution, selector overrides via a sandbox, and batch/nested execution, with signature validation supporting both EOA and contract signatures plus ERC-4337EntryPointintegration.Updates Hardhat configuration to support X Layer (chainIds
1952/196) with OKLink verification (@okxweb3/hardhat-explorer-verify/okverify), adds the new networks/RPC defaults and hardfork histories, and expands Solidity compiler config to include multiple versions for verification compatibility.Updates
.openzeppelinmanifests (and adds a new one for chain1952) to record additional proxy/implementation deployments and storage layouts for the new/updated on-chain contracts.Reviewed by Cursor Bugbot for commit 6ea4de4. Bugbot is set up for automated code reviews on this repo. Configure here.