Skip to content

Access Control List

Access Types

Type Access
Node Anyone, Not differentiated on msg.sender
Particular Node Anyone, Differentiated on msg.sender
Client Anyone
Internal Only Parent and Inherited contract
Role Wise Specific Role, grantable/revocable by Admin through ACL.sol
  1. JobConfirmer
  2. BlockConfirmer
  3. StakeModifier
  4. StakerActivityUpdater


Functional Overview

JobManager.sol

Function Access Comments
createJob Client
fulfillJob JobConfirmer

BlockManager.sol

Function Access Comments
propose Particular Node
giveSorted Particular Node
resetDispute Particular Node
confirmBlock BlockConfirmer
_insertAppropriately Internal

VoteManager.sol

Function Access Comments
commit Particular Node
reveal Node

StakeManager.sol

Function Role Comments
setStakerEpochLastRevealed StakerActivityUpdater
updateCommitmentEpoch StakerActivityUpdater
stake Particular Node
unstake Particular Node
withdraw Particular Node
givePenalties StakeModifier
giveBlockReward StakeModifier
giveRewards StakeModifier
slash StakeModifier


Roles and their Holders

ACL

Role Accessible Functions Functions of Role Holder
JobConfirmer fullfillJob() JobManager BlockManager
BlockConfirmer confirmBlock() BlockManager VoteManager
StakeModifier slash()
giveBlockReward()
StakeManager BlockManager
giveRewards()
givePenalties()
StakeManager VoteManager
StakerActivityUpdater setStakerEpochLastRevealed()
updateCommitmentEpoch()
StakeManager VoteManager