lambdaclass / lambdaclass/eth-agent
Add fuzz/property testing for ABI encoding
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 10
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
Problem
ABI encoding/decoding is complex but only has unit tests. Property-based testing would catch edge cases.
Location
src/core/abi.ts
Recommendation
Add fast-check property tests for:
- encode/decode round-trip for all types
- Random nested arrays
- Edge cases: max uint256, empty arrays, long strings
- Comparison with reference implementation (ethers/viem)
Priority
Testing - Coverage for complex logic
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with src/core/abi.ts and its existing unit tests to understand the ABI encoding and decoding cases already covered. Add fast-check properties for round trips, nested arrays, and the listed edge cases, then compare results with ethers or viem. Done means the property tests run reliably and cover the recommended cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100