Utility module for doing stuff like batch calls (#3759)

* Implement and test batch

* Add files.

* Remove comments.

* Update srml/utility/src/lib.rs

Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com>

* Fixes
This commit is contained in:
Gavin Wood
2019-10-04 19:13:54 +02:00
committed by GitHub
parent 7b5843ab79
commit ac0270518c
7 changed files with 233 additions and 4 deletions
+6
View File
@@ -134,6 +134,11 @@ impl system::Trait for Runtime {
type Version = Version;
}
impl utility::Trait for Runtime {
type Event = Event;
type Call = Call;
}
parameter_types! {
pub const EpochDuration: u64 = EPOCH_DURATION_IN_SLOTS;
pub const ExpectedBlockTime: Moment = MILLISECS_PER_BLOCK;
@@ -492,6 +497,7 @@ construct_runtime!(
UncheckedExtrinsic = UncheckedExtrinsic
{
System: system::{Module, Call, Storage, Config, Event},
Utility: utility::{Module, Call, Event<T>},
Babe: babe::{Module, Call, Storage, Config, Inherent(Timestamp)},
Timestamp: timestamp::{Module, Call, Storage, Inherent},
Authorship: authorship::{Module, Call, Storage, Inherent},