side_proto/prost/side/
side.lending.rs

1// @generated
2/// Params defines the parameters for the module.
3#[allow(clippy::derive_partial_eq_without_eq)]
4#[derive(Clone, PartialEq, ::prost::Message)]
5pub struct Params {
6    #[prost(string, tag = "1")]
7    pub supply_rate_permille: ::prost::alloc::string::String,
8    #[prost(string, tag = "2")]
9    pub borrow_rate_permille: ::prost::alloc::string::String,
10    #[prost(string, tag = "3")]
11    pub fee_recipient: ::prost::alloc::string::String,
12    #[prost(string, repeated, tag = "4")]
13    pub pool_creators: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
14    #[prost(string, tag = "5")]
15    pub min_initial_ltv_percent: ::prost::alloc::string::String,
16    #[prost(string, tag = "6")]
17    pub liquidation_threshold_percent: ::prost::alloc::string::String,
18}
19impl ::prost::Name for Params {
20    const NAME: &'static str = "Params";
21    const PACKAGE: &'static str = "side.lending";
22    fn full_name() -> ::prost::alloc::string::String {
23        ::prost::alloc::format!("side.lending.{}", Self::NAME)
24    }
25}
26#[allow(clippy::derive_partial_eq_without_eq)]
27#[derive(Clone, PartialEq, ::prost::Message)]
28pub struct LendingPool {
29    #[prost(string, tag = "1")]
30    pub id: ::prost::alloc::string::String,
31    #[prost(message, optional, tag = "2")]
32    pub supply: ::core::option::Option<super::super::cosmos::base::v1beta1::Coin>,
33    #[prost(string, tag = "3")]
34    pub total_shares: ::prost::alloc::string::String,
35    #[prost(string, tag = "4")]
36    pub borrowed_amount: ::prost::alloc::string::String,
37    #[prost(enumeration = "PoolStatus", tag = "5")]
38    pub status: i32,
39}
40impl ::prost::Name for LendingPool {
41    const NAME: &'static str = "LendingPool";
42    const PACKAGE: &'static str = "side.lending";
43    fn full_name() -> ::prost::alloc::string::String {
44        ::prost::alloc::format!("side.lending.{}", Self::NAME)
45    }
46}
47#[allow(clippy::derive_partial_eq_without_eq)]
48#[derive(Clone, PartialEq, ::prost::Message)]
49pub struct Loan {
50    /// id
51    #[prost(string, tag = "1")]
52    pub vault_address: ::prost::alloc::string::String,
53    #[prost(string, tag = "2")]
54    pub borrower: ::prost::alloc::string::String,
55    #[prost(string, tag = "3")]
56    pub borrower_pub_key: ::prost::alloc::string::String,
57    #[prost(string, tag = "4")]
58    pub agency: ::prost::alloc::string::String,
59    #[prost(string, tag = "5")]
60    pub hash_loan_secret: ::prost::alloc::string::String,
61    #[prost(int64, tag = "6")]
62    pub maturity_time: i64,
63    #[prost(int64, tag = "7")]
64    pub final_timeout: i64,
65    #[prost(message, optional, tag = "8")]
66    pub borrow_amount: ::core::option::Option<super::super::cosmos::base::v1beta1::Coin>,
67    #[prost(string, tag = "9")]
68    pub fees: ::prost::alloc::string::String,
69    #[prost(string, tag = "10")]
70    pub interests: ::prost::alloc::string::String,
71    #[prost(string, tag = "11")]
72    pub term: ::prost::alloc::string::String,
73    #[prost(uint64, tag = "12")]
74    pub event_id: u64,
75    #[prost(uint64, tag = "13")]
76    pub attestation_id: u64,
77    #[prost(string, repeated, tag = "14")]
78    pub deposit_txs: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
79    #[prost(string, tag = "15")]
80    pub collateral_amount: ::prost::alloc::string::String,
81    #[prost(string, tag = "16")]
82    pub loan_secret: ::prost::alloc::string::String,
83    #[prost(message, optional, tag = "17")]
84    pub create_at: ::core::option::Option<::tendermint_proto::google::protobuf::Timestamp>,
85    #[prost(enumeration = "LoanStatus", tag = "18")]
86    pub status: i32,
87    #[prost(string, tag = "19")]
88    pub pool_id: ::prost::alloc::string::String,
89}
90impl ::prost::Name for Loan {
91    const NAME: &'static str = "Loan";
92    const PACKAGE: &'static str = "side.lending";
93    fn full_name() -> ::prost::alloc::string::String {
94        ::prost::alloc::format!("side.lending.{}", Self::NAME)
95    }
96}
97#[allow(clippy::derive_partial_eq_without_eq)]
98#[derive(Clone, PartialEq, ::prost::Message)]
99pub struct DlcMeta {
100    #[prost(string, tag = "1")]
101    pub liquidation_cet: ::prost::alloc::string::String,
102    #[prost(string, tag = "2")]
103    pub signed_liquidation_cet_hex: ::prost::alloc::string::String,
104    #[prost(string, tag = "3")]
105    pub liquidation_adaptor_signature: ::prost::alloc::string::String,
106    #[prost(string, tag = "4")]
107    pub liquidation_adapted_signature: ::prost::alloc::string::String,
108    #[prost(string, repeated, tag = "5")]
109    pub liquidation_agency_signatures: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
110    #[prost(message, optional, tag = "6")]
111    pub vault_utxo: ::core::option::Option<super::btcbridge::Utxo>,
112    #[prost(string, tag = "7")]
113    pub internal_key: ::prost::alloc::string::String,
114    #[prost(string, tag = "8")]
115    pub liquidation_cet_script: ::prost::alloc::string::String,
116    #[prost(string, tag = "9")]
117    pub repayment_script: ::prost::alloc::string::String,
118    #[prost(string, tag = "10")]
119    pub forced_repayment_script: ::prost::alloc::string::String,
120    #[prost(string, tag = "11")]
121    pub timeout_refund_script: ::prost::alloc::string::String,
122}
123impl ::prost::Name for DlcMeta {
124    const NAME: &'static str = "DLCMeta";
125    const PACKAGE: &'static str = "side.lending";
126    fn full_name() -> ::prost::alloc::string::String {
127        ::prost::alloc::format!("side.lending.{}", Self::NAME)
128    }
129}
130#[allow(clippy::derive_partial_eq_without_eq)]
131#[derive(Clone, PartialEq, ::prost::Message)]
132pub struct DepositLog {
133    #[prost(string, tag = "2")]
134    pub txid: ::prost::alloc::string::String,
135    #[prost(string, tag = "1")]
136    pub vault_address: ::prost::alloc::string::String,
137    #[prost(string, tag = "3")]
138    pub deposit_tx: ::prost::alloc::string::String,
139}
140impl ::prost::Name for DepositLog {
141    const NAME: &'static str = "DepositLog";
142    const PACKAGE: &'static str = "side.lending";
143    fn full_name() -> ::prost::alloc::string::String {
144        ::prost::alloc::format!("side.lending.{}", Self::NAME)
145    }
146}
147#[allow(clippy::derive_partial_eq_without_eq)]
148#[derive(Clone, PartialEq, ::prost::Message)]
149pub struct Repayment {
150    #[prost(string, tag = "1")]
151    pub loan_id: ::prost::alloc::string::String,
152    #[prost(string, tag = "2")]
153    pub txid: ::prost::alloc::string::String,
154    #[prost(string, tag = "3")]
155    pub tx: ::prost::alloc::string::String,
156    #[prost(string, tag = "4")]
157    pub repay_adaptor_point: ::prost::alloc::string::String,
158    #[prost(string, repeated, tag = "5")]
159    pub dca_adaptor_signatures: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
160    #[prost(string, tag = "6")]
161    pub borrower_signature: ::prost::alloc::string::String,
162    #[prost(message, optional, tag = "7")]
163    pub create_at: ::core::option::Option<::tendermint_proto::google::protobuf::Timestamp>,
164}
165impl ::prost::Name for Repayment {
166    const NAME: &'static str = "Repayment";
167    const PACKAGE: &'static str = "side.lending";
168    fn full_name() -> ::prost::alloc::string::String {
169        ::prost::alloc::format!("side.lending.{}", Self::NAME)
170    }
171}
172/// Status options for a lending pool
173#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
174#[repr(i32)]
175pub enum PoolStatus {
176    Active = 0,
177    Inactive = 1,
178}
179impl PoolStatus {
180    /// String value of the enum field names used in the ProtoBuf definition.
181    ///
182    /// The values are not transformed in any way and thus are considered stable
183    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
184    pub fn as_str_name(&self) -> &'static str {
185        match self {
186            PoolStatus::Active => "ACTIVE",
187            PoolStatus::Inactive => "INACTIVE",
188        }
189    }
190    /// Creates an enum from field names used in the ProtoBuf definition.
191    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
192        match value {
193            "ACTIVE" => Some(Self::Active),
194            "INACTIVE" => Some(Self::Inactive),
195            _ => None,
196        }
197    }
198}
199#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
200#[repr(i32)]
201pub enum LoanStatus {
202    /// Loan Application
203    Apply = 0,
204    /// Loan Approval
205    Approve = 1,
206    /// Loan Disbursement
207    Disburse = 2,
208    /// Loan Repayment
209    Repay = 3,
210    /// Loan Default/Delinquency
211    Default = 4,
212    /// Loan Liquidation
213    Liquidate = 5,
214    /// Loan Closure
215    Close = 6,
216}
217impl LoanStatus {
218    /// String value of the enum field names used in the ProtoBuf definition.
219    ///
220    /// The values are not transformed in any way and thus are considered stable
221    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
222    pub fn as_str_name(&self) -> &'static str {
223        match self {
224            LoanStatus::Apply => "Apply",
225            LoanStatus::Approve => "Approve",
226            LoanStatus::Disburse => "Disburse",
227            LoanStatus::Repay => "Repay",
228            LoanStatus::Default => "Default",
229            LoanStatus::Liquidate => "Liquidate",
230            LoanStatus::Close => "Close",
231        }
232    }
233    /// Creates an enum from field names used in the ProtoBuf definition.
234    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
235        match value {
236            "Apply" => Some(Self::Apply),
237            "Approve" => Some(Self::Approve),
238            "Disburse" => Some(Self::Disburse),
239            "Repay" => Some(Self::Repay),
240            "Default" => Some(Self::Default),
241            "Liquidate" => Some(Self::Liquidate),
242            "Close" => Some(Self::Close),
243            _ => None,
244        }
245    }
246}
247/// GenesisState defines the lending module's genesis state.
248#[allow(clippy::derive_partial_eq_without_eq)]
249#[derive(Clone, PartialEq, ::prost::Message)]
250pub struct GenesisState {
251    #[prost(message, optional, tag = "1")]
252    pub params: ::core::option::Option<Params>,
253    #[prost(message, repeated, tag = "2")]
254    pub pools: ::prost::alloc::vec::Vec<LendingPool>,
255}
256impl ::prost::Name for GenesisState {
257    const NAME: &'static str = "GenesisState";
258    const PACKAGE: &'static str = "side.lending";
259    fn full_name() -> ::prost::alloc::string::String {
260        ::prost::alloc::format!("side.lending.{}", Self::NAME)
261    }
262}
263/// QueryPoolRequest is request type for the Query/Pool RPC method.
264#[allow(clippy::derive_partial_eq_without_eq)]
265#[derive(Clone, PartialEq, ::prost::Message)]
266pub struct QueryPoolRequest {
267    #[prost(string, tag = "1")]
268    pub id: ::prost::alloc::string::String,
269}
270impl ::prost::Name for QueryPoolRequest {
271    const NAME: &'static str = "QueryPoolRequest";
272    const PACKAGE: &'static str = "side.lending";
273    fn full_name() -> ::prost::alloc::string::String {
274        ::prost::alloc::format!("side.lending.{}", Self::NAME)
275    }
276}
277/// QueryPoolResponse is response type for the Query/Pool RPC method.
278#[allow(clippy::derive_partial_eq_without_eq)]
279#[derive(Clone, PartialEq, ::prost::Message)]
280pub struct QueryPoolResponse {
281    #[prost(message, optional, tag = "1")]
282    pub pool: ::core::option::Option<LendingPool>,
283}
284impl ::prost::Name for QueryPoolResponse {
285    const NAME: &'static str = "QueryPoolResponse";
286    const PACKAGE: &'static str = "side.lending";
287    fn full_name() -> ::prost::alloc::string::String {
288        ::prost::alloc::format!("side.lending.{}", Self::NAME)
289    }
290}
291/// QueryPoolsRequest is request type for the Query/Pools RPC method.
292#[allow(clippy::derive_partial_eq_without_eq)]
293#[derive(Clone, PartialEq, ::prost::Message)]
294pub struct QueryPoolsRequest {
295    #[prost(message, optional, tag = "1")]
296    pub pagination: ::core::option::Option<super::super::cosmos::base::query::v1beta1::PageRequest>,
297}
298impl ::prost::Name for QueryPoolsRequest {
299    const NAME: &'static str = "QueryPoolsRequest";
300    const PACKAGE: &'static str = "side.lending";
301    fn full_name() -> ::prost::alloc::string::String {
302        ::prost::alloc::format!("side.lending.{}", Self::NAME)
303    }
304}
305/// QueryPoolsResponse is response type for the Query/Pools RPC method.
306#[allow(clippy::derive_partial_eq_without_eq)]
307#[derive(Clone, PartialEq, ::prost::Message)]
308pub struct QueryPoolsResponse {
309    #[prost(message, repeated, tag = "1")]
310    pub pools: ::prost::alloc::vec::Vec<LendingPool>,
311    #[prost(message, optional, tag = "2")]
312    pub pagination:
313        ::core::option::Option<super::super::cosmos::base::query::v1beta1::PageResponse>,
314}
315impl ::prost::Name for QueryPoolsResponse {
316    const NAME: &'static str = "QueryPoolsResponse";
317    const PACKAGE: &'static str = "side.lending";
318    fn full_name() -> ::prost::alloc::string::String {
319        ::prost::alloc::format!("side.lending.{}", Self::NAME)
320    }
321}
322#[allow(clippy::derive_partial_eq_without_eq)]
323#[derive(Clone, PartialEq, ::prost::Message)]
324pub struct QueryLiquidationEventRequest {
325    #[prost(message, optional, tag = "1")]
326    pub borrow_amount: ::core::option::Option<super::super::cosmos::base::v1beta1::Coin>,
327    #[prost(message, optional, tag = "2")]
328    pub collateral_acmount: ::core::option::Option<super::super::cosmos::base::v1beta1::Coin>,
329}
330impl ::prost::Name for QueryLiquidationEventRequest {
331    const NAME: &'static str = "QueryLiquidationEventRequest";
332    const PACKAGE: &'static str = "side.lending";
333    fn full_name() -> ::prost::alloc::string::String {
334        ::prost::alloc::format!("side.lending.{}", Self::NAME)
335    }
336}
337#[allow(clippy::derive_partial_eq_without_eq)]
338#[derive(Clone, PartialEq, ::prost::Message)]
339pub struct QueryLiquidationEventResponse {
340    #[prost(uint64, tag = "1")]
341    pub event_id: u64,
342    #[prost(string, tag = "2")]
343    pub oracle_pubkey: ::prost::alloc::string::String,
344    #[prost(string, tag = "3")]
345    pub nonce: ::prost::alloc::string::String,
346    #[prost(string, tag = "4")]
347    pub price: ::prost::alloc::string::String,
348    #[prost(string, tag = "5")]
349    pub signature_point: ::prost::alloc::string::String,
350}
351impl ::prost::Name for QueryLiquidationEventResponse {
352    const NAME: &'static str = "QueryLiquidationEventResponse";
353    const PACKAGE: &'static str = "side.lending";
354    fn full_name() -> ::prost::alloc::string::String {
355        ::prost::alloc::format!("side.lending.{}", Self::NAME)
356    }
357}
358#[allow(clippy::derive_partial_eq_without_eq)]
359#[derive(Clone, PartialEq, ::prost::Message)]
360pub struct QueryLiquidationCetRequest {
361    #[prost(string, tag = "1")]
362    pub loan_id: ::prost::alloc::string::String,
363    #[prost(string, tag = "2")]
364    pub borrower_pubkey: ::prost::alloc::string::String,
365    #[prost(string, tag = "3")]
366    pub agency_pubkey: ::prost::alloc::string::String,
367}
368impl ::prost::Name for QueryLiquidationCetRequest {
369    const NAME: &'static str = "QueryLiquidationCetRequest";
370    const PACKAGE: &'static str = "side.lending";
371    fn full_name() -> ::prost::alloc::string::String {
372        ::prost::alloc::format!("side.lending.{}", Self::NAME)
373    }
374}
375#[allow(clippy::derive_partial_eq_without_eq)]
376#[derive(Clone, PartialEq, ::prost::Message)]
377pub struct QueryLiquidationCetResponse {
378    #[prost(string, tag = "1")]
379    pub script: ::prost::alloc::string::String,
380    #[prost(string, repeated, tag = "2")]
381    pub sig_hashes: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
382}
383impl ::prost::Name for QueryLiquidationCetResponse {
384    const NAME: &'static str = "QueryLiquidationCetResponse";
385    const PACKAGE: &'static str = "side.lending";
386    fn full_name() -> ::prost::alloc::string::String {
387        ::prost::alloc::format!("side.lending.{}", Self::NAME)
388    }
389}
390#[allow(clippy::derive_partial_eq_without_eq)]
391#[derive(Clone, PartialEq, ::prost::Message)]
392pub struct QueryCollateralAddressRequest {
393    #[prost(string, tag = "1")]
394    pub borrower_pubkey: ::prost::alloc::string::String,
395    #[prost(string, tag = "2")]
396    pub agency_pubkey: ::prost::alloc::string::String,
397    #[prost(string, tag = "3")]
398    pub hash_of_loan_secret: ::prost::alloc::string::String,
399    #[prost(uint64, tag = "4")]
400    pub maturity_time: u64,
401    #[prost(uint64, tag = "5")]
402    pub final_timeout: u64,
403}
404impl ::prost::Name for QueryCollateralAddressRequest {
405    const NAME: &'static str = "QueryCollateralAddressRequest";
406    const PACKAGE: &'static str = "side.lending";
407    fn full_name() -> ::prost::alloc::string::String {
408        ::prost::alloc::format!("side.lending.{}", Self::NAME)
409    }
410}
411#[allow(clippy::derive_partial_eq_without_eq)]
412#[derive(Clone, PartialEq, ::prost::Message)]
413pub struct QueryCollateralAddressResponse {
414    #[prost(string, tag = "1")]
415    pub address: ::prost::alloc::string::String,
416}
417impl ::prost::Name for QueryCollateralAddressResponse {
418    const NAME: &'static str = "QueryCollateralAddressResponse";
419    const PACKAGE: &'static str = "side.lending";
420    fn full_name() -> ::prost::alloc::string::String {
421        ::prost::alloc::format!("side.lending.{}", Self::NAME)
422    }
423}
424/// QueryParamsRequest is request type for the Query/Params RPC method.
425#[allow(clippy::derive_partial_eq_without_eq)]
426#[derive(Clone, PartialEq, ::prost::Message)]
427pub struct QueryParamsRequest {}
428impl ::prost::Name for QueryParamsRequest {
429    const NAME: &'static str = "QueryParamsRequest";
430    const PACKAGE: &'static str = "side.lending";
431    fn full_name() -> ::prost::alloc::string::String {
432        ::prost::alloc::format!("side.lending.{}", Self::NAME)
433    }
434}
435/// QueryParamsResponse is response type for the Query/Params RPC method.
436#[allow(clippy::derive_partial_eq_without_eq)]
437#[derive(Clone, PartialEq, ::prost::Message)]
438pub struct QueryParamsResponse {
439    #[prost(message, optional, tag = "1")]
440    pub params: ::core::option::Option<Params>,
441}
442impl ::prost::Name for QueryParamsResponse {
443    const NAME: &'static str = "QueryParamsResponse";
444    const PACKAGE: &'static str = "side.lending";
445    fn full_name() -> ::prost::alloc::string::String {
446        ::prost::alloc::format!("side.lending.{}", Self::NAME)
447    }
448}
449/// QueryLoanRequest is request type for the Query/Loan RPC method.
450#[allow(clippy::derive_partial_eq_without_eq)]
451#[derive(Clone, PartialEq, ::prost::Message)]
452pub struct QueryLoanRequest {
453    #[prost(string, tag = "1")]
454    pub loan_id: ::prost::alloc::string::String,
455}
456impl ::prost::Name for QueryLoanRequest {
457    const NAME: &'static str = "QueryLoanRequest";
458    const PACKAGE: &'static str = "side.lending";
459    fn full_name() -> ::prost::alloc::string::String {
460        ::prost::alloc::format!("side.lending.{}", Self::NAME)
461    }
462}
463/// QueryLoanResponse is response type for the Query/Loan RPC method.
464#[allow(clippy::derive_partial_eq_without_eq)]
465#[derive(Clone, PartialEq, ::prost::Message)]
466pub struct QueryLoanResponse {
467    #[prost(message, optional, tag = "1")]
468    pub loan: ::core::option::Option<Loan>,
469}
470impl ::prost::Name for QueryLoanResponse {
471    const NAME: &'static str = "QueryLoanResponse";
472    const PACKAGE: &'static str = "side.lending";
473    fn full_name() -> ::prost::alloc::string::String {
474        ::prost::alloc::format!("side.lending.{}", Self::NAME)
475    }
476}
477/// QueryLoansRequest is request type for the Query/Loans RPC method.
478#[allow(clippy::derive_partial_eq_without_eq)]
479#[derive(Clone, PartialEq, ::prost::Message)]
480pub struct QueryLoansRequest {
481    #[prost(enumeration = "LoanStatus", tag = "1")]
482    pub status: i32,
483    #[prost(message, optional, tag = "2")]
484    pub pagination: ::core::option::Option<super::super::cosmos::base::query::v1beta1::PageRequest>,
485}
486impl ::prost::Name for QueryLoansRequest {
487    const NAME: &'static str = "QueryLoansRequest";
488    const PACKAGE: &'static str = "side.lending";
489    fn full_name() -> ::prost::alloc::string::String {
490        ::prost::alloc::format!("side.lending.{}", Self::NAME)
491    }
492}
493/// QueryLoansResponse is response type for the Query/Loans RPC method.
494#[allow(clippy::derive_partial_eq_without_eq)]
495#[derive(Clone, PartialEq, ::prost::Message)]
496pub struct QueryLoansResponse {
497    #[prost(message, repeated, tag = "1")]
498    pub loans: ::prost::alloc::vec::Vec<Loan>,
499    #[prost(message, optional, tag = "2")]
500    pub pagination:
501        ::core::option::Option<super::super::cosmos::base::query::v1beta1::PageResponse>,
502}
503impl ::prost::Name for QueryLoansResponse {
504    const NAME: &'static str = "QueryLoansResponse";
505    const PACKAGE: &'static str = "side.lending";
506    fn full_name() -> ::prost::alloc::string::String {
507        ::prost::alloc::format!("side.lending.{}", Self::NAME)
508    }
509}
510/// QueryLoanDlcMetaRequest is request type for the Query/LoanDlcMeta RPC method.
511#[allow(clippy::derive_partial_eq_without_eq)]
512#[derive(Clone, PartialEq, ::prost::Message)]
513pub struct QueryLoanDlcMetaRequest {
514    #[prost(string, tag = "1")]
515    pub loan_id: ::prost::alloc::string::String,
516}
517impl ::prost::Name for QueryLoanDlcMetaRequest {
518    const NAME: &'static str = "QueryLoanDlcMetaRequest";
519    const PACKAGE: &'static str = "side.lending";
520    fn full_name() -> ::prost::alloc::string::String {
521        ::prost::alloc::format!("side.lending.{}", Self::NAME)
522    }
523}
524/// QueryLoanDlcMetaResponse is response type for the Query/LoanDlcMeta RPC method.
525#[allow(clippy::derive_partial_eq_without_eq)]
526#[derive(Clone, PartialEq, ::prost::Message)]
527pub struct QueryLoanDlcMetaResponse {
528    #[prost(message, optional, tag = "1")]
529    pub dlc_meta: ::core::option::Option<DlcMeta>,
530}
531impl ::prost::Name for QueryLoanDlcMetaResponse {
532    const NAME: &'static str = "QueryLoanDlcMetaResponse";
533    const PACKAGE: &'static str = "side.lending";
534    fn full_name() -> ::prost::alloc::string::String {
535        ::prost::alloc::format!("side.lending.{}", Self::NAME)
536    }
537}
538#[allow(clippy::derive_partial_eq_without_eq)]
539#[derive(Clone, PartialEq, ::prost::Message)]
540pub struct QueryRepaymentRequest {
541    #[prost(string, tag = "1")]
542    pub loan_id: ::prost::alloc::string::String,
543}
544impl ::prost::Name for QueryRepaymentRequest {
545    const NAME: &'static str = "QueryRepaymentRequest";
546    const PACKAGE: &'static str = "side.lending";
547    fn full_name() -> ::prost::alloc::string::String {
548        ::prost::alloc::format!("side.lending.{}", Self::NAME)
549    }
550}
551#[allow(clippy::derive_partial_eq_without_eq)]
552#[derive(Clone, PartialEq, ::prost::Message)]
553pub struct QueryRepaymentResponse {
554    #[prost(message, optional, tag = "1")]
555    pub repayment: ::core::option::Option<Repayment>,
556}
557impl ::prost::Name for QueryRepaymentResponse {
558    const NAME: &'static str = "QueryRepaymentResponse";
559    const PACKAGE: &'static str = "side.lending";
560    fn full_name() -> ::prost::alloc::string::String {
561        ::prost::alloc::format!("side.lending.{}", Self::NAME)
562    }
563}
564#[allow(clippy::derive_partial_eq_without_eq)]
565#[derive(Clone, PartialEq, ::prost::Message)]
566pub struct MsgCreatePool {
567    #[prost(string, tag = "1")]
568    pub creator: ::prost::alloc::string::String,
569    #[prost(string, tag = "2")]
570    pub pool_id: ::prost::alloc::string::String,
571    #[prost(string, tag = "3")]
572    pub lending_asset: ::prost::alloc::string::String,
573}
574impl ::prost::Name for MsgCreatePool {
575    const NAME: &'static str = "MsgCreatePool";
576    const PACKAGE: &'static str = "side.lending";
577    fn full_name() -> ::prost::alloc::string::String {
578        ::prost::alloc::format!("side.lending.{}", Self::NAME)
579    }
580}
581#[allow(clippy::derive_partial_eq_without_eq)]
582#[derive(Clone, PartialEq, ::prost::Message)]
583pub struct MsgCreatePoolResponse {}
584impl ::prost::Name for MsgCreatePoolResponse {
585    const NAME: &'static str = "MsgCreatePoolResponse";
586    const PACKAGE: &'static str = "side.lending";
587    fn full_name() -> ::prost::alloc::string::String {
588        ::prost::alloc::format!("side.lending.{}", Self::NAME)
589    }
590}
591#[allow(clippy::derive_partial_eq_without_eq)]
592#[derive(Clone, PartialEq, ::prost::Message)]
593pub struct MsgRepay {
594    #[prost(string, tag = "1")]
595    pub borrower: ::prost::alloc::string::String,
596    #[prost(string, tag = "2")]
597    pub loan_id: ::prost::alloc::string::String,
598    #[prost(string, tag = "3")]
599    pub adaptor_point: ::prost::alloc::string::String,
600}
601impl ::prost::Name for MsgRepay {
602    const NAME: &'static str = "MsgRepay";
603    const PACKAGE: &'static str = "side.lending";
604    fn full_name() -> ::prost::alloc::string::String {
605        ::prost::alloc::format!("side.lending.{}", Self::NAME)
606    }
607}
608#[allow(clippy::derive_partial_eq_without_eq)]
609#[derive(Clone, PartialEq, ::prost::Message)]
610pub struct MsgRepayResponse {}
611impl ::prost::Name for MsgRepayResponse {
612    const NAME: &'static str = "MsgRepayResponse";
613    const PACKAGE: &'static str = "side.lending";
614    fn full_name() -> ::prost::alloc::string::String {
615        ::prost::alloc::format!("side.lending.{}", Self::NAME)
616    }
617}
618#[allow(clippy::derive_partial_eq_without_eq)]
619#[derive(Clone, PartialEq, ::prost::Message)]
620pub struct MsgRedeem {
621    #[prost(string, tag = "1")]
622    pub borrower: ::prost::alloc::string::String,
623    #[prost(string, tag = "2")]
624    pub loan_id: ::prost::alloc::string::String,
625    #[prost(string, tag = "3")]
626    pub loan_secret: ::prost::alloc::string::String,
627}
628impl ::prost::Name for MsgRedeem {
629    const NAME: &'static str = "MsgRedeem";
630    const PACKAGE: &'static str = "side.lending";
631    fn full_name() -> ::prost::alloc::string::String {
632        ::prost::alloc::format!("side.lending.{}", Self::NAME)
633    }
634}
635#[allow(clippy::derive_partial_eq_without_eq)]
636#[derive(Clone, PartialEq, ::prost::Message)]
637pub struct MsgRedeemResponse {}
638impl ::prost::Name for MsgRedeemResponse {
639    const NAME: &'static str = "MsgRedeemResponse";
640    const PACKAGE: &'static str = "side.lending";
641    fn full_name() -> ::prost::alloc::string::String {
642        ::prost::alloc::format!("side.lending.{}", Self::NAME)
643    }
644}
645#[allow(clippy::derive_partial_eq_without_eq)]
646#[derive(Clone, PartialEq, ::prost::Message)]
647pub struct MsgAddLiquidity {
648    #[prost(string, tag = "1")]
649    pub pool_id: ::prost::alloc::string::String,
650    #[prost(string, tag = "2")]
651    pub lender: ::prost::alloc::string::String,
652    #[prost(message, optional, tag = "3")]
653    pub amount: ::core::option::Option<super::super::cosmos::base::v1beta1::Coin>,
654}
655impl ::prost::Name for MsgAddLiquidity {
656    const NAME: &'static str = "MsgAddLiquidity";
657    const PACKAGE: &'static str = "side.lending";
658    fn full_name() -> ::prost::alloc::string::String {
659        ::prost::alloc::format!("side.lending.{}", Self::NAME)
660    }
661}
662#[allow(clippy::derive_partial_eq_without_eq)]
663#[derive(Clone, PartialEq, ::prost::Message)]
664pub struct MsgAddLiquidityResponse {
665    #[prost(message, optional, tag = "1")]
666    pub shares: ::core::option::Option<super::super::cosmos::base::v1beta1::Coin>,
667}
668impl ::prost::Name for MsgAddLiquidityResponse {
669    const NAME: &'static str = "MsgAddLiquidityResponse";
670    const PACKAGE: &'static str = "side.lending";
671    fn full_name() -> ::prost::alloc::string::String {
672        ::prost::alloc::format!("side.lending.{}", Self::NAME)
673    }
674}
675#[allow(clippy::derive_partial_eq_without_eq)]
676#[derive(Clone, PartialEq, ::prost::Message)]
677pub struct MsgRemoveLiquidity {
678    #[prost(string, tag = "1")]
679    pub lender: ::prost::alloc::string::String,
680    #[prost(message, optional, tag = "2")]
681    pub shares: ::core::option::Option<super::super::cosmos::base::v1beta1::Coin>,
682}
683impl ::prost::Name for MsgRemoveLiquidity {
684    const NAME: &'static str = "MsgRemoveLiquidity";
685    const PACKAGE: &'static str = "side.lending";
686    fn full_name() -> ::prost::alloc::string::String {
687        ::prost::alloc::format!("side.lending.{}", Self::NAME)
688    }
689}
690#[allow(clippy::derive_partial_eq_without_eq)]
691#[derive(Clone, PartialEq, ::prost::Message)]
692pub struct MsgRemoveLiquidityResponse {
693    #[prost(message, optional, tag = "1")]
694    pub amount: ::core::option::Option<super::super::cosmos::base::v1beta1::Coin>,
695}
696impl ::prost::Name for MsgRemoveLiquidityResponse {
697    const NAME: &'static str = "MsgRemoveLiquidityResponse";
698    const PACKAGE: &'static str = "side.lending";
699    fn full_name() -> ::prost::alloc::string::String {
700        ::prost::alloc::format!("side.lending.{}", Self::NAME)
701    }
702}
703#[allow(clippy::derive_partial_eq_without_eq)]
704#[derive(Clone, PartialEq, ::prost::Message)]
705pub struct MsgApply {
706    #[prost(string, tag = "1")]
707    pub borrower: ::prost::alloc::string::String,
708    #[prost(string, tag = "2")]
709    pub borrower_pubkey: ::prost::alloc::string::String,
710    #[prost(string, tag = "3")]
711    pub loan_secret_hash: ::prost::alloc::string::String,
712    #[prost(int64, tag = "4")]
713    pub maturity_time: i64,
714    #[prost(int64, tag = "5")]
715    pub final_timeout: i64,
716    #[prost(string, tag = "6")]
717    pub pool_id: ::prost::alloc::string::String,
718    #[prost(message, optional, tag = "7")]
719    pub borrow_amount: ::core::option::Option<super::super::cosmos::base::v1beta1::Coin>,
720    #[prost(uint64, tag = "8")]
721    pub event_id: u64,
722    #[prost(uint64, tag = "9")]
723    pub agency_id: u64,
724    #[prost(string, tag = "10")]
725    pub deposit_tx: ::prost::alloc::string::String,
726    #[prost(string, tag = "11")]
727    pub liquidation_cet: ::prost::alloc::string::String,
728    #[prost(string, tag = "12")]
729    pub liquidation_adaptor_signature: ::prost::alloc::string::String,
730}
731impl ::prost::Name for MsgApply {
732    const NAME: &'static str = "MsgApply";
733    const PACKAGE: &'static str = "side.lending";
734    fn full_name() -> ::prost::alloc::string::String {
735        ::prost::alloc::format!("side.lending.{}", Self::NAME)
736    }
737}
738#[allow(clippy::derive_partial_eq_without_eq)]
739#[derive(Clone, PartialEq, ::prost::Message)]
740pub struct MsgApplyResponse {
741    #[prost(string, tag = "1")]
742    pub vault_address: ::prost::alloc::string::String,
743}
744impl ::prost::Name for MsgApplyResponse {
745    const NAME: &'static str = "MsgApplyResponse";
746    const PACKAGE: &'static str = "side.lending";
747    fn full_name() -> ::prost::alloc::string::String {
748        ::prost::alloc::format!("side.lending.{}", Self::NAME)
749    }
750}
751#[allow(clippy::derive_partial_eq_without_eq)]
752#[derive(Clone, PartialEq, ::prost::Message)]
753pub struct MsgApprove {
754    #[prost(string, tag = "1")]
755    pub relayer: ::prost::alloc::string::String,
756    #[prost(string, tag = "2")]
757    pub deposit_tx_id: ::prost::alloc::string::String,
758    #[prost(string, tag = "3")]
759    pub block_hash: ::prost::alloc::string::String,
760    #[prost(string, repeated, tag = "4")]
761    pub proof: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
762}
763impl ::prost::Name for MsgApprove {
764    const NAME: &'static str = "MsgApprove";
765    const PACKAGE: &'static str = "side.lending";
766    fn full_name() -> ::prost::alloc::string::String {
767        ::prost::alloc::format!("side.lending.{}", Self::NAME)
768    }
769}
770#[allow(clippy::derive_partial_eq_without_eq)]
771#[derive(Clone, PartialEq, ::prost::Message)]
772pub struct MsgApproveResponse {}
773impl ::prost::Name for MsgApproveResponse {
774    const NAME: &'static str = "MsgApproveResponse";
775    const PACKAGE: &'static str = "side.lending";
776    fn full_name() -> ::prost::alloc::string::String {
777        ::prost::alloc::format!("side.lending.{}", Self::NAME)
778    }
779}
780#[allow(clippy::derive_partial_eq_without_eq)]
781#[derive(Clone, PartialEq, ::prost::Message)]
782pub struct MsgSubmitRepaymentAdaptorSignatures {
783    #[prost(string, tag = "1")]
784    pub sender: ::prost::alloc::string::String,
785    #[prost(string, tag = "2")]
786    pub loan_id: ::prost::alloc::string::String,
787    #[prost(string, repeated, tag = "3")]
788    pub adaptor_signatures: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
789}
790impl ::prost::Name for MsgSubmitRepaymentAdaptorSignatures {
791    const NAME: &'static str = "MsgSubmitRepaymentAdaptorSignatures";
792    const PACKAGE: &'static str = "side.lending";
793    fn full_name() -> ::prost::alloc::string::String {
794        ::prost::alloc::format!("side.lending.{}", Self::NAME)
795    }
796}
797#[allow(clippy::derive_partial_eq_without_eq)]
798#[derive(Clone, PartialEq, ::prost::Message)]
799pub struct MsgSubmitRepaymentAdaptorSignaturesResponse {}
800impl ::prost::Name for MsgSubmitRepaymentAdaptorSignaturesResponse {
801    const NAME: &'static str = "MsgSubmitRepaymentAdaptorSignaturesResponse";
802    const PACKAGE: &'static str = "side.lending";
803    fn full_name() -> ::prost::alloc::string::String {
804        ::prost::alloc::format!("side.lending.{}", Self::NAME)
805    }
806}
807#[allow(clippy::derive_partial_eq_without_eq)]
808#[derive(Clone, PartialEq, ::prost::Message)]
809pub struct MsgSubmitLiquidationCetSignatures {
810    #[prost(string, tag = "1")]
811    pub sender: ::prost::alloc::string::String,
812    #[prost(string, tag = "2")]
813    pub loan_id: ::prost::alloc::string::String,
814    #[prost(string, repeated, tag = "3")]
815    pub signatures: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
816}
817impl ::prost::Name for MsgSubmitLiquidationCetSignatures {
818    const NAME: &'static str = "MsgSubmitLiquidationCetSignatures";
819    const PACKAGE: &'static str = "side.lending";
820    fn full_name() -> ::prost::alloc::string::String {
821        ::prost::alloc::format!("side.lending.{}", Self::NAME)
822    }
823}
824#[allow(clippy::derive_partial_eq_without_eq)]
825#[derive(Clone, PartialEq, ::prost::Message)]
826pub struct MsgSubmitLiquidationCetSignaturesResponse {}
827impl ::prost::Name for MsgSubmitLiquidationCetSignaturesResponse {
828    const NAME: &'static str = "MsgSubmitLiquidationCetSignaturesResponse";
829    const PACKAGE: &'static str = "side.lending";
830    fn full_name() -> ::prost::alloc::string::String {
831        ::prost::alloc::format!("side.lending.{}", Self::NAME)
832    }
833}
834#[allow(clippy::derive_partial_eq_without_eq)]
835#[derive(Clone, PartialEq, ::prost::Message)]
836pub struct MsgClose {
837    #[prost(string, tag = "1")]
838    pub relayer: ::prost::alloc::string::String,
839    #[prost(string, tag = "2")]
840    pub loan_id: ::prost::alloc::string::String,
841    #[prost(string, tag = "3")]
842    pub signature: ::prost::alloc::string::String,
843}
844impl ::prost::Name for MsgClose {
845    const NAME: &'static str = "MsgClose";
846    const PACKAGE: &'static str = "side.lending";
847    fn full_name() -> ::prost::alloc::string::String {
848        ::prost::alloc::format!("side.lending.{}", Self::NAME)
849    }
850}
851#[allow(clippy::derive_partial_eq_without_eq)]
852#[derive(Clone, PartialEq, ::prost::Message)]
853pub struct MsgCloseResponse {}
854impl ::prost::Name for MsgCloseResponse {
855    const NAME: &'static str = "MsgCloseResponse";
856    const PACKAGE: &'static str = "side.lending";
857    fn full_name() -> ::prost::alloc::string::String {
858        ::prost::alloc::format!("side.lending.{}", Self::NAME)
859    }
860}
861#[allow(clippy::derive_partial_eq_without_eq)]
862#[derive(Clone, PartialEq, ::prost::Message)]
863pub struct MsgSubmitPrice {
864    #[prost(string, tag = "1")]
865    pub sender: ::prost::alloc::string::String,
866    #[prost(string, tag = "2")]
867    pub price: ::prost::alloc::string::String,
868}
869impl ::prost::Name for MsgSubmitPrice {
870    const NAME: &'static str = "MsgSubmitPrice";
871    const PACKAGE: &'static str = "side.lending";
872    fn full_name() -> ::prost::alloc::string::String {
873        ::prost::alloc::format!("side.lending.{}", Self::NAME)
874    }
875}
876#[allow(clippy::derive_partial_eq_without_eq)]
877#[derive(Clone, PartialEq, ::prost::Message)]
878pub struct MsgSubmitPriceResponse {}
879impl ::prost::Name for MsgSubmitPriceResponse {
880    const NAME: &'static str = "MsgSubmitPriceResponse";
881    const PACKAGE: &'static str = "side.lending";
882    fn full_name() -> ::prost::alloc::string::String {
883        ::prost::alloc::format!("side.lending.{}", Self::NAME)
884    }
885}
886/// MsgUpdateParams is the Msg/UpdateParams request type.
887///
888/// Since: cosmos-sdk 0.47
889#[allow(clippy::derive_partial_eq_without_eq)]
890#[derive(Clone, PartialEq, ::prost::Message)]
891pub struct MsgUpdateParams {
892    /// authority is the address that controls the module (defaults to x/gov unless overwritten).
893    #[prost(string, tag = "1")]
894    pub authority: ::prost::alloc::string::String,
895    /// params defines the x/dlc parameters to be updated.
896    ///
897    /// NOTE: All parameters must be supplied.
898    #[prost(message, optional, tag = "2")]
899    pub params: ::core::option::Option<Params>,
900}
901impl ::prost::Name for MsgUpdateParams {
902    const NAME: &'static str = "MsgUpdateParams";
903    const PACKAGE: &'static str = "side.lending";
904    fn full_name() -> ::prost::alloc::string::String {
905        ::prost::alloc::format!("side.lending.{}", Self::NAME)
906    }
907}
908/// MsgUpdateParamsResponse defines the Msg/UpdateParams response type.
909///
910/// Since: cosmos-sdk 0.47
911#[allow(clippy::derive_partial_eq_without_eq)]
912#[derive(Clone, PartialEq, ::prost::Message)]
913pub struct MsgUpdateParamsResponse {}
914impl ::prost::Name for MsgUpdateParamsResponse {
915    const NAME: &'static str = "MsgUpdateParamsResponse";
916    const PACKAGE: &'static str = "side.lending";
917    fn full_name() -> ::prost::alloc::string::String {
918        ::prost::alloc::format!("side.lending.{}", Self::NAME)
919    }
920}
921include!("side.lending.serde.rs");
922include!("side.lending.tonic.rs");
923// @@protoc_insertion_point(module)