mirror of
https://github.com/hinto-janai/cuprate.git
synced 2024-11-16 15:58:14 +00:00
Binaries: add cuprated skeleton (#258)
* add cuprated skeleton * fmt and add deny exception
This commit is contained in:
parent
5648bf0da0
commit
7207fbd17b
14 changed files with 52 additions and 1 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
@ -881,6 +881,10 @@ dependencies = [
|
|||
"thiserror",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "cuprated"
|
||||
version = "0.1.0"
|
||||
|
||||
[[package]]
|
||||
name = "curve25519-dalek"
|
||||
version = "4.1.3"
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
resolver = "2"
|
||||
|
||||
members = [
|
||||
"binaries/cuprated",
|
||||
"consensus",
|
||||
"consensus/fast-sync",
|
||||
"consensus/rules",
|
||||
|
|
13
binaries/cuprated/Cargo.toml
Normal file
13
binaries/cuprated/Cargo.toml
Normal file
|
@ -0,0 +1,13 @@
|
|||
[package]
|
||||
name = "cuprated"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
description = "The Cuprate Monero Rust node."
|
||||
license = "AGPL-3.0-only"
|
||||
authors = ["Boog900", "hinto-janai", "SyntheticBird45"]
|
||||
repository = "https://github.com/Cuprate/cuprate/tree/main/binaries/cuprated"
|
||||
|
||||
[dependencies]
|
||||
|
||||
[lints]
|
||||
workspace = true
|
6
binaries/cuprated/src/blockchain.rs
Normal file
6
binaries/cuprated/src/blockchain.rs
Normal file
|
@ -0,0 +1,6 @@
|
|||
//! Blockchain
|
||||
//!
|
||||
//! Will contain the chain manager and syncer.
|
||||
|
||||
mod manager;
|
||||
mod syncer;
|
1
binaries/cuprated/src/blockchain/manager.rs
Normal file
1
binaries/cuprated/src/blockchain/manager.rs
Normal file
|
@ -0,0 +1 @@
|
|||
|
1
binaries/cuprated/src/blockchain/syncer.rs
Normal file
1
binaries/cuprated/src/blockchain/syncer.rs
Normal file
|
@ -0,0 +1 @@
|
|||
|
1
binaries/cuprated/src/config.rs
Normal file
1
binaries/cuprated/src/config.rs
Normal file
|
@ -0,0 +1 @@
|
|||
//! cuprated config
|
9
binaries/cuprated/src/main.rs
Normal file
9
binaries/cuprated/src/main.rs
Normal file
|
@ -0,0 +1,9 @@
|
|||
mod blockchain;
|
||||
mod config;
|
||||
mod p2p;
|
||||
mod rpc;
|
||||
mod txpool;
|
||||
|
||||
fn main() {
|
||||
todo!()
|
||||
}
|
5
binaries/cuprated/src/p2p.rs
Normal file
5
binaries/cuprated/src/p2p.rs
Normal file
|
@ -0,0 +1,5 @@
|
|||
//! P2P
|
||||
//!
|
||||
//! Will handle initiating the P2P and contains a protocol request handler.
|
||||
|
||||
mod request_handler;
|
1
binaries/cuprated/src/p2p/request_handler.rs
Normal file
1
binaries/cuprated/src/p2p/request_handler.rs
Normal file
|
@ -0,0 +1 @@
|
|||
|
5
binaries/cuprated/src/rpc.rs
Normal file
5
binaries/cuprated/src/rpc.rs
Normal file
|
@ -0,0 +1,5 @@
|
|||
//! RPC
|
||||
//!
|
||||
//! Will contain the code to initiate the RPC and a request handler.
|
||||
|
||||
mod request_handler;
|
1
binaries/cuprated/src/rpc/request_handler.rs
Normal file
1
binaries/cuprated/src/rpc/request_handler.rs
Normal file
|
@ -0,0 +1 @@
|
|||
|
3
binaries/cuprated/src/txpool.rs
Normal file
3
binaries/cuprated/src/txpool.rs
Normal file
|
@ -0,0 +1,3 @@
|
|||
//! Transaction Pool
|
||||
//!
|
||||
//! Will handle initiating the tx-pool, providing the preprocessor required for the dandelion pool.
|
|
@ -133,7 +133,7 @@ confidence-threshold = 0.8
|
|||
# aren't accepted for every possible crate as with the normal allow list
|
||||
exceptions = [
|
||||
# Cuprate (AGPL-3.0)
|
||||
# { allow = ["AGPL-3.0"], name = "cuprated", version = "*" }
|
||||
{ allow = ["AGPL-3.0"], name = "cuprated", version = "*" }
|
||||
|
||||
# Each entry is the crate and version constraint, and its specific allow
|
||||
# list
|
||||
|
|
Loading…
Reference in a new issue