Zeitgeist
subscan
Runtime Modules / PredictionMarkets
Spec Version:
Events
Name
Lookup
Attributes
BadOnInitialize3900
BoughtCompleteSet3901["MarketIdOf","BalanceOf","AccountIdOf"]
MarketApproved3902["MarketIdOf","MarketStatus"]
MarketCreated3903["MarketIdOf","AccountId","MarketOf"]
MarketDestroyed3904["MarketIdOf"]
MarketClosed3905["MarketIdOf"]
MarketEarlyCloseScheduled3906["MarketIdOf","MarketPeriod<BlockNumberFor, MomentOf>","EarlyCloseState"]
MarketEarlyCloseDisputed3907["MarketIdOf"]
MarketEarlyCloseRejected3908["MarketIdOf"]
MarketDisputed3909["MarketIdOf","MarketStatus","AccountIdOf"]
MarketExpired390a["MarketIdOf"]
MarketRejected390b["MarketIdOf","RejectReason"]
MarketReported390c["MarketIdOf","MarketStatus","ReportOf"]
MarketResolved390d["MarketIdOf","MarketStatus","OutcomeReport"]
MarketRequestedEdit390e["MarketIdOf","EditReason"]
MarketEdited390f["MarketIdOf","MarketOf"]
SoldCompleteSet3910["MarketIdOf","BalanceOf","AccountIdOf"]
TokensRedeemed3911["MarketIdOf","AssetOf","BalanceOf","BalanceOf","AccountIdOf"]
GlobalDisputeStarted3912["MarketIdOf"]
RecoveryLimitReached3913["TimeFrame","TimeFrame"]
Storage Functions
Name
Type
MarketIdsPerCloseBlock{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U64"],"value":"Vec<U128>","keys_id":4,"value_id":526}}
MarketIdsPerCloseTimeFrame{"origin":"Map","n_map_type":{"hashers":["Blake2_128Concat"],"key_vec":["U64"],"value":"Vec<U128>","keys_id":4,"value_id":526}}
LastTimeFrame{"origin":"PlainType","plain_type":"U64","PlainTypeValue":4}
MarketIdsPerDisputeBlock{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U64"],"value":"Vec<U128>","keys_id":4,"value_id":526}}
MarketIdsPerReportBlock{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U64"],"value":"Vec<U128>","keys_id":4,"value_id":526}}
MarketIdsForEdit{"origin":"Map","n_map_type":{"hashers":["Twox64Concat"],"key_vec":["U128"],"value":"Vec<U8>","keys_id":6,"value_id":121}}
Constants
Name
Type
Value
AdvisoryBondU12800204aa9d10100000000000000000000
AdvisoryBondSlashPercentageU800
CloseEarlyDisputeBondU1280040e59c301200000000000000000000
CloseEarlyProtectionTimeFramePeriodU64002e930200000000
CloseEarlyProtectionBlockPeriodU64100e000000000000
CloseEarlyRequestBondU1280040e59c301200000000000000000000
DisputeBondU1280040e59c301200000000000000000000
MaxCategoriesU164000
MinCategoriesU160200
MaxCreatorFeeU3280969800
MaxDisputesU3201000000
MinDisputeDurationU64100e000000000000
MinOracleDurationU642c01000000000000
MaxGracePeriodU64a820280000000000
MaxOracleDurationU64c089010000000000
MaxDisputeDurationU64c04b030000000000
MaxRejectReasonLenU3200040000
MaxMarketLifetimeU64a082a00000000000
MaxEditReasonLenU3200040000
OutsiderBondU12800409452a30300000000000000000000
PalletId[U8; 8]7a67652f70726564
CloseEarlyBlockPeriodU64a08c000000000000
CloseEarlyTimeFramePeriodU6400ccbf1900000000
OracleBondU12800204aa9d10100000000000000000000
ValidityBondU12800a0724e180900000000000000000000
Error Types
Name
Docs
CannotDisputeSameOutcomeSomeone is trying to call `dispute` with the same outcome that is currentlyregistered on-chain.
EditorNotCreatorOnly creator is able to edit the market.
EditReasonLengthExceedsMaxEditReasonLenEditReason's length greater than MaxEditReasonLen.
InsufficientFundsInMarketAccountMarket account does not have enough funds to pay out.
InsufficientShareBalanceSender does not have enough share balance.
InvalidMultihashAn invalid Hash was included in a multihash parameter.
InvalidMarketTypeAn invalid market type was found.
InvalidScoringRuleAn operation is requested that is unsupported for the given scoring rule.
NotEnoughBalanceSender does not have enough balance to buy shares.
MarketAlreadyReportedMarket is already reported on.
MarketDurationTooLongThe market duration is longer than allowed.
MarketEditRequestAlreadyInProgressMarket edit request is already in progress.
MarketEditNotRequestedMarket is not requested for edit.
MarketIsNotActiveMarket was expected to be active.
MarketIsNotClosedMarket was expected to be closed.
MarketIsNotCollectingSubsidyA market in subsidy collection phase was expected.
MarketIsNotProposedA proposed market was expected.
MarketIsNotReportedA reported market was expected.
MarketIsNotDisputedA disputed market was expected.
MarketIsNotResolvedA resolved market was expected.
MarketStartTooSoonThe point in time when the market becomes active is too soon.
MarketStartTooLateThe point in time when the market becomes active is too late.
MarketDisputeMechanismNotFailedThe market dispute mechanism has not failed.
MissingBondTried to settle missing bond.
NotEnoughCategoriesThe number of categories for a categorical market is too low.
NoWinningBalanceThe user has no winning balance.
OutcomeMismatchSubmitted outcome does not match market type.
RejectReasonLengthExceedsMaxRejectReasonLenRejectReason's length greater than MaxRejectReasonLen.
ReporterNotOracleThe report is not coming from designated oracle.
StorageOverflowIt was tried to append an item to storage beyond the boundaries.
TooManyCategoriesToo many categories for a categorical market.
InvalidDisputeMechanismThe action requires another market dispute mechanism.
InvalidMarketStatusCatch-all error for invalid market status.
UnexpectedNoneInPostInfoThe post dispatch should never be None.
ZeroAmountAn amount was illegally specified as zero.
InvalidMarketPeriodMarket period is faulty (too short, outside of limits)
InvalidOutcomeRangeThe outcome range of the scalar market is invalid.
NotAllowedToReportYetCan not report before market.deadlines.grace_period is ended.
DisputeDurationSmallerThanMinDisputeDurationSpecified dispute_duration is smaller than MinDisputeDuration.
OracleDurationSmallerThanMinOracleDurationSpecified oracle_duration is smaller than MinOracleDuration.
DisputeDurationGreaterThanMaxDisputeDurationSpecified dispute_duration is greater than MaxDisputeDuration.
GracePeriodGreaterThanMaxGracePeriodSpecified grace_period is greater than MaxGracePeriod.
OracleDurationGreaterThanMaxOracleDurationSpecified oracle_duration is greater than MaxOracleDuration.
WeightsLenMustEqualAssetsLenThe weights length has to be equal to the assets length.
InvalidBaseAssetProvided base_asset is not allowed to be used as base_asset.
UnregisteredForeignAssetA foreign asset in not registered in AssetRegistry.
GlobalDisputeExistsAlreadyThe start of the global dispute for this market happened already.
NoDisputeMechanismThe market has no dispute mechanism.
NonZeroDisputePeriodOnTrustedMarketThe dispute duration is positive but the market has dispute period.
FeeTooHighThe fee is too high.
InvalidResolutionMechanismThe resolution mechanism resulting from the scoring rule is not supported.
RequesterNotCreatorThe early market close operation was not requested by the market creator.
EarlyCloseRequestTooLateThe early close would be scheduled after the original market period end.
InvalidEarlyCloseStateThis early close state is not valid.
NoEarlyCloseScheduledThere is no early close scheduled.
OnlyAuthorizedCanScheduleEarlyCloseAfter there was an early close already scheduled,only the `CloseMarketsEarlyOrigin` can schedule another one.
CallerNotMarketCreatorThe caller is not the market creator.
MarketIsNotTrustedThe market is not trusted.
NotAllowedForBlockBasedMarketsThe operation is not allowed for market with a block period.
MarketNotInCloseTimeFrameListThe market is not in the close time frame list.
MarketPeriodEndNotAlreadyReachedYetThe market period end was not already reached yet.