Adjudicator¶
- details
v2.1.2
- notice
Supervises stakers’ behavior and punishes when something’s wrong.
methods¶
constructor¶
params¶
- _basePenalty
Base for the penalty calculation
- _escrow
Escrow contract
- _hashAlgorithm
Hashing algorithm
- _penaltyHistoryCoefficient
Coefficient for calculating the penalty depending on the history
- _percentagePenaltyCoefficient
Coefficient for calculating the percentage penalty
- _rewardCoefficient
Coefficient for calculating the reward
evaluateCFrag(bytes,bytes,bytes,bytes,bytes,bytes,bytes,bytes)¶
- notice
Submit proof that a worker created wrong CFrag
params¶
- _cFragBytes
Serialized CFrag
- _cFragSignature
Signature of CFrag by worker
- _capsuleBytes
Serialized capsule
- _preComputedData
Additional pre-computed data for CFrag correctness verification
- _requesterPublicKey
Bob’s signing public key, also known as “stamp”
- _taskSignature
Signature of task specification by Bob
- _workerIdentityEvidence
Signature of worker’s public key by worker’s eth-key
- _workerPublicKey
Worker’s signing public key, also known as “stamp”
finishUpgrade(address)¶
- details
the
onlyWhileUpgrading
modifier works through a call to the parentfinishUpgrade
isOwner()¶
returns¶
- _0
true if
msg.sender
is the owner of the contract.
owner()¶
returns¶
- _0
the address of the owner.
renounceOwnership()¶
- details
Allows the current owner to relinquish control of the contract.
- notice
Renouncing to ownership will leave the contract without an owner. It will not be possible to call the functions with the
onlyOwner
modifier anymore.
transferOwnership(address)¶
- details
Allows the current owner to transfer control of the contract to a newOwner.
params¶
- newOwner
The address to transfer ownership to.
verifyState(address)¶
- details
the
onlyWhileUpgrading
modifier works through a call to the parentverifyState