Skip to main content

OlympusInstructions

Git Source

Inherits: INSTRv1

Caches and executes batched instructions for protocol upgrades in the Kernel.

Functions​

constructor​

constructor(Kernel kernel_) Module(kernel_);

Parameters

NameTypeDescription
kernel_Kernel

KEYCODE​

5 byte identifier for a module.

function KEYCODE() public pure override returns (Keycode);

Returns

NameTypeDescription
<none>Keycode

VERSION​

Returns which semantic version of a module is being implemented.

function VERSION() public pure override returns (uint8 major, uint8 minor);

Returns

NameTypeDescription
majoruint8- Major version upgrade indicates breaking change to the interface.
minoruint8- Minor version change retains backward-compatible interface.

getInstructions​

View function for retrieving a list of Instructions in an outside contract.

function getInstructions(
uint256 instructionsId_
) public view override returns (Instruction[] memory);

Parameters

NameTypeDescription
instructionsId_uint256

Returns

NameTypeDescription
<none>Instruction[]

store​

Store a list of Instructions to be executed in the future.

function store(
Instruction[] calldata instructions_
) external override permissioned returns (uint256);

Parameters

NameTypeDescription
instructions_Instruction[]

Returns

NameTypeDescription
<none>uint256