mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 10:31:03 +00:00
* Remove Weight::without_{ref_time, proof_size}
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Fix tests
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* update lockfile for {"substrate", "polkadot"}
* add missing pallet-xcm-benchmarks function
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: parity-processbot <>
Co-authored-by: acatangiu <adrian@parity.io>
This commit is contained in:
committed by
GitHub
parent
af46f4b41e
commit
0a882a818a
Generated
+256
-256
File diff suppressed because it is too large
Load Diff
@@ -1135,6 +1135,11 @@ impl_runtime_apis! {
|
|||||||
fn unlockable_asset() -> Result<(MultiLocation, MultiLocation, MultiAsset), BenchmarkError> {
|
fn unlockable_asset() -> Result<(MultiLocation, MultiLocation, MultiAsset), BenchmarkError> {
|
||||||
Err(BenchmarkError::Skip)
|
Err(BenchmarkError::Skip)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn export_message_origin_and_destination(
|
||||||
|
) -> Result<(MultiLocation, NetworkId, InteriorMultiLocation), BenchmarkError> {
|
||||||
|
Err(BenchmarkError::Skip)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type XcmBalances = pallet_xcm_benchmarks::fungible::Pallet::<Runtime>;
|
type XcmBalances = pallet_xcm_benchmarks::fungible::Pallet::<Runtime>;
|
||||||
@@ -1287,8 +1292,10 @@ mod tests {
|
|||||||
#[test]
|
#[test]
|
||||||
fn full_block_fee_ratio() {
|
fn full_block_fee_ratio() {
|
||||||
let block = RuntimeBlockWeights::get().max_block;
|
let block = RuntimeBlockWeights::get().max_block;
|
||||||
let time_fee: Balance = fee::WeightToFee::weight_to_fee(&block.without_proof_size());
|
let time_fee: Balance =
|
||||||
let proof_fee: Balance = fee::WeightToFee::weight_to_fee(&block.without_ref_time());
|
fee::WeightToFee::weight_to_fee(&Weight::from_parts(block.ref_time(), 0));
|
||||||
|
let proof_fee: Balance =
|
||||||
|
fee::WeightToFee::weight_to_fee(&Weight::from_parts(0, block.proof_size()));
|
||||||
|
|
||||||
let proof_o_time = proof_fee.checked_div(time_fee).unwrap_or_default();
|
let proof_o_time = proof_fee.checked_div(time_fee).unwrap_or_default();
|
||||||
assert!(proof_o_time <= 30, "{} should be at most 30", proof_o_time);
|
assert!(proof_o_time <= 30, "{} should be at most 30", proof_o_time);
|
||||||
|
|||||||
@@ -1032,6 +1032,11 @@ impl_runtime_apis! {
|
|||||||
fn unlockable_asset() -> Result<(MultiLocation, MultiLocation, MultiAsset), BenchmarkError> {
|
fn unlockable_asset() -> Result<(MultiLocation, MultiLocation, MultiAsset), BenchmarkError> {
|
||||||
Err(BenchmarkError::Skip)
|
Err(BenchmarkError::Skip)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn export_message_origin_and_destination(
|
||||||
|
) -> Result<(MultiLocation, NetworkId, InteriorMultiLocation), BenchmarkError> {
|
||||||
|
Err(BenchmarkError::Skip)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type XcmBalances = pallet_xcm_benchmarks::fungible::Pallet::<Runtime>;
|
type XcmBalances = pallet_xcm_benchmarks::fungible::Pallet::<Runtime>;
|
||||||
@@ -1138,8 +1143,10 @@ mod tests {
|
|||||||
#[test]
|
#[test]
|
||||||
fn full_block_fee_ratio() {
|
fn full_block_fee_ratio() {
|
||||||
let block = RuntimeBlockWeights::get().max_block;
|
let block = RuntimeBlockWeights::get().max_block;
|
||||||
let time_fee: Balance = fee::WeightToFee::weight_to_fee(&block.without_proof_size());
|
let time_fee: Balance =
|
||||||
let proof_fee: Balance = fee::WeightToFee::weight_to_fee(&block.without_ref_time());
|
fee::WeightToFee::weight_to_fee(&Weight::from_parts(block.ref_time(), 0));
|
||||||
|
let proof_fee: Balance =
|
||||||
|
fee::WeightToFee::weight_to_fee(&Weight::from_parts(0, block.proof_size()));
|
||||||
|
|
||||||
let proof_o_time = proof_fee.checked_div(time_fee).unwrap_or_default();
|
let proof_o_time = proof_fee.checked_div(time_fee).unwrap_or_default();
|
||||||
assert!(proof_o_time <= 30, "{} should be at most 30", proof_o_time);
|
assert!(proof_o_time <= 30, "{} should be at most 30", proof_o_time);
|
||||||
|
|||||||
@@ -1146,6 +1146,11 @@ impl_runtime_apis! {
|
|||||||
fn unlockable_asset() -> Result<(MultiLocation, MultiLocation, MultiAsset), BenchmarkError> {
|
fn unlockable_asset() -> Result<(MultiLocation, MultiLocation, MultiAsset), BenchmarkError> {
|
||||||
Err(BenchmarkError::Skip)
|
Err(BenchmarkError::Skip)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn export_message_origin_and_destination(
|
||||||
|
) -> Result<(MultiLocation, NetworkId, InteriorMultiLocation), BenchmarkError> {
|
||||||
|
Err(BenchmarkError::Skip)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type XcmBalances = pallet_xcm_benchmarks::fungible::Pallet::<Runtime>;
|
type XcmBalances = pallet_xcm_benchmarks::fungible::Pallet::<Runtime>;
|
||||||
|
|||||||
@@ -709,6 +709,11 @@ impl_runtime_apis! {
|
|||||||
fn unlockable_asset() -> Result<(MultiLocation, MultiLocation, MultiAsset), BenchmarkError> {
|
fn unlockable_asset() -> Result<(MultiLocation, MultiLocation, MultiAsset), BenchmarkError> {
|
||||||
Err(BenchmarkError::Skip)
|
Err(BenchmarkError::Skip)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn export_message_origin_and_destination(
|
||||||
|
) -> Result<(MultiLocation, NetworkId, InteriorMultiLocation), BenchmarkError> {
|
||||||
|
Err(BenchmarkError::Skip)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type XcmBalances = pallet_xcm_benchmarks::fungible::Pallet::<Runtime>;
|
type XcmBalances = pallet_xcm_benchmarks::fungible::Pallet::<Runtime>;
|
||||||
|
|||||||
@@ -709,6 +709,11 @@ impl_runtime_apis! {
|
|||||||
fn unlockable_asset() -> Result<(MultiLocation, MultiLocation, MultiAsset), BenchmarkError> {
|
fn unlockable_asset() -> Result<(MultiLocation, MultiLocation, MultiAsset), BenchmarkError> {
|
||||||
Err(BenchmarkError::Skip)
|
Err(BenchmarkError::Skip)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn export_message_origin_and_destination(
|
||||||
|
) -> Result<(MultiLocation, NetworkId, InteriorMultiLocation), BenchmarkError> {
|
||||||
|
Err(BenchmarkError::Skip)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type XcmBalances = pallet_xcm_benchmarks::fungible::Pallet::<Runtime>;
|
type XcmBalances = pallet_xcm_benchmarks::fungible::Pallet::<Runtime>;
|
||||||
|
|||||||
@@ -759,6 +759,11 @@ impl_runtime_apis! {
|
|||||||
fn unlockable_asset() -> Result<(MultiLocation, MultiLocation, MultiAsset), BenchmarkError> {
|
fn unlockable_asset() -> Result<(MultiLocation, MultiLocation, MultiAsset), BenchmarkError> {
|
||||||
Err(BenchmarkError::Skip)
|
Err(BenchmarkError::Skip)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn export_message_origin_and_destination(
|
||||||
|
) -> Result<(MultiLocation, NetworkId, InteriorMultiLocation), BenchmarkError> {
|
||||||
|
Err(BenchmarkError::Skip)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type XcmBalances = pallet_xcm_benchmarks::fungible::Pallet::<Runtime>;
|
type XcmBalances = pallet_xcm_benchmarks::fungible::Pallet::<Runtime>;
|
||||||
|
|||||||
Reference in New Issue
Block a user