multiversx_sc_modules::bonding_curve::utils::events

Trait EventsModule

Source
pub trait EventsModule: ContractBase + Sized {
    // Required methods
    fn buy_token_event(
        &self,
        user: &ManagedAddress<Self::Api>,
        amount: &BigUint<Self::Api>,
    );
    fn sell_token_event(
        &self,
        user: &ManagedAddress<Self::Api>,
        amount: &BigUint<Self::Api>,
    );
}

Required Methods§

Source

fn buy_token_event( &self, user: &ManagedAddress<Self::Api>, amount: &BigUint<Self::Api>, )

Source

fn sell_token_event( &self, user: &ManagedAddress<Self::Api>, amount: &BigUint<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> EventsModule for C
where C: AutoImpl,