Skip to content

Circles Events Types (Rust)

Events are typed via circles_types::CirclesEvent and CirclesEventType (25+ variants). Parser preserves unknown events as CrcUnknownEvent to avoid drops.

Key pieces:

  • CirclesEvent: { base: CirclesBaseEvent, event_type: CirclesEventType, data: HashMap<String, Value> }.
  • CirclesBaseEvent: block_number, transaction_index, log_index, timestamp, transaction_hash.
  • Parser tolerates names like CrcV2RegisterHuman and inserts underscores when needed.
  • Heartbeat/empty frames are ignored in streaming helpers; unknown events keep payloads for forward compatibility.

Common variants (subset): CrcV2RegisterHuman, CrcV2RegisterGroup, CrcV2RegisterOrganization, CrcV2Trust, CrcV2GroupTrust, CrcV2MintPersonalToken, CrcV2MintGroupToken, CrcV2Wrap, CrcV2Unwrap, CrcV2Transfer, CrcV2Invite.

See circles-rpc::EventsMethods for HTTP/WS fetch and circles_types::events for enum definitions.