Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Guantong committed Jan 28, 2023
1 parent 2bc644a commit 7458b49
Show file tree
Hide file tree
Showing 27 changed files with 2,772 additions and 7,146 deletions.
9,794 changes: 2,710 additions & 7,084 deletions Cargo.lock

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ fp-rpc = { git = "/~https://github.com/darwinia-network/frontier", branch
fp-storage = { git = "/~https://github.com/darwinia-network/frontier", branch = "polkadot-v0.9.36" }

# polkadot
polkadot-cli = { git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.33" }
polkadot-parachain = { git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.33" }
polkadot-primitives = { git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.33" }
polkadot-service = { git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.33" }
xcm = { git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.33" }
polkadot-cli = { git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.36" }
polkadot-parachain = { git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.36" }
polkadot-primitives = { git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.36" }
polkadot-service = { git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.36" }
xcm = { git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.36" }

# substrate
frame-benchmarking = { git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }
Expand Down
6 changes: 3 additions & 3 deletions runtime/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ bp-darwinia-core = { default-features = false, git = "/~https://github.com/darwini
account = { default-features = false, git = "/~https://github.com/darwinia-network/moonbeam", branch = "polkadot-v0.9.36" }

# polkadot
xcm = { default-features = false, git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.33" }
xcm-builder = { default-features = false, git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.33" }
xcm-executor = { default-features = false, git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.33" }
xcm = { default-features = false, git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.36" }
xcm-builder = { default-features = false, git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.36" }
xcm-executor = { default-features = false, git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.36" }

# substrate
frame-support = { default-features = false, git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }
Expand Down
12 changes: 6 additions & 6 deletions runtime/crab/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ precompile-utils = { default-features = false, git = "/~https://github.com/darwini
xcm-primitives = { default-features = false, git = "/~https://github.com/darwinia-network/moonbeam", branch = "polkadot-v0.9.36" }

# polkadot
pallet-xcm = { default-features = false, git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.33" }
polkadot-parachain = { default-features = false, git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.33" }
polkadot-runtime-common = { default-features = false, git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.33" }
xcm = { default-features = false, git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.33" }
xcm-builder = { default-features = false, git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.33" }
xcm-executor = { default-features = false, git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.33" }
pallet-xcm = { default-features = false, git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.36" }
polkadot-parachain = { default-features = false, git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.36" }
polkadot-runtime-common = { default-features = false, git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.36" }
xcm = { default-features = false, git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.36" }
xcm-builder = { default-features = false, git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.36" }
xcm-executor = { default-features = false, git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.36" }

# substrate
frame-executive = { default-features = false, git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }
Expand Down
4 changes: 2 additions & 2 deletions runtime/crab/src/pallets/deposit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl darwinia_deposit::SimpleAsset for CKtonMinting {
type AccountId = AccountId;

fn mint(beneficiary: &Self::AccountId, amount: Balance) -> sp_runtime::DispatchResult {
Assets::mint(RuntimeOrigin::signed(ROOT), AssetIds::CKton as _, *beneficiary, amount)
Assets::mint(RuntimeOrigin::signed(ROOT), codec::Compact(AssetIds::CKton as _), *beneficiary, amount)
}

fn burn(who: &Self::AccountId, amount: Balance) -> sp_runtime::DispatchResult {
Expand All @@ -34,7 +34,7 @@ impl darwinia_deposit::SimpleAsset for CKtonMinting {
Err(<pallet_assets::Error<Runtime>>::BalanceLow)?;
}

Assets::burn(RuntimeOrigin::signed(ROOT), asset_id, *who, amount)
Assets::burn(RuntimeOrigin::signed(ROOT), codec::Compact(asset_id), *who, amount)
}
}

Expand Down
4 changes: 2 additions & 2 deletions runtime/crab/src/pallets/staking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl darwinia_staking::Stake for CKtonStaking {
fn stake(who: &Self::AccountId, item: Self::Item) -> sp_runtime::DispatchResult {
Assets::transfer(
RuntimeOrigin::signed(*who),
AssetIds::CKton as AssetId,
codec::Compact(AssetIds::CKton as AssetId),
darwinia_staking::account_id(),
item,
)
Expand All @@ -61,7 +61,7 @@ impl darwinia_staking::Stake for CKtonStaking {
fn unstake(who: &Self::AccountId, item: Self::Item) -> sp_runtime::DispatchResult {
Assets::transfer(
RuntimeOrigin::signed(darwinia_staking::account_id()),
AssetIds::CKton as AssetId,
codec::Compact(AssetIds::CKton as AssetId),
*who,
item,
)
Expand Down
4 changes: 2 additions & 2 deletions runtime/crab/src/pallets/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ const AVERAGE_ON_INITIALIZE_RATIO: Perbill = Perbill::from_percent(5);
pub const NORMAL_DISPATCH_RATIO: Perbill = Perbill::from_percent(75);

/// We allow for 0.5 of a second of compute with a 12 second average block time.
pub const MAXIMUM_BLOCK_WEIGHT: Weight = weight::from_parts(
pub const MAXIMUM_BLOCK_WEIGHT: Weight = Weight::from_parts(
frame_support::weights::constants::WEIGHT_REF_TIME_PER_SECOND.saturating_div(2),
set_proof_size(cumulus_primitives_core::relay_chain::v2::MAX_POV_SIZE as u64),
cumulus_primitives_core::relay_chain::v2::MAX_POV_SIZE as u64,
);

frame_support::parameter_types! {
Expand Down
2 changes: 1 addition & 1 deletion runtime/crab/src/weights/block_weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub mod constants {

parameter_types! {
/// Importing a block with 0 Extrinsics.
pub const BlockExecutionWeight: Weight = constants::WEIGHT_PER_NANOS.saturating_mul(5_000_000);
pub const BlockExecutionWeight: Weight = Weight::from_ref_time(constants::WEIGHT_REF_TIME_PER_NANOS.saturating_mul(5_000_000));
}

#[cfg(test)]
Expand Down
2 changes: 1 addition & 1 deletion runtime/crab/src/weights/extrinsic_weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub mod constants {

parameter_types! {
/// Executing a NO-OP `System::remarks` Extrinsic.
pub const ExtrinsicBaseWeight: Weight = Weight::from_ref_time(constants::WEIGHT_REF_TIME_PER_NANOS.saturating_mul(125_000);
pub const ExtrinsicBaseWeight: Weight = Weight::from_ref_time(constants::WEIGHT_REF_TIME_PER_NANOS.saturating_mul(125_000));
}

#[cfg(test)]
Expand Down
4 changes: 2 additions & 2 deletions runtime/crab/src/weights/paritydb_weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ pub mod constants {
/// `ParityDB` can be enabled with a feature flag, but is still experimental. These weights
/// are available for brave runtime engineers who may want to try this out as default.
pub const ParityDbWeight: RuntimeDbWeight = RuntimeDbWeight {
read: 8_000 * constants::WEIGHT_REF_TIME_PER_NANOS(),
write: 50_000 * constants::WEIGHT_REF_TIME_PER_NANOS(),
read: 8_000 * constants::WEIGHT_REF_TIME_PER_NANOS,
write: 50_000 * constants::WEIGHT_REF_TIME_PER_NANOS,
};
}

Expand Down
4 changes: 2 additions & 2 deletions runtime/crab/src/weights/rocksdb_weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ pub mod constants {
/// By default, Substrate uses `RocksDB`, so this will be the weight used throughout
/// the runtime.
pub const RocksDbWeight: RuntimeDbWeight = RuntimeDbWeight {
read: 25_000 * constants::WEIGHT_REF_TIME_PER_NANOS(),
write: 100_000 * constants::WEIGHT_REF_TIME_PER_NANOS(),
read: 25_000 * constants::WEIGHT_REF_TIME_PER_NANOS,
write: 100_000 * constants::WEIGHT_REF_TIME_PER_NANOS,
};
}

Expand Down
12 changes: 6 additions & 6 deletions runtime/darwinia/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ precompile-utils = { default-features = false, git = "/~https://github.com/darwini
xcm-primitives = { default-features = false, git = "/~https://github.com/darwinia-network/moonbeam", branch = "polkadot-v0.9.36" }

# polkadot
pallet-xcm = { default-features = false, git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.33" }
polkadot-parachain = { default-features = false, git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.33" }
polkadot-runtime-common = { default-features = false, git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.33" }
xcm = { default-features = false, git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.33" }
xcm-builder = { default-features = false, git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.33" }
xcm-executor = { default-features = false, git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.33" }
pallet-xcm = { default-features = false, git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.36" }
polkadot-parachain = { default-features = false, git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.36" }
polkadot-runtime-common = { default-features = false, git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.36" }
xcm = { default-features = false, git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.36" }
xcm-builder = { default-features = false, git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.36" }
xcm-executor = { default-features = false, git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.36" }

# substrate
frame-executive = { default-features = false, git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }
Expand Down
4 changes: 2 additions & 2 deletions runtime/darwinia/src/pallets/deposit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl darwinia_deposit::SimpleAsset for KtonAsset {
type AccountId = AccountId;

fn mint(beneficiary: &Self::AccountId, amount: Balance) -> sp_runtime::DispatchResult {
Assets::mint(RuntimeOrigin::signed(ROOT), AssetIds::Kton as _, *beneficiary, amount)
Assets::mint(RuntimeOrigin::signed(ROOT), codec::Compact(AssetIds::Kton as _), *beneficiary, amount)
}

fn burn(who: &Self::AccountId, amount: Balance) -> sp_runtime::DispatchResult {
Expand All @@ -34,7 +34,7 @@ impl darwinia_deposit::SimpleAsset for KtonAsset {
Err(<pallet_assets::Error<Runtime>>::BalanceLow)?;
}

Assets::burn(RuntimeOrigin::signed(ROOT), asset_id, *who, amount)
Assets::burn(RuntimeOrigin::signed(ROOT), codec::Compact(asset_id), *who, amount)
}
}

Expand Down
4 changes: 2 additions & 2 deletions runtime/darwinia/src/pallets/staking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl darwinia_staking::Stake for KtonStaking {
fn stake(who: &Self::AccountId, item: Self::Item) -> sp_runtime::DispatchResult {
Assets::transfer(
RuntimeOrigin::signed(*who),
AssetIds::Kton as AssetId,
codec::Compact(AssetIds::Kton as AssetId),
darwinia_staking::account_id(),
item,
)
Expand All @@ -61,7 +61,7 @@ impl darwinia_staking::Stake for KtonStaking {
fn unstake(who: &Self::AccountId, item: Self::Item) -> sp_runtime::DispatchResult {
Assets::transfer(
RuntimeOrigin::signed(darwinia_staking::account_id()),
AssetIds::Kton as AssetId,
codec::Compact(AssetIds::Kton as AssetId),
*who,
item,
)
Expand Down
4 changes: 2 additions & 2 deletions runtime/darwinia/src/pallets/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ const AVERAGE_ON_INITIALIZE_RATIO: Perbill = Perbill::from_percent(5);
pub const NORMAL_DISPATCH_RATIO: Perbill = Perbill::from_percent(75);

/// We allow for 0.5 of a second of compute with a 12 second average block time.
pub const MAXIMUM_BLOCK_WEIGHT: Weight = weight::from_parts(
pub const MAXIMUM_BLOCK_WEIGHT: Weight = Weight::from_parts(
frame_support::weights::constants::WEIGHT_REF_TIME_PER_SECOND.saturating_div(2),
set_proof_size(cumulus_primitives_core::relay_chain::v2::MAX_POV_SIZE as u64),
cumulus_primitives_core::relay_chain::v2::MAX_POV_SIZE as u64,
);

frame_support::parameter_types! {
Expand Down
2 changes: 1 addition & 1 deletion runtime/darwinia/src/weights/block_weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub mod constants {

parameter_types! {
/// Importing a block with 0 Extrinsics.
pub const BlockExecutionWeight: Weight = Weight::from_ref_time(constants::WEIGHT_REF_TIME_PER_NANOS.saturating_mul(5_000_000);
pub const BlockExecutionWeight: Weight = Weight::from_ref_time(constants::WEIGHT_REF_TIME_PER_NANOS.saturating_mul(5_000_000));
}

#[cfg(test)]
Expand Down
2 changes: 1 addition & 1 deletion runtime/darwinia/src/weights/extrinsic_weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub mod constants {

parameter_types! {
/// Executing a NO-OP `System::remarks` Extrinsic.
pub const ExtrinsicBaseWeight: Weight = Weight::from_ref_time(constants::WEIGHT_REF_TIME_PER_NANOS.saturating_mul(125_000);
pub const ExtrinsicBaseWeight: Weight = Weight::from_ref_time(constants::WEIGHT_REF_TIME_PER_NANOS.saturating_mul(125_000));
}

#[cfg(test)]
Expand Down
4 changes: 2 additions & 2 deletions runtime/darwinia/src/weights/paritydb_weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ pub mod constants {
/// `ParityDB` can be enabled with a feature flag, but is still experimental. These weights
/// are available for brave runtime engineers who may want to try this out as default.
pub const ParityDbWeight: RuntimeDbWeight = RuntimeDbWeight {
read: 8_000 * constants::WEIGHT_REF_TIME_PER_NANOS(),
write: 50_000 * constants::WEIGHT_REF_TIME_PER_NANOS(),
read: 8_000 * constants::WEIGHT_REF_TIME_PER_NANOS,
write: 50_000 * constants::WEIGHT_REF_TIME_PER_NANOS,
};
}

Expand Down
4 changes: 2 additions & 2 deletions runtime/darwinia/src/weights/rocksdb_weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ pub mod constants {
/// By default, Substrate uses `RocksDB`, so this will be the weight used throughout
/// the runtime.
pub const RocksDbWeight: RuntimeDbWeight = RuntimeDbWeight {
read: 25_000 * constants::WEIGHT_REF_TIME_PER_NANOS(),
write: 100_000 * constants::WEIGHT_REF_TIME_PER_NANOS(),
read: 25_000 * constants::WEIGHT_REF_TIME_PER_NANOS,
write: 100_000 * constants::WEIGHT_REF_TIME_PER_NANOS,
};
}

Expand Down
12 changes: 6 additions & 6 deletions runtime/pangolin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ precompile-utils = { default-features = false, git = "/~https://github.com/darwini
xcm-primitives = { default-features = false, git = "/~https://github.com/darwinia-network/moonbeam", branch = "polkadot-v0.9.36" }

# polkadot
pallet-xcm = { default-features = false, git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.33" }
polkadot-parachain = { default-features = false, git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.33" }
polkadot-runtime-common = { default-features = false, git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.33" }
xcm = { default-features = false, git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.33" }
xcm-builder = { default-features = false, git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.33" }
xcm-executor = { default-features = false, git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.33" }
pallet-xcm = { default-features = false, git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.36" }
polkadot-parachain = { default-features = false, git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.36" }
polkadot-runtime-common = { default-features = false, git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.36" }
xcm = { default-features = false, git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.36" }
xcm-builder = { default-features = false, git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.36" }
xcm-executor = { default-features = false, git = "/~https://github.com/paritytech/polkadot", branch = "release-v0.9.36" }

# substrate
frame-executive = { default-features = false, git = "/~https://github.com/paritytech/substrate", branch = "polkadot-v0.9.36" }
Expand Down
4 changes: 2 additions & 2 deletions runtime/pangolin/src/pallets/deposit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl darwinia_deposit::SimpleAsset for PKtonMinting {
type AccountId = AccountId;

fn mint(beneficiary: &Self::AccountId, amount: Balance) -> sp_runtime::DispatchResult {
Assets::mint(RuntimeOrigin::signed(ROOT), AssetIds::PKton as _, *beneficiary, amount)
Assets::mint(RuntimeOrigin::signed(ROOT), codec::Compact(AssetIds::PKton as _), *beneficiary, amount)
}

fn burn(who: &Self::AccountId, amount: Balance) -> sp_runtime::DispatchResult {
Expand All @@ -34,7 +34,7 @@ impl darwinia_deposit::SimpleAsset for PKtonMinting {
Err(<pallet_assets::Error<Runtime>>::BalanceLow)?;
}

Assets::burn(RuntimeOrigin::signed(ROOT), asset_id, *who, amount)
Assets::burn(RuntimeOrigin::signed(ROOT), codec::Compact(asset_id), *who, amount)
}
}

Expand Down
4 changes: 2 additions & 2 deletions runtime/pangolin/src/pallets/staking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl darwinia_staking::Stake for PKtonStaking {
fn stake(who: &Self::AccountId, item: Self::Item) -> sp_runtime::DispatchResult {
Assets::transfer(
RuntimeOrigin::signed(*who),
AssetIds::PKton as AssetId,
codec::Compact(AssetIds::PKton as AssetId),
darwinia_staking::account_id(),
item,
)
Expand All @@ -61,7 +61,7 @@ impl darwinia_staking::Stake for PKtonStaking {
fn unstake(who: &Self::AccountId, item: Self::Item) -> sp_runtime::DispatchResult {
Assets::transfer(
RuntimeOrigin::signed(darwinia_staking::account_id()),
AssetIds::PKton as AssetId,
codec::Compact(AssetIds::PKton as AssetId),
*who,
item,
)
Expand Down
4 changes: 2 additions & 2 deletions runtime/pangolin/src/pallets/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ const AVERAGE_ON_INITIALIZE_RATIO: Perbill = Perbill::from_percent(5);
pub const NORMAL_DISPATCH_RATIO: Perbill = Perbill::from_percent(75);

/// We allow for 0.5 of a second of compute with a 12 second average block time.
pub const MAXIMUM_BLOCK_WEIGHT: Weight = weight::from_parts(
pub const MAXIMUM_BLOCK_WEIGHT: Weight = Weight::from_parts(
frame_support::weights::constants::WEIGHT_REF_TIME_PER_SECOND.saturating_div(2),
set_proof_size(cumulus_primitives_core::relay_chain::v2::MAX_POV_SIZE as u64),
cumulus_primitives_core::relay_chain::v2::MAX_POV_SIZE as u64,
);

frame_support::parameter_types! {
Expand Down
2 changes: 1 addition & 1 deletion runtime/pangolin/src/weights/block_weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub mod constants {

parameter_types! {
/// Importing a block with 0 Extrinsics.
pub const BlockExecutionWeight: Weight = Weight::from_ref_time(constants::WEIGHT_REF_TIME_PER_NANOS.saturating_mul(5_000_000);
pub const BlockExecutionWeight: Weight = Weight::from_ref_time(constants::WEIGHT_REF_TIME_PER_NANOS.saturating_mul(5_000_000));
}

#[cfg(test)]
Expand Down
2 changes: 1 addition & 1 deletion runtime/pangolin/src/weights/extrinsic_weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub mod constants {

parameter_types! {
/// Executing a NO-OP `System::remarks` Extrinsic.
pub const ExtrinsicBaseWeight: Weight = Weight::from_ref_time(constants::WEIGHT_REF_TIME_PER_NANOS.saturating_mul(125_000);
pub const ExtrinsicBaseWeight: Weight = Weight::from_ref_time(constants::WEIGHT_REF_TIME_PER_NANOS.saturating_mul(125_000));
}

#[cfg(test)]
Expand Down
4 changes: 2 additions & 2 deletions runtime/pangolin/src/weights/paritydb_weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ pub mod constants {
/// `ParityDB` can be enabled with a feature flag, but is still experimental. These weights
/// are available for brave runtime engineers who may want to try this out as default.
pub const ParityDbWeight: RuntimeDbWeight = RuntimeDbWeight {
read: 8_000 * constants::WEIGHT_REF_TIME_PER_NANOS(),
write: 50_000 * constants::WEIGHT_REF_TIME_PER_NANOS(),
read: 8_000 * constants::WEIGHT_REF_TIME_PER_NANOS,
write: 50_000 * constants::WEIGHT_REF_TIME_PER_NANOS,
};
}

Expand Down
4 changes: 2 additions & 2 deletions runtime/pangolin/src/weights/rocksdb_weights.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ pub mod constants {
/// By default, Substrate uses `RocksDB`, so this will be the weight used throughout
/// the runtime.
pub const RocksDbWeight: RuntimeDbWeight = RuntimeDbWeight {
read: 25_000 * constants::WEIGHT_REF_TIME_PER_NANOS(),
write: 100_000 * constants::WEIGHT_REF_TIME_PER_NANOS(),
read: 25_000 * constants::WEIGHT_REF_TIME_PER_NANOS,
write: 100_000 * constants::WEIGHT_REF_TIME_PER_NANOS,
};
}

Expand Down

0 comments on commit 7458b49

Please sign in to comment.