mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 22:51:13 +00:00
Renames of Trait to Config in README.md, weight templates and few minor ones (#7636)
* manual rename * renamse in README.md * fix template
This commit is contained in:
committed by
GitHub
parent
35efc8e4b0
commit
15b0dece54
@@ -2,7 +2,7 @@
|
||||
|
||||
The Timestamp module provides functionality to get and set the on-chain time.
|
||||
|
||||
- [`timestamp::Trait`](https://docs.rs/pallet-timestamp/latest/pallet_timestamp/trait.Trait.html)
|
||||
- [`timestamp::Config`](https://docs.rs/pallet-timestamp/latest/pallet_timestamp/trait.Config.html)
|
||||
- [`Call`](https://docs.rs/pallet-timestamp/latest/pallet_timestamp/enum.Call.html)
|
||||
- [`Module`](https://docs.rs/pallet-timestamp/latest/pallet_timestamp/struct.Module.html)
|
||||
|
||||
@@ -29,7 +29,7 @@ because of cumulative calculation errors and hence should be avoided.
|
||||
* `get` - Gets the current time for the current block. If this function is called prior to
|
||||
setting the timestamp, it will return the timestamp of the previous block.
|
||||
|
||||
### Trait Getters
|
||||
### Config Getters
|
||||
|
||||
* `MinimumPeriod` - Gets the minimum (and advised) period between blocks for the chain.
|
||||
|
||||
@@ -48,10 +48,10 @@ trait from the timestamp trait.
|
||||
use frame_support::{decl_module, dispatch};
|
||||
use frame_system::ensure_signed;
|
||||
|
||||
pub trait Trait: timestamp::Trait {}
|
||||
pub trait Config: timestamp::Config {}
|
||||
|
||||
decl_module! {
|
||||
pub struct Module<T: Trait> for enum Call where origin: T::Origin {
|
||||
pub struct Module<T: Config> for enum Call where origin: T::Origin {
|
||||
#[weight = 0]
|
||||
pub fn get_time(origin) -> dispatch::DispatchResult {
|
||||
let _sender = ensure_signed(origin)?;
|
||||
|
||||
Reference in New Issue
Block a user