@somnia-chain/markets-sdk


@somnia-chain/markets-sdk / index / QuestionDefinitionInput

Interface: QuestionDefinitionInput

Defined in: packages/sdk/src/oracleHub.ts:100

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:105

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:107

Answer sources the oracle fetches; all-JSON definitions dedup content-addressed.


validAnswers

validAnswers: ValidAnswersInput

Defined in: packages/sdk/src/oracleHub.ts:109

The answer space the question resolves within.


resolutionTime

resolutionTime: bigint

Defined in: packages/sdk/src/oracleHub.ts:111

Unix-seconds the oracle answers at.


minAgreement

minAgreement: bigint

Defined in: packages/sdk/src/oracleHub.ts:113

Minimum count of sources that must agree for the oracle to resolve (else void).


subcommitteeSize

subcommitteeSize: bigint

Defined in: packages/sdk/src/oracleHub.ts:115

Oracle subcommittee nodes assigned to answer the question.


subcommitteeThreshold

subcommitteeThreshold: bigint

Defined in: packages/sdk/src/oracleHub.ts:117

Subcommittee nodes that must concur on the answer.