Skip to content

Conversation

@snf
Copy link
Member

@snf snf commented Jan 2, 2026

No description provided.

Your Name added 5 commits December 30, 2025 02:39
BREAKING CHANGE: Replace ethers-rs with alloy for RPC/contract layer

- Replace ethers-providers/contract/core/signers with alloy 1.2
- Replace abigen! macro with sol! macro for contract bindings
- Change get_proxy_implementation signature: Middleware -> Provider trait
- Remove EARGlue trait and all ethers type conversion helpers from utils
- Update CLI to use alloy ProviderBuilder and Address type
- Update ADDR_MASK constant from H256/B256 to U256

Public API changes:
- get_proxy_implementation<P: Provider> (was M: Middleware)
- ProxyImplementation and ProxyReadError now exported from lib
- utils module only exports byte manipulation helpers

All 9 tests passing.
- Fix Cargo.toml metadata (authors, description, license, keywords)
- Rename enum variants to follow Rust conventions (EIP_1167 -> Eip1167)
- Rename ProxyDispatch to Dispatch with backward compat alias
- Add Detection struct for cleaner return types
- Add crate-level documentation with EIP links and examples
- Add documentation to all public types
- Simplify utils.rs using std lib functions
- Fix all clippy warnings
- Remove dead code and commented blocks
- Update README with badges, installation, and usage examples
Comprehensive research of 15+ proxy patterns not currently supported:
- P0 Critical: Safe Proxy, ERC-6551, Compound Unitroller
- P1 High: CWIA variants, 0age, Vyper Beta, Solady PUSH0
- P2 Medium: Sequence Wallet, 0xSplits, ERC-1538/3561
- P3 Emerging: ERC-7702, ERC-7760, ERC-7546

Includes detection methods, bytecode patterns, storage slots,
and phased implementation roadmap.
Performance-oriented implementation using static bytecode pattern matching
(no EVM emulation required) for the following proxy types:

New ProxyType variants:
- GnosisSafe: Safe multisig proxy (slot 0 storage)
- Eip6551: Token Bound Accounts (EIP-1167 + NFT metadata)
- CompoundUnitroller: Compound-style proxy (slot 2 storage)
- ZeroAgeMinimal: 0age's 44-byte minimal proxy
- VyperBeta: Pre-EIP-1167 Vyper proxy (Uniswap V1 style)
- SoladyPush0: Post-Shanghai PUSH0 optimization
- ClonesWithImmutableArgs: CWIA factory pattern
- SequenceWallet: Self-address storage key proxy
- ZeroXSplitsClones: 0xSplits payment splitting proxy

New Dispatch variants:
- Static6551: ERC-6551 with chain_id, token_contract, token_id
- SelfAddressSlot: Sequence-style storage[address(this)]

All patterns are detected statically before falling back to EVM
emulation, ensuring optimal performance for common proxy types.

Includes 8 new integration tests covering all new patterns.
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