runtimeverification / runtimeverification/kontrol

Support `ffi` cheatcode

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

Nobody has claimed this yet.

engagement enhancement
Dominant language
Python
Stars
122
Forks
16
PR merge metrics
No merged PRs in 30d

Description

Add support for the vm.ffi cheatcode that allows calling an arbitrary command if ffi is enabled:

function ffi(string[] calldata) external returns (bytes memory);

One way to emulate ffi is to return a symbolic value.

Contributor guide

Open the contributing guide

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 the issue description and the linked Foundry ffi documentation to understand the enabled-command behavior and the vm.ffi signature. Then locate Kontrol's cheatcode handling and existing symbolic-value support; done means vm.ffi is recognized and returns a symbolic value when ffi is enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, solidity
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.