1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright 2019-2024 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0, MIT

use super::*;
use crate::rpc::types::EventEntry;

#[derive(Serialize, Deserialize, JsonSchema, Clone, Debug, Eq, PartialEq, Default)]
#[serde(rename_all = "PascalCase")]
pub struct ObjStat {
    pub size: usize,
    pub links: usize,
}
lotus_json_with_self!(ObjStat);

#[derive(Serialize, Deserialize, JsonSchema, Clone)]
#[serde(rename_all = "PascalCase")]
pub struct Event {
    /// Actor ID
    pub emitter: u64,
    pub entries: Vec<EventEntry>,
}
lotus_json_with_self!(Event);