File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ use super::metadata::TxEncoding;
16
16
pub const DEFAULT_TIMEOUT_SECONDS : u64 = 600 ;
17
17
18
18
/// `IcaPacketData` is comprised of a raw transaction, type of transaction and optional memo field.
19
+ ///
19
20
/// Currently, the host only supports [protobuf](super::metadata::TxEncoding::Protobuf) or
20
21
/// [proto3json](super::metadata::TxEncoding::Proto3Json) serialized Cosmos transactions.
21
22
/// This contract only supports the protobuf encoding.
@@ -47,7 +48,7 @@ pub struct IcaPacketData {
47
48
impl IcaPacketData {
48
49
/// Creates a new [`IcaPacketData`]
49
50
#[ must_use]
50
- pub fn new ( data : Vec < u8 > , memo : Option < String > ) -> Self {
51
+ pub const fn new ( data : Vec < u8 > , memo : Option < String > ) -> Self {
51
52
Self {
52
53
r#type : 1 ,
53
54
data,
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ pub mod channel {
15
15
use super :: super :: { keys, metadata} ;
16
16
17
17
/// Creates a new [`MsgChannelOpenInit`] for an ica channel with the given contract address.
18
+ ///
18
19
/// Also generates the handshake version.
19
20
/// If the counterparty port id is not provided, [`keys::HOST_PORT_ID`] is used.
20
21
/// If the tx encoding is not provided, [`metadata::TxEncoding::Protobuf`] is used.
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ pub const ALLOW_CHANNEL_OPEN_INIT: Item<bool> = Item::new("allow_channel_open_in
30
30
pub const ALLOW_CHANNEL_CLOSE_INIT : Item < bool > = Item :: new ( "allow_channel_close_init" ) ;
31
31
32
32
/// The item used to store the paths of an ICA query until its `SendPacket` response is received.
33
+ ///
33
34
/// Once the response is received, it is moved to the [`PENDING_QUERIES`] map and deleted from this item.
34
35
/// This is used to ensure that the correct sequence is recorded for the response.
35
36
#[ cfg( feature = "query" ) ]
You can’t perform that action at this time.
0 commit comments