@somnia-chain/markets-sdk / index / QuestionDefinitionInput
Interface: QuestionDefinitionInput
Defined in: packages/sdk/src/oracleHub.ts:112
Full question definition — the input to scheduleQuestion /
getSchedulingCost / questionKeyOf. Mirrors the on-chain
QuestionDefinition struct field-for-field.
Properties
questionText
questionText:
string
Defined in: packages/sdk/src/oracleHub.ts:117
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: packages/sdk/src/oracleHub.ts:119
Answer sources the oracle fetches; all-JSON definitions dedup content-addressed.
validAnswers
validAnswers:
ValidAnswersInput
Defined in: packages/sdk/src/oracleHub.ts:121
The answer space the question resolves within.
resolutionTime
resolutionTime:
bigint
Defined in: packages/sdk/src/oracleHub.ts:123
Unix-seconds the oracle answers at.
minAgreement
minAgreement:
bigint
Defined in: packages/sdk/src/oracleHub.ts:125
Minimum count of sources that must agree for the oracle to resolve (else void).
subcommitteeSize
subcommitteeSize:
bigint
Defined in: packages/sdk/src/oracleHub.ts:127
Oracle subcommittee nodes assigned to answer the question.
subcommitteeThreshold
subcommitteeThreshold:
bigint
Defined in: packages/sdk/src/oracleHub.ts:129
Subcommittee nodes that must concur on the answer.