Skip to content

Latest commit

 

History

History
142 lines (70 loc) · 4.72 KB

File metadata and controls

142 lines (70 loc) · 4.72 KB

Module 0x0::controller

Struct Controller

Authorization token for the controller.

struct Controller has drop
Fields
dummy_field: bool

Constants

const AVATAR: vector<u8> = [97, 118, 97, 116, 97, 114];

const CONTENT_HASH: vector<u8> = [99, 111, 110, 116, 101, 110, 116, 95, 104, 97, 115, 104];

const EUnsupportedKey: u64 = 0;

Function set_target_address

User-facing function (upgradable) - set the target address of a domain.

Function set_reverse_lookup

User-facing function (upgradable) - set the reverse lookup address for the domain.

Function unset_reverse_lookup

User-facing function (upgradable) - unset the reverse lookup address for the domain.

Function set_user_data

User-facing function (upgradable) - add a new key-value pair to the name record's data.

Function unset_user_data

User-facing function (upgradable) - remove a key from the name record's data.