Anoma.Node.Event (Anoma v0.34.0)

I am an Node Event module for Anoma Node. I provide a wrapper around all Anoma Events.

Summary

Types

t()

I am the Event type for the Node events. My fields determine the overall structure of the Node messages.

Types

t()

@type t() :: %Anoma.Node.Event{body: term(), node_id: any()}

I am the Event type for the Node events. My fields determine the overall structure of the Node messages.

Fields

  • :node_id - The ID of the Anoma Node sending an event. Nil in case
             of a non-Anoma event.
  • :body - A body of the event.

Functions

new_with_body(node_id, body)

(macro)

node_filter(node_id)

@spec node_filter(String.t()) :: Anoma.Node.Event.NodeFilter.t()