multiversx-sdk 0.16.1

SDK for interacting with the MultiversX blockchain
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use multiversx_chain_core::std::Bech32Address;
use serde::{Deserialize, Serialize};

use super::log_data::LogData;

/// Events generated by a transaction with changed fields' types in order to make it friendly for the API's JSON.
///
/// Corresponds to [`Events`](https://github.com/multiversx/mx-chain-core-go/blob/main/data/transaction/apiTransactionResult.go) in mx-chain-core-go.
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct Events {
    pub address: Bech32Address,
    pub identifier: String,
    #[serde(default)]
    pub topics: Vec<String>,
    #[serde(default)]
    pub data: LogData,
}