Skip to content

Commit 01b1ae5

Browse files
authored
chore(deps): bump fvm and fvm_shared (#5586)
1 parent 108c41b commit 01b1ae5

File tree

10 files changed

+337
-382
lines changed

10 files changed

+337
-382
lines changed

Cargo.lock

Lines changed: 290 additions & 335 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -66,32 +66,32 @@ either = "1"
6666
enumflags2 = "0.7"
6767
ethereum-types = { version = "0.15", features = ["ethbloom"] }
6868
ez-jsonrpc-types = "0.5"
69-
fil_actor_account_state = { version = "21" }
70-
fil_actor_cron_state = { version = "21" }
71-
fil_actor_datacap_state = { version = "21" }
72-
fil_actor_eam_state = { version = "21" }
73-
fil_actor_evm_state = { version = "21" }
74-
fil_actor_init_state = { version = "21" }
75-
fil_actor_market_state = { version = "21" }
76-
fil_actor_miner_state = { version = "21" }
77-
fil_actor_multisig_state = { version = "21" }
78-
fil_actor_power_state = { version = "21" }
79-
fil_actor_reward_state = { version = "21" }
80-
fil_actor_system_state = { version = "21" }
81-
fil_actor_verifreg_state = { version = "21" }
82-
fil_actors_shared = { version = "21", features = ["json"] }
69+
fil_actor_account_state = { version = "22" }
70+
fil_actor_cron_state = { version = "22" }
71+
fil_actor_datacap_state = { version = "22" }
72+
fil_actor_eam_state = { version = "22" }
73+
fil_actor_evm_state = { version = "22" }
74+
fil_actor_init_state = { version = "22" }
75+
fil_actor_market_state = { version = "22" }
76+
fil_actor_miner_state = { version = "22" }
77+
fil_actor_multisig_state = { version = "22" }
78+
fil_actor_power_state = { version = "22" }
79+
fil_actor_reward_state = { version = "22" }
80+
fil_actor_system_state = { version = "22" }
81+
fil_actor_verifreg_state = { version = "22" }
82+
fil_actors_shared = { version = "22", features = ["json"] }
8383
flate2 = "1"
8484
flume = { workspace = true }
8585
fs_extra = "1"
8686
futures = { workspace = true }
87-
fvm2 = { package = "fvm", version = "~2.10", default-features = false }
88-
fvm3 = { package = "fvm", version = "~3.12", default-features = false }
89-
fvm4 = { package = "fvm", version = "~4.6.1", default-features = false, features = ["verify-signature"] }
87+
fvm2 = { package = "fvm", version = "~2.11", default-features = false }
88+
fvm3 = { package = "fvm", version = "~3.13", default-features = false }
89+
fvm4 = { package = "fvm", version = "~4.7", default-features = false, features = ["verify-signature"] }
9090
fvm_ipld_blockstore = "0.3.1"
9191
fvm_ipld_encoding = "0.5.3"
92-
fvm_shared2 = { package = "fvm_shared", version = "~2.10" }
93-
fvm_shared3 = { package = "fvm_shared", version = "~3.12", features = ["proofs"] }
94-
fvm_shared4 = { package = "fvm_shared", version = "~4.6.1", features = ["proofs"] }
92+
fvm_shared2 = { package = "fvm_shared", version = "~2.11" }
93+
fvm_shared3 = { package = "fvm_shared", version = "~3.13", features = ["proofs"] }
94+
fvm_shared4 = { package = "fvm_shared", version = "~4.7", features = ["proofs"] }
9595
gethostname = "1"
9696
git-version = "0.3"
9797
group = "0.13"
@@ -242,8 +242,8 @@ criterion = { version = "0.5", features = ["async_tokio", "csv"] }
242242
cs_serde_bytes = "0.12"
243243
derive-quickcheck-arbitrary = "0.1"
244244
fickle = "0.3"
245-
fvm_shared3 = { package = "fvm_shared", version = "~3.12", features = ["arb", "proofs", "testing"] }
246-
fvm_shared4 = { package = "fvm_shared", version = "~4.6", features = ["arb", "proofs", "testing"] }
245+
fvm_shared3 = { package = "fvm_shared", version = "~3.13", features = ["arb", "proofs", "testing"] }
246+
fvm_shared4 = { package = "fvm_shared", version = "~4.7", features = ["arb", "proofs", "testing"] }
247247
glob = "0.3"
248248
http-range-header = "0.4"
249249
insta = { version = "1", features = ["yaml"] }

src/eth/transaction.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ impl EthTx {
215215
.expect("Incorrect signature length");
216216
let pubkey =
217217
fvm_shared_latest::crypto::signature::ops::recover_secp_public_key(&hash.0, &sig_data)?;
218-
let eth_addr = EthAddress::eth_address_from_pub_key(&pubkey.serialize())?;
218+
let eth_addr = EthAddress::eth_address_from_pub_key(&pubkey)?;
219219
eth_addr.to_filecoin_address()
220220
}
221221
}

src/shim/actors/builtin/power/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,10 +280,10 @@ impl State {
280280
from_filter_estimate_v3_to_v2(st.this_epoch_qa_power_smoothed.clone())
281281
}
282282
State::V12(st) => {
283-
from_filter_estimate_v4_to_v2(st.this_epoch_qa_power_smoothed.clone())
283+
from_filter_estimate_v3_to_v2(st.this_epoch_qa_power_smoothed.clone())
284284
}
285285
State::V13(st) => {
286-
from_filter_estimate_v4_to_v2(st.this_epoch_qa_power_smoothed.clone())
286+
from_filter_estimate_v3_to_v2(st.this_epoch_qa_power_smoothed.clone())
287287
}
288288
State::V14(st) => FilterEstimate {
289289
position: st.this_epoch_qa_power_smoothed.clone().position,

src/shim/actors/builtin/reward/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ impl State {
103103
State::V12(st) => Ok(from_token_v4_to_v2(
104104
&fil_actor_miner_state::v12::pre_commit_deposit_for_power(
105105
&st.this_epoch_reward_smoothed,
106-
&fvm_shared4::smooth::FilterEstimate {
106+
&fvm_shared3::smooth::FilterEstimate {
107107
position: network_qa_power.position,
108108
velocity: network_qa_power.velocity,
109109
},
@@ -113,7 +113,7 @@ impl State {
113113
State::V13(st) => Ok(from_token_v4_to_v2(
114114
&fil_actor_miner_state::v13::pre_commit_deposit_for_power(
115115
&st.this_epoch_reward_smoothed,
116-
&fvm_shared4::smooth::FilterEstimate {
116+
&fvm_shared3::smooth::FilterEstimate {
117117
position: network_qa_power.position,
118118
velocity: network_qa_power.velocity,
119119
},
@@ -306,7 +306,7 @@ impl State {
306306
qa_power,
307307
&st.this_epoch_baseline_power,
308308
&st.this_epoch_reward_smoothed,
309-
&fvm_shared4::smooth::FilterEstimate {
309+
&fvm_shared3::smooth::FilterEstimate {
310310
position: network_qa_power.position,
311311
velocity: network_qa_power.velocity,
312312
},
@@ -319,7 +319,7 @@ impl State {
319319
qa_power,
320320
&st.this_epoch_baseline_power,
321321
&st.this_epoch_reward_smoothed,
322-
&fvm_shared4::smooth::FilterEstimate {
322+
&fvm_shared3::smooth::FilterEstimate {
323323
position: network_qa_power.position,
324324
velocity: network_qa_power.velocity,
325325
},

src/shim/actors/convert.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ use fvm_shared4::piece::PaddedPieceSize as PaddedPieceSizeV4;
3434
use fvm_shared4::sector::RegisteredPoStProof as RegisteredPoStProofV4;
3535
use fvm_shared4::sector::RegisteredSealProof as RegisteredSealProofV4;
3636
use fvm_shared4::sector::SectorSize as SectorSizeV4;
37-
use fvm_shared4::smooth::FilterEstimate as FilterEstimateV4;
3837
use num_bigint::BigInt;
3938
use num_traits::FromPrimitive;
4039

@@ -152,13 +151,6 @@ pub fn from_filter_estimate_v3_to_v2(fe: FilterEstimateV3) -> FilterEstimateV2 {
152151
}
153152
}
154153

155-
pub fn from_filter_estimate_v4_to_v2(fe: FilterEstimateV4) -> FilterEstimateV2 {
156-
FilterEstimateV2 {
157-
position: fe.position,
158-
velocity: fe.velocity,
159-
}
160-
}
161-
162154
pub fn from_policy_v13_to_v9(policy: &PolicyV13) -> PolicyV9 {
163155
let valid_post_proof_type = policy
164156
.valid_post_proof_type

src/shim/clock.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// Copyright 2019-2025 ChainSafe Systems
22
// SPDX-License-Identifier: Apache-2.0, MIT
33

4-
pub use super::fvm_shared_latest::ALLOWABLE_CLOCK_DRIFT;
5-
pub use super::fvm_shared_latest::BLOCKS_PER_EPOCH;
6-
pub use super::fvm_shared_latest::clock::EPOCH_DURATION_SECONDS;
4+
pub use fvm_shared3::ALLOWABLE_CLOCK_DRIFT;
5+
pub use fvm_shared3::BLOCKS_PER_EPOCH;
6+
pub use fvm_shared3::clock::EPOCH_DURATION_SECONDS;
77

88
pub const SECONDS_IN_DAY: i64 = 86400;
99
pub const EPOCHS_IN_DAY: i64 = SECONDS_IN_DAY / EPOCH_DURATION_SECONDS;

src/shim/crypto.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
// Copyright 2019-2025 ChainSafe Systems
22
// SPDX-License-Identifier: Apache-2.0, MIT
33
pub use super::fvm_shared_latest::{
4-
IPLD_RAW, TICKET_RANDOMNESS_LOOKBACK, crypto::signature::SECP_SIG_LEN,
5-
};
6-
use super::{
7-
fvm_shared_latest::{self, commcid::Commitment},
8-
version::NetworkVersion,
4+
self, IPLD_RAW, commcid::Commitment, crypto::signature::SECP_SIG_LEN,
95
};
6+
use super::version::NetworkVersion;
107
use crate::eth::{EthChainId, EthTx};
118
use crate::message::{Message, SignedMessage};
129
use anyhow::{Context, ensure};
@@ -17,6 +14,7 @@ use fvm_ipld_encoding::{
1714
repr::{Deserialize_repr, Serialize_repr},
1815
ser, strict_bytes,
1916
};
17+
pub use fvm_shared3::TICKET_RANDOMNESS_LOOKBACK;
2018
use num::FromPrimitive;
2119
use num_derive::FromPrimitive;
2220
use schemars::JsonSchema;
@@ -279,7 +277,7 @@ pub fn verify_delegated_sig(
279277
let hash = keccak_256(data);
280278
let pub_key = recover_secp_public_key(&hash, &sig)?;
281279

282-
let eth_addr = EthAddress::eth_address_from_pub_key(&pub_key.serialize())?;
280+
let eth_addr = EthAddress::eth_address_from_pub_key(&pub_key)?;
283281

284282
let rec_addr = eth_addr.to_filecoin_address()?;
285283

src/shim/trace.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use cid::Cid;
1111
use fvm_ipld_encoding::{RawBytes, ipld_block::IpldBlock};
1212
use fvm2::trace::ExecutionEvent as E2;
1313
use fvm3::trace::ExecutionEvent as E3;
14-
use fvm4::trace::ExecutionEvent as E4;
14+
use fvm4::trace::{ExecutionEvent as E4, IpldOperation};
1515
use itertools::Either;
1616

1717
#[derive(Debug, Clone)]
@@ -23,6 +23,12 @@ pub enum ExecutionEvent {
2323
CallError(ShimSyscallError),
2424
Log(String),
2525
InvokeActor(Either<Cid, InvokeActor>),
26+
#[allow(dead_code)]
27+
Ipld {
28+
op: IpldOperation,
29+
cid: Cid,
30+
size: usize,
31+
},
2632
Unknown(Either<E3, Either<E4, E2>>),
2733
}
2834

@@ -146,6 +152,8 @@ impl From<E4> for ExecutionEvent {
146152
id,
147153
state: state.into(),
148154
})),
155+
E4::Log(s) => EShim::Log(s),
156+
E4::Ipld { op, cid, size } => EShim::Ipld { op, cid, size },
149157
e => EShim::Unknown(Either::Right(Either::Left(e))),
150158
}
151159
}

src/state_manager/utils.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ pub mod structured {
342342
}
343343
ExecutionEvent::Log(_ignored) => {}
344344
ExecutionEvent::InvokeActor(_cid) => {}
345+
ExecutionEvent::Ipld { .. } => {}
345346
ExecutionEvent::Unknown(u) => {
346347
return Err(BuildExecutionTraceError::UnrecognisedEvent(Box::new(u)));
347348
}
@@ -413,6 +414,7 @@ pub mod structured {
413414
};
414415
None
415416
}
417+
ExecutionEvent::Ipld { .. } => None,
416418
// RUST: This should be caught at compile time with #[deny(non_exhaustive_omitted_patterns)]
417419
// So that BuildExecutionTraceError::UnrecognisedEvent is never constructed
418420
// But that lint is not yet stabilised: https://github.com/rust-lang/rust/issues/89554

0 commit comments

Comments
 (0)