Title
Add account abstraction examples and test suite
Labels
documentation, examples, testing, account-abstraction
Description
Create comprehensive examples and tests demonstrating ERC-4337 account abstraction features in zigeth.
Requirements
Example Programs
examples/aa_01_simple_account.zig
examples/aa_02_sponsored_tx.zig
examples/aa_03_batch_operations.zig
examples/aa_04_session_keys.zig
examples/aa_05_social_recovery.zig
examples/aa_06_complete_workflow.zig
Unit Tests
UserOperation Tests
Bundler Client Tests
Account Tests
Gas Estimation Tests
Integration Tests
Documentation
Test Network Setup
Benchmarks
Example Scenarios to Cover
- First-time user onboarding (no gas needed)
- Mobile wallet (using session keys)
- DeFi operations (batch approve + swap)
- NFT minting (sponsored by project)
- DAO voting (gasless votes)
- Subscription payments (automated recurring)
- Multi-sig operations (threshold signatures)
- Account recovery (social recovery)
References
Title
Add account abstraction examples and test suite
Labels
documentation,examples,testing,account-abstractionDescription
Create comprehensive examples and tests demonstrating ERC-4337 account abstraction features in zigeth.
Requirements
Example Programs
examples/aa_01_simple_account.zigexamples/aa_02_sponsored_tx.zigexamples/aa_03_batch_operations.zigexamples/aa_04_session_keys.zigexamples/aa_05_social_recovery.zigexamples/aa_06_complete_workflow.zigUnit Tests
UserOperation Tests
test/user_operation_test.zig:Bundler Client Tests
test/bundler_test.zig:Account Tests
test/smart_account_test.zig:Gas Estimation Tests
test/gas_estimation_test.zig:Integration Tests
test/integration/aa_integration_test.zig:Documentation
Add
docs/account_abstraction.md:Update main README:
Test Network Setup
Benchmarks
Example Scenarios to Cover
References