Skip to main content

Crate thruput_event

Crate thruput_event 

Source
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§

EmittedEvent
A view over a raw TxEmittedEvent providing typed access to topics and the XDR-encoded payload.
TypedEvent
A typed view over an emitted event, combining topic access with a pre-decoded payload.

Enums§

TopicSrc
An impl Event publishes each topic as a TopicSrc value.

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.