Redo Tendermint folder structure

This commit is contained in:
Luke Parker 2022-10-27 06:33:58 -04:00
parent 4c2dd9b306
commit 66f7663cb2
No known key found for this signature in database
GPG key ID: F9F1386DB1E119B6
23 changed files with 56 additions and 8 deletions

View file

@ -16,12 +16,12 @@ members = [
"processor", "processor",
"substrate/tendermint", "substrate/tendermint/machine",
"substrate/tendermint/primitives",
"substrate/tendermint/client",
"substrate/tendermint/pallet",
"substrate/pallet-tendermint",
"substrate/runtime", "substrate/runtime",
"substrate/consensus",
"substrate/node", "substrate/node",
"contracts/extension", "contracts/extension",

View file

@ -3,7 +3,7 @@ name = "serai-consensus"
version = "0.1.0" version = "0.1.0"
description = "Serai consensus module" description = "Serai consensus module"
license = "AGPL-3.0-only" license = "AGPL-3.0-only"
repository = "https://github.com/serai-dex/serai/tree/develop/substrate/consensus" repository = "https://github.com/serai-dex/serai/tree/develop/substrate/tendermint/client"
authors = ["Luke Parker <lukeparker5132@gmail.com>"] authors = ["Luke Parker <lukeparker5132@gmail.com>"]
edition = "2021" edition = "2021"
publish = false publish = false

View file

@ -3,7 +3,7 @@ name = "tendermint-machine"
version = "0.1.0" version = "0.1.0"
description = "An implementation of the Tendermint state machine in Rust" description = "An implementation of the Tendermint state machine in Rust"
license = "MIT" license = "MIT"
repository = "https://github.com/serai-dex/serai/tree/develop/substrate/tendermint" repository = "https://github.com/serai-dex/serai/tree/develop/substrate/tendermint/machine"
authors = ["Luke Parker <lukeparker5132@gmail.com>"] authors = ["Luke Parker <lukeparker5132@gmail.com>"]
edition = "2021" edition = "2021"

View file

@ -3,7 +3,7 @@ name = "pallet-tendermint"
version = "0.1.0" version = "0.1.0"
description = "Tendermint pallet for Substrate" description = "Tendermint pallet for Substrate"
license = "AGPL-3.0-only" license = "AGPL-3.0-only"
repository = "https://github.com/serai-dex/serai/tree/develop/substrate/pallet-tendermint" repository = "https://github.com/serai-dex/serai/tree/develop/substrate/tendermint/pallet"
authors = ["Luke Parker <lukeparker5132@gmail.com>"] authors = ["Luke Parker <lukeparker5132@gmail.com>"]
edition = "2021" edition = "2021"
@ -12,7 +12,6 @@ all-features = true
rustdoc-args = ["--cfg", "docsrs"] rustdoc-args = ["--cfg", "docsrs"]
[dependencies] [dependencies]
parity-scale-codec = { version = "3", default-features = false, features = ["derive"] } parity-scale-codec = { version = "3", default-features = false, features = ["derive"] }
scale-info = { version = "2", default-features = false, features = ["derive"] } scale-info = { version = "2", default-features = false, features = ["derive"] }

View file

@ -0,0 +1,15 @@
AGPL-3.0-only license
Copyright (c) 2022 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 <http://www.gnu.org/licenses/>.

View file

@ -0,0 +1,12 @@
[package]
name = "sp-tendermint"
version = "0.1.0"
description = "Substrate primitives for Tendermint"
license = "AGPL-3.0-only"
repository = "https://github.com/serai-dex/serai/tree/develop/substrate/tendermint/primitives"
authors = ["Luke Parker <lukeparker5132@gmail.com>"]
edition = "2021"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

View file

@ -0,0 +1,15 @@
AGPL-3.0-only license
Copyright (c) 2022 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 <http://www.gnu.org/licenses/>.

View file

@ -0,0 +1,7 @@
#![cfg_attr(not(feature = "std"), no_std)]
use sp_core::sr25519::Public;
trait TendermintApi {
fn validators() -> Vec<Public>;
}