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_) ;

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;

Errors​

KernelAdapter_OnlyKernel​

error KernelAdapter_OnlyKernel(address caller_);