Skip to content

Commit 0d81399

Browse files
rjan90rvagg
andauthored
feat: nv28 skeleton (#2220)
* feat: nv28 skeleton feat: nv28 skeleton * Update shared/src/version/mod.rs Co-authored-by: Rod Vagg <[email protected]> * chore: add RUSTSEC-2025-0057 to deny.toml chore: add RUSTSEC-2025-0057 to deny.toml --------- Co-authored-by: Rod Vagg <[email protected]>
1 parent a39ea8f commit 0d81399

File tree

5 files changed

+11
-1
lines changed

5 files changed

+11
-1
lines changed

deny.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
ignore = [
33
"RUSTSEC-2024-0436", # Paste is unmaintained, whatever.
44
"RUSTSEC-2025-0046", # wasmtime, only impacting WASI, tracked in https://github.com/filecoin-project/ref-fvm/issues/2186
5+
"RUSTSEC-2025-0057", # fxhash is no longer maintained, tracked in https://github.com/filecoin-project/ref-fvm/issues/2221
56
]
67

78
[bans]

fvm/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ gas_calibration = []
6060
# The current implementation keeps it by default for backward compatibility reason.
6161
# See <https://github.com/filecoin-project/ref-fvm/issues/2001>
6262
verify-signature = []
63+
nv28-dev = []
6364

6465
# Allow coverage attribute.
6566
[lints.rust]

fvm/src/gas/price_list.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,6 +1086,8 @@ pub fn price_list_by_network_version(network_version: NetworkVersion) -> &'stati
10861086
&WATERMELON_PRICES
10871087
}
10881088
NetworkVersion::V25 | NetworkVersion::V26 | NetworkVersion::V27 => &TEEP_PRICES,
1089+
#[cfg(feature = "nv28-dev")]
1090+
NetworkVersion::V28 => &TEEP_PRICES,
10891091
_ => panic!("network version {nv} not supported", nv = network_version),
10901092
}
10911093
}

fvm/src/machine/default.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,12 @@ where
5151
/// * `blockstore`: The underlying [blockstore][`Blockstore`] for reading/writing state.
5252
/// * `externs`: Client-provided ["external"][`Externs`] methods for accessing chain state.
5353
pub fn new(context: &MachineContext, blockstore: B, externs: E) -> anyhow::Result<Self> {
54+
#[cfg(not(feature = "nv28-dev"))]
5455
const SUPPORTED_VERSIONS: RangeInclusive<NetworkVersion> =
5556
NetworkVersion::V21..=NetworkVersion::V27;
57+
#[cfg(feature = "nv28-dev")]
58+
const SUPPORTED_VERSIONS: RangeInclusive<NetworkVersion> =
59+
NetworkVersion::V21..=NetworkVersion::V28;
5660

5761
debug!(
5862
"initializing a new machine, epoch={}, base_fee={}, nv={:?}, root={}",

shared/src/version/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,10 @@ impl NetworkVersion {
6767
pub const V25: Self = Self(25);
6868
/// Tock (builtin-actors v16)
6969
pub const V26: Self = Self(26);
70-
/// TBD (TBD builtin-actor v17)
70+
/// GoldenWeek (builtin-actor v17)
7171
pub const V27: Self = Self(27);
72+
/// TBD (TBD builtin-actor v18)
73+
pub const V28: Self = Self(28);
7274

7375
pub const MAX: Self = Self(u32::MAX);
7476

0 commit comments

Comments
 (0)