Trait scrypto_test::prelude::SystemCallbackObject
source · pub trait SystemCallbackObject: Sized {
type InitInput: Clone;
// Required methods
fn init<S>(
store: &S,
init_input: Self::InitInput
) -> Result<Self, BootloadingError>
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<System<Self>> + KernelNodeApi + KernelSubstateApi<SystemLockData>;
}Expand description
Invocation callback invoked by the system layer
Required Associated Types§
Required Methods§
sourcefn init<S>(
store: &S,
init_input: Self::InitInput
) -> Result<Self, BootloadingError>where
S: BootStore,
fn init<S>(
store: &S,
init_input: Self::InitInput
) -> Result<Self, BootloadingError>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<System<Self>> + KernelNodeApi + KernelSubstateApi<SystemLockData>,
Object Safety§
This trait is not object safe.