Skip to content
This repository has been archived by the owner on Aug 9, 2022. It is now read-only.

Fix bonding notification error #287

Merged
merged 1 commit into from
Dec 16, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion packages/graphql-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ Approve an amount for an ERC20 token transfer
</tr>
<tr>
<td colspan="2" valign="top"><strong>bond</strong></td>
<td valign="top"><a href="#boolean">Boolean</a></td>
<td valign="top"><a href="#json">JSON</a></td>
<td>

Submits a bond transaction for a previously approved amount
Expand Down Expand Up @@ -882,6 +882,15 @@ Protocol targetBondingRate

Protocol transcoderPoolMaxSize

</td>
</tr>
<tr>
<td colspan="2" valign="top"><strong>maxEarningsClaimsRounds</strong></td>
<td valign="top"><a href="#string">String</a>!</td>
<td>

Protocol maxEarningsClaimsRounds

</td>
</tr>
</tbody>
Expand Down
2 changes: 1 addition & 1 deletion packages/graphql-sdk/docs/mutation.doc.html
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ <h2 id="graphql-schema-definition" class="graphdoc-section__title slds-text-head
</a>
GraphQL Schema definition
</h2>
<code class="highlight"><ul class="code" style="padding-left:42px"><li><span class="keyword operator ts">type</span> <span class="identifier">Mutation</span> {</li><li></li><li><span class="tab"><span class="comment line"># Approve an amount for an ERC20 token transfer</span></span></li><li><span class="tab"><span class="comment line"># </span></span></li><li><span class="tab"><span class="comment line"># Arguments</span></span></li><li><span class="tab"><span class="comment line"># <strong>type</strong>: </span></span></li><li><span class="tab"><span class="comment line"># <strong>amount</strong>: </span></span></li><li><span class="tab"><span class="meta">approve</span>(<span class="meta">type</span>: <a class="support type" href="string.doc.html">String</a>!, <span class="meta">amount</span>: <a class="support type" href="string.doc.html">String</a>!): <a class="support type" href="boolean.doc.html">Boolean</a> </span></li><li></li><li><span class="tab"><span class="comment line"># Submits a bond transaction for a previously approved amount</span></span></li><li><span class="tab"><span class="comment line"># </span></span></li><li><span class="tab"><span class="comment line"># Arguments</span></span></li><li><span class="tab"><span class="comment line"># <strong>to</strong>: </span></span></li><li><span class="tab"><span class="comment line"># <strong>amount</strong>: </span></span></li><li><span class="tab"><span class="meta">bond</span>(<span class="meta">to</span>: <a class="support type" href="string.doc.html">String</a>!, <span class="meta">amount</span>: <a class="support type" href="string.doc.html">String</a>!): <a class="support type" href="boolean.doc.html">Boolean</a> </span></li><li></li><li><span class="tab"><span class="comment line"># Claims earnings from your last claim round through specified round</span></span></li><li><span class="tab"><span class="comment line"># </span></span></li><li><span class="tab"><span class="comment line"># Arguments</span></span></li><li><span class="tab"><span class="comment line"># <strong>endRound</strong>: </span></span></li><li><span class="tab"><span class="meta">claimEarnings</span>(<span class="meta">endRound</span>: <a class="support type" href="string.doc.html">String</a>!): <a class="support type" href="boolean.doc.html">Boolean</a> </span></li><li></li><li><span class="tab"><span class="comment line"># Sends a transaction based on an input object</span></span></li><li><span class="tab"><span class="comment line"># </span></span></li><li><span class="tab"><span class="comment line"># Arguments</span></span></li><li><span class="tab"><span class="comment line"># <strong>options</strong>: </span></span></li><li><span class="tab"><span class="meta">sendTransaction</span>(<span class="meta">options</span>: <a class="support type" href="json.doc.html">JSON</a>!): <a class="support type" href="boolean.doc.html">Boolean</a> </span></li><li></li><li><span class="tab"><span class="comment line"># Submits a bond transaction for a previously approved amount</span></span></li><li><span class="tab"><span class="meta">unbond</span>: <a class="support type" href="boolean.doc.html">Boolean</a> </span></li><li>}</li></ul></code>
<code class="highlight"><ul class="code" style="padding-left:42px"><li><span class="keyword operator ts">type</span> <span class="identifier">Mutation</span> {</li><li></li><li><span class="tab"><span class="comment line"># Approve an amount for an ERC20 token transfer</span></span></li><li><span class="tab"><span class="comment line"># </span></span></li><li><span class="tab"><span class="comment line"># Arguments</span></span></li><li><span class="tab"><span class="comment line"># <strong>type</strong>: </span></span></li><li><span class="tab"><span class="comment line"># <strong>amount</strong>: </span></span></li><li><span class="tab"><span class="meta">approve</span>(<span class="meta">type</span>: <a class="support type" href="string.doc.html">String</a>!, <span class="meta">amount</span>: <a class="support type" href="string.doc.html">String</a>!): <a class="support type" href="boolean.doc.html">Boolean</a> </span></li><li></li><li><span class="tab"><span class="comment line"># Submits a bond transaction for a previously approved amount</span></span></li><li><span class="tab"><span class="comment line"># </span></span></li><li><span class="tab"><span class="comment line"># Arguments</span></span></li><li><span class="tab"><span class="comment line"># <strong>to</strong>: </span></span></li><li><span class="tab"><span class="comment line"># <strong>amount</strong>: </span></span></li><li><span class="tab"><span class="meta">bond</span>(<span class="meta">to</span>: <a class="support type" href="string.doc.html">String</a>!, <span class="meta">amount</span>: <a class="support type" href="string.doc.html">String</a>!): <a class="support type" href="json.doc.html">JSON</a> </span></li><li></li><li><span class="tab"><span class="comment line"># Claims earnings from your last claim round through specified round</span></span></li><li><span class="tab"><span class="comment line"># </span></span></li><li><span class="tab"><span class="comment line"># Arguments</span></span></li><li><span class="tab"><span class="comment line"># <strong>endRound</strong>: </span></span></li><li><span class="tab"><span class="meta">claimEarnings</span>(<span class="meta">endRound</span>: <a class="support type" href="string.doc.html">String</a>!): <a class="support type" href="boolean.doc.html">Boolean</a> </span></li><li></li><li><span class="tab"><span class="comment line"># Sends a transaction based on an input object</span></span></li><li><span class="tab"><span class="comment line"># </span></span></li><li><span class="tab"><span class="comment line"># Arguments</span></span></li><li><span class="tab"><span class="comment line"># <strong>options</strong>: </span></span></li><li><span class="tab"><span class="meta">sendTransaction</span>(<span class="meta">options</span>: <a class="support type" href="json.doc.html">JSON</a>!): <a class="support type" href="boolean.doc.html">Boolean</a> </span></li><li></li><li><span class="tab"><span class="comment line"># Submits a bond transaction for a previously approved amount</span></span></li><li><span class="tab"><span class="meta">unbond</span>: <a class="support type" href="boolean.doc.html">Boolean</a> </span></li><li>}</li></ul></code>
</div>
</section>
<section>
Expand Down
2 changes: 1 addition & 1 deletion packages/graphql-sdk/docs/protocol.doc.html
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ <h2 id="graphql-schema-definition" class="graphdoc-section__title slds-text-head
</a>
GraphQL Schema definition
</h2>
<code class="highlight"><ul class="code" style="padding-left:42px"><li><span class="keyword operator ts">type</span> <span class="identifier">Protocol</span> {</li><li></li><li><span class="tab"><span class="comment line"># Protocol id</span></span></li><li><span class="tab"><span class="meta">id</span>: <a class="support type" href="string.doc.html">String</a>! </span></li><li></li><li><span class="tab"><span class="comment line"># Protocol paused</span></span></li><li><span class="tab"><span class="meta">paused</span>: <a class="support type" href="boolean.doc.html">Boolean</a>! </span></li><li></li><li><span class="tab"><span class="comment line"># Protocol totalTokenSupply</span></span></li><li><span class="tab"><span class="meta">totalTokenSupply</span>: <a class="support type" href="string.doc.html">String</a>! </span></li><li></li><li><span class="tab"><span class="comment line"># Protocol totalBondedToken</span></span></li><li><span class="tab"><span class="meta">totalBondedToken</span>: <a class="support type" href="string.doc.html">String</a>! </span></li><li></li><li><span class="tab"><span class="comment line"># Protocol targetBondingRate</span></span></li><li><span class="tab"><span class="meta">targetBondingRate</span>: <a class="support type" href="string.doc.html">String</a>! </span></li><li></li><li><span class="tab"><span class="comment line"># Protocol transcoderPoolMaxSize</span></span></li><li><span class="tab"><span class="meta">transcoderPoolMaxSize</span>: <a class="support type" href="string.doc.html">String</a>! </span></li><li>}</li></ul></code>
<code class="highlight"><ul class="code" style="padding-left:42px"><li><span class="keyword operator ts">type</span> <span class="identifier">Protocol</span> {</li><li></li><li><span class="tab"><span class="comment line"># Protocol id</span></span></li><li><span class="tab"><span class="meta">id</span>: <a class="support type" href="string.doc.html">String</a>! </span></li><li></li><li><span class="tab"><span class="comment line"># Protocol paused</span></span></li><li><span class="tab"><span class="meta">paused</span>: <a class="support type" href="boolean.doc.html">Boolean</a>! </span></li><li></li><li><span class="tab"><span class="comment line"># Protocol totalTokenSupply</span></span></li><li><span class="tab"><span class="meta">totalTokenSupply</span>: <a class="support type" href="string.doc.html">String</a>! </span></li><li></li><li><span class="tab"><span class="comment line"># Protocol totalBondedToken</span></span></li><li><span class="tab"><span class="meta">totalBondedToken</span>: <a class="support type" href="string.doc.html">String</a>! </span></li><li></li><li><span class="tab"><span class="comment line"># Protocol targetBondingRate</span></span></li><li><span class="tab"><span class="meta">targetBondingRate</span>: <a class="support type" href="string.doc.html">String</a>! </span></li><li></li><li><span class="tab"><span class="comment line"># Protocol transcoderPoolMaxSize</span></span></li><li><span class="tab"><span class="meta">transcoderPoolMaxSize</span>: <a class="support type" href="string.doc.html">String</a>! </span></li><li></li><li><span class="tab"><span class="comment line"># Protocol maxEarningsClaimsRounds</span></span></li><li><span class="tab"><span class="meta">maxEarningsClaimsRounds</span>: <a class="support type" href="string.doc.html">String</a>! </span></li><li>}</li></ul></code>
</div>
</section>
<section>
Expand Down
2 changes: 1 addition & 1 deletion packages/graphql-sdk/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2098,7 +2098,7 @@
],
"type": {
"kind": "SCALAR",
"name": "Boolean",
"name": "JSON",
"ofType": null
},
"isDeprecated": false,
Expand Down
2 changes: 1 addition & 1 deletion packages/graphql-sdk/src/types/Mutation.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type Mutation {
approve(type: String!, amount: String!): Boolean

"Submits a bond transaction for a previously approved amount"
bond(to: String!, amount: String!): Boolean
bond(to: String!, amount: String!): JSON

"Claims earnings from your last claim round through specified round"
claimEarnings(endRound: String!): Boolean
Expand Down