Trait scrypto_test::prelude::SystemCallbackObject
source · pub trait SystemCallbackObject: Sized {
type CallbackState;
// Required methods
fn init<S>(
&mut self,
store: &S
) -> Result<Self::CallbackState, RuntimeError>
where S: BootStore;
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§
type CallbackState
Required Methods§
sourcefn init<S>(&mut self, store: &S) -> Result<Self::CallbackState, RuntimeError>where
S: BootStore,
fn init<S>(&mut self, store: &S) -> Result<Self::CallbackState, RuntimeError>where
S: BootStore,
Initialize the layer above the system with data from the substate store
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>,
Object Safety§
This trait is not object safe.