Skip to content

feat: fip-0109 SectorContentChanged notification#14

Draft
wjmelements wants to merge 16 commits intomainfrom
feat/fip-0109-mock
Draft

feat: fip-0109 SectorContentChanged notification#14
wjmelements wants to merge 16 commits intomainfrom
feat/fip-0109-mock

Conversation

@wjmelements
Copy link
Copy Markdown
Collaborator

Reviewer @pali101
CC @lordshashank

Changes

  • add and test library FVMSectorContentChanged
  • add and test masked address helpers
  • create initial FVMMinerActor for src/mocks

wjmelements and others added 4 commits March 17, 2026 19:15
- Add FVMSectorContentChanged with structs + CBOR encode/decode
- Add FVMMinerActor mock (etched at masked ID address)
- Extend FVMCallActorById with PowerAPI minerPower support
- Add maskedAddress/actorId/safeActorId to FVMAddress
- Add SECTOR_CONTENT_CHANGED, MINER_POWER to FVMMethod
- Add CBOR_CODEC to FVMCodec
- Update MockFVMTest with mockMiner() helper

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…anged

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@wjmelements wjmelements added the enhancement New feature or request label Mar 18, 2026
@wjmelements
Copy link
Copy Markdown
Collaborator Author

The forge fmt error is related to foundry-rs/foundry#13255. I am unable to downgrade my local foundry to v1.3.5.

wjmelements and others added 8 commits March 18, 2026 04:00
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…22% gas

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ner fallback

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

// Actor user exit codes (positive, ExitCode in fvm_shared::error)
// See https://docs.rs/fvm_shared/latest/fvm_shared/error/struct.ExitCode.html
uint32 constant USR_NOT_FOUND = 14;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
uint32 constant USR_NOT_FOUND = 14;
uint32 constant USR_NOT_FOUND = 17;

According to fvm_shared::error::ExitCode, USR_NOT_FOUND should be 17, not 14. The other two constants in this block (USR_ILLEGAL_ARGUMENT = 16, USR_UNHANDLED_MESSAGE = 22) are correct.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

nice, thx

wjmelements and others added 3 commits March 23, 2026 16:17
Co-authored-by: Aashish Paliwal <aashish.paliwal@live.com>
…UND value

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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

None yet

Development

Successfully merging this pull request may close these issues.

2 participants