Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

📣nexus_interface::distributed_event

Struct DistributedEventWrapper

Wraps an event of type T with the metadata the Leader network uses to assign and time its off-chain pickup: deadline, request timestamp, task ID, and the ordered set of candidate leaders.

public struct DistributedEventWrapper<T: copy, drop> has copy, drop
Fields

event: Tdeadline_ms: u64requested_at_ms: u64task_id: sui::object::IDleaders: vector<sui::object::ID>

Function emit

Emits an event with the metadata required for distributed Leader pickup.

public fun emit<T: copy, drop>(event: T, deadline_ms: u64, requested_at_ms: u64, task_id: sui::object::ID, leaders: vector<sui::object::ID>)

Function inner

Returns the wrapped event.

Function deadline_ms

Returns the per-Leader pickup interval in milliseconds.

Function requested_at_ms

Returns the request timestamp in milliseconds.

Function task_id

Returns the Task ID used to correlate the request.

Function leaders

Returns the ordered Leader candidates for the request.

Last updated