@somnia-chain/markets-sdk / index / QuestionDefinitionInput
Interface: QuestionDefinitionInput
Defined in: oracleHub.ts:96
Full question definition — the input to scheduleQuestion /
getSchedulingCost / questionKeyOf. Mirrors the on-chain
QuestionDefinition struct field-for-field.
Properties
questionText
questionText:
string
Defined in: oracleHub.ts:101
Free-form question text. EXCLUDED from the dedup key for template (all-JSON-source) definitions — the sources determine the answer.
sources
sources:
QuestionSourceInput[]
Defined in: oracleHub.ts:103
Answer sources the oracle fetches; all-JSON definitions dedup content-addressed.
validAnswers
validAnswers:
ValidAnswersInput
Defined in: oracleHub.ts:105
The answer space the question resolves within.
resolutionTime
resolutionTime:
bigint
Defined in: oracleHub.ts:107
Unix-seconds the oracle answers at.
minAgreement
minAgreement:
bigint
Defined in: oracleHub.ts:109
Minimum count of sources that must agree for the oracle to resolve (else void).
subcommitteeSize
subcommitteeSize:
bigint
Defined in: oracleHub.ts:111
Oracle subcommittee nodes assigned to answer the question.
subcommitteeThreshold
subcommitteeThreshold:
bigint
Defined in: oracleHub.ts:113
Subcommittee nodes that must concur on the answer.