Skip to content

Commit 41a7e53

Browse files
authored
update for turbulence (#218)
1 parent 28bd3c3 commit 41a7e53

File tree

8 files changed

+460
-157
lines changed

8 files changed

+460
-157
lines changed

resources/testnet-dist.json

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

resources/testnet.json

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

resources/turbulence-dist.json

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

resources/turbulence.json

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

scripts/update-testnet.sh

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

scripts/update-turbulence.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
cargo clean
6+
WASM_BUILD_TYPE=release cargo run -- build-spec --chain turbulence-latest > ./resources/turbulence.json
7+
WASM_BUILD_TYPE=release cargo run -- build-spec --chain ./resources/turbulence.json --raw > ./resources/turbulence-dist.json

src/chain_spec.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,11 @@ pub fn local_testnet_config() -> ChainSpec {
124124
)
125125
}
126126

127-
pub fn laminar_testnet_config() -> Result<ChainSpec, String> {
128-
ChainSpec::from_json_bytes(&include_bytes!("../resources/testnet-dist.json")[..])
127+
pub fn laminar_turbulence_config() -> Result<ChainSpec, String> {
128+
ChainSpec::from_json_bytes(&include_bytes!("../resources/turbulence-dist.json")[..])
129129
}
130130

131-
pub fn laminar_testnet_latest_config() -> ChainSpec {
131+
pub fn laminar_turbulence_latest_config() -> ChainSpec {
132132
let mut properties = Map::new();
133133
properties.insert("tokenSymbol".into(), "LAMI".into());
134134
properties.insert("tokenDecimals".into(), 18.into());

src/command.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ impl SubstrateCli for Cli {
3838
Ok(match id {
3939
"dev" => Box::new(chain_spec::development_config()),
4040
"local" => Box::new(chain_spec::local_testnet_config()),
41-
"" | "testnet" => Box::new(chain_spec::laminar_testnet_config()?),
42-
"testnet-latest" => Box::new(chain_spec::laminar_testnet_latest_config()),
41+
"" | "turbulence" => Box::new(chain_spec::laminar_turbulence_config()?),
42+
"turbulence-latest" => Box::new(chain_spec::laminar_turbulence_latest_config()),
4343
path => Box::new(chain_spec::ChainSpec::from_json_file(std::path::PathBuf::from(path))?),
4444
})
4545
}

0 commit comments

Comments
 (0)