use fvm_shared4::error::ExitCode;
use fvm_shared4::METHOD_CONSTRUCTOR;
use num_derive::FromPrimitive;
pub use self::policy::*;
pub use self::state::*;
pub use self::types::*;
#[doc(hidden)]
pub mod ext;
mod policy;
mod state;
mod types;
pub mod detail {
pub const GAS_ON_SUBMIT_VERIFY_SEAL: i64 = 34721049;
}
#[derive(FromPrimitive)]
#[repr(u64)]
pub enum Method {
Constructor = METHOD_CONSTRUCTOR,
CreateMiner = 2,
UpdateClaimedPower = 3,
EnrollCronEvent = 4,
OnEpochTickEnd = 5,
UpdatePledgeTotal = 6,
SubmitPoRepForBulkVerify = 8,
CurrentTotalPower = 9,
CreateMinerExported = frc42_macros::method_hash!("CreateMiner"),
NetworkRawPowerExported = frc42_macros::method_hash!("NetworkRawPower"),
MinerRawPowerExported = frc42_macros::method_hash!("MinerRawPower"),
MinerCountExported = frc42_macros::method_hash!("MinerCount"),
MinerConsensusCountExported = frc42_macros::method_hash!("MinerConsensusCount"),
}
pub const ERR_TOO_MANY_PROVE_COMMITS: ExitCode = ExitCode::new(32);