#![no_std]
#![allow(clippy::unwrap_used)]
extern crate alloc;
#[doc(hidden)]
pub use jam_types;
#[cfg(any(feature = "authorizer", doc))]
mod authorizer;
#[cfg(any(feature = "authorizer", doc))]
pub use authorizer::Authorizer;
#[cfg(any(feature = "service", doc))]
mod service;
#[cfg(any(feature = "service", doc))]
pub use service::Service;
#[allow(dead_code)]
mod host_calls;
#[cfg(any(feature = "authorizer", doc))]
pub mod is_authorized {
pub use super::host_calls::gas;
}
#[cfg(any(feature = "service", doc))]
pub mod refine {
pub use super::host_calls::{
export, export_slice, expunge, foreign_historical_lookup as foreign_lookup,
foreign_historical_lookup_into as foreign_lookup_into, gas, historical_lookup as lookup,
historical_lookup_into as lookup_into, import, import_into, invoke,
is_foreign_historical_available as is_foreign_available,
is_historical_available as is_available, machine, peek, peek_into, peek_value, poke,
poke_value, void, zero,
};
}
#[cfg(any(feature = "service", doc))]
pub mod accumulate {
pub use super::host_calls::{
assign, bless, checkpoint, create_service, designate, foreign_lookup, foreign_lookup_into,
forget, gas, get, get_foreign, get_foreign_storage, get_storage, is_available,
is_foreign_available, lookup, lookup_into, my_info, quit, remove, remove_storage,
service_info, set, set_storage, solicit, transfer, upgrade,
};
}
#[cfg(any(feature = "service", doc))]
pub mod on_transfer {
pub use super::host_calls::{
foreign_lookup, foreign_lookup_into, forget, gas, get, get_foreign, get_foreign_storage,
get_storage, is_available, is_foreign_available, lookup, lookup_into, my_info, remove,
remove_storage, service_info, set, set_storage, solicit,
};
}
pub(crate) mod imports;
#[doc(hidden)]
pub mod logging;
#[doc(hidden)]
pub mod mem;
mod result;
pub use result::{ApiError, ApiResult, InvokeOutcome, InvokeResult};