https://github.com/xjonathanlei/starknet-jsonrpc-codegen
Tool for generating the Starknet JSON-RPC code used in `starknet-rs`
https://github.com/xjonathanlei/starknet-jsonrpc-codegen
Last synced: over 1 year ago
JSON representation
Tool for generating the Starknet JSON-RPC code used in `starknet-rs`
- Host: GitHub
- URL: https://github.com/xjonathanlei/starknet-jsonrpc-codegen
- Owner: xJonathanLEI
- License: apache-2.0
- Created: 2022-12-07T14:15:35.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-03-25T18:26:28.000Z (over 1 year ago)
- Last Synced: 2025-04-10T09:16:06.584Z (over 1 year ago)
- Language: Rust
- Homepage:
- Size: 445 KB
- Stars: 6
- Watchers: 2
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# Starknet JSON-RPC Codegen
Tool for generating the Starknet JSON-RPC code used in `starknet-rs`. Starknet specs are shipped with this repo so it should work out of the box.
Run the tool and choose which version of the specification to use:
```console
$ cargo run -- generate --spec 0.8.0
```
and generated code will be emitted to `stdout`.
## Supported spec versions
The following versions are supported:
- `0.1.0`
- `0.2.1`
- `0.3.0`
- `0.4.0`
- `0.5.1`
- `0.6.0`
- `0.7.1`
- `0.8.0`
## License
Licensed under either of
- Apache License, Version 2.0 ([LICENSE-APACHE](./LICENSE-APACHE) or )
- MIT license ([LICENSE-MIT](./LICENSE-MIT) or )
at your option.