-
Notifications
You must be signed in to change notification settings - Fork 189
feat: add support for ethaccount actor in state decode params API #5995
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
Changes from all commits
a482583
03fac22
1425df0
bef197d
564fe19
84329fe
1fa0ebc
ec50453
680e8b2
6e46b05
29e3331
aff4e4f
9ab830b
889ca54
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| // Copyright 2019-2025 ChainSafe Systems | ||
| // SPDX-License-Identifier: Apache-2.0, MIT | ||
|
|
||
| use crate::rpc::registry::methods_reg::{MethodRegistry, register_actor_methods}; | ||
| use crate::shim::message::MethodNum; | ||
| use cid::Cid; | ||
|
|
||
| macro_rules! register_eth_account_reg_version { | ||
| ($registry:expr, $code_cid:expr, $state_version:path) => {{ | ||
| use $state_version::*; | ||
|
|
||
| // Constructor has no parameters | ||
| register_actor_methods!($registry, $code_cid, [(Method::Constructor, empty),]); | ||
| }}; | ||
| } | ||
|
|
||
| pub(crate) fn register_actor_methods(registry: &mut MethodRegistry, cid: Cid, version: u64) { | ||
| match version { | ||
| 10 => register_eth_account_reg_version!(registry, cid, fil_actor_ethaccount_state::v10), | ||
| 11 => register_eth_account_reg_version!(registry, cid, fil_actor_ethaccount_state::v11), | ||
| 12 => register_eth_account_reg_version!(registry, cid, fil_actor_ethaccount_state::v12), | ||
| 13 => register_eth_account_reg_version!(registry, cid, fil_actor_ethaccount_state::v13), | ||
| 14 => register_eth_account_reg_version!(registry, cid, fil_actor_ethaccount_state::v14), | ||
| 15 => register_eth_account_reg_version!(registry, cid, fil_actor_ethaccount_state::v15), | ||
| 16 => register_eth_account_reg_version!(registry, cid, fil_actor_ethaccount_state::v16), | ||
| _ => {} | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -203,6 +203,7 @@ filecoin_verified_reg_statedecodeparams_1754401651147022.rpcsnap.json.zst | |
| filecoin_verified_reg_statedecodeparams_1754401651147091.rpcsnap.json.zst | ||
| filecoin_verified_reg_statedecodeparams_1754401651147157.rpcsnap.json.zst | ||
| filecoin_verified_reg_statedecodeparams_1754401651147231.rpcsnap.json.zst | ||
| filecoin_ethaccount_statedecodeparams_1756186350854913.rpcsnap.json.zst | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent ❓ Verification inconclusiveAdd EthAccount state_decodeparams snapshot — looks good The new snapshot file entry is correctly appended next to other state_decodeparams snapshots and before statereplay. No issues spotted. If helpful, verify that the referenced snapshot file exists in the repo: 🏁 Script executed: #!/bin/bash
set -euo pipefail
fd -a --exact-depth 1 'filecoin_ethaccount_statedecodeparams_*.rpcsnap.json.zst' src/tool/subcommands/api_cmdLength of output: 131 🏁 Script executed: #!/bin/bash
set -euo pipefail
# Search the entire repository for the new EthAccount state_decodeparams snapshot file
fd --type f 'filecoin_ethaccount_statedecodeparams_.*\.rpcsnap\.json\.zst'Length of output: 96 Missing Snapshot File Reference • Affected location:
Action required:
🤖 Prompt for AI Agents |
||
| filecoin_statereplay_1743504051038215.rpcsnap.json.zst | ||
| filecoin_statesearchmsg_1741784596636715.rpcsnap.json.zst | ||
| filecoin_statesearchmsglimited_1741784596704876.rpcsnap.json.zst | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you create an issue to track updating https://github.com/ChainSafe/fil-actor-states/blob/main/Makefile#L55 in
fil-actor-statesforfil_actor_ethaccount_statecrate?