Trait DaoCustomFn

Source
pub trait DaoCustomFn {
    // Required methods
    fn is_member<'life0, 'async_trait>(
        &'life0 self,
        member: Principal,
    ) -> Pin<Box<dyn Future<Output = Result<bool, String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn handle_proposal<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

You need to use the basic methods implemented by the party

Required Methods§

Source

fn is_member<'life0, 'async_trait>( &'life0 self, member: Principal, ) -> Pin<Box<dyn Future<Output = Result<bool, String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

It is used to determine whether you are DAO member of Organization

Source

fn handle_proposal<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implement process completed proposals

Implementors§