fil_actor_cron_state/v13/
mod.rs

1// Copyright 2019-2022 ChainSafe Systems
2// SPDX-License-Identifier: Apache-2.0, MIT
3
4use fvm_ipld_encoding::tuple::*;
5
6use fvm_shared4::METHOD_CONSTRUCTOR;
7use num_derive::FromPrimitive;
8
9pub use self::state::{Entry, State};
10
11mod state;
12
13/// Cron actor methods available
14#[derive(FromPrimitive)]
15#[repr(u64)]
16pub enum Method {
17    Constructor = METHOD_CONSTRUCTOR,
18    EpochTick = 2,
19}
20
21/// Constructor parameters for Cron actor, contains entries
22/// of actors and methods to call on each epoch
23#[derive(Default, Debug, Serialize_tuple, Deserialize_tuple)]
24pub struct ConstructorParams {
25    /// Entries is a set of actors (and corresponding methods) to call during EpochTick.
26    pub entries: Vec<Entry>,
27}