diff --git a/Cargo.toml b/Cargo.toml index 048ab94..d2b6c92 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,12 +11,8 @@ library = [] crate-type = ["cdylib", "rlib"] [dependencies] -sylvia = "1.2.1" -serde = "1.0.208" -schemars = "0.8.21" -cosmwasm-schema = "2.1.3" -cosmwasm-std = "2.1.3" +sylvia = "1.3.0" cw-storage-plus = "2.0.0" [dev-dependencies] -sylvia = { version = "1.2.1", features = ["mt"] } +sylvia = { version = "1.3.0", features = ["mt"] } diff --git a/src/bin/schema.rs b/src/bin/schema.rs index fc2e284..9035d0d 100644 --- a/src/bin/schema.rs +++ b/src/bin/schema.rs @@ -1,10 +1,10 @@ -use cosmwasm_schema::write_api; - use {{crate_name}}::contract::sv::{ContractExecMsg, ContractQueryMsg, InstantiateMsg}; +use sylvia::cw_schema::write_api; use sylvia::cw_std::Empty; fn main() { write_api! { + crate_name: sylvia::cw_schema, instantiate: InstantiateMsg, execute: ContractExecMsg, query: ContractQueryMsg, diff --git a/src/contract.rs b/src/contract.rs index ba2407f..06bc635 100644 --- a/src/contract.rs +++ b/src/contract.rs @@ -1,11 +1,11 @@ -use cosmwasm_schema::cw_serde; use cw_storage_plus::Item; +use sylvia::contract; +use sylvia::ctx::{ExecCtx, InstantiateCtx, QueryCtx}; +use sylvia::cw_schema::cw_serde; #[cfg(not(feature = "library"))] use sylvia::cw_std::Empty; use sylvia::cw_std::{Response, StdResult}; - -use sylvia::contract; -use sylvia::types::{CustomMsg, CustomQuery, ExecCtx, InstantiateCtx, QueryCtx}; +use sylvia::types::{CustomMsg, CustomQuery}; pub struct CounterContract { pub count: Item, @@ -49,7 +49,7 @@ where } } -#[cw_serde] +#[cw_serde(crate = "sylvia")] pub struct CountResponse { pub count: u64, }