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
  • Events
  • LogNewAnswer
  • LogNewTemplate
  • LogNewQuestion
  • Functions
  • notifyOfArbitrationRequest
  • cancelArbitration
  • assignWinnerAndSubmitAnswerByArbitrator
  1. Developers
  2. 📜 Contracts
  3. Interaction
  4. cross-chain-realitio-proxy
  5. dependencies

RealitioInterface

Events

LogNewAnswer

event LogNewAnswer(bytes32 answer, bytes32 question_id, bytes32 history_hash, address user, uint256 bond, uint256 ts, bool is_commitment)

LogNewTemplate

event LogNewTemplate(uint256 template_id, address user, string question_text)

LogNewQuestion

event LogNewQuestion(bytes32 question_id, address user, uint256 template_id, string question, bytes32 content_hash, address arbitrator, uint32 timeout, uint32 opening_ts, uint256 nonce, uint256 created)

Functions

notifyOfArbitrationRequest

function notifyOfArbitrationRequest(bytes32 question_id, address requester, uint256 max_previous) external

Notify the contract that the arbitrator has been paid for a question, freezing it pending their decision.

The arbitrator contract is trusted to only call this if they've been paid, and tell us who paid them.

Parameters

Name
Type
Description

question_id

bytes32

The ID of the question.

requester

address

The account that requested arbitration.

max_previous

uint256

If specified, reverts if a bond higher than this was submitted after you sent your transaction.

cancelArbitration

function cancelArbitration(bytes32 question_id) external

Cancel a previously-requested arbitration and extend the timeout

Useful when doing arbitration across chains that can't be requested atomically

Parameters

Name
Type
Description

question_id

bytes32

The ID of the question

assignWinnerAndSubmitAnswerByArbitrator

function assignWinnerAndSubmitAnswerByArbitrator(bytes32 question_id, bytes32 answer, address payee_if_wrong, bytes32 last_history_hash, bytes32 last_answer_or_commitment_id, address last_answerer) external

Submit the answer for a question, for use by the arbitrator, working out the appropriate winner based on the last answer details.

Doesn't require (or allow) a bond.

Parameters

Name
Type
Description

question_id

bytes32

The ID of the question

answer

bytes32

The answer, encoded into bytes32

payee_if_wrong

address

The account to be credited as winner if the last answer given is wrong, usually the account that paid the arbitrator

last_history_hash

bytes32

The history hash before the final one

last_answer_or_commitment_id

bytes32

The last answer given, or the commitment ID if it was a commitment.

last_answerer

address

The address that supplied the last answer

PreviousIAMBNextArbitrationProxyInterfaces

Last updated 8 months ago