From b1ccdc8176159113ae2044a95e9ecfe63348818e Mon Sep 17 00:00:00 2001 From: Mauro Lacy Date: Wed, 27 Oct 2021 19:21:24 +0200 Subject: [PATCH] Publish MsgInstantiate / Execute responses Remove serialization / deserialization traits This reverts commit 6577c8a109646e60984320b827c7d4bf2a7db443. --- packages/cw0/src/lib.rs | 2 +- packages/cw0/src/parse_reply.rs | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/cw0/src/lib.rs b/packages/cw0/src/lib.rs index 332437a37..466efb8c7 100644 --- a/packages/cw0/src/lib.rs +++ b/packages/cw0/src/lib.rs @@ -10,7 +10,7 @@ pub use pagination::{ }; pub use parse_reply::{ parse_execute_response_data, parse_instantiate_response_data, parse_reply_execute_data, - parse_reply_instantiate_data, + parse_reply_instantiate_data, MsgExecuteContractResponse, MsgInstantiateContractResponse, }; pub use payment::{may_pay, must_pay, nonpayable, one_coin, PaymentError}; diff --git a/packages/cw0/src/parse_reply.rs b/packages/cw0/src/parse_reply.rs index 2035fa095..37e1a27ca 100644 --- a/packages/cw0/src/parse_reply.rs +++ b/packages/cw0/src/parse_reply.rs @@ -1,5 +1,3 @@ -use schemars::JsonSchema; -use serde::{Deserialize, Serialize}; use thiserror::Error; use cosmwasm_std::{Binary, Reply}; @@ -9,13 +7,13 @@ const WIRE_TYPE_LENGTH_DELIMITED: u8 = 2; // Up to 9 bytes of varints as a practical limit (https://github.com/multiformats/unsigned-varint#practical-maximum-of-9-bytes-for-security) const VARINT_MAX_BYTES: usize = 9; -#[derive(Serialize, Deserialize, Clone, PartialEq, JsonSchema, Debug)] +#[derive(Clone, Debug, PartialEq)] pub struct MsgInstantiateContractResponse { pub contract_address: String, pub data: Option, } -#[derive(Serialize, Deserialize, Clone, PartialEq, JsonSchema, Debug)] +#[derive(Clone, Debug, PartialEq)] pub struct MsgExecuteContractResponse { pub data: Option, }