Zeitgeist
subscan
Runtime Modules / Court
Spec Version:
Call Functions
Events
Name
Lookup
Attributes
CourtOpened3400["MarketIdOf","CourtOf"]
JurorJoined3401["AccountId","BalanceOf"]
ExitPrepared3402["AccountId"]
ExitedCourt3403["AccountId","BalanceOf","BalanceOf"]
JurorVoted3404["CourtId","AccountId","Hash"]
JurorRevealedVote3405["AccountId","CourtId","VoteItem","Hash","BalanceOf","u32"]
DenouncedJurorVote3406["AccountId","AccountId","CourtId","VoteItem","Hash"]
DelegatorJoined3407["AccountId","BalanceOf","Vec<AccountId>"]
CourtAppealed3408["CourtId","AppealOf","Option<RoundTimingOf>"]
MintedInCourt3409["AccountId","BalanceOf"]
StakesReassigned340a["CourtId"]
InflationSet340b["Perbill"]
Storage Functions
Name
Type
CourtPool{"origin":"PlainType","plain_type":"Vec<zrml_court:types:CourtPoolItem>","PlainTypeValue":489}
Participants{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["AccountId"],"value":"zrml_court:types:CourtParticipantInfo","keys_id":0,"value_id":492}}
SelectionNonce{"origin":"PlainType","plain_type":"U64","PlainTypeValue":4}
SelectedDraws{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U128"],"value":"Vec<zrml_court:types:Draw>","keys_id":6,"value_id":496}}
Courts{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U128"],"value":"zrml_court:types:CourtInfo","keys_id":6,"value_id":70}}
NextCourtId{"origin":"PlainType","plain_type":"U128","PlainTypeValue":6}
MarketIdToCourtId{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U128"],"value":"U128","keys_id":6,"value_id":6}}
CourtIdToMarketId{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U128"],"value":"U128","keys_id":6,"value_id":6}}
RequestBlock{"origin":"PlainType","plain_type":"U64","PlainTypeValue":4}
YearlyInflation{"origin":"PlainType","plain_type":"U32","PlainTypeValue":80}
Constants
Name
Type
Value
AppealBondU1280040e59c301200000000000000000000
BlocksPerYearU64a820280000000000
VotePeriodU646054000000000000
AggregationPeriodU646054000000000000
AppealPeriodU64201c000000000000
LockId[U8; 8]7a67652f636f6c6b
PalletId[U8; 8]7a67652f636f7574
InflationPeriodU64c04b030000000000
MaxAppealsU3204000000
MaxSelectedDrawsU32fe010000
MaxDelegationsU3205000000
MaxCourtParticipantsU32e8030000
MaxYearlyInflationU3200e1f505
MinJurorStakeU128005039278c0400000000000000000000
RequestIntervalU64e0c4000000000000
TreasuryPalletId[U8; 8]7a67652f74737279
Error Types
Name
Docs
JurorDoesNotExistAn account id does not exist on the jurors storage.
MarketDoesNotHaveCourtMechanismOn dispute or resolution, someone tried to pass a non-court market type.
MarketIsNotDisputedThe market is not in a state where it can be disputed.
CallerIsNotACourtParticipantThis operation requires the caller to be a juror or delegator.
VoteAlreadyRevealedThe vote is not commitment.
CommitmentHashMismatchThe vote item and salt reveal do not match the commitment vote.
CourtNotFoundNo court for this market id was found.
NotInVotingPeriodThis operation is only allowed in the voting period.
NotInAggregationPeriodThis operation is only allowed in the aggregation period.
MaxAppealsReachedThe maximum number of appeals has been reached.
NotInAppealPeriodThis operation is only allowed in the appeal period.
InvalidVoteStateThe caller of this extrinsic needs to be drawn or in the commitment vote state.
BelowMinJurorStakeThe amount is below the minimum required stake.
MaxCourtParticipantsReachedThe maximum number of possible jurors has been reached.
AlreadyPreparedExitIn order to exit the court the juror has to exitthe pool first with `prepare_exit_court`.
JurorNotDrawnThe juror was not randomly selected for the court.
JurorDidNotVoteThe juror was drawn but did not manage to commitmently vote within the court.
VoteAlreadyDenouncedThe juror was already denounced.
CallerDenouncedItselfA juror tried to denounce herself.
CourtNotClosedThe court is not in the closed state.
CourtAlreadyReassignedThe juror stakes of the court already got reassigned.
NotEnoughJurorsAndDelegatorsStakeThere are not enough jurors in the pool.
MarketReportNotFoundThe report of the market was not found.
MaxCourtIdReachedThe maximum number of court ids is reached.
AmountExceedsBalanceThe caller has not enough funds to join the court with the specified amount.
AmountBelowLastJoinAfter the first join of the court the amount has to be equal or higher than the current stake.This is to ensure the slashable amount in active court roundsis still smaller or equal to the stake.It is also necessary to calculate the `unconsumed` stake properly.Otherwise a juror could just reduce the probability to get selected whenever they want.But this has to be done by `prepare_exit_court` and `exit_court`.Additionally, the `join_court` and `delegate` extrinsicsuse `extend_lock` and not `set_lock` or `remove_lock`.This means those extrinsics are not meant to get out, but only to get into the court.
AmountBelowLowestJurorThe amount is too low to kick the lowest juror out of the stake-weighted pool.
CourtParticipantTwiceInPoolThis should not happen, because the juror account should only be once in a pool.
CallerNotInSelectedDrawsThe caller of this function is not part of the juror draws.
AppealBondExceedsBalanceThe callers balance is lower than the appeal bond.
PrematureExitThe juror should at least wait one inflation period after the funds can be unstaked.Otherwise hopping in and out for inflation rewards is possible.
PrepareExitAtNotPresentThe `prepare_exit_at` field is not present.
MaxDelegationsReachedThe maximum number of delegations is reached for this account.
JurorDelegatedThe juror decided to be a delegator.
SelfDelegationNotAllowedA delegation to the own account is not possible.
IdenticalDelegationsNotAllowedThe set of delegations has to be distinct.
NoDelegationsThe call to `delegate` is not valid if no delegations are provided.
DelegatedToInvalidJurorThe set of delegations should contain only valid and active juror accounts.
MarketIdToCourtIdNotFoundThe market id to court id mapping was not found.
CourtIdToMarketIdNotFoundThe court id to market id mapping was not found.
InvalidVoteItemForOutcomeCourtThe vote item is not valid for this (outcome) court.
InvalidVoteItemForBinaryCourtThe vote item is not valid for this (binary) court.
AppealedVoteItemIsNoOutcomeThe appealed vote item is not an outcome.
WinnerVoteItemIsNoOutcomeThe winner vote item is not an outcome.
OutcomeMismatchThe outcome does not match the market outcomes.
VoteItemIsNoOutcomeThe vote item was expected to be an outcome, but is actually not an outcome.
UnexpectedAction cannot be completed because an unexpected error has occurred. This should bereported to protocol maintainers.
InflationExceedsMaxYearlyInflationThe inflation rate is too high.