cairo_lang_sierra/extensions/modules/starknet/
emit_event.rsuse super::felt252_span_ty;
use super::syscalls::SyscallGenericLibfunc;
use crate::extensions::SpecializationError;
use crate::extensions::lib_func::SignatureSpecializationContext;
#[derive(Default)]
pub struct EmitEventLibfunc {}
impl SyscallGenericLibfunc for EmitEventLibfunc {
const STR_ID: &'static str = "emit_event_syscall";
fn input_tys(
context: &dyn SignatureSpecializationContext,
) -> Result<Vec<crate::ids::ConcreteTypeId>, SpecializationError> {
let span_ty = felt252_span_ty(context)?;
Ok(vec![
span_ty.clone(),
span_ty,
])
}
fn success_output_tys(
_context: &dyn SignatureSpecializationContext,
) -> Result<Vec<crate::ids::ConcreteTypeId>, SpecializationError> {
Ok(vec![])
}
}