subscan
Runtime Modules / NameService
Spec Version:
Call Functions
Events
Name
Lookup
Attributes
NameRegistered3400["UserName","ZkAddressType"]
NameQueuedForRegister3401["Hash","Hash"]
NameSetAsPrimary3402["ZkAddressType","UserName"]
RegisterCanceled3403["Hash","Hash"]
RegisterRemoved3404["UserName","ZkAddressType"]
Storage Functions
Name
Type
UsernameRecords{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["Vec<U8>"],"value":"[U8; 32]","keys_id":13,"value_id":1}}
PendingRegister{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["H256"],"value":"Tuple:H256U32","keys_id":12,"value_id":429}}
PrimaryRecords{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["[U8; 32]"],"value":"Vec<U8>","keys_id":1,"value_id":13}}
Constants
Name
Type
Value
RegisterWaitingPeriodU3202000000
RegisterPriceU1280000dcce86b42ad00000000000000000
Error Types
Name
Docs
NameAlreadyRegisteredUsername exists
NotRegisteredUsername not registered
NotOwnedUsername not owned
RegisterTimeNotReachedThe Registration time not reached
InvalidUsernameFormatUsername invalid
AlreadyPendingRegisterAlready pending Register
UsernameNotFoundNot Found (used in cases of canceling)
UsernameNotPrimaryUsername registered but is not primary (transfers)
InsufficientBalanceNot enough balance for Register payment