- Ask reality questions.
- Prepare condition.
- Create new erc20 outcome tokens.
- Initialize a new market contract.
Variables
CreateProposalParams
REALITY_SINGLE_SELECT_TEMPLATE
questionTimeout
arbitrator
realitio
wrapped1155Factory
conditionalTokens
collateralToken
realityProxy
proposals
proposal
Events
NewProposal
Functions
constructor
createProposal
Return Values
Logic
- Ask reality questions.
- Prepare condition.
- Create new erc20 outcome tokens.
- Initialize a new proposal contract.
createNewProposalParams
Return Values
getOutcomesAndTokens
Return Values
encodeRealityQuestion
Return Values
askRealityQuestion
Return Values
prepareCondition
Return Values
Pre-condition
- Reality question asked and return
questionsId.
- It will check if there is a prepared condition on
ConditionalTokens, and callconditionalTokens.prepareCondition()if there isn’t any.
deployERC20Positions
Return Values
Logic
- It will call
wrapped1155Factory.requireWrapped1155to create an ERC20 token contract for each position. The new tokens addresses and data are saved inProposalcontract.
toString31
Return Values