- Struct
Controller - Constants
- Function
set_target_address - Function
set_reverse_lookup - Function
unset_reverse_lookup - Function
set_user_data - Function
unset_user_data
use 0x0::domain;
use 0x0::registration_nft;
use 0x0::registry;
use 0x0::suins;
use 0x1::option;
use 0x1::string;
use 0x2::clock;
use 0x2::tx_context;
use 0x2::vec_map;
Authorization token for the controller.
struct Controller has drop
Fields
-
dummy_field: bool
const CONTENT_HASH: vector<u8> = [99, 111, 110, 116, 101, 110, 116, 95, 104, 97, 115, 104];
const EUnsupportedKey: u64 = 0;
User-facing function (upgradable) - set the target address of a domain.
entry fun set_target_address(suins: &mut suins::SuiNS, nft: ®istration_nft::RegistrationNFT, new_target: option::Option<address>, clock: &clock::Clock)
User-facing function (upgradable) - set the reverse lookup address for the domain.
entry fun set_reverse_lookup(suins: &mut suins::SuiNS, domain_name: string::String, ctx: &tx_context::TxContext)
User-facing function (upgradable) - unset the reverse lookup address for the domain.
entry fun unset_reverse_lookup(suins: &mut suins::SuiNS, ctx: &tx_context::TxContext)
User-facing function (upgradable) - add a new key-value pair to the name record's data.
entry fun set_user_data(suins: &mut suins::SuiNS, nft: ®istration_nft::RegistrationNFT, key: string::String, value: string::String, clock: &clock::Clock)
User-facing function (upgradable) - remove a key from the name record's data.
entry fun unset_user_data(suins: &mut suins::SuiNS, nft: ®istration_nft::RegistrationNFT, key: string::String, clock: &clock::Clock)