IRecovery

Interface Methods

approveExitRecovery

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

checkNotAdditionalProtectedVariable

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

Is colony network in recovery mode.

Return Parameters

NameTypeDescription
inRecoveryModeboolReturn true if recovery mode is active, false otherwise

numRecoveryRoles

Return number of recovery roles.

Return Parameters

NameTypeDescription
numRolesuint64Number of users with the recovery role.

removeRecoveryRole

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

Parameters

NameTypeDescription
_useraddressUser we want to remove recovery role from

setRecoveryRole

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

Parameters

NameTypeDescription
_useraddressUser we want to give a recovery role to

setStorageSlotRecovery

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

Support

Questions? Problems? Existential dilemmas? We’re here to help!

Improve this doc.

All improvements to documentation are welcome and encouraged. Submit a PR for documentation on GitHub.