Skip to content

Latest commit

 

History

History
30 lines (14 loc) · 647 Bytes

event.md

File metadata and controls

30 lines (14 loc) · 647 Bytes

Module 0x2::event

Function emit

Emit a custom Move event, sending the data offchain.

Used for creating custom indexes and tracking onchain activity in a way that suits a specific application the most.

The type T is the main way to index the event, and can contain phantom parameters, eg. emit(MyEvent).

#[private_generics(#[T])]
public fun emit<T: copy, drop>(event: T)