Skip to content

Conversation

@zy0n
Copy link
Contributor

@zy0n zy0n commented Jan 7, 2026

This pull request introduces support for the new RelayAdapt7702 and RelayAdapt7702Deployer contracts, including their ABIs, typechain interfaces, contract wrappers, and integration into the contract registry and versioned contract selection logic. It also updates dependencies to ensure compatibility with these changes.

New contract support

  • Added the ABI files for RelayAdapt7702 and RelayAdapt7702Deployer, and imported them in src/abi/abi.ts for use throughout the codebase. [1] [2] [3]
  • Generated and added the typechain interface and factory for RelayAdapt7702Deployer, enabling typed interactions with the contract. [1] [2]
  • Implemented the contract wrapper class RelayAdapt7702DeployerContract to facilitate contract calls, such as checking deployment status.

Contract registry and selection logic

  • Registered RelayAdapt7702Contract and RelayAdapt7702DeployerContract in the ContractStore, making them accessible for chain-specific operations.
  • Updated the versioned contract selector in RailgunVersionedSmartContracts to optionally return the RelayAdapt7702Contract based on a new flag, improving flexibility for future upgrades.

Test and dependency updates

  • Updated the ethers dependency to version 6.14.3 in package.json for compatibility with new contract features.
  • Modified test setup to include addresses for the new relay adapt contracts, ensuring tests cover the new functionality.

Exports and helper integration

  • Added exports for new helper and type files related to RelayAdapt7702 in the relay-adapt module index for easier usage across the codebase.

zy0n added 3 commits January 7, 2026 15:22
- Implement RelayAdapt7702Helper for generating transactions.
- Create tests for RelayAdapt7702Helper to ensure correct request generation.
- Introduce deriveEphemeralWallet function for ephemeral key derivation.
- Add EIP-7702 signing functionality with signEIP7702Authorization.
- Implement execution signature signing with signExecutionAuthorization.
- Define RelayAdapt7702Request type for structured transaction requests.
- Update index files to export new modules and types.
- Add tests for ephemeral key derivation and EIP-7702 signing.

feat: export RelayAdapt and RelayAdapt7702 related types and factories

feat: implement RelayAdapt7702 validation and ephemeral wallet functionality

feat: add RelayAdapt7702 integration tests and update helper methods

Refactor RelayAdapt7702Contract methods to streamline ephemeral address handling and enhance test coverage for cross contract calls

Add methods for handling ephemeral addresses and signing EIP-7702 requests in RailgunWallet

feat: Add ShieldLegacy event and update RailgunSmartWallet interface

- Introduced ShieldLegacy event in RailgunSmartWallet with appropriate input and output types.
- Updated existing methods in RailgunSmartWallet to change state mutability from "payable" to "nonpayable".
- Modified RailgunSmartWallet factory to include the new ShieldLegacy event in the ABI.
- Refactored RelayAdapt7702 factory to simplify the structure and remove unnecessary constructor logic.
- Updated RelayAdapt7702Contract and RelayAdapt7702Helper to use the new ABI structure.

feat: Add RelayAdapt7702Deployer contract and related ABI files

- Introduced RelayAdapt7702Deployer contract with functions for deployment and ownership management.
- Added ABI JSON file for RelayAdapt7702Deployer.
- Updated typechain files to include RelayAdapt7702Deployer interface and factory.
- Enhanced RelayAdapt7702 interface with new function signatures and events.
- Modified transaction signature handling to accommodate new execute function signature.

feat: Integrate RelayAdapt7702 and RelayAdapt7702Deployer contracts into the engine
@socket-security
Copy link

socket-security bot commented Jan 7, 2026

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedethers@​6.13.1 ⏵ 6.14.39810010087100

View full report

@zy0n zy0n requested a review from bhflm January 8, 2026 02:00
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.

2 participants