pub const EMPTY_ARR: [(); 0] = [(); 0];
macro_rules! define_code {
($name:ident { code_id: $code_id:literal }) => {
paste::paste! {
pub const [<$name _ACTOR_CODE_ID>]: u32 = $code_id;
}
};
}
macro_rules! define_id {
($name:ident { id: $id:literal }) => {
paste::paste! {
pub const [<$name _ACTOR_ID>]: fvm_shared::ActorID = $id;
pub const [<$name _ACTOR_ADDR>]: fvm_shared::address::Address = fvm_shared::address::Address::new_id([<$name _ACTOR_ID>]);
}
};
}
macro_rules! define_singleton {
($name:ident { id: $id:literal, code_id: $code_id:literal }) => {
define_id!($name { id: $id });
define_code!($name { code_id: $code_id });
};
}
pub mod account;
pub mod activity;
pub mod adm;
pub mod blob_reader;
pub mod blobs;
pub mod bucket;
pub mod burntfunds;
pub mod chainmetadata;
pub mod cron;
pub mod diamond;
pub mod eam;
pub mod ethaccount;
pub mod evm;
pub mod gas_market;
pub mod init;
pub mod ipc;
pub mod multisig;
pub mod placeholder;
pub mod recall_config;
pub mod reward;
pub mod system;
pub mod timehub;