Skip to main content

Governance Tool Delegates extension

The Governance Tool Delegates extension introduces delegate functionality to your dapp. This means that users can delegate their votes to a delegate, allowing the delegate to vote on proposals on behalf of the user, consolidating their voting power.

note

The calculation of voting power is performed for each individual vote. Therefore, the merging of voting powers for delegation occurs after each vote's power has been calculated.

How to use

To utilize the Delegates extension, you need to import the lib.governance.extensions.delegates module into your dapp.

No additional configuration in chromia.yml is needed.

Features:

  • Users can delegate their votes to a delegate using the operation delegate_to(target_account_id: byte_array).
  • Users can undelegate their votes with the operation undelegate().
  • Users can override their delegated votes using the operation override_delegated_vote(option_item_id: rowid).