Skip to content

Commit

Permalink
Adapt to Starknet 0.13.2.1 (blockifier 0.8.0-rc.3); Release Devnet v0…
Browse files Browse the repository at this point in the history
….2.0-rc.3 (#596)
  • Loading branch information
FabijanC authored Sep 5, 2024
1 parent 42570fc commit aba4bba
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 18 deletions.
12 changes: 6 additions & 6 deletions Cargo.lock

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

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ enum-helper-macros = "0.0.1"
# Starknet dependencies
starknet-types-core = "0.1.5"
starknet_api = { version = "0.13.0-rc.0", features = ["testing"] }
blockifier = { version = "0.8.0-rc.2" }
blockifier = { version = "0.8.0-rc.3" }
starknet-rs-signers = { version = "0.9.0", package = "starknet-signers" }
starknet-rs-core = { version = "0.11.0", package = "starknet-core" }
starknet-rs-providers = { version = "0.11.0", package = "starknet-providers" }
Expand All @@ -96,9 +96,9 @@ cairo-lang-syntax = "=2.7.0"
cairo-lang-utils = "=2.7.0"

# Inner dependencies
starknet-types = { version = "0.2.0-rc.2", path = "crates/starknet-devnet-types", package = "starknet-devnet-types" }
starknet-core = { version = "0.2.0-rc.2", path = "crates/starknet-devnet-core", package = "starknet-devnet-core" }
server = { version = "0.2.0-rc.2", path = "crates/starknet-devnet-server", package = "starknet-devnet-server" }
starknet-types = { version = "0.2.0-rc.3", path = "crates/starknet-devnet-types", package = "starknet-devnet-types" }
starknet-core = { version = "0.2.0-rc.3", path = "crates/starknet-devnet-core", package = "starknet-devnet-core" }
server = { version = "0.2.0-rc.3", path = "crates/starknet-devnet-server", package = "starknet-devnet-server" }

# Dependabot alerts
zerocopy = "0.7.31"
Expand Down
2 changes: 1 addition & 1 deletion crates/starknet-devnet-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "starknet-devnet-core"
version = "0.2.0-rc.2"
version = "0.2.0-rc.3"
edition.workspace = true
repository.workspace = true
license-file.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crates/starknet-devnet-server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "starknet-devnet-server"
version = "0.2.0-rc.2"
version = "0.2.0-rc.3"
edition = "2021"
repository.workspace = true
license-file.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crates/starknet-devnet-types/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "starknet-devnet-types"
version = "0.2.0-rc.2"
version = "0.2.0-rc.3"
edition = "2021"
description = "Starknet types for the devnet"
repository.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion crates/starknet-devnet/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "starknet-devnet"
version = "0.2.0-rc.2"
version = "0.2.0-rc.3"
edition = "2021"
repository.workspace = true
license-file.workspace = true
Expand Down
8 changes: 4 additions & 4 deletions crates/starknet-devnet/tests/test_gas_modification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ mod gas_modification_tests {
resp_no_flags["fee_estimation"]["data_gas_price"],
to_hex_felt(&DEVNET_DEFAULT_GAS_PRICE)
);
assert_eq!(resp_no_flags["fee_estimation"]["overall_fee"], "0xa7275ca6d3000");
assert_eq!(resp_no_flags["fee_estimation"]["overall_fee"], "0x7398c659d800");

let params_skip_validation = get_params(&["SKIP_VALIDATE"]);
let resp_skip_validation = &devnet
Expand All @@ -106,7 +106,7 @@ mod gas_modification_tests {
resp_skip_validation["fee_estimation"]["data_gas_price"],
to_hex_felt(&DEVNET_DEFAULT_GAS_PRICE)
);
assert_eq!(resp_skip_validation["fee_estimation"]["overall_fee"], "0xa7247397f6000");
assert_eq!(resp_skip_validation["fee_estimation"]["overall_fee"], "0x736a356c0800");

assert_difference_if_validation(
resp_no_flags,
Expand Down Expand Up @@ -144,7 +144,7 @@ mod gas_modification_tests {

assert_eq!(resp_no_flags["fee_estimation"]["gas_price"], to_hex_felt(&wei_price));
assert_eq!(resp_no_flags["fee_estimation"]["data_gas_price"], to_hex_felt(&wei_price_data));
assert_eq!(resp_no_flags["fee_estimation"]["overall_fee"], "0x38008384ec45ab780000");
assert_eq!(resp_no_flags["fee_estimation"]["overall_fee"], "0x261b37abed7125c0000");

let resp_skip_validation = &devnet
.send_custom_rpc("starknet_simulateTransactions", params_skip_validation)
Expand All @@ -155,7 +155,7 @@ mod gas_modification_tests {
resp_skip_validation["fee_estimation"]["data_gas_price"],
to_hex_felt(&wei_price_data)
);
assert_eq!(resp_skip_validation["fee_estimation"]["overall_fee"], "0x37ff89b813a3e6700000");
assert_eq!(resp_skip_validation["fee_estimation"]["overall_fee"], "0x260b9ade6354d540000");

assert_difference_if_validation(
resp_no_flags,
Expand Down

0 comments on commit aba4bba

Please sign in to comment.