Skip to main content

Evaluated Expenditure (EvaluatedExpenditure)

Evaluated Expenditures is a simple extension which allows the owner of an expenditure to update the payout modifiers after the expenditure is locked, effectively enabling the "evaluation" functionality we initially described as a part of the Tasks flow. Without this extension, payout modifiers can only be set by the Arbitration permission once the expenditure is locked, making it tedious to implement evaluation workflows.

Interface Methods

deprecate(bool _deprecated)

Called when deprecating (or undeprecating) the extension

Parameters

NameTypeDescription
_deprecatedboolIndicates whether the extension should be deprecated or undeprecated

finishUpgrade()

Called when upgrading the extension

getMetatransactionNonce(address _userAddress):uint256 nonce

Gets the next nonce for a meta-transaction

Parameters

NameTypeDescription
_userAddressaddressThe user's address

Return Parameters

NameTypeDescription
nonceuint256The nonce

identifier():bytes32 _identifier

Returns the identifier of the extension

Return Parameters

NameTypeDescription
_identifierbytes32The extension's identifier

install(address _colony)

Configures the extension

Parameters

NameTypeDescription
_colonyaddressThe colony in which the extension holds permissions

setExpenditurePayoutModifiers(uint256 _permissionDomainId, uint256 _childSkillIndex, uint256 _id, uint256[] memory _slots, int256[] memory _payoutModifiers)

Sets the payout modifiers in given expenditure slots, using the arbitration permission

Parameters

NameTypeDescription
_permissionDomainIduint256The domainId in which the extension has the arbitration permission
_childSkillIndexuint256The index that the _domainId is relative to _permissionDomainId
_iduint256Expenditure identifier
_slotsuint256[]Array of slots to set payout modifiers
_payoutModifiersint256[]Values (between +/- WAD) to modify the payout & reputation bonus

uninstall()

Called when uninstalling the extension

version():uint256 _version

Returns the version of the extension

Return Parameters

NameTypeDescription
_versionuint256The extension's version number