Skip to main content

KernelAdapter

Git Source

Generic adapter interface for kernel access in modules and policies.

State Variables​

kernel​

Kernel public kernel;

Functions​

constructor​

constructor(Kernel kernel_);

Parameters

NameTypeDescription
kernel_Kernel

onlyKernel​

Modifier to restrict functions to be called only by kernel.

modifier onlyKernel();

changeKernel​

Function used by kernel when migrating to a new kernel.

function changeKernel(Kernel newKernel_) external onlyKernel;

Parameters

NameTypeDescription
newKernel_Kernel

Errors​

KernelAdapter_OnlyKernel​

error KernelAdapter_OnlyKernel(address caller_);

Parameters

NameTypeDescription
caller_address