Message lane pallet parameters + updatable conversion rate (#728)

* message lane pallet parameters

* updated comment

* Update modules/message-lane/src/lib.rs

Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com>

* fmt

Co-authored-by: Tomasz Drwięga <tomusdrw@users.noreply.github.com>
This commit is contained in:
Svyatoslav Nikolsky
2021-02-18 10:15:12 +03:00
committed by Bastian Köcher
parent e8b5a53eed
commit 1bf2eb1ab5
7 changed files with 211 additions and 14 deletions
@@ -32,6 +32,12 @@ pub mod target_chain;
// Weight is reexported to avoid additional frame-support dependencies in message-lane related crates.
pub use frame_support::weights::Weight;
/// Message lane pallet parameter.
pub trait Parameter: frame_support::Parameter {
/// Save parameter value in the runtime storage.
fn save(&self);
}
/// Lane identifier.
pub type LaneId = [u8; 4];