-
Notifications
You must be signed in to change notification settings - Fork 182
feat: add support for power actor methods in StateDecodeParams API
#5875
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughSupport for the Power actor state has been added to the Filecoin StateDecodeParams API. This includes new modules, Lotus JSON serialization/deserialization for Power actor method parameters across versions 8–16, method registration macros for each version, and integration into the actor registry. No existing logic was altered. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant MethodRegistry
participant PowerActorModule
participant LotusJson
Client->>MethodRegistry: Request decode for Power actor params (with version)
MethodRegistry->>PowerActorModule: Lookup and register methods for version
PowerActorModule->>LotusJson: Serialize/deserialize params (version-specific)
LotusJson-->>PowerActorModule: Return Lotus JSON representation
PowerActorModule-->>MethodRegistry: Register method handlers
MethodRegistry-->>Client: Return decoded params
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~15–20 minutes Assessment against linked issues
Assessment against linked issues: Out-of-scope changesNo out-of-scope changes found. Suggested reviewers
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (9)
✨ Finishing Touches
🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
2bfdc04 to
d58f5b9
Compare
|
@coderabbitai full review |
✅ Actions performedFull review triggered. |
d58f5b9 to
20cba40
Compare
|
no green checkmark! |
Summary of changes
Changes introduced in this pull request:
MinerPowerExportedsince it's not present in the lotus)Reference issue to close (if applicable)
Closes: #5715
Other information and links
Change checklist
Summary by CodeRabbit
Summary by CodeRabbit
New Features
Chores