Skip to content

feat: f02 mocks - #16

Merged
wjmelements merged 15 commits into
mainfrom
f02-mocks
Aug 10, 2026
Merged

feat: f02 mocks#16
wjmelements merged 15 commits into
mainfrom
f02-mocks

Conversation

@wjmelements

@wjmelements wjmelements commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

Closes #6
Based on the #13 design

Main files are:

  • src/lib/FVMRewards.sol
  • test/mocks/FVMRewardActor.sol

These mocks, in the style of the mocks in fvm-solidity MockFVMTest's etched mocks, provide a Solidity test harness that can run in forge's EVM.

The main goal of such mocks is to match the behavior of builtin-actors, which will help test #3 and #4.
It is not important for the mocks to be efficient.

This can merge before the builtin-actors change (filecoin-project/builtin-actors#1764), but will need to be updated when that lands.

@wjmelements
wjmelements requested a review from rvagg July 31, 2026 19:18
@wjmelements wjmelements added the enhancement New feature or request label Jul 31, 2026
@wjmelements wjmelements linked an issue Jul 31, 2026 that may be closed by this pull request
@FilOzzy FilOzzy added this to FOC Jul 31, 2026
@github-project-automation github-project-automation Bot moved this to 📌 Triage in FOC Jul 31, 2026
@github-project-automation github-project-automation Bot moved this to Backlog in Solstice Jul 31, 2026
@wjmelements wjmelements moved this from Backlog to In review in Solstice Jul 31, 2026
@wjmelements wjmelements self-assigned this Jul 31, 2026
@rjan90 rjan90 moved this from 📌 Triage to 🔎 Awaiting review in FOC Aug 3, 2026

@rvagg rvagg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌 really nice work

I'm going to follow up with a PR, or some stacked PRs to bring it up to the current spec since some things changed since this was written, and I'll also add some fixtures for encoded forms so we can be assured about the cbor

@github-project-automation github-project-automation Bot moved this from 🔎 Awaiting review to ✔️ Approved by reviewer in FOC Aug 10, 2026
@wjmelements
wjmelements merged commit 701ab39 into main Aug 10, 2026
3 checks passed
@github-project-automation github-project-automation Bot moved this from ✔️ Approved by reviewer to 🎉 Done in FOC Aug 10, 2026
@wjmelements
wjmelements deleted the f02-mocks branch August 10, 2026 05:43
@github-project-automation github-project-automation Bot moved this from In review to Done in Solstice Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

f02 mocks

4 participants