multiversx_sc_modules::bonding_curve::utils::owner_endpoints

Trait OwnerEndpointsModule

Source
pub trait OwnerEndpointsModule:
    ContractBase
    + Sized
    + StorageModule
    + EventsModule {
    // Provided methods
    fn set_local_roles(
        &self,
        address: ManagedAddress<Self::Api>,
        token_identifier: TokenIdentifier<Self::Api>,
        roles: MultiValueEncoded<Self::Api, EsdtLocalRole>,
    ) { ... }
    fn unset_local_roles(
        &self,
        address: ManagedAddress<Self::Api>,
        token_identifier: TokenIdentifier<Self::Api>,
        roles: MultiValueEncoded<Self::Api, EsdtLocalRole>,
    ) { ... }
    fn set_bonding_curve<T>(
        &self,
        identifier: TokenIdentifier<Self::Api>,
        function: T,
        sell_availability: bool,
    )
       where T: CurveFunction<Self::Api> + TopEncode + TopDecode + NestedEncode + NestedDecode + TypeAbi + PartialEq + Default { ... }
    fn deposit<T>(
        &self,
        payment_token: OptionalValue<TokenIdentifier<Self::Api>>,
    )
       where T: CurveFunction<Self::Api> + TopEncode + TopDecode + NestedEncode + NestedDecode + TypeAbi + PartialEq + Default { ... }
    fn claim<T>(&self)
       where T: CurveFunction<Self::Api> + TopEncode + TopDecode + NestedEncode + NestedDecode + TypeAbi + PartialEq + Default { ... }
    fn set_curve_storage<T>(
        &self,
        identifier: &TokenIdentifier<Self::Api>,
        amount: BigUint<Self::Api>,
        payment_token_identifier: EgldOrEsdtTokenIdentifier<Self::Api>,
    )
       where T: CurveFunction<Self::Api> + TopEncode + TopDecode + NestedEncode + NestedDecode + TypeAbi + PartialEq + Default { ... }
}

Provided Methods§

Source

fn set_local_roles( &self, address: ManagedAddress<Self::Api>, token_identifier: TokenIdentifier<Self::Api>, roles: MultiValueEncoded<Self::Api, EsdtLocalRole>, )

Source

fn unset_local_roles( &self, address: ManagedAddress<Self::Api>, token_identifier: TokenIdentifier<Self::Api>, roles: MultiValueEncoded<Self::Api, EsdtLocalRole>, )

Source

fn set_bonding_curve<T>( &self, identifier: TokenIdentifier<Self::Api>, function: T, sell_availability: bool, )

Source

fn deposit<T>(&self, payment_token: OptionalValue<TokenIdentifier<Self::Api>>)

Source

fn claim<T>(&self)

Source

fn set_curve_storage<T>( &self, identifier: &TokenIdentifier<Self::Api>, amount: BigUint<Self::Api>, payment_token_identifier: EgldOrEsdtTokenIdentifier<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§