runtime: Expose const params for nicks module (#3932)

* Expose const params for nicks module

* Bump runtime
This commit is contained in:
Gavin Wood
2019-10-27 14:36:35 +01:00
committed by GitHub
parent d41a5ce00f
commit c08ac2277f
2 changed files with 11 additions and 2 deletions
+2 -2
View File
@@ -83,8 +83,8 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
// and set impl_version to equal spec_version. If only runtime
// implementation changes and behavior does not, then leave spec_version as
// is and increment impl_version.
spec_version: 186,
impl_version: 186,
spec_version: 187,
impl_version: 187,
apis: RUNTIME_API_VERSIONS,
};
+9
View File
@@ -100,6 +100,15 @@ decl_module! {
pub struct Module<T: Trait> for enum Call where origin: T::Origin {
fn deposit_event() = default;
/// Reservation fee.
const ReservationFee: BalanceOf<T> = T::ReservationFee::get();
/// The minimum length a name may be.
const MinLength: u32 = T::MinLength::get() as u32;
/// The maximum length a name may be.
const MaxLength: u32 = T::MaxLength::get() as u32;
/// Set an account's name. The name should be a UTF-8-encoded string by convention, though
/// we don't check it.
///