Trait elrond_wasm_sc_dns::Dns[][src]

pub trait Dns: ContractBase + Sized + FeaturesModule where
    Self::BigUint: BigUintApi,
    &'a Self::BigUint: Add<&'b Self::BigUint, Output = Self::BigUint>,
    &'a Self::BigUint: Sub<&'b Self::BigUint, Output = Self::BigUint>,
    &'a Self::BigUint: Mul<&'b Self::BigUint, Output = Self::BigUint>,
    &'a Self::BigUint: Div<&'b Self::BigUint, Output = Self::BigUint>,
    &'a Self::BigUint: Rem<&'b Self::BigUint, Output = Self::BigUint>,
    Self::BigUint: AddAssign<&'b Self::BigUint>,
    Self::BigUint: SubAssign<&'b Self::BigUint>,
    Self::BigUint: MulAssign<&'b Self::BigUint>,
    Self::BigUint: DivAssign<&'b Self::BigUint>,
    Self::BigUint: RemAssign<&'b Self::BigUint>,
    &'a Self::BigUint: BitAnd<&'b Self::BigUint, Output = Self::BigUint>,
    &'a Self::BigUint: BitOr<&'b Self::BigUint, Output = Self::BigUint>,
    &'a Self::BigUint: BitXor<&'b Self::BigUint, Output = Self::BigUint>,
    Self::BigUint: BitAndAssign<&'b Self::BigUint>,
    Self::BigUint: BitOrAssign<&'b Self::BigUint>,
    Self::BigUint: BitXorAssign<&'b Self::BigUint>,
    &'a Self::BigUint: Shr<usize, Output = Self::BigUint>,
    &'a Self::BigUint: Shl<usize, Output = Self::BigUint>,
    Self::BigInt: BigIntApi,
    &'a Self::BigInt: Add<&'b Self::BigInt, Output = Self::BigInt>,
    &'a Self::BigInt: Sub<&'b Self::BigInt, Output = Self::BigInt>,
    &'a Self::BigInt: Mul<&'b Self::BigInt, Output = Self::BigInt>,
    &'a Self::BigInt: Div<&'b Self::BigInt, Output = Self::BigInt>,
    &'a Self::BigInt: Rem<&'b Self::BigInt, Output = Self::BigInt>,
    Self::BigInt: AddAssign<&'b Self::BigInt>,
    Self::BigInt: SubAssign<&'b Self::BigInt>,
    Self::BigInt: MulAssign<&'b Self::BigInt>,
    Self::BigInt: DivAssign<&'b Self::BigInt>,
    Self::BigInt: RemAssign<&'b Self::BigInt>, 
{
Show methods fn user_builtin_proxy(&self, to: Address) -> Proxy<Self::SendApi>;
fn get_registration_cost(&self) -> Self::BigUint;
fn set_registration_cost(&self, registration_cost: &Self::BigUint);
fn get_value_state(&self, name_hash: &H256) -> ValueState;
fn set_value_state(&self, name_hash: &H256, value_state: &ValueState);
fn callbacks(&self) -> CallbackProxyObj<Self::SendApi>; fn init(&self, registration_cost: &Self::BigUint) { ... }
fn validate_name_shard(&self, name_hash: &H256) -> SCResult<()> { ... }
fn validate_register_input(
        &self,
        name: &BoxedBytes,
        name_hash: &H256
    ) -> SCResult<()> { ... }
fn can_register(&self, name: BoxedBytes) -> SCResult<()> { ... }
fn register(
        &self,
        name: BoxedBytes,
        payment: Self::BigUint
    ) -> SCResult<AsyncCall<Self::SendApi>> { ... }
fn set_user_name_callback(
        &self,
        cb_name_hash: &H256,
        result: AsyncCallResult<()>
    ) { ... }
fn resolve(&self, name: &[u8]) -> OptionalResult<Address> { ... }
fn resolve_from_hash(&self, name_hash: H256) -> OptionalResult<Address> { ... }
fn check_pending(&self, name: &[u8]) -> OptionalResult<Address> { ... }
fn reset_pending(&self, name: &[u8]) -> SCResult<()> { ... }
fn claim(&self) -> SCResult<()> { ... }
fn get_owner_address_endpoint(&self) -> Address { ... }
fn get_own_shard_id(&self) -> u8 { ... }
fn name_hash(&self, name: &[u8]) -> H256 { ... }
fn name_shard(&self, name: &[u8]) -> u8 { ... }
fn validate_name(&self, name: &[u8]) -> SCResult<()> { ... }
fn version(&self) -> &'static [u8] { ... }
}

Required methods

fn user_builtin_proxy(&self, to: Address) -> Proxy<Self::SendApi>[src]

fn get_registration_cost(&self) -> Self::BigUint[src]

fn set_registration_cost(&self, registration_cost: &Self::BigUint)[src]

fn get_value_state(&self, name_hash: &H256) -> ValueState[src]

fn set_value_state(&self, name_hash: &H256, value_state: &ValueState)[src]

fn callbacks(&self) -> CallbackProxyObj<Self::SendApi>[src]

Provided methods

fn init(&self, registration_cost: &Self::BigUint)[src]

fn validate_name_shard(&self, name_hash: &H256) -> SCResult<()>[src]

fn validate_register_input(
    &self,
    name: &BoxedBytes,
    name_hash: &H256
) -> SCResult<()>
[src]

fn can_register(&self, name: BoxedBytes) -> SCResult<()>[src]

fn register(
    &self,
    name: BoxedBytes,
    payment: Self::BigUint
) -> SCResult<AsyncCall<Self::SendApi>>
[src]

fn set_user_name_callback(
    &self,
    cb_name_hash: &H256,
    result: AsyncCallResult<()>
)
[src]

fn resolve(&self, name: &[u8]) -> OptionalResult<Address>[src]

fn resolve_from_hash(&self, name_hash: H256) -> OptionalResult<Address>[src]

fn check_pending(&self, name: &[u8]) -> OptionalResult<Address>[src]

fn reset_pending(&self, name: &[u8]) -> SCResult<()>[src]

fn claim(&self) -> SCResult<()>[src]

fn get_owner_address_endpoint(&self) -> Address[src]

fn get_own_shard_id(&self) -> u8[src]

fn name_hash(&self, name: &[u8]) -> H256[src]

fn name_shard(&self, name: &[u8]) -> u8[src]

fn validate_name(&self, name: &[u8]) -> SCResult<()>[src]

fn version(&self) -> &'static [u8][src]

Implementors

impl<C> Dns for C where
    Self::BigUint: BigUintApi,
    &'a Self::BigUint: Add<&'b Self::BigUint, Output = Self::BigUint>,
    &'a Self::BigUint: Sub<&'b Self::BigUint, Output = Self::BigUint>,
    &'a Self::BigUint: Mul<&'b Self::BigUint, Output = Self::BigUint>,
    &'a Self::BigUint: Div<&'b Self::BigUint, Output = Self::BigUint>,
    &'a Self::BigUint: Rem<&'b Self::BigUint, Output = Self::BigUint>,
    Self::BigUint: AddAssign<&'b Self::BigUint>,
    Self::BigUint: SubAssign<&'b Self::BigUint>,
    Self::BigUint: MulAssign<&'b Self::BigUint>,
    Self::BigUint: DivAssign<&'b Self::BigUint>,
    Self::BigUint: RemAssign<&'b Self::BigUint>,
    &'a Self::BigUint: BitAnd<&'b Self::BigUint, Output = Self::BigUint>,
    &'a Self::BigUint: BitOr<&'b Self::BigUint, Output = Self::BigUint>,
    &'a Self::BigUint: BitXor<&'b Self::BigUint, Output = Self::BigUint>,
    Self::BigUint: BitAndAssign<&'b Self::BigUint>,
    Self::BigUint: BitOrAssign<&'b Self::BigUint>,
    Self::BigUint: BitXorAssign<&'b Self::BigUint>,
    &'a Self::BigUint: Shr<usize, Output = Self::BigUint>,
    &'a Self::BigUint: Shl<usize, Output = Self::BigUint>,
    Self::BigInt: BigIntApi,
    &'a Self::BigInt: Add<&'b Self::BigInt, Output = Self::BigInt>,
    &'a Self::BigInt: Sub<&'b Self::BigInt, Output = Self::BigInt>,
    &'a Self::BigInt: Mul<&'b Self::BigInt, Output = Self::BigInt>,
    &'a Self::BigInt: Div<&'b Self::BigInt, Output = Self::BigInt>,
    &'a Self::BigInt: Rem<&'b Self::BigInt, Output = Self::BigInt>,
    Self::BigInt: AddAssign<&'b Self::BigInt>,
    Self::BigInt: SubAssign<&'b Self::BigInt>,
    Self::BigInt: MulAssign<&'b Self::BigInt>,
    Self::BigInt: DivAssign<&'b Self::BigInt>,
    Self::BigInt: RemAssign<&'b Self::BigInt>,
    C: AutoImpl + FeaturesModule
[src]

fn user_builtin_proxy(&self, to: Address) -> Proxy<Self::SendApi>[src]

fn get_registration_cost(&self) -> Self::BigUint[src]

fn set_registration_cost(&self, registration_cost: &Self::BigUint)[src]

fn get_value_state(&self, name_hash: &H256) -> ValueState[src]

fn set_value_state(&self, name_hash: &H256, value_state: &ValueState)[src]

fn callbacks(&self) -> CallbackProxyObj<Self::SendApi>[src]