Emit an arc28 event log using either an ARC4Struct type or a named object type. Object types must have an ARC4 equivalent type.
Anonymous types cannot be used as the type name is used to determine the event prefix
An ARC4Struct instance, or a plain object with a named type
class Demo extends Struct<{ a: UintN64 }> {}emit(new Demo({ a: new UintN64(123) })) Copy
class Demo extends Struct<{ a: UintN64 }> {}emit(new Demo({ a: new UintN64(123) }))
type Demo = { a: uint64 }emit<Demo>({a: 123})// orconst d: Demo = { a: 123 }emit(d) Copy
type Demo = { a: uint64 }emit<Demo>({a: 123})// orconst d: Demo = { a: 123 }emit(d)
Emit an arc28 event log using an explicit name and inferred property/field types. Property types must be ARC4 or have an ARC4 equivalent type.
The name of the event (must be a compile time constant)
A set of event properties (order is significant)
emit("Demo", new UintN64(123)) Copy
emit("Demo", new UintN64(123))
const a: uint64 = 123emit("Demo", a) Copy
const a: uint64 = 123emit("Demo", a)
Emit an arc28 event log using either an ARC4Struct type or a named object type. Object types must have an ARC4 equivalent type.
Anonymous types cannot be used as the type name is used to determine the event prefix