https://github.com/maksandre/try-eip-7702
https://github.com/maksandre/try-eip-7702
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/maksandre/try-eip-7702
- Owner: Maksandre
- Created: 2025-06-23T13:54:43.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-01T08:54:24.000Z (12 months ago)
- Last Synced: 2025-10-10T17:08:52.222Z (9 months ago)
- Language: Solidity
- Size: 33.2 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# EIP-7702 Code Examples
A collection of code examples demonstrating EIP-7702 (Externally Owned Account to Smart Contract Wallet) functionality.
## What is EIP-7702?
EIP-7702 enables EOAs to temporarily become smart contract wallets by setting their code, allowing for advanced wallet features while maintaining EOA simplicity.
## Setup
```sh
# Install dependencies
forge soldeer install
yarn install
```
## Structure
- **Contracts**: `src/` - Smart wallet implementations and examples
- **Tests**: `test/` - Foundry and TypeScript test suites
- **Examples**: Social recovery, batch operations, collision prevention
## Usage
```sh
# Run Foundry tests
forge test
# Run TypeScript tests
yarn test
# Start local node (Prague hardfork)
yarn anvil
```
## Available Scripts
- `yarn test` - Run TypeScript tests with Vitest
- `yarn test:run` - Run tests once
- `yarn test:ui` - Run tests with UI
- `yarn test:forge` - Run Foundry tests
- `yarn anvil` - Start local node with Prague hardfork