hirosystems / clarinet

Write, test and deploy high-quality smart contracts to the Stacks blockchain and Bitcoin.
https://hiro.so/clarinet
GNU General Public License v3.0
290 stars 129 forks source link

Feat/handle clarity 3 #1465

Closed hugocaillard closed 3 weeks ago

hugocaillard commented 3 weeks ago

Description

Update clarity-vm and clar2wasm.

Handle clarity 3 keywords as well as the new max_version property in the clarity reference. Tried to make it clearer when a keyword/function was introduced and removed


Before:

Screenshot 2024-06-03 at 17 53 46

After:

Screenshot 2024-06-03 at 17 50 47

With error (previously, it wouldn't even show the documentation)

Screenshot 2024-06-03 at 17 55 13
codecov[bot] commented 3 weeks ago

Codecov Report

Attention: Patch coverage is 39.83740% with 74 lines in your changes missing coverage. Please review.

Project coverage is 40.73%. Comparing base (343a01a) to head (56204ee).

Files Patch % Lines
components/clarinet-deployments/src/types.rs 0.00% 23 Missing :warning:
components/clarinet-files/src/project_manifest.rs 67.85% 18 Missing :warning:
...ents/clarity-lsp/src/common/requests/completion.rs 0.00% 16 Missing :warning:
components/clarity-repl/src/repl/datastore.rs 0.00% 6 Missing :warning:
...omponents/clarity-lsp/src/common/requests/hover.rs 0.00% 3 Missing :warning:
...ponents/clarity-lsp/src/common/requests/api_ref.rs 83.33% 2 Missing :warning:
components/clarity-lsp/src/common/state.rs 0.00% 2 Missing :warning:
components/stacks-codec/src/codec.rs 0.00% 2 Missing :warning:
...omponents/clarinet-deployments/src/requirements.rs 0.00% 1 Missing :warning:
components/clarity-repl/src/repl/mod.rs 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1465 +/- ## ========================================== + Coverage 40.71% 40.73% +0.02% ========================================== Files 87 87 Lines 32412 32370 -42 ========================================== - Hits 13197 13187 -10 + Misses 19215 19183 -32 ```

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