dapphub / dapphub/dapptools

cheat code: `getMethodFor(address contract, bytes32 regex, uint seed)`

Open
#485 6 comments 0 reactions 0 assignees View on GitHub
cool
Dominant language
Haskell
Stars
2.1k
Forks
320
PR merge metrics
No merged PRs in 30d

Description

A cheat code:
`getMethodFor(address contract, bytes32 regex, uint seed) returns(bytes)`
could be used in testing (especially fuzzing) to create a valid call to any method of the contract `contract` (which we assume we have the source code for, otherwise fail) which matches the `regex`, pseudorandomly generated based on the seed

Contributor guide

No contributing guide indexed for this repository

Research direction

No files, tests, or entry points are named. Start by locating the existing cheat-code and fuzzing entry points, then inspect how contract source and method signatures are represented. Done means the proposed cheat code can generate a seeded valid call for a matching contract method and fails when source code is unavailable.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell, solidity
Domain
blockchain, testing, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.