pub trait SystemCallbackObject: Sized {
    type CallbackState;

    // Required methods
    fn init<S: BootStore>(
        &mut self,
        store: &S
    ) -> Result<Self::CallbackState, RuntimeError>;
    fn invoke<Y>(
        package_address: &PackageAddress,
        package_export: PackageExport,
        input: &IndexedScryptoValue,
        api: &mut Y
    ) -> Result<IndexedScryptoValue, RuntimeError>
       where Y: ClientApi<RuntimeError> + KernelInternalApi<SystemConfig<Self>> + KernelNodeApi + KernelSubstateApi<SystemLockData>;
}
Expand description

Invocation callback invoked by the system layer

Required Associated Types§

Required Methods§

source

fn init<S: BootStore>( &mut self, store: &S ) -> Result<Self::CallbackState, RuntimeError>

Initialize the layer above the system with data from the substate store

source

fn invoke<Y>( package_address: &PackageAddress, package_export: PackageExport, input: &IndexedScryptoValue, api: &mut Y ) -> Result<IndexedScryptoValue, RuntimeError>

Object Safety§

This trait is not object safe.

Implementors§