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

Implementing a code generator for starknet-types-rpc #9

Merged
merged 28 commits into from
Nov 7, 2023
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
30ece8b
✨ initial implementation of `starknet-types-rpc`
nils-mathieu Oct 29, 2023
1b61c5b
implement `Copy` for simple enum types
nils-mathieu Oct 29, 2023
96c3edc
update documentation
nils-mathieu Oct 29, 2023
656249f
add some basic tests
nils-mathieu Oct 29, 2023
d22651d
re-export the \'stark-felt\' type
nils-mathieu Oct 29, 2023
5e28a48
remove method result types
nils-mathieu Oct 29, 2023
6d0b56d
remove debug symbol paths from the generated file for better clarity
nils-mathieu Oct 30, 2023
0bc5573
add support for #[no_std]
nils-mathieu Oct 30, 2023
525e026
fix: properly derive Serialize/Deserialize on param types
nils-mathieu Oct 30, 2023
276a431
remove openrpc-gen binary file
nils-mathieu Oct 30, 2023
2b1bc16
update the README to include how to build the library from source
nils-mathieu Oct 30, 2023
810e3aa
configure the generator to avoid using `std`
nils-mathieu Oct 30, 2023
48b3d20
remove trash files
nils-mathieu Oct 30, 2023
0fc7240
avoid using stark-felt/std when the std feature is not enabled
nils-mathieu Oct 30, 2023
e6576a2
merge from 'main'
nils-mathieu Nov 1, 2023
ca99315
convert dependency `stark-felt` to `starknet-types-core`
nils-mathieu Nov 1, 2023
81c8742
fix the tag of BroadcastedDeclareTxn
nils-mathieu Nov 1, 2023
861bf2b
move custom types in a 'custom' module
nils-mathieu Nov 1, 2023
2b6043e
take query-only broadcasted transactions
nils-mathieu Nov 1, 2023
229b6bc
update the spec to the lastest version
nils-mathieu Nov 1, 2023
42cbd46
move everything in a v0_5_0 module for better backwards compatibility
nils-mathieu Nov 1, 2023
5b7231c
include other files of the specification
nils-mathieu Nov 1, 2023
7aa5f3e
remove paths from the trace_api generated file
nils-mathieu Nov 1, 2023
30e0df9
renamed copied file
nils-mathieu Nov 1, 2023
7275cc3
update to the latest version of the spec
nils-mathieu Nov 6, 2023
1a0980e
optimize the hex-convertion routines + add comments
nils-mathieu Nov 7, 2023
6846446
add tests for NumAsHex serialization/deserialization routines
nils-mathieu Nov 7, 2023
997b609
remove usage of `String` within tests
nils-mathieu Nov 7, 2023
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: 10 additions & 0 deletions crates/starknet-types-rpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,14 @@ keywords = ["stark", "zkp", "cairo"]
description = "Starknet RPC types."
readme = "README.md"

[features]
default = ["std"]

std = ["serde/std"]

[dependencies]
stark-felt = { path = "../stark-felt" }
serde = { version = "1", default-features = false, features = ["derive"] }

[dev-dependencies]
serde_json = "1"
Loading
Loading