Expand description
Event types for Thruput contracts: the Event trait that
#[derive(Event)] implements, topics (Topic, TopicSrc), and the
EmittedEvent and TypedEvent views of an emitted event.
Split out of thruput-sdk so host-side tooling can decode events without
the SDK. Contracts use the re-exports in thruput_sdk.
Structs§
- Emitted
Event - A view over a raw
TxEmittedEventproviding typed access to topics and the XDR-encoded payload. - Typed
Event - A typed view over an emitted event, combining topic access with a pre-decoded payload.
Enums§
- Topic
Src - An
impl Eventpublishes each topic as aTopicSrcvalue.
Constants§
- TOPIC_
SIZE - Size of each topic in serialized event data
Traits§
- Event
- Trait implemented by event types that can be emitted by contracts.
Type Aliases§
- Topic
- A topic is a fixed-length, opaque 32-byte array.