Reporting

Contracts

AffiliateValidator

addOperator(address _operator)external

removeOperator(address _operator)external

addKey(bytes32 _key, uint256 _salt, bytes32 _r, bytes32 _s, uint8 _v)external

getKeyHash(bytes32 _key, address _account, uint256 _salt) → bytes32public

isValidSignature(bytes32 _hash, bytes32 _r, bytes32 _s, uint8 _v) → boolpublic

validateReference(address _account, address _referrer) → boolexternal

onTransferOwnership(address, address)internal

IAffiliateValidator

validateReference(address _account, address _referrer) → boolexternal

IOwnable

getOwner() → addresspublic

transferOwnership(address _newOwner) → boolpublic

Ownable

constructor()public

The Ownable constructor sets the original owner of the contract to the sender account.

getOwner() → addresspublic

transferOwnership(address _newOwner) → boolpublic

Allows the current owner to transfer control of the contract to a newOwner.

onTransferOwnership(address, address)internal

Affiliates

createAffiliateValidator() → contract AffiliateValidatorpublic

setFingerprint(bytes32 _fingerprint)external

setReferrer(address _referrer)external

getAccountFingerprint(address _account) → bytes32external

getReferrer(address _account) → addressexternal

getAndValidateReferrer(address _account, contract IAffiliateValidator _affiliateValidator) → addressexternal

BaseReportingParticipant

liquidateLosing()public

fork()public

getSize() → uint256public

getPayoutDistributionHash() → bytes32public

getMarket() → contract IMarketpublic

isDisavowed() → boolpublic

getPayoutNumerator(uint256 _outcome) → uint256public

getPayoutNumerators() → uint256[]public

DisputeCrowdsourcer

initialize(contract IAugur _augur, contract IMarket _market, uint256 _size, bytes32 _payoutDistributionHash, uint256[] _payoutNumerators, uint256 _crowdsourcerGeneration)public

redeem(address _redeemer) → boolpublic

contribute(address _participant, uint256 _amount, bool _overload) → uint256public

forkAndRedeem() → boolpublic

getRemainingToFill() → uint256public

setSize(uint256 _size)public

getStake() → uint256public

onTokenTransfer(address _from, address _to, uint256 _value)internal

onMint(address _target, uint256 _amount)internal

onBurn(address _target, uint256 _amount)internal

getReputationToken() → contract IReputationTokenpublic

correctSize() → boolpublic

getCrowdsourcerGeneration() → uint256public

ERC20

balanceOf(address _account) → uint256public

See {IERC20-balanceOf}.

transfer(address _recipient, uint256 _amount) → boolpublic

See {IERC20-transfer}.

Requirements:

  • recipient cannot be the zero address.
  • the caller must have a balance of at least amount.

allowance(address _owner, address _spender) → uint256public

See {IERC20-allowance}.

approve(address _spender, uint256 _amount) → boolpublic

See {IERC20-approve}.

Requirements:

  • spender cannot be the zero address.

transferFrom(address _sender, address _recipient, uint256 _amount) → boolpublic

See {IERC20-transferFrom}.

Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20};

Requirements:

  • sender and recipient cannot be the zero address.
  • sender must have a balance of at least amount.
  • the caller must have allowance for sender's tokens of at least amount.

increaseAllowance(address _spender, uint256 _addedValue) → boolpublic

Atomically increases the allowance granted to spender by the caller.

This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}.

Emits an {Approval} event indicating the updated allowance.

Requirements:

  • spender cannot be the zero address.

decreaseAllowance(address _spender, uint256 _subtractedValue) → boolpublic

Atomically decreases the allowance granted to spender by the caller.

This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}.

Emits an {Approval} event indicating the updated allowance.

Requirements:

  • spender cannot be the zero address.
  • spender must have allowance for the caller of at least subtractedValue.

_transfer(address _sender, address _recipient, uint256 _amount)internal

Moves tokens amount from sender to recipient.

This is internal function is equivalent to {transfer}, and can be used to e.g. implement automatic token fees, slashing mechanisms, etc.

Emits a {Transfer} event.

Requirements:

  • sender cannot be the zero address.
  • recipient cannot be the zero address.
  • sender must have a balance of at least amount.

_mint(address _account, uint256 _amount)internal

Creates amount tokens and assigns them to account, increasing the total supply.

Emits a {Transfer} event with from set to the zero address.

Requirements

  • to cannot be the zero address.

_burn(address _account, uint256 _amount)internal

Destroys amount tokens from account, reducing the total supply.

Emits a {Transfer} event with to set to the zero address.

Requirements

  • account cannot be the zero address.
  • account must have at least amount tokens.

_approve(address _owner, address _spender, uint256 _amount)internal

Sets amount as the allowance of spender over the owners tokens.

This is internal function is equivalent to approve, and can be used to e.g. set automatic allowances for certain subsystems, etc.

Emits an {Approval} event.

Requirements:

  • owner cannot be the zero address.
  • spender cannot be the zero address.

_burnFrom(address _account, uint256 _amount)internal

Destroys amount tokens from account.amount is then deducted from the caller's allowance.

See {_burn} and {_approve}.

onTokenTransfer(address _from, address _to, uint256 _value)internal

IAugur

Functions

createChildUniverse(bytes32 _parentPayoutDistributionHash, uint256[] _parentPayoutNumerators) → contract IUniversepublic

isKnownUniverse(contract IUniverse _universe) → boolpublic

trustedCashTransfer(address _from, address _to, uint256 _amount) → boolpublic

isTrustedSender(address _address) → boolpublic

onCategoricalMarketCreated(uint256 _endTime, string _extraInfo, contract IMarket _market, address _marketCreator, address _designatedReporter, uint256 _feePerCashInAttoCash, bytes32[] _outcomes) → boolpublic

onYesNoMarketCreated(uint256 _endTime, string _extraInfo, contract IMarket _market, address _marketCreator, address _designatedReporter, uint256 _feePerCashInAttoCash) → boolpublic

onScalarMarketCreated(uint256 _endTime, string _extraInfo, contract IMarket _market, address _marketCreator, address _designatedReporter, uint256 _feePerCashInAttoCash, int256[] _prices, uint256 _numTicks) → boolpublic

logInitialReportSubmitted(contract IUniverse _universe, address _reporter, address _market, address _initialReporter, uint256 _amountStaked, bool _isDesignatedReporter, uint256[] _payoutNumerators, string _description, uint256 _nextWindowStartTime, uint256 _nextWindowEndTime) → boolpublic

disputeCrowdsourcerCreated(contract IUniverse _universe, address _market, address _disputeCrowdsourcer, uint256[] _payoutNumerators, uint256 _size, uint256 _disputeRound) → boolpublic

logDisputeCrowdsourcerContribution(contract IUniverse _universe, address _reporter, address _market, address _disputeCrowdsourcer, uint256 _amountStaked, string description, uint256[] _payoutNumerators, uint256 _currentStake, uint256 _stakeRemaining, uint256 _disputeRound) → boolpublic

logDisputeCrowdsourcerCompleted(contract IUniverse _universe, address _market, address _disputeCrowdsourcer, uint256[] _payoutNumerators, uint256 _nextWindowStartTime, uint256 _nextWindowEndTime, bool _pacingOn, uint256 _totalRepStakedInPayout, uint256 _totalRepStakedInMarket, uint256 _disputeRound) → boolpublic

logInitialReporterRedeemed(contract IUniverse _universe, address _reporter, address _market, uint256 _amountRedeemed, uint256 _repReceived, uint256[] _payoutNumerators) → boolpublic

logDisputeCrowdsourcerRedeemed(contract IUniverse _universe, address _reporter, address _market, uint256 _amountRedeemed, uint256 _repReceived, uint256[] _payoutNumerators) → boolpublic

logMarketFinalized(contract IUniverse _universe, uint256[] _winningPayoutNumerators) → boolpublic

logMarketMigrated(contract IMarket _market, contract IUniverse _originalUniverse) → boolpublic

logReportingParticipantDisavowed(contract IUniverse _universe, contract IMarket _market) → boolpublic

logMarketParticipantsDisavowed(contract IUniverse _universe) → boolpublic

logCompleteSetsPurchased(contract IUniverse _universe, contract IMarket _market, address _account, uint256 _numCompleteSets) → boolpublic

logCompleteSetsSold(contract IUniverse _universe, contract IMarket _market, address _account, uint256 _numCompleteSets, uint256 _fees) → boolpublic

logMarketOIChanged(contract IUniverse _universe, contract IMarket _market) → boolpublic

logTradingProceedsClaimed(contract IUniverse _universe, address _sender, address _market, uint256 _outcome, uint256 _numShares, uint256 _numPayoutTokens, uint256 _fees) → boolpublic

logUniverseForked(contract IMarket _forkingMarket) → boolpublic

logReputationTokensTransferred(contract IUniverse _universe, address _from, address _to, uint256 _value, uint256 _fromBalance, uint256 _toBalance) → boolpublic

logReputationTokensBurned(contract IUniverse _universe, address _target, uint256 _amount, uint256 _totalSupply, uint256 _balance) → boolpublic

logReputationTokensMinted(contract IUniverse _universe, address _target, uint256 _amount, uint256 _totalSupply, uint256 _balance) → boolpublic

logShareTokensBalanceChanged(address _account, contract IMarket _market, uint256 _outcome, uint256 _balance) → boolpublic

logDisputeCrowdsourcerTokensTransferred(contract IUniverse _universe, address _from, address _to, uint256 _value, uint256 _fromBalance, uint256 _toBalance) → boolpublic

logDisputeCrowdsourcerTokensBurned(contract IUniverse _universe, address _target, uint256 _amount, uint256 _totalSupply, uint256 _balance) → boolpublic

logDisputeCrowdsourcerTokensMinted(contract IUniverse _universe, address _target, uint256 _amount, uint256 _totalSupply, uint256 _balance) → boolpublic

logDisputeWindowCreated(contract IDisputeWindow _disputeWindow, uint256 _id, bool _initial) → boolpublic

logParticipationTokensRedeemed(contract IUniverse universe, address _sender, uint256 _attoParticipationTokens, uint256 _feePayoutShare) → boolpublic

logTimestampSet(uint256 _newTimestamp) → boolpublic

logInitialReporterTransferred(contract IUniverse _universe, contract IMarket _market, address _from, address _to) → boolpublic

logMarketTransferred(contract IUniverse _universe, address _from, address _to) → boolpublic

logParticipationTokensTransferred(contract IUniverse _universe, address _from, address _to, uint256 _value, uint256 _fromBalance, uint256 _toBalance) → boolpublic

logParticipationTokensBurned(contract IUniverse _universe, address _target, uint256 _amount, uint256 _totalSupply, uint256 _balance) → boolpublic

logParticipationTokensMinted(contract IUniverse _universe, address _target, uint256 _amount, uint256 _totalSupply, uint256 _balance) → boolpublic

logMarketRepBondTransferred(address _universe, address _from, address _to) → boolpublic

logWarpSyncDataUpdated(address _universe, uint256 _warpSyncHash, uint256 _marketEndTime) → boolpublic

isKnownFeeSender(address _feeSender) → boolpublic

lookup(bytes32 _key) → addresspublic

getTimestamp() → uint256public

getMaximumMarketEndDate() → uint256public

isKnownMarket(contract IMarket _market) → boolpublic

derivePayoutDistributionHash(uint256[] _payoutNumerators, uint256 _numTicks, uint256 numOutcomes) → bytes32public

logValidityBondChanged(uint256 _validityBond) → boolpublic

logDesignatedReportStakeChanged(uint256 _designatedReportStake) → boolpublic

logNoShowBondChanged(uint256 _noShowBond) → boolpublic

logReportingFeeChanged(uint256 _reportingFee) → boolpublic

getUniverseForkIndex(contract IUniverse _universe) → uint256public

getMarketType(contract IMarket _market) → enum IMarket.MarketTypepublic

getMarketOutcomes(contract IMarket _market) → bytes32[]public

IAugurTrading

lookup(bytes32 _key) → addresspublic

logProfitLossChanged(contract IMarket _market, address _account, uint256 _outcome, int256 _netPosition, uint256 _avgPrice, int256 _realizedProfit, int256 _frozenFunds, int256 _realizedCost) → boolpublic

logOrderCreated(contract IUniverse _universe, bytes32 _orderId, bytes32 _tradeGroupId) → boolpublic

logOrderCanceled(contract IUniverse _universe, contract IMarket _market, address _creator, uint256 _tokenRefund, uint256 _sharesRefund, bytes32 _orderId) → boolpublic

logOrderFilled(contract IUniverse _universe, address _creator, address _filler, uint256 _price, uint256 _fees, uint256 _amountFilled, bytes32 _orderId, bytes32 _tradeGroupId) → boolpublic

logMarketVolumeChanged(contract IUniverse _universe, address _market, uint256 _volume, uint256[] _outcomeVolumes, uint256 _totalTrades) → boolpublic

logZeroXOrderFilled(contract IUniverse _universe, contract IMarket _market, bytes32 _orderHash, bytes32 _tradeGroupId, uint8 _orderType, address[] _addressData, uint256[] _uint256Data) → boolpublic

logZeroXOrderCanceled(address _universe, address _market, address _account, uint256 _outcome, uint256 _price, uint256 _amount, uint8 _type, bytes32 _orderHash)public

ICash

faucet(uint256 _amount) → boolpublic

IDisputeCrowdsourcer

initialize(contract IAugur _augur, contract IMarket market, uint256 _size, bytes32 _payoutDistributionHash, uint256[] _payoutNumerators, uint256 _crowdsourcerGeneration)public

contribute(address _participant, uint256 _amount, bool _overload) → uint256public

setSize(uint256 _size)public

getRemainingToFill() → uint256public

correctSize() → boolpublic

getCrowdsourcerGeneration() → uint256public

IDisputeWindow

invalidMarketsTotal() → uint256external

validityBondTotal() → uint256external

incorrectDesignatedReportTotal() → uint256external

initialReportBondTotal() → uint256external

designatedReportNoShowsTotal() → uint256external

designatedReporterNoShowBondTotal() → uint256external

initialize(contract IAugur _augur, contract IUniverse _universe, uint256 _disputeWindowId, bool _participationTokensEnabled, uint256 _duration, uint256 _startTime)public

trustedBuy(address _buyer, uint256 _attotokens) → boolpublic

getUniverse() → contract IUniversepublic

getReputationToken() → contract IReputationTokenpublic

getStartTime() → uint256public

getEndTime() → uint256public

getWindowId() → uint256public

isActive() → boolpublic

isOver() → boolpublic

onMarketFinalized()public

redeem(address _account) → boolpublic

IERC1155

safeTransferFrom(address from, address to, uint256 id, uint256 value, bytes data)external

safeBatchTransferFrom(address from, address to, uint256[] ids, uint256[] values, bytes data)external

setApprovalForAll(address operator, bool approved)external

isApprovedForAll(address owner, address operator) → boolexternal

balanceOf(address owner, uint256 id) → uint256external

totalSupply(uint256 id) → uint256external

balanceOfBatch(address[] owners, uint256[] ids) → uint256[]external

TransferSingle(address operator, address from, address to, uint256 id, uint256 value)

Either TransferSingle or TransferBatch MUST emit when tokens are transferred, including zero value transfers as well as minting or burning. Operator will always be msg.sender. Either event from address 0x0 signifies a minting operation. An event to address 0x0 signifies a burning or melting operation. The total value transferred from address 0x0 minus the total value transferred to 0x0 may be used by clients and exchanges to be added to the "circulating supply" for a given token ID. To define a token ID with no initial balance, the contract SHOULD emit the TransferSingle event from 0x0 to 0x0, with the token creator as _operator.

TransferBatch(address operator, address from, address to, uint256[] ids, uint256[] values)

Either TransferSingle or TransferBatch MUST emit when tokens are transferred, including zero value transfers as well as minting or burning. Operator will always be msg.sender. Either event from address 0x0 signifies a minting operation. An event to address 0x0 signifies a burning or melting operation. The total value transferred from address 0x0 minus the total value transferred to 0x0 may be used by clients and exchanges to be added to the "circulating supply" for a given token ID. To define multiple token IDs with no initial balance, this SHOULD emit the TransferBatch event from 0x0 to 0x0, with the token creator as _operator.

ApprovalForAll(address owner, address operator, bool approved)

MUST emit when an approval is updated.

URI(string value, uint256 id)

MUST emit when the URI is updated for a token ID. URIs are defined in RFC 3986. The URI MUST point a JSON file that conforms to the "ERC-1155 Metadata JSON Schema".

IERC20

totalSupply() → uint256external

balanceOf(address owner) → uint256public

transfer(address to, uint256 amount) → boolpublic

transferFrom(address from, address to, uint256 amount) → boolpublic

approve(address spender, uint256 amount) → boolpublic

allowance(address owner, address spender) → uint256public

Transfer(address from, address to, uint256 value)

Approval(address owner, address spender, uint256 value)

IInitialReporter

initialize(contract IAugur _augur, contract IMarket _market, address _designatedReporter)public

report(address _reporter, bytes32 _payoutDistributionHash, uint256[] _payoutNumerators, uint256 _initialReportStake)public

designatedReporterShowed() → boolpublic

initialReporterWasCorrect() → boolpublic

getDesignatedReporter() → addresspublic

getReportTimestamp() → uint256public

migrateToNewUniverse(address _designatedReporter)public

returnRepFromDisavow()public

IMarket

initialize(contract IAugur _augur, contract IUniverse _universe, uint256 _endTime, uint256 _feePerCashInAttoCash, contract IAffiliateValidator _affiliateValidator, uint256 _affiliateFeeDivisor, address _designatedReporterAddress, address _creator, uint256 _numOutcomes, uint256 _numTicks)public

derivePayoutDistributionHash(uint256[] _payoutNumerators) → bytes32public

doInitialReport(uint256[] _payoutNumerators, string _description, uint256 _additionalStake) → boolpublic

getUniverse() → contract IUniversepublic

getDisputeWindow() → contract IDisputeWindowpublic

getNumberOfOutcomes() → uint256public

getNumTicks() → uint256public

getMarketCreatorSettlementFeeDivisor() → uint256public

getForkingMarket() → contract IMarketpublic

getEndTime() → uint256public

getWinningPayoutDistributionHash() → bytes32public

getWinningPayoutNumerator(uint256 _outcome) → uint256public

getWinningReportingParticipant() → contract IReportingParticipantpublic

getReputationToken() → contract IV2ReputationTokenpublic

getFinalizationTime() → uint256public

getInitialReporter() → contract IInitialReporterpublic

getDesignatedReportingEndTime() → uint256public

getValidityBondAttoCash() → uint256public

affiliateFeeDivisor() → uint256external

getNumParticipants() → uint256public

getDisputePacingOn() → boolpublic

deriveMarketCreatorFeeAmount(uint256 _amount) → uint256public

recordMarketCreatorFees(uint256 _marketCreatorFees, address _sourceAccount, bytes32 _fingerprint) → boolpublic

isContainerForReportingParticipant(contract IReportingParticipant _reportingParticipant) → boolpublic

isFinalizedAsInvalid() → boolpublic

finalize() → boolpublic

isFinalized() → boolpublic

getOpenInterest() → uint256public

IOrders

saveOrder(uint256[] _uints, bytes32[] _bytes32s, enum Order.Types _type, contract IMarket _market, address _sender) → bytes32external

removeOrder(bytes32 _orderId) → boolexternal

getMarket(bytes32 _orderId) → contract IMarketpublic

getOrderType(bytes32 _orderId) → enum Order.Typespublic

getOutcome(bytes32 _orderId) → uint256public

getAmount(bytes32 _orderId) → uint256public

getPrice(bytes32 _orderId) → uint256public

getOrderCreator(bytes32 _orderId) → addresspublic

getOrderSharesEscrowed(bytes32 _orderId) → uint256public

getOrderMoneyEscrowed(bytes32 _orderId) → uint256public

getOrderDataForCancel(bytes32 _orderId) → uint256,uint256,enum Order.Types,contract IMarket,uint256,addresspublic

getOrderDataForLogs(bytes32 _orderId) → enum Order.Types,address[],uint256[]public

getBetterOrderId(bytes32 _orderId) → bytes32public

getWorseOrderId(bytes32 _orderId) → bytes32public

getBestOrderId(enum Order.Types _type, contract IMarket _market, uint256 _outcome) → bytes32public

getWorstOrderId(enum Order.Types _type, contract IMarket _market, uint256 _outcome) → bytes32public

getLastOutcomePrice(contract IMarket _market, uint256 _outcome) → uint256public

getOrderId(enum Order.Types _type, contract IMarket _market, uint256 _amount, uint256 _price, address _sender, uint256 _blockNumber, uint256 _outcome, uint256 _moneyEscrowed, uint256 _sharesEscrowed) → bytes32public

getTotalEscrowed(contract IMarket _market) → uint256public

isBetterPrice(enum Order.Types _type, uint256 _price, bytes32 _orderId) → boolpublic

isWorsePrice(enum Order.Types _type, uint256 _price, bytes32 _orderId) → boolpublic

assertIsNotBetterPrice(enum Order.Types _type, uint256 _price, bytes32 _betterOrderId) → boolpublic

assertIsNotWorsePrice(enum Order.Types _type, uint256 _price, bytes32 _worseOrderId) → boolpublic

recordFillOrder(bytes32 _orderId, uint256 _sharesFilled, uint256 _tokensFilled, uint256 _fill) → boolexternal

setPrice(contract IMarket _market, uint256 _outcome, uint256 _price) → boolexternal

IReportingParticipant

getStake() → uint256public

getPayoutDistributionHash() → bytes32public

liquidateLosing()public

redeem(address _redeemer) → boolpublic

isDisavowed() → boolpublic

getPayoutNumerator(uint256 _outcome) → uint256public

getPayoutNumerators() → uint256[]public

getMarket() → contract IMarketpublic

getSize() → uint256public

IReputationToken

migrateOutByPayout(uint256[] _payoutNumerators, uint256 _attotokens) → boolpublic

migrateIn(address _reporter, uint256 _attotokens) → boolpublic

trustedReportingParticipantTransfer(address _source, address _destination, uint256 _attotokens) → boolpublic

trustedMarketTransfer(address _source, address _destination, uint256 _attotokens) → boolpublic

trustedUniverseTransfer(address _source, address _destination, uint256 _attotokens) → boolpublic

trustedDisputeWindowTransfer(address _source, address _destination, uint256 _attotokens) → boolpublic

getUniverse() → contract IUniversepublic

getTotalMigrated() → uint256public

getTotalTheoreticalSupply() → uint256public

mintForReportingParticipant(uint256 _amountMigrated) → boolpublic

IShareToken

FunctionsEvents

initialize(contract IAugur _augur)external

initializeMarket(contract IMarket _market, uint256 _numOutcomes, uint256 _numTicks)public

unsafeTransferFrom(address _from, address _to, uint256 _id, uint256 _value)public

unsafeBatchTransferFrom(address _from, address _to, uint256[] _ids, uint256[] _values)public

claimTradingProceeds(contract IMarket _market, address _shareHolder, bytes32 _fingerprint) → uint256[]external

getMarket(uint256 _tokenId) → contract IMarketexternal

getOutcome(uint256 _tokenId) → uint256external

getTokenId(contract IMarket _market, uint256 _outcome) → uint256public

getTokenIds(contract IMarket _market, uint256[] _outcomes) → uint256[]public

buyCompleteSets(contract IMarket _market, address _account, uint256 _amount) → boolexternal

buyCompleteSetsForTrade(contract IMarket _market, uint256 _amount, uint256 _longOutcome, address _longRecipient, address _shortRecipient) → boolexternal

sellCompleteSets(contract IMarket _market, address _holder, address _recipient, uint256 _amount, bytes32 _fingerprint) → uint256,uint256external

sellCompleteSetsForTrade(contract IMarket _market, uint256 _outcome, uint256 _amount, address _shortParticipant, address _longParticipant, address _shortRecipient, address _longRecipient, uint256 _price, address _sourceAccount, bytes32 _fingerprint) → uint256,uint256external

totalSupplyForMarketOutcome(contract IMarket _market, uint256 _outcome) → uint256public

balanceOfMarketOutcome(contract IMarket _market, uint256 _outcome, address _account) → uint256public

lowestBalanceOfMarketOutcomes(contract IMarket _market, uint256[] _outcomes, address _account) → uint256public

ITyped

Functions

getTypeName() → bytes32public

IUniswapV2Pair

name() → stringexternal

symbol() → stringexternal

decimals() → uint8external

totalSupply() → uint256external

balanceOf(address owner) → uint256external

allowance(address owner, address spender) → uint256external

approve(address spender, uint256 value) → boolexternal

transfer(address to, uint256 value) → boolexternal

transferFrom(address from, address to, uint256 value) → boolexternal

DOMAIN_SEPARATOR() → bytes32external

PERMIT_TYPEHASH() → bytes32external

nonces(address owner) → uint256external

permit(address owner, address spender, uint256 value, uint256 deadline, uint8 v, bytes32 r, bytes32 s)external

MINIMUM_LIQUIDITY() → uint256external

factory() → addressexternal

token0() → addressexternal

token1() → addressexternal

getReserves() → uint112,uint112,uint32external

price0CumulativeLast() → uint256external

price1CumulativeLast() → uint256external

kLast() → uint256external

mint(address to) → uint256external

burn(address to) → uint256,uint256external

swap(uint256 amount0Out, uint256 amount1Out, address to, bytes data)external

skim(address to)external

sync()external

initialize(address, address)external

Approval(address owner, address spender, uint256 value)

Transfer(address from, address to, uint256 value)

Mint(address sender, uint256 amount0, uint256 amount1)

Burn(address sender, uint256 amount0, uint256 amount1, address to)

Swap(address sender, uint256 amount0In, uint256 amount1In, uint256 amount0Out, uint256 amount1Out, address to)

Sync(uint112 reserve0, uint112 reserve1)

IUniverse

Functions

creationTime() → uint256external

marketBalance(address) → uint256external

fork() → boolpublic

updateForkValues() → boolpublic

getParentUniverse() → contract IUniversepublic

createChildUniverse(uint256[] _parentPayoutNumerators) → contract IUniversepublic

getChildUniverse(bytes32 _parentPayoutDistributionHash) → contract IUniversepublic

getReputationToken() → contract IV2ReputationTokenpublic

getForkingMarket() → contract IMarketpublic

getForkEndTime() → uint256public

getForkReputationGoal() → uint256public

getParentPayoutDistributionHash() → bytes32public

getDisputeRoundDurationInSeconds(bool _initial) → uint256public

getOrCreateDisputeWindowByTimestamp(uint256 _timestamp, bool _initial) → contract IDisputeWindowpublic

getOrCreateCurrentDisputeWindow(bool _initial) → contract IDisputeWindowpublic

getOrCreateNextDisputeWindow(bool _initial) → contract IDisputeWindowpublic

getOrCreatePreviousDisputeWindow(bool _initial) → contract IDisputeWindowpublic

getOpenInterestInAttoCash() → uint256public

getTargetRepMarketCapInAttoCash() → uint256public

getOrCacheValidityBond() → uint256public

getOrCacheDesignatedReportStake() → uint256public

getOrCacheDesignatedReportNoShowBond() → uint256public

getOrCacheMarketRepBond() → uint256public

getOrCacheReportingFeeDivisor() → uint256public

getDisputeThresholdForFork() → uint256public

getDisputeThresholdForDisputePacing() → uint256public

getInitialReportMinValue() → uint256public

getPayoutNumerators() → uint256[]public

getReportingFeeDivisor() → uint256public

getPayoutNumerator(uint256 _outcome) → uint256public

getWinningChildPayoutNumerator(uint256 _outcome) → uint256public

isOpenInterestCash(address) → boolpublic

isForkingMarket() → boolpublic

getCurrentDisputeWindow(bool _initial) → contract IDisputeWindowpublic

getDisputeWindowStartTimeAndDuration(uint256 _timestamp, bool _initial) → uint256,uint256public

isParentOf(contract IUniverse _shadyChild) → boolpublic

updateTentativeWinningChildUniverse(bytes32 _parentPayoutDistributionHash) → boolpublic

isContainerForDisputeWindow(contract IDisputeWindow _shadyTarget) → boolpublic

isContainerForMarket(contract IMarket _shadyTarget) → boolpublic

isContainerForReportingParticipant(contract IReportingParticipant _reportingParticipant) → boolpublic

migrateMarketOut(contract IUniverse _destinationUniverse) → boolpublic

migrateMarketIn(contract IMarket _market, uint256 _cashBalance, uint256 _marketOI) → boolpublic

decrementOpenInterest(uint256 _amount) → boolpublic

decrementOpenInterestFromMarket(contract IMarket _market) → boolpublic

incrementOpenInterest(uint256 _amount) → boolpublic

getWinningChildUniverse() → contract IUniversepublic

isForking() → boolpublic

deposit(address _sender, uint256 _amount, address _market) → boolpublic

withdraw(address _recipient, uint256 _amount, address _market) → boolpublic

pokeRepMarketCapInAttoCash() → uint256public

createScalarMarket(uint256 _endTime, uint256 _feePerCashInAttoCash, contract IAffiliateValidator _affiliateValidator, uint256 _affiliateFeeDivisor, address _designatedReporterAddress, int256[] _prices, uint256 _numTicks, string _extraInfo) → contract IMarketpublic

createYesNoMarket(uint256 _endTime, uint256 _feePerCashInAttoCash, contract IAffiliateValidator _affiliateValidator, uint256 _affiliateFeeDivisor, address _designatedReporterAddress, string _extraInfo) → contract IMarketpublic

createCategoricalMarket(uint256 _endTime, uint256 _feePerCashInAttoCash, contract IAffiliateValidator _affiliateValidator, uint256 _affiliateFeeDivisor, address _designatedReporterAddress, bytes32[] _outcomes, string _extraInfo) → contract IMarketpublic

runPeriodicals() → boolexternal

IV2ReputationToken

parentUniverse() → contract IUniverseexternal

burnForMarket(uint256 _amountToBurn) → boolpublic

mintForWarpSync(uint256 _amountToMint, address _target) → boolpublic

getLegacyRepToken() → contract IERC20public

symbol() → stringpublic

Initializable

endInitialization()internal

getInitialized() → boolpublic

Order

create(contract IAugur _augur, contract IAugurTrading _augurTrading, address _creator, uint256 _outcome, enum Order.Types _type, uint256 _attoshares, uint256 _price, contract IMarket _market, bytes32 _betterOrderId, bytes32 _worseOrderId) → struct Order.Datainternal

getOrderId(struct Order.Data _orderData, contract IOrders _orders) → bytes32internal

calculateOrderId(enum Order.Types _type, contract IMarket _market, uint256 _amount, uint256 _price, address _sender, uint256 _blockNumber, uint256 _outcome, uint256 _moneyEscrowed, uint256 _sharesEscrowed) → bytes32internal

getOrderTradingTypeFromMakerDirection(enum Order.TradeDirections _creatorDirection) → enum Order.Typesinternal

getOrderTradingTypeFromFillerDirection(enum Order.TradeDirections _fillerDirection) → enum Order.Typesinternal

saveOrder(struct Order.Data _orderData, bytes32 _tradeGroupId, contract IOrders _orders) → bytes32internal

SafeMathUint256

mul(uint256 a, uint256 b) → uint256internal

div(uint256 a, uint256 b) → uint256internal

sub(uint256 a, uint256 b) → uint256internal

subS(uint256 a, uint256 b, string message) → uint256internal

add(uint256 a, uint256 b) → uint256internal

min(uint256 a, uint256 b) → uint256internal

max(uint256 a, uint256 b) → uint256internal

sqrt(uint256 y) → uint256internal

getUint256Min() → uint256internal

getUint256Max() → uint256internal

isMultipleOf(uint256 a, uint256 b) → boolinternal

fxpMul(uint256 a, uint256 b, uint256 base) → uint256internal

fxpDiv(uint256 a, uint256 b, uint256 base) → uint256internal

VariableSupplyToken

mint(address _target, uint256 _amount) → boolinternal

burn(address _target, uint256 _amount) → boolinternal

onMint(address, uint256)internal

onBurn(address, uint256)internal

CloneFactory

createClone(address target) → addressinternal

DisputeWindow

FunctionsEvents

initialize(contract IAugur _augur, contract IUniverse _universe, uint256 _disputeWindowId, bool _participationTokensEnabled, uint256 _duration, uint256 _startTime)public

onMarketFinalized()public

buy(uint256 _attotokens) → boolpublic

trustedBuy(address _buyer, uint256 _attotokens) → boolpublic

redeem(address _account) → boolpublic

getTypeName() → bytes32public

getUniverse() → contract IUniversepublic

getReputationToken() → contract IReputationTokenpublic

getStartTime() → uint256public

getEndTime() → uint256public

getWindowId() → uint256public

isActive() → boolpublic

isOver() → boolpublic

onTokenTransfer(address _from, address _to, uint256 _value)internal

onMint(address _target, uint256 _amount)internal

onBurn(address _target, uint256 _amount)internal

IMarketFactory

createMarket(contract IAugur _augur, uint256 _endTime, uint256 _feePerCashInAttoCash, contract IAffiliateValidator _affiliateValidator, uint256 _affiliateFeeDivisor, address _designatedReporterAddress, address _sender, uint256 _numOutcomes, uint256 _numTicks) → contract IMarketpublic

MarketFactory

createMarket(contract IAugur _augur, uint256 _endTime, uint256 _feePerCashInAttoCash, contract IAffiliateValidator _affiliateValidator, uint256 _affiliateFeeDivisor, address _designatedReporterAddress, address _sender, uint256 _numOutcomes, uint256 _numTicks) → contract IMarketpublic

InitialReporter

initialize(contract IAugur _augur, contract IMarket _market, address _designatedReporter)public

redeem(address) → boolpublic

The address argument is ignored. There is only ever one owner of this bond, but the signature needs to match Dispute Crowdsourcer's redeem for code simplicity

report(address _reporter, bytes32 _payoutDistributionHash, uint256[] _payoutNumerators, uint256 _initialReportStake)public

returnRepFromDisavow()public

migrateToNewUniverse(address _designatedReporter)public

forkAndRedeem() → boolpublic

getStake() → uint256public

getDesignatedReporter() → addresspublic

getReportTimestamp() → uint256public

designatedReporterShowed() → boolpublic

getReputationToken() → contract IReputationTokenpublic

initialReporterWasCorrect() → boolpublic

onTransferOwnership(address _owner, address _newOwner)internal

IAffiliates

setFingerprint(bytes32 _fingerprint)external

setReferrer(address _referrer)external

getAccountFingerprint(address _account) → bytes32external

getReferrer(address _account) → addressexternal

getAndValidateReferrer(address _account, contract IAffiliateValidator affiliateValidator) → addressexternal

affiliateValidators(address _affiliateValidator) → boolexternal

IDisputeCrowdsourcerFactory

createDisputeCrowdsourcer(contract IAugur _augur, uint256 _size, bytes32 _payoutDistributionHash, uint256[] _payoutNumerators, uint256 _crowdsourcerGeneration) → contract IDisputeCrowdsourcerpublic

IWarpSync

markets(address _universe) → contract IMarketexternal

notifyMarketFinalized()public

InitialReporterFactory

createInitialReporter(contract IAugur _augur, address _designatedReporter) → contract IInitialReporterpublic

Market

Functions

initialize(contract IAugur _augur, contract IUniverse _universe, uint256 _endTime, uint256 _feePerCashInAttoCash, contract IAffiliateValidator _affiliateValidator, uint256 _affiliateFeeDivisor, address _designatedReporterAddress, address _creator, uint256 _numOutcomes, uint256 _numTicks)public

doInitialReport(uint256[] _payoutNumerators, string _description, uint256 _additionalStake) → boolpublic

contributeToTentative(uint256[] _payoutNumerators, uint256 _amount, string _description) → boolpublic

This will escrow REP in a bond which will be active immediately if the tentative outcome is successfully disputed.

contribute(uint256[] _payoutNumerators, uint256 _amount, string _description) → boolpublic

internalContribute(address _contributor, bytes32 _payoutDistributionHash, uint256[] _payoutNumerators, uint256 _amount, bool _overload, string _description)internal

finalize() → boolpublic

getMarketCreatorSettlementFeeDivisor() → uint256public

deriveMarketCreatorFeeAmount(uint256 _amount) → uint256public

recordMarketCreatorFees(uint256 _marketCreatorFees, address _sourceAccount, bytes32 _fingerprint) → boolpublic

migrateThroughOneFork(uint256[] _payoutNumerators, string _description) → boolpublic

This will extract a new REP no show bond from whoever calls this and if the market is in the reporting phase will require a report be made as well

disavowCrowdsourcers() → boolpublic

getHighestNonTentativeParticipantStake() → uint256public

getParticipantStake() → uint256public

getStakeInOutcome(bytes32 _payoutDistributionHash) → uint256public

getForkingMarket() → contract IMarketpublic

getWinningPayoutDistributionHash() → bytes32public

isFinalized() → boolpublic

getEndTime() → uint256public

isFinalizedAsInvalid() → boolpublic

getInitialReporter() → contract IInitialReporterpublic

getCrowdsourcer(bytes32 _payoutDistributionHash) → contract IDisputeCrowdsourcerpublic

getWinningReportingParticipant() → contract IReportingParticipantpublic

getWinningPayoutNumerator(uint256 _outcome) → uint256public

getUniverse() → contract IUniversepublic

getDisputeWindow() → contract IDisputeWindowpublic

getFinalizationTime() → uint256public

getReputationToken() → contract IV2ReputationTokenpublic

getNumberOfOutcomes() → uint256public

getNumTicks() → uint256public

getDesignatedReportingEndTime() → uint256public

getNumParticipants() → uint256public

getValidityBondAttoCash() → uint256public

getDisputePacingOn() → boolpublic

derivePayoutDistributionHash(uint256[] _payoutNumerators) → bytes32public

isContainerForReportingParticipant(contract IReportingParticipant _shadyReportingParticipant) → boolpublic

onTransferOwnership(address _owner, address _newOwner)internal

transferRepBondOwnership(address _newOwner) → boolpublic

isForkingMarket() → boolpublic

getWinningChildPayout(uint256 _outcome) → uint256public

getOpenInterest() → uint256public

Reporting

getDesignatedReportingDurationSeconds() → uint256internal

getInitialDisputeRoundDurationSeconds() → uint256internal

getDisputeWindowBufferSeconds() → uint256internal

getDisputeRoundDurationSeconds() → uint256internal

getForkDurationSeconds() → uint256internal

getBaseMarketDurationMaximum() → uint256internal

getUpgradeCadence() → uint256internal

getInitialUpgradeTimestamp() → uint256internal

getDefaultValidityBond() → uint256internal

getValidityBondFloor() → uint256internal

getTargetInvalidMarketsDivisor() → uint256internal

getTargetIncorrectDesignatedReportMarketsDivisor() → uint256internal

getTargetDesignatedReportNoShowsDivisor() → uint256internal

getTargetRepMarketCapMultiplier() → uint256internal

getMaximumReportingFeeDivisor() → uint256internal

getMinimumReportingFeeDivisor() → uint256internal

getDefaultReportingFeeDivisor() → uint256internal

getInitialREPSupply() → uint256internal

getAffiliateSourceCutDivisor() → uint256internal

getForkThresholdDivisor() → uint256internal

getMaximumDisputeRounds() → uint256internal

getMinimumSlowRounds() → uint256internal

IOICash

initialize(contract IAugur _augur, contract IUniverse _universe)external

OICash

initialize(contract IAugur _augur, contract IUniverse _universe)external

deposit(uint256 _amount) → boolexternal

withdraw(uint256 _amount) → boolexternal

payFees(uint256 _feeAmount) → boolexternal

buyCompleteSets(contract IMarket _market, uint256 _amount) → boolexternal

onTokenTransfer(address _from, address _to, uint256 _value)internal

onMint(address _target, uint256 _amount)internal

onBurn(address _target, uint256 _amount)internal

IUniswapV2Factory

feeTo() → addressexternal

feeToSetter() → addressexternal

getPair(address tokenA, address tokenB) → addressexternal

allPairs(uint256) → addressexternal

allPairsLength() → uint256external

createPair(address tokenA, address tokenB) → addressexternal

setFeeTo(address)external

setFeeToSetter(address)external

PairCreated(address token0, address token1, address pair, uint256)

RepOracle

initialize(contract IAugur _augur)public

poke(address _reputationToken) → uint256external

getExchange(address _reputationToken) → contract IUniswapV2Pairpublic

getLastUpdateTimestamp(address _reputationToken) → uint256external

getPriceCumulativeLast(address _reputationToken) → uint256external

getPrice(address _reputationToken) → uint256external

UQ112x112

encode(uint112 y) → uint224internal

uqdiv(uint224 x, uint112 y) → uint224internal

uqmul(uint224 x, uint256 y) → uint256internal

decode(uint256 y) → uint256internal

IRepSymbol

getRepSymbol(address _augur, address _universe) → stringexternal

ReputationToken

FunctionsEvents

constructor(contract IAugur _augur, contract IUniverse _universe, contract IUniverse _parentUniverse)public

symbol() → stringpublic

migrateOutByPayout(uint256[] _payoutNumerators, uint256 _attotokens) → boolpublic

migrateIn(address _reporter, uint256 _attotokens) → boolpublic

mintForReportingParticipant(uint256 _amountMigrated) → boolpublic

mintForWarpSync(uint256 _amountToMint, address _target) → boolpublic

burnForMarket(uint256 _amountToBurn) → boolpublic

trustedUniverseTransfer(address _source, address _destination, uint256 _attotokens) → boolpublic

trustedMarketTransfer(address _source, address _destination, uint256 _attotokens) → boolpublic

trustedReportingParticipantTransfer(address _source, address _destination, uint256 _attotokens) → boolpublic

trustedDisputeWindowTransfer(address _source, address _destination, uint256 _attotokens) → boolpublic

getUniverse() → contract IUniversepublic

getTotalMigrated() → uint256public

getLegacyRepToken() → contract IERC20public

getTotalTheoreticalSupply() → uint256public

onTokenTransfer(address _from, address _to, uint256 _value)internal

onMint(address _target, uint256 _amount)internal

onBurn(address _target, uint256 _amount)internal

migrateFromLegacyReputationToken() → boolpublic

This can only be done for the Genesis Universe in V2. If a fork occurs and the window ends V1 REP is stuck in V1 forever

ContractExists

exists(address _address) → boolinternal

ERC1155

FunctionsEvents

constructor()public

balanceOf(address account, uint256 id) → uint256public

Get the specified address' balance for token with specified ID. Attempting to query the zero account for a balance will result in a revert.

totalSupply(uint256 id) → uint256public

balanceOfBatch(address[] accounts, uint256[] ids) → uint256[]public

Get the balance of multiple account/token pairs. If any of the query accounts is the zero account, this query will revert.

setApprovalForAll(address operator, bool approved)external

Sets or unsets the approval of a given operator.

An operator is allowed to transfer all tokens of the sender on their behalf.

Because an account already has operator privileges for itself, this function will revert if the account attempts to set the approval status for itself.

isApprovedForAll(address account, address operator) → boolpublic

safeTransferFrom(address from, address to, uint256 id, uint256 value, bytes data)external

Transfers value amount of an id from the from address to the to address specified. Caller must be approved to manage the tokens being transferred out of the from account. If to is a smart contract, will call onERC1155Received on to and act appropriately.

_transferFrom(address from, address to, uint256 id, uint256 value, bytes data, bool doAcceptanceCheck)internal

_internalTransferFrom(address from, address to, uint256 id, uint256 value, bytes data, bool doAcceptanceCheck)internal

safeBatchTransferFrom(address from, address to, uint256[] ids, uint256[] values, bytes data)external

Transfers values amount(s) of ids from the from address to the to address specified. Caller must be approved to manage the tokens being transferred out of the from account. If to is a smart contract, will call onERC1155BatchReceived on to and act appropriately.

_batchTransferFrom(address from, address to, uint256[] ids, uint256[] values, bytes data, bool doAcceptanceCheck)internal

_internalBatchTransferFrom(address from, address to, uint256[] ids, uint256[] values, bytes data, bool doAcceptanceCheck)internal

_mint(address to, uint256 id, uint256 value, bytes data, bool doAcceptanceCheck)internal

Internal function to mint an amount of a token with the given ID

_mintBatch(address to, uint256[] ids, uint256[] values, bytes data, bool doAcceptanceCheck)internal

Internal function to batch mint amounts of tokens with the given IDs

_burn(address account, uint256 id, uint256 value, bytes data, bool doAcceptanceCheck)internal

Internal function to burn an amount of a token with the given ID

_burnBatch(address account, uint256[] ids, uint256[] values, bytes data, bool doAcceptanceCheck)internal

Internal function to batch burn an amounts of tokens with the given IDs

_doSafeTransferAcceptanceCheck(address operator, address from, address to, uint256 id, uint256 value, bytes data)internal

_doSafeBatchTransferAcceptanceCheck(address operator, address from, address to, uint256[] ids, uint256[] values, bytes data)internal

onTokenTransfer(uint256 _tokenId, address _from, address _to, uint256 _value)internal

onMint(uint256 _tokenId, address _target, uint256 _amount)internal

onBurn(uint256 _tokenId, address _target, uint256 _amount)internal

ERC165

constructor()internal

supportsInterface(bytes4 interfaceId) → boolexternal

See {IERC165-supportsInterface}.

Time complexity O(1), guaranteed to always use less than 30 000 gas.

_registerInterface(bytes4 interfaceId)internal

Registers the contract as an implementer of the interface defined by interfaceId. Support of the actual ERC165 interface is automatic and registering its interface id is not required.

See {IERC165-supportsInterface}.

Requirements:

  • interfaceId cannot be the ERC165 invalid interface (0xffffffff).

IERC1155Receiver

onERC1155Received(address operator, address from, uint256 id, uint256 value, bytes data) → bytes4external

Handles the receipt of a single ERC1155 token type. This function is called at the end of a safeTransferFrom after the balance has been updated. To accept the transfer, this must return bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)")) (i.e. 0xf23a6e61, or its own function selector).

onERC1155BatchReceived(address operator, address from, uint256[] ids, uint256[] values, bytes data) → bytes4external

Handles the receipt of a multiple ERC1155 token types. This function is called at the end of a safeBatchTransferFrom after the balances have been updated. To accept the transfer(s), this must return bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)")) (i.e. 0xbc197c81, or its own function selector).

IERC165

supportsInterface(bytes4 interfaceId) → boolexternal

Returns true if this contract implements the interface defined by interfaceId. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created.

This function call must use less than 30 000 gas.

ReentrancyGuard

ShareToken

FunctionsEvents

initialize(contract IAugur _augur)external

unsafeTransferFrom(address _from, address _to, uint256 _id, uint256 _value)public

Transfers value amount of an id from the from address to the to address specified. Caller must be approved to manage the tokens being transferred out of the from account. Regardless of if the desintation is a contract or not this will not call onERC1155Received on to

unsafeBatchTransferFrom(address _from, address _to, uint256[] _ids, uint256[] _values)public

Transfers values amount(s) of ids from the from address to the to address specified. Caller must be approved to manage the tokens being transferred out of the from account. Regardless of if the desintation is a contract or not this will not call onERC1155Received on to

initializeMarket(contract IMarket _market, uint256 _numOutcomes, uint256 _numTicks)public

publicBuyCompleteSets(contract IMarket _market, uint256 _amount) → boolexternal

buyCompleteSets(contract IMarket _market, address _account, uint256 _amount) → boolexternal

buyCompleteSetsInternal(contract IMarket _market, address _account, uint256 _amount) → boolinternal

buyCompleteSetsForTrade(contract IMarket _market, uint256 _amount, uint256 _longOutcome, address _longRecipient, address _shortRecipient) → boolexternal

publicSellCompleteSets(contract IMarket _market, uint256 _amount) → uint256,uint256external

sellCompleteSets(contract IMarket _market, address _holder, address _recipient, uint256 _amount, bytes32 _fingerprint) → uint256,uint256external

sellCompleteSetsForTrade(contract IMarket _market, uint256 _outcome, uint256 _amount, address _shortParticipant, address _longParticipant, address _shortRecipient, address _longRecipient, uint256 _price, address _sourceAccount, bytes32 _fingerprint) → uint256,uint256external

claimTradingProceeds(contract IMarket _market, address _shareHolder, bytes32 _fingerprint) → uint256[]external

claimTradingProceedsInternal(contract IMarket _market, address _shareHolder, bytes32 _fingerprint) → uint256[]internal

divideUpWinnings(contract IMarket _market, uint256 _outcome, uint256 _numberOfShares) → uint256,uint256,uint256,uint256public

calculateProceeds(contract IMarket _market, uint256 _outcome, uint256 _numberOfShares) → uint256public

calculateReportingFee(contract IMarket _market, uint256 _amount) → uint256public

calculateCreatorFee(contract IMarket _market, uint256 _amount) → uint256public

getTypeName() → bytes32public

getMarket(uint256 _tokenId) → contract IMarketexternal

getOutcome(uint256 _tokenId) → uint256external

totalSupplyForMarketOutcome(contract IMarket _market, uint256 _outcome) → uint256public

balanceOfMarketOutcome(contract IMarket _market, uint256 _outcome, address _account) → uint256public

lowestBalanceOfMarketOutcomes(contract IMarket _market, uint256[] _outcomes, address _account) → uint256public

assertBalances(contract IMarket _market)public

getTokenId(contract IMarket _market, uint256 _outcome) → uint256public

getTokenIds(contract IMarket _market, uint256[] _outcomes) → uint256[]public

unpackTokenId(uint256 _tokenId) → address,uint256public

onTokenTransfer(uint256 _tokenId, address _from, address _to, uint256 _value)internal

onMint(uint256 _tokenId, address _target, uint256 _amount)internal

onBurn(uint256 _tokenId, address _target, uint256 _amount)internal

TokenId

getTokenId(address _market, uint256 _outcome) → uint256internal

getTokenId(contract IMarket _market, uint256 _outcome) → uint256internal

getTokenIds(address _market, uint256[] _outcomes) → uint256[]internal

getTokenIds(contract IMarket _market, uint256[] _outcomes) → uint256[]internal

unpackTokenId(uint256 _tokenId) → address,uint256internal

IDisputeWindowFactory

createDisputeWindow(contract IAugur _augur, uint256 _disputeWindowId, uint256 _windowDuration, uint256 _startTime, bool _participationTokensEnabled) → contract IDisputeWindowpublic

IFormulas

calculateFloatingValue(uint256 _totalBad, uint256 _total, uint256 _targetDivisor, uint256 _previousValue, uint256 _floor) → uint256public

calculateValidityBond(contract IDisputeWindow _previousDisputeWindow, uint256 _previousValidityBondInAttoCash) → uint256public

calculateDesignatedReportStake(contract IDisputeWindow _previousDisputeWindow, uint256 _previousDesignatedReportStakeInAttoRep, uint256 _initialReportMinValue) → uint256public

calculateDesignatedReportNoShowBond(contract IDisputeWindow _previousDisputeWindow, uint256 _previousDesignatedReportNoShowBondInAttoRep, uint256 _initialReportMinValue) → uint256public

IOICashFactory

createOICash(contract IAugur _augur) → contract IOICashpublic

IRepOracle

initialize(contract IAugur _augur)external

getLastUpdateTimestamp(address _reputationToken) → uint256external

poke(address _reputationTokenAddress) → uint256external

IReputationTokenFactory

createReputationToken(contract IAugur _augur, contract IUniverse _parentUniverse) → contract IV2ReputationTokenpublic

Universe

Functions

constructor(contract IAugur _augur, contract IUniverse _parentUniverse, bytes32 _parentPayoutDistributionHash, uint256[] _payoutNumerators)public

fork() → boolpublic

updateForkValues() → boolpublic

getPayoutNumerator(uint256 _outcome) → uint256public

getWinningChildPayoutNumerator(uint256 _outcome) → uint256public

getParentUniverse() → contract IUniversepublic

getParentPayoutDistributionHash() → bytes32public

getReputationToken() → contract IV2ReputationTokenpublic

getForkingMarket() → contract IMarketpublic

getForkEndTime() → uint256public

getForkReputationGoal() → uint256public

getDisputeThresholdForFork() → uint256public

getDisputeThresholdForDisputePacing() → uint256public

getInitialReportMinValue() → uint256public

getPayoutNumerators() → uint256[]public

getDisputeWindow(uint256 _disputeWindowId) → contract IDisputeWindowpublic

isForking() → boolpublic

isForkingMarket() → boolpublic

getChildUniverse(bytes32 _parentPayoutDistributionHash) → contract IUniversepublic

getDisputeWindowId(uint256 _timestamp, bool _initial) → uint256public

getDisputeRoundDurationInSeconds(bool _initial) → uint256public

getOrCreateDisputeWindowByTimestamp(uint256 _timestamp, bool _initial) → contract IDisputeWindowpublic

getDisputeWindowStartTimeAndDuration(uint256 _timestamp, bool _initial) → uint256,uint256public

getDisputeWindowByTimestamp(uint256 _timestamp, bool _initial) → contract IDisputeWindowpublic

getOrCreatePreviousPreviousDisputeWindow(bool _initial) → contract IDisputeWindowpublic

getOrCreatePreviousDisputeWindow(bool _initial) → contract IDisputeWindowpublic

getOrCreateCurrentDisputeWindow(bool _initial) → contract IDisputeWindowpublic

getCurrentDisputeWindow(bool _initial) → contract IDisputeWindowpublic

getOrCreateNextDisputeWindow(bool _initial) → contract IDisputeWindowpublic

createChildUniverse(uint256[] _parentPayoutNumerators) → contract IUniversepublic

updateTentativeWinningChildUniverse(bytes32 _parentPayoutDistributionHash) → boolpublic

getWinningChildUniverse() → contract IUniversepublic

isContainerForDisputeWindow(contract IDisputeWindow _shadyDisputeWindow) → boolpublic

isContainerForMarket(contract IMarket _shadyMarket) → boolpublic

migrateMarketOut(contract IUniverse _destinationUniverse) → boolpublic

migrateMarketIn(contract IMarket _market, uint256 _cashBalance, uint256 _marketOI) → boolpublic

isContainerForReportingParticipant(contract IReportingParticipant _shadyReportingParticipant) → boolpublic

isParentOf(contract IUniverse _shadyChild) → boolpublic

decrementOpenInterest(uint256 _amount) → boolpublic

decrementOpenInterestFromMarket(contract IMarket _market) → boolpublic

incrementOpenInterest(uint256 _amount) → boolpublic

getOpenInterestInAttoCash() → uint256public

isOpenInterestCash(address _address) → boolpublic

pokeRepMarketCapInAttoCash() → uint256public

getTargetRepMarketCapInAttoCash() → uint256public

getOrCacheValidityBond() → uint256public

getOrCacheDesignatedReportStake() → uint256public

getOrCacheDesignatedReportNoShowBond() → uint256public

getOrCacheMarketRepBond() → uint256public

getOrCacheReportingFeeDivisor() → uint256public

this should be used in contracts so that the fee is actually set

getReportingFeeDivisor() → uint256public

this should be used for estimation purposes as it is a view and does not actually freeze or recalculate the rate

createYesNoMarket(uint256 _endTime, uint256 _feePerCashInAttoCash, contract IAffiliateValidator _affiliateValidator, uint256 _affiliateFeeDivisor, address _designatedReporterAddress, string _extraInfo) → contract IMarketpublic

createCategoricalMarket(uint256 _endTime, uint256 _feePerCashInAttoCash, contract IAffiliateValidator _affiliateValidator, uint256 _affiliateFeeDivisor, address _designatedReporterAddress, bytes32[] _outcomes, string _extraInfo) → contract IMarketpublic

createScalarMarket(uint256 _endTime, uint256 _feePerCashInAttoCash, contract IAffiliateValidator _affiliateValidator, uint256 _affiliateFeeDivisor, address _designatedReporterAddress, int256[] _prices, uint256 _numTicks, string _extraInfo) → contract IMarketpublic

deposit(address _sender, uint256 _amount, address _market) → boolpublic

withdraw(address _recipient, uint256 _amount, address _market) → boolpublic

runPeriodicals() → boolexternal