✍️DelegateMap

Functions and Usages

DelegateMap is a public library used to track and record the delegation behavior of voting rights holders who appoint representatives and establish delegate relationships during the proposal or voting process for a specific motion.

Members and Attributes

The main members of the Delegate Map are the voter objects and the voter mapping with the structure of "user number -> voter object".

Voter objects

Attribute List of Voters Objects

AttributeCommercial and Legal Meaning

delegate

The delegate user number of the voter.

weight

The voting weight value of the voter.

repWeight

The total value of the delegated voting weights held by the voter.

repHead

Total number of delegators represented by the voter.

Query API

The query API well describes the function and usage of the Delegate Map in the whole system, as shown in the table below.

APICommercial and Legal Meaning

getDelegateOf

Get the delegate with a specific numbered user.

Source Code

Last updated