Skip to content

Commit bf260a6

Browse files
authored
fuel-vm v0.62.0 (#3021)
## Description Bumps fuel-vm dependency to 0.62.0 ([release notes](https://github.com/fuelLabs/fuel-vm/releases/v0.62.0)). ## Checklist - [x] Breaking changes are clearly marked as such in the PR description and changelog - [x] New behavior is reflected in tests - [x] [The specification](https://github.com/FuelLabs/fuel-specs/) matches the implemented behavior (link update PR if changes are needed) ### Before requesting review - [x] I have reviewed the code myself - [x] I have created follow-up issues caused by this PR and linked them here
1 parent cb7b832 commit bf260a6

File tree

12 files changed

+62
-50
lines changed

12 files changed

+62
-50
lines changed

.changes/changed/3021.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Updated fuel-vm to 0.62.0, see https://github.com/fuelLabs/fuel-vm/releases/v0.62.0

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ fuel-core-xtask = { version = "0.0.0", path = "./xtask" }
101101
fuel-gas-price-algorithm = { version = "0.43.2", path = "crates/fuel-gas-price-algorithm" }
102102

103103
# Fuel dependencies
104-
fuel-vm-private = { version = "0.61.1", package = "fuel-vm", default-features = false }
104+
fuel-vm-private = { version = "0.62.0", package = "fuel-vm", default-features = false }
105105

106106
# Common dependencies
107107
anyhow = "1.0"

benches/src/bin/collect.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use clap::Parser;
22
use fuel_core_types::fuel_tx::{
33
ConsensusParameters,
44
GasCosts,
5-
consensus_parameters::gas::GasCostsValuesV5,
5+
consensus_parameters::gas::GasCostsValuesV6,
66
};
77
use serde::{
88
Deserialize,
@@ -371,7 +371,7 @@ pub const GIT: &str = ""#,
371371
r#"";"#,
372372
r##"
373373
pub fn default_gas_costs() -> GasCostsValues {
374-
GasCostsValuesV5 {"##,
374+
GasCostsValuesV6 {"##,
375375
r##" }.into()
376376
}
377377
"##,
@@ -497,7 +497,7 @@ impl State {
497497
)
498498
}
499499

500-
fn to_gas_costs(&self) -> GasCostsValuesV5 {
500+
fn to_gas_costs(&self) -> GasCostsValuesV6 {
501501
serde_yaml::from_value(self.to_yaml()).unwrap()
502502
}
503503

benches/src/default_gas_costs.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use super::*;
2-
use fuel_core_types::fuel_tx::consensus_parameters::gas::GasCostsValuesV5;
2+
use fuel_core_types::fuel_tx::consensus_parameters::gas::GasCostsValuesV6;
33
pub fn default_gas_costs() -> GasCostsValues {
4-
GasCostsValuesV5 {
4+
GasCostsValuesV6 {
55
add: 2,
66
addi: 2,
77
and: 2,
@@ -51,6 +51,7 @@ pub fn default_gas_costs() -> GasCostsValues {
5151
mul: 2,
5252
muli: 2,
5353
mldv: 3,
54+
niop: 2,
5455
noop: 1,
5556
not: 2,
5657
or: 1,

bin/fuel-core/chainspec/local-testnet/chain_config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
},
4141
"chain_id": 0,
4242
"gas_costs": {
43-
"V5": {
43+
"V6": {
4444
"add": 2,
4545
"addi": 2,
4646
"and": 2,
@@ -87,6 +87,7 @@
8787
"mul": 2,
8888
"muli": 2,
8989
"mldv": 3,
90+
"niop": 2,
9091
"noop": 1,
9192
"not": 2,
9293
"or": 1,

crates/chain-config/src/config/snapshots/fuel_core_chain_config__config__chain__tests__snapshot_local_testnet_config.snap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ expression: json
4444
},
4545
"chain_id": 0,
4646
"gas_costs": {
47-
"V5": {
47+
"V6": {
4848
"add": 1,
4949
"addi": 1,
5050
"and": 1,
@@ -91,6 +91,7 @@ expression: json
9191
"mul": 1,
9292
"muli": 1,
9393
"mldv": 1,
94+
"niop": 1,
9495
"noop": 1,
9596
"not": 1,
9697
"or": 1,

crates/client/assets/schema.sdl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,7 @@ type GasCosts {
442442
mul: U64!
443443
muli: U64!
444444
mldv: U64!
445+
niop: U64
445446
noop: U64!
446447
not: U64!
447448
or: U64!

crates/client/src/client/schema/chain.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ pub struct GasCosts {
264264
pub mul: U64,
265265
pub muli: U64,
266266
pub mldv: U64,
267+
pub niop: Option<U64>,
267268
pub noop: U64,
268269
pub not: U64,
269270
pub or: U64,
@@ -352,7 +353,7 @@ impl TryFrom<GasCosts> for fuel_core_types::fuel_tx::GasCosts {
352353
fn try_from(value: GasCosts) -> Result<Self, Self::Error> {
353354
match value.version {
354355
GasCostsVersion::V1 => Ok(fuel_core_types::fuel_tx::GasCosts::new(
355-
fuel_core_types::fuel_tx::consensus_parameters::gas::GasCostsValuesV5 {
356+
fuel_core_types::fuel_tx::consensus_parameters::gas::GasCostsValuesV6 {
356357
add: value.add.into(),
357358
addi: value.addi.into(),
358359
and: value.and.into(),
@@ -399,6 +400,7 @@ impl TryFrom<GasCosts> for fuel_core_types::fuel_tx::GasCosts {
399400
mul: value.mul.into(),
400401
muli: value.muli.into(),
401402
mldv: value.mldv.into(),
403+
niop: value.niop.map(Into::into).unwrap_or(0),
402404
noop: value.noop.into(),
403405
not: value.not.into(),
404406
or: value.or.into(),

crates/client/src/client/schema/snapshots/fuel_core_client__client__schema__chain__tests__chain_gql_query_output.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
source: crates/client/src/client/schema/chain.rs
33
expression: operation.query
4-
snapshot_kind: text
54
---
65
query ChainQuery {
76
chain {
@@ -127,6 +126,7 @@ query ChainQuery {
127126
mul
128127
muli
129128
mldv
129+
niop
130130
noop
131131
not
132132
or

0 commit comments

Comments
 (0)