GReputation
The contract extends Reputation contract with delegation and cross blockchain merkle states.
Last updated
The contract extends Reputation contract with delegation and cross blockchain merkle states.
Last updated
To be noticed: the contract breaks DAOStack nativeReputation usage, since it is not possiible to upgrade the original nativeReputation token. it means you can no longer rely on avatar.nativeReputation()
or controller.nativeReputation()
to return the current reputation token.
The DAO avatar will be the owner of this reputation token and not the Controller. Minting by the DAO will be done using controller.genericCall
and not via controller.mintReputation
.
Emitted when a delegate account's vote balance changes.
Parameter name | Annotation |
---|---|
Emitted when a state hash of a blockhain is set.
Parameter name | Annotation |
---|---|
Emitted when user balance in a specific blockchain state hash is proved.
Sets the state hash of a blockchain.
Can only be called by the admin.
Get the number of active votes a user holds after delegation (vs the basic balance of reputation he holds).
Returns: the number of votes.
Returns: total supply in current blockchain.
Returns: total supply in all blockchain aggregated.
The function that gets the number of active votes a user holds after delegation in specific blockchain.
Returns: the number of votes.
The function that proves user balance in a specific blockchain state hash
Returns: true
if proof is valid.
The function that delegate votes to another user.
The function that cancels user delegation.
Parameter name | Annotation |
---|---|
Parameter name | Annotation |
---|---|
Parameter name | Annotation |
---|---|
Parameter name | Annotation |
---|---|
Parameter name | Annotation |
---|---|
Parameter name | Annotation |
---|---|
Parameter name | Annotation |
---|---|
Parameter name | Annotation |
---|---|
delgate
The address of delegate account.
delegator
The address of delegator account.
previousBalance
The previous amount of vote power balance.
newBalance
The new amount of vote power balance.
blockchain
The blockchain name.
merkleRoot
The state hash.
totalSupply
The total supply of reputation on the specific blockchain.
blockchain
The name of the blockchain.
user
The user whose balance if proved.
repBalance
The balance in reputation of the user that is being proved.
_id
The string name of the blockchain (will be hashed to produce byte32 id).
_hash
The state hash.
_totalSupply
Total supply of reputation on the specific blockchain.
_user
The user to get active votes for.
_global
Flag whether to include reputation from other blockchains.
_blockNumber
Get votes state at specific block.
_blockNumber
Specific block.
_blockNumber
Specific block.
_id
The keccak256 hash of the blockchain string ID.
_user
The user to get active votes for.
_blockNumber
Specific block.
_id
The string ID of the blockchain we supply proof for.
_user
The user to prove his balance.
_balance
The balance we are proving.
_proof
Array of byte32 with proof data (currently merkle tree path).
_nodeIndex
Index of node in the tree (for unsorted merkle tree proof).
_delegate
The to whom to delegate address.