FutarchyProposal
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
_marketName
string
The name of the market.
_outcomes
string[]
The market outcomes.
_futarchyProposalParams
struct FutarchyProposal.FutarchyProposalParams
Futarchy proposal params.
_realityProxy
contract FutarchyRealityProxy
Oracle contract.
encodedQuestion
Encoded question parameters, needed to create and reopen a question.
Return Values
[0]
string
The encoded question.
questionId
Conditional Tokens questionId.
Return Values
[0]
bytes32
the question ID.
conditionId
Conditional Tokens conditionId.
Return Values
[0]
bytes32
The condition ID.
collateralToken1
Token collateral.
Return Values
[0]
IERC20
The token collateral.
collateralToken2
Currency collateral.
Return Values
[0]
IERC20
The Currency collateral.
parentCollectionId
Conditional Tokens parentCollectionId.
Return Values
[0]
bytes32
The parent collection ID.
parentMarket
The parent market (optional). This market redeems to an outcome token of the parent market.
Return Values
[0]
address
The parent market address.
parentOutcome
The parent outcome (optional). The parent market's outcome token this market redeems for.
Return Values
[0]
uint256
The parent outcome index.
wrappedOutcome
Returns the wrapped1155 and the data corresponding to an outcome token.
Parameters
index
uint256
The outcome index.
Return Values
wrapped1155
contract IERC20
The wrapped token.
data
bytes
The token data.
parentWrappedOutcome
Returns the wrapped1155 and the data corresponding to the parent market.
Return Values
wrapped1155
contract IERC20
The wrapped token.
data
bytes
The token data.
numOutcomes
Returns the number of outcomes.
Return Values
[0]
uint256
The number of outcomes.
resolve
Helper function to resolve the proposal.
Last updated