mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-25 00:05:46 +00:00
Bring apopiak/prepare-v6-release to the release for v6 (#741)
* disable permissionless asset creation for Statemint (#669) * disable permissionless asset creation for Statemint * Companion for polkadot#3728 (#693) * Update mock runtime API * update Polkadot packages Co-authored-by: joao-paulo-parity <joao-paulo@parity.io> * Ensure a bad datastream cannot cause problems (#701) * Allow Queries and Subscriptions (#700) * Bump syn to 1.0.81 (#707) * Update Substrate & Polkadot (#709) * Udpate polkadot substrate (#713) * fmt with latest nightly * Bump subwasm version (#716) * Companion for `dispatch_as` (#715) * dispatch as companion * Upstream Statemine Release v5 Changes to Master (#720) * set substrate deps for pallet-asset-tx-payment * add DisabledValidatorsThreshold to parachain template * add DisabledValidatorsThreshold to mock config * adjust on_disabled type * remove on_chain_votes function in ParachainHost impl * remove ScrapedOnChainVotes * bump polkadot-collator version Co-authored-by: Chevdor <chevdor@users.noreply.github.com> * set spec_versions to 500 * Statemine cannot execute. * disallow XCM execute on statemint * remove unnecessary dep on node-primitives * select parachains-common/std feature when building rococo-runtime with std * adjust Statemint to the three digit spec_version format * Add script to generate simple changelogs (#668) * Update weights from v4 for v5 comparison (#673) * updates weights * pallet_unique benchmarks added + weights upstream from v4 * Fix benchmarks after Parachain Template (#677) * pallet_unique benchmarks added + weights upstream from v4 * benchmarks fix for parachain template * Weights updates for Statemine v5 (#682) * pallet_unique benchmarks added + weights upstream from v4 * weights updates for statemine v5 * mention Storage in construct_runtime macro for pallet-xcm (#680) * Use pallet-xcm for version wrapping (#689) * use PolkadotXcm for XcmRouter WrapVersion * use PolkadotXcm for version wrapping Co-authored-by: Bryan Chen <xlchen1291@gmail.com> * patch weight for batch_all from rerun * Runtime version bump to v503 (#694) * adjust genesis value generation scripts to output entries array + add script to derive encoded call * add script to generate shell spec from runtime wasm * Ensure a bad datastream cannot cause problems (#701) * Ensure a bad datastream cannot cause problems * update Polkadot (to 0.9.11 169bab55d) * bump spec versions * Allow Queries and Subscriptions * statemint imports * slight naming changes in script * add shell genesis data + wasm + chainspec * adjust generated shell spec with production config values * update Substrate and Polkadot to master * swap out bootnodes for statemint shell * add a script for verifying the shell chain spec * add sha checksum for head data * remove verification script * remove hex wasm file * update Substrate and Polkadot again and fix compilation * remove redundant dispatch_as weight Co-authored-by: Bastian Köcher <info@kchr.de> Co-authored-by: Chevdor <chevdor@users.noreply.github.com> Co-authored-by: Gav Wood <gavin@parity.io> Co-authored-by: Ignacio Palacios <ignacio.palacios.santos@gmail.com> Co-authored-by: Bryan Chen <xlchen1291@gmail.com> Co-authored-by: joepetrowski <joe@parity.io> * Rework the runtime upgrade test (#727) * Rework the runtime upgrade test * Update test/service/tests/runtime_upgrade.rs Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com> * Remove randomness collective flip new (#726) * randomess collective flip removed * remove migration for statemint Co-authored-by: Alexander Popiak <alexander.popiak@parity.io> * adjust XCM unit weights to 1B (#735) * Align Call Indices between Westmint and Statemint (#731) * align construct_runtime calls between statemint runtimes * bump westmint transaction_version * bump spec_version (#733) * point back to Polkadot 0.9.12 * adjust code to work with 0.9.12 again * adjust network test back to polkadot 0.9.12 * Align the Statemint Runtimes (#736) * align the different Statemint runtimes so they are more similar in structure * align Unpaid Execution filter * revert changes to Unpaid execution filter for Westmint * Bump spec versions (#742) Co-authored-by: Alexander Popiak <alexander.popiak@parity.io> Co-authored-by: Chris Sosnin <48099298+slumber@users.noreply.github.com> Co-authored-by: joao-paulo-parity <joao-paulo@parity.io> Co-authored-by: Gavin Wood <gavin@parity.io> Co-authored-by: Keith Yeung <kungfukeith11@gmail.com> Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com> Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com> Co-authored-by: Bastian Köcher <info@kchr.de> Co-authored-by: Ignacio Palacios <ignacio.palacios.santos@gmail.com> Co-authored-by: Bryan Chen <xlchen1291@gmail.com> Co-authored-by: joepetrowski <joe@parity.io>
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
name: Srtool build
|
name: Srtool build
|
||||||
|
|
||||||
env:
|
env:
|
||||||
SUBWASM_VERSION: 0.14.1
|
SUBWASM_VERSION: 0.15.0
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|||||||
Generated
+793
-947
File diff suppressed because it is too large
Load Diff
@@ -35,7 +35,6 @@ members = [
|
|||||||
"test/relay-sproof-builder",
|
"test/relay-sproof-builder",
|
||||||
"test/relay-validation-worker-provider",
|
"test/relay-validation-worker-provider",
|
||||||
"test/runtime",
|
"test/runtime",
|
||||||
"test/runtime-upgrade",
|
|
||||||
"test/service",
|
"test/service",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ fn register_validators<T: Config + session::Config>(count: u32) {
|
|||||||
let validators = (0..count).map(|c| validator::<T>(c)).collect::<Vec<_>>();
|
let validators = (0..count).map(|c| validator::<T>(c)).collect::<Vec<_>>();
|
||||||
|
|
||||||
for (who, keys) in validators {
|
for (who, keys) in validators {
|
||||||
<session::Module<T>>::set_keys(RawOrigin::Signed(who).into(), keys, vec![]).unwrap();
|
<session::Pallet<T>>::set_keys(RawOrigin::Signed(who).into(), keys, vec![]).unwrap();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -157,7 +157,7 @@ benchmarks! {
|
|||||||
let bond: BalanceOf<T> = T::Currency::minimum_balance() * 2u32.into();
|
let bond: BalanceOf<T> = T::Currency::minimum_balance() * 2u32.into();
|
||||||
T::Currency::make_free_balance_be(&caller, bond.clone());
|
T::Currency::make_free_balance_be(&caller, bond.clone());
|
||||||
|
|
||||||
<session::Module<T>>::set_keys(
|
<session::Pallet<T>>::set_keys(
|
||||||
RawOrigin::Signed(caller.clone()).into(),
|
RawOrigin::Signed(caller.clone()).into(),
|
||||||
keys::<T>(c + 1),
|
keys::<T>(c + 1),
|
||||||
vec![]
|
vec![]
|
||||||
|
|||||||
@@ -307,7 +307,7 @@ pub mod pallet {
|
|||||||
id, remaining, required,
|
id, remaining, required,
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Cannot be an `else` here since the `maybe_enqueue_page` may have changed.
|
// Cannot be an `else` here since the `maybe_enqueue_page` may have changed.
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ description = "Proc macros provided by the parachain-system pallet"
|
|||||||
proc-macro = true
|
proc-macro = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
syn = "1.0.73"
|
syn = "1.0.81"
|
||||||
proc-macro2 = "1.0.27"
|
proc-macro2 = "1.0.27"
|
||||||
quote = "1.0.9"
|
quote = "1.0.9"
|
||||||
proc-macro-crate = "1.0.0"
|
proc-macro-crate = "1.0.0"
|
||||||
|
|||||||
@@ -401,23 +401,26 @@ impl<T: Config> Pallet<T> {
|
|||||||
XcmpMessageFormat::ConcatenatedEncodedBlob => {
|
XcmpMessageFormat::ConcatenatedEncodedBlob => {
|
||||||
while !remaining_fragments.is_empty() {
|
while !remaining_fragments.is_empty() {
|
||||||
last_remaining_fragments = remaining_fragments;
|
last_remaining_fragments = remaining_fragments;
|
||||||
if let Ok(blob) = <Vec<u8>>::decode_all(&mut remaining_fragments) {
|
match <Vec<u8>>::decode_all(&mut remaining_fragments) {
|
||||||
let weight = max_weight - weight_used;
|
Ok(blob) if remaining_fragments.len() < last_remaining_fragments.len() => {
|
||||||
match Self::handle_blob_message(sender, sent_at, blob, weight) {
|
let weight = max_weight - weight_used;
|
||||||
Ok(used) => weight_used = weight_used.saturating_add(used),
|
match Self::handle_blob_message(sender, sent_at, blob, weight) {
|
||||||
Err(true) => {
|
Ok(used) => weight_used = weight_used.saturating_add(used),
|
||||||
// That message didn't get processed this time because of being
|
Err(true) => {
|
||||||
// too heavy. We leave it around for next time and bail.
|
// That message didn't get processed this time because of being
|
||||||
remaining_fragments = last_remaining_fragments;
|
// too heavy. We leave it around for next time and bail.
|
||||||
break
|
remaining_fragments = last_remaining_fragments;
|
||||||
},
|
break
|
||||||
Err(false) => {
|
},
|
||||||
// Message invalid; don't attempt to retry
|
Err(false) => {
|
||||||
},
|
// Message invalid; don't attempt to retry
|
||||||
}
|
},
|
||||||
} else {
|
}
|
||||||
debug_assert!(false, "Invalid incoming blob message data");
|
},
|
||||||
remaining_fragments = &b""[..];
|
_ => {
|
||||||
|
debug_assert!(false, "Invalid incoming blob message data");
|
||||||
|
remaining_fragments = &b""[..];
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
use cumulus_primitives_core::XcmpMessageHandler;
|
use cumulus_primitives_core::XcmpMessageHandler;
|
||||||
use mock::{new_test_ext, XcmpQueue};
|
use mock::{new_test_ext, Test, XcmpQueue};
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn one_message_does_not_panic() {
|
fn one_message_does_not_panic() {
|
||||||
@@ -27,3 +27,35 @@ fn one_message_does_not_panic() {
|
|||||||
XcmpQueue::handle_xcmp_messages(messages.into_iter(), Weight::max_value());
|
XcmpQueue::handle_xcmp_messages(messages.into_iter(), Weight::max_value());
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
#[should_panic = "Invalid incoming blob message data"]
|
||||||
|
fn bad_message_is_handled() {
|
||||||
|
new_test_ext().execute_with(|| {
|
||||||
|
let bad_data = vec![
|
||||||
|
1, 1, 3, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 64, 239, 139, 0,
|
||||||
|
0, 0, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 0, 0, 0, 0, 0, 0, 0, 37, 0,
|
||||||
|
0, 0, 0, 0, 0, 0, 16, 0, 127, 147,
|
||||||
|
];
|
||||||
|
InboundXcmpMessages::<Test>::insert(ParaId::from(1000), 1, bad_data);
|
||||||
|
let format = XcmpMessageFormat::ConcatenatedEncodedBlob;
|
||||||
|
// This should exit with an error.
|
||||||
|
XcmpQueue::process_xcmp_message(1000.into(), (1, format), 10_000_000_000);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
#[should_panic = "Invalid incoming blob message data"]
|
||||||
|
fn other_bad_message_is_handled() {
|
||||||
|
new_test_ext().execute_with(|| {
|
||||||
|
let bad_data = vec![
|
||||||
|
1, 1, 1, 1, 3, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 64, 239,
|
||||||
|
139, 0, 0, 0, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 0, 0, 0, 0, 0, 0, 0,
|
||||||
|
37, 0, 0, 0, 0, 0, 0, 0, 16, 0, 127, 147,
|
||||||
|
];
|
||||||
|
InboundXcmpMessages::<Test>::insert(ParaId::from(1000), 1, bad_data);
|
||||||
|
let format = XcmpMessageFormat::ConcatenatedEncodedBlob;
|
||||||
|
// This should exit with an error.
|
||||||
|
XcmpQueue::process_xcmp_message(1000.into(), (1, format), 10_000_000_000);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
#[allow(unused)]
|
#[allow(unused)]
|
||||||
use crate::Module as Template;
|
use crate::Pallet as Template;
|
||||||
use frame_benchmarking::{benchmarks, impl_benchmark_test_suite, whitelisted_caller};
|
use frame_benchmarking::{benchmarks, impl_benchmark_test_suite, whitelisted_caller};
|
||||||
use frame_system::RawOrigin;
|
use frame_system::RawOrigin;
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ targets = ["x86_64-unknown-linux-gnu"]
|
|||||||
substrate-wasm-builder = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.12" }
|
substrate-wasm-builder = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.12" }
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
hex-literal = { version = '0.3.1', optional = true }
|
||||||
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"]}
|
codec = { package = "parity-scale-codec", version = "2.0.0", default-features = false, features = ["derive"]}
|
||||||
log = { version = "0.4.14", default-features = false }
|
log = { version = "0.4.14", default-features = false }
|
||||||
scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
|
scale-info = { version = "1.0.0", default-features = false, features = ["derive"] }
|
||||||
@@ -51,7 +52,6 @@ frame-system-rpc-runtime-api = { git = "https://github.com/paritytech/substrate"
|
|||||||
pallet-aura = { git = "https://github.com/paritytech/substrate", default-features = false , branch = "polkadot-v0.9.12" }
|
pallet-aura = { git = "https://github.com/paritytech/substrate", default-features = false , branch = "polkadot-v0.9.12" }
|
||||||
pallet-authorship = { git = "https://github.com/paritytech/substrate", default-features = false , branch = "polkadot-v0.9.12" }
|
pallet-authorship = { git = "https://github.com/paritytech/substrate", default-features = false , branch = "polkadot-v0.9.12" }
|
||||||
pallet-balances = { git = "https://github.com/paritytech/substrate", default-features = false , branch = "polkadot-v0.9.12" }
|
pallet-balances = { git = "https://github.com/paritytech/substrate", default-features = false , branch = "polkadot-v0.9.12" }
|
||||||
pallet-randomness-collective-flip = { git = "https://github.com/paritytech/substrate", default-features = false , branch = "polkadot-v0.9.12" }
|
|
||||||
pallet-session = { git = "https://github.com/paritytech/substrate", default-features = false , branch = "polkadot-v0.9.12" }
|
pallet-session = { git = "https://github.com/paritytech/substrate", default-features = false , branch = "polkadot-v0.9.12" }
|
||||||
pallet-sudo = { git = "https://github.com/paritytech/substrate", default-features = false , branch = "polkadot-v0.9.12" }
|
pallet-sudo = { git = "https://github.com/paritytech/substrate", default-features = false , branch = "polkadot-v0.9.12" }
|
||||||
pallet-timestamp = { git = "https://github.com/paritytech/substrate", default-features = false , branch = "polkadot-v0.9.12" }
|
pallet-timestamp = { git = "https://github.com/paritytech/substrate", default-features = false , branch = "polkadot-v0.9.12" }
|
||||||
@@ -69,6 +69,7 @@ cumulus-primitives-timestamp = { path = "../../primitives/timestamp", default-fe
|
|||||||
cumulus-primitives-utility = { path = "../../primitives/utility", default-features = false }
|
cumulus-primitives-utility = { path = "../../primitives/utility", default-features = false }
|
||||||
pallet-collator-selection = { path = "../../pallets/collator-selection", default-features = false }
|
pallet-collator-selection = { path = "../../pallets/collator-selection", default-features = false }
|
||||||
parachain-info = { path = "../../polkadot-parachains/pallets/parachain-info", default-features = false }
|
parachain-info = { path = "../../polkadot-parachains/pallets/parachain-info", default-features = false }
|
||||||
|
cumulus-pallet-session-benchmarking = {path = "../../pallets/session-benchmarking", default-features = false, version = "3.0.0"}
|
||||||
|
|
||||||
# Polkadot Dependencies
|
# Polkadot Dependencies
|
||||||
pallet-xcm = { git = "https://github.com/paritytech/polkadot", default-features = false , branch = "release-v0.9.12" }
|
pallet-xcm = { git = "https://github.com/paritytech/polkadot", default-features = false , branch = "release-v0.9.12" }
|
||||||
@@ -106,7 +107,6 @@ std = [
|
|||||||
"pallet-authorship/std",
|
"pallet-authorship/std",
|
||||||
"pallet-balances/std",
|
"pallet-balances/std",
|
||||||
"pallet-collator-selection/std",
|
"pallet-collator-selection/std",
|
||||||
"pallet-randomness-collective-flip/std",
|
|
||||||
"pallet-session/std",
|
"pallet-session/std",
|
||||||
"pallet-sudo/std",
|
"pallet-sudo/std",
|
||||||
"pallet-template/std",
|
"pallet-template/std",
|
||||||
@@ -130,6 +130,7 @@ std = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
runtime-benchmarks = [
|
runtime-benchmarks = [
|
||||||
|
'hex-literal',
|
||||||
"sp-runtime/runtime-benchmarks",
|
"sp-runtime/runtime-benchmarks",
|
||||||
"xcm-builder/runtime-benchmarks",
|
"xcm-builder/runtime-benchmarks",
|
||||||
"frame-benchmarking",
|
"frame-benchmarking",
|
||||||
@@ -141,4 +142,5 @@ runtime-benchmarks = [
|
|||||||
"pallet-template/runtime-benchmarks",
|
"pallet-template/runtime-benchmarks",
|
||||||
"pallet-timestamp/runtime-benchmarks",
|
"pallet-timestamp/runtime-benchmarks",
|
||||||
"pallet-xcm/runtime-benchmarks",
|
"pallet-xcm/runtime-benchmarks",
|
||||||
|
'cumulus-pallet-session-benchmarking/runtime-benchmarks',
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -49,8 +49,9 @@ use polkadot_runtime_common::{BlockHashCount, RocksDbWeight, SlowAdjustingFeeUpd
|
|||||||
// XCM Imports
|
// XCM Imports
|
||||||
use xcm::latest::prelude::*;
|
use xcm::latest::prelude::*;
|
||||||
use xcm_builder::{
|
use xcm_builder::{
|
||||||
AccountId32Aliases, AllowTopLevelPaidExecutionFrom, AllowUnpaidExecutionFrom, CurrencyAdapter,
|
AccountId32Aliases, AllowKnownQueryResponses, AllowSubscriptionsFrom,
|
||||||
EnsureXcmOrigin, FixedWeightBounds, IsConcrete, LocationInverter, NativeAsset, ParentIsDefault,
|
AllowTopLevelPaidExecutionFrom, AllowUnpaidExecutionFrom, CurrencyAdapter, EnsureXcmOrigin,
|
||||||
|
FixedWeightBounds, IsConcrete, LocationInverter, NativeAsset, ParentIsDefault,
|
||||||
RelayChainAsNative, SiblingParachainAsNative, SiblingParachainConvertsVia,
|
RelayChainAsNative, SiblingParachainAsNative, SiblingParachainConvertsVia,
|
||||||
SignedAccountId32AsNative, SovereignSignedViaLocation, TakeWeightCredit, UsingComponents,
|
SignedAccountId32AsNative, SovereignSignedViaLocation, TakeWeightCredit, UsingComponents,
|
||||||
};
|
};
|
||||||
@@ -184,7 +185,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
|
|||||||
spec_name: create_runtime_str!("template-parachain"),
|
spec_name: create_runtime_str!("template-parachain"),
|
||||||
impl_name: create_runtime_str!("template-parachain"),
|
impl_name: create_runtime_str!("template-parachain"),
|
||||||
authoring_version: 1,
|
authoring_version: 1,
|
||||||
spec_version: 1,
|
spec_version: 100,
|
||||||
impl_version: 0,
|
impl_version: 0,
|
||||||
apis: RUNTIME_API_VERSIONS,
|
apis: RUNTIME_API_VERSIONS,
|
||||||
transaction_version: 1,
|
transaction_version: 1,
|
||||||
@@ -389,8 +390,6 @@ impl cumulus_pallet_parachain_system::Config for Runtime {
|
|||||||
type ReservedXcmpWeight = ReservedXcmpWeight;
|
type ReservedXcmpWeight = ReservedXcmpWeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl pallet_randomness_collective_flip::Config for Runtime {}
|
|
||||||
|
|
||||||
impl parachain_info::Config for Runtime {}
|
impl parachain_info::Config for Runtime {}
|
||||||
|
|
||||||
impl cumulus_pallet_aura_ext::Config for Runtime {}
|
impl cumulus_pallet_aura_ext::Config for Runtime {}
|
||||||
@@ -461,12 +460,22 @@ match_type! {
|
|||||||
MultiLocation { parents: 1, interior: X1(Plurality { id: BodyId::Executive, .. }) }
|
MultiLocation { parents: 1, interior: X1(Plurality { id: BodyId::Executive, .. }) }
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
match_type! {
|
||||||
|
pub type ParentOrSiblings: impl Contains<MultiLocation> = {
|
||||||
|
MultiLocation { parents: 1, interior: Here } |
|
||||||
|
MultiLocation { parents: 1, interior: X1(_) }
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
pub type Barrier = (
|
pub type Barrier = (
|
||||||
TakeWeightCredit,
|
TakeWeightCredit,
|
||||||
AllowTopLevelPaidExecutionFrom<Everything>,
|
AllowTopLevelPaidExecutionFrom<Everything>,
|
||||||
AllowUnpaidExecutionFrom<ParentOrParentsExecutivePlurality>,
|
AllowUnpaidExecutionFrom<ParentOrParentsExecutivePlurality>,
|
||||||
// ^^^ Parent and its exec plurality get free execution
|
// ^^^ Parent and its exec plurality get free execution
|
||||||
|
// Expected responses are OK.
|
||||||
|
AllowKnownQueryResponses<PolkadotXcm>,
|
||||||
|
// Subscriptions for version tracking are OK.
|
||||||
|
AllowSubscriptionsFrom<ParentOrSiblings>,
|
||||||
);
|
);
|
||||||
|
|
||||||
pub struct XcmConfig;
|
pub struct XcmConfig;
|
||||||
@@ -499,7 +508,7 @@ pub type LocalOriginToLocation = ();
|
|||||||
/// queues.
|
/// queues.
|
||||||
pub type XcmRouter = (
|
pub type XcmRouter = (
|
||||||
// Two routers - use UMP to communicate with the relay chain:
|
// Two routers - use UMP to communicate with the relay chain:
|
||||||
cumulus_primitives_utility::ParentAsUmp<ParachainSystem, ()>,
|
cumulus_primitives_utility::ParentAsUmp<ParachainSystem, PolkadotXcm>,
|
||||||
// ..and XCMP to communicate with the sibling chains.
|
// ..and XCMP to communicate with the sibling chains.
|
||||||
XcmpQueue,
|
XcmpQueue,
|
||||||
);
|
);
|
||||||
@@ -532,7 +541,7 @@ impl cumulus_pallet_xcmp_queue::Config for Runtime {
|
|||||||
type Event = Event;
|
type Event = Event;
|
||||||
type XcmExecutor = XcmExecutor<XcmConfig>;
|
type XcmExecutor = XcmExecutor<XcmConfig>;
|
||||||
type ChannelInfo = ParachainSystem;
|
type ChannelInfo = ParachainSystem;
|
||||||
type VersionWrapper = ();
|
type VersionWrapper = PolkadotXcm;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl cumulus_pallet_dmp_queue::Config for Runtime {
|
impl cumulus_pallet_dmp_queue::Config for Runtime {
|
||||||
@@ -616,7 +625,6 @@ construct_runtime!(
|
|||||||
ParachainSystem: cumulus_pallet_parachain_system::{
|
ParachainSystem: cumulus_pallet_parachain_system::{
|
||||||
Pallet, Call, Config, Storage, Inherent, Event<T>, ValidateUnsigned,
|
Pallet, Call, Config, Storage, Inherent, Event<T>, ValidateUnsigned,
|
||||||
} = 1,
|
} = 1,
|
||||||
RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage} = 2,
|
|
||||||
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent} = 3,
|
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent} = 3,
|
||||||
ParachainInfo: parachain_info::{Pallet, Storage, Config} = 4,
|
ParachainInfo: parachain_info::{Pallet, Storage, Config} = 4,
|
||||||
|
|
||||||
@@ -765,6 +773,7 @@ impl_runtime_apis! {
|
|||||||
|
|
||||||
list_benchmark!(list, extra, frame_system, SystemBench::<Runtime>);
|
list_benchmark!(list, extra, frame_system, SystemBench::<Runtime>);
|
||||||
list_benchmark!(list, extra, pallet_balances, Balances);
|
list_benchmark!(list, extra, pallet_balances, Balances);
|
||||||
|
list_benchmark!(list, extra, pallet_session, SessionBench::<Runtime>);
|
||||||
list_benchmark!(list, extra, pallet_timestamp, Timestamp);
|
list_benchmark!(list, extra, pallet_timestamp, Timestamp);
|
||||||
list_benchmark!(list, extra, pallet_collator_selection, CollatorSelection);
|
list_benchmark!(list, extra, pallet_collator_selection, CollatorSelection);
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "polkadot-collator"
|
name = "polkadot-collator"
|
||||||
version = "4.0.0"
|
version = "5.0.0"
|
||||||
authors = ["Parity Technologies <admin@parity.io>"]
|
authors = ["Parity Technologies <admin@parity.io>"]
|
||||||
build = "build.rs"
|
build = "build.rs"
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
0x000000000000000000000000000000000000000000000000000000000000000000c1ef26b567de07159e4ecd415fbbb0340c56a09c4d72c82516d0f3bc2b782c8003170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c11131400
|
||||||
File diff suppressed because one or more lines are too long
@@ -32,7 +32,6 @@ frame-system = { git = "https://github.com/paritytech/substrate", default-featur
|
|||||||
frame-system-rpc-runtime-api = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
frame-system-rpc-runtime-api = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
||||||
pallet-assets = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
pallet-assets = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
||||||
pallet-balances = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
pallet-balances = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
||||||
pallet-randomness-collective-flip = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
|
||||||
pallet-timestamp = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
pallet-timestamp = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
||||||
pallet-sudo = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
pallet-sudo = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
||||||
pallet-transaction-payment = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
pallet-transaction-payment = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
||||||
@@ -85,7 +84,6 @@ std = [
|
|||||||
"frame-system/std",
|
"frame-system/std",
|
||||||
"pallet-assets/std",
|
"pallet-assets/std",
|
||||||
"pallet-balances/std",
|
"pallet-balances/std",
|
||||||
"pallet-randomness-collective-flip/std",
|
|
||||||
"pallet-timestamp/std",
|
"pallet-timestamp/std",
|
||||||
"pallet-sudo/std",
|
"pallet-sudo/std",
|
||||||
"pallet-transaction-payment/std",
|
"pallet-transaction-payment/std",
|
||||||
|
|||||||
@@ -60,7 +60,10 @@ use parachains_common::{
|
|||||||
impls::{AssetsFrom, NonZeroIssuance},
|
impls::{AssetsFrom, NonZeroIssuance},
|
||||||
AssetId,
|
AssetId,
|
||||||
};
|
};
|
||||||
use xcm_builder::{AsPrefixedGeneralIndex, ConvertedConcreteAssetId, FungiblesAdapter};
|
use xcm_builder::{
|
||||||
|
AllowKnownQueryResponses, AllowSubscriptionsFrom, AsPrefixedGeneralIndex,
|
||||||
|
ConvertedConcreteAssetId, FungiblesAdapter,
|
||||||
|
};
|
||||||
use xcm_executor::traits::JustTry;
|
use xcm_executor::traits::JustTry;
|
||||||
|
|
||||||
// XCM imports
|
// XCM imports
|
||||||
@@ -90,7 +93,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
|
|||||||
spec_name: create_runtime_str!("test-parachain"),
|
spec_name: create_runtime_str!("test-parachain"),
|
||||||
impl_name: create_runtime_str!("test-parachain"),
|
impl_name: create_runtime_str!("test-parachain"),
|
||||||
authoring_version: 1,
|
authoring_version: 1,
|
||||||
spec_version: 14,
|
spec_version: 140,
|
||||||
impl_version: 0,
|
impl_version: 0,
|
||||||
apis: RUNTIME_API_VERSIONS,
|
apis: RUNTIME_API_VERSIONS,
|
||||||
transaction_version: 1,
|
transaction_version: 1,
|
||||||
@@ -185,8 +188,8 @@ impl frame_system::Config for Runtime {
|
|||||||
type AccountData = pallet_balances::AccountData<Balance>;
|
type AccountData = pallet_balances::AccountData<Balance>;
|
||||||
type OnNewAccount = ();
|
type OnNewAccount = ();
|
||||||
type OnKilledAccount = ();
|
type OnKilledAccount = ();
|
||||||
type DbWeight = ();
|
type DbWeight = RocksDbWeight;
|
||||||
type BaseCallFilter = Everything;
|
type BaseCallFilter = frame_support::traits::Everything;
|
||||||
type SystemWeightInfo = ();
|
type SystemWeightInfo = ();
|
||||||
type BlockWeights = RuntimeBlockWeights;
|
type BlockWeights = RuntimeBlockWeights;
|
||||||
type BlockLength = RuntimeBlockLength;
|
type BlockLength = RuntimeBlockLength;
|
||||||
@@ -229,8 +232,6 @@ impl pallet_balances::Config for Runtime {
|
|||||||
type ReserveIdentifier = [u8; 8];
|
type ReserveIdentifier = [u8; 8];
|
||||||
}
|
}
|
||||||
|
|
||||||
impl pallet_randomness_collective_flip::Config for Runtime {}
|
|
||||||
|
|
||||||
parameter_types! {
|
parameter_types! {
|
||||||
pub const OperationalFeeMultiplier: u8 = 5;
|
pub const OperationalFeeMultiplier: u8 = 5;
|
||||||
}
|
}
|
||||||
@@ -351,8 +352,8 @@ pub type XcmOriginToTransactDispatchOrigin = (
|
|||||||
);
|
);
|
||||||
|
|
||||||
parameter_types! {
|
parameter_types! {
|
||||||
// One XCM operation is 1_000_000 weight - almost certainly a conservative estimate.
|
// One XCM operation is 1_000_000_000 weight - almost certainly a conservative estimate.
|
||||||
pub UnitWeightCost: Weight = 1_000_000;
|
pub UnitWeightCost: Weight = 1_000_000_000;
|
||||||
// One ROC buys 1 second of weight.
|
// One ROC buys 1 second of weight.
|
||||||
pub const WeightPrice: (MultiLocation, u128) = (MultiLocation::parent(), ROC);
|
pub const WeightPrice: (MultiLocation, u128) = (MultiLocation::parent(), ROC);
|
||||||
pub const MaxInstructions: u32 = 100;
|
pub const MaxInstructions: u32 = 100;
|
||||||
@@ -376,6 +377,10 @@ pub type Barrier = (
|
|||||||
AllowUnpaidExecutionFrom<ParentOrParentsUnitPlurality>,
|
AllowUnpaidExecutionFrom<ParentOrParentsUnitPlurality>,
|
||||||
// ^^^ Parent & its unit plurality gets free execution
|
// ^^^ Parent & its unit plurality gets free execution
|
||||||
AllowUnpaidExecutionFrom<Statemint>,
|
AllowUnpaidExecutionFrom<Statemint>,
|
||||||
|
// Expected responses are OK.
|
||||||
|
AllowKnownQueryResponses<PolkadotXcm>,
|
||||||
|
// Subscriptions for version tracking are OK.
|
||||||
|
AllowSubscriptionsFrom<Everything>,
|
||||||
);
|
);
|
||||||
|
|
||||||
parameter_types! {
|
parameter_types! {
|
||||||
@@ -507,7 +512,6 @@ construct_runtime! {
|
|||||||
System: frame_system::{Pallet, Call, Storage, Config, Event<T>},
|
System: frame_system::{Pallet, Call, Storage, Config, Event<T>},
|
||||||
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent},
|
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent},
|
||||||
Sudo: pallet_sudo::{Pallet, Call, Storage, Config<T>, Event<T>},
|
Sudo: pallet_sudo::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||||
RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage},
|
|
||||||
TransactionPayment: pallet_transaction_payment::{Pallet, Storage},
|
TransactionPayment: pallet_transaction_payment::{Pallet, Storage},
|
||||||
|
|
||||||
ParachainSystem: cumulus_pallet_parachain_system::{
|
ParachainSystem: cumulus_pallet_parachain_system::{
|
||||||
@@ -574,8 +578,19 @@ pub type Executive = frame_executive::Executive<
|
|||||||
frame_system::ChainContext<Runtime>,
|
frame_system::ChainContext<Runtime>,
|
||||||
Runtime,
|
Runtime,
|
||||||
AllPallets,
|
AllPallets,
|
||||||
|
RemoveCollectiveFlip,
|
||||||
>;
|
>;
|
||||||
|
|
||||||
|
pub struct RemoveCollectiveFlip;
|
||||||
|
impl frame_support::traits::OnRuntimeUpgrade for RemoveCollectiveFlip {
|
||||||
|
fn on_runtime_upgrade() -> Weight {
|
||||||
|
use frame_support::storage::migration;
|
||||||
|
// Remove the storage value `RandomMaterial` from removed pallet `RandomnessCollectiveFlip`
|
||||||
|
migration::remove_storage_prefix(b"RandomnessCollectiveFlip", b"RandomMaterial", b"");
|
||||||
|
<Runtime as frame_system::Config>::DbWeight::get().writes(1)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl_runtime_apis! {
|
impl_runtime_apis! {
|
||||||
impl sp_api::Core<Block> for Runtime {
|
impl sp_api::Core<Block> for Runtime {
|
||||||
fn version() -> RuntimeVersion {
|
fn version() -> RuntimeVersion {
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
|
|||||||
spec_name: create_runtime_str!("shell"),
|
spec_name: create_runtime_str!("shell"),
|
||||||
impl_name: create_runtime_str!("shell"),
|
impl_name: create_runtime_str!("shell"),
|
||||||
authoring_version: 1,
|
authoring_version: 1,
|
||||||
spec_version: 2,
|
spec_version: 200,
|
||||||
impl_version: 0,
|
impl_version: 0,
|
||||||
apis: RUNTIME_API_VERSIONS,
|
apis: RUNTIME_API_VERSIONS,
|
||||||
transaction_version: 1,
|
transaction_version: 1,
|
||||||
@@ -194,8 +194,8 @@ match_type! {
|
|||||||
}
|
}
|
||||||
|
|
||||||
parameter_types! {
|
parameter_types! {
|
||||||
// One XCM operation is 1_000_000 weight - almost certainly a conservative estimate.
|
// One XCM operation is 1_000_000_000 weight - almost certainly a conservative estimate.
|
||||||
pub UnitWeightCost: Weight = 1_000_000;
|
pub UnitWeightCost: Weight = 1_000_000_000;
|
||||||
pub const MaxInstructions: u32 = 100;
|
pub const MaxInstructions: u32 = 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -40,7 +40,6 @@ pallet-authorship = { git = "https://github.com/paritytech/substrate", default-f
|
|||||||
pallet-balances = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
pallet-balances = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
||||||
pallet-multisig = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
pallet-multisig = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
||||||
pallet-proxy = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
pallet-proxy = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
||||||
pallet-randomness-collective-flip = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
|
||||||
pallet-session = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
pallet-session = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
||||||
pallet-sudo = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
pallet-sudo = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
||||||
pallet-timestamp = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
pallet-timestamp = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
||||||
@@ -127,7 +126,6 @@ std = [
|
|||||||
"pallet-balances/std",
|
"pallet-balances/std",
|
||||||
"pallet-multisig/std",
|
"pallet-multisig/std",
|
||||||
"pallet-proxy/std",
|
"pallet-proxy/std",
|
||||||
"pallet-randomness-collective-flip/std",
|
|
||||||
"pallet-session/std",
|
"pallet-session/std",
|
||||||
"pallet-sudo/std",
|
"pallet-sudo/std",
|
||||||
"pallet-timestamp/std",
|
"pallet-timestamp/std",
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ use codec::{Decode, Encode, MaxEncodedLen};
|
|||||||
use constants::{currency::*, fee::WeightToFee};
|
use constants::{currency::*, fee::WeightToFee};
|
||||||
use frame_support::{
|
use frame_support::{
|
||||||
construct_runtime, match_type, parameter_types,
|
construct_runtime, match_type, parameter_types,
|
||||||
traits::{Contains, Everything, InstanceFilter, Nothing},
|
traits::{Everything, InstanceFilter, Nothing},
|
||||||
weights::{
|
weights::{
|
||||||
constants::{BlockExecutionWeight, ExtrinsicBaseWeight},
|
constants::{BlockExecutionWeight, ExtrinsicBaseWeight},
|
||||||
DispatchClass, IdentityFee, Weight,
|
DispatchClass, IdentityFee, Weight,
|
||||||
@@ -70,12 +70,12 @@ use polkadot_parachain::primitives::Sibling;
|
|||||||
use polkadot_runtime_common::{BlockHashCount, RocksDbWeight, SlowAdjustingFeeUpdate};
|
use polkadot_runtime_common::{BlockHashCount, RocksDbWeight, SlowAdjustingFeeUpdate};
|
||||||
use xcm::latest::prelude::*;
|
use xcm::latest::prelude::*;
|
||||||
use xcm_builder::{
|
use xcm_builder::{
|
||||||
AccountId32Aliases, AllowTopLevelPaidExecutionFrom, AllowUnpaidExecutionFrom,
|
AccountId32Aliases, AllowKnownQueryResponses, AllowSubscriptionsFrom,
|
||||||
AsPrefixedGeneralIndex, ConvertedConcreteAssetId, CurrencyAdapter, EnsureXcmOrigin,
|
AllowTopLevelPaidExecutionFrom, AllowUnpaidExecutionFrom, AsPrefixedGeneralIndex,
|
||||||
FixedWeightBounds, FungiblesAdapter, IsConcrete, LocationInverter, NativeAsset,
|
ConvertedConcreteAssetId, CurrencyAdapter, EnsureXcmOrigin, FixedWeightBounds,
|
||||||
ParentAsSuperuser, ParentIsDefault, RelayChainAsNative, SiblingParachainAsNative,
|
FungiblesAdapter, IsConcrete, LocationInverter, NativeAsset, ParentAsSuperuser,
|
||||||
SiblingParachainConvertsVia, SignedAccountId32AsNative, SovereignSignedViaLocation,
|
ParentIsDefault, RelayChainAsNative, SiblingParachainAsNative, SiblingParachainConvertsVia,
|
||||||
TakeWeightCredit, UsingComponents,
|
SignedAccountId32AsNative, SovereignSignedViaLocation, TakeWeightCredit, UsingComponents,
|
||||||
};
|
};
|
||||||
use xcm_executor::{traits::JustTry, Config, XcmExecutor};
|
use xcm_executor::{traits::JustTry, Config, XcmExecutor};
|
||||||
|
|
||||||
@@ -90,7 +90,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
|
|||||||
spec_name: create_runtime_str!("statemine"),
|
spec_name: create_runtime_str!("statemine"),
|
||||||
impl_name: create_runtime_str!("statemine"),
|
impl_name: create_runtime_str!("statemine"),
|
||||||
authoring_version: 1,
|
authoring_version: 1,
|
||||||
spec_version: 5,
|
spec_version: 600,
|
||||||
impl_version: 0,
|
impl_version: 0,
|
||||||
apis: RUNTIME_API_VERSIONS,
|
apis: RUNTIME_API_VERSIONS,
|
||||||
transaction_version: 3,
|
transaction_version: 3,
|
||||||
@@ -127,16 +127,9 @@ parameter_types! {
|
|||||||
pub const SS58Prefix: u8 = 2;
|
pub const SS58Prefix: u8 = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct BaseFilter;
|
|
||||||
impl Contains<Call> for BaseFilter {
|
|
||||||
fn contains(_c: &Call) -> bool {
|
|
||||||
true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Configure FRAME pallets to include in runtime.
|
// Configure FRAME pallets to include in runtime.
|
||||||
impl frame_system::Config for Runtime {
|
impl frame_system::Config for Runtime {
|
||||||
type BaseCallFilter = BaseFilter;
|
type BaseCallFilter = frame_support::traits::Everything;
|
||||||
type BlockWeights = RuntimeBlockWeights;
|
type BlockWeights = RuntimeBlockWeights;
|
||||||
type BlockLength = RuntimeBlockLength;
|
type BlockLength = RuntimeBlockLength;
|
||||||
type AccountId = AccountId;
|
type AccountId = AccountId;
|
||||||
@@ -253,34 +246,6 @@ impl pallet_assets::Config for Runtime {
|
|||||||
type WeightInfo = weights::pallet_assets::WeightInfo<Runtime>;
|
type WeightInfo = weights::pallet_assets::WeightInfo<Runtime>;
|
||||||
}
|
}
|
||||||
|
|
||||||
parameter_types! {
|
|
||||||
pub const ClassDeposit: Balance = UNITS; // 1 UNIT deposit to create asset class
|
|
||||||
pub const InstanceDeposit: Balance = UNITS / 100; // 1/100 UNIT deposit to create asset instance
|
|
||||||
pub const KeyLimit: u32 = 32; // Max 32 bytes per key
|
|
||||||
pub const ValueLimit: u32 = 64; // Max 64 bytes per value
|
|
||||||
pub const UniquesMetadataDepositBase: Balance = deposit(1, 129);
|
|
||||||
pub const AttributeDepositBase: Balance = deposit(1, 0);
|
|
||||||
pub const DepositPerByte: Balance = deposit(0, 1);
|
|
||||||
pub const UniquesStringLimit: u32 = 128;
|
|
||||||
}
|
|
||||||
|
|
||||||
impl pallet_uniques::Config for Runtime {
|
|
||||||
type Event = Event;
|
|
||||||
type ClassId = u32;
|
|
||||||
type InstanceId = u32;
|
|
||||||
type Currency = Balances;
|
|
||||||
type ForceOrigin = AssetsForceOrigin;
|
|
||||||
type ClassDeposit = ClassDeposit;
|
|
||||||
type InstanceDeposit = InstanceDeposit;
|
|
||||||
type MetadataDepositBase = UniquesMetadataDepositBase;
|
|
||||||
type AttributeDepositBase = AttributeDepositBase;
|
|
||||||
type DepositPerByte = DepositPerByte;
|
|
||||||
type StringLimit = UniquesStringLimit;
|
|
||||||
type KeyLimit = KeyLimit;
|
|
||||||
type ValueLimit = ValueLimit;
|
|
||||||
type WeightInfo = weights::pallet_uniques::WeightInfo<Runtime>;
|
|
||||||
}
|
|
||||||
|
|
||||||
parameter_types! {
|
parameter_types! {
|
||||||
// One storage item; key size is 32; value is size 4+4+16+32 bytes = 56 bytes.
|
// One storage item; key size is 32; value is size 4+4+16+32 bytes = 56 bytes.
|
||||||
pub const DepositBase: Balance = deposit(1, 88);
|
pub const DepositBase: Balance = deposit(1, 88);
|
||||||
@@ -344,7 +309,7 @@ pub enum ProxyType {
|
|||||||
AssetOwner,
|
AssetOwner,
|
||||||
/// Asset manager. Can execute calls related to asset management.
|
/// Asset manager. Can execute calls related to asset management.
|
||||||
AssetManager,
|
AssetManager,
|
||||||
// Collator selection proxy. Can execute calls related to collator selection mechanism.
|
/// Collator selection proxy. Can execute calls related to collator selection mechanism.
|
||||||
Collator,
|
Collator,
|
||||||
}
|
}
|
||||||
impl Default for ProxyType {
|
impl Default for ProxyType {
|
||||||
@@ -456,8 +421,6 @@ impl cumulus_pallet_parachain_system::Config for Runtime {
|
|||||||
type ReservedXcmpWeight = ReservedXcmpWeight;
|
type ReservedXcmpWeight = ReservedXcmpWeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl pallet_randomness_collective_flip::Config for Runtime {}
|
|
||||||
|
|
||||||
impl parachain_info::Config for Runtime {}
|
impl parachain_info::Config for Runtime {}
|
||||||
|
|
||||||
impl cumulus_pallet_aura_ext::Config for Runtime {}
|
impl cumulus_pallet_aura_ext::Config for Runtime {}
|
||||||
@@ -529,8 +492,8 @@ pub type XcmOriginToTransactDispatchOrigin = (
|
|||||||
// using `LocationToAccountId` and then turn that into the usual `Signed` origin. Useful for
|
// using `LocationToAccountId` and then turn that into the usual `Signed` origin. Useful for
|
||||||
// foreign chains who want to have a local sovereign account on this chain which they control.
|
// foreign chains who want to have a local sovereign account on this chain which they control.
|
||||||
SovereignSignedViaLocation<LocationToAccountId, Origin>,
|
SovereignSignedViaLocation<LocationToAccountId, Origin>,
|
||||||
// Native converter for Relay-chain (Parent) location; will converts to a `Relay` origin when
|
// Native converter for Relay-chain (Parent) location; will convert to a `Relay` origin when
|
||||||
// recognized.
|
// recognised.
|
||||||
RelayChainAsNative<RelayChainOrigin, Origin>,
|
RelayChainAsNative<RelayChainOrigin, Origin>,
|
||||||
// Native converter for sibling Parachains; will convert to a `SiblingPara` origin when
|
// Native converter for sibling Parachains; will convert to a `SiblingPara` origin when
|
||||||
// recognized.
|
// recognized.
|
||||||
@@ -557,19 +520,28 @@ match_type! {
|
|||||||
MultiLocation { parents: 1, interior: X1(Plurality { id: BodyId::Executive, .. }) }
|
MultiLocation { parents: 1, interior: X1(Plurality { id: BodyId::Executive, .. }) }
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
match_type! {
|
||||||
|
pub type ParentOrSiblings: impl Contains<MultiLocation> = {
|
||||||
|
MultiLocation { parents: 1, interior: Here } |
|
||||||
|
MultiLocation { parents: 1, interior: X1(_) }
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
pub type Barrier = (
|
pub type Barrier = (
|
||||||
TakeWeightCredit,
|
TakeWeightCredit,
|
||||||
AllowTopLevelPaidExecutionFrom<Everything>,
|
AllowTopLevelPaidExecutionFrom<Everything>,
|
||||||
|
// Parent and its exec plurality get free execution
|
||||||
AllowUnpaidExecutionFrom<ParentOrParentsExecutivePlurality>,
|
AllowUnpaidExecutionFrom<ParentOrParentsExecutivePlurality>,
|
||||||
// ^^^ Parent and its exec plurality get free execution
|
// Expected responses are OK.
|
||||||
|
AllowKnownQueryResponses<PolkadotXcm>,
|
||||||
|
// Subscriptions for version tracking are OK.
|
||||||
|
AllowSubscriptionsFrom<ParentOrSiblings>,
|
||||||
);
|
);
|
||||||
|
|
||||||
pub struct XcmConfig;
|
pub struct XcmConfig;
|
||||||
impl Config for XcmConfig {
|
impl Config for XcmConfig {
|
||||||
type Call = Call;
|
type Call = Call;
|
||||||
type XcmSender = XcmRouter;
|
type XcmSender = XcmRouter;
|
||||||
// How to withdraw and deposit an asset.
|
|
||||||
type AssetTransactor = AssetTransactors;
|
type AssetTransactor = AssetTransactors;
|
||||||
type OriginConverter = XcmOriginToTransactDispatchOrigin;
|
type OriginConverter = XcmOriginToTransactDispatchOrigin;
|
||||||
type IsReserve = NativeAsset;
|
type IsReserve = NativeAsset;
|
||||||
@@ -595,7 +567,7 @@ pub type LocalOriginToLocation = ();
|
|||||||
/// queues.
|
/// queues.
|
||||||
pub type XcmRouter = (
|
pub type XcmRouter = (
|
||||||
// Two routers - use UMP to communicate with the relay chain:
|
// Two routers - use UMP to communicate with the relay chain:
|
||||||
cumulus_primitives_utility::ParentAsUmp<ParachainSystem, ()>,
|
cumulus_primitives_utility::ParentAsUmp<ParachainSystem, PolkadotXcm>,
|
||||||
// ..and XCMP to communicate with the sibling chains.
|
// ..and XCMP to communicate with the sibling chains.
|
||||||
XcmpQueue,
|
XcmpQueue,
|
||||||
);
|
);
|
||||||
@@ -613,7 +585,6 @@ impl pallet_xcm::Config for Runtime {
|
|||||||
type LocationInverter = LocationInverter<Ancestry>;
|
type LocationInverter = LocationInverter<Ancestry>;
|
||||||
type Origin = Origin;
|
type Origin = Origin;
|
||||||
type Call = Call;
|
type Call = Call;
|
||||||
|
|
||||||
const VERSION_DISCOVERY_QUEUE_SIZE: u32 = 100;
|
const VERSION_DISCOVERY_QUEUE_SIZE: u32 = 100;
|
||||||
// Override for AdvertisedXcmVersion default
|
// Override for AdvertisedXcmVersion default
|
||||||
type AdvertisedXcmVersion = pallet_xcm::CurrentXcmVersion;
|
type AdvertisedXcmVersion = pallet_xcm::CurrentXcmVersion;
|
||||||
@@ -628,7 +599,7 @@ impl cumulus_pallet_xcmp_queue::Config for Runtime {
|
|||||||
type Event = Event;
|
type Event = Event;
|
||||||
type XcmExecutor = XcmExecutor<XcmConfig>;
|
type XcmExecutor = XcmExecutor<XcmConfig>;
|
||||||
type ChannelInfo = ParachainSystem;
|
type ChannelInfo = ParachainSystem;
|
||||||
type VersionWrapper = ();
|
type VersionWrapper = PolkadotXcm;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl cumulus_pallet_dmp_queue::Config for Runtime {
|
impl cumulus_pallet_dmp_queue::Config for Runtime {
|
||||||
@@ -702,6 +673,34 @@ impl pallet_asset_tx_payment::Config for Runtime {
|
|||||||
>;
|
>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
parameter_types! {
|
||||||
|
pub const ClassDeposit: Balance = UNITS; // 1 UNIT deposit to create asset class
|
||||||
|
pub const InstanceDeposit: Balance = UNITS / 100; // 1/100 UNIT deposit to create asset instance
|
||||||
|
pub const KeyLimit: u32 = 32; // Max 32 bytes per key
|
||||||
|
pub const ValueLimit: u32 = 64; // Max 64 bytes per value
|
||||||
|
pub const UniquesMetadataDepositBase: Balance = deposit(1, 129);
|
||||||
|
pub const AttributeDepositBase: Balance = deposit(1, 0);
|
||||||
|
pub const DepositPerByte: Balance = deposit(0, 1);
|
||||||
|
pub const UniquesStringLimit: u32 = 128;
|
||||||
|
}
|
||||||
|
|
||||||
|
impl pallet_uniques::Config for Runtime {
|
||||||
|
type Event = Event;
|
||||||
|
type ClassId = u32;
|
||||||
|
type InstanceId = u32;
|
||||||
|
type Currency = Balances;
|
||||||
|
type ForceOrigin = AssetsForceOrigin;
|
||||||
|
type ClassDeposit = ClassDeposit;
|
||||||
|
type InstanceDeposit = InstanceDeposit;
|
||||||
|
type MetadataDepositBase = UniquesMetadataDepositBase;
|
||||||
|
type AttributeDepositBase = AttributeDepositBase;
|
||||||
|
type DepositPerByte = DepositPerByte;
|
||||||
|
type StringLimit = UniquesStringLimit;
|
||||||
|
type KeyLimit = KeyLimit;
|
||||||
|
type ValueLimit = ValueLimit;
|
||||||
|
type WeightInfo = weights::pallet_uniques::WeightInfo<Runtime>;
|
||||||
|
}
|
||||||
|
|
||||||
// Create the runtime by composing the FRAME pallets that were previously configured.
|
// Create the runtime by composing the FRAME pallets that were previously configured.
|
||||||
construct_runtime!(
|
construct_runtime!(
|
||||||
pub enum Runtime where
|
pub enum Runtime where
|
||||||
@@ -714,7 +713,7 @@ construct_runtime!(
|
|||||||
ParachainSystem: cumulus_pallet_parachain_system::{
|
ParachainSystem: cumulus_pallet_parachain_system::{
|
||||||
Pallet, Call, Config, Storage, Inherent, Event<T>, ValidateUnsigned,
|
Pallet, Call, Config, Storage, Inherent, Event<T>, ValidateUnsigned,
|
||||||
} = 1,
|
} = 1,
|
||||||
RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage} = 2,
|
// RandomnessCollectiveFlip = 2 removed
|
||||||
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent} = 3,
|
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent} = 3,
|
||||||
ParachainInfo: parachain_info::{Pallet, Storage, Config} = 4,
|
ParachainInfo: parachain_info::{Pallet, Storage, Config} = 4,
|
||||||
|
|
||||||
@@ -723,7 +722,7 @@ construct_runtime!(
|
|||||||
TransactionPayment: pallet_transaction_payment::{Pallet, Storage} = 11,
|
TransactionPayment: pallet_transaction_payment::{Pallet, Storage} = 11,
|
||||||
AssetTxPayment: pallet_asset_tx_payment::{Pallet} = 12,
|
AssetTxPayment: pallet_asset_tx_payment::{Pallet} = 12,
|
||||||
|
|
||||||
// Collator support. the order of these 4 are important and shall not change.
|
// Collator support. the order of these 5 are important and shall not change.
|
||||||
Authorship: pallet_authorship::{Pallet, Call, Storage} = 20,
|
Authorship: pallet_authorship::{Pallet, Call, Storage} = 20,
|
||||||
CollatorSelection: pallet_collator_selection::{Pallet, Call, Storage, Event<T>, Config<T>} = 21,
|
CollatorSelection: pallet_collator_selection::{Pallet, Call, Storage, Event<T>, Config<T>} = 21,
|
||||||
Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>} = 22,
|
Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>} = 22,
|
||||||
@@ -732,7 +731,7 @@ construct_runtime!(
|
|||||||
|
|
||||||
// XCM helpers.
|
// XCM helpers.
|
||||||
XcmpQueue: cumulus_pallet_xcmp_queue::{Pallet, Call, Storage, Event<T>} = 30,
|
XcmpQueue: cumulus_pallet_xcmp_queue::{Pallet, Call, Storage, Event<T>} = 30,
|
||||||
PolkadotXcm: pallet_xcm::{Pallet, Call, Event<T>, Origin} = 31,
|
PolkadotXcm: pallet_xcm::{Pallet, Call, Storage, Event<T>, Origin} = 31,
|
||||||
CumulusXcm: cumulus_pallet_xcm::{Pallet, Event<T>, Origin} = 32,
|
CumulusXcm: cumulus_pallet_xcm::{Pallet, Event<T>, Origin} = 32,
|
||||||
DmpQueue: cumulus_pallet_dmp_queue::{Pallet, Call, Storage, Event<T>} = 33,
|
DmpQueue: cumulus_pallet_dmp_queue::{Pallet, Call, Storage, Event<T>} = 33,
|
||||||
|
|
||||||
@@ -741,7 +740,7 @@ construct_runtime!(
|
|||||||
Multisig: pallet_multisig::{Pallet, Call, Storage, Event<T>} = 41,
|
Multisig: pallet_multisig::{Pallet, Call, Storage, Event<T>} = 41,
|
||||||
Proxy: pallet_proxy::{Pallet, Call, Storage, Event<T>} = 42,
|
Proxy: pallet_proxy::{Pallet, Call, Storage, Event<T>} = 42,
|
||||||
|
|
||||||
// The main stage. To include pallet-assets-freezer and pallet-uniques.
|
// The main stage.
|
||||||
Assets: pallet_assets::{Pallet, Call, Storage, Event<T>} = 50,
|
Assets: pallet_assets::{Pallet, Call, Storage, Event<T>} = 50,
|
||||||
Uniques: pallet_uniques::{Pallet, Call, Storage, Event<T>} = 51,
|
Uniques: pallet_uniques::{Pallet, Call, Storage, Event<T>} = 51,
|
||||||
}
|
}
|
||||||
@@ -776,9 +775,19 @@ pub type Executive = frame_executive::Executive<
|
|||||||
frame_system::ChainContext<Runtime>,
|
frame_system::ChainContext<Runtime>,
|
||||||
Runtime,
|
Runtime,
|
||||||
AllPallets,
|
AllPallets,
|
||||||
(),
|
RemoveCollectiveFlip,
|
||||||
>;
|
>;
|
||||||
|
|
||||||
|
pub struct RemoveCollectiveFlip;
|
||||||
|
impl frame_support::traits::OnRuntimeUpgrade for RemoveCollectiveFlip {
|
||||||
|
fn on_runtime_upgrade() -> Weight {
|
||||||
|
use frame_support::storage::migration;
|
||||||
|
// Remove the storage value `RandomMaterial` from removed pallet `RandomnessCollectiveFlip`
|
||||||
|
migration::remove_storage_prefix(b"RandomnessCollectiveFlip", b"RandomMaterial", b"");
|
||||||
|
<Runtime as frame_system::Config>::DbWeight::get().writes(1)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl_runtime_apis! {
|
impl_runtime_apis! {
|
||||||
impl sp_consensus_aura::AuraApi<Block, AuraId> for Runtime {
|
impl sp_consensus_aura::AuraApi<Block, AuraId> for Runtime {
|
||||||
fn slot_duration() -> sp_consensus_aura::SlotDuration {
|
fn slot_duration() -> sp_consensus_aura::SlotDuration {
|
||||||
|
|||||||
@@ -1,11 +1,27 @@
|
|||||||
//! Autogenerated weights for pallet_assets
|
// Copyright 2021 Parity Technologies (UK) Ltd.
|
||||||
|
// This file is part of Cumulus.
|
||||||
|
|
||||||
|
// Cumulus is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
|
||||||
|
// Cumulus is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
//! Autogenerated weights for `pallet_assets`
|
||||||
//!
|
//!
|
||||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||||
//! DATE: 2021-05-31, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
//! DATE: 2021-10-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemine-dev"), DB CACHE: 128
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemine-dev"), DB CACHE: 128
|
||||||
|
|
||||||
// Executed Command:
|
// Executed Command:
|
||||||
// ./target/release/statemint
|
// ./target/release/polkadot-collator
|
||||||
// benchmark
|
// benchmark
|
||||||
// --chain=statemine-dev
|
// --chain=statemine-dev
|
||||||
// --execution=wasm
|
// --execution=wasm
|
||||||
@@ -15,145 +31,197 @@
|
|||||||
// --steps=50
|
// --steps=50
|
||||||
// --repeat=20
|
// --repeat=20
|
||||||
// --raw
|
// --raw
|
||||||
// --output=./runtime/statemine/src/weights/
|
// --header=./file_header.txt
|
||||||
|
// --output=./polkadot-parachains/statemine/src/weights
|
||||||
|
|
||||||
|
|
||||||
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
#![allow(unused_parens)]
|
#![allow(unused_parens)]
|
||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
|
|
||||||
use frame_support::{traits::Get, weights::Weight};
|
use frame_support::{traits::Get, weights::Weight};
|
||||||
use sp_std::marker::PhantomData;
|
use sp_std::marker::PhantomData;
|
||||||
|
|
||||||
/// Weight functions for pallet_assets.
|
/// Weight functions for `pallet_assets`.
|
||||||
pub struct WeightInfo<T>(PhantomData<T>);
|
pub struct WeightInfo<T>(PhantomData<T>);
|
||||||
impl<T: frame_system::Config> pallet_assets::WeightInfo for WeightInfo<T> {
|
impl<T: frame_system::Config> pallet_assets::WeightInfo for WeightInfo<T> {
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
fn create() -> Weight {
|
fn create() -> Weight {
|
||||||
(44_224_000 as Weight)
|
(41_413_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
fn force_create() -> Weight {
|
fn force_create() -> Weight {
|
||||||
(22_533_000 as Weight)
|
(21_199_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
fn destroy(c: u32, s: u32, a: u32) -> Weight {
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
|
// Storage: Assets Account (r:5002 w:5001)
|
||||||
|
// Storage: System Account (r:5000 w:5000)
|
||||||
|
// Storage: Assets Metadata (r:1 w:0)
|
||||||
|
// Storage: Assets Approvals (r:501 w:500)
|
||||||
|
fn destroy(c: u32, s: u32, a: u32, ) -> Weight {
|
||||||
(0 as Weight)
|
(0 as Weight)
|
||||||
// Standard Error: 37_000
|
// Standard Error: 40_000
|
||||||
.saturating_add((21_529_000 as Weight).saturating_mul(c as Weight))
|
.saturating_add((19_864_000 as Weight).saturating_mul(c as Weight))
|
||||||
// Standard Error: 37_000
|
// Standard Error: 40_000
|
||||||
.saturating_add((28_905_000 as Weight).saturating_mul(s as Weight))
|
.saturating_add((25_737_000 as Weight).saturating_mul(s as Weight))
|
||||||
// Standard Error: 377_000
|
// Standard Error: 408_000
|
||||||
.saturating_add((3_745_000 as Weight).saturating_mul(a as Weight))
|
.saturating_add((27_884_000 as Weight).saturating_mul(a as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
.saturating_add(T::DbWeight::get().reads(5 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(c as Weight)))
|
.saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(c as Weight)))
|
||||||
.saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(s as Weight)))
|
.saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(s as Weight)))
|
||||||
|
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(a as Weight)))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(c as Weight)))
|
.saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(c as Weight)))
|
||||||
.saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(s as Weight)))
|
.saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(s as Weight)))
|
||||||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(a as Weight)))
|
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(a as Weight)))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
|
// Storage: Assets Account (r:1 w:1)
|
||||||
fn mint() -> Weight {
|
fn mint() -> Weight {
|
||||||
(49_078_000 as Weight)
|
(47_351_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
|
// Storage: Assets Account (r:1 w:1)
|
||||||
fn burn() -> Weight {
|
fn burn() -> Weight {
|
||||||
(55_886_000 as Weight)
|
(53_970_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
|
// Storage: Assets Account (r:2 w:2)
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
fn transfer() -> Weight {
|
fn transfer() -> Weight {
|
||||||
(84_857_000 as Weight)
|
(81_681_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
|
// Storage: Assets Account (r:2 w:2)
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
fn transfer_keep_alive() -> Weight {
|
fn transfer_keep_alive() -> Weight {
|
||||||
(71_330_000 as Weight)
|
(69_302_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
|
// Storage: Assets Account (r:2 w:2)
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
fn force_transfer() -> Weight {
|
fn force_transfer() -> Weight {
|
||||||
(85_127_000 as Weight)
|
(81_972_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:0)
|
||||||
|
// Storage: Assets Account (r:1 w:1)
|
||||||
fn freeze() -> Weight {
|
fn freeze() -> Weight {
|
||||||
(31_403_000 as Weight)
|
(32_099_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:0)
|
||||||
|
// Storage: Assets Account (r:1 w:1)
|
||||||
fn thaw() -> Weight {
|
fn thaw() -> Weight {
|
||||||
(31_250_000 as Weight)
|
(32_431_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
fn freeze_asset() -> Weight {
|
fn freeze_asset() -> Weight {
|
||||||
(22_097_000 as Weight)
|
(24_419_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
fn thaw_asset() -> Weight {
|
fn thaw_asset() -> Weight {
|
||||||
(22_245_000 as Weight)
|
(24_542_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
|
// Storage: Assets Metadata (r:1 w:0)
|
||||||
fn transfer_ownership() -> Weight {
|
fn transfer_ownership() -> Weight {
|
||||||
(25_479_000 as Weight)
|
(27_113_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
fn set_team() -> Weight {
|
fn set_team() -> Weight {
|
||||||
(22_271_000 as Weight)
|
(24_634_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
fn set_metadata(_n: u32, s: u32) -> Weight {
|
// Storage: Assets Asset (r:1 w:0)
|
||||||
(50_315_000 as Weight)
|
// Storage: Assets Metadata (r:1 w:1)
|
||||||
|
fn set_metadata(_n: u32, s: u32, ) -> Weight {
|
||||||
|
(49_434_000 as Weight)
|
||||||
|
// Standard Error: 7_000
|
||||||
|
.saturating_add((19_000 as Weight).saturating_mul(s as Weight))
|
||||||
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:0)
|
||||||
|
// Storage: Assets Metadata (r:1 w:1)
|
||||||
|
fn clear_metadata() -> Weight {
|
||||||
|
(48_070_000 as Weight)
|
||||||
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:0)
|
||||||
|
// Storage: Assets Metadata (r:1 w:1)
|
||||||
|
fn force_set_metadata(_n: u32, s: u32, ) -> Weight {
|
||||||
|
(26_297_000 as Weight)
|
||||||
// Standard Error: 0
|
// Standard Error: 0
|
||||||
.saturating_add((8_000 as Weight).saturating_mul(s as Weight))
|
.saturating_add((8_000 as Weight).saturating_mul(s as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
fn clear_metadata() -> Weight {
|
// Storage: Assets Asset (r:1 w:0)
|
||||||
(48_134_000 as Weight)
|
// Storage: Assets Metadata (r:1 w:1)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
|
||||||
}
|
|
||||||
fn force_set_metadata(_n: u32, s: u32) -> Weight {
|
|
||||||
(25_933_000 as Weight)
|
|
||||||
// Standard Error: 0
|
|
||||||
.saturating_add((7_000 as Weight).saturating_mul(s as Weight))
|
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
|
||||||
}
|
|
||||||
fn force_clear_metadata() -> Weight {
|
fn force_clear_metadata() -> Weight {
|
||||||
(49_243_000 as Weight)
|
(47_220_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
fn force_asset_status() -> Weight {
|
fn force_asset_status() -> Weight {
|
||||||
(22_305_000 as Weight)
|
(22_869_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
|
// Storage: Assets Approvals (r:1 w:1)
|
||||||
fn approve_transfer() -> Weight {
|
fn approve_transfer() -> Weight {
|
||||||
(48_885_000 as Weight)
|
(55_872_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Approvals (r:1 w:1)
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
|
// Storage: Assets Account (r:2 w:2)
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
fn transfer_approved() -> Weight {
|
fn transfer_approved() -> Weight {
|
||||||
(108_026_000 as Weight)
|
(107_100_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(5 as Weight))
|
.saturating_add(T::DbWeight::get().reads(5 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(5 as Weight))
|
.saturating_add(T::DbWeight::get().writes(5 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
|
// Storage: Assets Approvals (r:1 w:1)
|
||||||
fn cancel_approval() -> Weight {
|
fn cancel_approval() -> Weight {
|
||||||
(48_943_000 as Weight)
|
(56_307_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
|
||||||
}
|
|
||||||
fn force_cancel_approval() -> Weight {
|
|
||||||
(56_914_000 as Weight)
|
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
|
// Storage: Assets Approvals (r:1 w:1)
|
||||||
|
fn force_cancel_approval() -> Weight {
|
||||||
|
(58_691_000 as Weight)
|
||||||
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,27 @@
|
|||||||
//! Autogenerated weights for pallet_balances
|
// Copyright 2021 Parity Technologies (UK) Ltd.
|
||||||
|
// This file is part of Cumulus.
|
||||||
|
|
||||||
|
// Cumulus is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
|
||||||
|
// Cumulus is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
//! Autogenerated weights for `pallet_balances`
|
||||||
//!
|
//!
|
||||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||||
//! DATE: 2021-05-31, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
//! DATE: 2021-10-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemine-dev"), DB CACHE: 128
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemine-dev"), DB CACHE: 128
|
||||||
|
|
||||||
// Executed Command:
|
// Executed Command:
|
||||||
// ./target/release/statemint
|
// ./target/release/polkadot-collator
|
||||||
// benchmark
|
// benchmark
|
||||||
// --chain=statemine-dev
|
// --chain=statemine-dev
|
||||||
// --execution=wasm
|
// --execution=wasm
|
||||||
@@ -15,50 +31,59 @@
|
|||||||
// --steps=50
|
// --steps=50
|
||||||
// --repeat=20
|
// --repeat=20
|
||||||
// --raw
|
// --raw
|
||||||
// --output=./runtime/statemine/src/weights/
|
// --header=./file_header.txt
|
||||||
|
// --output=./polkadot-parachains/statemine/src/weights
|
||||||
|
|
||||||
|
|
||||||
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
#![allow(unused_parens)]
|
#![allow(unused_parens)]
|
||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
|
|
||||||
use frame_support::{traits::Get, weights::Weight};
|
use frame_support::{traits::Get, weights::Weight};
|
||||||
use sp_std::marker::PhantomData;
|
use sp_std::marker::PhantomData;
|
||||||
|
|
||||||
/// Weight functions for pallet_balances.
|
/// Weight functions for `pallet_balances`.
|
||||||
pub struct WeightInfo<T>(PhantomData<T>);
|
pub struct WeightInfo<T>(PhantomData<T>);
|
||||||
impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
fn transfer() -> Weight {
|
fn transfer() -> Weight {
|
||||||
(79_381_000 as Weight)
|
(70_228_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
fn transfer_keep_alive() -> Weight {
|
fn transfer_keep_alive() -> Weight {
|
||||||
(58_057_000 as Weight)
|
(53_444_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
fn set_balance_creating() -> Weight {
|
fn set_balance_creating() -> Weight {
|
||||||
(28_834_000 as Weight)
|
(28_370_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
fn set_balance_killing() -> Weight {
|
fn set_balance_killing() -> Weight {
|
||||||
(36_213_000 as Weight)
|
(34_938_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: System Account (r:2 w:2)
|
||||||
fn force_transfer() -> Weight {
|
fn force_transfer() -> Weight {
|
||||||
(78_526_000 as Weight)
|
(71_481_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
fn transfer_all() -> Weight {
|
fn transfer_all() -> Weight {
|
||||||
(84_170_000 as Weight)
|
(66_297_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
// Storage: System Account (r:1 w:1)
|
// Storage: System Account (r:1 w:1)
|
||||||
fn force_unreserve() -> Weight {
|
fn force_unreserve() -> Weight {
|
||||||
(27_766_000 as Weight)
|
(26_751_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,27 @@
|
|||||||
//! Autogenerated weights for pallet_collator_selection
|
// Copyright 2021 Parity Technologies (UK) Ltd.
|
||||||
|
// This file is part of Cumulus.
|
||||||
|
|
||||||
|
// Cumulus is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
|
||||||
|
// Cumulus is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
//! Autogenerated weights for `pallet_collator_selection`
|
||||||
//!
|
//!
|
||||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||||
//! DATE: 2021-05-31, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
//! DATE: 2021-10-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemine-dev"), DB CACHE: 128
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemine-dev"), DB CACHE: 128
|
||||||
|
|
||||||
// Executed Command:
|
// Executed Command:
|
||||||
// ./target/release/statemint
|
// ./target/release/polkadot-collator
|
||||||
// benchmark
|
// benchmark
|
||||||
// --chain=statemine-dev
|
// --chain=statemine-dev
|
||||||
// --execution=wasm
|
// --execution=wasm
|
||||||
@@ -15,57 +31,80 @@
|
|||||||
// --steps=50
|
// --steps=50
|
||||||
// --repeat=20
|
// --repeat=20
|
||||||
// --raw
|
// --raw
|
||||||
// --output=./runtime/statemine/src/weights/
|
// --header=./file_header.txt
|
||||||
|
// --output=./polkadot-parachains/statemine/src/weights
|
||||||
|
|
||||||
|
|
||||||
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
#![allow(unused_parens)]
|
#![allow(unused_parens)]
|
||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
|
|
||||||
use frame_support::{traits::Get, weights::Weight};
|
use frame_support::{traits::Get, weights::Weight};
|
||||||
use sp_std::marker::PhantomData;
|
use sp_std::marker::PhantomData;
|
||||||
|
|
||||||
/// Weight functions for pallet_collator_selection.
|
/// Weight functions for `pallet_collator_selection`.
|
||||||
pub struct WeightInfo<T>(PhantomData<T>);
|
pub struct WeightInfo<T>(PhantomData<T>);
|
||||||
impl<T: frame_system::Config> pallet_collator_selection::WeightInfo for WeightInfo<T> {
|
impl<T: frame_system::Config> pallet_collator_selection::WeightInfo for WeightInfo<T> {
|
||||||
fn set_invulnerables(b: u32) -> Weight {
|
// Storage: CollatorSelection Invulnerables (r:0 w:1)
|
||||||
(18_481_000 as Weight)
|
fn set_invulnerables(b: u32, ) -> Weight {
|
||||||
|
(17_178_000 as Weight)
|
||||||
// Standard Error: 0
|
// Standard Error: 0
|
||||||
.saturating_add((67_000 as Weight).saturating_mul(b as Weight))
|
.saturating_add((48_000 as Weight).saturating_mul(b as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: CollatorSelection DesiredCandidates (r:0 w:1)
|
||||||
fn set_desired_candidates() -> Weight {
|
fn set_desired_candidates() -> Weight {
|
||||||
(16_376_000 as Weight).saturating_add(T::DbWeight::get().writes(1 as Weight))
|
(15_237_000 as Weight)
|
||||||
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: CollatorSelection CandidacyBond (r:0 w:1)
|
||||||
fn set_candidacy_bond() -> Weight {
|
fn set_candidacy_bond() -> Weight {
|
||||||
(17_031_000 as Weight).saturating_add(T::DbWeight::get().writes(1 as Weight))
|
(15_968_000 as Weight)
|
||||||
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
fn register_as_candidate(c: u32) -> Weight {
|
// Storage: CollatorSelection Candidates (r:1 w:1)
|
||||||
(72_345_000 as Weight)
|
// Storage: CollatorSelection DesiredCandidates (r:1 w:0)
|
||||||
|
// Storage: CollatorSelection Invulnerables (r:1 w:0)
|
||||||
|
// Storage: Session NextKeys (r:1 w:0)
|
||||||
|
// Storage: CollatorSelection CandidacyBond (r:1 w:0)
|
||||||
|
// Storage: CollatorSelection LastAuthoredBlock (r:0 w:1)
|
||||||
|
fn register_as_candidate(c: u32, ) -> Weight {
|
||||||
|
(69_104_000 as Weight)
|
||||||
// Standard Error: 0
|
// Standard Error: 0
|
||||||
.saturating_add((197_000 as Weight).saturating_mul(c as Weight))
|
.saturating_add((154_000 as Weight).saturating_mul(c as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
.saturating_add(T::DbWeight::get().reads(5 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
fn leave_intent(c: u32) -> Weight {
|
// Storage: CollatorSelection Candidates (r:1 w:1)
|
||||||
(55_446_000 as Weight)
|
// Storage: CollatorSelection LastAuthoredBlock (r:0 w:1)
|
||||||
// Standard Error: 0
|
fn leave_intent(c: u32, ) -> Weight {
|
||||||
.saturating_add((153_000 as Weight).saturating_mul(c as Weight))
|
(65_460_000 as Weight)
|
||||||
|
// Standard Error: 1_000
|
||||||
|
.saturating_add((209_000 as Weight).saturating_mul(c as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: System Account (r:2 w:2)
|
||||||
|
// Storage: System BlockWeight (r:1 w:1)
|
||||||
|
// Storage: CollatorSelection LastAuthoredBlock (r:0 w:1)
|
||||||
fn note_author() -> Weight {
|
fn note_author() -> Weight {
|
||||||
(71_828_000 as Weight)
|
(62_879_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
||||||
}
|
}
|
||||||
fn new_session(r: u32, c: u32) -> Weight {
|
// Storage: CollatorSelection Candidates (r:1 w:1)
|
||||||
|
// Storage: CollatorSelection LastAuthoredBlock (r:1000 w:1)
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
|
// Storage: CollatorSelection Invulnerables (r:1 w:0)
|
||||||
|
// Storage: System BlockWeight (r:1 w:1)
|
||||||
|
fn new_session(r: u32, c: u32, ) -> Weight {
|
||||||
(0 as Weight)
|
(0 as Weight)
|
||||||
// Standard Error: 1_004_000
|
// Standard Error: 4_304_000
|
||||||
.saturating_add((110_066_000 as Weight).saturating_mul(r as Weight))
|
.saturating_add((24_161_000 as Weight).saturating_mul(r as Weight))
|
||||||
// Standard Error: 1_004_000
|
// Standard Error: 4_304_000
|
||||||
.saturating_add((152_035_000 as Weight).saturating_mul(c as Weight))
|
.saturating_add((112_936_000 as Weight).saturating_mul(c as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(r as Weight)))
|
|
||||||
.saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(c as Weight)))
|
.saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(c as Weight)))
|
||||||
.saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(r as Weight)))
|
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(r as Weight)))
|
||||||
.saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(c as Weight)))
|
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(c as Weight)))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,27 @@
|
|||||||
//! Autogenerated weights for pallet_multisig
|
// Copyright 2021 Parity Technologies (UK) Ltd.
|
||||||
|
// This file is part of Cumulus.
|
||||||
|
|
||||||
|
// Cumulus is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
|
||||||
|
// Cumulus is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
//! Autogenerated weights for `pallet_multisig`
|
||||||
//!
|
//!
|
||||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||||
//! DATE: 2021-05-31, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
//! DATE: 2021-10-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemine-dev"), DB CACHE: 128
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemine-dev"), DB CACHE: 128
|
||||||
|
|
||||||
// Executed Command:
|
// Executed Command:
|
||||||
// ./target/release/statemint
|
// ./target/release/polkadot-collator
|
||||||
// benchmark
|
// benchmark
|
||||||
// --chain=statemine-dev
|
// --chain=statemine-dev
|
||||||
// --execution=wasm
|
// --execution=wasm
|
||||||
@@ -15,92 +31,115 @@
|
|||||||
// --steps=50
|
// --steps=50
|
||||||
// --repeat=20
|
// --repeat=20
|
||||||
// --raw
|
// --raw
|
||||||
// --output=./runtime/statemine/src/weights/
|
// --header=./file_header.txt
|
||||||
|
// --output=./polkadot-parachains/statemine/src/weights
|
||||||
|
|
||||||
|
|
||||||
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
#![allow(unused_parens)]
|
#![allow(unused_parens)]
|
||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
|
|
||||||
use frame_support::{traits::Get, weights::Weight};
|
use frame_support::{traits::Get, weights::Weight};
|
||||||
use sp_std::marker::PhantomData;
|
use sp_std::marker::PhantomData;
|
||||||
|
|
||||||
/// Weight functions for pallet_multisig.
|
/// Weight functions for `pallet_multisig`.
|
||||||
pub struct WeightInfo<T>(PhantomData<T>);
|
pub struct WeightInfo<T>(PhantomData<T>);
|
||||||
impl<T: frame_system::Config> pallet_multisig::WeightInfo for WeightInfo<T> {
|
impl<T: frame_system::Config> pallet_multisig::WeightInfo for WeightInfo<T> {
|
||||||
fn as_multi_threshold_1(z: u32) -> Weight {
|
fn as_multi_threshold_1(z: u32, ) -> Weight {
|
||||||
(15_911_000 as Weight)
|
(20_620_000 as Weight)
|
||||||
// Standard Error: 0
|
// Standard Error: 0
|
||||||
.saturating_add((1_000 as Weight).saturating_mul(z as Weight))
|
.saturating_add((1_000 as Weight).saturating_mul(z as Weight))
|
||||||
}
|
}
|
||||||
fn as_multi_create(s: u32, z: u32) -> Weight {
|
// Storage: Multisig Multisigs (r:1 w:1)
|
||||||
(55_326_000 as Weight)
|
// Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
|
||||||
|
fn as_multi_create(s: u32, z: u32, ) -> Weight {
|
||||||
|
(51_332_000 as Weight)
|
||||||
// Standard Error: 0
|
// Standard Error: 0
|
||||||
.saturating_add((133_000 as Weight).saturating_mul(s as Weight))
|
.saturating_add((160_000 as Weight).saturating_mul(s as Weight))
|
||||||
// Standard Error: 0
|
// Standard Error: 0
|
||||||
.saturating_add((1_000 as Weight).saturating_mul(z as Weight))
|
.saturating_add((2_000 as Weight).saturating_mul(z as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
fn as_multi_create_store(s: u32, z: u32) -> Weight {
|
// Storage: Multisig Multisigs (r:1 w:1)
|
||||||
(62_423_000 as Weight)
|
// Storage: Multisig Calls (r:1 w:1)
|
||||||
|
// Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
|
||||||
|
fn as_multi_create_store(s: u32, z: u32, ) -> Weight {
|
||||||
|
(57_557_000 as Weight)
|
||||||
|
// Standard Error: 1_000
|
||||||
|
.saturating_add((161_000 as Weight).saturating_mul(s as Weight))
|
||||||
// Standard Error: 0
|
// Standard Error: 0
|
||||||
.saturating_add((133_000 as Weight).saturating_mul(s as Weight))
|
.saturating_add((2_000 as Weight).saturating_mul(z as Weight))
|
||||||
// Standard Error: 0
|
|
||||||
.saturating_add((3_000 as Weight).saturating_mul(z as Weight))
|
|
||||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
fn as_multi_approve(s: u32, z: u32) -> Weight {
|
// Storage: Multisig Multisigs (r:1 w:1)
|
||||||
(32_430_000 as Weight)
|
fn as_multi_approve(s: u32, z: u32, ) -> Weight {
|
||||||
|
(32_292_000 as Weight)
|
||||||
|
// Standard Error: 1_000
|
||||||
|
.saturating_add((157_000 as Weight).saturating_mul(s as Weight))
|
||||||
// Standard Error: 0
|
// Standard Error: 0
|
||||||
.saturating_add((148_000 as Weight).saturating_mul(s as Weight))
|
.saturating_add((2_000 as Weight).saturating_mul(z as Weight))
|
||||||
// Standard Error: 0
|
|
||||||
.saturating_add((1_000 as Weight).saturating_mul(z as Weight))
|
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
fn as_multi_approve_store(s: u32, z: u32) -> Weight {
|
// Storage: Multisig Multisigs (r:1 w:1)
|
||||||
(59_789_000 as Weight)
|
// Storage: Multisig Calls (r:1 w:1)
|
||||||
// Standard Error: 0
|
fn as_multi_approve_store(s: u32, z: u32, ) -> Weight {
|
||||||
.saturating_add((165_000 as Weight).saturating_mul(s as Weight))
|
(54_871_000 as Weight)
|
||||||
|
// Standard Error: 1_000
|
||||||
|
.saturating_add((169_000 as Weight).saturating_mul(s as Weight))
|
||||||
// Standard Error: 0
|
// Standard Error: 0
|
||||||
.saturating_add((3_000 as Weight).saturating_mul(z as Weight))
|
.saturating_add((3_000 as Weight).saturating_mul(z as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
fn as_multi_complete(s: u32, z: u32) -> Weight {
|
// Storage: Multisig Multisigs (r:1 w:1)
|
||||||
(80_926_000 as Weight)
|
// Storage: Multisig Calls (r:1 w:1)
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
|
fn as_multi_complete(s: u32, z: u32, ) -> Weight {
|
||||||
|
(70_826_000 as Weight)
|
||||||
|
// Standard Error: 1_000
|
||||||
|
.saturating_add((255_000 as Weight).saturating_mul(s as Weight))
|
||||||
// Standard Error: 0
|
// Standard Error: 0
|
||||||
.saturating_add((276_000 as Weight).saturating_mul(s as Weight))
|
.saturating_add((4_000 as Weight).saturating_mul(z as Weight))
|
||||||
// Standard Error: 0
|
|
||||||
.saturating_add((5_000 as Weight).saturating_mul(z as Weight))
|
|
||||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||||
}
|
}
|
||||||
fn approve_as_multi_create(s: u32) -> Weight {
|
// Storage: Multisig Multisigs (r:1 w:1)
|
||||||
(54_860_000 as Weight)
|
// Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
|
||||||
|
fn approve_as_multi_create(s: u32, ) -> Weight {
|
||||||
|
(51_385_000 as Weight)
|
||||||
// Standard Error: 0
|
// Standard Error: 0
|
||||||
.saturating_add((134_000 as Weight).saturating_mul(s as Weight))
|
.saturating_add((160_000 as Weight).saturating_mul(s as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
fn approve_as_multi_approve(s: u32) -> Weight {
|
// Storage: Multisig Multisigs (r:1 w:1)
|
||||||
(31_924_000 as Weight)
|
// Storage: Multisig Calls (r:1 w:0)
|
||||||
|
fn approve_as_multi_approve(s: u32, ) -> Weight {
|
||||||
|
(30_929_000 as Weight)
|
||||||
// Standard Error: 0
|
// Standard Error: 0
|
||||||
.saturating_add((154_000 as Weight).saturating_mul(s as Weight))
|
.saturating_add((161_000 as Weight).saturating_mul(s as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
fn approve_as_multi_complete(s: u32) -> Weight {
|
// Storage: Multisig Multisigs (r:1 w:1)
|
||||||
(154_001_000 as Weight)
|
// Storage: Multisig Calls (r:1 w:1)
|
||||||
// Standard Error: 0
|
// Storage: System Account (r:1 w:1)
|
||||||
.saturating_add((281_000 as Weight).saturating_mul(s as Weight))
|
fn approve_as_multi_complete(s: u32, ) -> Weight {
|
||||||
|
(106_393_000 as Weight)
|
||||||
|
// Standard Error: 1_000
|
||||||
|
.saturating_add((257_000 as Weight).saturating_mul(s as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||||
}
|
}
|
||||||
fn cancel_as_multi(s: u32) -> Weight {
|
// Storage: Multisig Multisigs (r:1 w:1)
|
||||||
(103_770_000 as Weight)
|
// Storage: Multisig Calls (r:1 w:1)
|
||||||
// Standard Error: 0
|
fn cancel_as_multi(s: u32, ) -> Weight {
|
||||||
.saturating_add((130_000 as Weight).saturating_mul(s as Weight))
|
(82_660_000 as Weight)
|
||||||
|
// Standard Error: 1_000
|
||||||
|
.saturating_add((155_000 as Weight).saturating_mul(s as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,27 @@
|
|||||||
//! Autogenerated weights for pallet_proxy
|
// Copyright 2021 Parity Technologies (UK) Ltd.
|
||||||
|
// This file is part of Cumulus.
|
||||||
|
|
||||||
|
// Cumulus is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
|
||||||
|
// Cumulus is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
//! Autogenerated weights for `pallet_proxy`
|
||||||
//!
|
//!
|
||||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||||
//! DATE: 2021-05-31, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
//! DATE: 2021-10-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemine-dev"), DB CACHE: 128
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemine-dev"), DB CACHE: 128
|
||||||
|
|
||||||
// Executed Command:
|
// Executed Command:
|
||||||
// ./target/release/statemint
|
// ./target/release/polkadot-collator
|
||||||
// benchmark
|
// benchmark
|
||||||
// --chain=statemine-dev
|
// --chain=statemine-dev
|
||||||
// --execution=wasm
|
// --execution=wasm
|
||||||
@@ -15,91 +31,111 @@
|
|||||||
// --steps=50
|
// --steps=50
|
||||||
// --repeat=20
|
// --repeat=20
|
||||||
// --raw
|
// --raw
|
||||||
// --output=./runtime/statemine/src/weights/
|
// --header=./file_header.txt
|
||||||
|
// --output=./polkadot-parachains/statemine/src/weights
|
||||||
|
|
||||||
|
|
||||||
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
#![allow(unused_parens)]
|
#![allow(unused_parens)]
|
||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
|
|
||||||
use frame_support::{traits::Get, weights::Weight};
|
use frame_support::{traits::Get, weights::Weight};
|
||||||
use sp_std::marker::PhantomData;
|
use sp_std::marker::PhantomData;
|
||||||
|
|
||||||
/// Weight functions for pallet_proxy.
|
/// Weight functions for `pallet_proxy`.
|
||||||
pub struct WeightInfo<T>(PhantomData<T>);
|
pub struct WeightInfo<T>(PhantomData<T>);
|
||||||
impl<T: frame_system::Config> pallet_proxy::WeightInfo for WeightInfo<T> {
|
impl<T: frame_system::Config> pallet_proxy::WeightInfo for WeightInfo<T> {
|
||||||
fn proxy(p: u32) -> Weight {
|
// Storage: Proxy Proxies (r:1 w:0)
|
||||||
(27_318_000 as Weight)
|
fn proxy(p: u32, ) -> Weight {
|
||||||
// Standard Error: 1_000
|
(23_732_000 as Weight)
|
||||||
.saturating_add((208_000 as Weight).saturating_mul(p as Weight))
|
// Standard Error: 2_000
|
||||||
|
.saturating_add((136_000 as Weight).saturating_mul(p as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
}
|
}
|
||||||
fn proxy_announced(a: u32, p: u32) -> Weight {
|
// Storage: Proxy Proxies (r:1 w:0)
|
||||||
(60_665_000 as Weight)
|
// Storage: Proxy Announcements (r:1 w:1)
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
|
fn proxy_announced(a: u32, p: u32, ) -> Weight {
|
||||||
|
(53_185_000 as Weight)
|
||||||
// Standard Error: 2_000
|
// Standard Error: 2_000
|
||||||
.saturating_add((677_000 as Weight).saturating_mul(a as Weight))
|
.saturating_add((486_000 as Weight).saturating_mul(a as Weight))
|
||||||
// Standard Error: 2_000
|
// Standard Error: 2_000
|
||||||
.saturating_add((197_000 as Weight).saturating_mul(p as Weight))
|
.saturating_add((144_000 as Weight).saturating_mul(p as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
fn remove_announcement(a: u32, p: u32) -> Weight {
|
// Storage: Proxy Announcements (r:1 w:1)
|
||||||
(39_455_000 as Weight)
|
// Storage: System Account (r:1 w:1)
|
||||||
|
fn remove_announcement(a: u32, p: u32, ) -> Weight {
|
||||||
|
(35_863_000 as Weight)
|
||||||
// Standard Error: 2_000
|
// Standard Error: 2_000
|
||||||
.saturating_add((687_000 as Weight).saturating_mul(a as Weight))
|
.saturating_add((499_000 as Weight).saturating_mul(a as Weight))
|
||||||
// Standard Error: 2_000
|
// Standard Error: 2_000
|
||||||
.saturating_add((3_000 as Weight).saturating_mul(p as Weight))
|
.saturating_add((12_000 as Weight).saturating_mul(p as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
fn reject_announcement(a: u32, p: u32) -> Weight {
|
// Storage: Proxy Announcements (r:1 w:1)
|
||||||
(39_411_000 as Weight)
|
// Storage: System Account (r:1 w:1)
|
||||||
|
fn reject_announcement(a: u32, p: u32, ) -> Weight {
|
||||||
|
(35_723_000 as Weight)
|
||||||
|
// Standard Error: 1_000
|
||||||
|
.saturating_add((500_000 as Weight).saturating_mul(a as Weight))
|
||||||
// Standard Error: 2_000
|
// Standard Error: 2_000
|
||||||
.saturating_add((686_000 as Weight).saturating_mul(a as Weight))
|
.saturating_add((19_000 as Weight).saturating_mul(p as Weight))
|
||||||
// Standard Error: 2_000
|
|
||||||
.saturating_add((3_000 as Weight).saturating_mul(p as Weight))
|
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
fn announce(a: u32, p: u32) -> Weight {
|
// Storage: Proxy Proxies (r:1 w:0)
|
||||||
(54_386_000 as Weight)
|
// Storage: Proxy Announcements (r:1 w:1)
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
|
fn announce(a: u32, p: u32, ) -> Weight {
|
||||||
|
(50_128_000 as Weight)
|
||||||
// Standard Error: 2_000
|
// Standard Error: 2_000
|
||||||
.saturating_add((677_000 as Weight).saturating_mul(a as Weight))
|
.saturating_add((481_000 as Weight).saturating_mul(a as Weight))
|
||||||
// Standard Error: 2_000
|
// Standard Error: 2_000
|
||||||
.saturating_add((194_000 as Weight).saturating_mul(p as Weight))
|
.saturating_add((141_000 as Weight).saturating_mul(p as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
fn add_proxy(p: u32) -> Weight {
|
// Storage: Proxy Proxies (r:1 w:1)
|
||||||
(37_411_000 as Weight)
|
fn add_proxy(p: u32, ) -> Weight {
|
||||||
|
(42_805_000 as Weight)
|
||||||
|
// Standard Error: 4_000
|
||||||
|
.saturating_add((173_000 as Weight).saturating_mul(p as Weight))
|
||||||
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
|
}
|
||||||
|
// Storage: Proxy Proxies (r:1 w:1)
|
||||||
|
fn remove_proxy(p: u32, ) -> Weight {
|
||||||
|
(34_597_000 as Weight)
|
||||||
|
// Standard Error: 4_000
|
||||||
|
.saturating_add((218_000 as Weight).saturating_mul(p as Weight))
|
||||||
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
|
}
|
||||||
|
// Storage: Proxy Proxies (r:1 w:1)
|
||||||
|
fn remove_proxies(p: u32, ) -> Weight {
|
||||||
|
(33_968_000 as Weight)
|
||||||
// Standard Error: 2_000
|
// Standard Error: 2_000
|
||||||
.saturating_add((298_000 as Weight).saturating_mul(p as Weight))
|
.saturating_add((121_000 as Weight).saturating_mul(p as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
fn remove_proxy(p: u32) -> Weight {
|
// Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
|
||||||
(36_658_000 as Weight)
|
// Storage: Proxy Proxies (r:1 w:1)
|
||||||
// Standard Error: 2_000
|
fn anonymous(p: u32, ) -> Weight {
|
||||||
.saturating_add((332_000 as Weight).saturating_mul(p as Weight))
|
(48_471_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
// Standard Error: 3_000
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add((5_000 as Weight).saturating_mul(p as Weight))
|
||||||
}
|
|
||||||
fn remove_proxies(p: u32) -> Weight {
|
|
||||||
(34_893_000 as Weight)
|
|
||||||
// Standard Error: 1_000
|
|
||||||
.saturating_add((209_000 as Weight).saturating_mul(p as Weight))
|
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
|
||||||
}
|
|
||||||
fn anonymous(p: u32) -> Weight {
|
|
||||||
(51_243_000 as Weight)
|
|
||||||
// Standard Error: 1_000
|
|
||||||
.saturating_add((44_000 as Weight).saturating_mul(p as Weight))
|
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
fn kill_anonymous(p: u32) -> Weight {
|
// Storage: Proxy Proxies (r:1 w:1)
|
||||||
(37_188_000 as Weight)
|
fn kill_anonymous(p: u32, ) -> Weight {
|
||||||
// Standard Error: 1_000
|
(35_705_000 as Weight)
|
||||||
.saturating_add((208_000 as Weight).saturating_mul(p as Weight))
|
// Standard Error: 2_000
|
||||||
|
.saturating_add((127_000 as Weight).saturating_mul(p as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,23 @@
|
|||||||
//! Autogenerated weights for pallet_session
|
// Copyright 2021 Parity Technologies (UK) Ltd.
|
||||||
|
// This file is part of Cumulus.
|
||||||
|
|
||||||
|
// Cumulus is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
|
||||||
|
// Cumulus is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
//! Autogenerated weights for `pallet_session`
|
||||||
//!
|
//!
|
||||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||||
//! DATE: 2021-06-08, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
//! DATE: 2021-10-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemine-dev"), DB CACHE: 128
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemine-dev"), DB CACHE: 128
|
||||||
|
|
||||||
// Executed Command:
|
// Executed Command:
|
||||||
@@ -15,24 +31,31 @@
|
|||||||
// --steps=50
|
// --steps=50
|
||||||
// --repeat=20
|
// --repeat=20
|
||||||
// --raw
|
// --raw
|
||||||
// --output=./polkadot-parachains/statemine-runtime/src/weights
|
// --header=./file_header.txt
|
||||||
|
// --output=./polkadot-parachains/statemine/src/weights
|
||||||
|
|
||||||
|
|
||||||
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
#![allow(unused_parens)]
|
#![allow(unused_parens)]
|
||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
|
|
||||||
use frame_support::{traits::Get, weights::Weight};
|
use frame_support::{traits::Get, weights::Weight};
|
||||||
use sp_std::marker::PhantomData;
|
use sp_std::marker::PhantomData;
|
||||||
|
|
||||||
/// Weight functions for pallet_session.
|
/// Weight functions for `pallet_session`.
|
||||||
pub struct WeightInfo<T>(PhantomData<T>);
|
pub struct WeightInfo<T>(PhantomData<T>);
|
||||||
impl<T: frame_system::Config> pallet_session::WeightInfo for WeightInfo<T> {
|
impl<T: frame_system::Config> pallet_session::WeightInfo for WeightInfo<T> {
|
||||||
|
// Storage: Session NextKeys (r:1 w:1)
|
||||||
|
// Storage: Session KeyOwner (r:1 w:1)
|
||||||
fn set_keys() -> Weight {
|
fn set_keys() -> Weight {
|
||||||
(25_201_000 as Weight)
|
(25_618_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Session NextKeys (r:1 w:1)
|
||||||
|
// Storage: Session KeyOwner (r:0 w:1)
|
||||||
fn purge_keys() -> Weight {
|
fn purge_keys() -> Weight {
|
||||||
(17_510_000 as Weight)
|
(18_073_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,27 @@
|
|||||||
//! Autogenerated weights for pallet_timestamp
|
// Copyright 2021 Parity Technologies (UK) Ltd.
|
||||||
|
// This file is part of Cumulus.
|
||||||
|
|
||||||
|
// Cumulus is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
|
||||||
|
// Cumulus is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
//! Autogenerated weights for `pallet_timestamp`
|
||||||
//!
|
//!
|
||||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||||
//! DATE: 2021-05-31, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
//! DATE: 2021-10-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemine-dev"), DB CACHE: 128
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemine-dev"), DB CACHE: 128
|
||||||
|
|
||||||
// Executed Command:
|
// Executed Command:
|
||||||
// ./target/release/statemint
|
// ./target/release/polkadot-collator
|
||||||
// benchmark
|
// benchmark
|
||||||
// --chain=statemine-dev
|
// --chain=statemine-dev
|
||||||
// --execution=wasm
|
// --execution=wasm
|
||||||
@@ -15,23 +31,27 @@
|
|||||||
// --steps=50
|
// --steps=50
|
||||||
// --repeat=20
|
// --repeat=20
|
||||||
// --raw
|
// --raw
|
||||||
// --output=./runtime/statemine/src/weights/
|
// --header=./file_header.txt
|
||||||
|
// --output=./polkadot-parachains/statemine/src/weights
|
||||||
|
|
||||||
|
|
||||||
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
#![allow(unused_parens)]
|
#![allow(unused_parens)]
|
||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
|
|
||||||
use frame_support::{traits::Get, weights::Weight};
|
use frame_support::{traits::Get, weights::Weight};
|
||||||
use sp_std::marker::PhantomData;
|
use sp_std::marker::PhantomData;
|
||||||
|
|
||||||
/// Weight functions for pallet_timestamp.
|
/// Weight functions for `pallet_timestamp`.
|
||||||
pub struct WeightInfo<T>(PhantomData<T>);
|
pub struct WeightInfo<T>(PhantomData<T>);
|
||||||
impl<T: frame_system::Config> pallet_timestamp::WeightInfo for WeightInfo<T> {
|
impl<T: frame_system::Config> pallet_timestamp::WeightInfo for WeightInfo<T> {
|
||||||
|
// Storage: Timestamp Now (r:1 w:1)
|
||||||
fn set() -> Weight {
|
fn set() -> Weight {
|
||||||
(7_543_000 as Weight)
|
(7_266_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
fn on_finalize() -> Weight {
|
fn on_finalize() -> Weight {
|
||||||
(4_272_000 as Weight)
|
(4_313_000 as Weight)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,53 +14,63 @@
|
|||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
|
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
//! Autogenerated weights for pallet_uniques
|
//! Autogenerated weights for `pallet_uniques`
|
||||||
//!
|
//!
|
||||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||||
//! DATE: 2021-06-02, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
//! DATE: 2021-10-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemine-dev"), DB CACHE: 128
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemine-dev"), DB CACHE: 128
|
||||||
|
|
||||||
// Executed Command:
|
// Executed Command:
|
||||||
// ./target/release/polkadot-collator
|
// ./target/release/polkadot-collator
|
||||||
// benchmark
|
// benchmark
|
||||||
// --chain=statemine-dev
|
// --chain=statemine-dev
|
||||||
// --steps=50
|
|
||||||
// --repeat=20
|
|
||||||
// --pallet=pallet_uniques
|
|
||||||
// --extrinsic=*
|
|
||||||
// --execution=wasm
|
// --execution=wasm
|
||||||
// --wasm-execution=compiled
|
// --wasm-execution=compiled
|
||||||
// --heap-pages=4096
|
// --pallet=pallet_uniques
|
||||||
|
// --extrinsic=*
|
||||||
|
// --steps=50
|
||||||
|
// --repeat=20
|
||||||
|
// --raw
|
||||||
// --header=./file_header.txt
|
// --header=./file_header.txt
|
||||||
// --output=./polkadot-parachains/statemine-runtime/src/weights/
|
// --output=./polkadot-parachains/statemine/src/weights
|
||||||
|
|
||||||
|
|
||||||
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
#![allow(unused_parens)]
|
#![allow(unused_parens)]
|
||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
|
|
||||||
use frame_support::{traits::Get, weights::Weight};
|
use frame_support::{traits::Get, weights::Weight};
|
||||||
use sp_std::marker::PhantomData;
|
use sp_std::marker::PhantomData;
|
||||||
|
|
||||||
/// Weight functions for pallet_uniques.
|
/// Weight functions for `pallet_uniques`.
|
||||||
pub struct WeightInfo<T>(PhantomData<T>);
|
pub struct WeightInfo<T>(PhantomData<T>);
|
||||||
impl<T: frame_system::Config> pallet_uniques::WeightInfo for WeightInfo<T> {
|
impl<T: frame_system::Config> pallet_uniques::WeightInfo for WeightInfo<T> {
|
||||||
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
fn create() -> Weight {
|
fn create() -> Weight {
|
||||||
(42_199_000 as Weight)
|
(42_699_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
fn force_create() -> Weight {
|
fn force_create() -> Weight {
|
||||||
(21_030_000 as Weight)
|
(21_910_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
fn destroy(n: u32, m: u32, a: u32) -> Weight {
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
|
// Storage: Uniques Asset (r:1 w:0)
|
||||||
|
// Storage: Uniques Attribute (r:0 w:1000)
|
||||||
|
// Storage: Uniques ClassMetadataOf (r:0 w:1)
|
||||||
|
// Storage: Uniques InstanceMetadataOf (r:0 w:1000)
|
||||||
|
// Storage: Uniques Account (r:0 w:20)
|
||||||
|
fn destroy(n: u32, m: u32, a: u32, ) -> Weight {
|
||||||
(0 as Weight)
|
(0 as Weight)
|
||||||
// Standard Error: 14_000
|
// Standard Error: 14_000
|
||||||
.saturating_add((16_814_000 as Weight).saturating_mul(n as Weight))
|
.saturating_add((15_871_000 as Weight).saturating_mul(n as Weight))
|
||||||
// Standard Error: 14_000
|
// Standard Error: 14_000
|
||||||
.saturating_add((1_026_000 as Weight).saturating_mul(m as Weight))
|
.saturating_add((1_090_000 as Weight).saturating_mul(m as Weight))
|
||||||
// Standard Error: 14_000
|
// Standard Error: 14_000
|
||||||
.saturating_add((952_000 as Weight).saturating_mul(a as Weight))
|
.saturating_add((949_000 as Weight).saturating_mul(a as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(n as Weight)))
|
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(n as Weight)))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
@@ -68,102 +78,141 @@ impl<T: frame_system::Config> pallet_uniques::WeightInfo for WeightInfo<T> {
|
|||||||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(m as Weight)))
|
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(m as Weight)))
|
||||||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(a as Weight)))
|
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(a as Weight)))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Asset (r:1 w:1)
|
||||||
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
|
// Storage: Uniques Account (r:0 w:1)
|
||||||
fn mint() -> Weight {
|
fn mint() -> Weight {
|
||||||
(57_236_000 as Weight)
|
(55_650_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
|
// Storage: Uniques Asset (r:1 w:1)
|
||||||
|
// Storage: Uniques Account (r:0 w:1)
|
||||||
fn burn() -> Weight {
|
fn burn() -> Weight {
|
||||||
(58_129_000 as Weight)
|
(57_692_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:0)
|
||||||
|
// Storage: Uniques Asset (r:1 w:1)
|
||||||
|
// Storage: Uniques Account (r:0 w:2)
|
||||||
fn transfer() -> Weight {
|
fn transfer() -> Weight {
|
||||||
(42_980_000 as Weight)
|
(43_046_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||||
}
|
}
|
||||||
fn redeposit(i: u32) -> Weight {
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
|
// Storage: Uniques Asset (r:100 w:100)
|
||||||
|
fn redeposit(i: u32, ) -> Weight {
|
||||||
(0 as Weight)
|
(0 as Weight)
|
||||||
// Standard Error: 11_000
|
// Standard Error: 11_000
|
||||||
.saturating_add((26_921_000 as Weight).saturating_mul(i as Weight))
|
.saturating_add((24_886_000 as Weight).saturating_mul(i as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(i as Weight)))
|
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(i as Weight)))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(i as Weight)))
|
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(i as Weight)))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Asset (r:1 w:1)
|
||||||
|
// Storage: Uniques Class (r:1 w:0)
|
||||||
fn freeze() -> Weight {
|
fn freeze() -> Weight {
|
||||||
(30_427_000 as Weight)
|
(30_115_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Asset (r:1 w:1)
|
||||||
|
// Storage: Uniques Class (r:1 w:0)
|
||||||
fn thaw() -> Weight {
|
fn thaw() -> Weight {
|
||||||
(29_789_000 as Weight)
|
(29_713_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
fn freeze_class() -> Weight {
|
fn freeze_class() -> Weight {
|
||||||
(21_380_000 as Weight)
|
(22_174_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
fn thaw_class() -> Weight {
|
fn thaw_class() -> Weight {
|
||||||
(21_430_000 as Weight)
|
(22_642_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
fn transfer_ownership() -> Weight {
|
fn transfer_ownership() -> Weight {
|
||||||
(49_331_000 as Weight)
|
(49_489_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
fn set_team() -> Weight {
|
fn set_team() -> Weight {
|
||||||
(22_305_000 as Weight)
|
(23_260_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
fn force_asset_status() -> Weight {
|
fn force_asset_status() -> Weight {
|
||||||
(21_965_000 as Weight)
|
(22_727_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
|
// Storage: Uniques InstanceMetadataOf (r:1 w:0)
|
||||||
|
// Storage: Uniques Attribute (r:1 w:1)
|
||||||
fn set_attribute() -> Weight {
|
fn set_attribute() -> Weight {
|
||||||
(70_386_000 as Weight)
|
(69_341_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
|
// Storage: Uniques InstanceMetadataOf (r:1 w:0)
|
||||||
|
// Storage: Uniques Attribute (r:1 w:1)
|
||||||
fn clear_attribute() -> Weight {
|
fn clear_attribute() -> Weight {
|
||||||
(63_932_000 as Weight)
|
(63_758_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
|
// Storage: Uniques InstanceMetadataOf (r:1 w:1)
|
||||||
fn set_metadata() -> Weight {
|
fn set_metadata() -> Weight {
|
||||||
(53_647_000 as Weight)
|
(53_201_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
|
// Storage: Uniques InstanceMetadataOf (r:1 w:1)
|
||||||
fn clear_metadata() -> Weight {
|
fn clear_metadata() -> Weight {
|
||||||
(52_353_000 as Weight)
|
(51_969_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
|
// Storage: Uniques ClassMetadataOf (r:1 w:1)
|
||||||
fn set_class_metadata() -> Weight {
|
fn set_class_metadata() -> Weight {
|
||||||
(51_900_000 as Weight)
|
(52_060_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:0)
|
||||||
|
// Storage: Uniques ClassMetadataOf (r:1 w:1)
|
||||||
fn clear_class_metadata() -> Weight {
|
fn clear_class_metadata() -> Weight {
|
||||||
(46_929_000 as Weight)
|
(47_464_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:0)
|
||||||
|
// Storage: Uniques Asset (r:1 w:1)
|
||||||
fn approve_transfer() -> Weight {
|
fn approve_transfer() -> Weight {
|
||||||
(32_693_000 as Weight)
|
(32_921_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:0)
|
||||||
|
// Storage: Uniques Asset (r:1 w:1)
|
||||||
fn cancel_approval() -> Weight {
|
fn cancel_approval() -> Weight {
|
||||||
(32_418_000 as Weight)
|
(32_538_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,27 @@
|
|||||||
//! Autogenerated weights for pallet_utility
|
// Copyright 2021 Parity Technologies (UK) Ltd.
|
||||||
|
// This file is part of Cumulus.
|
||||||
|
|
||||||
|
// Cumulus is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
|
||||||
|
// Cumulus is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
//! Autogenerated weights for `pallet_utility`
|
||||||
//!
|
//!
|
||||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||||
//! DATE: 2021-05-31, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
//! DATE: 2021-10-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemine-dev"), DB CACHE: 128
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemine-dev"), DB CACHE: 128
|
||||||
|
|
||||||
// Executed Command:
|
// Executed Command:
|
||||||
// ./target/release/statemint
|
// ./target/release/polkadot-collator
|
||||||
// benchmark
|
// benchmark
|
||||||
// --chain=statemine-dev
|
// --chain=statemine-dev
|
||||||
// --execution=wasm
|
// --execution=wasm
|
||||||
@@ -15,28 +31,31 @@
|
|||||||
// --steps=50
|
// --steps=50
|
||||||
// --repeat=20
|
// --repeat=20
|
||||||
// --raw
|
// --raw
|
||||||
// --output=./runtime/statemine/src/weights/
|
// --header=./file_header.txt
|
||||||
|
// --output=./polkadot-parachains/statemine/src/weights
|
||||||
|
|
||||||
|
|
||||||
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
#![allow(unused_parens)]
|
#![allow(unused_parens)]
|
||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
|
|
||||||
use frame_support::{traits::Get, weights::Weight};
|
use frame_support::{traits::Get, weights::Weight};
|
||||||
use sp_std::marker::PhantomData;
|
use sp_std::marker::PhantomData;
|
||||||
|
|
||||||
/// Weight functions for pallet_utility.
|
/// Weight functions for `pallet_utility`.
|
||||||
pub struct WeightInfo<T>(PhantomData<T>);
|
pub struct WeightInfo<T>(PhantomData<T>);
|
||||||
impl<T: frame_system::Config> pallet_utility::WeightInfo for WeightInfo<T> {
|
impl<T: frame_system::Config> pallet_utility::WeightInfo for WeightInfo<T> {
|
||||||
fn batch(c: u32) -> Weight {
|
fn batch(c: u32, ) -> Weight {
|
||||||
(16_177_000 as Weight)
|
(32_696_000 as Weight)
|
||||||
// Standard Error: 0
|
// Standard Error: 3_000
|
||||||
.saturating_add((4_582_000 as Weight).saturating_mul(c as Weight))
|
.saturating_add((7_071_000 as Weight).saturating_mul(c as Weight))
|
||||||
}
|
}
|
||||||
fn as_derivative() -> Weight {
|
fn as_derivative() -> Weight {
|
||||||
(7_848_000 as Weight)
|
(5_201_000 as Weight)
|
||||||
}
|
}
|
||||||
fn batch_all(c: u32) -> Weight {
|
fn batch_all(c: u32, ) -> Weight {
|
||||||
(17_745_000 as Weight)
|
(24_556_000 as Weight)
|
||||||
// Standard Error: 0
|
// Standard Error: 3_000
|
||||||
.saturating_add((4_578_000 as Weight).saturating_mul(c as Weight))
|
.saturating_add((7_719_000 as Weight).saturating_mul(c as Weight))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,7 +40,6 @@ pallet-authorship = { git = "https://github.com/paritytech/substrate", default-f
|
|||||||
pallet-balances = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
pallet-balances = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
||||||
pallet-multisig = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
pallet-multisig = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
||||||
pallet-proxy = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
pallet-proxy = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
||||||
pallet-randomness-collective-flip = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
|
||||||
pallet-session = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
pallet-session = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
||||||
pallet-sudo = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
pallet-sudo = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
||||||
pallet-timestamp = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
pallet-timestamp = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
||||||
@@ -127,7 +126,6 @@ std = [
|
|||||||
"pallet-balances/std",
|
"pallet-balances/std",
|
||||||
"pallet-multisig/std",
|
"pallet-multisig/std",
|
||||||
"pallet-proxy/std",
|
"pallet-proxy/std",
|
||||||
"pallet-randomness-collective-flip/std",
|
|
||||||
"pallet-session/std",
|
"pallet-session/std",
|
||||||
"pallet-sudo/std",
|
"pallet-sudo/std",
|
||||||
"pallet-timestamp/std",
|
"pallet-timestamp/std",
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ use codec::{Decode, Encode, MaxEncodedLen};
|
|||||||
use constants::{currency::*, fee::WeightToFee};
|
use constants::{currency::*, fee::WeightToFee};
|
||||||
use frame_support::{
|
use frame_support::{
|
||||||
construct_runtime, match_type, parameter_types,
|
construct_runtime, match_type, parameter_types,
|
||||||
traits::{Everything, InstanceFilter, Nothing},
|
traits::{Contains, Everything, InstanceFilter, Nothing},
|
||||||
weights::{
|
weights::{
|
||||||
constants::{BlockExecutionWeight, ExtrinsicBaseWeight},
|
constants::{BlockExecutionWeight, ExtrinsicBaseWeight},
|
||||||
DispatchClass, IdentityFee, Weight,
|
DispatchClass, IdentityFee, Weight,
|
||||||
@@ -70,12 +70,12 @@ use polkadot_parachain::primitives::Sibling;
|
|||||||
use polkadot_runtime_common::{BlockHashCount, RocksDbWeight, SlowAdjustingFeeUpdate};
|
use polkadot_runtime_common::{BlockHashCount, RocksDbWeight, SlowAdjustingFeeUpdate};
|
||||||
use xcm::latest::prelude::*;
|
use xcm::latest::prelude::*;
|
||||||
use xcm_builder::{
|
use xcm_builder::{
|
||||||
AccountId32Aliases, AllowTopLevelPaidExecutionFrom, AllowUnpaidExecutionFrom,
|
AccountId32Aliases, AllowKnownQueryResponses, AllowSubscriptionsFrom,
|
||||||
AsPrefixedGeneralIndex, ConvertedConcreteAssetId, CurrencyAdapter, EnsureXcmOrigin,
|
AllowTopLevelPaidExecutionFrom, AllowUnpaidExecutionFrom, AsPrefixedGeneralIndex,
|
||||||
FixedWeightBounds, FungiblesAdapter, IsConcrete, LocationInverter, NativeAsset,
|
ConvertedConcreteAssetId, CurrencyAdapter, EnsureXcmOrigin, FixedWeightBounds,
|
||||||
ParentAsSuperuser, ParentIsDefault, RelayChainAsNative, SiblingParachainAsNative,
|
FungiblesAdapter, IsConcrete, LocationInverter, NativeAsset, ParentAsSuperuser,
|
||||||
SiblingParachainConvertsVia, SignedAccountId32AsNative, SovereignSignedViaLocation,
|
ParentIsDefault, RelayChainAsNative, SiblingParachainAsNative, SiblingParachainConvertsVia,
|
||||||
TakeWeightCredit, UsingComponents,
|
SignedAccountId32AsNative, SovereignSignedViaLocation, TakeWeightCredit, UsingComponents,
|
||||||
};
|
};
|
||||||
use xcm_executor::{traits::JustTry, Config, XcmExecutor};
|
use xcm_executor::{traits::JustTry, Config, XcmExecutor};
|
||||||
|
|
||||||
@@ -90,10 +90,10 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
|
|||||||
spec_name: create_runtime_str!("statemint"),
|
spec_name: create_runtime_str!("statemint"),
|
||||||
impl_name: create_runtime_str!("statemint"),
|
impl_name: create_runtime_str!("statemint"),
|
||||||
authoring_version: 1,
|
authoring_version: 1,
|
||||||
spec_version: 100,
|
spec_version: 600,
|
||||||
impl_version: 0,
|
impl_version: 0,
|
||||||
apis: RUNTIME_API_VERSIONS,
|
apis: RUNTIME_API_VERSIONS,
|
||||||
transaction_version: 2,
|
transaction_version: 3,
|
||||||
};
|
};
|
||||||
|
|
||||||
/// The version information used to identify this runtime when compiled natively.
|
/// The version information used to identify this runtime when compiled natively.
|
||||||
@@ -127,9 +127,21 @@ parameter_types! {
|
|||||||
pub const SS58Prefix: u8 = 0;
|
pub const SS58Prefix: u8 = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub struct BaseFilter;
|
||||||
|
impl Contains<Call> for BaseFilter {
|
||||||
|
fn contains(c: &Call) -> bool {
|
||||||
|
// Disable permissionless asset creation.
|
||||||
|
!matches!(
|
||||||
|
c,
|
||||||
|
Call::Assets(pallet_assets::Call::create { .. }) |
|
||||||
|
Call::Uniques(pallet_uniques::Call::create { .. })
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Configure FRAME pallets to include in runtime.
|
// Configure FRAME pallets to include in runtime.
|
||||||
impl frame_system::Config for Runtime {
|
impl frame_system::Config for Runtime {
|
||||||
type BaseCallFilter = frame_support::traits::Everything;
|
type BaseCallFilter = BaseFilter;
|
||||||
type BlockWeights = RuntimeBlockWeights;
|
type BlockWeights = RuntimeBlockWeights;
|
||||||
type BlockLength = RuntimeBlockLength;
|
type BlockLength = RuntimeBlockLength;
|
||||||
type AccountId = AccountId;
|
type AccountId = AccountId;
|
||||||
@@ -212,8 +224,6 @@ impl pallet_transaction_payment::Config for Runtime {
|
|||||||
type OperationalFeeMultiplier = OperationalFeeMultiplier;
|
type OperationalFeeMultiplier = OperationalFeeMultiplier;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl pallet_randomness_collective_flip::Config for Runtime {}
|
|
||||||
|
|
||||||
parameter_types! {
|
parameter_types! {
|
||||||
pub const AssetDeposit: Balance = 100 * DOLLARS; // 100 DOLLARS deposit to create asset
|
pub const AssetDeposit: Balance = 100 * DOLLARS; // 100 DOLLARS deposit to create asset
|
||||||
pub const ApprovalDeposit: Balance = EXISTENTIAL_DEPOSIT;
|
pub const ApprovalDeposit: Balance = EXISTENTIAL_DEPOSIT;
|
||||||
@@ -311,7 +321,7 @@ pub enum ProxyType {
|
|||||||
AssetOwner,
|
AssetOwner,
|
||||||
/// Asset manager. Can execute calls related to asset management.
|
/// Asset manager. Can execute calls related to asset management.
|
||||||
AssetManager,
|
AssetManager,
|
||||||
// Collator selection proxy. Can execute calls related to collator selection mechanism.
|
/// Collator selection proxy. Can execute calls related to collator selection mechanism.
|
||||||
Collator,
|
Collator,
|
||||||
}
|
}
|
||||||
impl Default for ProxyType {
|
impl Default for ProxyType {
|
||||||
@@ -494,8 +504,8 @@ pub type XcmOriginToTransactDispatchOrigin = (
|
|||||||
// using `LocationToAccountId` and then turn that into the usual `Signed` origin. Useful for
|
// using `LocationToAccountId` and then turn that into the usual `Signed` origin. Useful for
|
||||||
// foreign chains who want to have a local sovereign account on this chain which they control.
|
// foreign chains who want to have a local sovereign account on this chain which they control.
|
||||||
SovereignSignedViaLocation<LocationToAccountId, Origin>,
|
SovereignSignedViaLocation<LocationToAccountId, Origin>,
|
||||||
// Native converter for Relay-chain (Parent) location; will converts to a `Relay` origin when
|
// Native converter for Relay-chain (Parent) location; will convert to a `Relay` origin when
|
||||||
// recognized.
|
// recognised.
|
||||||
RelayChainAsNative<RelayChainOrigin, Origin>,
|
RelayChainAsNative<RelayChainOrigin, Origin>,
|
||||||
// Native converter for sibling Parachains; will convert to a `SiblingPara` origin when
|
// Native converter for sibling Parachains; will convert to a `SiblingPara` origin when
|
||||||
// recognized.
|
// recognized.
|
||||||
@@ -511,8 +521,8 @@ pub type XcmOriginToTransactDispatchOrigin = (
|
|||||||
);
|
);
|
||||||
|
|
||||||
parameter_types! {
|
parameter_types! {
|
||||||
// One XCM operation is 1_000_000 weight - almost certainly a conservative estimate.
|
// One XCM operation is 1_000_000_000 weight - almost certainly a conservative estimate.
|
||||||
pub UnitWeightCost: Weight = 1_000_000;
|
pub UnitWeightCost: Weight = 1_000_000_000;
|
||||||
pub const MaxInstructions: u32 = 100;
|
pub const MaxInstructions: u32 = 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -522,12 +532,22 @@ match_type! {
|
|||||||
MultiLocation { parents: 1, interior: X1(Plurality { id: BodyId::Executive, .. }) }
|
MultiLocation { parents: 1, interior: X1(Plurality { id: BodyId::Executive, .. }) }
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
match_type! {
|
||||||
|
pub type ParentOrSiblings: impl Contains<MultiLocation> = {
|
||||||
|
MultiLocation { parents: 1, interior: Here } |
|
||||||
|
MultiLocation { parents: 1, interior: X1(_) }
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
pub type Barrier = (
|
pub type Barrier = (
|
||||||
TakeWeightCredit,
|
TakeWeightCredit,
|
||||||
AllowTopLevelPaidExecutionFrom<Everything>,
|
AllowTopLevelPaidExecutionFrom<Everything>,
|
||||||
|
// Parent and its exec plurality get free execution
|
||||||
AllowUnpaidExecutionFrom<ParentOrParentsExecutivePlurality>,
|
AllowUnpaidExecutionFrom<ParentOrParentsExecutivePlurality>,
|
||||||
// ^^^ Parent and its exec plurality get free execution
|
// Expected responses are OK.
|
||||||
|
AllowKnownQueryResponses<PolkadotXcm>,
|
||||||
|
// Subscriptions for version tracking are OK.
|
||||||
|
AllowSubscriptionsFrom<ParentOrSiblings>,
|
||||||
);
|
);
|
||||||
|
|
||||||
pub struct XcmConfig;
|
pub struct XcmConfig;
|
||||||
@@ -559,7 +579,7 @@ pub type LocalOriginToLocation = ();
|
|||||||
/// queues.
|
/// queues.
|
||||||
pub type XcmRouter = (
|
pub type XcmRouter = (
|
||||||
// Two routers - use UMP to communicate with the relay chain:
|
// Two routers - use UMP to communicate with the relay chain:
|
||||||
cumulus_primitives_utility::ParentAsUmp<ParachainSystem, ()>,
|
cumulus_primitives_utility::ParentAsUmp<ParachainSystem, PolkadotXcm>,
|
||||||
// ..and XCMP to communicate with the sibling chains.
|
// ..and XCMP to communicate with the sibling chains.
|
||||||
XcmpQueue,
|
XcmpQueue,
|
||||||
);
|
);
|
||||||
@@ -592,7 +612,7 @@ impl cumulus_pallet_xcmp_queue::Config for Runtime {
|
|||||||
type Event = Event;
|
type Event = Event;
|
||||||
type XcmExecutor = XcmExecutor<XcmConfig>;
|
type XcmExecutor = XcmExecutor<XcmConfig>;
|
||||||
type ChannelInfo = ParachainSystem;
|
type ChannelInfo = ParachainSystem;
|
||||||
type VersionWrapper = ();
|
type VersionWrapper = PolkadotXcm;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl cumulus_pallet_dmp_queue::Config for Runtime {
|
impl cumulus_pallet_dmp_queue::Config for Runtime {
|
||||||
@@ -706,7 +726,7 @@ construct_runtime!(
|
|||||||
ParachainSystem: cumulus_pallet_parachain_system::{
|
ParachainSystem: cumulus_pallet_parachain_system::{
|
||||||
Pallet, Call, Config, Storage, Inherent, Event<T>, ValidateUnsigned,
|
Pallet, Call, Config, Storage, Inherent, Event<T>, ValidateUnsigned,
|
||||||
} = 1,
|
} = 1,
|
||||||
RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage} = 2,
|
// RandomnessCollectiveFlip = 2 removed
|
||||||
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent} = 3,
|
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent} = 3,
|
||||||
ParachainInfo: parachain_info::{Pallet, Storage, Config} = 4,
|
ParachainInfo: parachain_info::{Pallet, Storage, Config} = 4,
|
||||||
|
|
||||||
@@ -715,7 +735,7 @@ construct_runtime!(
|
|||||||
TransactionPayment: pallet_transaction_payment::{Pallet, Storage} = 11,
|
TransactionPayment: pallet_transaction_payment::{Pallet, Storage} = 11,
|
||||||
AssetTxPayment: pallet_asset_tx_payment::{Pallet} = 12,
|
AssetTxPayment: pallet_asset_tx_payment::{Pallet} = 12,
|
||||||
|
|
||||||
// Collator support. the order of these 4 are important and shall not change.
|
// Collator support. the order of these 5 are important and shall not change.
|
||||||
Authorship: pallet_authorship::{Pallet, Call, Storage} = 20,
|
Authorship: pallet_authorship::{Pallet, Call, Storage} = 20,
|
||||||
CollatorSelection: pallet_collator_selection::{Pallet, Call, Storage, Event<T>, Config<T>} = 21,
|
CollatorSelection: pallet_collator_selection::{Pallet, Call, Storage, Event<T>, Config<T>} = 21,
|
||||||
Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>} = 22,
|
Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>} = 22,
|
||||||
@@ -724,7 +744,7 @@ construct_runtime!(
|
|||||||
|
|
||||||
// XCM helpers.
|
// XCM helpers.
|
||||||
XcmpQueue: cumulus_pallet_xcmp_queue::{Pallet, Call, Storage, Event<T>} = 30,
|
XcmpQueue: cumulus_pallet_xcmp_queue::{Pallet, Call, Storage, Event<T>} = 30,
|
||||||
PolkadotXcm: pallet_xcm::{Pallet, Call, Event<T>, Origin} = 31,
|
PolkadotXcm: pallet_xcm::{Pallet, Call, Storage, Event<T>, Origin} = 31,
|
||||||
CumulusXcm: cumulus_pallet_xcm::{Pallet, Event<T>, Origin} = 32,
|
CumulusXcm: cumulus_pallet_xcm::{Pallet, Event<T>, Origin} = 32,
|
||||||
DmpQueue: cumulus_pallet_dmp_queue::{Pallet, Call, Storage, Event<T>} = 33,
|
DmpQueue: cumulus_pallet_dmp_queue::{Pallet, Call, Storage, Event<T>} = 33,
|
||||||
|
|
||||||
@@ -733,7 +753,7 @@ construct_runtime!(
|
|||||||
Multisig: pallet_multisig::{Pallet, Call, Storage, Event<T>} = 41,
|
Multisig: pallet_multisig::{Pallet, Call, Storage, Event<T>} = 41,
|
||||||
Proxy: pallet_proxy::{Pallet, Call, Storage, Event<T>} = 42,
|
Proxy: pallet_proxy::{Pallet, Call, Storage, Event<T>} = 42,
|
||||||
|
|
||||||
// The main stage. To include pallet-assets-freezer and pallet-uniques.
|
// The main stage.
|
||||||
Assets: pallet_assets::{Pallet, Call, Storage, Event<T>} = 50,
|
Assets: pallet_assets::{Pallet, Call, Storage, Event<T>} = 50,
|
||||||
Uniques: pallet_uniques::{Pallet, Call, Storage, Event<T>} = 51,
|
Uniques: pallet_uniques::{Pallet, Call, Storage, Event<T>} = 51,
|
||||||
}
|
}
|
||||||
@@ -939,6 +959,7 @@ impl_runtime_apis! {
|
|||||||
add_benchmark!(params, batches, pallet_multisig, Multisig);
|
add_benchmark!(params, batches, pallet_multisig, Multisig);
|
||||||
add_benchmark!(params, batches, pallet_proxy, Proxy);
|
add_benchmark!(params, batches, pallet_proxy, Proxy);
|
||||||
add_benchmark!(params, batches, pallet_session, SessionBench::<Runtime>);
|
add_benchmark!(params, batches, pallet_session, SessionBench::<Runtime>);
|
||||||
|
add_benchmark!(params, batches, pallet_uniques, Uniques);
|
||||||
add_benchmark!(params, batches, pallet_utility, Utility);
|
add_benchmark!(params, batches, pallet_utility, Utility);
|
||||||
add_benchmark!(params, batches, pallet_timestamp, Timestamp);
|
add_benchmark!(params, batches, pallet_timestamp, Timestamp);
|
||||||
add_benchmark!(params, batches, pallet_collator_selection, CollatorSelection);
|
add_benchmark!(params, batches, pallet_collator_selection, CollatorSelection);
|
||||||
|
|||||||
@@ -1,11 +1,27 @@
|
|||||||
//! Autogenerated weights for pallet_assets
|
// Copyright 2021 Parity Technologies (UK) Ltd.
|
||||||
|
// This file is part of Cumulus.
|
||||||
|
|
||||||
|
// Cumulus is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
|
||||||
|
// Cumulus is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
//! Autogenerated weights for `pallet_assets`
|
||||||
//!
|
//!
|
||||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||||
//! DATE: 2021-05-31, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
//! DATE: 2021-10-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemint-dev"), DB CACHE: 128
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemint-dev"), DB CACHE: 128
|
||||||
|
|
||||||
// Executed Command:
|
// Executed Command:
|
||||||
// ./target/release/statemint
|
// ./target/release/polkadot-collator
|
||||||
// benchmark
|
// benchmark
|
||||||
// --chain=statemint-dev
|
// --chain=statemint-dev
|
||||||
// --execution=wasm
|
// --execution=wasm
|
||||||
@@ -15,145 +31,197 @@
|
|||||||
// --steps=50
|
// --steps=50
|
||||||
// --repeat=20
|
// --repeat=20
|
||||||
// --raw
|
// --raw
|
||||||
// --output=./runtime/statemint/src/weights/
|
// --header=./file_header.txt
|
||||||
|
// --output=./polkadot-parachains/statemint/src/weights
|
||||||
|
|
||||||
|
|
||||||
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
#![allow(unused_parens)]
|
#![allow(unused_parens)]
|
||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
|
|
||||||
use frame_support::{traits::Get, weights::Weight};
|
use frame_support::{traits::Get, weights::Weight};
|
||||||
use sp_std::marker::PhantomData;
|
use sp_std::marker::PhantomData;
|
||||||
|
|
||||||
/// Weight functions for pallet_assets.
|
/// Weight functions for `pallet_assets`.
|
||||||
pub struct WeightInfo<T>(PhantomData<T>);
|
pub struct WeightInfo<T>(PhantomData<T>);
|
||||||
impl<T: frame_system::Config> pallet_assets::WeightInfo for WeightInfo<T> {
|
impl<T: frame_system::Config> pallet_assets::WeightInfo for WeightInfo<T> {
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
fn create() -> Weight {
|
fn create() -> Weight {
|
||||||
(44_125_000 as Weight)
|
(40_470_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
fn force_create() -> Weight {
|
fn force_create() -> Weight {
|
||||||
(22_842_000 as Weight)
|
(21_173_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
fn destroy(c: u32, s: u32, a: u32) -> Weight {
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
|
// Storage: Assets Account (r:5002 w:5001)
|
||||||
|
// Storage: System Account (r:5000 w:5000)
|
||||||
|
// Storage: Assets Metadata (r:1 w:0)
|
||||||
|
// Storage: Assets Approvals (r:501 w:500)
|
||||||
|
fn destroy(c: u32, s: u32, a: u32, ) -> Weight {
|
||||||
(0 as Weight)
|
(0 as Weight)
|
||||||
// Standard Error: 37_000
|
// Standard Error: 40_000
|
||||||
.saturating_add((21_822_000 as Weight).saturating_mul(c as Weight))
|
.saturating_add((19_936_000 as Weight).saturating_mul(c as Weight))
|
||||||
// Standard Error: 37_000
|
// Standard Error: 40_000
|
||||||
.saturating_add((29_044_000 as Weight).saturating_mul(s as Weight))
|
.saturating_add((25_700_000 as Weight).saturating_mul(s as Weight))
|
||||||
// Standard Error: 370_000
|
// Standard Error: 400_000
|
||||||
.saturating_add((3_000_000 as Weight).saturating_mul(a as Weight))
|
.saturating_add((29_566_000 as Weight).saturating_mul(a as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
.saturating_add(T::DbWeight::get().reads(5 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(c as Weight)))
|
.saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(c as Weight)))
|
||||||
.saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(s as Weight)))
|
.saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(s as Weight)))
|
||||||
|
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(a as Weight)))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(c as Weight)))
|
.saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(c as Weight)))
|
||||||
.saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(s as Weight)))
|
.saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(s as Weight)))
|
||||||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(a as Weight)))
|
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(a as Weight)))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
|
// Storage: Assets Account (r:1 w:1)
|
||||||
fn mint() -> Weight {
|
fn mint() -> Weight {
|
||||||
(49_933_000 as Weight)
|
(46_147_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
|
// Storage: Assets Account (r:1 w:1)
|
||||||
fn burn() -> Weight {
|
fn burn() -> Weight {
|
||||||
(56_434_000 as Weight)
|
(52_364_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
|
// Storage: Assets Account (r:2 w:2)
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
fn transfer() -> Weight {
|
fn transfer() -> Weight {
|
||||||
(85_393_000 as Weight)
|
(79_240_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
|
// Storage: Assets Account (r:2 w:2)
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
fn transfer_keep_alive() -> Weight {
|
fn transfer_keep_alive() -> Weight {
|
||||||
(72_039_000 as Weight)
|
(66_317_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
|
// Storage: Assets Account (r:2 w:2)
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
fn force_transfer() -> Weight {
|
fn force_transfer() -> Weight {
|
||||||
(85_214_000 as Weight)
|
(79_095_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:0)
|
||||||
|
// Storage: Assets Account (r:1 w:1)
|
||||||
fn freeze() -> Weight {
|
fn freeze() -> Weight {
|
||||||
(31_915_000 as Weight)
|
(31_426_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:0)
|
||||||
|
// Storage: Assets Account (r:1 w:1)
|
||||||
fn thaw() -> Weight {
|
fn thaw() -> Weight {
|
||||||
(31_296_000 as Weight)
|
(31_327_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
fn freeze_asset() -> Weight {
|
fn freeze_asset() -> Weight {
|
||||||
(22_272_000 as Weight)
|
(24_033_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
fn thaw_asset() -> Weight {
|
fn thaw_asset() -> Weight {
|
||||||
(22_336_000 as Weight)
|
(23_925_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
|
// Storage: Assets Metadata (r:1 w:0)
|
||||||
fn transfer_ownership() -> Weight {
|
fn transfer_ownership() -> Weight {
|
||||||
(25_526_000 as Weight)
|
(26_504_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
fn set_team() -> Weight {
|
fn set_team() -> Weight {
|
||||||
(22_632_000 as Weight)
|
(23_963_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
fn set_metadata(_n: u32, s: u32) -> Weight {
|
// Storage: Assets Asset (r:1 w:0)
|
||||||
(50_330_000 as Weight)
|
// Storage: Assets Metadata (r:1 w:1)
|
||||||
|
fn set_metadata(_n: u32, s: u32, ) -> Weight {
|
||||||
|
(48_256_000 as Weight)
|
||||||
// Standard Error: 0
|
// Standard Error: 0
|
||||||
.saturating_add((9_000 as Weight).saturating_mul(s as Weight))
|
.saturating_add((4_000 as Weight).saturating_mul(s as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:0)
|
||||||
|
// Storage: Assets Metadata (r:1 w:1)
|
||||||
fn clear_metadata() -> Weight {
|
fn clear_metadata() -> Weight {
|
||||||
(48_266_000 as Weight)
|
(46_557_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
fn force_set_metadata(_n: u32, s: u32) -> Weight {
|
// Storage: Assets Asset (r:1 w:0)
|
||||||
(26_249_000 as Weight)
|
// Storage: Assets Metadata (r:1 w:1)
|
||||||
|
fn force_set_metadata(_n: u32, s: u32, ) -> Weight {
|
||||||
|
(25_864_000 as Weight)
|
||||||
// Standard Error: 0
|
// Standard Error: 0
|
||||||
.saturating_add((6_000 as Weight).saturating_mul(s as Weight))
|
.saturating_add((5_000 as Weight).saturating_mul(s as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:0)
|
||||||
|
// Storage: Assets Metadata (r:1 w:1)
|
||||||
fn force_clear_metadata() -> Weight {
|
fn force_clear_metadata() -> Weight {
|
||||||
(49_616_000 as Weight)
|
(46_158_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
fn force_asset_status() -> Weight {
|
fn force_asset_status() -> Weight {
|
||||||
(22_596_000 as Weight)
|
(22_197_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
|
// Storage: Assets Approvals (r:1 w:1)
|
||||||
fn approve_transfer() -> Weight {
|
fn approve_transfer() -> Weight {
|
||||||
(48_708_000 as Weight)
|
(54_663_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Approvals (r:1 w:1)
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
|
// Storage: Assets Account (r:2 w:2)
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
fn transfer_approved() -> Weight {
|
fn transfer_approved() -> Weight {
|
||||||
(108_476_000 as Weight)
|
(103_930_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(5 as Weight))
|
.saturating_add(T::DbWeight::get().reads(5 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(5 as Weight))
|
.saturating_add(T::DbWeight::get().writes(5 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
|
// Storage: Assets Approvals (r:1 w:1)
|
||||||
fn cancel_approval() -> Weight {
|
fn cancel_approval() -> Weight {
|
||||||
(49_157_000 as Weight)
|
(55_023_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
|
||||||
}
|
|
||||||
fn force_cancel_approval() -> Weight {
|
|
||||||
(56_862_000 as Weight)
|
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
|
// Storage: Assets Approvals (r:1 w:1)
|
||||||
|
fn force_cancel_approval() -> Weight {
|
||||||
|
(56_860_000 as Weight)
|
||||||
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,27 @@
|
|||||||
//! Autogenerated weights for pallet_balances
|
// Copyright 2021 Parity Technologies (UK) Ltd.
|
||||||
|
// This file is part of Cumulus.
|
||||||
|
|
||||||
|
// Cumulus is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
|
||||||
|
// Cumulus is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
//! Autogenerated weights for `pallet_balances`
|
||||||
//!
|
//!
|
||||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||||
//! DATE: 2021-05-31, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
//! DATE: 2021-10-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemint-dev"), DB CACHE: 128
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemint-dev"), DB CACHE: 128
|
||||||
|
|
||||||
// Executed Command:
|
// Executed Command:
|
||||||
// ./target/release/statemint
|
// ./target/release/polkadot-collator
|
||||||
// benchmark
|
// benchmark
|
||||||
// --chain=statemint-dev
|
// --chain=statemint-dev
|
||||||
// --execution=wasm
|
// --execution=wasm
|
||||||
@@ -15,50 +31,59 @@
|
|||||||
// --steps=50
|
// --steps=50
|
||||||
// --repeat=20
|
// --repeat=20
|
||||||
// --raw
|
// --raw
|
||||||
// --output=./runtime/statemint/src/weights/
|
// --header=./file_header.txt
|
||||||
|
// --output=./polkadot-parachains/statemint/src/weights
|
||||||
|
|
||||||
|
|
||||||
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
#![allow(unused_parens)]
|
#![allow(unused_parens)]
|
||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
|
|
||||||
use frame_support::{traits::Get, weights::Weight};
|
use frame_support::{traits::Get, weights::Weight};
|
||||||
use sp_std::marker::PhantomData;
|
use sp_std::marker::PhantomData;
|
||||||
|
|
||||||
/// Weight functions for pallet_balances.
|
/// Weight functions for `pallet_balances`.
|
||||||
pub struct WeightInfo<T>(PhantomData<T>);
|
pub struct WeightInfo<T>(PhantomData<T>);
|
||||||
impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
fn transfer() -> Weight {
|
fn transfer() -> Weight {
|
||||||
(79_601_000 as Weight)
|
(70_349_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
fn transfer_keep_alive() -> Weight {
|
fn transfer_keep_alive() -> Weight {
|
||||||
(58_429_000 as Weight)
|
(52_291_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
fn set_balance_creating() -> Weight {
|
fn set_balance_creating() -> Weight {
|
||||||
(29_124_000 as Weight)
|
(28_785_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
fn set_balance_killing() -> Weight {
|
fn set_balance_killing() -> Weight {
|
||||||
(36_476_000 as Weight)
|
(35_051_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: System Account (r:2 w:2)
|
||||||
fn force_transfer() -> Weight {
|
fn force_transfer() -> Weight {
|
||||||
(78_772_000 as Weight)
|
(70_808_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
fn transfer_all() -> Weight {
|
fn transfer_all() -> Weight {
|
||||||
(84_170_000 as Weight)
|
(65_900_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
// Storage: System Account (r:1 w:1)
|
// Storage: System Account (r:1 w:1)
|
||||||
fn force_unreserve() -> Weight {
|
fn force_unreserve() -> Weight {
|
||||||
(27_766_000 as Weight)
|
(26_431_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,27 @@
|
|||||||
//! Autogenerated weights for pallet_collator_selection
|
// Copyright 2021 Parity Technologies (UK) Ltd.
|
||||||
|
// This file is part of Cumulus.
|
||||||
|
|
||||||
|
// Cumulus is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
|
||||||
|
// Cumulus is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
//! Autogenerated weights for `pallet_collator_selection`
|
||||||
//!
|
//!
|
||||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||||
//! DATE: 2021-05-31, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
//! DATE: 2021-10-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemint-dev"), DB CACHE: 128
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemint-dev"), DB CACHE: 128
|
||||||
|
|
||||||
// Executed Command:
|
// Executed Command:
|
||||||
// ./target/release/statemint
|
// ./target/release/polkadot-collator
|
||||||
// benchmark
|
// benchmark
|
||||||
// --chain=statemint-dev
|
// --chain=statemint-dev
|
||||||
// --execution=wasm
|
// --execution=wasm
|
||||||
@@ -15,57 +31,80 @@
|
|||||||
// --steps=50
|
// --steps=50
|
||||||
// --repeat=20
|
// --repeat=20
|
||||||
// --raw
|
// --raw
|
||||||
// --output=./runtime/statemint/src/weights/
|
// --header=./file_header.txt
|
||||||
|
// --output=./polkadot-parachains/statemint/src/weights
|
||||||
|
|
||||||
|
|
||||||
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
#![allow(unused_parens)]
|
#![allow(unused_parens)]
|
||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
|
|
||||||
use frame_support::{traits::Get, weights::Weight};
|
use frame_support::{traits::Get, weights::Weight};
|
||||||
use sp_std::marker::PhantomData;
|
use sp_std::marker::PhantomData;
|
||||||
|
|
||||||
/// Weight functions for pallet_collator_selection.
|
/// Weight functions for `pallet_collator_selection`.
|
||||||
pub struct WeightInfo<T>(PhantomData<T>);
|
pub struct WeightInfo<T>(PhantomData<T>);
|
||||||
impl<T: frame_system::Config> pallet_collator_selection::WeightInfo for WeightInfo<T> {
|
impl<T: frame_system::Config> pallet_collator_selection::WeightInfo for WeightInfo<T> {
|
||||||
fn set_invulnerables(b: u32) -> Weight {
|
// Storage: CollatorSelection Invulnerables (r:0 w:1)
|
||||||
(18_563_000 as Weight)
|
fn set_invulnerables(b: u32, ) -> Weight {
|
||||||
|
(17_330_000 as Weight)
|
||||||
// Standard Error: 0
|
// Standard Error: 0
|
||||||
.saturating_add((68_000 as Weight).saturating_mul(b as Weight))
|
.saturating_add((50_000 as Weight).saturating_mul(b as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: CollatorSelection DesiredCandidates (r:0 w:1)
|
||||||
fn set_desired_candidates() -> Weight {
|
fn set_desired_candidates() -> Weight {
|
||||||
(16_363_000 as Weight).saturating_add(T::DbWeight::get().writes(1 as Weight))
|
(15_234_000 as Weight)
|
||||||
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: CollatorSelection CandidacyBond (r:0 w:1)
|
||||||
fn set_candidacy_bond() -> Weight {
|
fn set_candidacy_bond() -> Weight {
|
||||||
(16_840_000 as Weight).saturating_add(T::DbWeight::get().writes(1 as Weight))
|
(15_950_000 as Weight)
|
||||||
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
fn register_as_candidate(c: u32) -> Weight {
|
// Storage: CollatorSelection Candidates (r:1 w:1)
|
||||||
(71_196_000 as Weight)
|
// Storage: CollatorSelection DesiredCandidates (r:1 w:0)
|
||||||
// Standard Error: 0
|
// Storage: CollatorSelection Invulnerables (r:1 w:0)
|
||||||
.saturating_add((198_000 as Weight).saturating_mul(c as Weight))
|
// Storage: Session NextKeys (r:1 w:0)
|
||||||
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
// Storage: CollatorSelection CandidacyBond (r:1 w:0)
|
||||||
|
// Storage: CollatorSelection LastAuthoredBlock (r:0 w:1)
|
||||||
|
fn register_as_candidate(c: u32, ) -> Weight {
|
||||||
|
(74_091_000 as Weight)
|
||||||
|
// Standard Error: 1_000
|
||||||
|
.saturating_add((147_000 as Weight).saturating_mul(c as Weight))
|
||||||
|
.saturating_add(T::DbWeight::get().reads(5 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
fn leave_intent(c: u32) -> Weight {
|
// Storage: CollatorSelection Candidates (r:1 w:1)
|
||||||
(55_336_000 as Weight)
|
// Storage: CollatorSelection LastAuthoredBlock (r:0 w:1)
|
||||||
// Standard Error: 0
|
fn leave_intent(c: u32, ) -> Weight {
|
||||||
.saturating_add((151_000 as Weight).saturating_mul(c as Weight))
|
(69_683_000 as Weight)
|
||||||
|
// Standard Error: 1_000
|
||||||
|
.saturating_add((205_000 as Weight).saturating_mul(c as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: System Account (r:2 w:2)
|
||||||
|
// Storage: System BlockWeight (r:1 w:1)
|
||||||
|
// Storage: CollatorSelection LastAuthoredBlock (r:0 w:1)
|
||||||
fn note_author() -> Weight {
|
fn note_author() -> Weight {
|
||||||
(71_461_000 as Weight)
|
(63_032_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
||||||
}
|
}
|
||||||
fn new_session(r: u32, c: u32) -> Weight {
|
// Storage: CollatorSelection Candidates (r:1 w:1)
|
||||||
|
// Storage: CollatorSelection LastAuthoredBlock (r:1000 w:1)
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
|
// Storage: CollatorSelection Invulnerables (r:1 w:0)
|
||||||
|
// Storage: System BlockWeight (r:1 w:1)
|
||||||
|
fn new_session(r: u32, c: u32, ) -> Weight {
|
||||||
(0 as Weight)
|
(0 as Weight)
|
||||||
// Standard Error: 1_010_000
|
// Standard Error: 4_328_000
|
||||||
.saturating_add((109_961_000 as Weight).saturating_mul(r as Weight))
|
.saturating_add((24_193_000 as Weight).saturating_mul(r as Weight))
|
||||||
// Standard Error: 1_010_000
|
// Standard Error: 4_328_000
|
||||||
.saturating_add((151_952_000 as Weight).saturating_mul(c as Weight))
|
.saturating_add((113_459_000 as Weight).saturating_mul(c as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(r as Weight)))
|
|
||||||
.saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(c as Weight)))
|
.saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(c as Weight)))
|
||||||
.saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(r as Weight)))
|
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(r as Weight)))
|
||||||
.saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(c as Weight)))
|
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(c as Weight)))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,27 @@
|
|||||||
//! Autogenerated weights for pallet_multisig
|
// Copyright 2021 Parity Technologies (UK) Ltd.
|
||||||
|
// This file is part of Cumulus.
|
||||||
|
|
||||||
|
// Cumulus is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
|
||||||
|
// Cumulus is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
//! Autogenerated weights for `pallet_multisig`
|
||||||
//!
|
//!
|
||||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||||
//! DATE: 2021-05-31, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
//! DATE: 2021-10-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemint-dev"), DB CACHE: 128
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemint-dev"), DB CACHE: 128
|
||||||
|
|
||||||
// Executed Command:
|
// Executed Command:
|
||||||
// ./target/release/statemint
|
// ./target/release/polkadot-collator
|
||||||
// benchmark
|
// benchmark
|
||||||
// --chain=statemint-dev
|
// --chain=statemint-dev
|
||||||
// --execution=wasm
|
// --execution=wasm
|
||||||
@@ -15,92 +31,115 @@
|
|||||||
// --steps=50
|
// --steps=50
|
||||||
// --repeat=20
|
// --repeat=20
|
||||||
// --raw
|
// --raw
|
||||||
// --output=./runtime/statemint/src/weights/
|
// --header=./file_header.txt
|
||||||
|
// --output=./polkadot-parachains/statemint/src/weights
|
||||||
|
|
||||||
|
|
||||||
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
#![allow(unused_parens)]
|
#![allow(unused_parens)]
|
||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
|
|
||||||
use frame_support::{traits::Get, weights::Weight};
|
use frame_support::{traits::Get, weights::Weight};
|
||||||
use sp_std::marker::PhantomData;
|
use sp_std::marker::PhantomData;
|
||||||
|
|
||||||
/// Weight functions for pallet_multisig.
|
/// Weight functions for `pallet_multisig`.
|
||||||
pub struct WeightInfo<T>(PhantomData<T>);
|
pub struct WeightInfo<T>(PhantomData<T>);
|
||||||
impl<T: frame_system::Config> pallet_multisig::WeightInfo for WeightInfo<T> {
|
impl<T: frame_system::Config> pallet_multisig::WeightInfo for WeightInfo<T> {
|
||||||
fn as_multi_threshold_1(z: u32) -> Weight {
|
fn as_multi_threshold_1(z: u32, ) -> Weight {
|
||||||
(14_936_000 as Weight)
|
(20_481_000 as Weight)
|
||||||
// Standard Error: 0
|
// Standard Error: 0
|
||||||
.saturating_add((1_000 as Weight).saturating_mul(z as Weight))
|
.saturating_add((1_000 as Weight).saturating_mul(z as Weight))
|
||||||
}
|
}
|
||||||
fn as_multi_create(s: u32, z: u32) -> Weight {
|
// Storage: Multisig Multisigs (r:1 w:1)
|
||||||
(56_090_000 as Weight)
|
// Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
|
||||||
// Standard Error: 1_000
|
fn as_multi_create(s: u32, z: u32, ) -> Weight {
|
||||||
.saturating_add((63_000 as Weight).saturating_mul(s as Weight))
|
(52_126_000 as Weight)
|
||||||
// Standard Error: 0
|
// Standard Error: 0
|
||||||
.saturating_add((1_000 as Weight).saturating_mul(z as Weight))
|
.saturating_add((165_000 as Weight).saturating_mul(s as Weight))
|
||||||
|
// Standard Error: 0
|
||||||
|
.saturating_add((2_000 as Weight).saturating_mul(z as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
fn as_multi_create_store(s: u32, z: u32) -> Weight {
|
// Storage: Multisig Multisigs (r:1 w:1)
|
||||||
(62_519_000 as Weight)
|
// Storage: Multisig Calls (r:1 w:1)
|
||||||
|
// Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
|
||||||
|
fn as_multi_create_store(s: u32, z: u32, ) -> Weight {
|
||||||
|
(57_999_000 as Weight)
|
||||||
// Standard Error: 1_000
|
// Standard Error: 1_000
|
||||||
.saturating_add((66_000 as Weight).saturating_mul(s as Weight))
|
.saturating_add((162_000 as Weight).saturating_mul(s as Weight))
|
||||||
// Standard Error: 0
|
// Standard Error: 0
|
||||||
.saturating_add((3_000 as Weight).saturating_mul(z as Weight))
|
.saturating_add((2_000 as Weight).saturating_mul(z as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
fn as_multi_approve(s: u32, z: u32) -> Weight {
|
// Storage: Multisig Multisigs (r:1 w:1)
|
||||||
(30_781_000 as Weight)
|
fn as_multi_approve(s: u32, z: u32, ) -> Weight {
|
||||||
|
(33_274_000 as Weight)
|
||||||
// Standard Error: 0
|
// Standard Error: 0
|
||||||
.saturating_add((111_000 as Weight).saturating_mul(s as Weight))
|
.saturating_add((157_000 as Weight).saturating_mul(s as Weight))
|
||||||
// Standard Error: 0
|
// Standard Error: 0
|
||||||
.saturating_add((1_000 as Weight).saturating_mul(z as Weight))
|
.saturating_add((1_000 as Weight).saturating_mul(z as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
fn as_multi_approve_store(s: u32, z: u32) -> Weight {
|
// Storage: Multisig Multisigs (r:1 w:1)
|
||||||
(60_393_000 as Weight)
|
// Storage: Multisig Calls (r:1 w:1)
|
||||||
|
fn as_multi_approve_store(s: u32, z: u32, ) -> Weight {
|
||||||
|
(55_348_000 as Weight)
|
||||||
// Standard Error: 0
|
// Standard Error: 0
|
||||||
.saturating_add((118_000 as Weight).saturating_mul(s as Weight))
|
.saturating_add((168_000 as Weight).saturating_mul(s as Weight))
|
||||||
// Standard Error: 0
|
// Standard Error: 0
|
||||||
.saturating_add((3_000 as Weight).saturating_mul(z as Weight))
|
.saturating_add((3_000 as Weight).saturating_mul(z as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
fn as_multi_complete(s: u32, z: u32) -> Weight {
|
// Storage: Multisig Multisigs (r:1 w:1)
|
||||||
(81_704_000 as Weight)
|
// Storage: Multisig Calls (r:1 w:1)
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
|
fn as_multi_complete(s: u32, z: u32, ) -> Weight {
|
||||||
|
(70_801_000 as Weight)
|
||||||
// Standard Error: 1_000
|
// Standard Error: 1_000
|
||||||
.saturating_add((248_000 as Weight).saturating_mul(s as Weight))
|
.saturating_add((251_000 as Weight).saturating_mul(s as Weight))
|
||||||
// Standard Error: 0
|
// Standard Error: 0
|
||||||
.saturating_add((5_000 as Weight).saturating_mul(z as Weight))
|
.saturating_add((4_000 as Weight).saturating_mul(z as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||||
}
|
}
|
||||||
fn approve_as_multi_create(s: u32) -> Weight {
|
// Storage: Multisig Multisigs (r:1 w:1)
|
||||||
(55_585_000 as Weight)
|
// Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
|
||||||
// Standard Error: 1_000
|
fn approve_as_multi_create(s: u32, ) -> Weight {
|
||||||
.saturating_add((115_000 as Weight).saturating_mul(s as Weight))
|
(51_302_000 as Weight)
|
||||||
|
// Standard Error: 0
|
||||||
|
.saturating_add((162_000 as Weight).saturating_mul(s as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
fn approve_as_multi_approve(s: u32) -> Weight {
|
// Storage: Multisig Multisigs (r:1 w:1)
|
||||||
(33_483_000 as Weight)
|
// Storage: Multisig Calls (r:1 w:0)
|
||||||
// Standard Error: 1_000
|
fn approve_as_multi_approve(s: u32, ) -> Weight {
|
||||||
.saturating_add((82_000 as Weight).saturating_mul(s as Weight))
|
(30_732_000 as Weight)
|
||||||
|
// Standard Error: 0
|
||||||
|
.saturating_add((161_000 as Weight).saturating_mul(s as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
fn approve_as_multi_complete(s: u32) -> Weight {
|
// Storage: Multisig Multisigs (r:1 w:1)
|
||||||
(154_732_000 as Weight)
|
// Storage: Multisig Calls (r:1 w:1)
|
||||||
// Standard Error: 1_000
|
// Storage: System Account (r:1 w:1)
|
||||||
.saturating_add((253_000 as Weight).saturating_mul(s as Weight))
|
fn approve_as_multi_complete(s: u32, ) -> Weight {
|
||||||
|
(105_647_000 as Weight)
|
||||||
|
// Standard Error: 0
|
||||||
|
.saturating_add((267_000 as Weight).saturating_mul(s as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||||
}
|
}
|
||||||
fn cancel_as_multi(s: u32) -> Weight {
|
// Storage: Multisig Multisigs (r:1 w:1)
|
||||||
(104_447_000 as Weight)
|
// Storage: Multisig Calls (r:1 w:1)
|
||||||
// Standard Error: 1_000
|
fn cancel_as_multi(s: u32, ) -> Weight {
|
||||||
.saturating_add((114_000 as Weight).saturating_mul(s as Weight))
|
(82_671_000 as Weight)
|
||||||
|
// Standard Error: 0
|
||||||
|
.saturating_add((154_000 as Weight).saturating_mul(s as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,27 @@
|
|||||||
//! Autogenerated weights for pallet_proxy
|
// Copyright 2021 Parity Technologies (UK) Ltd.
|
||||||
|
// This file is part of Cumulus.
|
||||||
|
|
||||||
|
// Cumulus is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
|
||||||
|
// Cumulus is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
//! Autogenerated weights for `pallet_proxy`
|
||||||
//!
|
//!
|
||||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||||
//! DATE: 2021-05-31, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
//! DATE: 2021-10-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemint-dev"), DB CACHE: 128
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemint-dev"), DB CACHE: 128
|
||||||
|
|
||||||
// Executed Command:
|
// Executed Command:
|
||||||
// ./target/release/statemint
|
// ./target/release/polkadot-collator
|
||||||
// benchmark
|
// benchmark
|
||||||
// --chain=statemint-dev
|
// --chain=statemint-dev
|
||||||
// --execution=wasm
|
// --execution=wasm
|
||||||
@@ -15,91 +31,111 @@
|
|||||||
// --steps=50
|
// --steps=50
|
||||||
// --repeat=20
|
// --repeat=20
|
||||||
// --raw
|
// --raw
|
||||||
// --output=./runtime/statemint/src/weights/
|
// --header=./file_header.txt
|
||||||
|
// --output=./polkadot-parachains/statemint/src/weights
|
||||||
|
|
||||||
|
|
||||||
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
#![allow(unused_parens)]
|
#![allow(unused_parens)]
|
||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
|
|
||||||
use frame_support::{traits::Get, weights::Weight};
|
use frame_support::{traits::Get, weights::Weight};
|
||||||
use sp_std::marker::PhantomData;
|
use sp_std::marker::PhantomData;
|
||||||
|
|
||||||
/// Weight functions for pallet_proxy.
|
/// Weight functions for `pallet_proxy`.
|
||||||
pub struct WeightInfo<T>(PhantomData<T>);
|
pub struct WeightInfo<T>(PhantomData<T>);
|
||||||
impl<T: frame_system::Config> pallet_proxy::WeightInfo for WeightInfo<T> {
|
impl<T: frame_system::Config> pallet_proxy::WeightInfo for WeightInfo<T> {
|
||||||
fn proxy(p: u32) -> Weight {
|
// Storage: Proxy Proxies (r:1 w:0)
|
||||||
(27_585_000 as Weight)
|
fn proxy(p: u32, ) -> Weight {
|
||||||
// Standard Error: 1_000
|
(23_855_000 as Weight)
|
||||||
.saturating_add((203_000 as Weight).saturating_mul(p as Weight))
|
// Standard Error: 2_000
|
||||||
|
.saturating_add((136_000 as Weight).saturating_mul(p as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
}
|
}
|
||||||
fn proxy_announced(a: u32, p: u32) -> Weight {
|
// Storage: Proxy Proxies (r:1 w:0)
|
||||||
(61_093_000 as Weight)
|
// Storage: Proxy Announcements (r:1 w:1)
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
|
fn proxy_announced(a: u32, p: u32, ) -> Weight {
|
||||||
|
(52_719_000 as Weight)
|
||||||
// Standard Error: 2_000
|
// Standard Error: 2_000
|
||||||
.saturating_add((680_000 as Weight).saturating_mul(a as Weight))
|
.saturating_add((498_000 as Weight).saturating_mul(a as Weight))
|
||||||
// Standard Error: 2_000
|
// Standard Error: 2_000
|
||||||
.saturating_add((201_000 as Weight).saturating_mul(p as Weight))
|
.saturating_add((151_000 as Weight).saturating_mul(p as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
fn remove_announcement(a: u32, p: u32) -> Weight {
|
// Storage: Proxy Announcements (r:1 w:1)
|
||||||
(39_494_000 as Weight)
|
// Storage: System Account (r:1 w:1)
|
||||||
|
fn remove_announcement(a: u32, p: u32, ) -> Weight {
|
||||||
|
(35_467_000 as Weight)
|
||||||
// Standard Error: 2_000
|
// Standard Error: 2_000
|
||||||
.saturating_add((686_000 as Weight).saturating_mul(a as Weight))
|
.saturating_add((494_000 as Weight).saturating_mul(a as Weight))
|
||||||
// Standard Error: 2_000
|
// Standard Error: 2_000
|
||||||
.saturating_add((1_000 as Weight).saturating_mul(p as Weight))
|
.saturating_add((27_000 as Weight).saturating_mul(p as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
fn reject_announcement(a: u32, p: u32) -> Weight {
|
// Storage: Proxy Announcements (r:1 w:1)
|
||||||
(39_817_000 as Weight)
|
// Storage: System Account (r:1 w:1)
|
||||||
|
fn reject_announcement(a: u32, p: u32, ) -> Weight {
|
||||||
|
(35_581_000 as Weight)
|
||||||
// Standard Error: 2_000
|
// Standard Error: 2_000
|
||||||
.saturating_add((685_000 as Weight).saturating_mul(a as Weight))
|
.saturating_add((498_000 as Weight).saturating_mul(a as Weight))
|
||||||
// Standard Error: 2_000
|
// Standard Error: 2_000
|
||||||
.saturating_add((1_000 as Weight).saturating_mul(p as Weight))
|
.saturating_add((21_000 as Weight).saturating_mul(p as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
fn announce(a: u32, p: u32) -> Weight {
|
// Storage: Proxy Proxies (r:1 w:0)
|
||||||
(54_835_000 as Weight)
|
// Storage: Proxy Announcements (r:1 w:1)
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
|
fn announce(a: u32, p: u32, ) -> Weight {
|
||||||
|
(49_663_000 as Weight)
|
||||||
// Standard Error: 2_000
|
// Standard Error: 2_000
|
||||||
.saturating_add((684_000 as Weight).saturating_mul(a as Weight))
|
.saturating_add((486_000 as Weight).saturating_mul(a as Weight))
|
||||||
// Standard Error: 2_000
|
// Standard Error: 2_000
|
||||||
.saturating_add((205_000 as Weight).saturating_mul(p as Weight))
|
.saturating_add((153_000 as Weight).saturating_mul(p as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
fn add_proxy(p: u32) -> Weight {
|
// Storage: Proxy Proxies (r:1 w:1)
|
||||||
(37_625_000 as Weight)
|
fn add_proxy(p: u32, ) -> Weight {
|
||||||
// Standard Error: 2_000
|
(42_248_000 as Weight)
|
||||||
.saturating_add((300_000 as Weight).saturating_mul(p as Weight))
|
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
|
||||||
}
|
|
||||||
fn remove_proxy(p: u32) -> Weight {
|
|
||||||
(36_945_000 as Weight)
|
|
||||||
// Standard Error: 3_000
|
// Standard Error: 3_000
|
||||||
.saturating_add((325_000 as Weight).saturating_mul(p as Weight))
|
.saturating_add((184_000 as Weight).saturating_mul(p as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
fn remove_proxies(p: u32) -> Weight {
|
// Storage: Proxy Proxies (r:1 w:1)
|
||||||
(35_128_000 as Weight)
|
fn remove_proxy(p: u32, ) -> Weight {
|
||||||
// Standard Error: 1_000
|
(34_549_000 as Weight)
|
||||||
.saturating_add((209_000 as Weight).saturating_mul(p as Weight))
|
// Standard Error: 3_000
|
||||||
|
.saturating_add((206_000 as Weight).saturating_mul(p as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
fn anonymous(p: u32) -> Weight {
|
// Storage: Proxy Proxies (r:1 w:1)
|
||||||
(51_624_000 as Weight)
|
fn remove_proxies(p: u32, ) -> Weight {
|
||||||
// Standard Error: 1_000
|
(33_717_000 as Weight)
|
||||||
.saturating_add((41_000 as Weight).saturating_mul(p as Weight))
|
// Standard Error: 3_000
|
||||||
|
.saturating_add((132_000 as Weight).saturating_mul(p as Weight))
|
||||||
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
|
}
|
||||||
|
// Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
|
||||||
|
// Storage: Proxy Proxies (r:1 w:1)
|
||||||
|
fn anonymous(p: u32, ) -> Weight {
|
||||||
|
(47_829_000 as Weight)
|
||||||
|
// Standard Error: 4_000
|
||||||
|
.saturating_add((23_000 as Weight).saturating_mul(p as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
fn kill_anonymous(p: u32) -> Weight {
|
// Storage: Proxy Proxies (r:1 w:1)
|
||||||
(37_469_000 as Weight)
|
fn kill_anonymous(p: u32, ) -> Weight {
|
||||||
// Standard Error: 1_000
|
(35_775_000 as Weight)
|
||||||
.saturating_add((204_000 as Weight).saturating_mul(p as Weight))
|
// Standard Error: 2_000
|
||||||
|
.saturating_add((126_000 as Weight).saturating_mul(p as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,23 @@
|
|||||||
//! Autogenerated weights for pallet_session
|
// Copyright 2021 Parity Technologies (UK) Ltd.
|
||||||
|
// This file is part of Cumulus.
|
||||||
|
|
||||||
|
// Cumulus is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
|
||||||
|
// Cumulus is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
//! Autogenerated weights for `pallet_session`
|
||||||
//!
|
//!
|
||||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||||
//! DATE: 2021-06-08, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
//! DATE: 2021-10-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemint-dev"), DB CACHE: 128
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemint-dev"), DB CACHE: 128
|
||||||
|
|
||||||
// Executed Command:
|
// Executed Command:
|
||||||
@@ -15,24 +31,31 @@
|
|||||||
// --steps=50
|
// --steps=50
|
||||||
// --repeat=20
|
// --repeat=20
|
||||||
// --raw
|
// --raw
|
||||||
// --output=./polkadot-parachains/statemint-runtime/src/weights
|
// --header=./file_header.txt
|
||||||
|
// --output=./polkadot-parachains/statemint/src/weights
|
||||||
|
|
||||||
|
|
||||||
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
#![allow(unused_parens)]
|
#![allow(unused_parens)]
|
||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
|
|
||||||
use frame_support::{traits::Get, weights::Weight};
|
use frame_support::{traits::Get, weights::Weight};
|
||||||
use sp_std::marker::PhantomData;
|
use sp_std::marker::PhantomData;
|
||||||
|
|
||||||
/// Weight functions for pallet_session.
|
/// Weight functions for `pallet_session`.
|
||||||
pub struct WeightInfo<T>(PhantomData<T>);
|
pub struct WeightInfo<T>(PhantomData<T>);
|
||||||
impl<T: frame_system::Config> pallet_session::WeightInfo for WeightInfo<T> {
|
impl<T: frame_system::Config> pallet_session::WeightInfo for WeightInfo<T> {
|
||||||
|
// Storage: Session NextKeys (r:1 w:1)
|
||||||
|
// Storage: Session KeyOwner (r:1 w:1)
|
||||||
fn set_keys() -> Weight {
|
fn set_keys() -> Weight {
|
||||||
(25_040_000 as Weight)
|
(24_826_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Session NextKeys (r:1 w:1)
|
||||||
|
// Storage: Session KeyOwner (r:0 w:1)
|
||||||
fn purge_keys() -> Weight {
|
fn purge_keys() -> Weight {
|
||||||
(17_551_000 as Weight)
|
(17_889_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,27 @@
|
|||||||
//! Autogenerated weights for pallet_timestamp
|
// Copyright 2021 Parity Technologies (UK) Ltd.
|
||||||
|
// This file is part of Cumulus.
|
||||||
|
|
||||||
|
// Cumulus is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
|
||||||
|
// Cumulus is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
//! Autogenerated weights for `pallet_timestamp`
|
||||||
//!
|
//!
|
||||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||||
//! DATE: 2021-05-31, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
//! DATE: 2021-10-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemint-dev"), DB CACHE: 128
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemint-dev"), DB CACHE: 128
|
||||||
|
|
||||||
// Executed Command:
|
// Executed Command:
|
||||||
// ./target/release/statemint
|
// ./target/release/polkadot-collator
|
||||||
// benchmark
|
// benchmark
|
||||||
// --chain=statemint-dev
|
// --chain=statemint-dev
|
||||||
// --execution=wasm
|
// --execution=wasm
|
||||||
@@ -15,23 +31,27 @@
|
|||||||
// --steps=50
|
// --steps=50
|
||||||
// --repeat=20
|
// --repeat=20
|
||||||
// --raw
|
// --raw
|
||||||
// --output=./runtime/statemint/src/weights/
|
// --header=./file_header.txt
|
||||||
|
// --output=./polkadot-parachains/statemint/src/weights
|
||||||
|
|
||||||
|
|
||||||
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
#![allow(unused_parens)]
|
#![allow(unused_parens)]
|
||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
|
|
||||||
use frame_support::{traits::Get, weights::Weight};
|
use frame_support::{traits::Get, weights::Weight};
|
||||||
use sp_std::marker::PhantomData;
|
use sp_std::marker::PhantomData;
|
||||||
|
|
||||||
/// Weight functions for pallet_timestamp.
|
/// Weight functions for `pallet_timestamp`.
|
||||||
pub struct WeightInfo<T>(PhantomData<T>);
|
pub struct WeightInfo<T>(PhantomData<T>);
|
||||||
impl<T: frame_system::Config> pallet_timestamp::WeightInfo for WeightInfo<T> {
|
impl<T: frame_system::Config> pallet_timestamp::WeightInfo for WeightInfo<T> {
|
||||||
|
// Storage: Timestamp Now (r:1 w:1)
|
||||||
fn set() -> Weight {
|
fn set() -> Weight {
|
||||||
(7_687_000 as Weight)
|
(7_463_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
fn on_finalize() -> Weight {
|
fn on_finalize() -> Weight {
|
||||||
(4_303_000 as Weight)
|
(4_400_000 as Weight)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,53 +14,63 @@
|
|||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
|
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
//! Autogenerated weights for pallet_uniques
|
//! Autogenerated weights for `pallet_uniques`
|
||||||
//!
|
//!
|
||||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||||
//! DATE: 2021-06-02, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
//! DATE: 2021-10-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemine-dev"), DB CACHE: 128
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemint-dev"), DB CACHE: 128
|
||||||
|
|
||||||
// Executed Command:
|
// Executed Command:
|
||||||
// ./target/release/polkadot-collator
|
// ./target/release/polkadot-collator
|
||||||
// benchmark
|
// benchmark
|
||||||
// --chain=statemine-dev
|
// --chain=statemint-dev
|
||||||
// --steps=50
|
|
||||||
// --repeat=20
|
|
||||||
// --pallet=pallet_uniques
|
|
||||||
// --extrinsic=*
|
|
||||||
// --execution=wasm
|
// --execution=wasm
|
||||||
// --wasm-execution=compiled
|
// --wasm-execution=compiled
|
||||||
// --heap-pages=4096
|
// --pallet=pallet_uniques
|
||||||
|
// --extrinsic=*
|
||||||
|
// --steps=50
|
||||||
|
// --repeat=20
|
||||||
|
// --raw
|
||||||
// --header=./file_header.txt
|
// --header=./file_header.txt
|
||||||
// --output=./polkadot-parachains/statemine-runtime/src/weights/
|
// --output=./polkadot-parachains/statemint/src/weights
|
||||||
|
|
||||||
|
|
||||||
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
#![allow(unused_parens)]
|
#![allow(unused_parens)]
|
||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
|
|
||||||
use frame_support::{traits::Get, weights::Weight};
|
use frame_support::{traits::Get, weights::Weight};
|
||||||
use sp_std::marker::PhantomData;
|
use sp_std::marker::PhantomData;
|
||||||
|
|
||||||
/// Weight functions for pallet_uniques.
|
/// Weight functions for `pallet_uniques`.
|
||||||
pub struct WeightInfo<T>(PhantomData<T>);
|
pub struct WeightInfo<T>(PhantomData<T>);
|
||||||
impl<T: frame_system::Config> pallet_uniques::WeightInfo for WeightInfo<T> {
|
impl<T: frame_system::Config> pallet_uniques::WeightInfo for WeightInfo<T> {
|
||||||
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
fn create() -> Weight {
|
fn create() -> Weight {
|
||||||
(42_199_000 as Weight)
|
(41_295_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
fn force_create() -> Weight {
|
fn force_create() -> Weight {
|
||||||
(21_030_000 as Weight)
|
(21_168_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
fn destroy(n: u32, m: u32, a: u32) -> Weight {
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
|
// Storage: Uniques Asset (r:1 w:0)
|
||||||
|
// Storage: Uniques Attribute (r:0 w:1000)
|
||||||
|
// Storage: Uniques ClassMetadataOf (r:0 w:1)
|
||||||
|
// Storage: Uniques InstanceMetadataOf (r:0 w:1000)
|
||||||
|
// Storage: Uniques Account (r:0 w:20)
|
||||||
|
fn destroy(n: u32, m: u32, a: u32, ) -> Weight {
|
||||||
(0 as Weight)
|
(0 as Weight)
|
||||||
// Standard Error: 14_000
|
// Standard Error: 12_000
|
||||||
.saturating_add((16_814_000 as Weight).saturating_mul(n as Weight))
|
.saturating_add((15_340_000 as Weight).saturating_mul(n as Weight))
|
||||||
// Standard Error: 14_000
|
// Standard Error: 12_000
|
||||||
.saturating_add((1_026_000 as Weight).saturating_mul(m as Weight))
|
.saturating_add((1_028_000 as Weight).saturating_mul(m as Weight))
|
||||||
// Standard Error: 14_000
|
// Standard Error: 12_000
|
||||||
.saturating_add((952_000 as Weight).saturating_mul(a as Weight))
|
.saturating_add((792_000 as Weight).saturating_mul(a as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(n as Weight)))
|
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(n as Weight)))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
@@ -68,102 +78,141 @@ impl<T: frame_system::Config> pallet_uniques::WeightInfo for WeightInfo<T> {
|
|||||||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(m as Weight)))
|
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(m as Weight)))
|
||||||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(a as Weight)))
|
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(a as Weight)))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Asset (r:1 w:1)
|
||||||
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
|
// Storage: Uniques Account (r:0 w:1)
|
||||||
fn mint() -> Weight {
|
fn mint() -> Weight {
|
||||||
(57_236_000 as Weight)
|
(54_671_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
|
// Storage: Uniques Asset (r:1 w:1)
|
||||||
|
// Storage: Uniques Account (r:0 w:1)
|
||||||
fn burn() -> Weight {
|
fn burn() -> Weight {
|
||||||
(58_129_000 as Weight)
|
(57_152_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:0)
|
||||||
|
// Storage: Uniques Asset (r:1 w:1)
|
||||||
|
// Storage: Uniques Account (r:0 w:2)
|
||||||
fn transfer() -> Weight {
|
fn transfer() -> Weight {
|
||||||
(42_980_000 as Weight)
|
(42_605_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||||
}
|
}
|
||||||
fn redeposit(i: u32) -> Weight {
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
|
// Storage: Uniques Asset (r:100 w:100)
|
||||||
|
fn redeposit(i: u32, ) -> Weight {
|
||||||
(0 as Weight)
|
(0 as Weight)
|
||||||
// Standard Error: 11_000
|
// Standard Error: 13_000
|
||||||
.saturating_add((26_921_000 as Weight).saturating_mul(i as Weight))
|
.saturating_add((24_908_000 as Weight).saturating_mul(i as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(i as Weight)))
|
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(i as Weight)))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(i as Weight)))
|
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(i as Weight)))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Asset (r:1 w:1)
|
||||||
|
// Storage: Uniques Class (r:1 w:0)
|
||||||
fn freeze() -> Weight {
|
fn freeze() -> Weight {
|
||||||
(30_427_000 as Weight)
|
(29_580_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Asset (r:1 w:1)
|
||||||
|
// Storage: Uniques Class (r:1 w:0)
|
||||||
fn thaw() -> Weight {
|
fn thaw() -> Weight {
|
||||||
(29_789_000 as Weight)
|
(29_645_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
fn freeze_class() -> Weight {
|
fn freeze_class() -> Weight {
|
||||||
(21_380_000 as Weight)
|
(22_009_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
fn thaw_class() -> Weight {
|
fn thaw_class() -> Weight {
|
||||||
(21_430_000 as Weight)
|
(22_248_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
fn transfer_ownership() -> Weight {
|
fn transfer_ownership() -> Weight {
|
||||||
(49_331_000 as Weight)
|
(48_951_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
fn set_team() -> Weight {
|
fn set_team() -> Weight {
|
||||||
(22_305_000 as Weight)
|
(23_516_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
fn force_asset_status() -> Weight {
|
fn force_asset_status() -> Weight {
|
||||||
(21_965_000 as Weight)
|
(22_564_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
|
// Storage: Uniques InstanceMetadataOf (r:1 w:0)
|
||||||
|
// Storage: Uniques Attribute (r:1 w:1)
|
||||||
fn set_attribute() -> Weight {
|
fn set_attribute() -> Weight {
|
||||||
(70_386_000 as Weight)
|
(69_093_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
|
// Storage: Uniques InstanceMetadataOf (r:1 w:0)
|
||||||
|
// Storage: Uniques Attribute (r:1 w:1)
|
||||||
fn clear_attribute() -> Weight {
|
fn clear_attribute() -> Weight {
|
||||||
(63_932_000 as Weight)
|
(61_525_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
|
// Storage: Uniques InstanceMetadataOf (r:1 w:1)
|
||||||
fn set_metadata() -> Weight {
|
fn set_metadata() -> Weight {
|
||||||
(53_647_000 as Weight)
|
(52_673_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
|
// Storage: Uniques InstanceMetadataOf (r:1 w:1)
|
||||||
fn clear_metadata() -> Weight {
|
fn clear_metadata() -> Weight {
|
||||||
(52_353_000 as Weight)
|
(50_329_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
|
// Storage: Uniques ClassMetadataOf (r:1 w:1)
|
||||||
fn set_class_metadata() -> Weight {
|
fn set_class_metadata() -> Weight {
|
||||||
(51_900_000 as Weight)
|
(51_354_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:0)
|
||||||
|
// Storage: Uniques ClassMetadataOf (r:1 w:1)
|
||||||
fn clear_class_metadata() -> Weight {
|
fn clear_class_metadata() -> Weight {
|
||||||
(46_929_000 as Weight)
|
(46_499_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:0)
|
||||||
|
// Storage: Uniques Asset (r:1 w:1)
|
||||||
fn approve_transfer() -> Weight {
|
fn approve_transfer() -> Weight {
|
||||||
(32_693_000 as Weight)
|
(31_660_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:0)
|
||||||
|
// Storage: Uniques Asset (r:1 w:1)
|
||||||
fn cancel_approval() -> Weight {
|
fn cancel_approval() -> Weight {
|
||||||
(32_418_000 as Weight)
|
(32_436_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,27 @@
|
|||||||
//! Autogenerated weights for pallet_utility
|
// Copyright 2021 Parity Technologies (UK) Ltd.
|
||||||
|
// This file is part of Cumulus.
|
||||||
|
|
||||||
|
// Cumulus is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
|
||||||
|
// Cumulus is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
//! Autogenerated weights for `pallet_utility`
|
||||||
//!
|
//!
|
||||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||||
//! DATE: 2021-05-31, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
//! DATE: 2021-10-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemint-dev"), DB CACHE: 128
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemint-dev"), DB CACHE: 128
|
||||||
|
|
||||||
// Executed Command:
|
// Executed Command:
|
||||||
// ./target/release/statemint
|
// ./target/release/polkadot-collator
|
||||||
// benchmark
|
// benchmark
|
||||||
// --chain=statemint-dev
|
// --chain=statemint-dev
|
||||||
// --execution=wasm
|
// --execution=wasm
|
||||||
@@ -15,28 +31,31 @@
|
|||||||
// --steps=50
|
// --steps=50
|
||||||
// --repeat=20
|
// --repeat=20
|
||||||
// --raw
|
// --raw
|
||||||
// --output=./runtime/statemint/src/weights/
|
// --header=./file_header.txt
|
||||||
|
// --output=./polkadot-parachains/statemint/src/weights
|
||||||
|
|
||||||
|
|
||||||
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
#![allow(unused_parens)]
|
#![allow(unused_parens)]
|
||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
|
|
||||||
use frame_support::{traits::Get, weights::Weight};
|
use frame_support::{traits::Get, weights::Weight};
|
||||||
use sp_std::marker::PhantomData;
|
use sp_std::marker::PhantomData;
|
||||||
|
|
||||||
/// Weight functions for pallet_utility.
|
/// Weight functions for `pallet_utility`.
|
||||||
pub struct WeightInfo<T>(PhantomData<T>);
|
pub struct WeightInfo<T>(PhantomData<T>);
|
||||||
impl<T: frame_system::Config> pallet_utility::WeightInfo for WeightInfo<T> {
|
impl<T: frame_system::Config> pallet_utility::WeightInfo for WeightInfo<T> {
|
||||||
fn batch(c: u32) -> Weight {
|
fn batch(c: u32, ) -> Weight {
|
||||||
(15_408_000 as Weight)
|
(30_046_000 as Weight)
|
||||||
// Standard Error: 0
|
// Standard Error: 3_000
|
||||||
.saturating_add((4_571_000 as Weight).saturating_mul(c as Weight))
|
.saturating_add((6_946_000 as Weight).saturating_mul(c as Weight))
|
||||||
}
|
}
|
||||||
fn as_derivative() -> Weight {
|
fn as_derivative() -> Weight {
|
||||||
(7_817_000 as Weight)
|
(5_187_000 as Weight)
|
||||||
}
|
}
|
||||||
fn batch_all(c: u32) -> Weight {
|
fn batch_all(c: u32, ) -> Weight {
|
||||||
(16_520_000 as Weight)
|
(46_068_000 as Weight)
|
||||||
// Standard Error: 0
|
// Standard Error: 4_000
|
||||||
.saturating_add((4_571_000 as Weight).saturating_mul(c as Weight))
|
.saturating_add((7_471_000 as Weight).saturating_mul(c as Weight))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,7 +40,6 @@ pallet-authorship = { git = "https://github.com/paritytech/substrate", default-f
|
|||||||
pallet-balances = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
pallet-balances = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
||||||
pallet-multisig = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
pallet-multisig = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
||||||
pallet-proxy = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
pallet-proxy = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
||||||
pallet-randomness-collective-flip = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
|
||||||
pallet-session = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
pallet-session = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
||||||
pallet-sudo = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
pallet-sudo = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
||||||
pallet-timestamp = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
pallet-timestamp = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
||||||
@@ -127,7 +126,6 @@ std = [
|
|||||||
"pallet-balances/std",
|
"pallet-balances/std",
|
||||||
"pallet-multisig/std",
|
"pallet-multisig/std",
|
||||||
"pallet-proxy/std",
|
"pallet-proxy/std",
|
||||||
"pallet-randomness-collective-flip/std",
|
|
||||||
"pallet-session/std",
|
"pallet-session/std",
|
||||||
"pallet-sudo/std",
|
"pallet-sudo/std",
|
||||||
"pallet-timestamp/std",
|
"pallet-timestamp/std",
|
||||||
|
|||||||
@@ -70,12 +70,13 @@ use polkadot_parachain::primitives::Sibling;
|
|||||||
use polkadot_runtime_common::{BlockHashCount, RocksDbWeight, SlowAdjustingFeeUpdate};
|
use polkadot_runtime_common::{BlockHashCount, RocksDbWeight, SlowAdjustingFeeUpdate};
|
||||||
use xcm::latest::prelude::*;
|
use xcm::latest::prelude::*;
|
||||||
use xcm_builder::{
|
use xcm_builder::{
|
||||||
AccountId32Aliases, AllowTopLevelPaidExecutionFrom, AllowUnpaidExecutionFrom,
|
AccountId32Aliases, AllowKnownQueryResponses, AllowSubscriptionsFrom,
|
||||||
AsPrefixedGeneralIndex, ConvertedConcreteAssetId, CurrencyAdapter, EnsureXcmOrigin,
|
AllowTopLevelPaidExecutionFrom, AllowUnpaidExecutionFrom, AsPrefixedGeneralIndex,
|
||||||
FixedWeightBounds, FungiblesAdapter, IsConcrete, LocationInverter, NativeAsset,
|
ConvertedConcreteAssetId, CurrencyAdapter, EnsureXcmOrigin, FixedWeightBounds,
|
||||||
ParentAsSuperuser, ParentIsDefault, RelayChainAsNative, SiblingParachainAsNative,
|
FungiblesAdapter, IsConcrete, LocationInverter, NativeAsset, ParentAsSuperuser,
|
||||||
SiblingParachainConvertsVia, SignedAccountId32AsNative, SignedToAccountId32,
|
ParentIsDefault, RelayChainAsNative, SiblingParachainAsNative, SiblingParachainConvertsVia,
|
||||||
SovereignSignedViaLocation, TakeWeightCredit, UsingComponents,
|
SignedAccountId32AsNative, SignedToAccountId32, SovereignSignedViaLocation, TakeWeightCredit,
|
||||||
|
UsingComponents,
|
||||||
};
|
};
|
||||||
use xcm_executor::{traits::JustTry, Config, XcmExecutor};
|
use xcm_executor::{traits::JustTry, Config, XcmExecutor};
|
||||||
|
|
||||||
@@ -90,10 +91,10 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
|
|||||||
spec_name: create_runtime_str!("westmint"),
|
spec_name: create_runtime_str!("westmint"),
|
||||||
impl_name: create_runtime_str!("westmint"),
|
impl_name: create_runtime_str!("westmint"),
|
||||||
authoring_version: 1,
|
authoring_version: 1,
|
||||||
spec_version: 5,
|
spec_version: 600,
|
||||||
impl_version: 0,
|
impl_version: 0,
|
||||||
apis: RUNTIME_API_VERSIONS,
|
apis: RUNTIME_API_VERSIONS,
|
||||||
transaction_version: 3,
|
transaction_version: 4,
|
||||||
};
|
};
|
||||||
|
|
||||||
/// The version information used to identify this runtime when compiled natively.
|
/// The version information used to identify this runtime when compiled natively.
|
||||||
@@ -212,15 +213,6 @@ impl pallet_transaction_payment::Config for Runtime {
|
|||||||
type OperationalFeeMultiplier = OperationalFeeMultiplier;
|
type OperationalFeeMultiplier = OperationalFeeMultiplier;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl pallet_randomness_collective_flip::Config for Runtime {}
|
|
||||||
|
|
||||||
impl pallet_sudo::Config for Runtime {
|
|
||||||
type Event = Event;
|
|
||||||
type Call = Call;
|
|
||||||
}
|
|
||||||
|
|
||||||
pub type AssetsForceOrigin = EnsureRoot<AccountId>;
|
|
||||||
|
|
||||||
parameter_types! {
|
parameter_types! {
|
||||||
pub const AssetDeposit: Balance = 1 * UNITS; // 1 WND deposit to create asset
|
pub const AssetDeposit: Balance = 1 * UNITS; // 1 WND deposit to create asset
|
||||||
pub const ApprovalDeposit: Balance = EXISTENTIAL_DEPOSIT;
|
pub const ApprovalDeposit: Balance = EXISTENTIAL_DEPOSIT;
|
||||||
@@ -231,6 +223,8 @@ parameter_types! {
|
|||||||
pub const MetadataDepositPerByte: Balance = deposit(0, 1);
|
pub const MetadataDepositPerByte: Balance = deposit(0, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub type AssetsForceOrigin = EnsureRoot<AccountId>;
|
||||||
|
|
||||||
impl pallet_assets::Config for Runtime {
|
impl pallet_assets::Config for Runtime {
|
||||||
type Event = Event;
|
type Event = Event;
|
||||||
type Balance = Balance;
|
type Balance = Balance;
|
||||||
@@ -300,7 +294,7 @@ parameter_types! {
|
|||||||
pub enum ProxyType {
|
pub enum ProxyType {
|
||||||
/// Fully permissioned proxy. Can execute any call on behalf of _proxied_.
|
/// Fully permissioned proxy. Can execute any call on behalf of _proxied_.
|
||||||
Any,
|
Any,
|
||||||
/// Can execute any call that does not transfer funds, including asset transfers.
|
/// Can execute any call that does not transfer funds or assets.
|
||||||
NonTransfer,
|
NonTransfer,
|
||||||
/// Proxy with the ability to reject time-delay proxy announcements.
|
/// Proxy with the ability to reject time-delay proxy announcements.
|
||||||
CancelProxy,
|
CancelProxy,
|
||||||
@@ -510,7 +504,8 @@ pub type XcmOriginToTransactDispatchOrigin = (
|
|||||||
);
|
);
|
||||||
|
|
||||||
parameter_types! {
|
parameter_types! {
|
||||||
pub UnitWeightCost: Weight = 1_000;
|
// One XCM operation is 1_000_000_000 weight - almost certainly a conservative estimate.
|
||||||
|
pub UnitWeightCost: Weight = 1_000_000_000;
|
||||||
pub const MaxInstructions: u32 = 100;
|
pub const MaxInstructions: u32 = 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -524,8 +519,12 @@ match_type! {
|
|||||||
pub type Barrier = (
|
pub type Barrier = (
|
||||||
TakeWeightCredit,
|
TakeWeightCredit,
|
||||||
AllowTopLevelPaidExecutionFrom<Everything>,
|
AllowTopLevelPaidExecutionFrom<Everything>,
|
||||||
|
// Parent and its plurality get free execution
|
||||||
AllowUnpaidExecutionFrom<ParentOrParentsPlurality>,
|
AllowUnpaidExecutionFrom<ParentOrParentsPlurality>,
|
||||||
// ^^^ Parent & its plurality gets free execution
|
// Expected responses are OK.
|
||||||
|
AllowKnownQueryResponses<PolkadotXcm>,
|
||||||
|
// Subscriptions for version tracking are OK.
|
||||||
|
AllowSubscriptionsFrom<Everything>,
|
||||||
);
|
);
|
||||||
|
|
||||||
pub struct XcmConfig;
|
pub struct XcmConfig;
|
||||||
@@ -557,7 +556,7 @@ pub type LocalOriginToLocation = SignedToAccountId32<Origin, AccountId, RelayNet
|
|||||||
/// queues.
|
/// queues.
|
||||||
pub type XcmRouter = (
|
pub type XcmRouter = (
|
||||||
// Two routers - use UMP to communicate with the relay chain:
|
// Two routers - use UMP to communicate with the relay chain:
|
||||||
cumulus_primitives_utility::ParentAsUmp<ParachainSystem, ()>,
|
cumulus_primitives_utility::ParentAsUmp<ParachainSystem, PolkadotXcm>,
|
||||||
// ..and XCMP to communicate with the sibling chains.
|
// ..and XCMP to communicate with the sibling chains.
|
||||||
XcmpQueue,
|
XcmpQueue,
|
||||||
);
|
);
|
||||||
@@ -575,7 +574,6 @@ impl pallet_xcm::Config for Runtime {
|
|||||||
type LocationInverter = LocationInverter<Ancestry>;
|
type LocationInverter = LocationInverter<Ancestry>;
|
||||||
type Origin = Origin;
|
type Origin = Origin;
|
||||||
type Call = Call;
|
type Call = Call;
|
||||||
|
|
||||||
const VERSION_DISCOVERY_QUEUE_SIZE: u32 = 100;
|
const VERSION_DISCOVERY_QUEUE_SIZE: u32 = 100;
|
||||||
// Override for AdvertisedXcmVersion default
|
// Override for AdvertisedXcmVersion default
|
||||||
type AdvertisedXcmVersion = pallet_xcm::CurrentXcmVersion;
|
type AdvertisedXcmVersion = pallet_xcm::CurrentXcmVersion;
|
||||||
@@ -590,7 +588,7 @@ impl cumulus_pallet_xcmp_queue::Config for Runtime {
|
|||||||
type Event = Event;
|
type Event = Event;
|
||||||
type XcmExecutor = XcmExecutor<XcmConfig>;
|
type XcmExecutor = XcmExecutor<XcmConfig>;
|
||||||
type ChannelInfo = ParachainSystem;
|
type ChannelInfo = ParachainSystem;
|
||||||
type VersionWrapper = ();
|
type VersionWrapper = PolkadotXcm;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl cumulus_pallet_dmp_queue::Config for Runtime {
|
impl cumulus_pallet_dmp_queue::Config for Runtime {
|
||||||
@@ -633,10 +631,12 @@ parameter_types! {
|
|||||||
pub const MaxInvulnerables: u32 = 100;
|
pub const MaxInvulnerables: u32 = 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub type CollatorSelectionUpdateOrigin = EnsureRoot<AccountId>;
|
||||||
|
|
||||||
impl pallet_collator_selection::Config for Runtime {
|
impl pallet_collator_selection::Config for Runtime {
|
||||||
type Event = Event;
|
type Event = Event;
|
||||||
type Currency = Balances;
|
type Currency = Balances;
|
||||||
type UpdateOrigin = EnsureRoot<AccountId>;
|
type UpdateOrigin = CollatorSelectionUpdateOrigin;
|
||||||
type PotId = PotId;
|
type PotId = PotId;
|
||||||
type MaxCandidates = MaxCandidates;
|
type MaxCandidates = MaxCandidates;
|
||||||
type MinCandidates = MinCandidates;
|
type MinCandidates = MinCandidates;
|
||||||
@@ -685,6 +685,11 @@ impl pallet_uniques::Config for Runtime {
|
|||||||
type WeightInfo = weights::pallet_uniques::WeightInfo<Runtime>;
|
type WeightInfo = weights::pallet_uniques::WeightInfo<Runtime>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl pallet_sudo::Config for Runtime {
|
||||||
|
type Event = Event;
|
||||||
|
type Call = Call;
|
||||||
|
}
|
||||||
|
|
||||||
// Create the runtime by composing the FRAME pallets that were previously configured.
|
// Create the runtime by composing the FRAME pallets that were previously configured.
|
||||||
construct_runtime!(
|
construct_runtime!(
|
||||||
pub enum Runtime where
|
pub enum Runtime where
|
||||||
@@ -692,44 +697,44 @@ construct_runtime!(
|
|||||||
NodeBlock = opaque::Block,
|
NodeBlock = opaque::Block,
|
||||||
UncheckedExtrinsic = UncheckedExtrinsic,
|
UncheckedExtrinsic = UncheckedExtrinsic,
|
||||||
{
|
{
|
||||||
// System support stuff;
|
// System support stuff.
|
||||||
System: frame_system::{Pallet, Call, Config, Storage, Event<T>},
|
System: frame_system::{Pallet, Call, Config, Storage, Event<T>} = 0,
|
||||||
ParachainSystem: cumulus_pallet_parachain_system::{
|
ParachainSystem: cumulus_pallet_parachain_system::{
|
||||||
Pallet, Call, Config, Storage, Inherent, Event<T>, ValidateUnsigned,
|
Pallet, Call, Config, Storage, Inherent, Event<T>, ValidateUnsigned,
|
||||||
},
|
} = 1,
|
||||||
RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage},
|
// RandomnessCollectiveFlip = 2 removed
|
||||||
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent},
|
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent} = 3,
|
||||||
ParachainInfo: parachain_info::{Pallet, Storage, Config},
|
ParachainInfo: parachain_info::{Pallet, Storage, Config} = 4,
|
||||||
Sudo: pallet_sudo::{Pallet, Call, Config<T>, Storage, Event<T>},
|
|
||||||
|
|
||||||
// Monetary stuff;
|
// Monetary stuff.
|
||||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>} = 10,
|
||||||
TransactionPayment: pallet_transaction_payment::{Pallet, Storage},
|
TransactionPayment: pallet_transaction_payment::{Pallet, Storage} = 11,
|
||||||
|
AssetTxPayment: pallet_asset_tx_payment::{Pallet} = 12,
|
||||||
|
|
||||||
// Collator support. the order of these 4 are important and shall not change.
|
// Collator support. the order of these 5 are important and shall not change.
|
||||||
Authorship: pallet_authorship::{Pallet, Call, Storage},
|
Authorship: pallet_authorship::{Pallet, Call, Storage} = 20,
|
||||||
CollatorSelection: pallet_collator_selection::{Pallet, Call, Storage, Event<T>, Config<T>},
|
CollatorSelection: pallet_collator_selection::{Pallet, Call, Storage, Event<T>, Config<T>} = 21,
|
||||||
Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>},
|
Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>} = 22,
|
||||||
Aura: pallet_aura::{Pallet, Storage, Config<T>},
|
Aura: pallet_aura::{Pallet, Storage, Config<T>} = 23,
|
||||||
AuraExt: cumulus_pallet_aura_ext::{Pallet, Storage, Config},
|
AuraExt: cumulus_pallet_aura_ext::{Pallet, Storage, Config} = 24,
|
||||||
|
|
||||||
// The main stage.
|
|
||||||
Utility: pallet_utility::{Pallet, Call, Event},
|
|
||||||
Assets: pallet_assets::{Pallet, Call, Storage, Event<T>},
|
|
||||||
Multisig: pallet_multisig::{Pallet, Call, Storage, Event<T>},
|
|
||||||
Proxy: pallet_proxy::{Pallet, Call, Storage, Event<T>},
|
|
||||||
|
|
||||||
// XCM helpers.
|
// XCM helpers.
|
||||||
XcmpQueue: cumulus_pallet_xcmp_queue::{Pallet, Call, Storage, Event<T>},
|
XcmpQueue: cumulus_pallet_xcmp_queue::{Pallet, Call, Storage, Event<T>} = 30,
|
||||||
PolkadotXcm: pallet_xcm::{Pallet, Call, Event<T>, Origin},
|
PolkadotXcm: pallet_xcm::{Pallet, Call, Storage, Event<T>, Origin} = 31,
|
||||||
CumulusXcm: cumulus_pallet_xcm::{Pallet, Event<T>, Origin},
|
CumulusXcm: cumulus_pallet_xcm::{Pallet, Event<T>, Origin} = 32,
|
||||||
DmpQueue: cumulus_pallet_dmp_queue::{Pallet, Call, Storage, Event<T>},
|
DmpQueue: cumulus_pallet_dmp_queue::{Pallet, Call, Storage, Event<T>} = 33,
|
||||||
|
|
||||||
// More things for the main stage
|
// Handy utilities.
|
||||||
Uniques: pallet_uniques::{Pallet, Call, Storage, Event<T>},
|
Utility: pallet_utility::{Pallet, Call, Event} = 40,
|
||||||
|
Multisig: pallet_multisig::{Pallet, Call, Storage, Event<T>} = 41,
|
||||||
|
Proxy: pallet_proxy::{Pallet, Call, Storage, Event<T>} = 42,
|
||||||
|
|
||||||
// More Monetary stuff
|
// The main stage.
|
||||||
AssetTxPayment: pallet_asset_tx_payment::{Pallet},
|
Assets: pallet_assets::{Pallet, Call, Storage, Event<T>} = 50,
|
||||||
|
Uniques: pallet_uniques::{Pallet, Call, Storage, Event<T>} = 51,
|
||||||
|
|
||||||
|
// Sudo pallet to force root
|
||||||
|
Sudo: pallet_sudo::{Pallet, Call, Config<T>, Storage, Event<T>} = 255,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -762,9 +767,19 @@ pub type Executive = frame_executive::Executive<
|
|||||||
frame_system::ChainContext<Runtime>,
|
frame_system::ChainContext<Runtime>,
|
||||||
Runtime,
|
Runtime,
|
||||||
AllPallets,
|
AllPallets,
|
||||||
(),
|
RemoveCollectiveFlip,
|
||||||
>;
|
>;
|
||||||
|
|
||||||
|
pub struct RemoveCollectiveFlip;
|
||||||
|
impl frame_support::traits::OnRuntimeUpgrade for RemoveCollectiveFlip {
|
||||||
|
fn on_runtime_upgrade() -> Weight {
|
||||||
|
use frame_support::storage::migration;
|
||||||
|
// Remove the storage value `RandomMaterial` from removed pallet `RandomnessCollectiveFlip`
|
||||||
|
migration::remove_storage_prefix(b"RandomnessCollectiveFlip", b"RandomMaterial", b"");
|
||||||
|
<Runtime as frame_system::Config>::DbWeight::get().writes(1)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl_runtime_apis! {
|
impl_runtime_apis! {
|
||||||
impl sp_consensus_aura::AuraApi<Block, AuraId> for Runtime {
|
impl sp_consensus_aura::AuraApi<Block, AuraId> for Runtime {
|
||||||
fn slot_duration() -> sp_consensus_aura::SlotDuration {
|
fn slot_duration() -> sp_consensus_aura::SlotDuration {
|
||||||
@@ -934,6 +949,7 @@ impl_runtime_apis! {
|
|||||||
add_benchmark!(params, batches, pallet_multisig, Multisig);
|
add_benchmark!(params, batches, pallet_multisig, Multisig);
|
||||||
add_benchmark!(params, batches, pallet_proxy, Proxy);
|
add_benchmark!(params, batches, pallet_proxy, Proxy);
|
||||||
add_benchmark!(params, batches, pallet_session, SessionBench::<Runtime>);
|
add_benchmark!(params, batches, pallet_session, SessionBench::<Runtime>);
|
||||||
|
add_benchmark!(params, batches, pallet_uniques, Uniques);
|
||||||
add_benchmark!(params, batches, pallet_utility, Utility);
|
add_benchmark!(params, batches, pallet_utility, Utility);
|
||||||
add_benchmark!(params, batches, pallet_timestamp, Timestamp);
|
add_benchmark!(params, batches, pallet_timestamp, Timestamp);
|
||||||
add_benchmark!(params, batches, pallet_collator_selection, CollatorSelection);
|
add_benchmark!(params, batches, pallet_collator_selection, CollatorSelection);
|
||||||
|
|||||||
@@ -1,13 +1,29 @@
|
|||||||
//! Autogenerated weights for pallet_assets
|
// Copyright 2021 Parity Technologies (UK) Ltd.
|
||||||
|
// This file is part of Cumulus.
|
||||||
|
|
||||||
|
// Cumulus is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
|
||||||
|
// Cumulus is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
//! Autogenerated weights for `pallet_assets`
|
||||||
//!
|
//!
|
||||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||||
//! DATE: 2021-05-31, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
//! DATE: 2021-10-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemint-dev"), DB CACHE: 128
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("westmint-dev"), DB CACHE: 128
|
||||||
|
|
||||||
// Executed Command:
|
// Executed Command:
|
||||||
// ./target/release/statemint
|
// ./target/release/polkadot-collator
|
||||||
// benchmark
|
// benchmark
|
||||||
// --chain=statemint-dev
|
// --chain=westmint-dev
|
||||||
// --execution=wasm
|
// --execution=wasm
|
||||||
// --wasm-execution=compiled
|
// --wasm-execution=compiled
|
||||||
// --pallet=pallet_assets
|
// --pallet=pallet_assets
|
||||||
@@ -15,145 +31,197 @@
|
|||||||
// --steps=50
|
// --steps=50
|
||||||
// --repeat=20
|
// --repeat=20
|
||||||
// --raw
|
// --raw
|
||||||
// --output=./runtime/statemint/src/weights/
|
// --header=./file_header.txt
|
||||||
|
// --output=./polkadot-parachains/westmint/src/weights
|
||||||
|
|
||||||
|
|
||||||
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
#![allow(unused_parens)]
|
#![allow(unused_parens)]
|
||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
|
|
||||||
use frame_support::{traits::Get, weights::Weight};
|
use frame_support::{traits::Get, weights::Weight};
|
||||||
use sp_std::marker::PhantomData;
|
use sp_std::marker::PhantomData;
|
||||||
|
|
||||||
/// Weight functions for pallet_assets.
|
/// Weight functions for `pallet_assets`.
|
||||||
pub struct WeightInfo<T>(PhantomData<T>);
|
pub struct WeightInfo<T>(PhantomData<T>);
|
||||||
impl<T: frame_system::Config> pallet_assets::WeightInfo for WeightInfo<T> {
|
impl<T: frame_system::Config> pallet_assets::WeightInfo for WeightInfo<T> {
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
fn create() -> Weight {
|
fn create() -> Weight {
|
||||||
(44_125_000 as Weight)
|
(42_115_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
fn force_create() -> Weight {
|
fn force_create() -> Weight {
|
||||||
(22_842_000 as Weight)
|
(20_957_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
fn destroy(c: u32, s: u32, a: u32) -> Weight {
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
|
// Storage: Assets Account (r:5002 w:5001)
|
||||||
|
// Storage: System Account (r:5000 w:5000)
|
||||||
|
// Storage: Assets Metadata (r:1 w:0)
|
||||||
|
// Storage: Assets Approvals (r:501 w:500)
|
||||||
|
fn destroy(c: u32, s: u32, a: u32, ) -> Weight {
|
||||||
(0 as Weight)
|
(0 as Weight)
|
||||||
// Standard Error: 37_000
|
// Standard Error: 37_000
|
||||||
.saturating_add((21_822_000 as Weight).saturating_mul(c as Weight))
|
.saturating_add((20_091_000 as Weight).saturating_mul(c as Weight))
|
||||||
// Standard Error: 37_000
|
// Standard Error: 37_000
|
||||||
.saturating_add((29_044_000 as Weight).saturating_mul(s as Weight))
|
.saturating_add((25_878_000 as Weight).saturating_mul(s as Weight))
|
||||||
// Standard Error: 370_000
|
// Standard Error: 375_000
|
||||||
.saturating_add((3_000_000 as Weight).saturating_mul(a as Weight))
|
.saturating_add((26_891_000 as Weight).saturating_mul(a as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
.saturating_add(T::DbWeight::get().reads(5 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(c as Weight)))
|
.saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(c as Weight)))
|
||||||
.saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(s as Weight)))
|
.saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(s as Weight)))
|
||||||
|
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(a as Weight)))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(c as Weight)))
|
.saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(c as Weight)))
|
||||||
.saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(s as Weight)))
|
.saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(s as Weight)))
|
||||||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(a as Weight)))
|
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(a as Weight)))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
|
// Storage: Assets Account (r:1 w:1)
|
||||||
fn mint() -> Weight {
|
fn mint() -> Weight {
|
||||||
(49_933_000 as Weight)
|
(47_003_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
|
// Storage: Assets Account (r:1 w:1)
|
||||||
fn burn() -> Weight {
|
fn burn() -> Weight {
|
||||||
(56_434_000 as Weight)
|
(53_695_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
|
// Storage: Assets Account (r:2 w:2)
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
fn transfer() -> Weight {
|
fn transfer() -> Weight {
|
||||||
(85_393_000 as Weight)
|
(80_559_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
|
// Storage: Assets Account (r:2 w:2)
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
fn transfer_keep_alive() -> Weight {
|
fn transfer_keep_alive() -> Weight {
|
||||||
(72_039_000 as Weight)
|
(68_552_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
|
// Storage: Assets Account (r:2 w:2)
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
fn force_transfer() -> Weight {
|
fn force_transfer() -> Weight {
|
||||||
(85_214_000 as Weight)
|
(80_838_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:0)
|
||||||
|
// Storage: Assets Account (r:1 w:1)
|
||||||
fn freeze() -> Weight {
|
fn freeze() -> Weight {
|
||||||
(31_915_000 as Weight)
|
(32_651_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:0)
|
||||||
|
// Storage: Assets Account (r:1 w:1)
|
||||||
fn thaw() -> Weight {
|
fn thaw() -> Weight {
|
||||||
(31_296_000 as Weight)
|
(32_610_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
fn freeze_asset() -> Weight {
|
fn freeze_asset() -> Weight {
|
||||||
(22_272_000 as Weight)
|
(24_163_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
fn thaw_asset() -> Weight {
|
fn thaw_asset() -> Weight {
|
||||||
(22_336_000 as Weight)
|
(24_526_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
|
// Storage: Assets Metadata (r:1 w:0)
|
||||||
fn transfer_ownership() -> Weight {
|
fn transfer_ownership() -> Weight {
|
||||||
(25_526_000 as Weight)
|
(27_131_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
fn set_team() -> Weight {
|
fn set_team() -> Weight {
|
||||||
(22_632_000 as Weight)
|
(24_415_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
fn set_metadata(_n: u32, s: u32) -> Weight {
|
// Storage: Assets Asset (r:1 w:0)
|
||||||
(50_330_000 as Weight)
|
// Storage: Assets Metadata (r:1 w:1)
|
||||||
|
fn set_metadata(_n: u32, s: u32, ) -> Weight {
|
||||||
|
(49_381_000 as Weight)
|
||||||
// Standard Error: 0
|
// Standard Error: 0
|
||||||
.saturating_add((9_000 as Weight).saturating_mul(s as Weight))
|
.saturating_add((7_000 as Weight).saturating_mul(s as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:0)
|
||||||
|
// Storage: Assets Metadata (r:1 w:1)
|
||||||
fn clear_metadata() -> Weight {
|
fn clear_metadata() -> Weight {
|
||||||
(48_266_000 as Weight)
|
(47_651_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
fn force_set_metadata(_n: u32, s: u32) -> Weight {
|
// Storage: Assets Asset (r:1 w:0)
|
||||||
(26_249_000 as Weight)
|
// Storage: Assets Metadata (r:1 w:1)
|
||||||
|
fn force_set_metadata(_n: u32, s: u32, ) -> Weight {
|
||||||
|
(26_013_000 as Weight)
|
||||||
// Standard Error: 0
|
// Standard Error: 0
|
||||||
.saturating_add((6_000 as Weight).saturating_mul(s as Weight))
|
.saturating_add((5_000 as Weight).saturating_mul(s as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:0)
|
||||||
|
// Storage: Assets Metadata (r:1 w:1)
|
||||||
fn force_clear_metadata() -> Weight {
|
fn force_clear_metadata() -> Weight {
|
||||||
(49_616_000 as Weight)
|
(46_592_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
fn force_asset_status() -> Weight {
|
fn force_asset_status() -> Weight {
|
||||||
(22_596_000 as Weight)
|
(22_426_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
|
// Storage: Assets Approvals (r:1 w:1)
|
||||||
fn approve_transfer() -> Weight {
|
fn approve_transfer() -> Weight {
|
||||||
(48_708_000 as Weight)
|
(55_840_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Approvals (r:1 w:1)
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
|
// Storage: Assets Account (r:2 w:2)
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
fn transfer_approved() -> Weight {
|
fn transfer_approved() -> Weight {
|
||||||
(108_476_000 as Weight)
|
(105_850_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(5 as Weight))
|
.saturating_add(T::DbWeight::get().reads(5 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(5 as Weight))
|
.saturating_add(T::DbWeight::get().writes(5 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
|
// Storage: Assets Approvals (r:1 w:1)
|
||||||
fn cancel_approval() -> Weight {
|
fn cancel_approval() -> Weight {
|
||||||
(49_157_000 as Weight)
|
(56_361_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
|
||||||
}
|
|
||||||
fn force_cancel_approval() -> Weight {
|
|
||||||
(56_862_000 as Weight)
|
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
|
}
|
||||||
|
// Storage: Assets Asset (r:1 w:1)
|
||||||
|
// Storage: Assets Approvals (r:1 w:1)
|
||||||
|
fn force_cancel_approval() -> Weight {
|
||||||
|
(58_276_000 as Weight)
|
||||||
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,13 +1,29 @@
|
|||||||
//! Autogenerated weights for pallet_balances
|
// Copyright 2021 Parity Technologies (UK) Ltd.
|
||||||
|
// This file is part of Cumulus.
|
||||||
|
|
||||||
|
// Cumulus is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
|
||||||
|
// Cumulus is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
//! Autogenerated weights for `pallet_balances`
|
||||||
//!
|
//!
|
||||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||||
//! DATE: 2021-05-31, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
//! DATE: 2021-10-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemint-dev"), DB CACHE: 128
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("westmint-dev"), DB CACHE: 128
|
||||||
|
|
||||||
// Executed Command:
|
// Executed Command:
|
||||||
// ./target/release/statemint
|
// ./target/release/polkadot-collator
|
||||||
// benchmark
|
// benchmark
|
||||||
// --chain=statemint-dev
|
// --chain=westmint-dev
|
||||||
// --execution=wasm
|
// --execution=wasm
|
||||||
// --wasm-execution=compiled
|
// --wasm-execution=compiled
|
||||||
// --pallet=pallet_balances
|
// --pallet=pallet_balances
|
||||||
@@ -15,50 +31,59 @@
|
|||||||
// --steps=50
|
// --steps=50
|
||||||
// --repeat=20
|
// --repeat=20
|
||||||
// --raw
|
// --raw
|
||||||
// --output=./runtime/statemint/src/weights/
|
// --header=./file_header.txt
|
||||||
|
// --output=./polkadot-parachains/westmint/src/weights
|
||||||
|
|
||||||
|
|
||||||
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
#![allow(unused_parens)]
|
#![allow(unused_parens)]
|
||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
|
|
||||||
use frame_support::{traits::Get, weights::Weight};
|
use frame_support::{traits::Get, weights::Weight};
|
||||||
use sp_std::marker::PhantomData;
|
use sp_std::marker::PhantomData;
|
||||||
|
|
||||||
/// Weight functions for pallet_balances.
|
/// Weight functions for `pallet_balances`.
|
||||||
pub struct WeightInfo<T>(PhantomData<T>);
|
pub struct WeightInfo<T>(PhantomData<T>);
|
||||||
impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
impl<T: frame_system::Config> pallet_balances::WeightInfo for WeightInfo<T> {
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
fn transfer() -> Weight {
|
fn transfer() -> Weight {
|
||||||
(79_601_000 as Weight)
|
(70_519_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
fn transfer_keep_alive() -> Weight {
|
fn transfer_keep_alive() -> Weight {
|
||||||
(58_429_000 as Weight)
|
(53_376_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
fn set_balance_creating() -> Weight {
|
fn set_balance_creating() -> Weight {
|
||||||
(29_124_000 as Weight)
|
(28_794_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
fn set_balance_killing() -> Weight {
|
fn set_balance_killing() -> Weight {
|
||||||
(36_476_000 as Weight)
|
(34_848_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: System Account (r:2 w:2)
|
||||||
fn force_transfer() -> Weight {
|
fn force_transfer() -> Weight {
|
||||||
(78_772_000 as Weight)
|
(71_145_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
fn transfer_all() -> Weight {
|
fn transfer_all() -> Weight {
|
||||||
(84_170_000 as Weight)
|
(66_076_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
// Storage: System Account (r:1 w:1)
|
// Storage: System Account (r:1 w:1)
|
||||||
fn force_unreserve() -> Weight {
|
fn force_unreserve() -> Weight {
|
||||||
(27_766_000 as Weight)
|
(26_920_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,13 +1,29 @@
|
|||||||
//! Autogenerated weights for pallet_collator_selection
|
// Copyright 2021 Parity Technologies (UK) Ltd.
|
||||||
|
// This file is part of Cumulus.
|
||||||
|
|
||||||
|
// Cumulus is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
|
||||||
|
// Cumulus is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
//! Autogenerated weights for `pallet_collator_selection`
|
||||||
//!
|
//!
|
||||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||||
//! DATE: 2021-05-31, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
//! DATE: 2021-10-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemint-dev"), DB CACHE: 128
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("westmint-dev"), DB CACHE: 128
|
||||||
|
|
||||||
// Executed Command:
|
// Executed Command:
|
||||||
// ./target/release/statemint
|
// ./target/release/polkadot-collator
|
||||||
// benchmark
|
// benchmark
|
||||||
// --chain=statemint-dev
|
// --chain=westmint-dev
|
||||||
// --execution=wasm
|
// --execution=wasm
|
||||||
// --wasm-execution=compiled
|
// --wasm-execution=compiled
|
||||||
// --pallet=pallet_collator_selection
|
// --pallet=pallet_collator_selection
|
||||||
@@ -15,57 +31,80 @@
|
|||||||
// --steps=50
|
// --steps=50
|
||||||
// --repeat=20
|
// --repeat=20
|
||||||
// --raw
|
// --raw
|
||||||
// --output=./runtime/statemint/src/weights/
|
// --header=./file_header.txt
|
||||||
|
// --output=./polkadot-parachains/westmint/src/weights
|
||||||
|
|
||||||
|
|
||||||
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
#![allow(unused_parens)]
|
#![allow(unused_parens)]
|
||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
|
|
||||||
use frame_support::{traits::Get, weights::Weight};
|
use frame_support::{traits::Get, weights::Weight};
|
||||||
use sp_std::marker::PhantomData;
|
use sp_std::marker::PhantomData;
|
||||||
|
|
||||||
/// Weight functions for pallet_collator_selection.
|
/// Weight functions for `pallet_collator_selection`.
|
||||||
pub struct WeightInfo<T>(PhantomData<T>);
|
pub struct WeightInfo<T>(PhantomData<T>);
|
||||||
impl<T: frame_system::Config> pallet_collator_selection::WeightInfo for WeightInfo<T> {
|
impl<T: frame_system::Config> pallet_collator_selection::WeightInfo for WeightInfo<T> {
|
||||||
fn set_invulnerables(b: u32) -> Weight {
|
// Storage: CollatorSelection Invulnerables (r:0 w:1)
|
||||||
(18_563_000 as Weight)
|
fn set_invulnerables(b: u32, ) -> Weight {
|
||||||
|
(16_616_000 as Weight)
|
||||||
// Standard Error: 0
|
// Standard Error: 0
|
||||||
.saturating_add((68_000 as Weight).saturating_mul(b as Weight))
|
.saturating_add((48_000 as Weight).saturating_mul(b as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: CollatorSelection DesiredCandidates (r:0 w:1)
|
||||||
fn set_desired_candidates() -> Weight {
|
fn set_desired_candidates() -> Weight {
|
||||||
(16_363_000 as Weight).saturating_add(T::DbWeight::get().writes(1 as Weight))
|
(14_417_000 as Weight)
|
||||||
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: CollatorSelection CandidacyBond (r:0 w:1)
|
||||||
fn set_candidacy_bond() -> Weight {
|
fn set_candidacy_bond() -> Weight {
|
||||||
(16_840_000 as Weight).saturating_add(T::DbWeight::get().writes(1 as Weight))
|
(15_419_000 as Weight)
|
||||||
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
fn register_as_candidate(c: u32) -> Weight {
|
// Storage: CollatorSelection Candidates (r:1 w:1)
|
||||||
(71_196_000 as Weight)
|
// Storage: CollatorSelection DesiredCandidates (r:1 w:0)
|
||||||
|
// Storage: CollatorSelection Invulnerables (r:1 w:0)
|
||||||
|
// Storage: Session NextKeys (r:1 w:0)
|
||||||
|
// Storage: CollatorSelection CandidacyBond (r:1 w:0)
|
||||||
|
// Storage: CollatorSelection LastAuthoredBlock (r:0 w:1)
|
||||||
|
fn register_as_candidate(c: u32, ) -> Weight {
|
||||||
|
(69_530_000 as Weight)
|
||||||
// Standard Error: 0
|
// Standard Error: 0
|
||||||
.saturating_add((198_000 as Weight).saturating_mul(c as Weight))
|
.saturating_add((154_000 as Weight).saturating_mul(c as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(4 as Weight))
|
.saturating_add(T::DbWeight::get().reads(5 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
fn leave_intent(c: u32) -> Weight {
|
// Storage: CollatorSelection Candidates (r:1 w:1)
|
||||||
(55_336_000 as Weight)
|
// Storage: CollatorSelection LastAuthoredBlock (r:0 w:1)
|
||||||
// Standard Error: 0
|
fn leave_intent(c: u32, ) -> Weight {
|
||||||
.saturating_add((151_000 as Weight).saturating_mul(c as Weight))
|
(73_062_000 as Weight)
|
||||||
|
// Standard Error: 1_000
|
||||||
|
.saturating_add((203_000 as Weight).saturating_mul(c as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: System Account (r:2 w:2)
|
||||||
|
// Storage: System BlockWeight (r:1 w:1)
|
||||||
|
// Storage: CollatorSelection LastAuthoredBlock (r:0 w:1)
|
||||||
fn note_author() -> Weight {
|
fn note_author() -> Weight {
|
||||||
(71_461_000 as Weight)
|
(62_421_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
.saturating_add(T::DbWeight::get().writes(4 as Weight))
|
||||||
}
|
}
|
||||||
fn new_session(r: u32, c: u32) -> Weight {
|
// Storage: CollatorSelection Candidates (r:1 w:1)
|
||||||
|
// Storage: CollatorSelection LastAuthoredBlock (r:1000 w:1)
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
|
// Storage: CollatorSelection Invulnerables (r:1 w:0)
|
||||||
|
// Storage: System BlockWeight (r:1 w:1)
|
||||||
|
fn new_session(r: u32, c: u32, ) -> Weight {
|
||||||
(0 as Weight)
|
(0 as Weight)
|
||||||
// Standard Error: 1_010_000
|
// Standard Error: 4_331_000
|
||||||
.saturating_add((109_961_000 as Weight).saturating_mul(r as Weight))
|
.saturating_add((24_131_000 as Weight).saturating_mul(r as Weight))
|
||||||
// Standard Error: 1_010_000
|
// Standard Error: 4_331_000
|
||||||
.saturating_add((151_952_000 as Weight).saturating_mul(c as Weight))
|
.saturating_add((113_540_000 as Weight).saturating_mul(c as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(r as Weight)))
|
|
||||||
.saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(c as Weight)))
|
.saturating_add(T::DbWeight::get().reads((2 as Weight).saturating_mul(c as Weight)))
|
||||||
.saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(r as Weight)))
|
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(r as Weight)))
|
||||||
.saturating_add(T::DbWeight::get().writes((2 as Weight).saturating_mul(c as Weight)))
|
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(c as Weight)))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,13 +1,29 @@
|
|||||||
//! Autogenerated weights for pallet_multisig
|
// Copyright 2021 Parity Technologies (UK) Ltd.
|
||||||
|
// This file is part of Cumulus.
|
||||||
|
|
||||||
|
// Cumulus is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
|
||||||
|
// Cumulus is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
//! Autogenerated weights for `pallet_multisig`
|
||||||
//!
|
//!
|
||||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||||
//! DATE: 2021-05-31, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
//! DATE: 2021-10-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemint-dev"), DB CACHE: 128
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("westmint-dev"), DB CACHE: 128
|
||||||
|
|
||||||
// Executed Command:
|
// Executed Command:
|
||||||
// ./target/release/statemint
|
// ./target/release/polkadot-collator
|
||||||
// benchmark
|
// benchmark
|
||||||
// --chain=statemint-dev
|
// --chain=westmint-dev
|
||||||
// --execution=wasm
|
// --execution=wasm
|
||||||
// --wasm-execution=compiled
|
// --wasm-execution=compiled
|
||||||
// --pallet=pallet_multisig
|
// --pallet=pallet_multisig
|
||||||
@@ -15,92 +31,115 @@
|
|||||||
// --steps=50
|
// --steps=50
|
||||||
// --repeat=20
|
// --repeat=20
|
||||||
// --raw
|
// --raw
|
||||||
// --output=./runtime/statemint/src/weights/
|
// --header=./file_header.txt
|
||||||
|
// --output=./polkadot-parachains/westmint/src/weights
|
||||||
|
|
||||||
|
|
||||||
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
#![allow(unused_parens)]
|
#![allow(unused_parens)]
|
||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
|
|
||||||
use frame_support::{traits::Get, weights::Weight};
|
use frame_support::{traits::Get, weights::Weight};
|
||||||
use sp_std::marker::PhantomData;
|
use sp_std::marker::PhantomData;
|
||||||
|
|
||||||
/// Weight functions for pallet_multisig.
|
/// Weight functions for `pallet_multisig`.
|
||||||
pub struct WeightInfo<T>(PhantomData<T>);
|
pub struct WeightInfo<T>(PhantomData<T>);
|
||||||
impl<T: frame_system::Config> pallet_multisig::WeightInfo for WeightInfo<T> {
|
impl<T: frame_system::Config> pallet_multisig::WeightInfo for WeightInfo<T> {
|
||||||
fn as_multi_threshold_1(z: u32) -> Weight {
|
fn as_multi_threshold_1(z: u32, ) -> Weight {
|
||||||
(14_936_000 as Weight)
|
(20_841_000 as Weight)
|
||||||
// Standard Error: 0
|
// Standard Error: 0
|
||||||
.saturating_add((1_000 as Weight).saturating_mul(z as Weight))
|
.saturating_add((1_000 as Weight).saturating_mul(z as Weight))
|
||||||
}
|
}
|
||||||
fn as_multi_create(s: u32, z: u32) -> Weight {
|
// Storage: Multisig Multisigs (r:1 w:1)
|
||||||
(56_090_000 as Weight)
|
// Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
|
||||||
|
fn as_multi_create(s: u32, z: u32, ) -> Weight {
|
||||||
|
(51_049_000 as Weight)
|
||||||
// Standard Error: 1_000
|
// Standard Error: 1_000
|
||||||
.saturating_add((63_000 as Weight).saturating_mul(s as Weight))
|
.saturating_add((158_000 as Weight).saturating_mul(s as Weight))
|
||||||
// Standard Error: 0
|
// Standard Error: 0
|
||||||
.saturating_add((1_000 as Weight).saturating_mul(z as Weight))
|
.saturating_add((2_000 as Weight).saturating_mul(z as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
fn as_multi_create_store(s: u32, z: u32) -> Weight {
|
// Storage: Multisig Multisigs (r:1 w:1)
|
||||||
(62_519_000 as Weight)
|
// Storage: Multisig Calls (r:1 w:1)
|
||||||
|
// Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
|
||||||
|
fn as_multi_create_store(s: u32, z: u32, ) -> Weight {
|
||||||
|
(57_754_000 as Weight)
|
||||||
// Standard Error: 1_000
|
// Standard Error: 1_000
|
||||||
.saturating_add((66_000 as Weight).saturating_mul(s as Weight))
|
.saturating_add((156_000 as Weight).saturating_mul(s as Weight))
|
||||||
// Standard Error: 0
|
// Standard Error: 0
|
||||||
.saturating_add((3_000 as Weight).saturating_mul(z as Weight))
|
.saturating_add((3_000 as Weight).saturating_mul(z as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
fn as_multi_approve(s: u32, z: u32) -> Weight {
|
// Storage: Multisig Multisigs (r:1 w:1)
|
||||||
(30_781_000 as Weight)
|
fn as_multi_approve(s: u32, z: u32, ) -> Weight {
|
||||||
|
(32_270_000 as Weight)
|
||||||
// Standard Error: 0
|
// Standard Error: 0
|
||||||
.saturating_add((111_000 as Weight).saturating_mul(s as Weight))
|
.saturating_add((163_000 as Weight).saturating_mul(s as Weight))
|
||||||
// Standard Error: 0
|
// Standard Error: 0
|
||||||
.saturating_add((1_000 as Weight).saturating_mul(z as Weight))
|
.saturating_add((2_000 as Weight).saturating_mul(z as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
fn as_multi_approve_store(s: u32, z: u32) -> Weight {
|
// Storage: Multisig Multisigs (r:1 w:1)
|
||||||
(60_393_000 as Weight)
|
// Storage: Multisig Calls (r:1 w:1)
|
||||||
// Standard Error: 0
|
fn as_multi_approve_store(s: u32, z: u32, ) -> Weight {
|
||||||
.saturating_add((118_000 as Weight).saturating_mul(s as Weight))
|
(55_101_000 as Weight)
|
||||||
|
// Standard Error: 1_000
|
||||||
|
.saturating_add((172_000 as Weight).saturating_mul(s as Weight))
|
||||||
// Standard Error: 0
|
// Standard Error: 0
|
||||||
.saturating_add((3_000 as Weight).saturating_mul(z as Weight))
|
.saturating_add((3_000 as Weight).saturating_mul(z as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
fn as_multi_complete(s: u32, z: u32) -> Weight {
|
// Storage: Multisig Multisigs (r:1 w:1)
|
||||||
(81_704_000 as Weight)
|
// Storage: Multisig Calls (r:1 w:1)
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
|
fn as_multi_complete(s: u32, z: u32, ) -> Weight {
|
||||||
|
(71_355_000 as Weight)
|
||||||
// Standard Error: 1_000
|
// Standard Error: 1_000
|
||||||
.saturating_add((248_000 as Weight).saturating_mul(s as Weight))
|
.saturating_add((257_000 as Weight).saturating_mul(s as Weight))
|
||||||
// Standard Error: 0
|
// Standard Error: 0
|
||||||
.saturating_add((5_000 as Weight).saturating_mul(z as Weight))
|
.saturating_add((4_000 as Weight).saturating_mul(z as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||||
}
|
}
|
||||||
fn approve_as_multi_create(s: u32) -> Weight {
|
// Storage: Multisig Multisigs (r:1 w:1)
|
||||||
(55_585_000 as Weight)
|
// Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
|
||||||
// Standard Error: 1_000
|
fn approve_as_multi_create(s: u32, ) -> Weight {
|
||||||
.saturating_add((115_000 as Weight).saturating_mul(s as Weight))
|
(51_638_000 as Weight)
|
||||||
|
// Standard Error: 0
|
||||||
|
.saturating_add((153_000 as Weight).saturating_mul(s as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
fn approve_as_multi_approve(s: u32) -> Weight {
|
// Storage: Multisig Multisigs (r:1 w:1)
|
||||||
(33_483_000 as Weight)
|
// Storage: Multisig Calls (r:1 w:0)
|
||||||
// Standard Error: 1_000
|
fn approve_as_multi_approve(s: u32, ) -> Weight {
|
||||||
.saturating_add((82_000 as Weight).saturating_mul(s as Weight))
|
(30_941_000 as Weight)
|
||||||
|
// Standard Error: 0
|
||||||
|
.saturating_add((169_000 as Weight).saturating_mul(s as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
fn approve_as_multi_complete(s: u32) -> Weight {
|
// Storage: Multisig Multisigs (r:1 w:1)
|
||||||
(154_732_000 as Weight)
|
// Storage: Multisig Calls (r:1 w:1)
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
|
fn approve_as_multi_complete(s: u32, ) -> Weight {
|
||||||
|
(106_270_000 as Weight)
|
||||||
// Standard Error: 1_000
|
// Standard Error: 1_000
|
||||||
.saturating_add((253_000 as Weight).saturating_mul(s as Weight))
|
.saturating_add((267_000 as Weight).saturating_mul(s as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||||
}
|
}
|
||||||
fn cancel_as_multi(s: u32) -> Weight {
|
// Storage: Multisig Multisigs (r:1 w:1)
|
||||||
(104_447_000 as Weight)
|
// Storage: Multisig Calls (r:1 w:1)
|
||||||
|
fn cancel_as_multi(s: u32, ) -> Weight {
|
||||||
|
(83_024_000 as Weight)
|
||||||
// Standard Error: 1_000
|
// Standard Error: 1_000
|
||||||
.saturating_add((114_000 as Weight).saturating_mul(s as Weight))
|
.saturating_add((160_000 as Weight).saturating_mul(s as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,13 +1,29 @@
|
|||||||
//! Autogenerated weights for pallet_proxy
|
// Copyright 2021 Parity Technologies (UK) Ltd.
|
||||||
|
// This file is part of Cumulus.
|
||||||
|
|
||||||
|
// Cumulus is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
|
||||||
|
// Cumulus is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
//! Autogenerated weights for `pallet_proxy`
|
||||||
//!
|
//!
|
||||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||||
//! DATE: 2021-05-31, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
//! DATE: 2021-10-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemint-dev"), DB CACHE: 128
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("westmint-dev"), DB CACHE: 128
|
||||||
|
|
||||||
// Executed Command:
|
// Executed Command:
|
||||||
// ./target/release/statemint
|
// ./target/release/polkadot-collator
|
||||||
// benchmark
|
// benchmark
|
||||||
// --chain=statemint-dev
|
// --chain=westmint-dev
|
||||||
// --execution=wasm
|
// --execution=wasm
|
||||||
// --wasm-execution=compiled
|
// --wasm-execution=compiled
|
||||||
// --pallet=pallet_proxy
|
// --pallet=pallet_proxy
|
||||||
@@ -15,91 +31,111 @@
|
|||||||
// --steps=50
|
// --steps=50
|
||||||
// --repeat=20
|
// --repeat=20
|
||||||
// --raw
|
// --raw
|
||||||
// --output=./runtime/statemint/src/weights/
|
// --header=./file_header.txt
|
||||||
|
// --output=./polkadot-parachains/westmint/src/weights
|
||||||
|
|
||||||
|
|
||||||
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
#![allow(unused_parens)]
|
#![allow(unused_parens)]
|
||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
|
|
||||||
use frame_support::{traits::Get, weights::Weight};
|
use frame_support::{traits::Get, weights::Weight};
|
||||||
use sp_std::marker::PhantomData;
|
use sp_std::marker::PhantomData;
|
||||||
|
|
||||||
/// Weight functions for pallet_proxy.
|
/// Weight functions for `pallet_proxy`.
|
||||||
pub struct WeightInfo<T>(PhantomData<T>);
|
pub struct WeightInfo<T>(PhantomData<T>);
|
||||||
impl<T: frame_system::Config> pallet_proxy::WeightInfo for WeightInfo<T> {
|
impl<T: frame_system::Config> pallet_proxy::WeightInfo for WeightInfo<T> {
|
||||||
fn proxy(p: u32) -> Weight {
|
// Storage: Proxy Proxies (r:1 w:0)
|
||||||
(27_585_000 as Weight)
|
fn proxy(p: u32, ) -> Weight {
|
||||||
|
(24_230_000 as Weight)
|
||||||
|
// Standard Error: 2_000
|
||||||
|
.saturating_add((135_000 as Weight).saturating_mul(p as Weight))
|
||||||
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
|
}
|
||||||
|
// Storage: Proxy Proxies (r:1 w:0)
|
||||||
|
// Storage: Proxy Announcements (r:1 w:1)
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
|
fn proxy_announced(a: u32, p: u32, ) -> Weight {
|
||||||
|
(54_025_000 as Weight)
|
||||||
|
// Standard Error: 2_000
|
||||||
|
.saturating_add((486_000 as Weight).saturating_mul(a as Weight))
|
||||||
|
// Standard Error: 2_000
|
||||||
|
.saturating_add((141_000 as Weight).saturating_mul(p as Weight))
|
||||||
|
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||||
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
|
}
|
||||||
|
// Storage: Proxy Announcements (r:1 w:1)
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
|
fn remove_announcement(a: u32, p: u32, ) -> Weight {
|
||||||
|
(36_196_000 as Weight)
|
||||||
|
// Standard Error: 2_000
|
||||||
|
.saturating_add((491_000 as Weight).saturating_mul(a as Weight))
|
||||||
|
// Standard Error: 2_000
|
||||||
|
.saturating_add((17_000 as Weight).saturating_mul(p as Weight))
|
||||||
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
|
}
|
||||||
|
// Storage: Proxy Announcements (r:1 w:1)
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
|
fn reject_announcement(a: u32, p: u32, ) -> Weight {
|
||||||
|
(36_363_000 as Weight)
|
||||||
// Standard Error: 1_000
|
// Standard Error: 1_000
|
||||||
.saturating_add((203_000 as Weight).saturating_mul(p as Weight))
|
.saturating_add((485_000 as Weight).saturating_mul(a as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
|
||||||
}
|
|
||||||
fn proxy_announced(a: u32, p: u32) -> Weight {
|
|
||||||
(61_093_000 as Weight)
|
|
||||||
// Standard Error: 2_000
|
// Standard Error: 2_000
|
||||||
.saturating_add((680_000 as Weight).saturating_mul(a as Weight))
|
.saturating_add((13_000 as Weight).saturating_mul(p as Weight))
|
||||||
// Standard Error: 2_000
|
|
||||||
.saturating_add((201_000 as Weight).saturating_mul(p as Weight))
|
|
||||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
|
||||||
}
|
|
||||||
fn remove_announcement(a: u32, p: u32) -> Weight {
|
|
||||||
(39_494_000 as Weight)
|
|
||||||
// Standard Error: 2_000
|
|
||||||
.saturating_add((686_000 as Weight).saturating_mul(a as Weight))
|
|
||||||
// Standard Error: 2_000
|
|
||||||
.saturating_add((1_000 as Weight).saturating_mul(p as Weight))
|
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
fn reject_announcement(a: u32, p: u32) -> Weight {
|
// Storage: Proxy Proxies (r:1 w:0)
|
||||||
(39_817_000 as Weight)
|
// Storage: Proxy Announcements (r:1 w:1)
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
|
fn announce(a: u32, p: u32, ) -> Weight {
|
||||||
|
(50_945_000 as Weight)
|
||||||
// Standard Error: 2_000
|
// Standard Error: 2_000
|
||||||
.saturating_add((685_000 as Weight).saturating_mul(a as Weight))
|
.saturating_add((480_000 as Weight).saturating_mul(a as Weight))
|
||||||
// Standard Error: 2_000
|
// Standard Error: 2_000
|
||||||
.saturating_add((1_000 as Weight).saturating_mul(p as Weight))
|
.saturating_add((141_000 as Weight).saturating_mul(p as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
|
||||||
}
|
|
||||||
fn announce(a: u32, p: u32) -> Weight {
|
|
||||||
(54_835_000 as Weight)
|
|
||||||
// Standard Error: 2_000
|
|
||||||
.saturating_add((684_000 as Weight).saturating_mul(a as Weight))
|
|
||||||
// Standard Error: 2_000
|
|
||||||
.saturating_add((205_000 as Weight).saturating_mul(p as Weight))
|
|
||||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
fn add_proxy(p: u32) -> Weight {
|
// Storage: Proxy Proxies (r:1 w:1)
|
||||||
(37_625_000 as Weight)
|
fn add_proxy(p: u32, ) -> Weight {
|
||||||
// Standard Error: 2_000
|
(43_040_000 as Weight)
|
||||||
.saturating_add((300_000 as Weight).saturating_mul(p as Weight))
|
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
|
||||||
}
|
|
||||||
fn remove_proxy(p: u32) -> Weight {
|
|
||||||
(36_945_000 as Weight)
|
|
||||||
// Standard Error: 3_000
|
// Standard Error: 3_000
|
||||||
.saturating_add((325_000 as Weight).saturating_mul(p as Weight))
|
.saturating_add((184_000 as Weight).saturating_mul(p as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
fn remove_proxies(p: u32) -> Weight {
|
// Storage: Proxy Proxies (r:1 w:1)
|
||||||
(35_128_000 as Weight)
|
fn remove_proxy(p: u32, ) -> Weight {
|
||||||
// Standard Error: 1_000
|
(35_074_000 as Weight)
|
||||||
.saturating_add((209_000 as Weight).saturating_mul(p as Weight))
|
// Standard Error: 3_000
|
||||||
|
.saturating_add((210_000 as Weight).saturating_mul(p as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
fn anonymous(p: u32) -> Weight {
|
// Storage: Proxy Proxies (r:1 w:1)
|
||||||
(51_624_000 as Weight)
|
fn remove_proxies(p: u32, ) -> Weight {
|
||||||
// Standard Error: 1_000
|
(34_447_000 as Weight)
|
||||||
.saturating_add((41_000 as Weight).saturating_mul(p as Weight))
|
// Standard Error: 2_000
|
||||||
|
.saturating_add((123_000 as Weight).saturating_mul(p as Weight))
|
||||||
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
|
}
|
||||||
|
// Storage: unknown [0x3a65787472696e7369635f696e646578] (r:1 w:0)
|
||||||
|
// Storage: Proxy Proxies (r:1 w:1)
|
||||||
|
fn anonymous(p: u32, ) -> Weight {
|
||||||
|
(48_525_000 as Weight)
|
||||||
|
// Standard Error: 3_000
|
||||||
|
.saturating_add((25_000 as Weight).saturating_mul(p as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
fn kill_anonymous(p: u32) -> Weight {
|
// Storage: Proxy Proxies (r:1 w:1)
|
||||||
(37_469_000 as Weight)
|
fn kill_anonymous(p: u32, ) -> Weight {
|
||||||
// Standard Error: 1_000
|
(36_388_000 as Weight)
|
||||||
.saturating_add((204_000 as Weight).saturating_mul(p as Weight))
|
// Standard Error: 2_000
|
||||||
|
.saturating_add((122_000 as Weight).saturating_mul(p as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,13 +1,29 @@
|
|||||||
//! Autogenerated weights for pallet_session
|
// Copyright 2021 Parity Technologies (UK) Ltd.
|
||||||
|
// This file is part of Cumulus.
|
||||||
|
|
||||||
|
// Cumulus is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
|
||||||
|
// Cumulus is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
//! Autogenerated weights for `pallet_session`
|
||||||
//!
|
//!
|
||||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||||
//! DATE: 2021-06-08, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
//! DATE: 2021-10-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemint-dev"), DB CACHE: 128
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("westmint-dev"), DB CACHE: 128
|
||||||
|
|
||||||
// Executed Command:
|
// Executed Command:
|
||||||
// ./target/release/polkadot-collator
|
// ./target/release/polkadot-collator
|
||||||
// benchmark
|
// benchmark
|
||||||
// --chain=statemint-dev
|
// --chain=westmint-dev
|
||||||
// --execution=wasm
|
// --execution=wasm
|
||||||
// --wasm-execution=compiled
|
// --wasm-execution=compiled
|
||||||
// --pallet=pallet_session
|
// --pallet=pallet_session
|
||||||
@@ -15,24 +31,31 @@
|
|||||||
// --steps=50
|
// --steps=50
|
||||||
// --repeat=20
|
// --repeat=20
|
||||||
// --raw
|
// --raw
|
||||||
// --output=./polkadot-parachains/statemint-runtime/src/weights
|
// --header=./file_header.txt
|
||||||
|
// --output=./polkadot-parachains/westmint/src/weights
|
||||||
|
|
||||||
|
|
||||||
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
#![allow(unused_parens)]
|
#![allow(unused_parens)]
|
||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
|
|
||||||
use frame_support::{traits::Get, weights::Weight};
|
use frame_support::{traits::Get, weights::Weight};
|
||||||
use sp_std::marker::PhantomData;
|
use sp_std::marker::PhantomData;
|
||||||
|
|
||||||
/// Weight functions for pallet_session.
|
/// Weight functions for `pallet_session`.
|
||||||
pub struct WeightInfo<T>(PhantomData<T>);
|
pub struct WeightInfo<T>(PhantomData<T>);
|
||||||
impl<T: frame_system::Config> pallet_session::WeightInfo for WeightInfo<T> {
|
impl<T: frame_system::Config> pallet_session::WeightInfo for WeightInfo<T> {
|
||||||
|
// Storage: Session NextKeys (r:1 w:1)
|
||||||
|
// Storage: Session KeyOwner (r:1 w:1)
|
||||||
fn set_keys() -> Weight {
|
fn set_keys() -> Weight {
|
||||||
(25_040_000 as Weight)
|
(25_128_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Session NextKeys (r:1 w:1)
|
||||||
|
// Storage: Session KeyOwner (r:0 w:1)
|
||||||
fn purge_keys() -> Weight {
|
fn purge_keys() -> Weight {
|
||||||
(17_551_000 as Weight)
|
(17_883_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,13 +1,29 @@
|
|||||||
//! Autogenerated weights for pallet_timestamp
|
// Copyright 2021 Parity Technologies (UK) Ltd.
|
||||||
|
// This file is part of Cumulus.
|
||||||
|
|
||||||
|
// Cumulus is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
|
||||||
|
// Cumulus is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
//! Autogenerated weights for `pallet_timestamp`
|
||||||
//!
|
//!
|
||||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||||
//! DATE: 2021-05-31, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
//! DATE: 2021-10-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemint-dev"), DB CACHE: 128
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("westmint-dev"), DB CACHE: 128
|
||||||
|
|
||||||
// Executed Command:
|
// Executed Command:
|
||||||
// ./target/release/statemint
|
// ./target/release/polkadot-collator
|
||||||
// benchmark
|
// benchmark
|
||||||
// --chain=statemint-dev
|
// --chain=westmint-dev
|
||||||
// --execution=wasm
|
// --execution=wasm
|
||||||
// --wasm-execution=compiled
|
// --wasm-execution=compiled
|
||||||
// --pallet=pallet_timestamp
|
// --pallet=pallet_timestamp
|
||||||
@@ -15,23 +31,27 @@
|
|||||||
// --steps=50
|
// --steps=50
|
||||||
// --repeat=20
|
// --repeat=20
|
||||||
// --raw
|
// --raw
|
||||||
// --output=./runtime/statemint/src/weights/
|
// --header=./file_header.txt
|
||||||
|
// --output=./polkadot-parachains/westmint/src/weights
|
||||||
|
|
||||||
|
|
||||||
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
#![allow(unused_parens)]
|
#![allow(unused_parens)]
|
||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
|
|
||||||
use frame_support::{traits::Get, weights::Weight};
|
use frame_support::{traits::Get, weights::Weight};
|
||||||
use sp_std::marker::PhantomData;
|
use sp_std::marker::PhantomData;
|
||||||
|
|
||||||
/// Weight functions for pallet_timestamp.
|
/// Weight functions for `pallet_timestamp`.
|
||||||
pub struct WeightInfo<T>(PhantomData<T>);
|
pub struct WeightInfo<T>(PhantomData<T>);
|
||||||
impl<T: frame_system::Config> pallet_timestamp::WeightInfo for WeightInfo<T> {
|
impl<T: frame_system::Config> pallet_timestamp::WeightInfo for WeightInfo<T> {
|
||||||
|
// Storage: Timestamp Now (r:1 w:1)
|
||||||
fn set() -> Weight {
|
fn set() -> Weight {
|
||||||
(7_687_000 as Weight)
|
(7_567_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
fn on_finalize() -> Weight {
|
fn on_finalize() -> Weight {
|
||||||
(4_303_000 as Weight)
|
(4_350_000 as Weight)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,53 +14,63 @@
|
|||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
|
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
//! Autogenerated weights for pallet_uniques
|
//! Autogenerated weights for `pallet_uniques`
|
||||||
//!
|
//!
|
||||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||||
//! DATE: 2021-06-02, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
//! DATE: 2021-10-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemine-dev"), DB CACHE: 128
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("westmint-dev"), DB CACHE: 128
|
||||||
|
|
||||||
// Executed Command:
|
// Executed Command:
|
||||||
// ./target/release/polkadot-collator
|
// ./target/release/polkadot-collator
|
||||||
// benchmark
|
// benchmark
|
||||||
// --chain=statemine-dev
|
// --chain=westmint-dev
|
||||||
// --steps=50
|
|
||||||
// --repeat=20
|
|
||||||
// --pallet=pallet_uniques
|
|
||||||
// --extrinsic=*
|
|
||||||
// --execution=wasm
|
// --execution=wasm
|
||||||
// --wasm-execution=compiled
|
// --wasm-execution=compiled
|
||||||
// --heap-pages=4096
|
// --pallet=pallet_uniques
|
||||||
|
// --extrinsic=*
|
||||||
|
// --steps=50
|
||||||
|
// --repeat=20
|
||||||
|
// --raw
|
||||||
// --header=./file_header.txt
|
// --header=./file_header.txt
|
||||||
// --output=./polkadot-parachains/statemine-runtime/src/weights/
|
// --output=./polkadot-parachains/westmint/src/weights
|
||||||
|
|
||||||
|
|
||||||
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
#![allow(unused_parens)]
|
#![allow(unused_parens)]
|
||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
|
|
||||||
use frame_support::{traits::Get, weights::Weight};
|
use frame_support::{traits::Get, weights::Weight};
|
||||||
use sp_std::marker::PhantomData;
|
use sp_std::marker::PhantomData;
|
||||||
|
|
||||||
/// Weight functions for pallet_uniques.
|
/// Weight functions for `pallet_uniques`.
|
||||||
pub struct WeightInfo<T>(PhantomData<T>);
|
pub struct WeightInfo<T>(PhantomData<T>);
|
||||||
impl<T: frame_system::Config> pallet_uniques::WeightInfo for WeightInfo<T> {
|
impl<T: frame_system::Config> pallet_uniques::WeightInfo for WeightInfo<T> {
|
||||||
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
fn create() -> Weight {
|
fn create() -> Weight {
|
||||||
(42_199_000 as Weight)
|
(41_131_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
fn force_create() -> Weight {
|
fn force_create() -> Weight {
|
||||||
(21_030_000 as Weight)
|
(21_000_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
fn destroy(n: u32, m: u32, a: u32) -> Weight {
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
|
// Storage: Uniques Asset (r:1 w:0)
|
||||||
|
// Storage: Uniques Attribute (r:0 w:1000)
|
||||||
|
// Storage: Uniques ClassMetadataOf (r:0 w:1)
|
||||||
|
// Storage: Uniques InstanceMetadataOf (r:0 w:1000)
|
||||||
|
// Storage: Uniques Account (r:0 w:20)
|
||||||
|
fn destroy(n: u32, m: u32, a: u32, ) -> Weight {
|
||||||
(0 as Weight)
|
(0 as Weight)
|
||||||
// Standard Error: 14_000
|
// Standard Error: 13_000
|
||||||
.saturating_add((16_814_000 as Weight).saturating_mul(n as Weight))
|
.saturating_add((15_431_000 as Weight).saturating_mul(n as Weight))
|
||||||
// Standard Error: 14_000
|
// Standard Error: 13_000
|
||||||
.saturating_add((1_026_000 as Weight).saturating_mul(m as Weight))
|
.saturating_add((1_064_000 as Weight).saturating_mul(m as Weight))
|
||||||
// Standard Error: 14_000
|
// Standard Error: 13_000
|
||||||
.saturating_add((952_000 as Weight).saturating_mul(a as Weight))
|
.saturating_add((802_000 as Weight).saturating_mul(a as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(n as Weight)))
|
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(n as Weight)))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
@@ -68,102 +78,141 @@ impl<T: frame_system::Config> pallet_uniques::WeightInfo for WeightInfo<T> {
|
|||||||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(m as Weight)))
|
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(m as Weight)))
|
||||||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(a as Weight)))
|
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(a as Weight)))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Asset (r:1 w:1)
|
||||||
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
|
// Storage: Uniques Account (r:0 w:1)
|
||||||
fn mint() -> Weight {
|
fn mint() -> Weight {
|
||||||
(57_236_000 as Weight)
|
(55_067_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
|
// Storage: Uniques Asset (r:1 w:1)
|
||||||
|
// Storage: Uniques Account (r:0 w:1)
|
||||||
fn burn() -> Weight {
|
fn burn() -> Weight {
|
||||||
(58_129_000 as Weight)
|
(55_722_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:0)
|
||||||
|
// Storage: Uniques Asset (r:1 w:1)
|
||||||
|
// Storage: Uniques Account (r:0 w:2)
|
||||||
fn transfer() -> Weight {
|
fn transfer() -> Weight {
|
||||||
(42_980_000 as Weight)
|
(42_987_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
.saturating_add(T::DbWeight::get().writes(3 as Weight))
|
||||||
}
|
}
|
||||||
fn redeposit(i: u32) -> Weight {
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
|
// Storage: Uniques Asset (r:100 w:100)
|
||||||
|
fn redeposit(i: u32, ) -> Weight {
|
||||||
(0 as Weight)
|
(0 as Weight)
|
||||||
// Standard Error: 11_000
|
// Standard Error: 14_000
|
||||||
.saturating_add((26_921_000 as Weight).saturating_mul(i as Weight))
|
.saturating_add((24_501_000 as Weight).saturating_mul(i as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(i as Weight)))
|
.saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(i as Weight)))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(i as Weight)))
|
.saturating_add(T::DbWeight::get().writes((1 as Weight).saturating_mul(i as Weight)))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Asset (r:1 w:1)
|
||||||
|
// Storage: Uniques Class (r:1 w:0)
|
||||||
fn freeze() -> Weight {
|
fn freeze() -> Weight {
|
||||||
(30_427_000 as Weight)
|
(29_695_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Asset (r:1 w:1)
|
||||||
|
// Storage: Uniques Class (r:1 w:0)
|
||||||
fn thaw() -> Weight {
|
fn thaw() -> Weight {
|
||||||
(29_789_000 as Weight)
|
(29_939_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
fn freeze_class() -> Weight {
|
fn freeze_class() -> Weight {
|
||||||
(21_380_000 as Weight)
|
(22_573_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
fn thaw_class() -> Weight {
|
fn thaw_class() -> Weight {
|
||||||
(21_430_000 as Weight)
|
(22_485_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
|
// Storage: System Account (r:1 w:1)
|
||||||
fn transfer_ownership() -> Weight {
|
fn transfer_ownership() -> Weight {
|
||||||
(49_331_000 as Weight)
|
(48_454_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
fn set_team() -> Weight {
|
fn set_team() -> Weight {
|
||||||
(22_305_000 as Weight)
|
(23_828_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
fn force_asset_status() -> Weight {
|
fn force_asset_status() -> Weight {
|
||||||
(21_965_000 as Weight)
|
(22_033_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
.saturating_add(T::DbWeight::get().reads(1 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
|
// Storage: Uniques InstanceMetadataOf (r:1 w:0)
|
||||||
|
// Storage: Uniques Attribute (r:1 w:1)
|
||||||
fn set_attribute() -> Weight {
|
fn set_attribute() -> Weight {
|
||||||
(70_386_000 as Weight)
|
(68_112_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
|
// Storage: Uniques InstanceMetadataOf (r:1 w:0)
|
||||||
|
// Storage: Uniques Attribute (r:1 w:1)
|
||||||
fn clear_attribute() -> Weight {
|
fn clear_attribute() -> Weight {
|
||||||
(63_932_000 as Weight)
|
(61_017_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
.saturating_add(T::DbWeight::get().reads(3 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
|
// Storage: Uniques InstanceMetadataOf (r:1 w:1)
|
||||||
fn set_metadata() -> Weight {
|
fn set_metadata() -> Weight {
|
||||||
(53_647_000 as Weight)
|
(51_170_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
|
// Storage: Uniques InstanceMetadataOf (r:1 w:1)
|
||||||
fn clear_metadata() -> Weight {
|
fn clear_metadata() -> Weight {
|
||||||
(52_353_000 as Weight)
|
(50_897_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:1)
|
||||||
|
// Storage: Uniques ClassMetadataOf (r:1 w:1)
|
||||||
fn set_class_metadata() -> Weight {
|
fn set_class_metadata() -> Weight {
|
||||||
(51_900_000 as Weight)
|
(51_353_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
.saturating_add(T::DbWeight::get().writes(2 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:0)
|
||||||
|
// Storage: Uniques ClassMetadataOf (r:1 w:1)
|
||||||
fn clear_class_metadata() -> Weight {
|
fn clear_class_metadata() -> Weight {
|
||||||
(46_929_000 as Weight)
|
(45_357_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:0)
|
||||||
|
// Storage: Uniques Asset (r:1 w:1)
|
||||||
fn approve_transfer() -> Weight {
|
fn approve_transfer() -> Weight {
|
||||||
(32_693_000 as Weight)
|
(32_295_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
// Storage: Uniques Class (r:1 w:0)
|
||||||
|
// Storage: Uniques Asset (r:1 w:1)
|
||||||
fn cancel_approval() -> Weight {
|
fn cancel_approval() -> Weight {
|
||||||
(32_418_000 as Weight)
|
(31_568_000 as Weight)
|
||||||
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
.saturating_add(T::DbWeight::get().reads(2 as Weight))
|
||||||
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
.saturating_add(T::DbWeight::get().writes(1 as Weight))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,13 +1,29 @@
|
|||||||
//! Autogenerated weights for pallet_utility
|
// Copyright 2021 Parity Technologies (UK) Ltd.
|
||||||
|
// This file is part of Cumulus.
|
||||||
|
|
||||||
|
// Cumulus is free software: you can redistribute it and/or modify
|
||||||
|
// it under the terms of the GNU General Public License as published by
|
||||||
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
|
// (at your option) any later version.
|
||||||
|
|
||||||
|
// Cumulus is distributed in the hope that it will be useful,
|
||||||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
// GNU General Public License for more details.
|
||||||
|
|
||||||
|
// You should have received a copy of the GNU General Public License
|
||||||
|
// along with Cumulus. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
//! Autogenerated weights for `pallet_utility`
|
||||||
//!
|
//!
|
||||||
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0
|
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
|
||||||
//! DATE: 2021-05-31, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
//! DATE: 2021-10-19, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]`
|
||||||
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("statemint-dev"), DB CACHE: 128
|
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("westmint-dev"), DB CACHE: 128
|
||||||
|
|
||||||
// Executed Command:
|
// Executed Command:
|
||||||
// ./target/release/statemint
|
// ./target/release/polkadot-collator
|
||||||
// benchmark
|
// benchmark
|
||||||
// --chain=statemint-dev
|
// --chain=westmint-dev
|
||||||
// --execution=wasm
|
// --execution=wasm
|
||||||
// --wasm-execution=compiled
|
// --wasm-execution=compiled
|
||||||
// --pallet=pallet_utility
|
// --pallet=pallet_utility
|
||||||
@@ -15,28 +31,31 @@
|
|||||||
// --steps=50
|
// --steps=50
|
||||||
// --repeat=20
|
// --repeat=20
|
||||||
// --raw
|
// --raw
|
||||||
// --output=./runtime/statemint/src/weights/
|
// --header=./file_header.txt
|
||||||
|
// --output=./polkadot-parachains/westmint/src/weights
|
||||||
|
|
||||||
|
|
||||||
|
#![cfg_attr(rustfmt, rustfmt_skip)]
|
||||||
#![allow(unused_parens)]
|
#![allow(unused_parens)]
|
||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
|
|
||||||
use frame_support::{traits::Get, weights::Weight};
|
use frame_support::{traits::Get, weights::Weight};
|
||||||
use sp_std::marker::PhantomData;
|
use sp_std::marker::PhantomData;
|
||||||
|
|
||||||
/// Weight functions for pallet_utility.
|
/// Weight functions for `pallet_utility`.
|
||||||
pub struct WeightInfo<T>(PhantomData<T>);
|
pub struct WeightInfo<T>(PhantomData<T>);
|
||||||
impl<T: frame_system::Config> pallet_utility::WeightInfo for WeightInfo<T> {
|
impl<T: frame_system::Config> pallet_utility::WeightInfo for WeightInfo<T> {
|
||||||
fn batch(c: u32) -> Weight {
|
fn batch(c: u32, ) -> Weight {
|
||||||
(15_408_000 as Weight)
|
(24_709_000 as Weight)
|
||||||
// Standard Error: 0
|
// Standard Error: 3_000
|
||||||
.saturating_add((4_571_000 as Weight).saturating_mul(c as Weight))
|
.saturating_add((6_934_000 as Weight).saturating_mul(c as Weight))
|
||||||
}
|
}
|
||||||
fn as_derivative() -> Weight {
|
fn as_derivative() -> Weight {
|
||||||
(7_817_000 as Weight)
|
(5_317_000 as Weight)
|
||||||
}
|
}
|
||||||
fn batch_all(c: u32) -> Weight {
|
fn batch_all(c: u32, ) -> Weight {
|
||||||
(16_520_000 as Weight)
|
(34_015_000 as Weight)
|
||||||
// Standard Error: 0
|
// Standard Error: 3_000
|
||||||
.saturating_add((4_571_000 as Weight).saturating_mul(c as Weight))
|
.saturating_add((7_343_000 as Weight).saturating_mul(c as Weight))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
changelog.md
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
# Changelog
|
||||||
|
|
||||||
|
Currently, the changelog is built locally.
|
||||||
|
Run:
|
||||||
|
|
||||||
|
```
|
||||||
|
./changelog.sh <ref_since>
|
||||||
|
```
|
||||||
|
|
||||||
|
For instance:
|
||||||
|
```
|
||||||
|
./changelog.sh statemine_v4
|
||||||
|
```
|
||||||
Executable
+11
@@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
REF1=$1
|
||||||
|
|
||||||
|
JSON=$(git log $REF1..HEAD \
|
||||||
|
--pretty=format:'{ "commit": "%H", "short_sha": "%h", "author": "%an", "date": "%ad", "message": "%s"},' \
|
||||||
|
$@ | \
|
||||||
|
perl -pe 'BEGIN{print "{ \"since\": \"'${REF1}'\", \"commits\": ["}; END{print "]}"}' | \
|
||||||
|
perl -pe 's/},]/}]/')
|
||||||
|
|
||||||
|
echo $JSON | tera --template templates/changelog.md --stdin | tee
|
||||||
Executable
+37
@@ -0,0 +1,37 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
usage() {
|
||||||
|
echo Usage:
|
||||||
|
echo "$0 <srtool compressed runtime>"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
rt_path=$1
|
||||||
|
|
||||||
|
binary="./target/release/polkadot-collator"
|
||||||
|
|
||||||
|
# build the chain spec we'll manipulate
|
||||||
|
$binary build-spec --chain shell > shell-spec-plain.json
|
||||||
|
|
||||||
|
# convert runtime to hex
|
||||||
|
cat $rt_path | od -A n -v -t x1 | tr -d ' \n' > shell-hex.txt
|
||||||
|
|
||||||
|
# replace the runtime in the spec with the given runtime and set some values to production
|
||||||
|
cat shell-spec-plain.json | jq --rawfile code shell-hex.txt '.genesis.runtime.system.code = ("0x" + $code)' \
|
||||||
|
| jq '.name = "Shell"' \
|
||||||
|
| jq '.id = "shell"' \
|
||||||
|
| jq '.chainType = "Live"' \
|
||||||
|
| jq '.bootNodes = ["/ip4/34.65.116.156/tcp/30334/p2p/12D3KooWMdwvej593sntpXcxpUaFcsjc1EpCr5CL1JMoKmEhgj1N", "/ip4/34.65.105.127/tcp/30334/p2p/12D3KooWRywSWa2sQpcRuLhSeNSEs6bepLGgcdxFg8P7jtXRuiYf", "/ip4/34.65.142.204/tcp/30334/p2p/12D3KooWDGnPd5PzgvcbSwXsCBN3kb1dWbu58sy6R7h4fJGnZtq5", "/ip4/34.65.32.100/tcp/30334/p2p/12D3KooWSzHX7A3t6BwUQrq8R9ZVWLrfyYgkYLfpKMcRs14oFSgc"]' \
|
||||||
|
| jq '.relay_chain = "polkadot"' \
|
||||||
|
> edited-shell-plain.json
|
||||||
|
|
||||||
|
# build a raw spec
|
||||||
|
$binary build-spec --chain edited-shell-plain.json --raw > shell-spec-raw.json
|
||||||
|
|
||||||
|
# build genesis data
|
||||||
|
$binary export-genesis-state --parachain-id=1000 --chain shell-spec-raw.json > shell-head-data
|
||||||
|
|
||||||
|
# build genesis wasm
|
||||||
|
$binary export-genesis-wasm --chain shell-spec-raw.json > shell-wasm
|
||||||
@@ -15,3 +15,8 @@ yarn
|
|||||||
popd
|
popd
|
||||||
|
|
||||||
node generate_genesis_values ../polkadot-parachains/res/$chain_id.json ../polkadot-parachains/res/${chain_id}_genesis_values.json
|
node generate_genesis_values ../polkadot-parachains/res/$chain_id.json ../polkadot-parachains/res/${chain_id}_genesis_values.json
|
||||||
|
|
||||||
|
pushd scale_encode_genesis
|
||||||
|
yarn
|
||||||
|
popd
|
||||||
|
node scale_encode_genesis ../polkadot-parachains/res/${chain_id}_genesis_values.json ${chain_id}_genesis_values.txt
|
||||||
|
|||||||
@@ -45,10 +45,10 @@ fs.readFile(input, "utf8", (err, data) => {
|
|||||||
|
|
||||||
const spec = JSON.parse(data);
|
const spec = JSON.parse(data);
|
||||||
|
|
||||||
const genesis = Object.fromEntries(
|
const genesis =
|
||||||
Object.entries(spec.genesis.raw.top).filter(
|
Object.entries(spec.genesis.raw.top).filter(
|
||||||
([key, value]) => !startsWith(key, filter_prefixes)
|
([key, value]) => !startsWith(key, filter_prefixes)
|
||||||
)
|
);
|
||||||
);
|
|
||||||
fs.writeFileSync(output, JSON.stringify(genesis));
|
fs.writeFileSync(output, JSON.stringify(genesis));
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -0,0 +1,41 @@
|
|||||||
|
const fs = require("fs");
|
||||||
|
const { exit } = require("process");
|
||||||
|
const {WsProvider, ApiPromise} = require("@polkadot/api");
|
||||||
|
const util = require("@polkadot/util");
|
||||||
|
|
||||||
|
async function connect(port, types) {
|
||||||
|
const provider = new WsProvider("ws://127.0.0.1:" + port);
|
||||||
|
const api = await ApiPromise.create({
|
||||||
|
provider,
|
||||||
|
types,
|
||||||
|
throwOnConnect: false,
|
||||||
|
});
|
||||||
|
return api;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!process.argv[2] || !process.argv[3]) {
|
||||||
|
console.log("usage: node generate_keys <input json> <scale output file>");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
const input = process.argv[2];
|
||||||
|
const output = process.argv[3];
|
||||||
|
fs.readFile(input, "utf8", (err, data) => {
|
||||||
|
if (err) {
|
||||||
|
console.log(`Error reading file from disk: ${err}`);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
const genesis = JSON.parse(data);
|
||||||
|
|
||||||
|
connect(9944, {}).then(api => {
|
||||||
|
const setStorage = api.tx.system.setStorage(genesis);
|
||||||
|
const raw = setStorage.method.toU8a();
|
||||||
|
const hex = util.u8aToHex(raw);
|
||||||
|
fs.writeFileSync(output, hex);
|
||||||
|
exit(0)
|
||||||
|
}).catch(e => {
|
||||||
|
console.error(e);
|
||||||
|
exit(1)
|
||||||
|
});
|
||||||
|
});
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"name": "y",
|
||||||
|
"version": "y",
|
||||||
|
"description": "create a scale encoded tx for the genesis values",
|
||||||
|
"main": "index.js",
|
||||||
|
"license": "MIT",
|
||||||
|
"dependencies": {
|
||||||
|
"@polkadot/api": "^6.5.2",
|
||||||
|
"@polkadot/util": "^7.6.1"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,634 @@
|
|||||||
|
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||||
|
# yarn lockfile v1
|
||||||
|
|
||||||
|
|
||||||
|
"@babel/runtime@^7.15.3", "@babel/runtime@^7.15.4":
|
||||||
|
version "7.15.4"
|
||||||
|
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.15.4.tgz#fd17d16bfdf878e6dd02d19753a39fa8a8d9c84a"
|
||||||
|
integrity sha512-99catp6bHCaxr4sJ/DbTGgHS4+Rs2RVd2g7iOap6SLGPDknRK9ztKNsE/Fg6QhSeh1FGE5f6gHGQmvvn3I3xhw==
|
||||||
|
dependencies:
|
||||||
|
regenerator-runtime "^0.13.4"
|
||||||
|
|
||||||
|
"@polkadot/api-derive@6.5.2":
|
||||||
|
version "6.5.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/@polkadot/api-derive/-/api-derive-6.5.2.tgz#1c14c4cda13bab958b55ce8973aed2a4388d400d"
|
||||||
|
integrity sha512-QD7xegHVLIrDxbuBiAF4wGzqXc/pXsfwTLpkVW1bT7Aa8pXWVTdahh4HCcgOq7c1i01QS2lQE21/4SSLG7KzUA==
|
||||||
|
dependencies:
|
||||||
|
"@babel/runtime" "^7.15.4"
|
||||||
|
"@polkadot/api" "6.5.2"
|
||||||
|
"@polkadot/rpc-core" "6.5.2"
|
||||||
|
"@polkadot/types" "6.5.2"
|
||||||
|
"@polkadot/util" "^7.6.1"
|
||||||
|
"@polkadot/util-crypto" "^7.6.1"
|
||||||
|
rxjs "^7.4.0"
|
||||||
|
|
||||||
|
"@polkadot/api@6.5.2", "@polkadot/api@^6.5.2":
|
||||||
|
version "6.5.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/@polkadot/api/-/api-6.5.2.tgz#40a2a2545cc3be19ce35b4c4b688c0a2055576bd"
|
||||||
|
integrity sha512-UNR8pynzPzS1GxpCoLh2a/iPf9lPYY03q0ZLZG/qYYFR+njeD7/4B5e+yEMHIDKS/+XAvM5zXDEbEtxHMiCR9A==
|
||||||
|
dependencies:
|
||||||
|
"@babel/runtime" "^7.15.4"
|
||||||
|
"@polkadot/api-derive" "6.5.2"
|
||||||
|
"@polkadot/keyring" "^7.6.1"
|
||||||
|
"@polkadot/rpc-core" "6.5.2"
|
||||||
|
"@polkadot/rpc-provider" "6.5.2"
|
||||||
|
"@polkadot/types" "6.5.2"
|
||||||
|
"@polkadot/types-known" "6.5.2"
|
||||||
|
"@polkadot/util" "^7.6.1"
|
||||||
|
"@polkadot/util-crypto" "^7.6.1"
|
||||||
|
eventemitter3 "^4.0.7"
|
||||||
|
rxjs "^7.4.0"
|
||||||
|
|
||||||
|
"@polkadot/keyring@^7.6.1":
|
||||||
|
version "7.6.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/@polkadot/keyring/-/keyring-7.6.1.tgz#a138e417cbbf85b3f0f66af66f5cd40735ba24a1"
|
||||||
|
integrity sha512-lpbTHAQqae++cvaNfuCjdz2xbNrk0ZSGCM8w08Br6NIz8NyrwR/qm1PfV75leoLq/Qx58+aj8v2qANEBOVz4vQ==
|
||||||
|
dependencies:
|
||||||
|
"@babel/runtime" "^7.15.4"
|
||||||
|
"@polkadot/util" "7.6.1"
|
||||||
|
"@polkadot/util-crypto" "7.6.1"
|
||||||
|
|
||||||
|
"@polkadot/networks@7.6.1", "@polkadot/networks@^7.6.1":
|
||||||
|
version "7.6.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/@polkadot/networks/-/networks-7.6.1.tgz#d7ca346a3c15b29c9286ccbc67b1438bf9c8130e"
|
||||||
|
integrity sha512-76RdEVy+G14P13oxSe3+VDwFdVYRNVAy7xi9ESJBRZFnQC/TIL2rOeg7Gq5+HP/mkgzG4gL5X30VdE+aKzokpA==
|
||||||
|
dependencies:
|
||||||
|
"@babel/runtime" "^7.15.4"
|
||||||
|
|
||||||
|
"@polkadot/rpc-core@6.5.2":
|
||||||
|
version "6.5.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/@polkadot/rpc-core/-/rpc-core-6.5.2.tgz#4dbdf39974284df9f0cc6897654c91b05db66482"
|
||||||
|
integrity sha512-ZZRUQqizqH2E4OZ61C1T78KnWm2OiewIZt0SomB5s7zc7ixwcvFltjlWdiuQspG2m4VMb46jFy3pVdkycgrMfg==
|
||||||
|
dependencies:
|
||||||
|
"@babel/runtime" "^7.15.4"
|
||||||
|
"@polkadot/rpc-provider" "6.5.2"
|
||||||
|
"@polkadot/types" "6.5.2"
|
||||||
|
"@polkadot/util" "^7.6.1"
|
||||||
|
rxjs "^7.4.0"
|
||||||
|
|
||||||
|
"@polkadot/rpc-provider@6.5.2":
|
||||||
|
version "6.5.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/@polkadot/rpc-provider/-/rpc-provider-6.5.2.tgz#359ba68ef5c171191bdd10867e99d3c7b7d71cc5"
|
||||||
|
integrity sha512-MFphpbI9zsYKGFb2mXkeOhWRiyDZxKYTyViVB5kE0YeMMl1DHR3YVfjR6t+K5H1A++iwh3xilkyZ8imcfTK/BQ==
|
||||||
|
dependencies:
|
||||||
|
"@babel/runtime" "^7.15.4"
|
||||||
|
"@polkadot/types" "6.5.2"
|
||||||
|
"@polkadot/util" "^7.6.1"
|
||||||
|
"@polkadot/util-crypto" "^7.6.1"
|
||||||
|
"@polkadot/x-fetch" "^7.6.1"
|
||||||
|
"@polkadot/x-global" "^7.6.1"
|
||||||
|
"@polkadot/x-ws" "^7.6.1"
|
||||||
|
eventemitter3 "^4.0.7"
|
||||||
|
|
||||||
|
"@polkadot/types-known@6.5.2":
|
||||||
|
version "6.5.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/@polkadot/types-known/-/types-known-6.5.2.tgz#a5b3afe7ddf9fc4a87f1b391d6d7058eb4e03ae0"
|
||||||
|
integrity sha512-5mFcsAJDL10pwTRI2ODNYvzeB1pQsSbYakI323BkA9iWxNSDYgHNU9prgEAnbO6VXP31HMX86ZDGhEm/XpGo4A==
|
||||||
|
dependencies:
|
||||||
|
"@babel/runtime" "^7.15.4"
|
||||||
|
"@polkadot/networks" "^7.6.1"
|
||||||
|
"@polkadot/types" "6.5.2"
|
||||||
|
"@polkadot/util" "^7.6.1"
|
||||||
|
|
||||||
|
"@polkadot/types@6.5.2":
|
||||||
|
version "6.5.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/@polkadot/types/-/types-6.5.2.tgz#76f5fb1b35ae20530554869b9a859811b4048b28"
|
||||||
|
integrity sha512-QDE5SxyW/Veq0IB8zT0RaBJTedmVkxhR8EykwslJiRuHSBz/HZjtEhcnA44c8fdKWKkbURklbX2vlWd7d2w4jQ==
|
||||||
|
dependencies:
|
||||||
|
"@babel/runtime" "^7.15.4"
|
||||||
|
"@polkadot/util" "^7.6.1"
|
||||||
|
"@polkadot/util-crypto" "^7.6.1"
|
||||||
|
rxjs "^7.4.0"
|
||||||
|
|
||||||
|
"@polkadot/util-crypto@7.6.1", "@polkadot/util-crypto@^7.6.1":
|
||||||
|
version "7.6.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/@polkadot/util-crypto/-/util-crypto-7.6.1.tgz#3e40270e9dce7885d92d0992aef9761feb57f2e2"
|
||||||
|
integrity sha512-5lLEfexkYOc73jitwC4K/Ll3JNA8Hdo2aU3GSOkDah8bBpm02djD7ypwfmuWRJw0UDyTgY67g0SXn4frPcQiag==
|
||||||
|
dependencies:
|
||||||
|
"@babel/runtime" "^7.15.4"
|
||||||
|
"@polkadot/networks" "7.6.1"
|
||||||
|
"@polkadot/util" "7.6.1"
|
||||||
|
"@polkadot/wasm-crypto" "^4.2.1"
|
||||||
|
"@polkadot/x-randomvalues" "7.6.1"
|
||||||
|
base-x "^3.0.9"
|
||||||
|
base64-js "^1.5.1"
|
||||||
|
blakejs "^1.1.1"
|
||||||
|
bn.js "^4.12.0"
|
||||||
|
create-hash "^1.2.0"
|
||||||
|
ed2curve "^0.3.0"
|
||||||
|
elliptic "^6.5.4"
|
||||||
|
hash.js "^1.1.7"
|
||||||
|
js-sha3 "^0.8.0"
|
||||||
|
scryptsy "^2.1.0"
|
||||||
|
tweetnacl "^1.0.3"
|
||||||
|
xxhashjs "^0.2.2"
|
||||||
|
|
||||||
|
"@polkadot/util@7.6.1", "@polkadot/util@^7.6.1":
|
||||||
|
version "7.6.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-7.6.1.tgz#e6988124728fdf053929022827216241dd50a6fa"
|
||||||
|
integrity sha512-96UgzMOxwwsndGHN4aoyPYVRXpHcVpYb4zngFH2O9ma0YxrG2HhhqqoJ5pS0OUlhvcQkVz6T6t+heGFnTkvQxw==
|
||||||
|
dependencies:
|
||||||
|
"@babel/runtime" "^7.15.4"
|
||||||
|
"@polkadot/x-textdecoder" "7.6.1"
|
||||||
|
"@polkadot/x-textencoder" "7.6.1"
|
||||||
|
"@types/bn.js" "^4.11.6"
|
||||||
|
bn.js "^4.12.0"
|
||||||
|
camelcase "^6.2.0"
|
||||||
|
ip-regex "^4.3.0"
|
||||||
|
|
||||||
|
"@polkadot/wasm-crypto-asmjs@^4.2.1":
|
||||||
|
version "4.2.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto-asmjs/-/wasm-crypto-asmjs-4.2.1.tgz#6b7eae1c011709f8042dfd30872a5fc5e9e021c0"
|
||||||
|
integrity sha512-ON9EBpTNDCI3QRUmuQJIegYoAcwvxDaNNA7uwKTaEEStu8LjCIbQxbt4WbOBYWI0PoUpl4iIluXdT3XZ3V3jXA==
|
||||||
|
dependencies:
|
||||||
|
"@babel/runtime" "^7.15.3"
|
||||||
|
|
||||||
|
"@polkadot/wasm-crypto-wasm@^4.2.1":
|
||||||
|
version "4.2.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto-wasm/-/wasm-crypto-wasm-4.2.1.tgz#2a86f9b405e7195c3f523798c6ce4afffd19737e"
|
||||||
|
integrity sha512-Rs2CKiR4D+2hKzmKBfPNYxcd2E8NfLWia0av4fgicjT9YsWIWOGQUi9AtSOfazPOR9FrjxKJy+chQxAkcfKMnQ==
|
||||||
|
dependencies:
|
||||||
|
"@babel/runtime" "^7.15.3"
|
||||||
|
|
||||||
|
"@polkadot/wasm-crypto@^4.2.1":
|
||||||
|
version "4.2.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/@polkadot/wasm-crypto/-/wasm-crypto-4.2.1.tgz#4d09402f5ac71a90962fb58cbe4b1707772a4fb6"
|
||||||
|
integrity sha512-C/A/QnemOilRTLnM0LfhPY2N/x3ZFd1ihm9sXYyuh98CxtekSVYI9h4IJ5Jrgz5imSUHgvt9oJLqJ5GbWQV/Zg==
|
||||||
|
dependencies:
|
||||||
|
"@babel/runtime" "^7.15.3"
|
||||||
|
"@polkadot/wasm-crypto-asmjs" "^4.2.1"
|
||||||
|
"@polkadot/wasm-crypto-wasm" "^4.2.1"
|
||||||
|
|
||||||
|
"@polkadot/x-fetch@^7.6.1":
|
||||||
|
version "7.6.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/@polkadot/x-fetch/-/x-fetch-7.6.1.tgz#fda1a89bbb584217f96c2d3c3a3ce0f10a454436"
|
||||||
|
integrity sha512-CdjCg7BGhKfKNntUiK9vFOoum44o86TInPpqNumLGWAZmqI+kU0DCUDtqcw7uFOdZL1j/3GHdXigJ6LL1TnNcg==
|
||||||
|
dependencies:
|
||||||
|
"@babel/runtime" "^7.15.4"
|
||||||
|
"@polkadot/x-global" "7.6.1"
|
||||||
|
"@types/node-fetch" "^2.5.12"
|
||||||
|
node-fetch "^2.6.5"
|
||||||
|
|
||||||
|
"@polkadot/x-global@7.6.1", "@polkadot/x-global@^7.6.1":
|
||||||
|
version "7.6.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/@polkadot/x-global/-/x-global-7.6.1.tgz#f43a61d40bfaf2f43f9a4ef39e01a24546768394"
|
||||||
|
integrity sha512-jKPNFHiC0yIc6TfqZtopaqsW3pDun1uh9lp0kcDkfOYozwwN1NVXWLClDBa2C5UiKU/jxA3biYiNZUyZpbV13g==
|
||||||
|
dependencies:
|
||||||
|
"@babel/runtime" "^7.15.4"
|
||||||
|
|
||||||
|
"@polkadot/x-randomvalues@7.6.1":
|
||||||
|
version "7.6.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/@polkadot/x-randomvalues/-/x-randomvalues-7.6.1.tgz#0cd143cf976e36f5c9fcf53ba41fd5fffca95c44"
|
||||||
|
integrity sha512-hfSMBeMZTrnuejv/oXp3tMZARTOGyQZ3G0GW44dV2fR2L1+tlLj9VuXgVGgupNBq7AC6eSfE3XhJwCGyH5FhmQ==
|
||||||
|
dependencies:
|
||||||
|
"@babel/runtime" "^7.15.4"
|
||||||
|
"@polkadot/x-global" "7.6.1"
|
||||||
|
|
||||||
|
"@polkadot/x-textdecoder@7.6.1":
|
||||||
|
version "7.6.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/@polkadot/x-textdecoder/-/x-textdecoder-7.6.1.tgz#7e80b512f1ddfd01f243dbbe8afc9dab7d0c6c85"
|
||||||
|
integrity sha512-sJtQMMw+jO3CwpOf0t1hrVl3xMw1BOLs/Xjd0v/yhiTAJ1rr6dqvhcnOHkU3a7udqo7G9dXDrnGi1q3efifXPw==
|
||||||
|
dependencies:
|
||||||
|
"@babel/runtime" "^7.15.4"
|
||||||
|
"@polkadot/x-global" "7.6.1"
|
||||||
|
|
||||||
|
"@polkadot/x-textencoder@7.6.1":
|
||||||
|
version "7.6.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/@polkadot/x-textencoder/-/x-textencoder-7.6.1.tgz#2a2fb4baa13889fbc53b86ce9003de748f0df2aa"
|
||||||
|
integrity sha512-iqOGwXJIzc8rWYLPTYcO09LwA2q4fqwJhLsLCd+p13Z0yDSUvwgq785/2WEQfhSFbMd8HM6udedqrQTpnpIujg==
|
||||||
|
dependencies:
|
||||||
|
"@babel/runtime" "^7.15.4"
|
||||||
|
"@polkadot/x-global" "7.6.1"
|
||||||
|
|
||||||
|
"@polkadot/x-ws@^7.6.1":
|
||||||
|
version "7.6.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/@polkadot/x-ws/-/x-ws-7.6.1.tgz#60c86cfb43935b38a6512f3e7bab362ffe6bec1f"
|
||||||
|
integrity sha512-nP8vHlL17SIuVinphuVbj2o3mfRWUTJqlhAYlA5RjO/sZ9TwYMvGTvL/1bOAfWdp/l451WLEWJtzSipzrVGBsg==
|
||||||
|
dependencies:
|
||||||
|
"@babel/runtime" "^7.15.4"
|
||||||
|
"@polkadot/x-global" "7.6.1"
|
||||||
|
"@types/websocket" "^1.0.4"
|
||||||
|
websocket "^1.0.34"
|
||||||
|
|
||||||
|
"@types/bn.js@^4.11.6":
|
||||||
|
version "4.11.6"
|
||||||
|
resolved "https://registry.yarnpkg.com/@types/bn.js/-/bn.js-4.11.6.tgz#c306c70d9358aaea33cd4eda092a742b9505967c"
|
||||||
|
integrity sha512-pqr857jrp2kPuO9uRjZ3PwnJTjoQy+fcdxvBTvHm6dkmEL9q+hDD/2j/0ELOBPtPnS8LjCX0gI9nbl8lVkadpg==
|
||||||
|
dependencies:
|
||||||
|
"@types/node" "*"
|
||||||
|
|
||||||
|
"@types/node-fetch@^2.5.12":
|
||||||
|
version "2.5.12"
|
||||||
|
resolved "https://registry.yarnpkg.com/@types/node-fetch/-/node-fetch-2.5.12.tgz#8a6f779b1d4e60b7a57fb6fd48d84fb545b9cc66"
|
||||||
|
integrity sha512-MKgC4dlq4kKNa/mYrwpKfzQMB5X3ee5U6fSprkKpToBqBmX4nFZL9cW5jl6sWn+xpRJ7ypWh2yyqqr8UUCstSw==
|
||||||
|
dependencies:
|
||||||
|
"@types/node" "*"
|
||||||
|
form-data "^3.0.0"
|
||||||
|
|
||||||
|
"@types/node@*":
|
||||||
|
version "16.11.6"
|
||||||
|
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.6.tgz#6bef7a2a0ad684cf6e90fcfe31cecabd9ce0a3ae"
|
||||||
|
integrity sha512-ua7PgUoeQFjmWPcoo9khiPum3Pd60k4/2ZGXt18sm2Slk0W0xZTqt5Y0Ny1NyBiN1EVQ/+FaF9NcY4Qe6rwk5w==
|
||||||
|
|
||||||
|
"@types/websocket@^1.0.4":
|
||||||
|
version "1.0.4"
|
||||||
|
resolved "https://registry.yarnpkg.com/@types/websocket/-/websocket-1.0.4.tgz#1dc497280d8049a5450854dd698ee7e6ea9e60b8"
|
||||||
|
integrity sha512-qn1LkcFEKK8RPp459jkjzsfpbsx36BBt3oC3pITYtkoBw/aVX+EZFa5j3ThCRTNpLFvIMr5dSTD4RaMdilIOpA==
|
||||||
|
dependencies:
|
||||||
|
"@types/node" "*"
|
||||||
|
|
||||||
|
asynckit@^0.4.0:
|
||||||
|
version "0.4.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79"
|
||||||
|
integrity sha1-x57Zf380y48robyXkLzDZkdLS3k=
|
||||||
|
|
||||||
|
base-x@^3.0.9:
|
||||||
|
version "3.0.9"
|
||||||
|
resolved "https://registry.yarnpkg.com/base-x/-/base-x-3.0.9.tgz#6349aaabb58526332de9f60995e548a53fe21320"
|
||||||
|
integrity sha512-H7JU6iBHTal1gp56aKoaa//YUxEaAOUiydvrV/pILqIHXTtqxSkATOnDA2u+jZ/61sD+L/412+7kzXRtWukhpQ==
|
||||||
|
dependencies:
|
||||||
|
safe-buffer "^5.0.1"
|
||||||
|
|
||||||
|
base64-js@^1.5.1:
|
||||||
|
version "1.5.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a"
|
||||||
|
integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==
|
||||||
|
|
||||||
|
blakejs@^1.1.1:
|
||||||
|
version "1.1.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/blakejs/-/blakejs-1.1.1.tgz#bf313053978b2cd4c444a48795710be05c785702"
|
||||||
|
integrity sha512-bLG6PHOCZJKNshTjGRBvET0vTciwQE6zFKOKKXPDJfwFBd4Ac0yBfPZqcGvGJap50l7ktvlpFqc2jGVaUgbJgg==
|
||||||
|
|
||||||
|
bn.js@^4.11.9, bn.js@^4.12.0:
|
||||||
|
version "4.12.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.12.0.tgz#775b3f278efbb9718eec7361f483fb36fbbfea88"
|
||||||
|
integrity sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==
|
||||||
|
|
||||||
|
brorand@^1.1.0:
|
||||||
|
version "1.1.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/brorand/-/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f"
|
||||||
|
integrity sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=
|
||||||
|
|
||||||
|
bufferutil@^4.0.1:
|
||||||
|
version "4.0.5"
|
||||||
|
resolved "https://registry.yarnpkg.com/bufferutil/-/bufferutil-4.0.5.tgz#da9ea8166911cc276bf677b8aed2d02d31f59028"
|
||||||
|
integrity sha512-HTm14iMQKK2FjFLRTM5lAVcyaUzOnqbPtesFIvREgXpJHdQm8bWS+GkQgIkfaBYRHuCnea7w8UVNfwiAQhlr9A==
|
||||||
|
dependencies:
|
||||||
|
node-gyp-build "^4.3.0"
|
||||||
|
|
||||||
|
camelcase@^6.2.0:
|
||||||
|
version "6.2.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.2.0.tgz#924af881c9d525ac9d87f40d964e5cea982a1809"
|
||||||
|
integrity sha512-c7wVvbw3f37nuobQNtgsgG9POC9qMbNuMQmTCqZv23b6MIz0fcYpBiOlv9gEN/hdLdnZTDQhg6e9Dq5M1vKvfg==
|
||||||
|
|
||||||
|
cipher-base@^1.0.1:
|
||||||
|
version "1.0.4"
|
||||||
|
resolved "https://registry.yarnpkg.com/cipher-base/-/cipher-base-1.0.4.tgz#8760e4ecc272f4c363532f926d874aae2c1397de"
|
||||||
|
integrity sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==
|
||||||
|
dependencies:
|
||||||
|
inherits "^2.0.1"
|
||||||
|
safe-buffer "^5.0.1"
|
||||||
|
|
||||||
|
combined-stream@^1.0.8:
|
||||||
|
version "1.0.8"
|
||||||
|
resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f"
|
||||||
|
integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==
|
||||||
|
dependencies:
|
||||||
|
delayed-stream "~1.0.0"
|
||||||
|
|
||||||
|
create-hash@^1.2.0:
|
||||||
|
version "1.2.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/create-hash/-/create-hash-1.2.0.tgz#889078af11a63756bcfb59bd221996be3a9ef196"
|
||||||
|
integrity sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==
|
||||||
|
dependencies:
|
||||||
|
cipher-base "^1.0.1"
|
||||||
|
inherits "^2.0.1"
|
||||||
|
md5.js "^1.3.4"
|
||||||
|
ripemd160 "^2.0.1"
|
||||||
|
sha.js "^2.4.0"
|
||||||
|
|
||||||
|
cuint@^0.2.2:
|
||||||
|
version "0.2.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/cuint/-/cuint-0.2.2.tgz#408086d409550c2631155619e9fa7bcadc3b991b"
|
||||||
|
integrity sha1-QICG1AlVDCYxFVYZ6fp7ytw7mRs=
|
||||||
|
|
||||||
|
d@1, d@^1.0.1:
|
||||||
|
version "1.0.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/d/-/d-1.0.1.tgz#8698095372d58dbee346ffd0c7093f99f8f9eb5a"
|
||||||
|
integrity sha512-m62ShEObQ39CfralilEQRjH6oAMtNCV1xJyEx5LpRYUVN+EviphDgUc/F3hnYbADmkiNs67Y+3ylmlG7Lnu+FA==
|
||||||
|
dependencies:
|
||||||
|
es5-ext "^0.10.50"
|
||||||
|
type "^1.0.1"
|
||||||
|
|
||||||
|
debug@^2.2.0:
|
||||||
|
version "2.6.9"
|
||||||
|
resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f"
|
||||||
|
integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==
|
||||||
|
dependencies:
|
||||||
|
ms "2.0.0"
|
||||||
|
|
||||||
|
delayed-stream@~1.0.0:
|
||||||
|
version "1.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619"
|
||||||
|
integrity sha1-3zrhmayt+31ECqrgsp4icrJOxhk=
|
||||||
|
|
||||||
|
ed2curve@^0.3.0:
|
||||||
|
version "0.3.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/ed2curve/-/ed2curve-0.3.0.tgz#322b575152a45305429d546b071823a93129a05d"
|
||||||
|
integrity sha512-8w2fmmq3hv9rCrcI7g9hms2pMunQr1JINfcjwR9tAyZqhtyaMN991lF/ZfHfr5tzZQ8c7y7aBgZbjfbd0fjFwQ==
|
||||||
|
dependencies:
|
||||||
|
tweetnacl "1.x.x"
|
||||||
|
|
||||||
|
elliptic@^6.5.4:
|
||||||
|
version "6.5.4"
|
||||||
|
resolved "https://registry.yarnpkg.com/elliptic/-/elliptic-6.5.4.tgz#da37cebd31e79a1367e941b592ed1fbebd58abbb"
|
||||||
|
integrity sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==
|
||||||
|
dependencies:
|
||||||
|
bn.js "^4.11.9"
|
||||||
|
brorand "^1.1.0"
|
||||||
|
hash.js "^1.0.0"
|
||||||
|
hmac-drbg "^1.0.1"
|
||||||
|
inherits "^2.0.4"
|
||||||
|
minimalistic-assert "^1.0.1"
|
||||||
|
minimalistic-crypto-utils "^1.0.1"
|
||||||
|
|
||||||
|
es5-ext@^0.10.35, es5-ext@^0.10.50:
|
||||||
|
version "0.10.53"
|
||||||
|
resolved "https://registry.yarnpkg.com/es5-ext/-/es5-ext-0.10.53.tgz#93c5a3acfdbef275220ad72644ad02ee18368de1"
|
||||||
|
integrity sha512-Xs2Stw6NiNHWypzRTY1MtaG/uJlwCk8kH81920ma8mvN8Xq1gsfhZvpkImLQArw8AHnv8MT2I45J3c0R8slE+Q==
|
||||||
|
dependencies:
|
||||||
|
es6-iterator "~2.0.3"
|
||||||
|
es6-symbol "~3.1.3"
|
||||||
|
next-tick "~1.0.0"
|
||||||
|
|
||||||
|
es6-iterator@~2.0.3:
|
||||||
|
version "2.0.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/es6-iterator/-/es6-iterator-2.0.3.tgz#a7de889141a05a94b0854403b2d0a0fbfa98f3b7"
|
||||||
|
integrity sha1-p96IkUGgWpSwhUQDstCg+/qY87c=
|
||||||
|
dependencies:
|
||||||
|
d "1"
|
||||||
|
es5-ext "^0.10.35"
|
||||||
|
es6-symbol "^3.1.1"
|
||||||
|
|
||||||
|
es6-symbol@^3.1.1, es6-symbol@~3.1.3:
|
||||||
|
version "3.1.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/es6-symbol/-/es6-symbol-3.1.3.tgz#bad5d3c1bcdac28269f4cb331e431c78ac705d18"
|
||||||
|
integrity sha512-NJ6Yn3FuDinBaBRWl/q5X/s4koRHBrgKAu+yGI6JCBeiu3qrcbJhwT2GeR/EXVfylRk8dpQVJoLEFhK+Mu31NA==
|
||||||
|
dependencies:
|
||||||
|
d "^1.0.1"
|
||||||
|
ext "^1.1.2"
|
||||||
|
|
||||||
|
eventemitter3@^4.0.7:
|
||||||
|
version "4.0.7"
|
||||||
|
resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f"
|
||||||
|
integrity sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==
|
||||||
|
|
||||||
|
ext@^1.1.2:
|
||||||
|
version "1.6.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/ext/-/ext-1.6.0.tgz#3871d50641e874cc172e2b53f919842d19db4c52"
|
||||||
|
integrity sha512-sdBImtzkq2HpkdRLtlLWDa6w4DX22ijZLKx8BMPUuKe1c5lbN6xwQDQCxSfxBQnHZ13ls/FH0MQZx/q/gr6FQg==
|
||||||
|
dependencies:
|
||||||
|
type "^2.5.0"
|
||||||
|
|
||||||
|
form-data@^3.0.0:
|
||||||
|
version "3.0.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/form-data/-/form-data-3.0.1.tgz#ebd53791b78356a99af9a300d4282c4d5eb9755f"
|
||||||
|
integrity sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==
|
||||||
|
dependencies:
|
||||||
|
asynckit "^0.4.0"
|
||||||
|
combined-stream "^1.0.8"
|
||||||
|
mime-types "^2.1.12"
|
||||||
|
|
||||||
|
hash-base@^3.0.0:
|
||||||
|
version "3.1.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/hash-base/-/hash-base-3.1.0.tgz#55c381d9e06e1d2997a883b4a3fddfe7f0d3af33"
|
||||||
|
integrity sha512-1nmYp/rhMDiE7AYkDw+lLwlAzz0AntGIe51F3RfFfEqyQ3feY2eI/NcwC6umIQVOASPMsWJLJScWKSSvzL9IVA==
|
||||||
|
dependencies:
|
||||||
|
inherits "^2.0.4"
|
||||||
|
readable-stream "^3.6.0"
|
||||||
|
safe-buffer "^5.2.0"
|
||||||
|
|
||||||
|
hash.js@^1.0.0, hash.js@^1.0.3, hash.js@^1.1.7:
|
||||||
|
version "1.1.7"
|
||||||
|
resolved "https://registry.yarnpkg.com/hash.js/-/hash.js-1.1.7.tgz#0babca538e8d4ee4a0f8988d68866537a003cf42"
|
||||||
|
integrity sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==
|
||||||
|
dependencies:
|
||||||
|
inherits "^2.0.3"
|
||||||
|
minimalistic-assert "^1.0.1"
|
||||||
|
|
||||||
|
hmac-drbg@^1.0.1:
|
||||||
|
version "1.0.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/hmac-drbg/-/hmac-drbg-1.0.1.tgz#d2745701025a6c775a6c545793ed502fc0c649a1"
|
||||||
|
integrity sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=
|
||||||
|
dependencies:
|
||||||
|
hash.js "^1.0.3"
|
||||||
|
minimalistic-assert "^1.0.0"
|
||||||
|
minimalistic-crypto-utils "^1.0.1"
|
||||||
|
|
||||||
|
inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4:
|
||||||
|
version "2.0.4"
|
||||||
|
resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c"
|
||||||
|
integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==
|
||||||
|
|
||||||
|
ip-regex@^4.3.0:
|
||||||
|
version "4.3.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/ip-regex/-/ip-regex-4.3.0.tgz#687275ab0f57fa76978ff8f4dddc8a23d5990db5"
|
||||||
|
integrity sha512-B9ZWJxHHOHUhUjCPrMpLD4xEq35bUTClHM1S6CBU5ixQnkZmwipwgc96vAd7AAGM9TGHvJR+Uss+/Ak6UphK+Q==
|
||||||
|
|
||||||
|
is-typedarray@^1.0.0:
|
||||||
|
version "1.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a"
|
||||||
|
integrity sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=
|
||||||
|
|
||||||
|
js-sha3@^0.8.0:
|
||||||
|
version "0.8.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/js-sha3/-/js-sha3-0.8.0.tgz#b9b7a5da73afad7dedd0f8c463954cbde6818840"
|
||||||
|
integrity sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q==
|
||||||
|
|
||||||
|
md5.js@^1.3.4:
|
||||||
|
version "1.3.5"
|
||||||
|
resolved "https://registry.yarnpkg.com/md5.js/-/md5.js-1.3.5.tgz#b5d07b8e3216e3e27cd728d72f70d1e6a342005f"
|
||||||
|
integrity sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==
|
||||||
|
dependencies:
|
||||||
|
hash-base "^3.0.0"
|
||||||
|
inherits "^2.0.1"
|
||||||
|
safe-buffer "^5.1.2"
|
||||||
|
|
||||||
|
mime-db@1.50.0:
|
||||||
|
version "1.50.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.50.0.tgz#abd4ac94e98d3c0e185016c67ab45d5fde40c11f"
|
||||||
|
integrity sha512-9tMZCDlYHqeERXEHO9f/hKfNXhre5dK2eE/krIvUjZbS2KPcqGDfNShIWS1uW9XOTKQKqK6qbeOci18rbfW77A==
|
||||||
|
|
||||||
|
mime-types@^2.1.12:
|
||||||
|
version "2.1.33"
|
||||||
|
resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.33.tgz#1fa12a904472fafd068e48d9e8401f74d3f70edb"
|
||||||
|
integrity sha512-plLElXp7pRDd0bNZHw+nMd52vRYjLwQjygaNg7ddJ2uJtTlmnTCjWuPKxVu6//AdaRuME84SvLW91sIkBqGT0g==
|
||||||
|
dependencies:
|
||||||
|
mime-db "1.50.0"
|
||||||
|
|
||||||
|
minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1:
|
||||||
|
version "1.0.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7"
|
||||||
|
integrity sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==
|
||||||
|
|
||||||
|
minimalistic-crypto-utils@^1.0.1:
|
||||||
|
version "1.0.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz#f6c00c1c0b082246e5c4d99dfb8c7c083b2b582a"
|
||||||
|
integrity sha1-9sAMHAsIIkblxNmd+4x8CDsrWCo=
|
||||||
|
|
||||||
|
ms@2.0.0:
|
||||||
|
version "2.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8"
|
||||||
|
integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=
|
||||||
|
|
||||||
|
next-tick@~1.0.0:
|
||||||
|
version "1.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/next-tick/-/next-tick-1.0.0.tgz#ca86d1fe8828169b0120208e3dc8424b9db8342c"
|
||||||
|
integrity sha1-yobR/ogoFpsBICCOPchCS524NCw=
|
||||||
|
|
||||||
|
node-fetch@^2.6.5:
|
||||||
|
version "2.6.5"
|
||||||
|
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.5.tgz#42735537d7f080a7e5f78b6c549b7146be1742fd"
|
||||||
|
integrity sha512-mmlIVHJEu5rnIxgEgez6b9GgWXbkZj5YZ7fx+2r94a2E+Uirsp6HsPTPlomfdHtpt/B0cdKviwkoaM6pyvUOpQ==
|
||||||
|
dependencies:
|
||||||
|
whatwg-url "^5.0.0"
|
||||||
|
|
||||||
|
node-gyp-build@^4.3.0:
|
||||||
|
version "4.3.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/node-gyp-build/-/node-gyp-build-4.3.0.tgz#9f256b03e5826150be39c764bf51e993946d71a3"
|
||||||
|
integrity sha512-iWjXZvmboq0ja1pUGULQBexmxq8CV4xBhX7VDOTbL7ZR4FOowwY/VOtRxBN/yKxmdGoIp4j5ysNT4u3S2pDQ3Q==
|
||||||
|
|
||||||
|
readable-stream@^3.6.0:
|
||||||
|
version "3.6.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.0.tgz#337bbda3adc0706bd3e024426a286d4b4b2c9198"
|
||||||
|
integrity sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==
|
||||||
|
dependencies:
|
||||||
|
inherits "^2.0.3"
|
||||||
|
string_decoder "^1.1.1"
|
||||||
|
util-deprecate "^1.0.1"
|
||||||
|
|
||||||
|
regenerator-runtime@^0.13.4:
|
||||||
|
version "0.13.9"
|
||||||
|
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz#8925742a98ffd90814988d7566ad30ca3b263b52"
|
||||||
|
integrity sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==
|
||||||
|
|
||||||
|
ripemd160@^2.0.1:
|
||||||
|
version "2.0.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-2.0.2.tgz#a1c1a6f624751577ba5d07914cbc92850585890c"
|
||||||
|
integrity sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==
|
||||||
|
dependencies:
|
||||||
|
hash-base "^3.0.0"
|
||||||
|
inherits "^2.0.1"
|
||||||
|
|
||||||
|
rxjs@^7.4.0:
|
||||||
|
version "7.4.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.4.0.tgz#a12a44d7eebf016f5ff2441b87f28c9a51cebc68"
|
||||||
|
integrity sha512-7SQDi7xeTMCJpqViXh8gL/lebcwlp3d831F05+9B44A4B0WfsEwUQHR64gsH1kvJ+Ep/J9K2+n1hVl1CsGN23w==
|
||||||
|
dependencies:
|
||||||
|
tslib "~2.1.0"
|
||||||
|
|
||||||
|
safe-buffer@^5.0.1, safe-buffer@^5.1.2, safe-buffer@^5.2.0, safe-buffer@~5.2.0:
|
||||||
|
version "5.2.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6"
|
||||||
|
integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==
|
||||||
|
|
||||||
|
scryptsy@^2.1.0:
|
||||||
|
version "2.1.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/scryptsy/-/scryptsy-2.1.0.tgz#8d1e8d0c025b58fdd25b6fa9a0dc905ee8faa790"
|
||||||
|
integrity sha512-1CdSqHQowJBnMAFyPEBRfqag/YP9OF394FV+4YREIJX4ljD7OxvQRDayyoyyCk+senRjSkP6VnUNQmVQqB6g7w==
|
||||||
|
|
||||||
|
sha.js@^2.4.0:
|
||||||
|
version "2.4.11"
|
||||||
|
resolved "https://registry.yarnpkg.com/sha.js/-/sha.js-2.4.11.tgz#37a5cf0b81ecbc6943de109ba2960d1b26584ae7"
|
||||||
|
integrity sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==
|
||||||
|
dependencies:
|
||||||
|
inherits "^2.0.1"
|
||||||
|
safe-buffer "^5.0.1"
|
||||||
|
|
||||||
|
string_decoder@^1.1.1:
|
||||||
|
version "1.3.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e"
|
||||||
|
integrity sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==
|
||||||
|
dependencies:
|
||||||
|
safe-buffer "~5.2.0"
|
||||||
|
|
||||||
|
tr46@~0.0.3:
|
||||||
|
version "0.0.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a"
|
||||||
|
integrity sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=
|
||||||
|
|
||||||
|
tslib@~2.1.0:
|
||||||
|
version "2.1.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.1.0.tgz#da60860f1c2ecaa5703ab7d39bc05b6bf988b97a"
|
||||||
|
integrity sha512-hcVC3wYEziELGGmEEXue7D75zbwIIVUMWAVbHItGPx0ziyXxrOMQx4rQEVEV45Ut/1IotuEvwqPopzIOkDMf0A==
|
||||||
|
|
||||||
|
tweetnacl@1.x.x, tweetnacl@^1.0.3:
|
||||||
|
version "1.0.3"
|
||||||
|
resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-1.0.3.tgz#ac0af71680458d8a6378d0d0d050ab1407d35596"
|
||||||
|
integrity sha512-6rt+RN7aOi1nGMyC4Xa5DdYiukl2UWCbcJft7YhxReBGQD7OAM8Pbxw6YMo4r2diNEA8FEmu32YOn9rhaiE5yw==
|
||||||
|
|
||||||
|
type@^1.0.1:
|
||||||
|
version "1.2.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/type/-/type-1.2.0.tgz#848dd7698dafa3e54a6c479e759c4bc3f18847a0"
|
||||||
|
integrity sha512-+5nt5AAniqsCnu2cEQQdpzCAh33kVx8n0VoFidKpB1dVVLAN/F+bgVOqOJqOnEnrhp222clB5p3vUlD+1QAnfg==
|
||||||
|
|
||||||
|
type@^2.5.0:
|
||||||
|
version "2.5.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/type/-/type-2.5.0.tgz#0a2e78c2e77907b252abe5f298c1b01c63f0db3d"
|
||||||
|
integrity sha512-180WMDQaIMm3+7hGXWf12GtdniDEy7nYcyFMKJn/eZz/6tSLXrUN9V0wKSbMjej0I1WHWbpREDEKHtqPQa9NNw==
|
||||||
|
|
||||||
|
typedarray-to-buffer@^3.1.5:
|
||||||
|
version "3.1.5"
|
||||||
|
resolved "https://registry.yarnpkg.com/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz#a97ee7a9ff42691b9f783ff1bc5112fe3fca9080"
|
||||||
|
integrity sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==
|
||||||
|
dependencies:
|
||||||
|
is-typedarray "^1.0.0"
|
||||||
|
|
||||||
|
utf-8-validate@^5.0.2:
|
||||||
|
version "5.0.7"
|
||||||
|
resolved "https://registry.yarnpkg.com/utf-8-validate/-/utf-8-validate-5.0.7.tgz#c15a19a6af1f7ad9ec7ddc425747ca28c3644922"
|
||||||
|
integrity sha512-vLt1O5Pp+flcArHGIyKEQq883nBt8nN8tVBcoL0qUXj2XT1n7p70yGIq2VK98I5FdZ1YHc0wk/koOnHjnXWk1Q==
|
||||||
|
dependencies:
|
||||||
|
node-gyp-build "^4.3.0"
|
||||||
|
|
||||||
|
util-deprecate@^1.0.1:
|
||||||
|
version "1.0.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"
|
||||||
|
integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=
|
||||||
|
|
||||||
|
webidl-conversions@^3.0.0:
|
||||||
|
version "3.0.1"
|
||||||
|
resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871"
|
||||||
|
integrity sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=
|
||||||
|
|
||||||
|
websocket@^1.0.34:
|
||||||
|
version "1.0.34"
|
||||||
|
resolved "https://registry.yarnpkg.com/websocket/-/websocket-1.0.34.tgz#2bdc2602c08bf2c82253b730655c0ef7dcab3111"
|
||||||
|
integrity sha512-PRDso2sGwF6kM75QykIesBijKSVceR6jL2G8NGYyq2XrItNC2P5/qL5XeR056GhA+Ly7JMFvJb9I312mJfmqnQ==
|
||||||
|
dependencies:
|
||||||
|
bufferutil "^4.0.1"
|
||||||
|
debug "^2.2.0"
|
||||||
|
es5-ext "^0.10.50"
|
||||||
|
typedarray-to-buffer "^3.1.5"
|
||||||
|
utf-8-validate "^5.0.2"
|
||||||
|
yaeti "^0.0.6"
|
||||||
|
|
||||||
|
whatwg-url@^5.0.0:
|
||||||
|
version "5.0.0"
|
||||||
|
resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d"
|
||||||
|
integrity sha1-lmRU6HZUYuN2RNNib2dCzotwll0=
|
||||||
|
dependencies:
|
||||||
|
tr46 "~0.0.3"
|
||||||
|
webidl-conversions "^3.0.0"
|
||||||
|
|
||||||
|
xxhashjs@^0.2.2:
|
||||||
|
version "0.2.2"
|
||||||
|
resolved "https://registry.yarnpkg.com/xxhashjs/-/xxhashjs-0.2.2.tgz#8a6251567621a1c46a5ae204da0249c7f8caa9d8"
|
||||||
|
integrity sha512-AkTuIuVTET12tpsVIQo+ZU6f/qDmKuRUcjaqR+OIvm+aCBsZ95i7UVY5WJ9TMsSaZ0DA2WxoZ4acu0sPH+OKAw==
|
||||||
|
dependencies:
|
||||||
|
cuint "^0.2.2"
|
||||||
|
|
||||||
|
yaeti@^0.0.6:
|
||||||
|
version "0.0.6"
|
||||||
|
resolved "https://registry.yarnpkg.com/yaeti/-/yaeti-0.0.6.tgz#f26f484d72684cf42bedfb76970aa1608fbf9577"
|
||||||
|
integrity sha1-8m9ITXJoTPQr7ft2lwqhYI+/lXc=
|
||||||
@@ -14,7 +14,6 @@ frame-executive = { git = "https://github.com/paritytech/substrate", default-fea
|
|||||||
frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
||||||
frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
||||||
pallet-balances = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
pallet-balances = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
||||||
pallet-randomness-collective-flip = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
|
||||||
pallet-sudo = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
pallet-sudo = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
||||||
pallet-timestamp = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
pallet-timestamp = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
||||||
pallet-transaction-payment = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
pallet-transaction-payment = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
||||||
@@ -50,7 +49,6 @@ std = [
|
|||||||
"frame-support/std",
|
"frame-support/std",
|
||||||
"frame-system/std",
|
"frame-system/std",
|
||||||
"pallet-balances/std",
|
"pallet-balances/std",
|
||||||
"pallet-randomness-collective-flip/std",
|
|
||||||
"pallet-sudo/std",
|
"pallet-sudo/std",
|
||||||
"pallet-timestamp/std",
|
"pallet-timestamp/std",
|
||||||
"pallet-transaction-payment/std",
|
"pallet-transaction-payment/std",
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
../runtime/build.rs
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
../runtime/src
|
|
||||||
@@ -14,7 +14,6 @@ frame-executive = { git = "https://github.com/paritytech/substrate", default-fea
|
|||||||
frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
||||||
frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
||||||
pallet-balances = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
pallet-balances = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
||||||
pallet-randomness-collective-flip = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
|
||||||
pallet-sudo = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
pallet-sudo = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
||||||
pallet-timestamp = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
pallet-timestamp = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
||||||
pallet-transaction-payment = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
pallet-transaction-payment = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
||||||
@@ -50,7 +49,6 @@ std = [
|
|||||||
"frame-support/std",
|
"frame-support/std",
|
||||||
"frame-system/std",
|
"frame-system/std",
|
||||||
"pallet-balances/std",
|
"pallet-balances/std",
|
||||||
"pallet-randomness-collective-flip/std",
|
|
||||||
"pallet-sudo/std",
|
"pallet-sudo/std",
|
||||||
"pallet-timestamp/std",
|
"pallet-timestamp/std",
|
||||||
"pallet-transaction-payment/std",
|
"pallet-transaction-payment/std",
|
||||||
@@ -67,4 +65,4 @@ std = [
|
|||||||
"sp-transaction-pool/std",
|
"sp-transaction-pool/std",
|
||||||
"sp-version/std",
|
"sp-version/std",
|
||||||
]
|
]
|
||||||
upgrade = []
|
increment-spec-version = []
|
||||||
|
|||||||
@@ -21,5 +21,12 @@ fn main() {
|
|||||||
.with_current_project()
|
.with_current_project()
|
||||||
.export_heap_base()
|
.export_heap_base()
|
||||||
.import_memory()
|
.import_memory()
|
||||||
.build()
|
.build();
|
||||||
|
|
||||||
|
WasmBuilder::new()
|
||||||
|
.with_current_project()
|
||||||
|
.enable_feature("increment-spec-version")
|
||||||
|
.import_memory()
|
||||||
|
.set_file_name("wasm_binary_spec_version_incremented.rs")
|
||||||
|
.build();
|
||||||
}
|
}
|
||||||
|
|||||||
+27
-9
@@ -22,6 +22,12 @@
|
|||||||
#[cfg(feature = "std")]
|
#[cfg(feature = "std")]
|
||||||
include!(concat!(env!("OUT_DIR"), "/wasm_binary.rs"));
|
include!(concat!(env!("OUT_DIR"), "/wasm_binary.rs"));
|
||||||
|
|
||||||
|
pub mod wasm_spec_version_incremented {
|
||||||
|
#[cfg(feature = "std")]
|
||||||
|
include!(concat!(env!("OUT_DIR"), "/wasm_binary_spec_version_incremented.rs"));
|
||||||
|
}
|
||||||
|
|
||||||
|
use frame_support::traits::OnRuntimeUpgrade;
|
||||||
use sp_api::{decl_runtime_apis, impl_runtime_apis};
|
use sp_api::{decl_runtime_apis, impl_runtime_apis};
|
||||||
use sp_core::OpaqueMetadata;
|
use sp_core::OpaqueMetadata;
|
||||||
use sp_runtime::{
|
use sp_runtime::{
|
||||||
@@ -59,9 +65,13 @@ impl_opaque_keys! {
|
|||||||
pub struct SessionKeys {}
|
pub struct SessionKeys {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Some key that we set in genesis and only read in [`TestRuntimeUpgrade`] to ensure that
|
||||||
|
/// [`OnRuntimeUpgrade`] works as expected.
|
||||||
|
pub const TEST_RUNTIME_UPGRADE_KEY: &[u8] = b"+test_runtime_upgrade_key+";
|
||||||
|
|
||||||
// The only difference between the two declarations below is the `spec_version`. With the
|
// The only difference between the two declarations below is the `spec_version`. With the
|
||||||
// `upgrade` feature enabled `spec_version` should be greater than the one of without the
|
// `increment-spec-version` feature enabled `spec_version` should be greater than the one of without the
|
||||||
// `upgrade` feature.
|
// `increment-spec-version` feature.
|
||||||
//
|
//
|
||||||
// The duplication here is unfortunate necessity.
|
// The duplication here is unfortunate necessity.
|
||||||
//
|
//
|
||||||
@@ -70,27 +80,27 @@ impl_opaque_keys! {
|
|||||||
// details. Since macro kicks in early, it operates on AST. Thus you cannot use constants.
|
// details. Since macro kicks in early, it operates on AST. Thus you cannot use constants.
|
||||||
// Macros are expanded top to bottom, meaning we also cannot use `cfg` here.
|
// Macros are expanded top to bottom, meaning we also cannot use `cfg` here.
|
||||||
|
|
||||||
#[cfg(feature = "upgrade")]
|
#[cfg(not(feature = "increment-spec-version"))]
|
||||||
#[sp_version::runtime_version]
|
#[sp_version::runtime_version]
|
||||||
pub const VERSION: RuntimeVersion = RuntimeVersion {
|
pub const VERSION: RuntimeVersion = RuntimeVersion {
|
||||||
spec_name: create_runtime_str!("cumulus-test-parachain"),
|
spec_name: create_runtime_str!("cumulus-test-parachain"),
|
||||||
impl_name: create_runtime_str!("cumulus-test-parachain"),
|
impl_name: create_runtime_str!("cumulus-test-parachain"),
|
||||||
authoring_version: 1,
|
authoring_version: 1,
|
||||||
// Read the note above.
|
// Read the note above.
|
||||||
spec_version: 4,
|
spec_version: 1,
|
||||||
impl_version: 1,
|
impl_version: 1,
|
||||||
apis: RUNTIME_API_VERSIONS,
|
apis: RUNTIME_API_VERSIONS,
|
||||||
transaction_version: 1,
|
transaction_version: 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
#[cfg(not(feature = "upgrade"))]
|
#[cfg(feature = "increment-spec-version")]
|
||||||
#[sp_version::runtime_version]
|
#[sp_version::runtime_version]
|
||||||
pub const VERSION: RuntimeVersion = RuntimeVersion {
|
pub const VERSION: RuntimeVersion = RuntimeVersion {
|
||||||
spec_name: create_runtime_str!("cumulus-test-parachain"),
|
spec_name: create_runtime_str!("cumulus-test-parachain"),
|
||||||
impl_name: create_runtime_str!("cumulus-test-parachain"),
|
impl_name: create_runtime_str!("cumulus-test-parachain"),
|
||||||
authoring_version: 1,
|
authoring_version: 1,
|
||||||
// Read the note above.
|
// Read the note above.
|
||||||
spec_version: 3,
|
spec_version: 2,
|
||||||
impl_version: 1,
|
impl_version: 1,
|
||||||
apis: RUNTIME_API_VERSIONS,
|
apis: RUNTIME_API_VERSIONS,
|
||||||
transaction_version: 1,
|
transaction_version: 1,
|
||||||
@@ -235,8 +245,6 @@ impl pallet_transaction_payment::Config for Runtime {
|
|||||||
type OperationalFeeMultiplier = OperationalFeeMultiplier;
|
type OperationalFeeMultiplier = OperationalFeeMultiplier;
|
||||||
}
|
}
|
||||||
|
|
||||||
impl pallet_randomness_collective_flip::Config for Runtime {}
|
|
||||||
|
|
||||||
impl pallet_sudo::Config for Runtime {
|
impl pallet_sudo::Config for Runtime {
|
||||||
type Call = Call;
|
type Call = Call;
|
||||||
type Event = Event;
|
type Event = Event;
|
||||||
@@ -270,7 +278,6 @@ construct_runtime! {
|
|||||||
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent},
|
Timestamp: pallet_timestamp::{Pallet, Call, Storage, Inherent},
|
||||||
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
Balances: pallet_balances::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||||
Sudo: pallet_sudo::{Pallet, Call, Storage, Config<T>, Event<T>},
|
Sudo: pallet_sudo::{Pallet, Call, Storage, Config<T>, Event<T>},
|
||||||
RandomnessCollectiveFlip: pallet_randomness_collective_flip::{Pallet, Storage},
|
|
||||||
TransactionPayment: pallet_transaction_payment::{Pallet, Storage},
|
TransactionPayment: pallet_transaction_payment::{Pallet, Storage},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -321,10 +328,21 @@ pub type Executive = frame_executive::Executive<
|
|||||||
frame_system::ChainContext<Runtime>,
|
frame_system::ChainContext<Runtime>,
|
||||||
Runtime,
|
Runtime,
|
||||||
AllPallets,
|
AllPallets,
|
||||||
|
TestOnRuntimeUpgrade,
|
||||||
>;
|
>;
|
||||||
/// The payload being signed in transactions.
|
/// The payload being signed in transactions.
|
||||||
pub type SignedPayload = generic::SignedPayload<Call, SignedExtra>;
|
pub type SignedPayload = generic::SignedPayload<Call, SignedExtra>;
|
||||||
|
|
||||||
|
pub struct TestOnRuntimeUpgrade;
|
||||||
|
|
||||||
|
impl OnRuntimeUpgrade for TestOnRuntimeUpgrade {
|
||||||
|
fn on_runtime_upgrade() -> frame_support::weights::Weight {
|
||||||
|
assert_eq!(sp_io::storage::get(TEST_RUNTIME_UPGRADE_KEY), Some(vec![1, 2, 3, 4]));
|
||||||
|
|
||||||
|
1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
decl_runtime_apis! {
|
decl_runtime_apis! {
|
||||||
pub trait GetLastTimestamp {
|
pub trait GetLastTimestamp {
|
||||||
/// Returns the last timestamp of a runtime.
|
/// Returns the last timestamp of a runtime.
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ sc-transaction-pool = { git = "https://github.com/paritytech/substrate", branch
|
|||||||
sp-arithmetic = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.12" }
|
sp-arithmetic = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.12" }
|
||||||
sp-blockchain = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.12" }
|
sp-blockchain = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.12" }
|
||||||
sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.12" }
|
sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.12" }
|
||||||
|
sp-io = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.12" }
|
||||||
sp-keyring = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.12" }
|
sp-keyring = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.12" }
|
||||||
sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.12" }
|
||||||
sp-state-machine = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.12" }
|
sp-state-machine = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.12" }
|
||||||
@@ -61,8 +62,3 @@ polkadot-test-service = { git = "https://github.com/paritytech/polkadot", branch
|
|||||||
# Substrate dependencies
|
# Substrate dependencies
|
||||||
sc-cli = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.12" }
|
sc-cli = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.12" }
|
||||||
substrate-test-utils = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.12" }
|
substrate-test-utils = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.12" }
|
||||||
sp-maybe-compressed-blob = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.12" }
|
|
||||||
sp-version = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.12" }
|
|
||||||
|
|
||||||
# Cumulus
|
|
||||||
cumulus-test-runtime-upgrade = { path = "../runtime-upgrade" }
|
|
||||||
|
|||||||
@@ -25,7 +25,24 @@ use sp_core::{sr25519, Pair, Public};
|
|||||||
use sp_runtime::traits::{IdentifyAccount, Verify};
|
use sp_runtime::traits::{IdentifyAccount, Verify};
|
||||||
|
|
||||||
/// Specialized `ChainSpec` for the normal parachain runtime.
|
/// Specialized `ChainSpec` for the normal parachain runtime.
|
||||||
pub type ChainSpec = sc_service::GenericChainSpec<cumulus_test_runtime::GenesisConfig, Extensions>;
|
pub type ChainSpec = sc_service::GenericChainSpec<GenesisExt, Extensions>;
|
||||||
|
|
||||||
|
/// Extension for the genesis config to add custom keys easily.
|
||||||
|
#[derive(serde::Serialize, serde::Deserialize)]
|
||||||
|
pub struct GenesisExt {
|
||||||
|
/// The runtime genesis config.
|
||||||
|
runtime_genesis_config: cumulus_test_runtime::GenesisConfig,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl sp_runtime::BuildStorage for GenesisExt {
|
||||||
|
fn assimilate_storage(&self, storage: &mut sp_core::storage::Storage) -> Result<(), String> {
|
||||||
|
sp_state_machine::BasicExternalities::execute_with_storage(storage, || {
|
||||||
|
sp_io::storage::set(cumulus_test_runtime::TEST_RUNTIME_UPGRADE_KEY, &vec![1, 2, 3, 4]);
|
||||||
|
});
|
||||||
|
|
||||||
|
self.runtime_genesis_config.assimilate_storage(storage)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// Helper function to generate a crypto pair from seed
|
/// Helper function to generate a crypto pair from seed
|
||||||
pub fn get_from_seed<TPublic: Public>(seed: &str) -> <TPublic::Pair as Pair>::Public {
|
pub fn get_from_seed<TPublic: Public>(seed: &str) -> <TPublic::Pair as Pair>::Public {
|
||||||
@@ -65,7 +82,7 @@ pub fn get_chain_spec(id: ParaId) -> ChainSpec {
|
|||||||
"Local Testnet",
|
"Local Testnet",
|
||||||
"local_testnet",
|
"local_testnet",
|
||||||
ChainType::Local,
|
ChainType::Local,
|
||||||
move || local_testnet_genesis(),
|
move || GenesisExt { runtime_genesis_config: local_testnet_genesis() },
|
||||||
vec![],
|
vec![],
|
||||||
None,
|
None,
|
||||||
None,
|
None,
|
||||||
|
|||||||
@@ -73,17 +73,11 @@ async fn test_runtime_upgrade() {
|
|||||||
.expect("Runtime version exists");
|
.expect("Runtime version exists");
|
||||||
expected_runtime_version.spec_version += 1;
|
expected_runtime_version.spec_version += 1;
|
||||||
|
|
||||||
// Replace the runtime version in the WASM blob to make it look like a new runtime.
|
let wasm = cumulus_test_runtime::wasm_spec_version_incremented::WASM_BINARY
|
||||||
let wasm = sp_maybe_compressed_blob::decompress(
|
.expect("Wasm binary with incremented spec version should have been built");
|
||||||
cumulus_test_runtime_upgrade::WASM_BINARY.unwrap(),
|
|
||||||
sp_maybe_compressed_blob::CODE_BLOB_BOMB_LIMIT,
|
|
||||||
)
|
|
||||||
.expect("Decompressing the WASM blob works");
|
|
||||||
let wasm = sp_version::embed::embed_runtime_version(&wasm, expected_runtime_version.clone())
|
|
||||||
.expect("Embedding the runtime version works");
|
|
||||||
|
|
||||||
// schedule runtime upgrade
|
// schedule runtime upgrade
|
||||||
charlie.schedule_upgrade(wasm).await.unwrap();
|
charlie.schedule_upgrade(wasm.into()).await.unwrap();
|
||||||
|
|
||||||
let mut import_stream = dave.client.import_notification_stream();
|
let mut import_stream = dave.client.import_notification_stream();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user