hinto.janai
1b326067c3
add ResponseBase
Audit / audit (push) Waiting to run
Deny / audit (push) Waiting to run
2024-06-19 19:02:44 -04:00
hinto.janai
f7be3e127a
add BinaryString
2024-06-19 18:29:34 -04:00
hinto-janai
15a80be526
Update rpc/types/Cargo.toml
...
Co-authored-by: Boog900 <boog900@tutanota.com>
2024-06-19 17:59:08 -04:00
hinto.janai
4830a26180
add TODO for strum
2024-06-19 17:57:11 -04:00
hinto.janai
87e99da0eb
add Status::Other(String)
2024-06-17 14:50:52 -04:00
hinto.janai
d72c96ab9c
Merge branch 'main' into rpc-types
Audit / audit (push) Has been cancelled
Deny / audit (push) Has been cancelled
2024-06-17 14:38:02 -04:00
hinto.janai
f69b830f89
macro docs, fixes
2024-06-16 21:06:54 -04:00
hinto.janai
5cf2c875d7
specify commit in macro, add () type aliases
Audit / audit (push) Waiting to run
Deny / audit (push) Waiting to run
2024-06-16 16:45:10 -04:00
hinto.janai
07ae4f6bd2
fix modules
2024-06-16 16:23:32 -04:00
hinto.janai
1c12d6d2cf
monero-rpc-types
-> cuprate-rpc-types
2024-06-16 15:59:25 -04:00
acd5380256
Fix clippy & Cargo update ( #161 )
...
CI / fmt (push) Waiting to run
CI / typo (push) Waiting to run
CI / ci (macos-latest, stable, bash) (push) Waiting to run
CI / ci (ubuntu-latest, stable, bash) (push) Waiting to run
CI / ci (windows-latest, stable-x86_64-pc-windows-gnu, msys2 {0}) (push) Waiting to run
Audit / audit (push) Has been cancelled
Deny / audit (push) Has been cancelled
* fix clippy
* run cargo update
* fix cargo deny
* remove duplicate `#[test]`
2024-06-13 19:08:34 +01:00
hinto.janai
81aad9641f
docs
2024-06-12 16:16:09 -04:00
hinto-janai
a3e34c3ba8
rpc: implement json-rpc
crate ( #148 )
...
* rpc: add `json-rpc` from https://github.com/Cuprate/cuprate/pull/43
Maintains all the changes made in that branch
* workspace: add `rpc/json-rpc`
* json-rpc: fix cargo.toml
* add todo
* satisfy clippy
* `method/params` -> `body` switch, adjust input types
* add test helpers, test tagged enums and flatten structs
* fix id type `None` <-> `Some(Id::Null)` difference
* lib.rs: add docs
* impl `Version`
* impl `Id`
* impl `Request`
* impl `Response`
* impl `ErrorCode`
* impl `ErrorObject`
* fixes
* add monero jsonrpc tests
* response: add id test
* add display docs to `ErrorObject`
* remove `#[inline]`
* add id null test
* cleanup
* code: clarify Monero's error code usage in docs
* id: fix macro indentation
* readme: fix `Response` -> `Request`
* request: add `lowercase` test
* tests: formatting, more string tests
* readme: add `Serialization changes`
* code: ugly `match` -> `if`
* response: manual deserialization impl
- lowercase keys only
- enforce either `result/error` but not both
* remove unneeded clone bounds
* readme: add implementation comparison tests
* request/response: more tests
* readme: formatting, assert error messages are expected
* request: add unknown field test
* request/response: add unknown field and unicode test
2024-06-12 02:12:31 +01:00
hinto.janai
865ff304c5
macro changes, add few more types
2024-06-11 21:07:59 -04:00
hinto.janai
661e3d0ac8
Merge branch 'main' into rpc-types
2024-06-11 20:33:45 -04:00
hinto-janai
6df67bb9d3
rpc: add initial crates ( #146 )
...
* add `rpc/` crates
* rpc: fix `monero-rpc-server` -> `monero-rpc-types`
* rpc: add skeleton `rpc/json-rpc`
* remove `cuprate-rpc-server`, add `json-rpc`
2024-06-05 15:35:08 +01:00
hinto.janai
8c24f13e8c
lib.rs: create re-export macro
2024-06-03 21:20:36 -04:00
hinto.janai
a4ad660daa
add GetHeight
2024-06-03 20:26:34 -04:00
hinto.janai
af70416736
document struct generation macro
2024-06-03 17:42:43 -04:00
hinto.janai
972bdfbec6
add strum
, add misc
module
2024-06-03 17:42:24 -04:00
hinto.janai
b41b7dd557
fix macro generation, doc test
2024-06-03 16:32:26 -04:00
hinto.janai
9fa5d24e3a
add base files, deps
2024-06-02 20:12:03 -04:00
hinto.janai
009abe0959
lib.rs: add lints
2024-06-02 19:36:35 -04:00
hinto.janai
83d57abcec
rpc: add monero-rpc-types
2024-06-02 19:29:02 -04:00
hinto-janai
4876e159e7
repo: add skeleton directories, fix labels ( #139 )
...
* `database/` -> `storage/`, create skeleton `storage/` crates
* add skeleton root directories
* books: add skeleton
* ci: fix labeler.yml
* fix CONTRIBUTING.md
* fix workspace Cargo.toml
* fix `storage/`
* rename helper fs fn, `cuprate_database` -> `cuprate_blockchain`
* fix Cargo.toml
* cuprate-blockchain: revert find-and-replace
Since it has to be ported to the book anyway, there's not much
reason to update this and create review diffs.
* labeler.yml: remove `A-docs` from `books/` changes
Although books are documentation,
the `A-books` label already exists for this
2024-05-29 02:18:30 +01:00