lambdaclass / lambdaclass/eth-agent

Add fuzz/property testing for ABI encoding

Open
#27 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

testing
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.