pub mod minimal;
pub mod pallet_contracts_debugging;
pub use frame_metadata::RuntimeMetadataPrefixed;
use frame_support::sp_runtime::{traits::Dispatchable, Storage};
use frame_system::pallet_prelude::BlockNumberFor;
pub use minimal::MinimalRuntime;
pub type AccountIdFor<R> = <R as frame_system::Config>::AccountId;
pub type HashFor<R> = <R as frame_system::Config>::Hash;
pub type ConfigOf<R> = <R as Runtime>::Config;
pub trait Runtime {
type Config: frame_system::Config;
fn initialize_storage(_storage: &mut Storage) -> Result<(), String> {
Ok(())
}
fn initialize_block(
_height: BlockNumberFor<Self::Config>,
_parent_hash: <Self::Config as frame_system::Config>::Hash,
) -> Result<(), String> {
Ok(())
}
fn finalize_block(
_height: BlockNumberFor<Self::Config>,
) -> Result<<Self::Config as frame_system::Config>::Hash, String> {
Ok(Default::default())
}
fn default_actor() -> AccountIdFor<Self::Config>;
fn get_metadata() -> RuntimeMetadataPrefixed;
fn convert_account_to_origin(
account: AccountIdFor<Self::Config>,
) -> <<Self::Config as frame_system::Config>::RuntimeCall as Dispatchable>::RuntimeOrigin;
}