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

Add support for the v0.6 of the Starknet API #35

Merged
merged 3 commits into from
Jan 22, 2024
Merged
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
10 changes: 8 additions & 2 deletions crates/starknet-types-rpc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "starknet-types-rpc"
version = "0.0.2"
version = "0.6.0"
edition = "2021"
license = "MIT"
homepage = "https://github.com/starknet-io/types-rs"
Expand All @@ -9,6 +9,12 @@ categories = ["types", "math", "crypto"]
keywords = ["stark", "zkp", "cairo"]
description = "Starknet RPC types."
readme = "README.md"
exclude = [
"src/v0_5_0/*.json",
"src/v0_5_0/*.toml",
"src/v0_6_0/*.json",
"src/v0_6_0/*.toml",
]

[features]
default = ["std"]
Expand All @@ -20,4 +26,4 @@ starknet-types-core = { path = "../starknet-types-core", default-features = fals
serde = { version = "1", default-features = false, features = ["derive"] }

[dev-dependencies]
serde_json = "1"
serde_json = "1"
16 changes: 16 additions & 0 deletions crates/starknet-types-rpc/src/v0_6_0/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//! v0.6.0 of the API.

pub use starknet_types_core::felt::Felt;

pub use crate::custom::{
BlockId, BroadcastedDeclareTxn, BroadcastedDeployAccountTxn, BroadcastedInvokeTxn,
SyncingStatus,
};

mod starknet_api_openrpc;
mod starknet_trace_api_openrpc;
mod starknet_write_api;

pub use self::starknet_api_openrpc::*;
pub use self::starknet_trace_api_openrpc::*;
pub use self::starknet_write_api::*;
Loading