Seer documentation
  • Overview
    • 📘 What is Seer?
    • 📚 Glossary
  • Getting Started
    • 💡 Wallet and network
    • 💰 Deposit tokens
      • On Ethereum
        • Deposit DAI
        • Deposit sDAI
      • On Gnosis
        • Deposit xDAI
        • Deposit wxDAI or sDAI
    • 🧭 Navigate Our Site
      • Create a market
      • Verify market
      • Mint, merge, redeem outcome tokens
      • Buy, sell outcome tokens
      • Report answer
      • Raise a dispute
      • Resolve market
      • Provide Liquidity
      • Conditional Markets
      • Futarchy Markets
  • Developers
    • 📝 Intro
    • 🔄 Diagrams
      • Seer overall interaction
      • Create Market
      • Split, Merge, Redeem
      • Question and Resolve
    • 🔗 Interact with Seer
      • Create a market
      • Resolve a market
      • Split, Merge and Redeem
      • Market example
      • Conditional market
      • Futarchy market
    • 📜 Contracts
      • Core
        • MarketFactory
        • Market
        • MarketView
        • Router
        • GnosisRouter
        • MainnetRouter
        • RealityProxy
        • Interfaces
      • Futarchy (test)
        • FutarchyFactory
        • FutarchyProposal
        • FutarchyRouter
        • FutarchyRealityProxy
      • Token
        • Seer
      • Interaction
        • 1155-to-20
          • Wrapped1155Factory
        • conditional-tokens
          • ERC1155
            • ERC1155
            • ERC1155TokenReceiver
            • IERC1155
            • IERC1155TokenReceiver
          • ConditionalTokens
          • CTHelpers
        • cross-chain-realitio-proxy
          • dependencies
            • IAMB
            • RealitioInterface
          • ArbitrationProxyInterfaces
          • RealitioForeignArbitrationProxyWithAppeals
          • RealitioHomeArbitrationProxy
        • reality
          • RealityETH-3.0
        • sDAI-on-Gnosis
          • interfaces
            • IBridgeInterestReceiver
            • IWXDAI
          • periphery
            • SavingsXDaiAdapter
          • SavingsXDai
      • Deployed contracts
    • 🌐 Subgraph
      • Query Examples
      • GraphQl Query
        • Market
        • Swapr
        • Curate
      • GraphQL Schema
      • Subgraph ID
  • OTHER
    • 🔍 Audit Reports
Powered by GitBook
On this page
  • Variables
  • conditionalTokens
  • realitio
  • Functions
  • constructor
  • resolve
  1. Developers
  2. 📜 Contracts
  3. Futarchy (test)

FutarchyRealityProxy

Contract used as a Reality Oracle. Is called to resolve a proposal based on the answer provided.

Variables

conditionalTokens

contract IConditionalTokens conditionalTokens

Conditional Tokens contract.

realitio

contract IRealityETH_v3_0 realitio

Reality.eth contract.

Functions

constructor

constructor(contract IConditionalTokens _conditionalTokens, contract IRealityETH_v3_0 _realitio) public

Constructor.

Parameters

Name
Type
Description

_conditionalTokens

contract IConditionalTokens

Conditional Tokens contract address.

_realitio

contract IRealityETH_v3_0

Reality.eth contract address.

resolve

function resolve(contract FutarchyProposal proposal) external

Resolves the specified proposal.

Parameters

Name
Type
Description

proposal

contract FutarchyProposal

Proposal to resolve. UNTRUSTED.

Pre-condition

This proposal reality questions must be finalized. If there is a reopened question, that question need to be finalized instead.

Logic

  1. If the answer is 0, the proposal is accepted.

  2. For any other value (including if the question resolves to INVALID), the proposal is rejected.

PreviousFutarchyRouterNextToken

Last updated 3 months ago