iota_grpc_types/proto/generated/
iota.grpc.v1.event.rs

1// Copyright (c) Mysten Labs, Inc.
2// Modifications Copyright (c) 2025 IOTA Stiftung
3// SPDX-License-Identifier: Apache-2.0
4
5// This file is @generated by prost-build.
6/// An event.
7#[non_exhaustive]
8#[derive(Clone, PartialEq, ::prost::Message)]
9pub struct Event {
10    /// This Event serialized as BCS.
11    #[prost(message, optional, tag = "1")]
12    pub bcs: ::core::option::Option<super::bcs::BcsData>,
13    /// Package ID of the top-level function invoked by a `MoveCall` command that triggered this
14    /// event to be emitted.
15    #[prost(message, optional, tag = "2")]
16    pub package_id: ::core::option::Option<super::types::ObjectId>,
17    /// Module name of the top-level function invoked by a `MoveCall` command that triggered this
18    /// event to be emitted.
19    #[prost(string, optional, tag = "3")]
20    pub module: ::core::option::Option<::prost::alloc::string::String>,
21    /// Address of the account that sent the transaction where this event was emitted.
22    #[prost(message, optional, tag = "4")]
23    pub sender: ::core::option::Option<super::types::Address>,
24    /// The type of the event emitted.
25    #[prost(string, optional, tag = "5")]
26    pub event_type: ::core::option::Option<::prost::alloc::string::String>,
27    /// BCS serialized bytes of the event.
28    #[prost(message, optional, tag = "6")]
29    pub bcs_contents: ::core::option::Option<super::bcs::BcsData>,
30    /// JSON rendering of the event.
31    #[prost(message, optional, tag = "7")]
32    pub json_contents: ::core::option::Option<::prost_types::Value>,
33}
34/// A list of events.
35#[non_exhaustive]
36#[derive(Clone, PartialEq, ::prost::Message)]
37pub struct Events {
38    #[prost(message, repeated, tag = "1")]
39    pub events: ::prost::alloc::vec::Vec<Event>,
40}