neutron_std/types/neutron/
transfer.rs

1use neutron_std_derive::CosmwasmExt;
2#[allow(clippy::derive_partial_eq_without_eq)]
3#[derive(
4    Clone,
5    PartialEq,
6    Eq,
7    ::prost::Message,
8    ::serde::Serialize,
9    ::serde::Deserialize,
10    ::schemars::JsonSchema,
11    CosmwasmExt,
12)]
13#[proto_message(type_url = "/neutron.transfer.MsgTransfer")]
14pub struct MsgTransfer {
15    /// the port on which the packet will be sent
16    #[prost(string, tag = "1")]
17    pub source_port: ::prost::alloc::string::String,
18    /// the channel by which the packet will be sent
19    #[prost(string, tag = "2")]
20    pub source_channel: ::prost::alloc::string::String,
21    /// the tokens to be transferred
22    #[prost(message, optional, tag = "3")]
23    pub token: ::core::option::Option<super::super::cosmos::base::v1beta1::Coin>,
24    /// the sender address
25    #[prost(string, tag = "4")]
26    pub sender: ::prost::alloc::string::String,
27    /// the recipient address on the destination chain
28    #[prost(string, tag = "5")]
29    pub receiver: ::prost::alloc::string::String,
30    /// Timeout height relative to the current block height.
31    /// The timeout is disabled when set to 0.
32    #[prost(message, optional, tag = "6")]
33    pub timeout_height: ::core::option::Option<super::super::ibc::core::client::v1::Height>,
34    /// Timeout timestamp in absolute nanoseconds since unix epoch.
35    /// The timeout is disabled when set to 0.
36    #[prost(uint64, tag = "7")]
37    #[serde(
38        serialize_with = "crate::serde::as_str::serialize",
39        deserialize_with = "crate::serde::as_str::deserialize"
40    )]
41    pub timeout_timestamp: u64,
42    #[prost(string, tag = "8")]
43    pub memo: ::prost::alloc::string::String,
44    #[prost(message, optional, tag = "9")]
45    pub fee: ::core::option::Option<super::feerefunder::Fee>,
46}
47/// MsgTransferResponse is the modified response type for
48/// ibc-go MsgTransfer.
49#[allow(clippy::derive_partial_eq_without_eq)]
50#[derive(
51    Clone,
52    PartialEq,
53    Eq,
54    ::prost::Message,
55    ::serde::Serialize,
56    ::serde::Deserialize,
57    ::schemars::JsonSchema,
58    CosmwasmExt,
59)]
60#[proto_message(type_url = "/neutron.transfer.MsgTransferResponse")]
61pub struct MsgTransferResponse {
62    /// channel's sequence_id for outgoing ibc packet. Unique per a channel.
63    #[prost(uint64, tag = "1")]
64    #[serde(alias = "sequenceID")]
65    #[serde(
66        serialize_with = "crate::serde::as_str::serialize",
67        deserialize_with = "crate::serde::as_str::deserialize"
68    )]
69    pub sequence_id: u64,
70    /// channel src channel on neutron side transaction was submitted from
71    #[prost(string, tag = "2")]
72    pub channel: ::prost::alloc::string::String,
73}
74/// MsgUpdateParams is the Msg/UpdateParams request type.
75#[allow(clippy::derive_partial_eq_without_eq)]
76#[derive(
77    Clone,
78    PartialEq,
79    Eq,
80    ::prost::Message,
81    ::serde::Serialize,
82    ::serde::Deserialize,
83    ::schemars::JsonSchema,
84    CosmwasmExt,
85)]
86#[proto_message(type_url = "/neutron.transfer.MsgUpdateParams")]
87pub struct MsgUpdateParams {
88    /// signer address
89    #[prost(string, tag = "1")]
90    pub signer: ::prost::alloc::string::String,
91    /// params defines the transfer parameters to update.
92    ///
93    /// NOTE: All parameters must be supplied.
94    #[prost(message, optional, tag = "2")]
95    pub params: ::core::option::Option<super::super::ibc::applications::transfer::v1::Params>,
96}
97/// MsgUpdateParamsResponse defines the response structure for executing a
98/// MsgUpdateParams message.
99#[allow(clippy::derive_partial_eq_without_eq)]
100#[derive(
101    Clone,
102    PartialEq,
103    Eq,
104    ::prost::Message,
105    ::serde::Serialize,
106    ::serde::Deserialize,
107    ::schemars::JsonSchema,
108    CosmwasmExt,
109)]
110#[proto_message(type_url = "/neutron.transfer.MsgUpdateParamsResponse")]
111pub struct MsgUpdateParamsResponse {}
112#[allow(dead_code)]
113pub struct TransferQuerier<'a, Q: cosmwasm_std::CustomQuery> {
114    querier: &'a cosmwasm_std::QuerierWrapper<'a, Q>,
115}
116impl<'a, Q: cosmwasm_std::CustomQuery> TransferQuerier<'a, Q> {
117    pub fn new(querier: &'a cosmwasm_std::QuerierWrapper<'a, Q>) -> Self {
118        Self { querier }
119    }
120}