CosmWasm / sylvia

CosmWasm smart contract framework
Apache License 2.0
96 stars 16 forks source link

Contract api #248

Closed jawoznia closed 11 months ago

jawoznia commented 1 year ago

Impl Extension trait on Contract. This change is required to generate entry_points without requiring user to specify which generics are for which messages.

Unfortunately rust compiler requires fully-qualified path and in current state it's not the most user friendly Api so the primary use case is code generation.

86

codecov[bot] commented 1 year ago

Codecov Report

Merging #248 (c653e88) into feat/generics_support (9d44792) will increase coverage by 1.14%. The diff coverage is 87.34%.

@@                    Coverage Diff                    @@
##           feat/generics_support     #248      +/-   ##
=========================================================
+ Coverage                  85.87%   87.02%   +1.14%     
=========================================================
  Files                         24       25       +1     
  Lines                       1657     1726      +69     
=========================================================
+ Hits                        1423     1502      +79     
+ Misses                       234      224      -10     
Files Coverage Δ
sylvia-derive/src/input.rs 93.44% <100.00%> (+0.33%) :arrow_up:
sylvia-derive/src/interfaces.rs 86.86% <100.00%> (ø)
sylvia-derive/src/message.rs 85.07% <100.00%> (+2.34%) :arrow_up:
sylvia-derive/src/multitest.rs 97.23% <100.00%> (+0.93%) :arrow_up:
sylvia-derive/src/remote.rs 100.00% <100.00%> (ø)
sylvia/src/types.rs 80.00% <ø> (ø)
sylvia/tests/api.rs 0.00% <0.00%> (ø)

... and 2 files with indirect coverage changes

:mega: Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!