monero-rpc-types -> cuprate-rpc-types

This commit is contained in:
hinto.janai 2024-06-16 15:59:25 -04:00
parent 81aad9641f
commit 1c12d6d2cf
No known key found for this signature in database
GPG key ID: D47CE05FA175A499
13 changed files with 18 additions and 19 deletions

22
Cargo.lock generated
View file

@ -542,6 +542,17 @@ dependencies = [
name = "cuprate-rpc-interface"
version = "0.0.0"
[[package]]
name = "cuprate-rpc-types"
version = "0.0.0"
dependencies = [
"monero-serai",
"paste",
"serde",
"serde_json",
"strum",
]
[[package]]
name = "cuprate-test-utils"
version = "0.1.0"
@ -1554,17 +1565,6 @@ dependencies = [
"thiserror",
]
[[package]]
name = "monero-rpc-types"
version = "0.0.0"
dependencies = [
"monero-serai",
"paste",
"serde",
"serde_json",
"strum",
]
[[package]]
name = "monero-serai"
version = "0.1.4-alpha"

View file

@ -19,12 +19,11 @@ members = [
"storage/cuprate-txpool",
"storage/database",
"pruning",
"rpc/monero-rpc-types",
"test-utils",
"types",
"rpc/json-rpc",
"rpc/monero-rpc-types",
"rpc/cuprate-rpc-interface",
"rpc/types",
"rpc/interface",
]
[profile.release]

View file

@ -1,12 +1,12 @@
[package]
name = "monero-rpc-types"
name = "cuprate-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"]
repository = "https://github.com/Cuprate/cuprate/tree/main/rpc/cuprate-rpc-types"
keywords = ["cuprate", "rpc", "types", "monero"]
[features]
default = []

View file

@ -11,7 +11,7 @@ This crate ports the types used in Monero's RPC interface, including:
This crate's types are split in the following manner:
1. This crate has 3 modules:
- The root module (`monero_rpc_types`)
- The root module (`cuprate_rpc_types`)
- [`req`] (request types)
- [`resp`] (response types)
1. Miscellaneous types are found in the root module, e.g. [`Status`]

View file

@ -18,7 +18,7 @@ use strum::{
///
/// ## Serialization and string formatting
/// ```rust
/// # use monero_rpc_types::*;
/// # use cuprate_rpc_types::*;
/// use serde_json::to_string;
/// use strum::AsRefStr;
///