Skip to content

Commit

Permalink
rename parity-scale-codec to codec
Browse files Browse the repository at this point in the history
  • Loading branch information
Szegoo committed Apr 20, 2024
1 parent 47bb083 commit bd1fdca
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
2 changes: 1 addition & 1 deletion node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
4 changes: 2 additions & 2 deletions runtime/primitives/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion runtime/primitives/src/assets.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use parity_scale_codec::{Decode, Encode, MaxEncodedLen};
use codec::{Decode, Encode, MaxEncodedLen};
use scale_info::TypeInfo;

#[derive(
Expand Down
4 changes: 2 additions & 2 deletions runtime/regionx/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion runtime/regionx/src/impls.rs
Original file line number Diff line number Diff line change
@@ -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};

Expand Down
2 changes: 1 addition & 1 deletion runtime/regionx/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<AssetId>;
type AssetIdParameter = codec::Compact<AssetId>;
type Currency = Balances;
// TODO after https://github.com/RegionX-Labs/RegionX-Node/issues/72:
// Allow only TC to create an asset.
Expand Down

0 comments on commit bd1fdca

Please sign in to comment.