Skip to content

Commit

Permalink
feature: SB token removed from predefined assets (#1098)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey-N-Chernyshov authored Jun 17, 2024
1 parent 6a009e0 commit e4ca060
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 38 deletions.
2 changes: 0 additions & 2 deletions common/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ pub enum ComicAssetId {
CrackedBrassBell,
Tomato,
Potato,
Mouse,
Table,
}

Expand Down Expand Up @@ -115,7 +114,6 @@ impl From<PredefinedAssetId> for ComicAssetId {
PredefinedAssetId::KUSD => CrackedBrassBell,
PredefinedAssetId::KGOLD => Tomato,
PredefinedAssetId::KXOR => Potato,
PredefinedAssetId::SB => Mouse,
PredefinedAssetId::KARMA => Table,
}
}
Expand Down
4 changes: 1 addition & 3 deletions common/src/primitives.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,7 @@ mod _allowed_deprecated {
KUSD = 12,
KGOLD = 13,
KXOR = 14,
SB = 15,
KARMA = 16,
KARMA = 15,
}
}

Expand All @@ -217,7 +216,6 @@ pub const KEN: AssetId32<PredefinedAssetId> = AssetId32::from_asset_id(Predefine
pub const KUSD: AssetId32<PredefinedAssetId> = AssetId32::from_asset_id(PredefinedAssetId::KUSD);
pub const KGOLD: AssetId32<PredefinedAssetId> = AssetId32::from_asset_id(PredefinedAssetId::KGOLD);
pub const KXOR: AssetId32<PredefinedAssetId> = AssetId32::from_asset_id(PredefinedAssetId::KXOR);
pub const SB: AssetId32<PredefinedAssetId> = AssetId32::from_asset_id(PredefinedAssetId::SB);
pub const KARMA: AssetId32<PredefinedAssetId> = AssetId32::from_asset_id(PredefinedAssetId::KARMA);
pub const CERES_ASSET_ID: AssetId32<PredefinedAssetId> = AssetId32::from_bytes(hex!(
"008bcfd2387d3fc453333557eecb0efe59fcba128769b2feefdd306e98e66440"
Expand Down
24 changes: 1 addition & 23 deletions node/chain_spec/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@ fn testnet_genesis(
technical_committee_accounts: Vec<AccountId>,
validator_count: u32,
) -> GenesisConfig {
use common::{KARMA, KXOR, SB, XSTUSD};
use common::{KARMA, KXOR, XSTUSD};

// Initial balances
let initial_staking = balance!(1000000000);
Expand Down Expand Up @@ -1471,17 +1471,6 @@ fn testnet_genesis(
None,
None,
),
(
SB,
assets_and_permissions_account_id.clone(),
AssetSymbol(b"SB".to_vec()),
AssetName(b"SORA Builders".to_vec()),
DEFAULT_BALANCE_PRECISION,
Balance::zero(),
true,
None,
None,
),
(
KARMA,
assets_and_permissions_account_id.clone(),
Expand Down Expand Up @@ -2198,17 +2187,6 @@ fn mainnet_genesis(
None,
None,
),
(
SB,
assets_and_permissions_account_id.clone(),
AssetSymbol(b"SB".to_vec()),
AssetName(b"SORA Builders".to_vec()),
DEFAULT_BALANCE_PRECISION,
Balance::zero(),
true,
None,
None,
),
(
KARMA,
assets_and_permissions_account_id.clone(),
Expand Down
10 changes: 0 additions & 10 deletions runtime/src/migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,6 @@ pub type Migrations = (
KXORAssetSymbol,
PredefinedAssetOwnerAccountId,
>,
assets::migration::register_asset::RegisterAsset<
Runtime,
SBAssetId,
SBAssetName,
SBAssetSymbol,
PredefinedAssetOwnerAccountId,
>,
assets::migration::register_asset::RegisterAsset<
Runtime,
KARMAAssetId,
Expand All @@ -70,9 +63,6 @@ parameter_types! {
pub KXORAssetId: AssetId = common::KXOR;
pub KXORAssetSymbol: AssetSymbol = AssetSymbol(b"KXOR".to_vec());
pub KXORAssetName: AssetName = AssetName(b"Kensetsu XOR".to_vec());
pub SBAssetId: AssetId = common::SB;
pub SBAssetSymbol: AssetSymbol = AssetSymbol(b"SB".to_vec());
pub SBAssetName: AssetName = AssetName(b"SORA Builders".to_vec());
pub KARMAAssetId: AssetId = common::KARMA;
pub KARMAAssetSymbol: AssetSymbol = AssetSymbol(b"KARMA".to_vec());
pub KARMAAssetName: AssetName = AssetName(b"Chameleon".to_vec());
Expand Down

0 comments on commit e4ca060

Please sign in to comment.