Skip to main content

Recovery (IRecovery)

Interface Methods

approveExitRecovery()

Indicate approval to exit recovery mode. Can only be called by user with recovery role.

checkNotAdditionalProtectedVariable(uint256 _slot)

Check whether the supplied slot is a protected variable specific to this contract

Note: No return value, but should throw if protected.

Parameters

NameTypeDescription
_slotuint256The storage slot number to check.

enterRecoveryMode()

Put colony network mining into recovery mode. Can only be called by user with recovery role.

exitRecoveryMode()

Exit recovery mode, can be called by anyone if enough whitelist approvals are given.

isInRecoveryMode():bool inRecoveryMode

Is colony network in recovery mode.

Return Parameters

NameTypeDescription
inRecoveryModeboolReturn true if recovery mode is active, false otherwise

numRecoveryRoles():uint64 numRoles

Return number of recovery roles.

Return Parameters

NameTypeDescription
numRolesuint64Number of users with the recovery role.

removeRecoveryRole(address _user)

Remove colony recovery role. Can only be called by root role.

Parameters

NameTypeDescription
_useraddressUser we want to remove recovery role from

setRecoveryRole(address _user)

Set new colony recovery role. Can be called by root.

Parameters

NameTypeDescription
_useraddressUser we want to give a recovery role to

setStorageSlotRecovery(uint256 _slot, bytes32 _value)

Update value of arbitrary storage variable. Can only be called by user with recovery role.

Note: certain critical variables are protected from editing in this function

Parameters

NameTypeDescription
_slotuint256Uint address of storage slot to be updated
_valuebytes32word of data to be set