@@ -57,7 +57,9 @@ use crate::{Addr, IbcAcknowledgement, IbcPacket, Uint64};
57
57
/// })).unwrap()),
58
58
/// };
59
59
/// ```
60
- #[ derive( Serialize , Deserialize , Clone , Debug , PartialEq , Eq , JsonSchema ) ]
60
+ #[ derive(
61
+ Serialize , Deserialize , Clone , Debug , PartialEq , Eq , JsonSchema , cw_schema:: Schemaifier ,
62
+ ) ]
61
63
pub struct IbcCallbackRequest {
62
64
// using private fields to force use of the constructors
63
65
#[ serde( skip_serializing_if = "Option::is_none" ) ]
@@ -92,7 +94,9 @@ impl IbcCallbackRequest {
92
94
}
93
95
}
94
96
95
- #[ derive( Serialize , Deserialize , Clone , Debug , PartialEq , Eq , JsonSchema ) ]
97
+ #[ derive(
98
+ Serialize , Deserialize , Clone , Debug , PartialEq , Eq , JsonSchema , cw_schema:: Schemaifier ,
99
+ ) ]
96
100
pub struct IbcSrcCallback {
97
101
/// The source chain address that should receive the callback.
98
102
/// For CosmWasm contracts, this *must* be `env.contract.address`.
@@ -103,7 +107,9 @@ pub struct IbcSrcCallback {
103
107
pub gas_limit : Option < Uint64 > ,
104
108
}
105
109
106
- #[ derive( Serialize , Deserialize , Clone , Debug , PartialEq , Eq , JsonSchema ) ]
110
+ #[ derive(
111
+ Serialize , Deserialize , Clone , Debug , PartialEq , Eq , JsonSchema , cw_schema:: Schemaifier ,
112
+ ) ]
107
113
pub struct IbcDstCallback {
108
114
/// The destination chain address that should receive the callback.
109
115
pub address : String ,
@@ -126,14 +132,18 @@ pub struct IbcDstCallback {
126
132
/// - You have to add serialized [`IbcCallbackRequest`] to a specific field of the message.
127
133
/// For `IbcMsg::Transfer`, this is the `memo` field and it needs to be json-encoded.
128
134
/// - The receiver of the callback must also be the sender of the message.
129
- #[ derive( Serialize , Deserialize , Clone , Debug , PartialEq , Eq , JsonSchema ) ]
135
+ #[ derive(
136
+ Serialize , Deserialize , Clone , Debug , PartialEq , Eq , JsonSchema , cw_schema:: Schemaifier ,
137
+ ) ]
130
138
#[ serde( rename_all = "snake_case" ) ]
131
139
pub enum IbcSourceCallbackMsg {
132
140
Acknowledgement ( IbcAckCallbackMsg ) ,
133
141
Timeout ( IbcTimeoutCallbackMsg ) ,
134
142
}
135
143
136
- #[ derive( Serialize , Deserialize , Clone , Debug , PartialEq , Eq , JsonSchema ) ]
144
+ #[ derive(
145
+ Serialize , Deserialize , Clone , Debug , PartialEq , Eq , JsonSchema , cw_schema:: Schemaifier ,
146
+ ) ]
137
147
#[ non_exhaustive]
138
148
pub struct IbcAckCallbackMsg {
139
149
pub acknowledgement : IbcAcknowledgement ,
@@ -155,7 +165,9 @@ impl IbcAckCallbackMsg {
155
165
}
156
166
}
157
167
158
- #[ derive( Serialize , Deserialize , Clone , Debug , PartialEq , Eq , JsonSchema ) ]
168
+ #[ derive(
169
+ Serialize , Deserialize , Clone , Debug , PartialEq , Eq , JsonSchema , cw_schema:: Schemaifier ,
170
+ ) ]
159
171
#[ non_exhaustive]
160
172
pub struct IbcTimeoutCallbackMsg {
161
173
pub packet : IbcPacket ,
@@ -187,7 +199,9 @@ impl IbcTimeoutCallbackMsg {
187
199
/// - The IBC application in the destination chain must have support for the callbacks middleware.
188
200
/// - You have to add serialized [`IbcCallbackRequest`] to a specific field of the message.
189
201
/// For `IbcMsg::Transfer`, this is the `memo` field and it needs to be json-encoded.
190
- #[ derive( Serialize , Deserialize , Clone , Debug , PartialEq , Eq , JsonSchema ) ]
202
+ #[ derive(
203
+ Serialize , Deserialize , Clone , Debug , PartialEq , Eq , JsonSchema , cw_schema:: Schemaifier ,
204
+ ) ]
191
205
pub struct IbcDestinationCallbackMsg {
192
206
pub packet : IbcPacket ,
193
207
pub ack : IbcAcknowledgement ,
0 commit comments