Skip to main content
The proposal contract represents a single futarchy market and is initialized in FutarchyFactory.

Variables

initialized

Flag to initialize the proposal only once.

FutarchyProposalParams

Contains the information associated to Conditional Tokens.

marketName

The name of the market.

outcomes

The market outcomes.

futarchyProposalParams

Futarchy proposal parameters.

realityProxy

Oracle contract.

Functions

initialize

Initializer. Parameters

encodedQuestion

Encoded question parameters, needed to create and reopen a question. Return Values

questionId

Conditional Tokens questionId. Return Values

conditionId

Conditional Tokens conditionId. Return Values

collateralToken1

Token collateral. Return Values

collateralToken2

Currency collateral. Return Values

parentCollectionId

Conditional Tokens parentCollectionId. Return Values

parentMarket

The parent market (optional). This market redeems to an outcome token of the parent market. Return Values

parentOutcome

The parent outcome (optional). The parent market’s outcome token this market redeems for. Return Values

wrappedOutcome

Returns the wrapped1155 and the data corresponding to an outcome token. Parameters Return Values

parentWrappedOutcome

Returns the wrapped1155 and the data corresponding to the parent market. Return Values

numOutcomes

Returns the number of outcomes. Return Values

resolve

Helper function to resolve the proposal.