pub fn create_default_event_signature(ctx: &Context, st: &StructEnv<'_>) -> Self {
        let st_name = st.symbol_pool().string(st.get_name()).to_string();
        let mut para_type_lst = vec![];

        let ordered_types = EventSignature::get_ordered_types(st);
        for (offset, move_ty, field_name) in ordered_types
            .map(|(offset, ty, field_name)| (offset, ty, field_name))
            .collect_vec()
        {
            let solidity_ty = SolidityType::translate_from_move(ctx, &move_ty); // implicit mapping from a move type to a solidity type
            para_type_lst.push((offset, solidity_ty, move_ty.clone(), false, field_name));
            // no index by default
        }
        EventSignature {
            event_name: st_name,
            para_types: para_type_lst,
            indexed_count: 1,
        }
    }
/// Create a default event signature from a move struct definition
Create a default event signature from a move struct definition
Create a default event signature from a move struct definition
pub fn create_default_event_signature(ctx: &Context, st: &StructEnv<'_>) -> Self {
        let st_name = st.symbol_pool().string(st.get_name()).to_string();
        let mut para_type_lst = vec![];
        let ordered_types = EventSignature::get_ordered_types(st);
        for (offset, move_ty, field_name) in ordered_types
            .map(|(offset, ty, field_name)| (offset, ty, field_name))
            .collect_vec()
        {
            let solidity_ty = SolidityType::translate_from_move(ctx, &move_ty); // implicit mapping from a move type to a solidity type
            para_type_lst.push((offset, solidity_ty, move_ty.clone(), false, field_name));
            // no index by default
        }
        EventSignature {
            event_name: st_name,
            para_types: para_type_lst,
            indexed_count: 1,
        }
    }
pub fn create_default_event_signature ( ctx : & Context , st : & StructEnv < ' _ > ) -> Self { let st_name = st . symbol_pool ( ) . string ( st . get_name ( ) ) . to_string ( ) ; let mut para_type_lst = vec ! [ ] ; let ordered_types = EventSignature :: get_ordered_types ( st ) ; for ( offset , move_ty , field_name ) in ordered_types . map ( | ( offset , ty , field_name ) | ( offset , ty , field_name ) ) . collect_vec ( ) { let solidity_ty = SolidityType :: translate_from_move ( ctx , & move_ty ) ; // implicit mapping from a move type to a solidity type para_type_lst . push ( ( offset , solidity_ty , move_ty . clone ( ) , false , field_name ) ) ; // no index by default } EventSignature { event_name : st_name , para_types : para_type_lst , indexed_count : 1 , } }
Create a default event signature from a move struct definition
Create a default event signature from a move struct definition
ctx
&Context
st
&StructEnv<'_>