GReputation
The contract extends Reputation contract with delegation and cross blockchain merkle states.
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
.
Events
DelegateVotesChanged
Emitted when a delegate account's vote balance changes.
StateHash
Emitted when a state hash of a blockhain is set.
StateHashProof
Emitted when user balance in a specific blockchain state hash is proved.
setBlockchainStateHash
Sets the state hash of a blockchain.
Can only be called by the admin.
getVotesAt
Get the number of active votes a user holds after delegation (vs the basic balance of reputation he holds).
Returns: the number of votes.
totalSupplyLocal
Returns: total supply in current blockchain.
totalSupplyAt
Returns: total supply in all blockchain aggregated.
getVotesAtBlockchain
The function that gets the number of active votes a user holds after delegation in specific blockchain.
Returns: the number of votes.
proveBalanceOfAtBlockchain
The function that proves user balance in a specific blockchain state hash
Returns: true
if proof is valid.
delegateTo
The function that delegate votes to another user.
undelegate
The function that cancels user delegation.
Last updated