Skip to content

Commit

Permalink
evm-3.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tuminfei committed Jul 28, 2021
1 parent 88e7c6c commit 45e65c8
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 1 deletion.
1 change: 1 addition & 0 deletions bin/cli/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ impl SubstrateCli for Cli {
"pangu" => Box::new(uniarts_service::chain_spec::pangu_config()?),
"fuxi_staging" => Box::new(uniarts_service::chain_spec::fuxi_staging_config()?),
"fuxi" => Box::new(uniarts_service::chain_spec::fuxi_config()?),
"fuxi_test" => Box::new(uniarts_service::chain_spec::fuxi_testnet_config()?),
path => Box::new(uniarts_service::chain_spec::PanguChainSpec::from_json_file(
std::path::PathBuf::from(path),
)?),
Expand Down
76 changes: 76 additions & 0 deletions bin/service/res/fuxi_test.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions bin/service/src/chain_spec/fuxi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ pub fn fuxi_config() -> Result<FuxiChainSpec, String> {
FuxiChainSpec::from_json_bytes(&include_bytes!("../../res/fuxi.json")[..])
}

pub fn fuxi_testnet_config() -> Result<FuxiChainSpec, String> {
FuxiChainSpec::from_json_bytes(&include_bytes!("../../res/fuxi_test.json")[..])
}

pub fn fuxi_staging_config() -> Result<FuxiChainSpec, String> {
let wasm_binary = WASM_BINARY.ok_or("Staging wasm binary not available".to_string())?;

Expand Down
2 changes: 1 addition & 1 deletion bin/service/src/chain_spec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pub use pangu::{

pub mod fuxi;
pub use fuxi::{
fuxi_config, fuxi_development_config, fuxi_staging_config, fuxi_local_testnet_config, FuxiChainSpec,
fuxi_config, fuxi_testnet_config, fuxi_development_config, fuxi_staging_config, fuxi_local_testnet_config, FuxiChainSpec,
};

// --- crates ---
Expand Down

0 comments on commit 45e65c8

Please sign in to comment.