Explore this module further in the Mover Registry: @sage/user
Structs
UserRegistry
Registry that contains a map to all User
s.
Constants
Error code when a wallet address does not have an associatedUser
.
User
name does not exist in the registry.
Functions
assert_user_address_exists
Aborts with EAddressRecordDoesNotExist
when a wallet address is not associated with a User
.
assert_user_name_exists
Aborts with EUsernameRecordDoesNotExist
when the User
name does not exist in the registry.
get_owner_address_from_key
Returns the wallet address for the User
with the specified lowercase name.
get_owned_user_address_from_key
Returns the address for the OwnedUser
with the specified lowercase name.
get_shared_user_address_from_key
Returns the address for the SharedUser
with the specified lowercase name.
get_key_from_owner_address
Returns the User
lowercase name associated with the wallet address.
get_key_from_owned_user_address
Returns the User
lowercase name associated with the OwnedUser
address.
get_key_from_shared_user_address
Returns the User
lowercase name associated with the SharedUser
address.
has_address_record
Returns true or false based on whether the wallet address has an associated User
.
has_username_record
Returns true or false based on whether the specified lowercase User
name is in use.