gnolang / gno

Gno: An interpreted, stack-based Go virtual machine to build succinct and composable apps + Gno.land: a blockchain for timeless code and fair open-source
https://gno.land/
Other
841 stars 342 forks source link

feat(gnovm): Support all valid types for function parameters and return values in code generation for native binding #2323

Open notJoon opened 2 weeks ago

notJoon commented 2 weeks ago

Description

Enhances the code generation functionality to support all valid types for function parameters and return values that will be injected to gno.

Changes

Modifies the typesEqual function to handle the following additional types:

part of #2317

codecov[bot] commented 2 weeks ago

Codecov Report

Attention: Patch coverage is 78.12500% with 14 lines in your changes missing coverage. Please review.

Project coverage is 54.66%. Comparing base (edb321f) to head (8cd96f3). Report is 24 commits behind head on master.

Files Patch % Lines
misc/genstd/mapping.go 78.12% 7 Missing and 7 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #2323 +/- ## ========================================== + Coverage 54.64% 54.66% +0.02% ========================================== Files 578 578 Lines 77870 77932 +62 ========================================== + Hits 42551 42603 +52 - Misses 32149 32154 +5 - Partials 3170 3175 +5 ``` | [Flag](https://app.codecov.io/gh/gnolang/gno/pull/2323/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gnolang) | Coverage Δ | | |---|---|---| | [misc/autocounterd](https://app.codecov.io/gh/gnolang/gno/pull/2323/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gnolang) | `0.00% <ø> (ø)` | | | [misc/genproto](https://app.codecov.io/gh/gnolang/gno/pull/2323/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gnolang) | `0.00% <ø> (ø)` | | | [misc/genstd](https://app.codecov.io/gh/gnolang/gno/pull/2323/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gnolang) | `75.43% <78.12%> (+1.53%)` | :arrow_up: | | [misc/goscan](https://app.codecov.io/gh/gnolang/gno/pull/2323/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gnolang) | `0.00% <ø> (ø)` | | | [misc/logos](https://app.codecov.io/gh/gnolang/gno/pull/2323/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gnolang) | `17.68% <ø> (ø)` | | | [misc/loop](https://app.codecov.io/gh/gnolang/gno/pull/2323/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gnolang) | `0.00% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=gnolang#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.