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

build: blockifier regression test add get fee token addresses #948

Open
wants to merge 1 commit into
base: aviv/regression_test_add_get_blok_info
Choose a base branch
from
Open
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 Cargo.lock

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

1 change: 1 addition & 0 deletions crates/blockifier_regression_test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ license-file.workspace = true

[dependencies]
blockifier = { workspace = true }
papyrus_execution = { workspace = true }
starknet-types-core.workspace = true
starknet_api = { workspace = true }
starknet_gateway = { workspace = true }
Expand Down
1 change: 1 addition & 0 deletions crates/blockifier_regression_test/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
pub mod test_state_reader;
pub mod test_utils;
11 changes: 11 additions & 0 deletions crates/blockifier_regression_test/src/test_utils.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
use blockifier::context::FeeTokenAddresses;
use papyrus_execution::{ETH_FEE_CONTRACT_ADDRESS, STRK_FEE_CONTRACT_ADDRESS};
use starknet_api::core::{ContractAddress, PatriciaKey};
use starknet_api::{contract_address, felt, patricia_key};

pub fn get_fee_token_addresses() -> FeeTokenAddresses {
FeeTokenAddresses {
strk_fee_token_address: contract_address!(STRK_FEE_CONTRACT_ADDRESS),
eth_fee_token_address: contract_address!(ETH_FEE_CONTRACT_ADDRESS),
}
}
4 changes: 2 additions & 2 deletions crates/papyrus_execution/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ use crate::objects::{tx_execution_output_to_fee_estimation, FeeEstimation, Pendi
const STARKNET_VERSION_O_13_0: &str = "0.13.0";
const STARKNET_VERSION_O_13_1: &str = "0.13.1";
const STARKNET_VERSION_O_13_2: &str = "0.13.2";
const STRK_FEE_CONTRACT_ADDRESS: &str =
pub const STRK_FEE_CONTRACT_ADDRESS: &str =
"0x04718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d";
const ETH_FEE_CONTRACT_ADDRESS: &str =
pub const ETH_FEE_CONTRACT_ADDRESS: &str =
"0x49d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7";
const INITIAL_GAS_COST: u64 = 10000000000;

Expand Down
Loading