Commit graph

8 commits

Author SHA1 Message Date
hinto.janai
0227c1b793
base: remove unneeded base types 2024-07-02 21:21:47 -04:00
hinto.janai
2d54d2a19a
macros: split type generator macro up 2024-07-02 21:21:33 -04:00
hinto.janai
9a90d5be40
fix clippy 2024-07-01 21:04:24 -04:00
hinto.janai
c7ec8c7d9b
rpc: fix doc links 2024-07-01 20:58:15 -04:00
hinto.janai
1a90c75f42
rpc: use feature flags in misc types 2024-07-01 20:53:16 -04:00
hinto.janai
a85d4b845a
rpc: use feature flags in type generator macro 2024-07-01 20:53:06 -04:00
hinto.janai
161eeb7be9
rpc: add/doc feature flags 2024-07-01 20:52:57 -04:00
hinto-janai
e405786a73
rpc: start cuprate-rpc-types (#147)
* rpc: add `monero-rpc-types`

* lib.rs: add lints

* add base files, deps

* fix macro generation, doc test

* add `strum`, add `misc` module

* document struct generation macro

* add `GetHeight`

* lib.rs: create re-export macro

* macro changes, add few more types

* docs

* `monero-rpc-types` -> `cuprate-rpc-types`

* fix modules

* specify commit in macro, add () type aliases

* macro docs, fixes

* add `Status::Other(String)`

* add TODO for `strum`

* Update rpc/types/Cargo.toml

Co-authored-by: Boog900 <boog900@tutanota.com>

* add `BinaryString`

* add `ResponseBase`

* add `CORE_RPC_*` constants

* fix status; use `CORE_RPC_*` constants

* cargo.toml: add `epee_encoding`

* rpc: add epee_encoding impl for `Status`

* macro: add epee_encoding for every type

* remove `strum`

* add response bases

* add `CORE_RPC_STATUS_UNKNOWN`

* add response/request bases for epee

* create `base` module

* use different type for macro example

* move base / root types around

* docs, status serde test

* status: use `Status::Unknown` for `epee_default_value`

* json: add missing fields to `GetBlockTemplateRequest`

not sure I missed these

cc73fe7116/src/rpc/core_rpc_server_commands_defs.h (L947-L950)

---------

Co-authored-by: Boog900 <boog900@tutanota.com>
2024-06-26 22:24:05 +01:00