Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Commit

Permalink
test: add starknet-rpc-test
Browse files Browse the repository at this point in the history
test: add get_block_number.rs test
  • Loading branch information
tdelabro committed Jul 31, 2023
1 parent d4db522 commit 6190080
Show file tree
Hide file tree
Showing 7 changed files with 439 additions and 10 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
## Next release

- ci: add `CHANGELOG.md` and enforce it is edited for each PR on `main`
- test: add `starknet-rpc-test` crate to the workspace
- test(rpc): add `get_block_number.rs` tests
207 changes: 197 additions & 10 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ members = [
"crates/client/mapping-sync",
"crates/client/storage",
"crates/client/transaction-pool",
"starknet-rpc-test",
]

[profile.release]
Expand Down
20 changes: 20 additions & 0 deletions starknet-rpc-test/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[package]
name = "starknet-rpc-test"
version = "0.1.0"
edition = "2021"


[dependencies]
anyhow = "1.0.72"
derive_more = "0.99.17"
reqwest = "0.11.18"
serde = { version = "1.0.179", features = ["derive"] }
serde_json = "1.0.104"

[dev-dependencies]
tokio = { version = "1.29.1", features = ["rt", "macros"] }


[[test]]
name = "starknet_get_block_number"
path = "get_block_number.rs"
Loading

0 comments on commit 6190080

Please sign in to comment.