Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve abi types in wasmv1 #27

Merged
merged 37 commits into from
Jul 26, 2023
Merged
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
2c0a935
WIP improve ABI types
Jun 5, 2023
c62e0a8
Factorize Result messages
Jun 16, 2023
49ee9a7
Response to some comments in #17
Jun 19, 2023
e8d96c8
Add Time related operations
Jun 19, 2023
de42d76
Add CompareNative[Address|PubKey|Sig]
Jun 19, 2023
f643139
Add VerifyNativeSigRequest and fixed -> int
Jun 19, 2023
14b13e3
Add CompareNativeAmount and Keccak256 hashing
Jun 19, 2023
d9d4c63
Add VerifyEvmSigResult VerifyEvmSigResult VerifyEvmSigResult
Jun 19, 2023
0d728d5
Add TransferCoinsResult GenerateEventResult
Jun 19, 2023
d44c932
For Verify*Request sig is the first argument
Jun 20, 2023
b118730
Add CreateSCResult
Jun 20, 2023
0f9e0ed
Add FunctionExistsResult
Jun 20, 2023
6d6d7c6
Add all but 1 request/result for legacy abi
Jun 21, 2023
fed76c6
Various .proto improvements (#19)
Leo-Besancon Jun 27, 2023
b9cd32f
Apply modification from issue #246
Jun 28, 2023
f1007b7
Added prefix to GetOpKeysRequest (#24)
Leo-Besancon Jun 29, 2023
0ed7dfa
Use google.protobuf.xIntxxValue for int values to discriminate 0 form…
Jun 28, 2023
e63304f
unsafe random and send async message types
Eitu33 Jun 29, 2023
f872b1c
add to oneof
Eitu33 Jun 30, 2023
f25767e
add local_execution_response to oneof
Eitu33 Jun 30, 2023
bd4f5c7
doc
Eitu33 Jun 30, 2023
6aa7ca3
merge parent and fix conflicts
Eitu33 Jun 30, 2023
2460cf6
regen doc
Eitu33 Jun 30, 2023
0beefb5
Merge pull request #26 from massalabs/feature/unsafe_random_and_async…
Eitu33 Jun 30, 2023
34b498a
Revert Use google.protobuf.xIntxxValue for int values to discriminate…
Jul 4, 2023
40f0d37
Fix PR comment
Jul 4, 2023
015d32e
Remove useless CheckBlake3HashRequest
Jul 4, 2023
cc7a13f
Remove useless CompareSigRequest
Jul 6, 2023
7f59976
GetOriginOperationId request & result + doc
Eitu33 Jul 6, 2023
4782dbd
Reference
Eitu33 Jul 6, 2023
46487d7
Merge pull request #29 from massalabs/origin-op-id
Eitu33 Jul 6, 2023
012cbd4
Fix DateNowResult, remove useless ProcessExitResult
Jul 6, 2023
cf136fc
Remove unused VerifyBlsSingleSigRequest, VerifyBlsMultiSigRequest, Se…
Jul 7, 2023
1cc6fd5
Rename Blake3HashRequest to HashBlake3Request for consistency
Jul 7, 2023
b2f16d6
Better names
Jul 12, 2023
0b9cf85
Evm requests & results
Eitu33 Jul 25, 2023
842ab8d
Merge pull request #37 from massalabs/evm-update-v2
Eitu33 Jul 25, 2023
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
4,155 changes: 4,052 additions & 103 deletions doc/abi.html

Large diffs are not rendered by default.

2,135 changes: 2,073 additions & 62 deletions doc/abi.md

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions doc/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -1598,6 +1598,13 @@ <h3 id="massa.api.v1.LargestStakersContext">LargestStakersContext</h3>
<td><p>Slot </p></td>
</tr>

<tr>
<td>in_downtime</td>
<td><a href="#bool">bool</a></td>
<td></td>
<td><p>If the chain is in downtime, we will return the last snapshot before the downtime </p></td>
</tr>

</tbody>
</table>

Expand Down
1 change: 1 addition & 0 deletions doc/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,7 @@ LargestStakers context
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| slot | [massa.model.v1.Slot](#massa-model-v1-Slot) | | Slot |
| in_downtime | [bool](#bool) | | If the chain is in downtime, we will return the last snapshot before the downtime |



Expand Down
290 changes: 84 additions & 206 deletions doc/commons.html
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,6 @@ <h2>Table of Contents</h2>
<a href="#massa%2fmodel%2fv1%2faddress.proto">massa/model/v1/address.proto</a>
<ul>

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


<li>
<a href="#massa.model.v1.AddressCategory"><span class="badge">E</span>AddressCategory</a>
Expand Down Expand Up @@ -475,25 +471,6 @@ <h2>Table of Contents</h2>



</ul>
</li>


<li>
<a href="#massa%2fmodel%2fv1%2fsignature.proto">massa/model/v1/signature.proto</a>
<ul>

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

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




</ul>
</li>

Expand Down Expand Up @@ -528,21 +505,6 @@ <h2>Table of Contents</h2>



</ul>
</li>


<li>
<a href="#massa%2fmodel%2fv1%2fhash.proto">massa/model/v1/hash.proto</a>
<ul>

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




</ul>
</li>

Expand Down Expand Up @@ -598,6 +560,22 @@ <h2>Table of Contents</h2>
<a href="#massa.model.v1.BytesMapFieldEntry"><span class="badge">M</span>BytesMapFieldEntry</a>
</li>

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

<li>
<a href="#massa.model.v1.ComparisonResult.Equal"><span class="badge">M</span>ComparisonResult.Equal</a>
</li>

<li>
<a href="#massa.model.v1.ComparisonResult.LeftGreater"><span class="badge">M</span>ComparisonResult.LeftGreater</a>
</li>

<li>
<a href="#massa.model.v1.ComparisonResult.LeftLower"><span class="badge">M</span>ComparisonResult.LeftLower</a>
</li>

<li>
<a href="#massa.model.v1.SecureShare"><span class="badge">M</span>SecureShare</a>
</li>
Expand Down Expand Up @@ -1275,44 +1253,6 @@ <h2 id="massa/model/v1/address.proto">massa/model/v1/address.proto</h2><a href="
<p></p>


<h3 id="massa.model.v1.NativeAddress">NativeAddress</h3>
<p>Massa NativeAddress</p>


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

<tr>
<td>category</td>
<td><a href="#massa.model.v1.AddressCategory">AddressCategory</a></td>
<td></td>
<td><p>Address category </p></td>
</tr>

<tr>
<td>version</td>
<td><a href="#fixed64">fixed64</a></td>
<td></td>
<td><p>Address version </p></td>
</tr>

<tr>
<td>content</td>
<td><a href="#bytes">bytes</a></td>
<td></td>
<td><p>Address content </p></td>
</tr>

</tbody>
</table>







<h3 id="massa.model.v1.AddressCategory">AddressCategory</h3>
Expand Down Expand Up @@ -2905,82 +2845,6 @@ <h3 id="massa.model.v1.SelectorDraws">SelectorDraws</h3>



<div class="file-heading">
<h2 id="massa/model/v1/signature.proto">massa/model/v1/signature.proto</h2><a href="#title">Top</a>
</div>
<p></p>


<h3 id="massa.model.v1.NativePubKey">NativePubKey</h3>
<p></p>


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

<tr>
<td>version</td>
<td><a href="#fixed64">fixed64</a></td>
<td></td>
<td><p> </p></td>
</tr>

<tr>
<td>content</td>
<td><a href="#bytes">bytes</a></td>
<td></td>
<td><p> </p></td>
</tr>

</tbody>
</table>





<h3 id="massa.model.v1.NativeSig">NativeSig</h3>
<p></p>


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

<tr>
<td>version</td>
<td><a href="#fixed64">fixed64</a></td>
<td></td>
<td><p> </p></td>
</tr>

<tr>
<td>content</td>
<td><a href="#bytes">bytes</a></td>
<td></td>
<td><p> </p></td>
</tr>

</tbody>
</table>













<div class="file-heading">
<h2 id="massa/model/v1/endorsement.proto">massa/model/v1/endorsement.proto</h2><a href="#title">Top</a>
</div>
Expand Down Expand Up @@ -3071,6 +2935,13 @@ <h3 id="massa.model.v1.SignedEndorsement">SignedEndorsement</h3>
<td><p>A secure hash of the data. See also [massa_hash::Hash] </p></td>
</tr>

<tr>
<td>serialized_size</td>
<td><a href="#fixed64">fixed64</a></td>
<td></td>
<td><p>The size of the serialized endorsement </p></td>
</tr>

</tbody>
</table>

Expand Down Expand Up @@ -3104,14 +2975,14 @@ <h3 id="massa.model.v1.NativeAmount">NativeAmount</h3>

<tr>
<td>mantissa</td>
<td><a href="#fixed64">fixed64</a></td>
<td><a href="#uint64">uint64</a></td>
<td></td>
<td><p>Mantissa </p></td>
</tr>

<tr>
<td>scale</td>
<td><a href="#fixed32">fixed32</a></td>
<td><a href="#uint32">uint32</a></td>
<td></td>
<td><p>Scale </p></td>
</tr>
Expand All @@ -3131,51 +3002,6 @@ <h3 id="massa.model.v1.NativeAmount">NativeAmount</h3>



<div class="file-heading">
<h2 id="massa/model/v1/hash.proto">massa/model/v1/hash.proto</h2><a href="#title">Top</a>
</div>
<p></p>


<h3 id="massa.model.v1.NativeHash">NativeHash</h3>
<p></p>


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

<tr>
<td>version</td>
<td><a href="#fixed64">fixed64</a></td>
<td></td>
<td><p> </p></td>
</tr>

<tr>
<td>content</td>
<td><a href="#bytes">bytes</a></td>
<td></td>
<td><p> </p></td>
</tr>

</tbody>
</table>













<div class="file-heading">
<h2 id="massa/model/v1/block.proto">massa/model/v1/block.proto</h2><a href="#title">Top</a>
</div>
Expand Down Expand Up @@ -3562,6 +3388,65 @@ <h3 id="massa.model.v1.BytesMapFieldEntry">BytesMapFieldEntry</h3>



<h3 id="massa.model.v1.ComparisonResult">ComparisonResult</h3>
<p>Comparison result</p>


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

<tr>
<td>left_lower</td>
<td><a href="#massa.model.v1.ComparisonResult.LeftLower">ComparisonResult.LeftLower</a></td>
<td></td>
<td><p> </p></td>
</tr>

<tr>
<td>equal</td>
<td><a href="#massa.model.v1.ComparisonResult.Equal">ComparisonResult.Equal</a></td>
<td></td>
<td><p> </p></td>
</tr>

<tr>
<td>left_greater</td>
<td><a href="#massa.model.v1.ComparisonResult.LeftGreater">ComparisonResult.LeftGreater</a></td>
<td></td>
<td><p> </p></td>
</tr>

</tbody>
</table>





<h3 id="massa.model.v1.ComparisonResult.Equal">ComparisonResult.Equal</h3>
<p>Left is equal to right</p>





<h3 id="massa.model.v1.ComparisonResult.LeftGreater">ComparisonResult.LeftGreater</h3>
<p>Left is greater</p>





<h3 id="massa.model.v1.ComparisonResult.LeftLower">ComparisonResult.LeftLower</h3>
<p>Left is lower</p>





<h3 id="massa.model.v1.SecureShare">SecureShare</h3>
<p>Packages a type such that it can be securely sent and received in a trust-free network</p>

Expand Down Expand Up @@ -3607,13 +3492,6 @@ <h3 id="massa.model.v1.SecureShare">SecureShare</h3>
<td><p>A secure hash of the data. See also [massa_hash::Hash] </p></td>
</tr>

<tr>
<td>serialized_size</td>
<td><a href="#fixed64">fixed64</a></td>
<td></td>
<td><p>The size of the serialized endorsement </p></td>
</tr>

</tbody>
</table>

Expand Down
Loading