diff --git a/Cargo.toml b/Cargo.toml index cda66da2..64f56dd2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,7 +22,7 @@ clap = { version = "4.4.8" } futures = { version = "0.3.29" } jsonrpsee = { version = "0.16.3" } color-print = "0.3.4" -parity-scale-codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false } +codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false } hex-literal = { version = "0.4.1" } log = { version = "0.4.20", default-features = false } scale-info = { version = "2.9.0", default-features = false } diff --git a/node/Cargo.toml b/node/Cargo.toml index 7cacd96e..1bcb4854 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -11,7 +11,7 @@ repository.workspace = true [dependencies] clap = { workspace = true, features = ["derive"]} log = { workspace = true } -parity-scale-codec = { workspace = true } +codec = { workspace = true } serde = { workspace = true, features = ["derive"]} jsonrpsee = { workspace = true, features = ["server"] } futures = { workspace = true } diff --git a/runtime/primitives/Cargo.toml b/runtime/primitives/Cargo.toml index 3e47f8fd..db1e62c4 100644 --- a/runtime/primitives/Cargo.toml +++ b/runtime/primitives/Cargo.toml @@ -7,7 +7,7 @@ homepage.workspace = true repository.workspace = true [dependencies] -parity-scale-codec = { workspace = true } +codec = { workspace = true } scale-info = { workspace = true } sp-core = { workspace = true, default-features = false } @@ -16,7 +16,7 @@ sp-runtime = { workspace = true, default-features = false } [features] default = ["std"] std = [ - "parity-scale-codec/std", + "codec/std", "scale-info/std", "sp-core/std", "sp-runtime/std", diff --git a/runtime/primitives/src/assets.rs b/runtime/primitives/src/assets.rs index 2c79115f..ff9b150d 100644 --- a/runtime/primitives/src/assets.rs +++ b/runtime/primitives/src/assets.rs @@ -1,4 +1,4 @@ -use parity_scale_codec::{Decode, Encode, MaxEncodedLen}; +use codec::{Decode, Encode, MaxEncodedLen}; use scale_info::TypeInfo; #[derive( diff --git a/runtime/regionx/Cargo.toml b/runtime/regionx/Cargo.toml index 583bd00c..85ed73b8 100644 --- a/runtime/regionx/Cargo.toml +++ b/runtime/regionx/Cargo.toml @@ -13,7 +13,7 @@ targets = ["x86_64-unknown-linux-gnu"] substrate-wasm-builder = { workspace = true } [dependencies] -parity-scale-codec = { workspace = true } +codec = { workspace = true } hex-literal = { workspace = true, optional = true } log = { workspace = true } scale-info = { workspace = true } @@ -92,7 +92,7 @@ parachain-info = { workspace = true } [features] default = ["std"] std = [ - "parity-scale-codec/std", + "codec/std", "cumulus-pallet-aura-ext/std", "cumulus-pallet-dmp-queue/std", "cumulus-pallet-parachain-system/std", diff --git a/runtime/regionx/src/impls.rs b/runtime/regionx/src/impls.rs index a9ef7f6b..e659fad2 100644 --- a/runtime/regionx/src/impls.rs +++ b/runtime/regionx/src/impls.rs @@ -1,8 +1,8 @@ use crate::{AssetId, Runtime, RuntimeCall}; +use codec::{Decode, Encode, MaxEncodedLen}; use frame_support::traits::InstanceFilter; use orml_asset_registry::DefaultAssetMetadata; use orml_traits::asset_registry::AssetProcessor; -use parity_scale_codec::{Decode, Encode, MaxEncodedLen}; use scale_info::TypeInfo; use sp_runtime::{DispatchError, RuntimeDebug}; diff --git a/runtime/regionx/src/lib.rs b/runtime/regionx/src/lib.rs index 390293ab..c405ff44 100644 --- a/runtime/regionx/src/lib.rs +++ b/runtime/regionx/src/lib.rs @@ -373,7 +373,7 @@ impl pallet_assets::Config for Runtime { type RuntimeEvent = RuntimeEvent; type Balance = Balance; type AssetId = AssetId; - type AssetIdParameter = parity_scale_codec::Compact; + type AssetIdParameter = codec::Compact; type Currency = Balances; // TODO after https://github.com/RegionX-Labs/RegionX-Node/issues/72: // Allow only TC to create an asset.