update to latest substrate (#141)

This commit is contained in:
Robert Habermeier
2019-02-18 17:20:35 -03:00
committed by GitHub
parent 91c7abd7dc
commit da409f6c9e
8 changed files with 152 additions and 104 deletions
+11 -3
View File
@@ -65,6 +65,7 @@ extern crate srml_system as system;
extern crate srml_timestamp as timestamp;
extern crate srml_treasury as treasury;
extern crate srml_upgrade_key as upgrade_key;
extern crate srml_fees as fees;
extern crate polkadot_primitives as primitives;
@@ -112,8 +113,8 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("polkadot"),
impl_name: create_runtime_str!("parity-polkadot"),
authoring_version: 1,
spec_version: 106,
impl_version: 0,
spec_version: 107,
impl_version: 1,
apis: RUNTIME_API_VERSIONS,
};
@@ -241,6 +242,12 @@ impl claims::Trait for Runtime {
type Event = Event;
}
impl fees::Trait for Runtime {
type Event = Event;
type Amount = Balance;
type TransferAsset = Balances;
}
construct_runtime!(
pub enum Runtime with Log(InternalLog: DigestItem<Hash, SessionKey>) where
Block = Block,
@@ -267,6 +274,7 @@ construct_runtime!(
Sudo: sudo,
UpgradeKey: upgrade_key,
Claims: claims,
Fees: fees::{Module, Storage, Config<T>, Event<T>},
}
);
@@ -285,7 +293,7 @@ pub type UncheckedExtrinsic = generic::UncheckedMortalCompactExtrinsic<Address,
/// Extrinsic type that has already been checked.
pub type CheckedExtrinsic = generic::CheckedExtrinsic<AccountId, Nonce, Call>;
/// Executive: handles dispatch to the various modules.
pub type Executive = executive::Executive<Runtime, Block, system::ChainContext<Runtime>, Balances, AllModules>;
pub type Executive = executive::Executive<Runtime, Block, system::ChainContext<Runtime>, Fees, AllModules>;
impl_runtime_apis! {
impl client_api::Core<Block> for Runtime {