Show the crate…
1 stable release
2.0.1 | Apr 4, 2021 |
---|
#24 in #tetcore
1MB
24K
SLoC
Nicks Module
Overview
Nicks is an example module for keeping track of account names on-chain. It makes no effort to create a name hierarchy, be a DNS replacement or provide reverse lookups. Furthermore, the weights attached to this module's dispatchable functions are for demonstration purposes only and have not been designed to be economically secure. Do not use this noble as-is in production.
Interface
Dispatchable Functions
set_name
- Set the associated name of an account; a small deposit is reserved if not already taken.clear_name
- Remove an account's associated name; the deposit is returned.kill_name
- Forcibly remove the associated name; the deposit is lost.
License: Apache-2.0
lib.rs
:
Nicks Module
Overview
Nicks is an example module for keeping track of account names on-chain. It makes no effort to create a name hierarchy, be a DNS replacement or provide reverse lookups. Furthermore, the weights attached to this module's dispatchable functions are for demonstration purposes only and have not been designed to be economically secure. Do not use this noble as-is in production.
Interface
Dispatchable Functions
set_name
- Set the associated name of an account; a small deposit is reserved if not already taken.clear_name
- Remove an account's associated name; the deposit is returned.kill_name
- Forcibly remove the associated name; the deposit is lost.
Dependencies
~3–11MB
~135K SLoC