From de52c4db7f1cd600dd7dd6963128e2daca74d987 Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Tue, 11 Apr 2023 09:21:35 -0400 Subject: [PATCH] Add empty coordinator --- Cargo.lock | 7 +++++++ Cargo.toml | 2 ++ coordinator/Cargo.toml | 17 +++++++++++++++++ coordinator/LICENSE | 15 +++++++++++++++ coordinator/README.md | 7 +++++++ coordinator/src/main.rs | 2 ++ deny.toml | 2 ++ 7 files changed, 52 insertions(+) create mode 100644 coordinator/Cargo.toml create mode 100644 coordinator/LICENSE create mode 100644 coordinator/README.md create mode 100644 coordinator/src/main.rs diff --git a/Cargo.lock b/Cargo.lock index 9a453635..07c26d0a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1311,6 +1311,13 @@ dependencies = [ "unicode-segmentation", ] +[[package]] +name = "coordinator" +version = "0.1.0" +dependencies = [ + "tokio", +] + [[package]] name = "core-foundation" version = "0.9.3" diff --git a/Cargo.toml b/Cargo.toml index c0621442..1bc91d0c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,6 +26,8 @@ members = [ "tendermint", + "coordinator", + "substrate/primitives", "substrate/client", diff --git a/coordinator/Cargo.toml b/coordinator/Cargo.toml new file mode 100644 index 00000000..968e8831 --- /dev/null +++ b/coordinator/Cargo.toml @@ -0,0 +1,17 @@ +[package] +name = "coordinator" +version = "0.1.0" +description = "Serai coordinator to prepare batches and sign transactions" +license = "AGPL-3.0-only" +repository = "https://github.com/serai-dex/serai/tree/develop/coordinator" +authors = ["Luke Parker "] +keywords = [] +edition = "2021" +publish = false + +[package.metadata.docs.rs] +all-features = true +rustdoc-args = ["--cfg", "docsrs"] + +[dependencies] +tokio = { version = "1", features = ["full"] } diff --git a/coordinator/LICENSE b/coordinator/LICENSE new file mode 100644 index 00000000..f684d027 --- /dev/null +++ b/coordinator/LICENSE @@ -0,0 +1,15 @@ +AGPL-3.0-only license + +Copyright (c) 2023 Luke Parker + +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU Affero General Public License Version 3 as +published by the Free Software Foundation. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU Affero General Public License for more details. + +You should have received a copy of the GNU Affero General Public License +along with this program. If not, see . diff --git a/coordinator/README.md b/coordinator/README.md new file mode 100644 index 00000000..ed41ef71 --- /dev/null +++ b/coordinator/README.md @@ -0,0 +1,7 @@ +# Coordinator + +The Serai coordinator communicates with other coordinators to prepare batches +for Serai and sign transactions. + +In order to achieve consensus over gossip, and order certain events, a +micro-blockchain is instantiated. diff --git a/coordinator/src/main.rs b/coordinator/src/main.rs new file mode 100644 index 00000000..7f755fb7 --- /dev/null +++ b/coordinator/src/main.rs @@ -0,0 +1,2 @@ +#[tokio::main] +async fn main() {} diff --git a/deny.toml b/deny.toml index 67d2ba4e..8e9c56c7 100644 --- a/deny.toml +++ b/deny.toml @@ -50,6 +50,8 @@ exceptions = [ { allow = ["AGPL-3.0"], name = "processor-messages" }, { allow = ["AGPL-3.0"], name = "processor" }, + { allow = ["AGPL-3.0"], name = "coordinator" }, + { allow = ["AGPL-3.0"], name = "tokens-pallet" }, { allow = ["AGPL-3.0"], name = "in-instructions-pallet" },