Trait elrond_wasm_module_dns::DnsModule[][src]

pub trait DnsModule: ContractBase {
    fn dns_proxy(&self, to: ManagedAddress<Self::Api>) -> Proxy<Self::Api>;

    fn dns_register(
        &self,
        dns_address: ManagedAddress<Self::Api>,
        name: BoxedBytes,
        payment: BigUint<Self::Api>
    ) -> SCResult<AsyncCall<Self::Api>, StaticSCError> { ... } }
Expand description

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

Elrond 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.

Required methods

Provided methods

Implementors