Skip to content

Commit

Permalink
build: blockifier regression test add get fee token addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
AvivYossef-starkware committed Sep 23, 2024
1 parent 6ca2811 commit 4e49777
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 3 deletions.
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 @@ -11,6 +11,7 @@ blockifier = { workspace = true }
starknet_api = { workspace = true }
starknet_gateway = { workspace = true }
starknet-types-core.workspace = true
papyrus_execution = { workspace = true }

[lints]
workspace = true
3 changes: 2 additions & 1 deletion crates/blockifier_regression_test/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
pub mod test_state_reader;
pub mod test_utils;


#[cfg(test)]
mod tests {

}
14 changes: 14 additions & 0 deletions crates/blockifier_regression_test/src/test_utils.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
use blockifier::context::FeeTokenAddresses;
use starknet_api::contract_address;
use starknet_api::core::ContractAddress;
use starknet_api::patricia_key;
use starknet_api::core::PatriciaKey;
use starknet_api::felt;
use papyrus_execution::{ETH_FEE_CONTRACT_ADDRESS,STRK_FEE_CONTRACT_ADDRESS};

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

0 comments on commit 4e49777

Please sign in to comment.