From 09f8ac37c49cbcd911e622185e750cdc396392bd Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Tue, 11 Apr 2023 10:18:31 -0400 Subject: [PATCH] Create a folder for tributary, the micro-blockchain Moves tendermint again, this time under tributary. --- Cargo.lock | 7 +++++++ Cargo.toml | 3 ++- coordinator/tributary/Cargo.toml | 11 +++++++++++ coordinator/tributary/LICENSE | 15 +++++++++++++++ coordinator/tributary/README.md | 3 +++ coordinator/tributary/src/lib.rs | 1 + coordinator/{ => tributary}/tendermint/Cargo.toml | 0 coordinator/{ => tributary}/tendermint/LICENSE | 0 coordinator/{ => tributary}/tendermint/README.md | 0 .../{ => tributary}/tendermint/src/block.rs | 0 coordinator/{ => tributary}/tendermint/src/ext.rs | 0 coordinator/{ => tributary}/tendermint/src/lib.rs | 0 .../{ => tributary}/tendermint/src/message_log.rs | 0 .../{ => tributary}/tendermint/src/round.rs | 0 .../{ => tributary}/tendermint/src/time.rs | 0 .../{ => tributary}/tendermint/tests/ext.rs | 0 deny.toml | 1 + 17 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 coordinator/tributary/Cargo.toml create mode 100644 coordinator/tributary/LICENSE create mode 100644 coordinator/tributary/README.md create mode 100644 coordinator/tributary/src/lib.rs rename coordinator/{ => tributary}/tendermint/Cargo.toml (100%) rename coordinator/{ => tributary}/tendermint/LICENSE (100%) rename coordinator/{ => tributary}/tendermint/README.md (100%) rename coordinator/{ => tributary}/tendermint/src/block.rs (100%) rename coordinator/{ => tributary}/tendermint/src/ext.rs (100%) rename coordinator/{ => tributary}/tendermint/src/lib.rs (100%) rename coordinator/{ => tributary}/tendermint/src/message_log.rs (100%) rename coordinator/{ => tributary}/tendermint/src/round.rs (100%) rename coordinator/{ => tributary}/tendermint/src/time.rs (100%) rename coordinator/{ => tributary}/tendermint/tests/ext.rs (100%) diff --git a/Cargo.lock b/Cargo.lock index 64920a38..774ed724 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -10670,6 +10670,13 @@ dependencies = [ "tracing-serde", ] +[[package]] +name = "tributary-chain" +version = "0.1.0" +dependencies = [ + "tendermint-machine", +] + [[package]] name = "trie-db" version = "0.27.1" diff --git a/Cargo.toml b/Cargo.toml index 1483ad2b..414fe40b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,7 +24,8 @@ members = [ "processor/messages", "processor", - "coordinator/tendermint", + "coordinator/tributary/tendermint", + "coordinator/tributary", "coordinator", "substrate/primitives", diff --git a/coordinator/tributary/Cargo.toml b/coordinator/tributary/Cargo.toml new file mode 100644 index 00000000..a126aca0 --- /dev/null +++ b/coordinator/tributary/Cargo.toml @@ -0,0 +1,11 @@ +[package] +name = "tributary-chain" +version = "0.1.0" +description = "A micro-blockchain to provide consensus and ordering to P2P communication" +license = "AGPL-3.0-only" +repository = "https://github.com/serai-dex/serai/tree/develop/coordinator/tributary" +authors = ["Luke Parker "] +edition = "2021" + +[dependencies] +tendermint = { package = "tendermint-machine", path = "./tendermint" } diff --git a/coordinator/tributary/LICENSE b/coordinator/tributary/LICENSE new file mode 100644 index 00000000..f684d027 --- /dev/null +++ b/coordinator/tributary/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/tributary/README.md b/coordinator/tributary/README.md new file mode 100644 index 00000000..be75b102 --- /dev/null +++ b/coordinator/tributary/README.md @@ -0,0 +1,3 @@ +# Tributary + +A micro-blockchain to provide consensus and ordering to P2P communication. diff --git a/coordinator/tributary/src/lib.rs b/coordinator/tributary/src/lib.rs new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/coordinator/tributary/src/lib.rs @@ -0,0 +1 @@ + diff --git a/coordinator/tendermint/Cargo.toml b/coordinator/tributary/tendermint/Cargo.toml similarity index 100% rename from coordinator/tendermint/Cargo.toml rename to coordinator/tributary/tendermint/Cargo.toml diff --git a/coordinator/tendermint/LICENSE b/coordinator/tributary/tendermint/LICENSE similarity index 100% rename from coordinator/tendermint/LICENSE rename to coordinator/tributary/tendermint/LICENSE diff --git a/coordinator/tendermint/README.md b/coordinator/tributary/tendermint/README.md similarity index 100% rename from coordinator/tendermint/README.md rename to coordinator/tributary/tendermint/README.md diff --git a/coordinator/tendermint/src/block.rs b/coordinator/tributary/tendermint/src/block.rs similarity index 100% rename from coordinator/tendermint/src/block.rs rename to coordinator/tributary/tendermint/src/block.rs diff --git a/coordinator/tendermint/src/ext.rs b/coordinator/tributary/tendermint/src/ext.rs similarity index 100% rename from coordinator/tendermint/src/ext.rs rename to coordinator/tributary/tendermint/src/ext.rs diff --git a/coordinator/tendermint/src/lib.rs b/coordinator/tributary/tendermint/src/lib.rs similarity index 100% rename from coordinator/tendermint/src/lib.rs rename to coordinator/tributary/tendermint/src/lib.rs diff --git a/coordinator/tendermint/src/message_log.rs b/coordinator/tributary/tendermint/src/message_log.rs similarity index 100% rename from coordinator/tendermint/src/message_log.rs rename to coordinator/tributary/tendermint/src/message_log.rs diff --git a/coordinator/tendermint/src/round.rs b/coordinator/tributary/tendermint/src/round.rs similarity index 100% rename from coordinator/tendermint/src/round.rs rename to coordinator/tributary/tendermint/src/round.rs diff --git a/coordinator/tendermint/src/time.rs b/coordinator/tributary/tendermint/src/time.rs similarity index 100% rename from coordinator/tendermint/src/time.rs rename to coordinator/tributary/tendermint/src/time.rs diff --git a/coordinator/tendermint/tests/ext.rs b/coordinator/tributary/tendermint/tests/ext.rs similarity index 100% rename from coordinator/tendermint/tests/ext.rs rename to coordinator/tributary/tendermint/tests/ext.rs diff --git a/deny.toml b/deny.toml index e320dfe5..18e2dbe5 100644 --- a/deny.toml +++ b/deny.toml @@ -50,6 +50,7 @@ exceptions = [ { allow = ["AGPL-3.0"], name = "processor-messages" }, { allow = ["AGPL-3.0"], name = "processor" }, + { allow = ["AGPL-3.0"], name = "tributary-chain" }, { allow = ["AGPL-3.0"], name = "coordinator" }, { allow = ["AGPL-3.0"], name = "tokens-pallet" },