[][src]Trait elrond_wasm_module_features::FeaturesModule

pub trait FeaturesModule<T, BigInt, BigUint>: ContractHookApi<BigInt, BigUint> + Sized where
    BigUint: BigUintApi + 'static,
    &'a BigUint: Add<&'b BigUint, Output = BigUint>,
    &'a BigUint: Sub<&'b BigUint, Output = BigUint>,
    &'a BigUint: Mul<&'b BigUint, Output = BigUint>,
    &'a BigUint: Div<&'b BigUint, Output = BigUint>,
    &'a BigUint: Rem<&'b BigUint, Output = BigUint>,
    BigUint: AddAssign<&'b BigUint>,
    BigUint: SubAssign<&'b BigUint>,
    BigUint: MulAssign<&'b BigUint>,
    BigUint: DivAssign<&'b BigUint>,
    BigUint: RemAssign<&'b BigUint>,
    &'a BigUint: BitAnd<&'b BigUint, Output = BigUint>,
    &'a BigUint: BitOr<&'b BigUint, Output = BigUint>,
    &'a BigUint: BitXor<&'b BigUint, Output = BigUint>,
    BigUint: BitAndAssign<&'b BigUint>,
    BigUint: BitOrAssign<&'b BigUint>,
    BigUint: BitXorAssign<&'b BigUint>,
    &'a BigUint: Shr<usize, Output = BigUint>,
    &'a BigUint: Shl<usize, Output = BigUint>,
    BigInt: BigIntApi<BigUint> + 'static,
    &'a BigInt: Add<&'b BigInt, Output = BigInt>,
    &'a BigInt: Sub<&'b BigInt, Output = BigInt>,
    &'a BigInt: Mul<&'b BigInt, Output = BigInt>,
    &'a BigInt: Div<&'b BigInt, Output = BigInt>,
    &'a BigInt: Rem<&'b BigInt, Output = BigInt>,
    BigInt: AddAssign<&'b BigInt>,
    BigInt: SubAssign<&'b BigInt>,
    BigInt: MulAssign<&'b BigInt>,
    BigInt: DivAssign<&'b BigInt>,
    BigInt: RemAssign<&'b BigInt>,
    T: ContractHookApi<BigInt, BigUint> + ContractIOApi<BigInt, BigUint> + Clone + 'static, 
{ pub fn get_feature_flag(&self, feature_name: FeatureName<'_>) -> u8;
pub fn set_feature_flag(&self, feature_name: FeatureName<'_>, value: u8);
pub fn contract_proxy(
        &self,
        address: &Address
    ) -> Box<OtherContractHandle<T, BigInt, BigUint>>;
pub fn callback(&self); pub fn check_feature_on(
        &self,
        feature_name: &'static [u8],
        default: bool
    ) -> SCResult<()> { ... }
pub fn set_feature_flag_endpoint(
        &self,
        feature_name: Vec<u8>,
        value: bool
    ) -> SCResult<()> { ... } }

Required methods

pub fn get_feature_flag(&self, feature_name: FeatureName<'_>) -> u8[src]

pub fn set_feature_flag(&self, feature_name: FeatureName<'_>, value: u8)[src]

pub fn contract_proxy(
    &self,
    address: &Address
) -> Box<OtherContractHandle<T, BigInt, BigUint>>
[src]

pub fn callback(&self)[src]

Loading content...

Provided methods

pub fn check_feature_on(
    &self,
    feature_name: &'static [u8],
    default: bool
) -> SCResult<()>
[src]

pub fn set_feature_flag_endpoint(
    &self,
    feature_name: Vec<u8>,
    value: bool
) -> SCResult<()>
[src]

Loading content...

Implementors

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

Loading content...