Skip to content

Commit

Permalink
docs: Update MIGRATING and CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
jawoznia committed Aug 21, 2024
1 parent 87b342a commit c00a9d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ and this project adheres to
### Added

- Emit error if contract macro is above entry_points
- Remove support for `, custom(msg=.. ,query=..)` in entry_points
- Deprecate support for `, custom(msg=.. ,query=..)` in entry_points
- Add CustomMsg and CustomQuery to ContractApi

### Fixed
Expand All @@ -19,7 +19,7 @@ and this project adheres to
### Other

- *(sylvia-derive)* Document inner types
- [**breaking**] Remove `InterfaceApi` in favor of `InterfaceMessagesApi` ([#413](https://github.com/CosmWasm/sylvia/pull/413))
- Deprecate `InterfaceApi` in favor of `InterfaceMessagesApi` ([#413](https://github.com/CosmWasm/sylvia/pull/413))
- Fix duplicated instantiation error
- Refactor struct message generation
- Generic cw1-whitelist example ([#404](https://github.com/CosmWasm/sylvia/pull/404))
Expand Down
7 changes: 3 additions & 4 deletions MIGRATING.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ The `, custom(msg=..., query=...)` part is now not supported and can be safely r

```diff
-#[entry_points(generics<Empty, Empty>, custom(msg=Empty, query=Empty))]
+#[entry_points(generics<msg=Empty, query=Empty>)]
+#[entry_points(generics<Empty, Empty>)]
#[contract]
#[sv::custom(msg=E, query=Q)]
impl<E, Q> CounterContract<E, Q>
Expand All @@ -24,15 +24,14 @@ where

### Removed `InterfaceApi` trait

The `InterfaceApi` trait has been removed in favor of the `InterfaceMessagesApi`.
The `InterfaceApi` trait has been deprecated in favor of the `InterfaceMessagesApi`.
It will be removed in the `2.0.0` release.

```diff
-let _ = <dyn super::sv::Api as sylvia::types::InterfaceApi>::Query::query_something();
+let _ = <dyn super::MyInterface as super::sv::InterfaceMessagesApi>::Query::query_something();
```

Note: the `InterfaceMessagesApi` does not expose Querier type.

## 1.0.2 -> 1.1.0

### Generics in `sv::messages` not required
Expand Down

0 comments on commit c00a9d8

Please sign in to comment.