Skip to content

Commit

Permalink
Fix/dot (paritytech#310)
Browse files Browse the repository at this point in the history
* remove dot& polkadot
  • Loading branch information
toxotguo authored Feb 20, 2019
1 parent 69f57a1 commit 02d8131
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
11 changes: 0 additions & 11 deletions cli/src/genesis_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down Expand Up @@ -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)])
],
}),
Expand Down Expand Up @@ -243,7 +233,6 @@ pub fn testnet_genesis(genesis_spec: GenesisSpec) -> GenesisConfig {
xspot: Some(XSpotConfig {
pair_list: vec![
(xassets::Module::<Runtime>::TOKEN.to_vec(), bitcoin::Module::<Runtime>::TOKEN.to_vec(), 9, 2, 100000, true),
// (<xassets::Module<Runtime> as ChainT>::TOKEN.to_vec(),dot_asset.token().to_vec(),7,2,100000,false),
(sdot_asset.token(), xassets::Module::<Runtime>::TOKEN.to_vec(), 4, 2, 100000, true)
],
price_volatility: 10,
Expand Down
4 changes: 1 addition & 3 deletions xrml/xassets/assets/src/assetdef.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ pub enum Chain {
ChainX,
Bitcoin,
Ethereum,
Polkadot,
}

impl Default for Chain {
Expand All @@ -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()
}
Expand Down

0 comments on commit 02d8131

Please sign in to comment.