-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from hicommonwealth/drew.upgrade
Drew.upgrade: New testnet, organizing the node more efficiently/transparently
- Loading branch information
Showing
18 changed files
with
2,183 additions
and
640 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "edgeware" | ||
version = "0.1.9" | ||
version = "0.2.0" | ||
authors = ["Commonwealth Labs <[email protected]>"] | ||
build = "build.rs" | ||
|
||
|
@@ -10,49 +10,34 @@ path = "node/src/main.rs" | |
|
||
[dependencies] | ||
error-chain = "0.12" | ||
edgeware-cli = { path = "node/cli" } | ||
futures = "0.1" | ||
ctrlc = { version = "3.0", features = ["termination"] } | ||
log = "0.4" | ||
tokio = "0.1.7" | ||
exit-future = "0.1" | ||
parking_lot = "0.4" | ||
hex-literal = "0.1" | ||
slog = "^2" | ||
parity-codec = { version = "3.0" } | ||
trie-root = { git = "https://github.com/paritytech/trie" } | ||
sr-io = { git = "https://github.com/paritytech/substrate" } | ||
sr-primitives = { git = "https://github.com/paritytech/substrate" } | ||
substrate-cli = { git = "https://github.com/paritytech/substrate" } | ||
substrate-primitives = { git = "https://github.com/paritytech/substrate" } | ||
substrate-inherents = { git = "https://github.com/paritytech/substrate" } | ||
substrate-keystore = { git = "https://github.com/paritytech/substrate" } | ||
substrate-executor = { git = "https://github.com/paritytech/substrate" } | ||
substrate-service = { git = "https://github.com/paritytech/substrate" } | ||
substrate-transaction-pool = { git = "https://github.com/paritytech/substrate" } | ||
substrate-network = { git = "https://github.com/paritytech/substrate" } | ||
substrate-consensus-aura = { git = "https://github.com/paritytech/substrate" } | ||
substrate-telemetry = { git = "https://github.com/paritytech/substrate" } | ||
substrate-client = { git = "https://github.com/paritytech/substrate", default-features = false } | ||
substrate-finality-grandpa = { git = "https://github.com/paritytech/substrate" } | ||
substrate-basic-authorship = { git = "https://github.com/paritytech/substrate" } | ||
structopt = "0.2" | ||
node-primitives = { path = "node/primitives" } | ||
edgeware-runtime = { path = "node/runtime" } | ||
|
||
[build-dependencies] | ||
vergen = "2" | ||
vergen = "3" | ||
|
||
[workspace] | ||
members = [ | ||
"node/runtime", | ||
"node/cli", | ||
"node/executor", | ||
"node/primitives", | ||
"node/service", | ||
"modules/edge-delegation", | ||
"modules/edge-governance", | ||
"modules/edge-identity", | ||
"modules/edge-voting", | ||
"subkey" | ||
"subkey", | ||
] | ||
exclude = [ "node/runtime/wasm" ] | ||
|
||
[badges] | ||
travis-ci = { repository = "paritytech/substrate", branch = "master" } | ||
maintenance = { status = "actively-developed" } | ||
is-it-maintained-issue-resolution = { repository = "paritytech/substrate" } | ||
is-it-maintained-open-issues = { repository = "paritytech/substrate" } | ||
|
||
[profile.release] | ||
# Substrate runtime requires unwinding. | ||
panic = "unwind" | ||
panic = "unwind" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[package] | ||
name = "edgeware-cli" | ||
version = "0.1.0" | ||
authors = ["Commonwealth Labs <[email protected]>"] | ||
edition = "2018" | ||
|
||
[dependencies] | ||
log = "0.4.6" | ||
tokio = "0.1.7" | ||
futures = "0.1.17" | ||
exit-future = "0.1" | ||
substrate-cli = { git = "https://github.com/paritytech/substrate" } | ||
edgeware-service = { path = "../service" } | ||
edgeware-primitives = { path = "../primitives" } | ||
edgeware-runtime = { path = "../runtime" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
// Copyright 2018 Commonwealth Labs, Inc. | ||
// This file is part of Edgeware. | ||
|
||
// Edgeware is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
|
||
// Edgeware 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 General Public License for more details. | ||
|
||
// You should have received a copy of the GNU General Public License | ||
// along with Edgeware. If not, see <http://www.gnu.org/licenses/> | ||
|
||
use service; | ||
|
||
/// The chain specification option. | ||
#[derive(Clone, Debug)] | ||
pub enum ChainSpec { | ||
/// Whatever the current runtime is, with just Alice as an auth. | ||
Development, | ||
/// Whatever the current runtime is, with simple Alice/Bob auths. | ||
LocalTestnet, | ||
/// Edgeware testnet. | ||
Edgeware, | ||
/// Edgeware testnet configuration (intermediate build process) | ||
EdgewareTestnetConfiguration, | ||
// Commonwealth CI testnet | ||
CWCITestnet, | ||
} | ||
|
||
impl Default for ChainSpec { | ||
fn default() -> Self { | ||
ChainSpec::Development | ||
} | ||
} | ||
|
||
/// Get a chain config from a spec setting. | ||
impl ChainSpec { | ||
pub(crate) fn load(self) -> Result<service::chain_spec::ChainSpec, String> { | ||
Ok(match self { | ||
ChainSpec::EdgewareTestnetConfiguration => service::chain_spec::edgeware_testnet_config()?, | ||
ChainSpec::Edgeware => service::chain_spec::edgeware_config(), | ||
ChainSpec::Development => service::chain_spec::development_config(), | ||
ChainSpec::LocalTestnet => service::chain_spec::local_testnet_config(), | ||
ChainSpec::CWCITestnet => service::chain_spec::cwci_testnet_config(), | ||
}) | ||
} | ||
|
||
pub(crate) fn from(s: &str) -> Option<Self> { | ||
match s { | ||
"dev" => Some(ChainSpec::Development), | ||
"local" => Some(ChainSpec::LocalTestnet), | ||
"edge" => Some(ChainSpec::EdgewareTestnetConfiguration), | ||
"edgeware" => Some(ChainSpec::Edgeware), | ||
"cwci" => Some(ChainSpec::CWCITestnet), | ||
"" => Some(ChainSpec::default()), | ||
_ => None, | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[package] | ||
name = "edgeware-executor" | ||
version = "0.1.0" | ||
authors = ["Commonwealth Labs <[email protected]>"] | ||
edition = "2018" | ||
|
||
[dependencies] | ||
trie-root = "0.12" | ||
parity-codec = "3.3" | ||
runtime_io = { package = "sr-io", git = "https://github.com/paritytech/substrate" } | ||
state_machine = { package = "substrate-state-machine", git = "https://github.com/paritytech/substrate" } | ||
substrate-executor = { git = "https://github.com/paritytech/substrate" } | ||
primitives = { package = "substrate-primitives", git = "https://github.com/paritytech/substrate" } | ||
trie = { package = "substrate-trie", git = "https://github.com/paritytech/substrate" } | ||
edgeware-primitives = { path = "../primitives" } | ||
edgeware-runtime = { path = "../runtime" } | ||
|
||
[dev-dependencies] | ||
keyring = { package = "substrate-keyring", git = "https://github.com/paritytech/substrate" } | ||
runtime_primitives = { package = "sr-primitives", git = "https://github.com/paritytech/substrate" } | ||
runtime_support = { package = "srml-support", git = "https://github.com/paritytech/substrate" } | ||
balances = { package = "srml-balances", git = "https://github.com/paritytech/substrate" } | ||
session = { package = "srml-session", git = "https://github.com/paritytech/substrate" } | ||
staking = { package = "srml-staking", git = "https://github.com/paritytech/substrate" } | ||
system = { package = "srml-system", git = "https://github.com/paritytech/substrate" } | ||
consensus = { package = "srml-consensus", git = "https://github.com/paritytech/substrate" } | ||
timestamp = { package = "srml-timestamp", git = "https://github.com/paritytech/substrate" } | ||
treasury = { package = "srml-treasury", git = "https://github.com/paritytech/substrate" } | ||
contract = { package = "srml-contract", git = "https://github.com/paritytech/substrate" } | ||
grandpa = { package = "srml-grandpa", git = "https://github.com/paritytech/substrate" } | ||
indices = { package = "srml-indices", git = "https://github.com/paritytech/substrate" } | ||
wabt = "~0.7.4" | ||
|
||
[features] | ||
benchmarks = [] |
Oops, something went wrong.