Skip to content

Commit 6aea3a1

Browse files
arkparMTDK1
authored andcommitted
Emberic elm testnet (paritytech#2197)
1 parent a66d82b commit 6aea3a1

File tree

5 files changed

+160
-121
lines changed

5 files changed

+160
-121
lines changed

README.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,9 @@ cargo run --release \-- \
274274

275275
Additional Substate CLI usage options are available and may be shown by running `cargo run \-- --help`.
276276

277-
=== Joining the Dried Danta Testnet
277+
=== Joining the Emberic Elm Testnet
278278

279-
Dried Danta is the new testnet for Substrate 1.0 gamma. Please note that 1.0 gamma is not compatible with the BBQ-Birch or Charred-Cherry testnets. Ensure you have the dependencies listed above before compiling.
279+
Emberic Elm is the new testnet for Substrate 1.0. Please note that 1.0 is not compatible with the BBQ-Birch, Charred-Cherry, or Dried-Danta testnets. Ensure you have the dependencies listed above before compiling.
280280

281281
[source, shell]
282282
----
@@ -304,7 +304,7 @@ For example, you can choose a custom node name:
304304
[source, shell]
305305
cargo run --release \-- --name my_custom_name
306306

307-
If you are successful, you will see your node syncing at https://telemetry.polkadot.io/#/Dried%20Danta
307+
If you are successful, you will see your node syncing at https://telemetry.polkadot.io/#/Emberic%20Elm
308308

309309

310310
== Documentation

node/cli/res/dried-danta.json

Lines changed: 0 additions & 95 deletions
This file was deleted.

node/cli/res/emberic-elm.json

Lines changed: 132 additions & 0 deletions
Large diffs are not rendered by default.

node/cli/src/chain_spec.rs

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -31,37 +31,39 @@ const STAGING_TELEMETRY_URL: &str = "wss://telemetry.polkadot.io/submit/";
3131
/// Specialized `ChainSpec`.
3232
pub type ChainSpec = substrate_service::ChainSpec<GenesisConfig>;
3333

34-
/// Dried Danta testnet generator
35-
pub fn dried_danta_config() -> Result<ChainSpec, String> {
36-
ChainSpec::from_embedded(include_bytes!("../res/dried-danta.json"))
34+
/// Emberic Elm testnet generator
35+
pub fn emberic_elm_config() -> Result<ChainSpec, String> {
36+
ChainSpec::from_embedded(include_bytes!("../res/emberic-elm.json"))
3737
}
3838

3939
fn staging_testnet_config_genesis() -> GenesisConfig {
4040
// stash, controller, session-key
4141
// generated with secret:
42-
// for i in 1 2 3 4 ; do for j in stash controller; do subkey -p danta-$i-$j restore $secret; done; done
42+
// for i in 1 2 3 4 ; do for j in stash controller; do subkey inspect "$secret"/elm/$j/$i; done; done
4343
// and
44-
// for i in 1 2 3 4 ; do for j in session; do subkey --ed25519 -p danta-$i-$j restore $secret; done; done
44+
// for i in 1 2 3 4 ; do for j in session; do subkey --ed25519 inspect "$secret"//elm//$j//$i; done; done
45+
46+
4547
let initial_authorities: Vec<(AccountId, AccountId, AuthorityId)> = vec![(
46-
hex!["d807f8bd6b4b02b3db716dd5372960b094ed0e62b5704a07bc990130a642992b"].unchecked_into(), // 5GwxZv7LxSUQn89TLUaLi3oEWhFcabqW3nHcEg2J88gZNhrb
47-
hex!["1a934af462454e512e22b5d9455c0c3c2df479b1c61406b3d990f6bc2eb25e09"].unchecked_into(), // 5CfYrg5cW8UebBdfJpJbKFhZLyk7yHWXUgdxZnSGb2dWKgpt
48-
hex!["831fcce3a9565baf093b52568a8cb9875cb54974d80da8fc4f0cc767128a23e9"].unchecked_into(), // 5F2daQPHK7yv4Yuwyz3cggvvn1R5u1ofGMQ5LK5XvnfebMcX
48+
hex!["72b52eb36f57b4bae756e4f064cf2e97df80d5f9c2f06ff31206a9be8c7b371c"].unchecked_into(), // 5Ef78yxqfaxVzrFCemYcSgwVtMV85ywykhLNm5WKTsZV22HZ
49+
hex!["f0fae46aeb1a7ce8ca65f2bf885d09cd7f525bc00e9f6e73b5ea74402a2c4c19"].unchecked_into(), // 5HWfszmRMbzcjGmumYkkHtNJbi9y428JHgPeftVenvDgVUjh
50+
hex!["e29624233b2cba342750217aa1883f6ec624134dd306efd230a988e5cb37d9ed"].unchecked_into(), // 5HBoHDLMR4jPwB6BCLyd2qfYBHytFhGs8fsa1h5PzhYd3WBq
4951
),(
50-
hex!["12652f26e427c56268095bb0ec5824471e37722b073a9fa5de61c61c1de94656"].unchecked_into(), // 5CUpn2JmpsWkHQjZgWjN3rqPEUnjjUQZYcMk14nbUgR2Gpab
51-
hex!["5279e73e22971d729276ebad4eb6804d1b9c0c35bd32e8aba4513c674760a461"].unchecked_into(), // 5Dvqzke7Mdp3fP6Ysut7UXPSepPr3Qguys6LNkZGPSwXwAkR
52-
hex!["dbe61640d854bb7bf83cbfaf638a8a4c76c49a919ec3bbdd86799061fc1903e4"].unchecked_into(), // 5H32hCtKf6nXSckviVhUvWb7N14wDCRunRkCM29mxEXwjcUZ
52+
hex!["2254035a15597c1c19968be71593d2d0131e18ae90049e49178970f583ac3e17"].unchecked_into(), // 5CqiScHtxUatcQpck1tUks51o3pSjKsdCi2CLEHvMM7tc4Qi
53+
hex!["eacb8edf6b05cb909a3d2bd8c6bffb13be3069ec6a69f1fa25e46103c5190267"].unchecked_into(), // 5HNZXnSgw21idbuegTC1J8Txkja97RPnnWkX68ewnrJDec2Z
54+
hex!["e19b6b89729a41638e57dead9c993425287d386fa4963306b63f018732843495"].unchecked_into(), // 5HAWoPYfyYFHjacy8H2MDmHra7jVrPtBfFMPgd8CadpSqotL
5355
),(
54-
hex!["a81d738fdeeaed440cfce5635e0820d0d23e89207cf66a62b8c0d2a968e37d32"].unchecked_into(), // 5Fs8ehAjDEnenDwULCPnEr3HVXgepAVfyk9ABW84NfxCYtWD
55-
hex!["443a2c779a5f5dada8ee6921efec9673f67e5ce1bd6012899ff6c1adc437696c"].unchecked_into(), // 5DcAPqR269myKXhZmwbU1x2xLbuTojr85jHNRuDhrFdZ3vwi
56-
hex!["5bc01f56225e8602372fb343dba65a73e20c55bdbb3b8343a8f34df298a616fb"].unchecked_into(), // 5E91HbY2xo2qDJzi3KY8nRXjDNAQE9WtmMaji6YRwT8DAuK1
56+
hex!["fe6211db8bd436e0d1cf37398eac655833fb47497e0f72ec00ab160c88966b7e"].unchecked_into(), // 5HpF9orzkmJ9ga3yrzNS9ckifxF3tbQjadEmCEiZJQ2fPgun
57+
hex!["f06dd616c75cc4b2b01f325accf79b4f66a525ede0a59f48dcce2322b8798f5c"].unchecked_into(), // 5HVwyfB3LRsFXm7frEHDYyhwdpTYDRWxEqDKBYVyLi6DsPXq
58+
hex!["1be80f2d4513a1fbe0e5163874f729baa5498486ac3914ac3fe2e1817d7b3f44"].unchecked_into(), // 5ChJ5wjqy2HY1LZw1EuQPGQEHgaS9sFu9yDD6KRX7CzwidTN
5759
),(
58-
hex!["e269e835e0bc07c497d55bc17c7bb29c85c5615f9e61582ffdeca7e5f5c66578"].unchecked_into(), // 5HBa95U5HDFCV1N5Xyrjti65F71tHRQcPbZBmkxRJ39SpqzM
59-
hex!["3e9829e6fd4fc7501b504fc16f12177c6c7f38aeb3b8344efb9b15ee85118b2c"].unchecked_into(), // 5DUn2afs2QevZ6PrGu8snrt76157oacH6JXUD8JNM18VKMwK
60-
hex!["0fd673ee5e95ed124bcd71463ff924c810573dad91527ab9d2b5af36f66ff84b"].unchecked_into(), // 5CRUHGLA1JYe2v4p479VCHybqjB9uBXjGkJ2npdduVdrTuUM
60+
hex!["60779817899466dbd476a0bc3a38cc64b7774d5fb646c3d291684171e67a0743"].unchecked_into(), // 5EFByrDMMa2m9hv4jrpykXaUyqjJ9XZH81kJE4JBa1Sz2psT
61+
hex!["2a32622a5da54a80dc704a05f2d761c96d4748beedd83f61ca20a90f4a257678"].unchecked_into(), // 5D22qQJsLm2JUh8pEfrKahbkW21QQrHTkm4vUteei67fadLd
62+
hex!["f54d9f5ed217ce07c0c5faa5277a0356f8bfd884d201f9d2c9e171568e1bf077"].unchecked_into(), // 5HcLeWrsfL9RuGp94pn1PeFxP7D1587TTEZzFYgFhKCPZLYh
6163
)];
62-
// generated with secret: subkey -p danta-root restore $secret
64+
// generated with secret: subkey inspect "$secret"/elm
6365
let endowed_accounts: Vec<AccountId> = vec![
64-
hex!["343df6f04ffae0840f214f6cb0da00b612c7e9347f980e7afafc520582f79136"].unchecked_into(), // 5DFCkiP9vky31C1ZP3LpuQYinLAFwQqq6vda7NXa8ALCpq5D
66+
hex!["c224ccba63292331623bbf06a55f46607824c2580071a80a17c53cab2f999e2f"].unchecked_into(), //5GTG5We6twtoF6S4kUXJ77rWBsHBoHLS3JVf5KvvnxKdGQZr
6567
];
6668
const MILLICENTS: u128 = 1_000_000_000;
6769
const CENTS: u128 = 1_000 * MILLICENTS; // assume this is worth about a cent.

node/cli/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ pub enum ChainSpec {
3737
Development,
3838
/// Whatever the current runtime is, with simple Alice/Bob auths.
3939
LocalTestnet,
40-
/// The Dried Danta testnet.
41-
DriedDanta,
40+
/// The Emberic Elm testnet.
41+
EmbericElm,
4242
/// Whatever the current runtime is with the "global testnet" defaults.
4343
StagingTestnet,
4444
}
@@ -47,7 +47,7 @@ pub enum ChainSpec {
4747
impl ChainSpec {
4848
pub(crate) fn load(self) -> Result<chain_spec::ChainSpec, String> {
4949
Ok(match self {
50-
ChainSpec::DriedDanta => chain_spec::dried_danta_config()?,
50+
ChainSpec::EmbericElm => chain_spec::emberic_elm_config()?,
5151
ChainSpec::Development => chain_spec::development_config(),
5252
ChainSpec::LocalTestnet => chain_spec::local_testnet_config(),
5353
ChainSpec::StagingTestnet => chain_spec::staging_testnet_config(),
@@ -58,7 +58,7 @@ impl ChainSpec {
5858
match s {
5959
"dev" => Some(ChainSpec::Development),
6060
"local" => Some(ChainSpec::LocalTestnet),
61-
"" | "danta" | "dried-danta" => Some(ChainSpec::DriedDanta),
61+
"" | "elm" | "emberic-elm" => Some(ChainSpec::EmbericElm),
6262
"staging" => Some(ChainSpec::StagingTestnet),
6363
_ => None,
6464
}

0 commit comments

Comments
 (0)