Authorized¶
Calls¶
authorize_market_outcome¶
Overwrites already provided outcomes for the same market and account.
Attributes¶
Name | Type |
---|---|
market_id | MarketIdOf<T> |
outcome | OutcomeReport |
Python¶
call = substrate.compose_call(
'Authorized', 'authorize_market_outcome', {
'market_id': 'u128',
'outcome': {
'Categorical': 'u16',
'Scalar': 'u128',
},
}
)
Events¶
AuthorityReported¶
The Authority reported.
Attributes¶
Name | Type | Composition |
---|---|---|
market_id | MarketIdOf<T> |
u128 |
outcome | OutcomeReport |
{'Categorical': 'u16', 'Scalar': 'u128'} |
Storage functions¶
AuthorizedOutcomeReports¶
Maps the market id to the outcome reported by the authorized account.
Python¶
result = substrate.query(
'Authorized', 'AuthorizedOutcomeReports', ['u128']
)
Return value¶
{'outcome': {'Categorical': 'u16', 'Scalar': 'u128'}, 'resolve_at': 'u64'}
Constants¶
CorrectionPeriod¶
The period, in which the authority can correct the outcome of a market. This value must not be zero.
Value¶
7200
Python¶
constant = substrate.get_constant('Authorized', 'CorrectionPeriod')
PalletId¶
Identifier of this pallet
Value¶
'0x7a67652f61747a64'
Python¶
constant = substrate.get_constant('Authorized', 'PalletId')
Errors¶
MarketDoesNotHaveDisputeMechanismAuthorized¶
The market unexpectedly has the incorrect dispute mechanism.
MarketIsNotDisputed¶
An account attempts to submit a report to an undisputed market.
OutcomeMismatch¶
The report does not match the market's type.