diff --git a/Cargo.lock b/Cargo.lock index b02865d..0e507c4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -527,6 +527,10 @@ dependencies = [ "tracing", ] +[[package]] +name = "cuprate-rpc-interface" +version = "0.0.0" + [[package]] name = "cuprate-test-utils" version = "0.1.0" @@ -1198,6 +1202,10 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "json-rpc" +version = "0.0.0" + [[package]] name = "keccak" version = "0.1.5" @@ -1392,6 +1400,10 @@ dependencies = [ "thiserror", ] +[[package]] +name = "monero-rpc-types" +version = "0.0.0" + [[package]] name = "monero-serai" version = "0.1.4-alpha" diff --git a/Cargo.toml b/Cargo.toml index 4b9bd63..630f14d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,6 +21,9 @@ members = [ "pruning", "test-utils", "types", + "rpc/json-rpc", + "rpc/monero-rpc-types", + "rpc/cuprate-rpc-interface", ] [profile.release] diff --git a/rpc/README.md b/rpc/README.md index 4640904..a93f2e0 100644 --- a/rpc/README.md +++ b/rpc/README.md @@ -1 +1,4 @@ -# TODO +# RPC +This directory contains Monero RPC types and Cuprate RPC's libraries. + + diff --git a/rpc/cuprate-rpc-interface/Cargo.toml b/rpc/cuprate-rpc-interface/Cargo.toml new file mode 100644 index 0000000..47af5cd --- /dev/null +++ b/rpc/cuprate-rpc-interface/Cargo.toml @@ -0,0 +1,15 @@ +[package] +name = "cuprate-rpc-interface" +version = "0.0.0" +edition = "2021" +description = "Cuprate's RPC interface library" +license = "MIT" +authors = ["hinto-janai"] +repository = "https://github.com/Cuprate/cuprate/tree/main/rpc/cuprate-rpc-interface" +keywords = ["cuprate", "rpc", "interface"] + +[features] + +[dependencies] + +[dev-dependencies] diff --git a/rpc/cuprate-rpc-interface/src/lib.rs b/rpc/cuprate-rpc-interface/src/lib.rs new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/rpc/cuprate-rpc-interface/src/lib.rs @@ -0,0 +1 @@ + diff --git a/rpc/json-rpc/Cargo.toml b/rpc/json-rpc/Cargo.toml new file mode 100644 index 0000000..2425cc6 --- /dev/null +++ b/rpc/json-rpc/Cargo.toml @@ -0,0 +1,15 @@ +[package] +name = "json-rpc" +version = "0.0.0" +edition = "2021" +description = "JSON-RPC 2.0 implementation" +license = "MIT" +authors = ["hinto-janai"] +repository = "https://github.com/Cuprate/cuprate/tree/main/rpc/json-rpc" +keywords = ["json", "rpc"] + +[features] + +[dependencies] + +[dev-dependencies] diff --git a/rpc/json-rpc/src/lib.rs b/rpc/json-rpc/src/lib.rs new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/rpc/json-rpc/src/lib.rs @@ -0,0 +1 @@ + diff --git a/rpc/monero-rpc-types/Cargo.toml b/rpc/monero-rpc-types/Cargo.toml new file mode 100644 index 0000000..a32eedb --- /dev/null +++ b/rpc/monero-rpc-types/Cargo.toml @@ -0,0 +1,15 @@ +[package] +name = "monero-rpc-types" +version = "0.0.0" +edition = "2021" +description = "Monero RPC types" +license = "MIT" +authors = ["hinto-janai"] +repository = "https://github.com/Cuprate/cuprate/tree/main/rpc/monero-rpc-types" +keywords = ["monero", "rpc", "types"] + +[features] + +[dependencies] + +[dev-dependencies] diff --git a/rpc/monero-rpc-types/src/lib.rs b/rpc/monero-rpc-types/src/lib.rs new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/rpc/monero-rpc-types/src/lib.rs @@ -0,0 +1 @@ +