implement dispatch_as (#4075)

* support dispatch_as

* add weight

* Update Cargo.lock

Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
This commit is contained in:
Xiliang ChenandShawn Tabrizi authored and GitHub committed 2021-11-04 17:11:27 +01:00
1 parent ee12f6f51a
commit d639d461a5
8 files changed
+181 -168

No files matched your search

+168 -168
View File
File diff suppressed because it is too large. Load diff
+1
View File
@@ -934,6 +934,7 @@ impl pallet_identity::Config for Runtime {
impl pallet_utility::Config for Runtime {
type Event = Event;
type Call = Call;
type PalletsOrigin = OriginCaller;
type WeightInfo = weights::pallet_utility::WeightInfo<Runtime>;
}
@@ -55,4 +55,7 @@ impl<T: frame_system::Config> pallet_utility::WeightInfo for WeightInfo<T> {
// Standard Error: 0
.saturating_add((3_292_000 as Weight).saturating_mul(c as Weight))
}
fn dispatch_as() -> Weight {
(14_340_000 as Weight)
}
}
+1
View File
@@ -952,6 +952,7 @@ impl pallet_vesting::Config for Runtime {
impl pallet_utility::Config for Runtime {
type Event = Event;
type Call = Call;
type PalletsOrigin = OriginCaller;
type WeightInfo = weights::pallet_utility::WeightInfo<Runtime>;
}
@@ -55,4 +55,7 @@ impl<T: frame_system::Config> pallet_utility::WeightInfo for WeightInfo<T> {
// Standard Error: 0
.saturating_add((1_014_000 as Weight).saturating_mul(c as Weight))
}
fn dispatch_as() -> Weight {
(14_340_000 as Weight)
}
}
+1
View File
@@ -1041,6 +1041,7 @@ impl validator_manager::Config for Runtime {
impl pallet_utility::Config for Runtime {
type Event = Event;
type Call = Call;
type PalletsOrigin = OriginCaller;
type WeightInfo = ();
}
+1
View File
@@ -616,6 +616,7 @@ impl pallet_identity::Config for Runtime {
impl pallet_utility::Config for Runtime {
type Event = Event;
type Call = Call;
type PalletsOrigin = OriginCaller;
type WeightInfo = weights::pallet_utility::WeightInfo<Runtime>;
}
@@ -55,4 +55,7 @@ impl<T: frame_system::Config> pallet_utility::WeightInfo for WeightInfo<T> {
// Standard Error: 0
.saturating_add((3_091_000 as Weight).saturating_mul(c as Weight))
}
fn dispatch_as() -> Weight {
(14_340_000 as Weight)
}
}