multiversx_sc_modules::dns

Trait DnsModule

Source
pub trait DnsModule: ContractBase + Sized {
    // Provided method
    fn dns_register(
        &self,
        dns_address: ManagedAddress<Self::Api>,
        name: ManagedBuffer<Self::Api>,
    ) { ... }
}
Expand description

Standard smart contract module that deals with registering usernames in a DNS contract.

MultiversX usernames/herotags need to be requested by the beneficiary. For a contract, this means that they need an endpoint via which to request a username from the DNS.

Provided Methods§

Source

fn dns_register( &self, dns_address: ManagedAddress<Self::Api>, name: ManagedBuffer<Self::Api>, )

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<C> DnsModule for C
where C: AutoImpl,