DelegateMap
Last updated
Last updated
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.
The main members of the Delegate Map are the voter objects and the voter mapping with the structure of "user number -> voter object".
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.
The query API well describes the function and usage of the Delegate Map in the whole system, as shown in the table below.
getDelegateOf
Get the delegate with a specific numbered user.