Skip to content

Commit

Permalink
Merge pull request #63 from gnosis/bump-to-0.7.0-rc1
Browse files Browse the repository at this point in the history
Bump version to 0.7.0-rc1 and regen docs/dist
  • Loading branch information
cag authored Nov 9, 2017
2 parents dc63783 + 9881133 commit 39567ac
Show file tree
Hide file tree
Showing 16 changed files with 458 additions and 186 deletions.
388 changes: 245 additions & 143 deletions dist/gnosis.js

Large diffs are not rendered by default.

146 changes: 143 additions & 3 deletions docs/Gnosis.html
Original file line number Diff line number Diff line change
Expand Up @@ -2347,7 +2347,7 @@ <h4 class="name" id="buyOutcomeTokens"><span class="type-signature"></span>buyOu

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="markets.js.html">markets.js</a>, <a href="markets.js.html#line49">line 49</a>
<a href="markets.js.html">markets.js</a>, <a href="markets.js.html#line50">line 50</a>
</li></ul></dd>


Expand Down Expand Up @@ -2383,6 +2383,8 @@ <h5>Parameters:</h5>



<th>Default</th>


<th class="last">Description</th>
</tr>
Expand Down Expand Up @@ -2419,6 +2421,10 @@ <h5>Parameters:</h5>



<td class="default">

</td>


<td class="description last">
<p>The market to buy tokens from</p>
Expand Down Expand Up @@ -2459,6 +2465,10 @@ <h5>Parameters:</h5>



<td class="default">

</td>


<td class="description last">
<p>The index of the outcome</p>
Expand Down Expand Up @@ -2499,6 +2509,10 @@ <h5>Parameters:</h5>



<td class="default">

</td>


<td class="description last">
<p>Number of outcome tokens to buy</p>
Expand All @@ -2508,6 +2522,54 @@ <h5>Parameters:</h5>



<tr>

<td class="name"><code>opts.limitMargin</code></td>


<td class="type">


<span class="param-type"><code>number</code></span>
|

<span class="param-type"><code>string</code></span>
|

<span class="param-type"><code>BigNumber</code></span>



</td>


<td class="attributes">

&lt;optional><br>





</td>



<td class="default">

0

</td>


<td class="description last">
<p>Because transactions change prices, there is a chance that the cost limit for the buy, which is set to the cost according to the latest mined block, will prevent the buy transaction from succeeding. This parameter can be used to increase the cost limit by a fixed proportion. For example, specifying <code>limitMargin: 0.05</code> will make the cost limit increase by 5%.</p>

</td>
</tr>



<tr>

<td class="name"><code>opts.approvalAmount</code></td>
Expand Down Expand Up @@ -2541,6 +2603,10 @@ <h5>Parameters:</h5>



<td class="default">

</td>


<td class="description last">
<p>Amount of collateral to allow market to spend. If unsupplied or null, allowance will be reset to the <code>approvalResetAmount</code> only if necessary. If set to 0, the approval transaction will be skipped.</p>
Expand Down Expand Up @@ -2583,6 +2649,10 @@ <h5>Parameters:</h5>



<td class="default">

</td>


<td class="description last">
<p>Set to this amount when resetting market collateral allowance. If unsupplied or null, will be the cost of this transaction.</p>
Expand Down Expand Up @@ -4583,7 +4653,7 @@ <h4 class="name" id="sellOutcomeTokens"><span class="type-signature"></span>sell

<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy"><li>
<a href="markets.js.html">markets.js</a>, <a href="markets.js.html#line127">line 127</a>
<a href="markets.js.html">markets.js</a>, <a href="markets.js.html#line143">line 143</a>
</li></ul></dd>


Expand Down Expand Up @@ -4619,6 +4689,8 @@ <h5>Parameters:</h5>



<th>Default</th>


<th class="last">Description</th>
</tr>
Expand Down Expand Up @@ -4655,6 +4727,10 @@ <h5>Parameters:</h5>



<td class="default">

</td>


<td class="description last">
<p>The market to sell tokens to</p>
Expand Down Expand Up @@ -4695,6 +4771,10 @@ <h5>Parameters:</h5>



<td class="default">

</td>


<td class="description last">
<p>The index of the outcome</p>
Expand Down Expand Up @@ -4735,6 +4815,10 @@ <h5>Parameters:</h5>



<td class="default">

</td>


<td class="description last">
<p>Number of outcome tokens to sell</p>
Expand All @@ -4744,6 +4828,54 @@ <h5>Parameters:</h5>



<tr>

<td class="name"><code>opts.limitMargin</code></td>


<td class="type">


<span class="param-type"><code>number</code></span>
|

<span class="param-type"><code>string</code></span>
|

<span class="param-type"><code>BigNumber</code></span>



</td>


<td class="attributes">

&lt;optional><br>





</td>



<td class="default">

0

</td>


<td class="description last">
<p>Because transactions change profits, there is a chance that the profit limit for the sell, which is set to the profit according to the latest mined block, will prevent the sell transaction from succeeding. This parameter can be used to decrease the profit limit by a fixed proportion. For example, specifying <code>limitMargin: 0.05</code> will make the profit limit decrease by 5%.</p>

</td>
</tr>



<tr>

<td class="name"><code>opts.approvalAmount</code></td>
Expand Down Expand Up @@ -4777,6 +4909,10 @@ <h5>Parameters:</h5>



<td class="default">

</td>


<td class="description last">
<p>Amount of outcome tokens to allow market to handle. If unsupplied or null, allowance will be reset to the <code>approvalResetAmount</code> only if necessary. If set to 0, the approval transaction will be skipped.</p>
Expand Down Expand Up @@ -4819,6 +4955,10 @@ <h5>Parameters:</h5>



<td class="default">

</td>


<td class="description last">
<p>Set to this amount when resetting market outcome token allowance. If unsupplied or null, will be the sale amount specified by <code>outcomeTokenCount</code>.</p>
Expand Down Expand Up @@ -5076,7 +5216,7 @@ <h5>Parameters:</h5>
<br class="clear">

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Oct 26 2017 12:23:18 GMT-0500 (CDT) using the Minami theme.
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Nov 09 2017 16:20:44 GMT-0600 (CST) using the Minami theme.
</footer>

<script>hljs.initHighlightingOnLoad();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/events.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ <h1 class="page-title">events.js</h1>
<br class="clear">

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Oct 26 2017 12:23:18 GMT-0500 (CDT) using the Minami theme.
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Nov 09 2017 16:20:44 GMT-0600 (CST) using the Minami theme.
</footer>

<script>hljs.initHighlightingOnLoad();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ <h3>Gas estimations</h3><p>Many of the methods on the gnosis API also have an as
<br class="clear">

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Oct 26 2017 12:23:18 GMT-0500 (CDT) using the Minami theme.
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Nov 09 2017 16:20:44 GMT-0600 (CST) using the Minami theme.
</footer>

<script>hljs.initHighlightingOnLoad();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/index.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ <h1 class="page-title">index.js</h1>
<br class="clear">

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Oct 26 2017 12:23:18 GMT-0500 (CDT) using the Minami theme.
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Nov 09 2017 16:20:44 GMT-0600 (CST) using the Minami theme.
</footer>

<script>hljs.initHighlightingOnLoad();</script>
Expand Down
2 changes: 1 addition & 1 deletion docs/lmsr.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ <h1 class="page-title">lmsr.js</h1>
<br class="clear">

<footer>
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Oct 26 2017 12:23:18 GMT-0500 (CDT) using the Minami theme.
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Nov 09 2017 16:20:44 GMT-0600 (CST) using the Minami theme.
</footer>

<script>hljs.initHighlightingOnLoad();</script>
Expand Down
Loading

0 comments on commit 39567ac

Please sign in to comment.