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

Commit

Permalink
Browse files Browse the repository at this point in the history
* Add ExpectTransactStatus benchmarking

* cargo fmt

* update lockfile for {"polkadot", "substrate"}

Co-authored-by: parity-processbot <>
  • Loading branch information
KiChjang committed Jan 19, 2023
1 parent 6d47326 commit b6b2c1c
Show file tree
Hide file tree
Showing 11 changed files with 285 additions and 254 deletions.
509 changes: 255 additions & 254 deletions Cargo.lock

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions parachains/runtimes/assets/statemine/src/weights/xcm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ impl<Call> XcmWeightInfo<Call> for StatemineXcmWeight<Call> {
fn expect_error(_error: &Option<(u32, XcmError)>) -> Weight {
XcmGeneric::<Runtime>::expect_error()
}
fn expect_transact_status(_transact_status: &MaybeErrorCode) -> Weight {
XcmGeneric::<Runtime>::expect_transact_status()
}
fn query_pallet(_module_name: &Vec<u8>, _response_info: &QueryResponseInfo) -> Weight {
XcmGeneric::<Runtime>::query_pallet()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ impl<T: frame_system::Config> WeightInfo<T> {
pub(crate) fn expect_error() -> Weight {
Weight::from_ref_time(5_859_000 as u64)
}
pub(crate) fn expect_transact_status() -> Weight {
Weight::from_ref_time(5_859_000 as u64)
}
// Storage: ParachainInfo ParachainId (r:1 w:0)
// Storage: PolkadotXcm SupportedVersion (r:1 w:0)
// Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1)
Expand Down
3 changes: 3 additions & 0 deletions parachains/runtimes/assets/statemint/src/weights/xcm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ impl<Call> XcmWeightInfo<Call> for StatemintXcmWeight<Call> {
fn expect_error(_error: &Option<(u32, XcmError)>) -> Weight {
XcmGeneric::<Runtime>::expect_error()
}
fn expect_transact_status(_transact_status: &MaybeErrorCode) -> Weight {
XcmGeneric::<Runtime>::expect_transact_status()
}
fn query_pallet(_module_name: &Vec<u8>, _response_info: &QueryResponseInfo) -> Weight {
XcmGeneric::<Runtime>::query_pallet()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ impl<T: frame_system::Config> WeightInfo<T> {
pub(crate) fn expect_error() -> Weight {
Weight::from_ref_time(5_758_000 as u64)
}
pub(crate) fn expect_transact_status() -> Weight {
Weight::from_ref_time(5_758_000 as u64)
}
// Storage: ParachainInfo ParachainId (r:1 w:0)
// Storage: PolkadotXcm SupportedVersion (r:1 w:0)
// Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1)
Expand Down
3 changes: 3 additions & 0 deletions parachains/runtimes/assets/westmint/src/weights/xcm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ impl<Call> XcmWeightInfo<Call> for WestmintXcmWeight<Call> {
fn expect_error(_error: &Option<(u32, XcmError)>) -> Weight {
XcmGeneric::<Runtime>::expect_error()
}
fn expect_transact_status(_transact_status: &MaybeErrorCode) -> Weight {
XcmGeneric::<Runtime>::expect_transact_status()
}
fn query_pallet(_module_name: &Vec<u8>, _response_info: &QueryResponseInfo) -> Weight {
XcmGeneric::<Runtime>::query_pallet()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ impl<T: frame_system::Config> WeightInfo<T> {
pub(crate) fn expect_error() -> Weight {
Weight::from_ref_time(6_044_000 as u64)
}
pub(crate) fn expect_transact_status() -> Weight {
Weight::from_ref_time(6_044_000 as u64)
}
// Storage: ParachainInfo ParachainId (r:1 w:0)
// Storage: PolkadotXcm SupportedVersion (r:1 w:0)
// Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ impl<Call> XcmWeightInfo<Call> for BridgeHubKusamaXcmWeight<Call> {
fn expect_error(_error: &Option<(u32, XcmError)>) -> Weight {
XcmGeneric::<Runtime>::expect_error()
}
fn expect_transact_status(_transact_status: &MaybeErrorCode) -> Weight {
XcmGeneric::<Runtime>::expect_transact_status()
}
fn query_pallet(_module_name: &Vec<u8>, _response_info: &QueryResponseInfo) -> Weight {
XcmGeneric::<Runtime>::query_pallet()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ impl<T: frame_system::Config> WeightInfo<T> {
pub(crate) fn expect_error() -> Weight {
Weight::from_ref_time(6_802_000 as u64)
}
pub(crate) fn expect_transact_status() -> Weight {
Weight::from_ref_time(6_802_000 as u64)
}
// Storage: ParachainInfo ParachainId (r:1 w:0)
// Storage: PolkadotXcm SupportedVersion (r:1 w:0)
// Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ impl<Call> XcmWeightInfo<Call> for BridgeHubRococoXcmWeight<Call> {
fn expect_error(_error: &Option<(u32, XcmError)>) -> Weight {
XcmGeneric::<Runtime>::expect_error()
}
fn expect_transact_status(_transact_status: &MaybeErrorCode) -> Weight {
XcmGeneric::<Runtime>::expect_transact_status()
}
fn query_pallet(_module_name: &Vec<u8>, _response_info: &QueryResponseInfo) -> Weight {
XcmGeneric::<Runtime>::query_pallet()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ impl<T: frame_system::Config> WeightInfo<T> {
pub(crate) fn expect_error() -> Weight {
Weight::from_ref_time(5_857_000 as u64)
}
pub(crate) fn expect_transact_status() -> Weight {
Weight::from_ref_time(5_857_000 as u64)
}
// Storage: ParachainInfo ParachainId (r:1 w:0)
// Storage: PolkadotXcm SupportedVersion (r:1 w:0)
// Storage: PolkadotXcm VersionDiscoveryQueue (r:1 w:1)
Expand Down

0 comments on commit b6b2c1c

Please sign in to comment.