feat: add 7702 support#57
Open
zy0n wants to merge 1 commit into
Open
Conversation
chore: update 7702 deployment config feat: add relay adapt 7702 execute nonce config feat: implement historical relay adapt 7702 address checks and update network configuration
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.
This pull request adds support for the Relay Adapt 7702 contract across mainnet and testnet networks, updates contract addresses, and enhances network configuration and type safety for 7702 support. It also introduces new utility functions and tests for handling historical 7702 contract addresses.
Network Configuration and Contract Address Updates:
relayAdapt7702ContractandrelayAdapt7702Historyfor all mainnet and testnet networks, including historical deployments. Also added a new boolean propertyrelayAdapt7702SupportsExecuteNonceto theNetworktype and configuration, and setsupports7702totruefor all mainnets and Hardhat. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13]RelayAdaptContract,BaseTokenWrappedAddress, andRailgunRegistryContract. Added comments for reference addresses. [1] [2] [3] [4]Type and Model Enhancements:
Networktype to include the newrelayAdapt7702SupportsExecuteNonceproperty.relayAdapt7702property toBroadcasterFeeMessageDataandCachedTokenFeetypes to support 7702-specific fee data. [1] [2]Utility Functions and Testing:
isHistoricalRelayAdapt7702ContractAddressutility to check if a contract address is part of the 7702 contract history for a network, and added comprehensive tests for this function. [1] [2] [3]Code Cleanup:
EVMGasTypeimport frombroadcaster.ts.