KernelAdapter
Generic adapter interface for kernel access in modules and policies.
State Variables
kernel
Kernel public kernel;
Functions
constructor
constructor(Kernel kernel_);
Parameters
| Name | Type | Description |
|---|---|---|
| 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
| Name | Type | Description |
|---|---|---|
| newKernel_ | Kernel |
Errors
KernelAdapter_OnlyKernel
error KernelAdapter_OnlyKernel(address caller_);
Parameters
| Name | Type | Description |
|---|---|---|
| caller_ | address |