Skip to content

Commit

Permalink
Add support for the v0.6 of the Starknet API (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
nils-mathieu authored Jan 22, 2024
1 parent 634c783 commit bd6b6ee
Show file tree
Hide file tree
Showing 11 changed files with 8,320 additions and 2 deletions.
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

0 comments on commit bd6b6ee

Please sign in to comment.