Contracts

Contracts

Augur

FunctionsEvents

constructor()public

registerContract(bytes32 _key, address _address) → boolpublic

lookup(bytes32 _key) → addresspublic

finishDeployment() → boolpublic

createGenesisUniverse() → contract IUniversepublic

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

isKnownUniverse(contract IUniverse _universe) → boolpublic

getUniverseForkIndex(contract IUniverse _universe) → uint256public

isKnownCrowdsourcer(contract IDisputeCrowdsourcer _crowdsourcer) → boolpublic

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

isKnownFeeSender(address _feeSender) → boolpublic

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

isTrustedSender(address _address) → boolpublic

getTimestamp() → uint256public

isKnownMarket(contract IMarket _market) → boolpublic

getMaximumMarketEndDate() → uint256public

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

getMarketCreationData(contract IMarket _market) → struct IAugurCreationDataGetter.MarketCreationDatapublic

getMarketType(contract IMarket _market) → enum IMarket.MarketTypepublic

getMarketOutcomes(contract IMarket _market) → bytes32[]public

getMarketRecommendedTradeInterval(contract IMarket _market) → uint256public

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

getTradeInterval(uint256 _displayRange, uint256 _numTicks) → uint256public

logInitialReportSubmitted(contract IUniverse _universe, address _reporter, address _market, address _initialReporter, uint256 _amountStaked, bool _isDesignatedReporter, uint256[] _payoutNumerators, string _description, uint256 _nextWindowStartTime, uint256 _nextWindowEndTime) → 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

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

logMarketParticipantsDisavowed(contract IUniverse _universe) → boolpublic

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

logMarketMigrated(contract IMarket _market, contract IUniverse _originalUniverse) → 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

logDisputeCrowdsourcerTokensTransferred(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

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 _account, 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

logValidityBondChanged(uint256 _validityBond) → boolpublic

logDesignatedReportStakeChanged(uint256 _designatedReportStake) → boolpublic

logNoShowBondChanged(uint256 _noShowBond) → boolpublic

logReportingFeeChanged(uint256 _reportingFee) → boolpublic

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

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

getAndValidateUniverse(address _untrustedUniverse) → contract IUniverseinternal

MarketCreated(contract IUniverse universe, uint256 endTime, string extraInfo, contract IMarket market, address marketCreator, address designatedReporter, uint256 feePerCashInAttoCash, int256[] prices, enum IMarket.MarketType marketType, uint256 numTicks, bytes32[] outcomes, uint256 noShowBond, uint256 timestamp)

InitialReportSubmitted(address universe, address reporter, address market, address initialReporter, uint256 amountStaked, bool isDesignatedReporter, uint256[] payoutNumerators, string description, uint256 nextWindowStartTime, uint256 nextWindowEndTime, uint256 timestamp)

DisputeCrowdsourcerCreated(address universe, address market, address disputeCrowdsourcer, uint256[] payoutNumerators, uint256 size, uint256 disputeRound)

DisputeCrowdsourcerContribution(address universe, address reporter, address market, address disputeCrowdsourcer, uint256 amountStaked, string description, uint256[] payoutNumerators, uint256 currentStake, uint256 stakeRemaining, uint256 disputeRound, uint256 timestamp)

DisputeCrowdsourcerCompleted(address universe, address market, address disputeCrowdsourcer, uint256[] payoutNumerators, uint256 nextWindowStartTime, uint256 nextWindowEndTime, bool pacingOn, uint256 totalRepStakedInPayout, uint256 totalRepStakedInMarket, uint256 disputeRound, uint256 timestamp)

InitialReporterRedeemed(address universe, address reporter, address market, address initialReporter, uint256 amountRedeemed, uint256 repReceived, uint256[] payoutNumerators, uint256 timestamp)

DisputeCrowdsourcerRedeemed(address universe, address reporter, address market, address disputeCrowdsourcer, uint256 amountRedeemed, uint256 repReceived, uint256[] payoutNumerators, uint256 timestamp)

ReportingParticipantDisavowed(address universe, address market, address reportingParticipant)

MarketParticipantsDisavowed(address universe, address market)

MarketFinalized(address universe, address market, uint256 timestamp, uint256[] winningPayoutNumerators)

MarketMigrated(address market, address originalUniverse, address newUniverse)

UniverseForked(address universe, contract IMarket forkingMarket)

UniverseCreated(address parentUniverse, address childUniverse, uint256[] payoutNumerators, uint256 creationTimestamp)

CompleteSetsPurchased(address universe, address market, address account, uint256 numCompleteSets, uint256 timestamp)

CompleteSetsSold(address universe, address market, address account, uint256 numCompleteSets, uint256 fees, uint256 timestamp)

TradingProceedsClaimed(address universe, address sender, address market, uint256 outcome, uint256 numShares, uint256 numPayoutTokens, uint256 fees, uint256 timestamp)

TokensTransferred(address universe, address token, address from, address to, uint256 value, enum Augur.TokenType tokenType, address market)

TokensMinted(address universe, address token, address target, uint256 amount, enum Augur.TokenType tokenType, address market, uint256 totalSupply)

TokensBurned(address universe, address token, address target, uint256 amount, enum Augur.TokenType tokenType, address market, uint256 totalSupply)

TokenBalanceChanged(address universe, address owner, address token, enum Augur.TokenType tokenType, address market, uint256 balance, uint256 outcome)

DisputeWindowCreated(address universe, address disputeWindow, uint256 startTime, uint256 endTime, uint256 id, bool initial)

InitialReporterTransferred(address universe, address market, address from, address to)

MarketTransferred(address universe, address market, address from, address to)

MarketOIChanged(address universe, address market, uint256 marketOI)

ParticipationTokensRedeemed(address universe, address disputeWindow, address account, uint256 attoParticipationTokens, uint256 feePayoutShare, uint256 timestamp)

TimestampSet(uint256 newTimestamp)

ValidityBondChanged(address universe, uint256 validityBond)

DesignatedReportStakeChanged(address universe, uint256 designatedReportStake)

NoShowBondChanged(address universe, uint256 noShowBond)

ReportingFeeChanged(address universe, uint256 reportingFee)

ShareTokenBalanceChanged(address universe, address account, address market, uint256 outcome, uint256 balance)

MarketRepBondTransferred(address universe, address market, address from, address to)

WarpSyncDataUpdated(address universe, uint256 warpSyncHash, uint256 marketEndTime)

RegisterContract(address contractAddress, bytes32 key)

FinishDeployment()

ContractExists

exists(address _address) → boolinternal

IAffiliateValidator

validateReference(address _account, address _referrer) → boolexternal

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

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

IAugurCreationDataGetter

getMarketCreationData(contract IMarket _market) → struct IAugurCreationDataGetter.MarketCreationDatapublic

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

IOwnable

getOwner() → addresspublic

transferOwnership(address _newOwner) → boolpublic

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

ITime

getTimestamp() → uint256external

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

IUniverseFactory

createUniverse(contract IUniverse _parentUniverse, bytes32 _parentPayoutDistributionHash, uint256[] _payoutNumerators) → contract IUniversepublic

IV2ReputationToken

parentUniverse() → contract IUniverseexternal

burnForMarket(uint256 _amountToBurn) → boolpublic

mintForWarpSync(uint256 _amountToMint, address _target) → boolpublic

getLegacyRepToken() → contract IERC20public

symbol() → stringpublic

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

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

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

AugurWallet

initialize(address _owner, address _referralAddress, bytes32 _fingerprint, address _augur, address _registry, address _registryV2, contract IERC20 _cash, contract IAffiliates _affiliates, contract IERC1155 _shareToken, address _createOrder, address _fillOrder, address _zeroXTrade)external

transferCash(address _to, uint256 _amount)external

executeTransaction(address _to, bytes _data, uint256 _value) → boolexternal

addAuthorizedProxy(address _authorizedProxy) → boolexternal

removeAuthorizedProxy(address _authorizedProxy) → boolexternal

withdrawAllFundsAsDai(address _destination, uint256 _minExchangeRateInDai) → boolexternal

getAmountOut(uint256 amountIn, uint256 reserveIn, uint256 reserveOut) → uint256public

isValidSignature(bytes _data, bytes _signature) → bytes4external

getMessageHash(bytes _message) → bytes32public

Returns hash of a message that can be signed by the owner. @param _message Message that should be hashed @return Message hash.

fallback()external

IAugurWallet

initialize(address _owner, address _referralAddress, bytes32 _fingerprint, address _augur, address _registry, address _registryV2, contract IERC20 _cash, contract IAffiliates _affiliates, contract IERC1155 _shareToken, address _createOrder, address _fillOrder, address _zeroXTrade)external

transferCash(address _to, uint256 _amount)external

executeTransaction(address _to, bytes _data, uint256 _value) → boolexternal

IAugurWalletRegistry

ethExchange() → contract IUniswapV2Pairexternal

WETH() → contract IWETHexternal

token0IsCash() → boolexternal

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)

IWETH

deposit()external

balanceOf(address owner) → uint256external

transfer(address to, uint256 value) → boolexternal

withdraw(uint256)external

Initializable

endInitialization()internal

getInitialized() → boolpublic

AugurWalletRegistry

initialize(contract IAugur _augur, contract IAugurTrading _augurTrading) → boolpublic

acceptRelayedCall(address, address _from, bytes _encodedFunction, uint256, uint256, uint256, uint256, bytes, uint256 _maxPossibleCharge) → uint256,bytesexternal

_preRelayedCall(bytes _context) → bytes32internal

_postRelayedCall(bytes _context, bool, uint256 _actualCharge, bytes32)internal

getAmountOut(uint256 amountIn, uint256 reserveIn, uint256 reserveOut) → uint256public

getAmountIn(uint256 amountOut, uint256 reserveIn, uint256 reserveOut) → uint256public

getCreate2WalletAddress(address _owner) → addresspublic

getWallet(address _account) → contract IAugurWalletpublic

executeWalletTransaction(address _to, bytes _data, uint256 _value, uint256 _payment, address _referralAddress, bytes32 _fingerprint, uint256 _desiredSignerBalance, uint256 _maxExchangeRateInDai, bool _revertOnFailure)external

getRelayMessageHash(address relay, address from, address to, bytes encodedFunction, uint256 transactionFee, uint256 gasPrice, uint256 gasLimit, uint256 nonce) → bytes32public

fallback()external

ExecuteTransactionStatus(bool success, bool fundingSuccess)

Context

_msgSender() → address payableinternal

_msgData() → bytesinternal

GSNRecipient

getHubAddr() → addresspublic

Returns the address of the {IRelayHub} contract for this recipient.

_upgradeRelayHub(address newRelayHub)internal

Switches to a new {IRelayHub} instance. This method is added for future-proofing: there's no reason to not use the default instance.

IMPORTANT: After upgrading, the {GSNRecipient} will no longer be able to receive relayed calls from the old {IRelayHub} instance. Additionally, all funds should be previously withdrawn via {_withdrawDeposits}.

relayHubVersion() → stringpublic

Returns the version string of the {IRelayHub} for which this recipient implementation was built. If {_upgradeRelayHub} is used, the new {IRelayHub} instance should be compatible with this version.

_withdrawDeposits(uint256 amount, address payable payee)internal

Withdraws the recipient's deposits in RelayHub.

Derived contracts should expose this in an external interface with proper access control.

_msgSender() → address payableinternal

Replacement for msg.sender. Returns the actual sender of a transaction: msg.sender for regular transactions, and the end-user for GSN relayed calls (where msg.sender is actually RelayHub).

IMPORTANT: Contracts derived from {GSNRecipient} should never use msg.sender, and use {_msgSender} instead.

_msgData() → bytesinternal

Replacement for msg.data. Returns the actual calldata of a transaction: msg.data for regular transactions, and a reduced version for GSN relayed calls (where msg.data contains additional information).

IMPORTANT: Contracts derived from {GSNRecipient} should never use msg.data, and use {_msgData} instead.

preRelayedCall(bytes context) → bytes32external

See IRelayRecipient.preRelayedCall.

This function should not be overriden directly, use _preRelayedCall instead.

  • Requirements:
  • the caller must be the RelayHub contract.

_preRelayedCall(bytes context) → bytes32internal

See IRelayRecipient.preRelayedCall.

Called by GSNRecipient.preRelayedCall, which asserts the caller is the RelayHub contract. Derived contracts must implement this function with any relayed-call preprocessing they may wish to do.

postRelayedCall(bytes context, bool success, uint256 actualCharge, bytes32 preRetVal)external

See IRelayRecipient.postRelayedCall.

This function should not be overriden directly, use _postRelayedCall instead.

  • Requirements:
  • the caller must be the RelayHub contract.

_postRelayedCall(bytes context, bool success, uint256 actualCharge, bytes32 preRetVal)internal

See IRelayRecipient.postRelayedCall.

Called by GSNRecipient.postRelayedCall, which asserts the caller is the RelayHub contract. Derived contracts must implement this function with any relayed-call postprocessing they may wish to do.

_approveRelayedCall() → uint256,bytesinternal

Return this in acceptRelayedCall to proceed with the execution of a relayed call. Note that this contract will be charged a fee by RelayHub

_approveRelayedCall(bytes context) → uint256,bytesinternal

See GSNRecipient._approveRelayedCall.

This overload forwards context to _preRelayedCall and _postRelayedCall.

_rejectRelayedCall(uint256 errorCode) → uint256,bytesinternal

Return this in acceptRelayedCall to impede execution of a relayed call. No fees will be charged.

_computeCharge(uint256 gas, uint256 gasPrice, uint256 serviceFee) → uint256internal

RelayHubChanged(address oldRelayHub, address newRelayHub)

Emitted when a contract changes its {IRelayHub} contract to a new one.

IAugurWalletFactory

getCreate2WalletAddress(address _owner) → addressexternal

createAugurWallet(address _owner, address _referralAddress, bytes32 _fingerprint) → contract IAugurWalletpublic

IRelayHub

getStakeManager() → addressexternal

addRelayWorkers(address[] newRelayWorkers)external

registerRelayServer(uint256 baseRelayFee, uint256 pctRelayFee, string url)external

depositFor(address target)external

balanceOf(address target) → uint256external

withdraw(uint256 amount, address payable dest)external

relayCall(struct GsnTypes.RelayRequest relayRequest, bytes signature, bytes approvalData, uint256 externalGasLimit) → bool,stringexternal

penalize(address relayWorker, address payable beneficiary)external

getHubOverhead() → uint256external

calculateCharge(uint256 gasUsed, struct GsnTypes.RelayData relayData) → uint256external

versionHub() → stringexternal

RelayServerRegistered(address relayManager, uint256 baseRelayFee, uint256 pctRelayFee, string relayUrl)

RelayWorkersAdded(address relayManager, address[] newRelayWorkers, uint256 workersCount)

Withdrawn(address account, address dest, uint256 amount)

Deposited(address paymaster, address from, uint256 amount)

TransactionRejectedByPaymaster(address relayManager, address paymaster, address from, address to, address relayWorker, bytes4 selector, string reason)

TransactionRelayed(address relayManager, address relayWorker, address from, address to, address paymaster, bytes4 selector, enum IRelayHub.RelayCallStatus status, uint256 charge)

Penalized(address relayWorker, address sender, uint256 reward)

IRelayRecipient

isTrustedForwarder(address forwarder) → boolpublic

_msgSender() → address payableinternal

versionRecipient() → stringexternal

LibBytes

equals(bytes lhs, bytes rhs) → boolinternal

Tests equality of two byte arrays. @param lhs First byte array to compare. @param rhs Second byte array to compare. @return True if arrays are the same. False otherwise.

contentAddress(bytes input) → uint256internal

Gets the memory address for the contents of a byte array. @param input Byte array to lookup. @return memoryAddress Memory address of the contents of the byte array.

memCopy(uint256 dest, uint256 source, uint256 length)internal

Copies length bytes from memory location source to dest. @param dest memory address to copy bytes to. @param source memory address to copy bytes from. @param length number of bytes to copy.

slice(bytes b, uint256 from, uint256 to) → bytesinternal

Returns a slices from a byte array. @param b The byte array to take a slice from. @param from The starting index for the slice (inclusive). @param to The final index for the slice (exclusive). @return result The slice containing bytes at indices [from, to)

sliceDestructive(bytes b, uint256 from, uint256 to) → bytesinternal

Returns a slice from a byte array without preserving the input. @param b The byte array to take a slice from. Will be destroyed in the process. @param from The starting index for the slice (inclusive). @param to The final index for the slice (exclusive). @return result The slice containing bytes at indices [from, to) @dev When from == 0, the original array will match the slice. In other cases its state will be corrupted.

popLastByte(bytes b) → bytes1internal

Pops the last byte off of a byte array by modifying its length. @param b Byte array that will be modified. @return The byte that was popped off.

RLPReader

decodeTransaction(bytes rawTransaction) → uint256,uint256,uint256,address,uint256,bytesinternal

toRlpItem(bytes item) → struct RLPReader.RLPIteminternal

toList(struct RLPReader.RLPItem item) → struct RLPReader.RLPItem[]internal

isList(struct RLPReader.RLPItem item) → boolinternal

numItems(struct RLPReader.RLPItem item) → uint256internal

_itemLength(uint256 memPtr) → uint256internal

_payloadOffset(uint256 memPtr) → uint256internal

toRlpBytes(struct RLPReader.RLPItem item) → bytesinternal

toBoolean(struct RLPReader.RLPItem item) → boolinternal

toAddress(struct RLPReader.RLPItem item) → addressinternal

toUint(struct RLPReader.RLPItem item) → uint256internal

toBytes(struct RLPReader.RLPItem item) → bytesinternal

copy(uint256 src, uint256 dest, uint256 len)internal

AugurWalletRegistryV2

FunctionsEvents

initialize(contract IAugur _augur, contract IAugurTrading _augurTrading) → boolpublic

getGasLimits() → struct IPaymaster.GasLimitsexternal

getHubAddr() → addresspublic

acceptRelayedCall(struct GsnTypes.RelayRequest relayRequest, bytes signature, bytes approvalData, uint256 maxPossibleGas) → bytespublic

preRelayedCall(bytes context) → boolexternal

postRelayedCall(bytes context, bool success, bytes32 preRetVal, uint256 gasUseWithoutPost, struct GsnTypes.RelayData relayData) → boolexternal

getAmountOut(uint256 amountIn, uint256 reserveIn, uint256 reserveOut) → uint256public

getAmountIn(uint256 amountOut, uint256 reserveIn, uint256 reserveOut) → uint256public

getCreate2WalletAddress(address _owner) → addresspublic

getWallet(address _account) → contract IAugurWalletpublic

executeWalletTransaction(address _to, bytes _data, uint256 _value, uint256 _payment, address _referralAddress, bytes32 _fingerprint, uint256 _desiredSignerBalance, uint256 _maxExchangeRateInDai, bool _revertOnFailure)external

getRelayHubDeposit() → uint256public

fallback()external

ExecuteTransactionStatus(bool success, bool fundingSuccess)

BasePaymaster

getHubAddr() → addresspublic

getGasLimits() → struct IPaymaster.GasLimitsexternal

_verifySignature(struct GsnTypes.RelayRequest relayRequest, bytes signature)public

getRelayHubDeposit() → uint256public

fallback()external

BaseRelayRecipient

isTrustedForwarder(address forwarder) → boolpublic

_msgSender() → address payableinternal

ECDSA

recover(bytes32 hash, bytes signature) → addressinternal

Returns the address that signed a hashed message (hash) with signature. This address can then be used for verification purposes.

The ecrecover EVM opcode allows for malleable (non-unique) signatures: this function rejects them by requiring the s value to be in the lower half order, and the v value to be either 27 or 28.

(.note) This call does not revert if the signature is invalid, or if the signer is otherwise unable to be retrieved. In those scenarios, the zero address is returned.

(.warning) hash must be the result of a hash operation for the verification to be secure: it is possible to craft signatures that recover to arbitrary addresses for non-hashed data. A safe way to ensure this is by receiving a hash of the original message (which may otherwise) be too long), and then calling toEthSignedMessageHash on it.

toEthSignedMessageHash(bytes32 hash) → bytes32internal

Returns an Ethereum Signed Message, created from a hash. This replicates the behavior of the eth_sign JSON-RPC method.

See recover.

Forwarder

fallback()external

getNonce(address from) → uint256public

constructor()public

verify(struct IForwarder.ForwardRequest req, bytes suffixData, bytes sig)public

execute(struct IForwarder.ForwardRequest req, bytes32 domainSeparator, bytes32 requestTypeHash, bytes suffixData, bytes sig) → bool,bytespublic

_verifyNonce(struct IForwarder.ForwardRequest req)internal

_updateNonce(struct IForwarder.ForwardRequest req)internal

registerRequestType(string typeName, string typeSuffix)external

registerRequestTypeInternal(string requestType)internal

getRelayMessageHash(struct GsnTypes.RelayRequest req) → bytes32public

_getEncoded(struct IForwarder.ForwardRequest relayRequest, bytes suffixData) → bytes32internal

_verifySig(struct IForwarder.ForwardRequest req, bytes suffixData, bytes sig)public

RequestTypeRegistered(bytes32 typeHash, string typeStr)

GsnEip712Library

splitRequest(struct GsnTypes.RelayRequest req) → struct IForwarder.ForwardRequest,bytesinternal

verifyForwarderTrusted(struct GsnTypes.RelayRequest relayRequest)internal

verifySignature(struct GsnTypes.RelayRequest relayRequest, bytes signature)internal

verify(struct GsnTypes.RelayRequest relayRequest, bytes signature)internal

execute(struct GsnTypes.RelayRequest relayRequest, bytes signature) → bool,stringinternal

domainSeparator(address forwarder) → bytes32internal

getChainID() → uint256internal

hashDomain(struct GsnEip712Library.EIP712Domain req) → bytes32internal

hashRelayData(struct GsnTypes.RelayData req) → bytes32internal

hash(struct IForwarder.ForwardRequest req) → bytes32internal

GsnTypes

GsnUtils

getChainID() → uint256internal

getError(bytes err) → stringinternal

getMethodSig(bytes msgData) → bytes4internal

getParam(bytes msgData, uint256 index) → uint256internal

getAddressParam(bytes msgData, uint256 index) → addressinternal

getBytes32Param(bytes msgData, uint256 index) → bytes32internal

getBytesParam(bytes msgData, uint256 index) → bytesinternal

getStringParam(bytes msgData, uint256 index) → stringinternal

IForwarder

getNonce(address from) → uint256external

verify(struct IForwarder.ForwardRequest forwardRequest, bytes suffixData, bytes signature)external

execute(struct IForwarder.ForwardRequest forwardRequest, bytes32 domainSeparator, bytes32 requestTypeHash, bytes suffixData, bytes signature) → bool,bytesexternal

registerRequestType(string typeName, string typeSuffix)external

IPaymaster

getHubAddr() → addressexternal

getRelayHubDeposit() → uint256external

getGasLimits() → struct IPaymaster.GasLimitsexternal

acceptRelayedCall(struct GsnTypes.RelayRequest relayRequest, bytes signature, bytes approvalData, uint256 maxPossibleGas) → bytesexternal

preRelayedCall(bytes context) → bytes32external

postRelayedCall(bytes context, bool success, bytes32 preRetVal, uint256 gasUseWithoutPost, struct GsnTypes.RelayData relayData)external

versionPaymaster() → stringexternal

ISignatureVerifier

verify(struct ISignatureVerifier.RelayRequest req, bytes signature) → boolexternal

versionSM() → stringexternal

LibBytesRichErrorsV06

InvalidByteOperationError(enum LibBytesRichErrorsV06.InvalidByteOperationErrorCodes errorCode, uint256 offset, uint256 required) → bytesinternal

LibBytesV06

rawAddress(bytes input) → uint256internal

Gets the memory address for a byte array. @param input Byte array to lookup. @return memoryAddress Memory address of byte array. This points to the header of the byte array which contains the length.

contentAddress(bytes input) → uint256internal

Gets the memory address for the contents of a byte array. @param input Byte array to lookup. @return memoryAddress Memory address of the contents of the byte array.

memCopy(uint256 dest, uint256 source, uint256 length)internal

Copies length bytes from memory location source to dest. @param dest memory address to copy bytes to. @param source memory address to copy bytes from. @param length number of bytes to copy.

slice(bytes b, uint256 from, uint256 to) → bytesinternal

Returns a slices from a byte array. @param b The byte array to take a slice from. @param from The starting index for the slice (inclusive). @param to The final index for the slice (exclusive). @return result The slice containing bytes at indices [from, to)

sliceDestructive(bytes b, uint256 from, uint256 to) → bytesinternal

Returns a slice from a byte array without preserving the input. When from == 0, the original array will match the slice. In other cases its state will be corrupted. @param b The byte array to take a slice from. Will be destroyed in the process. @param from The starting index for the slice (inclusive). @param to The final index for the slice (exclusive). @return result The slice containing bytes at indices [from, to)

popLastByte(bytes b) → bytes1internal

Pops the last byte off of a byte array by modifying its length. @param b Byte array that will be modified. @return result The byte that was popped off.

equals(bytes lhs, bytes rhs) → boolinternal

Tests equality of two byte arrays. @param lhs First byte array to compare. @param rhs Second byte array to compare. @return equal True if arrays are the same. False otherwise.

readAddress(bytes b, uint256 index) → addressinternal

Reads an address from a position in a byte array. @param b Byte array containing an address. @param index Index in byte array of address. @return result address from byte array.

writeAddress(bytes b, uint256 index, address input)internal

Writes an address into a specific position in a byte array. @param b Byte array to insert address into. @param index Index in byte array of address. @param input Address to put into byte array.

readBytes32(bytes b, uint256 index) → bytes32internal

Reads a bytes32 value from a position in a byte array. @param b Byte array containing a bytes32 value. @param index Index in byte array of bytes32 value. @return result bytes32 value from byte array.

writeBytes32(bytes b, uint256 index, bytes32 input)internal

Writes a bytes32 into a specific position in a byte array. @param b Byte array to insert <input> into. @param index Index in byte array of <input>. @param input bytes32 to put into byte array.

readUint256(bytes b, uint256 index) → uint256internal

Reads a uint256 value from a position in a byte array. @param b Byte array containing a uint256 value. @param index Index in byte array of uint256 value. @return result uint256 value from byte array.

writeUint256(bytes b, uint256 index, uint256 input)internal

Writes a uint256 into a specific position in a byte array. @param b Byte array to insert <input> into. @param index Index in byte array of <input>. @param input uint256 to put into byte array.

readBytes4(bytes b, uint256 index) → bytes4internal

Reads an unpadded bytes4 value from a position in a byte array. @param b Byte array containing a bytes4 value. @param index Index in byte array of bytes4 value. @return result bytes4 value from byte array.

writeLength(bytes b, uint256 length)internal

Writes a new length to a byte array. Decreasing length will lead to removing the corresponding lower order bytes from the byte array. Increasing length may lead to appending adjacent in-memory bytes to the end of the byte array. @param b Bytes array to write new length to. @param length New length of byte array.

LibRichErrorsV06

StandardError(string message) → bytesinternal

ABI encode a standard, string revert error payload. This is the same payload that would be included by a revert(string) solidity statement. It has the function signature Error(string). @param message The error string. @return The ABI encoded error.

rrevert(bytes errorData)internal

Reverts an encoded rich revert reason errorData. @param errorData ABI encoded error data.

Cash

faucet(uint256 _amount) → boolpublic

setDecimals(uint8 _decimals) → boolpublic

getTypeName() → bytes32public

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

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

VariableSupplyToken

mint(address _target, uint256 _amount) → boolinternal

burn(address _target, uint256 _amount) → boolinternal

onMint(address, uint256)internal

onBurn(address, uint256)internal

DelegationTarget

LegacyReputationToken

FunctionsEvents

faucet(uint256 _amount) → boolpublic

onMint(address, uint256)internal

onBurn(address, uint256)internal

onTokenTransfer(address, address, uint256)internal

FundedAccount(address _universe, address _sender, uint256 _repBalance, uint256 _timestamp)

OldLegacyReputationToken

FunctionsEvents

initialize(contract IUniverse _universe)public

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

migrateOut(contract IReputationToken _destination, uint256 _attotokens) → boolpublic

migrateIn(address _reporter, uint256 _attotokens) → boolpublic

mintForReportingParticipant(uint256 _amountMigrated) → boolpublic

transfer(address _to, uint256 _value) → boolpublic

transferFrom(address _from, address _to, uint256 _value) → 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

getTypeName() → bytes32public

getUniverse() → contract IUniversepublic

getTotalMigrated() → uint256public

getLegacyRepToken() → contract IERC20public

updateSiblingMigrationTotal(contract IReputationToken _token) → boolpublic

updateParentTotalTheoreticalSupply() → boolpublic

getTotalTheoreticalSupply() → uint256public

migrateBalancesFromLegacyRep(address[] _holders) → boolpublic

Copies the balance of a batch of addresses from the legacy contract

migrateAllowancesFromLegacyRep(address[] _owners, address[] _spenders) → boolpublic

Copies the allowances of a batch of addresses from the legacy contract. This is an optional step which may only be done before the migration is complete but is not required to complete it.

getIsMigratingFromLegacy() → boolpublic

getTargetSupply() → uint256public

getTimestamp() → uint256public

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

TestNetReputationToken

FunctionsEvents

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

faucet(uint256 _amount) → boolpublic

Time

getTimestamp() → uint256external

getTypeName() → bytes32public

TimeControlled

constructor()public

initialize(contract IAugur _augur) → boolpublic

getTimestamp() → uint256external

incrementTimestamp(uint256 _amount) → boolexternal

setTimestamp(uint256 _timestamp) → boolexternal

getTypeName() → bytes32public

USDC

constructor()public

getTypeName() → bytes32public

USDT

constructor()public

getTypeName() → bytes32public

IWarpSync

markets(address _universe) → contract IMarketexternal

notifyMarketFinalized()public

WarpSync

initialize(contract IAugur _augur) → boolpublic

doInitialReport(contract IUniverse _universe, uint256[] _payoutNumerators, string _description) → boolpublic

initializeUniverse(contract IUniverse _universe)public

notifyMarketFinalized()public

getFinalizationReward(contract IMarket _market) → uint256public

getCreationReward(contract IUniverse _universe) → uint256public