Skip to content

Commit

Permalink
Merge pull request #29 from Tbelleng/feat/add_testing
Browse files Browse the repository at this point in the history
✅ Added tests for starknet_simulate_transactions and bump starknet.rs version to maintain compatibility with Deoxys
  • Loading branch information
antiyro committed Jan 12, 2024
2 parents 7cf53ea + 5b6a512 commit dd994d0
Show file tree
Hide file tree
Showing 24 changed files with 716 additions and 214 deletions.
218 changes: 186 additions & 32 deletions Cargo.lock

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

10 changes: 6 additions & 4 deletions unit_tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ edition = "2021"
anyhow = "1.0.79"
rstest = "0.18.2"
tokio = { version = "1", features = ["full"] }
starknet = { git = "https://github.com/xJonathanLEI/starknet-rs.git", rev = "64ebc36", default-features = false }
starknet-core = { git = "https://github.com/xJonathanLEI/starknet-rs.git", rev = "64ebc36", default-features = false }
starknet-providers = { git = "https://github.com/xJonathanLEI/starknet-rs.git", rev = "64ebc36", default-features = false }
url = "2.5.0"
starknet = { git = "https://github.com/xJonathanLEI/starknet-rs.git", rev = "96c6803", default-features = false }
starknet-core = { git = "https://github.com/xJonathanLEI/starknet-rs.git", rev = "96c6803", default-features = false }
starknet-providers = { git = "https://github.com/xJonathanLEI/starknet-rs.git", rev = "96c6803", default-features = false }
starknet-accounts = { git = "https://github.com/xJonathanLEI/starknet-rs.git", rev = "96c6803", default-features = false }
starknet-signers = { git = "https://github.com/xJonathanLEI/starknet-rs.git", rev = "96c6803", default-features = false }
env_logger = "0.10.1"
macro_utils = { path = "../macro_utils/" }
url = "2.5.0"

[dev-dependencies]
jsonrpsee = { version = "0.21.0", features = ["client"] }
Expand Down
6 changes: 6 additions & 0 deletions unit_tests/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,12 @@ pub const ETHEREUM_ADDRESS: &str = "";
pub const INVALID_ETHEREUM_ADDRESS: &str = "";
pub const SELECTOR_NAME: &str = "";

///
/// Value to be used as a signer for simulate_transaction tests.
///
pub const SIGNER_PRIVATE: &str = "";
pub const ARGENT_CONTRACT_ADDRESS: &str = "";

pub const ERR_DEOXYS: &str = "Error waiting for response from Deoxys client";
pub const ERR_PATHFINDER: &str = "Error waiting for response from Pathfinder client";

Expand Down
Loading

0 comments on commit dd994d0

Please sign in to comment.