-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"><head><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><title>MarketMaker | @gnosis.pm/gnosis-core-contracts</title><link href="//cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.4/semantic.min.css" rel="stylesheet"/><link href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAOVBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAABMaXEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABlVggfAAAAE3RSTlPkZE7emXPXAMzHihi+QAwqs6mhB70WSgAAAQFJREFUOMuFk1mSwyAMRAUWhH3J/Q8bFikxNp7pn7hKL12qbgGvfwS/T6Utqfgd4DUYAt5qBziAgwwQ8x3I0DQtEFHdgdqBYVEbgPEKRBhqe4Y+R5cugJ0AtA0HgHIFBM1BT4Nm4RfAHCzFiguAhqQekvQ0D+kpajUB8dhFCn1e/ihLdIAWc3nXRTEGKXX+WIFoDP2xfq3We0A3f+WyzAnIM7tU+jZyA5y3/QVyA3xYI70BjkNfy5IsoVlurZtKxsC9g1zLonm1mi/nsoMkA8unFa9luWlgyaLecogdGFd/dMBvHg5iGYBpc7eJOuObXt4BOm0fbyDAwPZtvrxgnS/3AwT9GsisQa84AAAAAElFTkSuQmCC" rel="icon"/><style>@import url(https://fonts.googleapis.com/css?family=Roboto:400,700|Roboto+Mono);@media only screen and (max-width:767px){[class*="computer only"]:not(.mobile),[class*="large screen only"]:not(.mobile),[class*="mobile hidden"],[class*="or lower hidden"],[class*="tablet only"]:not(.mobile),[class*="widescreen only"]:not(.mobile){display:none!important}}@media only screen and (min-width:768px) and (max-width:991px){[class*="computer only"]:not(.tablet),[class*="large screen only"]:not(.tablet),[class*="mobile only"]:not(.tablet),[class*="or lower hidden"]:not(.mobile),[class*="tablet hidden"],[class*="widescreen only"]:not(.tablet){display:none!important}}@media only screen and (min-width:992px) and (max-width:1199px){[class*="computer hidden"],[class*="large screen only"]:not(.computer),[class*="mobile only"]:not(.computer),[class*="or lower hidden"]:not(.tablet):not(.mobile),[class*="tablet only"]:not(.computer),[class*="widescreen only"]:not(.computer){display:none!important}}@media only screen and (min-width:1200px) and (max-width:1919px){[class*="computer only"]:not([class*="large screen"]),[class*="large screen hidden"],[class*="mobile only"]:not([class*="large screen"]),[class*="or lower hidden"]:not(.computer):not(.tablet):not(.mobile),[class*="tablet only"]:not([class*="large screen"]),[class*="widescreen only"]:not([class*="large screen"]){display:none!important}}@media only screen and (min-width:1920px){[class*="computer only"]:not([class*=widescreen]),[class*="large screen only"]:not([class*=widescreen]),[class*="mobile only"]:not([class*=widescreen]),[class*="tablet only"]:not([class*=widescreen]),[class*="widescreen hidden"],[class*="widescreen or lower hidden"]{display:none!important}}.ui.header,.ui.menu,body,h1,h2,h3,h4,h5{font-family:Roboto,sans-serif}pre.wrap{white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word}code{padding:0 .3em}code,pre{font-family:Roboto Mono,monospace;border:1px solid rgba(0,0,0,.05);background:rgba(0,0,0,.01)}code>code,pre>code{border:none;background:none}pre{padding:1em}.vertical.menu .item{overflow:hidden;text-overflow:ellipsis}.vertical.menu .item.active{overflow:visible}.pusher{display:flex;min-height:100vh;flex-direction:column}.pusher>.container:not(.footer){flex:1}.pusher>.footer{height:auto;margin-top:2em}.header code.signature{font-size:.6em}.ui.method-input{max-width:6em;overflow:hidden;text-overflow:ellipsis;text-align:right}.ui.method-input input{background:hsla(0,0%,100%,.7)}.hljs{display:block;overflow-x:auto;padding:.5em;color:#383a42;background:#fafafa}.hljs-comment,.hljs-quote{color:#a0a1a7;font-style:italic}.hljs-doctag,.hljs-formula,.hljs-keyword{color:#a626a4}.hljs-deletion,.hljs-name,.hljs-section,.hljs-selector-tag,.hljs-subst{color:#e45649}.hljs-literal{color:#0184bb}.hljs-addition,.hljs-attribute,.hljs-meta-string,.hljs-regexp,.hljs-string{color:#50a14f}.hljs-built_in,.hljs-class .hljs-title{color:#c18401}.hljs-attr,.hljs-number,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-pseudo,.hljs-template-variable,.hljs-type,.hljs-variable{color:#986801}.hljs-bullet,.hljs-link,.hljs-meta,.hljs-selector-id,.hljs-symbol,.hljs-title{color:#4078f2}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.hljs-link{text-decoration:underline}</style></head><body><div id="react-mount"><div style="padding-top:60px;" class="pusher" data-reactroot="" data-reactid="1" data-react-checksum="110127642"><div class="ui top fixed inverted menu" data-reactid="2"><div class="ui container" data-reactid="3"><a class="header item" href="/gnosis-contracts/" data-reactid="4"><!-- react-text: 5 -->@gnosis.pm/gnosis-core-contracts<!-- /react-text --><div class="ui grey label" data-reactid="6">1.0.0</div></a><div class="item mobile hidden" data-reactid="7">Collection of smart contracts for the Gnosis prediction market platform</div><div class="right menu" data-reactid="8"><!-- react-empty: 9 --><a target="_blank" href="https://github.com/gnosis/gnosis-contracts#readme" class="item" data-reactid="10"><i class="home icon" data-reactid="11"></i></a></div></div></div><div class="ui container" data-reactid="12"><div class="ui grid" data-reactid="13"><div class="four wide column mobile hidden" data-reactid="14"><div class="ui fluid tabular vertical menu" data-reactid="15"><a class="item" href="/gnosis-contracts/docs/Campaign/" data-reactid="16">Campaign</a><a class="item" href="/gnosis-contracts/docs/CampaignFactory/" data-reactid="17">CampaignFactory</a><a class="item" href="/gnosis-contracts/docs/CategoricalEvent/" data-reactid="18">CategoricalEvent</a><a class="item" href="/gnosis-contracts/docs/CentralizedOracle/" data-reactid="19">CentralizedOracle</a><a class="item" href="/gnosis-contracts/docs/CentralizedOracleFactory/" data-reactid="20">CentralizedOracleFactory</a><a class="item" href="/gnosis-contracts/docs/DifficultyOracle/" data-reactid="21">DifficultyOracle</a><a class="item" href="/gnosis-contracts/docs/DifficultyOracleFactory/" data-reactid="22">DifficultyOracleFactory</a><a class="item" href="/gnosis-contracts/docs/EtherToken/" data-reactid="23">EtherToken</a><a class="item" href="/gnosis-contracts/docs/Event/" data-reactid="24">Event</a><a class="item" href="/gnosis-contracts/docs/EventFactory/" data-reactid="25">EventFactory</a><a class="item" href="/gnosis-contracts/docs/FutarchyOracle/" data-reactid="26">FutarchyOracle</a><a class="item" href="/gnosis-contracts/docs/FutarchyOracleFactory/" data-reactid="27">FutarchyOracleFactory</a><a class="item" href="/gnosis-contracts/docs/HumanFriendlyToken/" data-reactid="28">HumanFriendlyToken</a><a class="item" href="/gnosis-contracts/docs/LMSRMarketMaker/" data-reactid="29">LMSRMarketMaker</a><a class="item" href="/gnosis-contracts/docs/MajorityOracle/" data-reactid="30">MajorityOracle</a><a class="item" href="/gnosis-contracts/docs/MajorityOracleFactory/" data-reactid="31">MajorityOracleFactory</a><a class="item" href="/gnosis-contracts/docs/Market/" data-reactid="32">Market</a><a class="active item" href="/gnosis-contracts/docs/MarketMaker/" data-reactid="33">MarketMaker</a><a class="item" href="/gnosis-contracts/docs/Math/" data-reactid="34">Math</a><a class="item" href="/gnosis-contracts/docs/Oracle/" data-reactid="35">Oracle</a><a class="item" href="/gnosis-contracts/docs/OutcomeToken/" data-reactid="36">OutcomeToken</a><a class="item" href="/gnosis-contracts/docs/ScalarEvent/" data-reactid="37">ScalarEvent</a><a class="item" href="/gnosis-contracts/docs/SignedMessageOracle/" data-reactid="38">SignedMessageOracle</a><a class="item" href="/gnosis-contracts/docs/SignedMessageOracleFactory/" data-reactid="39">SignedMessageOracleFactory</a><a class="item" href="/gnosis-contracts/docs/StandardMarket/" data-reactid="40">StandardMarket</a><a class="item" href="/gnosis-contracts/docs/StandardMarketFactory/" data-reactid="41">StandardMarketFactory</a><a class="item" href="/gnosis-contracts/docs/StandardMarketWithPriceLogger/" data-reactid="42">StandardMarketWithPriceLogger</a><a class="item" href="/gnosis-contracts/docs/StandardMarketWithPriceLoggerFactory/" data-reactid="43">StandardMarketWithPriceLoggerFactory</a><a class="item" href="/gnosis-contracts/docs/StandardToken/" data-reactid="44">StandardToken</a><a class="item" href="/gnosis-contracts/docs/Token/" data-reactid="45">Token</a><a class="item" href="/gnosis-contracts/docs/UltimateOracle/" data-reactid="46">UltimateOracle</a><a class="item" href="/gnosis-contracts/docs/UltimateOracleFactory/" data-reactid="47">UltimateOracleFactory</a></div></div><div class="stretched twelve wide computer sixteen wide mobile twelve wide tablet column" data-reactid="48"><div class="contract" data-reactid="49"><div style="clear:both;" class="ui hidden divider" data-reactid="50"></div><h2 class="ui left floated header" data-reactid="51"><!-- react-text: 52 -->Abstract market maker contract - Functions to be implemented by market maker contracts<!-- /react-text --><div class="sub header" data-reactid="53"><!-- react-text: 54 -->/contracts/MarketMakers/MarketMaker.sol<!-- /react-text --></div></h2><div style="clear:both;" class="ui hidden divider" data-reactid="55"></div><div class="ui pointing secondary menu" data-reactid="56"><a class="active item" data-reactid="57"><!-- react-text: 58 -->Methods<!-- /react-text --></a><a class="item" data-reactid="59"><!-- react-text: 60 -->ABI<!-- /react-text --></a><a class="item" data-reactid="61"><!-- react-text: 62 -->Source Code<!-- /react-text --></a></div><div class="methods" data-reactid="63"><div class="ui segment" data-reactid="64"><div class="ui right ribbon label" data-reactid="65"><!-- react-text: 66 -->function<!-- /react-text --><!-- react-text: 67 -->, constant<!-- /react-text --></div><h3 style="margin-top:-1.5rem;" class="ui header" data-reactid="68"><code data-reactid="69">calcCost</code><!-- react-text: 70 --> <!-- /react-text --><code class="signature" data-reactid="71">bd8ff817</code></h3><table class="ui definition table" data-reactid="72"><tbody class="" data-reactid="73"><tr class="positive" data-reactid="74"><td style="text-transform:capitalize;" rowspan="3" class="" data-reactid="75">inputs</td><td class="" data-reactid="76">0</td><td class="" data-reactid="77">address</td><td class="" data-reactid="78"><code data-reactid="79">market</code></td><td class="" data-reactid="80"></td></tr><tr class="positive" data-reactid="81"><td style="display:none;" class="" data-reactid="82">inputs</td><td class="" data-reactid="83">1</td><td class="" data-reactid="84">uint8</td><td class="" data-reactid="85"><code data-reactid="86">outcomeTokenIndex</code></td><td class="" data-reactid="87"></td></tr><tr class="positive" data-reactid="88"><td style="display:none;" class="" data-reactid="89">inputs</td><td class="" data-reactid="90">2</td><td class="" data-reactid="91">uint256</td><td class="" data-reactid="92"><code data-reactid="93">outcomeTokenCount</code></td><td class="" data-reactid="94"></td></tr></tbody></table></div><div class="ui segment" data-reactid="95"><div class="ui right ribbon label" data-reactid="96"><!-- react-text: 97 -->function<!-- /react-text --><!-- react-text: 98 -->, constant<!-- /react-text --></div><h3 style="margin-top:-1.5rem;" class="ui header" data-reactid="99"><code data-reactid="100">calcMarginalPrice</code><!-- react-text: 101 --> <!-- /react-text --><code class="signature" data-reactid="102">d812d346</code></h3><table class="ui definition table" data-reactid="103"><tbody class="" data-reactid="104"><tr class="positive" data-reactid="105"><td style="text-transform:capitalize;" rowspan="2" class="" data-reactid="106">inputs</td><td class="" data-reactid="107">0</td><td class="" data-reactid="108">address</td><td class="" data-reactid="109"><code data-reactid="110">market</code></td><td class="" data-reactid="111"></td></tr><tr class="positive" data-reactid="112"><td style="display:none;" class="" data-reactid="113">inputs</td><td class="" data-reactid="114">1</td><td class="" data-reactid="115">uint8</td><td class="" data-reactid="116"><code data-reactid="117">outcomeTokenIndex</code></td><td class="" data-reactid="118"></td></tr></tbody></table></div><div class="ui segment" data-reactid="119"><div class="ui right ribbon label" data-reactid="120"><!-- react-text: 121 -->function<!-- /react-text --><!-- react-text: 122 -->, constant<!-- /react-text --></div><h3 style="margin-top:-1.5rem;" class="ui header" data-reactid="123"><code data-reactid="124">calcProfit</code><!-- react-text: 125 --> <!-- /react-text --><code class="signature" data-reactid="126">4091c6a9</code></h3><table class="ui definition table" data-reactid="127"><tbody class="" data-reactid="128"><tr class="positive" data-reactid="129"><td style="text-transform:capitalize;" rowspan="3" class="" data-reactid="130">inputs</td><td class="" data-reactid="131">0</td><td class="" data-reactid="132">address</td><td class="" data-reactid="133"><code data-reactid="134">market</code></td><td class="" data-reactid="135"></td></tr><tr class="positive" data-reactid="136"><td style="display:none;" class="" data-reactid="137">inputs</td><td class="" data-reactid="138">1</td><td class="" data-reactid="139">uint8</td><td class="" data-reactid="140"><code data-reactid="141">outcomeTokenIndex</code></td><td class="" data-reactid="142"></td></tr><tr class="positive" data-reactid="143"><td style="display:none;" class="" data-reactid="144">inputs</td><td class="" data-reactid="145">2</td><td class="" data-reactid="146">uint256</td><td class="" data-reactid="147"><code data-reactid="148">outcomeTokenCount</code></td><td class="" data-reactid="149"></td></tr></tbody></table></div></div></div></div></div></div><div class="ui container footer" data-reactid="150"><div class="ui small top attached compact secondary segment" data-reactid="151"><div class="ui stackable grid" data-reactid="152"><div class="row" data-reactid="153"><div class="six wide column" data-reactid="154"><b data-reactid="155"><!-- react-text: 156 -->© <!-- /react-text --><!-- react-text: 157 -->Gnosis (https://gnosis.pm)<!-- /react-text --></b><!-- react-text: 158 --> - <!-- /react-text --><!-- react-text: 159 -->GPL-3.0<!-- /react-text --><!-- react-text: 160 -->, <!-- /react-text --><!-- react-text: 161 -->2017<!-- /react-text --></div><div class="right aligned ten wide column" data-reactid="162"><!-- react-text: 163 -->Docs built using <!-- /react-text --><b data-reactid="164"><!-- react-text: 165 -->Solidity <!-- /react-text --></b><!-- react-text: 166 --> on <!-- /react-text --><b data-reactid="167">12/26/2017</b></div></div></div></div></div></div></div><script src="/gnosis-contracts/bundle.js?t=1514331558364"></script></body></html> |
Large diffs are not rendered by default.