Skip to content

Commit 3b08af8

Browse files
authored
Companion for paritytech/polkadot#6578 (#2112)
* Add ExpectTransactStatus benchmarking * cargo fmt * update lockfile for {"polkadot", "substrate"} Co-authored-by: parity-processbot <>
1 parent a4d9667 commit 3b08af8

10 files changed

Lines changed: 30 additions & 0 deletions

File tree

cumulus/parachains/runtimes/assets/statemine/src/weights/xcm/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,9 @@ impl<Call> XcmWeightInfo<Call> for StatemineXcmWeight<Call> {
185185
fn expect_error(_error: &Option<(u32, XcmError)>) -> Weight {
186186
XcmGeneric::<Runtime>::expect_error()
187187
}
188+
fn expect_transact_status(_transact_status: &MaybeErrorCode) -> Weight {
189+
XcmGeneric::<Runtime>::expect_transact_status()
190+
}
188191
fn query_pallet(_module_name: &Vec<u8>, _response_info: &QueryResponseInfo) -> Weight {
189192
XcmGeneric::<Runtime>::query_pallet()
190193
}

cumulus/parachains/runtimes/assets/statemine/src/weights/xcm/pallet_xcm_benchmarks_generic.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ impl<T: frame_system::Config> WeightInfo<T> {
148148
pub(crate) fn expect_error() -> Weight {
149149
Weight::from_ref_time(5_859_000 as u64)
150150
}
151+
pub(crate) fn expect_transact_status() -> Weight {
152+
Weight::from_ref_time(5_859_000 as u64)
153+
}
151154
// Storage: ParachainInfo ParachainId (r:1 w:0)
152155
// Storage: PolkadotXcm SupportedVersion (r:1 w:0)
153156
// Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1)

cumulus/parachains/runtimes/assets/statemint/src/weights/xcm/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,9 @@ impl<Call> XcmWeightInfo<Call> for StatemintXcmWeight<Call> {
185185
fn expect_error(_error: &Option<(u32, XcmError)>) -> Weight {
186186
XcmGeneric::<Runtime>::expect_error()
187187
}
188+
fn expect_transact_status(_transact_status: &MaybeErrorCode) -> Weight {
189+
XcmGeneric::<Runtime>::expect_transact_status()
190+
}
188191
fn query_pallet(_module_name: &Vec<u8>, _response_info: &QueryResponseInfo) -> Weight {
189192
XcmGeneric::<Runtime>::query_pallet()
190193
}

cumulus/parachains/runtimes/assets/statemint/src/weights/xcm/pallet_xcm_benchmarks_generic.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ impl<T: frame_system::Config> WeightInfo<T> {
148148
pub(crate) fn expect_error() -> Weight {
149149
Weight::from_ref_time(5_758_000 as u64)
150150
}
151+
pub(crate) fn expect_transact_status() -> Weight {
152+
Weight::from_ref_time(5_758_000 as u64)
153+
}
151154
// Storage: ParachainInfo ParachainId (r:1 w:0)
152155
// Storage: PolkadotXcm SupportedVersion (r:1 w:0)
153156
// Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1)

cumulus/parachains/runtimes/assets/westmint/src/weights/xcm/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,9 @@ impl<Call> XcmWeightInfo<Call> for WestmintXcmWeight<Call> {
185185
fn expect_error(_error: &Option<(u32, XcmError)>) -> Weight {
186186
XcmGeneric::<Runtime>::expect_error()
187187
}
188+
fn expect_transact_status(_transact_status: &MaybeErrorCode) -> Weight {
189+
XcmGeneric::<Runtime>::expect_transact_status()
190+
}
188191
fn query_pallet(_module_name: &Vec<u8>, _response_info: &QueryResponseInfo) -> Weight {
189192
XcmGeneric::<Runtime>::query_pallet()
190193
}

cumulus/parachains/runtimes/assets/westmint/src/weights/xcm/pallet_xcm_benchmarks_generic.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ impl<T: frame_system::Config> WeightInfo<T> {
148148
pub(crate) fn expect_error() -> Weight {
149149
Weight::from_ref_time(6_044_000 as u64)
150150
}
151+
pub(crate) fn expect_transact_status() -> Weight {
152+
Weight::from_ref_time(6_044_000 as u64)
153+
}
151154
// Storage: ParachainInfo ParachainId (r:1 w:0)
152155
// Storage: PolkadotXcm SupportedVersion (r:1 w:0)
153156
// Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1)

cumulus/parachains/runtimes/bridge-hubs/bridge-hub-kusama/src/weights/xcm/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,9 @@ impl<Call> XcmWeightInfo<Call> for BridgeHubKusamaXcmWeight<Call> {
185185
fn expect_error(_error: &Option<(u32, XcmError)>) -> Weight {
186186
XcmGeneric::<Runtime>::expect_error()
187187
}
188+
fn expect_transact_status(_transact_status: &MaybeErrorCode) -> Weight {
189+
XcmGeneric::<Runtime>::expect_transact_status()
190+
}
188191
fn query_pallet(_module_name: &Vec<u8>, _response_info: &QueryResponseInfo) -> Weight {
189192
XcmGeneric::<Runtime>::query_pallet()
190193
}

cumulus/parachains/runtimes/bridge-hubs/bridge-hub-kusama/src/weights/xcm/pallet_xcm_benchmarks_generic.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ impl<T: frame_system::Config> WeightInfo<T> {
147147
pub(crate) fn expect_error() -> Weight {
148148
Weight::from_ref_time(6_802_000 as u64)
149149
}
150+
pub(crate) fn expect_transact_status() -> Weight {
151+
Weight::from_ref_time(6_802_000 as u64)
152+
}
150153
// Storage: ParachainInfo ParachainId (r:1 w:0)
151154
// Storage: PolkadotXcm SupportedVersion (r:1 w:0)
152155
// Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1)

cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/weights/xcm/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,9 @@ impl<Call> XcmWeightInfo<Call> for BridgeHubRococoXcmWeight<Call> {
185185
fn expect_error(_error: &Option<(u32, XcmError)>) -> Weight {
186186
XcmGeneric::<Runtime>::expect_error()
187187
}
188+
fn expect_transact_status(_transact_status: &MaybeErrorCode) -> Weight {
189+
XcmGeneric::<Runtime>::expect_transact_status()
190+
}
188191
fn query_pallet(_module_name: &Vec<u8>, _response_info: &QueryResponseInfo) -> Weight {
189192
XcmGeneric::<Runtime>::query_pallet()
190193
}

cumulus/parachains/runtimes/bridge-hubs/bridge-hub-rococo/src/weights/xcm/pallet_xcm_benchmarks_generic.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ impl<T: frame_system::Config> WeightInfo<T> {
147147
pub(crate) fn expect_error() -> Weight {
148148
Weight::from_ref_time(5_857_000 as u64)
149149
}
150+
pub(crate) fn expect_transact_status() -> Weight {
151+
Weight::from_ref_time(5_857_000 as u64)
152+
}
150153
// Storage: ParachainInfo ParachainId (r:1 w:0)
151154
// Storage: PolkadotXcm SupportedVersion (r:1 w:0)
152155
// Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1)

0 commit comments

Comments
 (0)