Skip to content
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

Bump fuel-vm to 0.59.1 #2510

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- [2154](https://github.com/FuelLabs/fuel-core/pull/2154): Transaction graphql endpoints use `TransactionType` instead of `fuel_tx::Transaction`.
- [2446](https://github.com/FuelLabs/fuel-core/pull/2446): Use graphiql instead of graphql-playground due to known vulnerability and stale development.
- [2379](https://github.com/FuelLabs/fuel-core/issues/2379): Change `kv_store::Value` to be `Arc<[u8]>` instead of `Arc<Vec<u8>>`.
- [2510](https://github.com/FuelLabs/fuel-core/pull/2510): Upgraded `fuel-vm` to `0.59.1`. More information in the releases: [0.59.0](https://github.com/FuelLabs/fuel-vm/releases/tag/v0.59.0) and [0.59.1](https://github.com/FuelLabs/fuel-vm/releases/tag/v0.59.1).

## [Version 0.40.0]

Expand Down
128 changes: 89 additions & 39 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,14 @@ fuel-core-xtask = { version = "0.0.0", path = "./xtask" }
fuel-gas-price-algorithm = { version = "0.40.0", path = "crates/fuel-gas-price-algorithm" }

# Fuel dependencies
fuel-vm-private = { version = "0.58.2", package = "fuel-vm", default-features = false }
fuel-vm-private = { version = "0.59.1", package = "fuel-vm", default-features = false }

# Common dependencies
anyhow = "1.0"
async-trait = "0.1"
cynic = { version = "3.1.0", features = ["http-reqwest"] }
clap = "4.4"
derivative = { version = "2" }
derivative = { version = "2", features = ["use_core"] }
derive_more = { version = "0.99" }
enum-iterator = "1.2"
hex = { version = "0.4", features = ["serde"] }
Expand Down
2 changes: 1 addition & 1 deletion benches/src/bin/collect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ pub const GIT: &str = ""#,
r#"";"#,
r##"
pub fn default_gas_costs() -> GasCostsValues {
GasCostsValuesV4 {"##,
GasCostsValuesV5 {"##,
r##" }.into()
}
"##,
Expand Down
9 changes: 7 additions & 2 deletions benches/src/default_gas_costs.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use super::*;
use fuel_core_types::fuel_tx::consensus_parameters::gas::GasCostsValuesV4;
use fuel_core_types::fuel_tx::consensus_parameters::gas::GasCostsValuesV5;
pub fn default_gas_costs() -> GasCostsValues {
GasCostsValuesV4 {
GasCostsValuesV5 {
add: 2,
addi: 2,
and: 2,
Expand All @@ -15,6 +15,7 @@ pub fn default_gas_costs() -> GasCostsValues {
div: 2,
divi: 2,
eck1: 1489,
ecop: 3500,
ecr1: 20513,
eq: 2,
exp: 2,
Expand Down Expand Up @@ -175,6 +176,10 @@ pub fn default_gas_costs() -> GasCostsValues {
base: 14635,
units_per_gas: 3,
},
epar: DependentCost::HeavyOperation {
base: 69000,
gas_per_unit: 52000,
},
srwq: DependentCost::HeavyOperation {
base: 245,
gas_per_unit: 243,
Expand Down
2 changes: 1 addition & 1 deletion benches/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ impl TryFrom<VmBench> for VmBenchPrepared {
}
let storage_diff = vm.storage_diff();
let mut vm = vm.remove_recording();
let mut diff = start_vm.diff(&vm);
let mut diff = start_vm.rollback_to(&vm);
diff += storage_diff;
let diff: diff::Diff<diff::InitialVmState> = diff.into();
vm.reset_vm_state(&diff);
Expand Down
9 changes: 8 additions & 1 deletion bin/fuel-core/chainspec/local-testnet/chain_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
"chain_id": 0,
"gas_costs": {
"V4": {
"V5": {
"add": 2,
"addi": 2,
"and": 2,
Expand Down Expand Up @@ -126,6 +126,7 @@
"wqmm": 6,
"xor": 2,
"xori": 2,
"ecop": 3500,
"aloc": {
"LightOperation": {
"base": 2,
Expand Down Expand Up @@ -270,6 +271,12 @@
"gas_per_unit": 5776
}
},
"epar": {
"HeavyOperation": {
"base": 69000,
"gas_per_unit": 52000
}
},
"contract_root": {
"LightOperation": {
"base": 24,
Expand Down
Loading
Loading