-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add more utils to regression test
- Loading branch information
1 parent
a0fce57
commit efe0b06
Showing
5 changed files
with
82 additions
and
11 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,26 @@ | ||
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}; | ||
use blockifier::context::{ChainInfo, FeeTokenAddresses}; | ||
use papyrus_execution::{ETH_FEE_CONTRACT_ADDRESS, STRK_FEE_CONTRACT_ADDRESS}; | ||
use starknet_api::core::{ChainId, ContractAddress, PatriciaKey}; | ||
use starknet_api::{contract_address, felt, patricia_key}; | ||
use starknet_gateway::config::RpcStateReaderConfig; | ||
|
||
pub const RPC_NODE_URL: &str = "https://free-rpc.nethermind.io/mainnet-juno/"; | ||
pub const JSON_RPC_VERSION: &str = "2.0"; | ||
|
||
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), | ||
} | ||
} | ||
|
||
pub fn get_rpc_state_reader_config() -> RpcStateReaderConfig { | ||
RpcStateReaderConfig { | ||
url: RPC_NODE_URL.to_string(), | ||
json_rpc_version: JSON_RPC_VERSION.to_string(), | ||
} | ||
} | ||
|
||
pub fn get_chain_info() -> ChainInfo { | ||
ChainInfo { chain_id: ChainId::Mainnet, fee_token_addresses: get_fee_token_addresses() } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters