From 02d813198b519c40d373ae3c9c00439f693b3b0f Mon Sep 17 00:00:00 2001 From: toxotguo Date: Wed, 20 Feb 2019 16:17:27 +0800 Subject: [PATCH] Fix/dot (#310) * remove dot& polkadot --- cli/src/genesis_config.rs | 11 ----------- xrml/xassets/assets/src/assetdef.rs | 4 +--- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/cli/src/genesis_config.rs b/cli/src/genesis_config.rs index 2562805111423..b69598d3e9c6e 100644 --- a/cli/src/genesis_config.rs +++ b/cli/src/genesis_config.rs @@ -80,15 +80,6 @@ pub fn testnet_genesis(genesis_spec: GenesisSpec) -> GenesisConfig { ) .unwrap(); - // let dot_asset = Asset::new( - // b"DOT".to_vec(), // token - // b"Polkadot".to_vec(), - // Chain::Polkadot, - // 8, // precision - // b"DOT ChainX".to_vec(), - // ) - // .unwrap(); - let sdot_asset = Asset::new( b"SDOT".to_vec(), // token b"SDOT".to_vec(), @@ -207,7 +198,6 @@ pub fn testnet_genesis(genesis_spec: GenesisSpec) -> GenesisConfig { // Vec<(Asset, bool, Vec<(T::AccountId, u64)>)>; asset_list: vec![ (btc_asset.clone(), true, vec![(Keyring::Alice.to_raw_public().into(), 100_000),(Keyring::Bob.to_raw_public().into(), 100_000)]), - // (dot_asset.clone(), false, vec![(Keyring::Alice.to_raw_public().into(), 1_000_000_000),(Keyring::Bob.to_raw_public().into(), 1_000_000_000)]), (sdot_asset.clone(), true, vec![(Keyring::Alice.to_raw_public().into(), 10_000),(Keyring::Bob.to_raw_public().into(), 10_000)]) ], }), @@ -243,7 +233,6 @@ pub fn testnet_genesis(genesis_spec: GenesisSpec) -> GenesisConfig { xspot: Some(XSpotConfig { pair_list: vec![ (xassets::Module::::TOKEN.to_vec(), bitcoin::Module::::TOKEN.to_vec(), 9, 2, 100000, true), - // ( as ChainT>::TOKEN.to_vec(),dot_asset.token().to_vec(),7,2,100000,false), (sdot_asset.token(), xassets::Module::::TOKEN.to_vec(), 4, 2, 100000, true) ], price_volatility: 10, diff --git a/xrml/xassets/assets/src/assetdef.rs b/xrml/xassets/assets/src/assetdef.rs index 931b8ee0e553a..5ead37a2a36f9 100644 --- a/xrml/xassets/assets/src/assetdef.rs +++ b/xrml/xassets/assets/src/assetdef.rs @@ -28,7 +28,6 @@ pub enum Chain { ChainX, Bitcoin, Ethereum, - Polkadot, } impl Default for Chain { @@ -39,11 +38,10 @@ impl Default for Chain { impl Chain { pub fn iterator() -> Iter<'static, Chain> { - static CHAINS: [Chain; 4] = [ + static CHAINS: [Chain; 3] = [ Chain::ChainX, Chain::Bitcoin, Chain::Ethereum, - Chain::Polkadot, ]; CHAINS.iter() }