@@ -76,6 +76,7 @@ pub struct TransferMsgBuilder<MemoData> {
76
76
}
77
77
78
78
impl TransferMsgBuilder < EmptyMemo > {
79
+ /// Creates a new transfer message with the given parameters and no memo.
79
80
pub fn new (
80
81
channel_id : impl Into < String > ,
81
82
to_address : impl Into < String > ,
@@ -91,6 +92,7 @@ impl TransferMsgBuilder<EmptyMemo> {
91
92
}
92
93
}
93
94
95
+ /// Adds a memo text to the transfer message.
94
96
pub fn with_memo ( self , memo : impl Into < String > ) -> TransferMsgBuilder < WithMemo > {
95
97
TransferMsgBuilder {
96
98
channel_id : self . channel_id ,
@@ -101,6 +103,10 @@ impl TransferMsgBuilder<EmptyMemo> {
101
103
}
102
104
}
103
105
106
+ /// Adds an IBC source callback entry to the memo field.
107
+ /// Use this if you want to receive IBC callbacks on the source chain.
108
+ ///
109
+ /// For more info check out [`crate::IbcSourceCallbackMsg`].
104
110
pub fn with_src_callback (
105
111
self ,
106
112
src_callback : IbcSrcCallback ,
@@ -114,6 +120,10 @@ impl TransferMsgBuilder<EmptyMemo> {
114
120
}
115
121
}
116
122
123
+ /// Adds an IBC destination callback entry to the memo field.
124
+ /// Use this if you want to receive IBC callbacks on the destination chain.
125
+ ///
126
+ /// For more info check out [`crate::IbcDestinationCallbackMsg`].
117
127
pub fn with_dst_callback (
118
128
self ,
119
129
dst_callback : IbcDstCallback ,
@@ -129,6 +139,10 @@ impl TransferMsgBuilder<EmptyMemo> {
129
139
}
130
140
131
141
impl TransferMsgBuilder < WithSrcCallback > {
142
+ /// Adds an IBC destination callback entry to the memo field.
143
+ /// Use this if you want to receive IBC callbacks on the destination chain.
144
+ ///
145
+ /// For more info check out [`crate::IbcDestinationCallbackMsg`].
132
146
pub fn with_dst_callback (
133
147
self ,
134
148
dst_callback : IbcDstCallback ,
@@ -147,6 +161,10 @@ impl TransferMsgBuilder<WithSrcCallback> {
147
161
}
148
162
149
163
impl TransferMsgBuilder < WithDstCallback > {
164
+ /// Adds an IBC source callback entry to the memo field.
165
+ /// Use this if you want to receive IBC callbacks on the source chain.
166
+ ///
167
+ /// For more info check out [`crate::IbcSourceCallbackMsg`].
150
168
pub fn with_src_callback (
151
169
self ,
152
170
src_callback : IbcSrcCallback ,
0 commit comments