31 releases (18 major breaking)

new 20.0.0 Mar 26, 2023
19.0.0 Mar 5, 2023
18.0.0 Feb 26, 2023
17.0.0 Feb 19, 2023
2.0.0-alpha.5 Mar 24, 2020

#954 in Magic Beans

Download history 79/week @ 2022-12-04 206/week @ 2022-12-11 174/week @ 2022-12-18 51/week @ 2022-12-25 27/week @ 2023-01-01 138/week @ 2023-01-08 65/week @ 2023-01-15 140/week @ 2023-01-22 161/week @ 2023-01-29 139/week @ 2023-02-05 102/week @ 2023-02-12 176/week @ 2023-02-19 28/week @ 2023-02-26 156/week @ 2023-03-05 34/week @ 2023-03-12 127/week @ 2023-03-19

347 downloads per month

Apache-2.0

1.5MB
34K 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 pallet 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 Pallet

  • [Config]
  • [Call]

Overview

Nicks is an example pallet 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 pallet's dispatchable functions are for demonstration purposes only and have not been designed to be economically secure. Do not use this pallet 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

~8–43MB
~736K SLoC