ICub

Git Source

Author: mortimr @ Kiln

The cub is controlled by a Hatcher in charge of providing its status details and implementation address.

Unstructured Storage Friendly

Functions

appliedFixes

Public method that emits the AppliedFixes event.

Transparent to all callers except the cub itself

Only callable by the cub itself as a regular call

This method is used to detect the execution context (view/non-view)

function appliedFixes(address[] memory _fixers) external;

Parameters

NameTypeDescription
_fixersaddress[]List of applied fixes

applyFix

Applies the provided fix.

Transparent to all callers except the hatcher

function applyFix(address _fixer) external;

Parameters

NameTypeDescription
_fixeraddressThe address of the contract implementing the fix to apply

Events

AppliedFixes

Emitted when several fixes have been applied.

event AppliedFixes(address[] fixes);

Errors

FixDelegateCallError

An error occured when performing the delegatecall to the fix.

error FixDelegateCallError(address fixer, bytes err);

FixCallError

The fix method failed by returning false.

error FixCallError(address fixer);

CalledWhenPaused

A call was made while the cub was paused.

error CalledWhenPaused(address caller);

CubAlreadyInitialized

error CubAlreadyInitialized();