CosmWasm / sylvia

CosmWasm smart contract framework
Apache License 2.0
90 stars 14 forks source link

feat: Add support for `#[sv::]` attributes for all sylvia attribtues. #310

Closed kulikthebird closed 5 months ago

kulikthebird commented 5 months ago

This PR adds the requirement for sv:: prefix for all attributes handled by sylvia. Attributes wihtout sv:: prefix are not supported and are not handled by the macro.

Other than that, this change also introduces refactoring commits - the parser has been split into a multi-file module, and the interface has been unified.

codecov[bot] commented 5 months ago

Codecov Report

Attention: Patch coverage is 75.65217% with 84 lines in your changes are missing coverage. Please review.

Project coverage is 87.76%. Comparing base (9778555) to head (94363f5).

Files Patch % Lines
sylvia-derive/src/parser/entry_point.rs 0.00% 24 Missing :warning:
sylvia-derive/src/parser/attributes/mod.rs 72.34% 13 Missing :warning:
sylvia-derive/src/message.rs 62.96% 10 Missing :warning:
sylvia-derive/src/parser/attributes/messages.rs 74.07% 7 Missing :warning:
sylvia-derive/src/parser/mod.rs 65.00% 7 Missing :warning:
sylvia-derive/src/parser/attributes/msg.rs 88.63% 5 Missing :warning:
sylvia-derive/src/message_type.rs 94.36% 4 Missing :warning:
...rive/src/parser/attributes/override_entry_point.rs 81.81% 4 Missing :warning:
sylvia-derive/src/interfaces.rs 25.00% 3 Missing :warning:
sylvia-derive/src/parser/contract.rs 78.57% 3 Missing :warning:
... and 2 more
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #310 +/- ## ========================================== + Coverage 87.33% 87.76% +0.43% ========================================== Files 28 37 +9 Lines 2171 2150 -21 ========================================== - Hits 1896 1887 -9 + Misses 275 263 -12 ```

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