Skip to content

Commit

Permalink
refactor: add filters to streams
Browse files Browse the repository at this point in the history
  • Loading branch information
aoudiamoncef committed Aug 22, 2023
1 parent a29406b commit 91a8588
Show file tree
Hide file tree
Showing 5 changed files with 353 additions and 26 deletions.
206 changes: 202 additions & 4 deletions doc/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,14 @@ <h2>Table of Contents</h2>
<a href="#massa.api.v1.GetTransactionsThroughputResponse"><span class="badge">M</span>GetTransactionsThroughputResponse</a>
</li>

<li>
<a href="#massa.api.v1.NewBlockHeadersBlocksFilter"><span class="badge">M</span>NewBlockHeadersBlocksFilter</a>
</li>

<li>
<a href="#massa.api.v1.NewBlocksFilter"><span class="badge">M</span>NewBlocksFilter</a>
</li>

<li>
<a href="#massa.api.v1.NewBlocksHeadersRequest"><span class="badge">M</span>NewBlocksHeadersRequest</a>
</li>
Expand All @@ -573,6 +581,10 @@ <h2>Table of Contents</h2>
<a href="#massa.api.v1.NewBlocksResponse"><span class="badge">M</span>NewBlocksResponse</a>
</li>

<li>
<a href="#massa.api.v1.NewEndorsementsFilter"><span class="badge">M</span>NewEndorsementsFilter</a>
</li>

<li>
<a href="#massa.api.v1.NewEndorsementsRequest"><span class="badge">M</span>NewEndorsementsRequest</a>
</li>
Expand Down Expand Up @@ -3187,10 +3199,103 @@ <h3 id="massa.api.v1.GetTransactionsThroughputResponse">GetTransactionsThroughpu



<h3 id="massa.api.v1.NewBlockHeadersBlocksFilter">NewBlockHeadersBlocksFilter</h3>
<p>NewBlockHeadersBlocks Filter</p>


<table class="field-table">
<thead>
<tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
</thead>
<tbody>

<tr>
<td>block_ids</td>
<td><a href="#massa.model.v1.BlockIds">massa.model.v1.BlockIds</a></td>
<td></td>
<td><p>One of this block ids </p></td>
</tr>

<tr>
<td>addresses</td>
<td><a href="#massa.model.v1.Addresses">massa.model.v1.Addresses</a></td>
<td></td>
<td><p>One of this creator addresses </p></td>
</tr>

<tr>
<td>slot_range</td>
<td><a href="#massa.model.v1.SlotRange">massa.model.v1.SlotRange</a></td>
<td></td>
<td><p>One of this slot ranges (inclusive) </p></td>
</tr>

</tbody>
</table>





<h3 id="massa.api.v1.NewBlocksFilter">NewBlocksFilter</h3>
<p>NewBlocks Filter</p>


<table class="field-table">
<thead>
<tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
</thead>
<tbody>

<tr>
<td>block_ids</td>
<td><a href="#massa.model.v1.BlockIds">massa.model.v1.BlockIds</a></td>
<td></td>
<td><p>One of this block ids </p></td>
</tr>

<tr>
<td>addresses</td>
<td><a href="#massa.model.v1.Addresses">massa.model.v1.Addresses</a></td>
<td></td>
<td><p>One of this creator addresses </p></td>
</tr>

<tr>
<td>slot_range</td>
<td><a href="#massa.model.v1.SlotRange">massa.model.v1.SlotRange</a></td>
<td></td>
<td><p>One of this slot ranges (inclusive) </p></td>
</tr>

</tbody>
</table>





<h3 id="massa.api.v1.NewBlocksHeadersRequest">NewBlocksHeadersRequest</h3>
<p>NewBlocksHeadersRequest holds request for NewBlocksHeaders</p>


<table class="field-table">
<thead>
<tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
</thead>
<tbody>

<tr>
<td>filters</td>
<td><a href="#massa.api.v1.NewBlockHeadersBlocksFilter">NewBlockHeadersBlocksFilter</a></td>
<td>repeated</td>
<td><p>Returns all the block headers that verify all the filters </p></td>
</tr>

</tbody>
</table>





Expand Down Expand Up @@ -3222,6 +3327,23 @@ <h3 id="massa.api.v1.NewBlocksRequest">NewBlocksRequest</h3>
<p>NewBlocksRequest holds request for NewBlocks</p>


<table class="field-table">
<thead>
<tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
</thead>
<tbody>

<tr>
<td>filters</td>
<td><a href="#massa.api.v1.NewBlocksFilter">NewBlocksFilter</a></td>
<td>repeated</td>
<td><p>Returns all the blocks that verify all the filters </p></td>
</tr>

</tbody>
</table>





Expand Down Expand Up @@ -3249,10 +3371,65 @@ <h3 id="massa.api.v1.NewBlocksResponse">NewBlocksResponse</h3>



<h3 id="massa.api.v1.NewEndorsementsFilter">NewEndorsementsFilter</h3>
<p>NewEndorsements Filter</p>


<table class="field-table">
<thead>
<tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
</thead>
<tbody>

<tr>
<td>endorsement_ids</td>
<td><a href="#massa.model.v1.EndorsementIds">massa.model.v1.EndorsementIds</a></td>
<td></td>
<td><p>One of this endorsement ids </p></td>
</tr>

<tr>
<td>addresses</td>
<td><a href="#massa.model.v1.Addresses">massa.model.v1.Addresses</a></td>
<td></td>
<td><p>One of this creator addresses </p></td>
</tr>

<tr>
<td>block_ids</td>
<td><a href="#massa.model.v1.BlockIds">massa.model.v1.BlockIds</a></td>
<td></td>
<td><p>One of this block ids </p></td>
</tr>

</tbody>
</table>





<h3 id="massa.api.v1.NewEndorsementsRequest">NewEndorsementsRequest</h3>
<p>NewEndorsementsRequest holds request for NewEndorsements</p>


<table class="field-table">
<thead>
<tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
</thead>
<tbody>

<tr>
<td>filters</td>
<td><a href="#massa.api.v1.NewEndorsementsFilter">NewEndorsementsFilter</a></td>
<td>repeated</td>
<td><p>Returns all the endorsements that verify all the filters </p></td>
</tr>

</tbody>
</table>





Expand Down Expand Up @@ -3321,11 +3498,25 @@ <h3 id="massa.api.v1.NewOperationsFilter">NewOperationsFilter</h3>
</thead>
<tbody>

<tr>
<td>operation_ids</td>
<td><a href="#massa.model.v1.OperationIds">massa.model.v1.OperationIds</a></td>
<td></td>
<td><p>One of the operation ids </p></td>
</tr>

<tr>
<td>addresses</td>
<td><a href="#massa.model.v1.Addresses">massa.model.v1.Addresses</a></td>
<td></td>
<td><p>One of this creator addresses </p></td>
</tr>

<tr>
<td>operation_types</td>
<td><a href="#massa.model.v1.OpTypes">massa.model.v1.OpTypes</a></td>
<td></td>
<td><p>Filter </p></td>
<td><p>One of the operation types </p></td>
</tr>

</tbody>
Expand Down Expand Up @@ -3844,11 +4035,18 @@ <h3 id="massa.api.v1.SearchOperationsFilter">SearchOperationsFilter</h3>
<td><p>One of the operation ids </p></td>
</tr>

<tr>
<td>addresses</td>
<td><a href="#massa.model.v1.Addresses">massa.model.v1.Addresses</a></td>
<td></td>
<td><p>One of this creator addresses </p></td>
</tr>

<tr>
<td>operation_types</td>
<td><a href="#massa.model.v1.OpTypes">massa.model.v1.OpTypes</a></td>
<td></td>
<td><p>One of the operation types </p></td>
<td><p>One of the operation types. Requires at least addresses or operation_types to be set </p></td>
</tr>

</tbody>
Expand Down Expand Up @@ -4027,7 +4225,7 @@ <h3 id="massa.api.v1.SendEndorsementsResponse">SendEndorsementsResponse</h3>
<tbody>

<tr>
<td>endorsements_ids</td>
<td>endorsement_ids</td>
<td><a href="#massa.model.v1.EndorsementIds">massa.model.v1.EndorsementIds</a></td>
<td></td>
<td><p>Endorsement result </p></td>
Expand Down Expand Up @@ -4082,7 +4280,7 @@ <h3 id="massa.api.v1.SendOperationsResponse">SendOperationsResponse</h3>
<tbody>

<tr>
<td>operations_ids</td>
<td>operation_ids</td>
<td><a href="#massa.model.v1.OperationIds">massa.model.v1.OperationIds</a></td>
<td></td>
<td><p>Operation result </p></td>
Expand Down
Loading

0 comments on commit 91a8588

Please sign in to comment.