cuprate-hinto-janai/test-utils/src/rpc/data/bin.rs
hinto-janai aa718e224f
Some checks failed
CI / ci (macos-latest, stable, bash) (push) Has been cancelled
Audit / audit (push) Has been cancelled
CI / fmt (push) Has been cancelled
CI / typo (push) Has been cancelled
Deny / audit (push) Has been cancelled
Doc / build (push) Has been cancelled
CI / ci (ubuntu-latest, stable, bash) (push) Has been cancelled
CI / ci (windows-latest, stable-x86_64-pc-windows-gnu, msys2 {0}) (push) Has been cancelled
Doc / deploy (push) Has been cancelled
test-utils: add crate::rpc::data module (#231)
* test-utils: add `crate::rpc::types` module

* test-utils: conditional json doc-tests

* json: add test data, fix macro doc tests

* json: add all data

* other: add all data

* bin: add skeleton

* docs

* move type to correct file

* rpc: `client/{client,constants}.rs` -> `client.rs`

* lib.rs: remove `clippy::module_inception`
2024-07-19 00:50:27 +01:00

55 lines
1.3 KiB
Rust

//! Binary data from [`.bin` endpoints](https://www.getmonero.org/resources/developer-guides/daemon-rpc.html#get_blocksbin).
//!
//! TODO: Not implemented yet.
//---------------------------------------------------------------------------------------------------- Import
use crate::rpc::data::macros::define_request_and_response;
//---------------------------------------------------------------------------------------------------- TODO
define_request_and_response! {
get_blocksbin,
GET_BLOCKS: &[u8],
Request = &[];
Response = &[];
}
define_request_and_response! {
get_blocks_by_heightbin,
GET_BLOCKS_BY_HEIGHT: &[u8],
Request = &[];
Response = &[];
}
define_request_and_response! {
get_hashesbin,
GET_HASHES: &[u8],
Request = &[];
Response = &[];
}
define_request_and_response! {
get_o_indexesbin,
GET_O_INDEXES: &[u8],
Request = &[];
Response = &[];
}
define_request_and_response! {
get_outsbin,
GET_OUTS: &[u8],
Request = &[];
Response = &[];
}
define_request_and_response! {
get_transaction_pool_hashesbin,
GET_TRANSACTION_POOL_HASHES: &[u8],
Request = &[];
Response = &[];
}
//---------------------------------------------------------------------------------------------------- Tests
#[cfg(test)]
mod test {
// use super::*;
}