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, tag = "5")]
159    pub dca_adaptor_signature: ::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#[allow(clippy::derive_partial_eq_without_eq)]
264#[derive(Clone, PartialEq, ::prost::Message)]
265pub struct QueryLiquidationEventRequest {
266    #[prost(message, optional, tag = "1")]
267    pub borrow_amount: ::core::option::Option<super::super::cosmos::base::v1beta1::Coin>,
268    #[prost(message, optional, tag = "2")]
269    pub collateral_acmount: ::core::option::Option<super::super::cosmos::base::v1beta1::Coin>,
270}
271impl ::prost::Name for QueryLiquidationEventRequest {
272    const NAME: &'static str = "QueryLiquidationEventRequest";
273    const PACKAGE: &'static str = "side.lending";
274    fn full_name() -> ::prost::alloc::string::String {
275        ::prost::alloc::format!("side.lending.{}", Self::NAME)
276    }
277}
278#[allow(clippy::derive_partial_eq_without_eq)]
279#[derive(Clone, PartialEq, ::prost::Message)]
280pub struct QueryLiquidationEventResponse {
281    #[prost(uint64, tag = "1")]
282    pub event_id: u64,
283    #[prost(string, tag = "2")]
284    pub oracle_pubkey: ::prost::alloc::string::String,
285    #[prost(string, tag = "3")]
286    pub nonce: ::prost::alloc::string::String,
287    #[prost(string, tag = "4")]
288    pub price: ::prost::alloc::string::String,
289    #[prost(string, tag = "5")]
290    pub signature_point: ::prost::alloc::string::String,
291}
292impl ::prost::Name for QueryLiquidationEventResponse {
293    const NAME: &'static str = "QueryLiquidationEventResponse";
294    const PACKAGE: &'static str = "side.lending";
295    fn full_name() -> ::prost::alloc::string::String {
296        ::prost::alloc::format!("side.lending.{}", Self::NAME)
297    }
298}
299#[allow(clippy::derive_partial_eq_without_eq)]
300#[derive(Clone, PartialEq, ::prost::Message)]
301pub struct QueryLiquidationCetRequest {
302    #[prost(string, tag = "1")]
303    pub borrower_pubkey: ::prost::alloc::string::String,
304    #[prost(string, tag = "2")]
305    pub agency_pubkey: ::prost::alloc::string::String,
306}
307impl ::prost::Name for QueryLiquidationCetRequest {
308    const NAME: &'static str = "QueryLiquidationCetRequest";
309    const PACKAGE: &'static str = "side.lending";
310    fn full_name() -> ::prost::alloc::string::String {
311        ::prost::alloc::format!("side.lending.{}", Self::NAME)
312    }
313}
314#[allow(clippy::derive_partial_eq_without_eq)]
315#[derive(Clone, PartialEq, ::prost::Message)]
316pub struct QueryLiquidationCetResponse {
317    #[prost(string, tag = "1")]
318    pub liquidation_cet_script: ::prost::alloc::string::String,
319}
320impl ::prost::Name for QueryLiquidationCetResponse {
321    const NAME: &'static str = "QueryLiquidationCetResponse";
322    const PACKAGE: &'static str = "side.lending";
323    fn full_name() -> ::prost::alloc::string::String {
324        ::prost::alloc::format!("side.lending.{}", Self::NAME)
325    }
326}
327#[allow(clippy::derive_partial_eq_without_eq)]
328#[derive(Clone, PartialEq, ::prost::Message)]
329pub struct QueryCollateralAddressRequest {
330    #[prost(string, tag = "1")]
331    pub borrower_pubkey: ::prost::alloc::string::String,
332    #[prost(string, tag = "2")]
333    pub agency_pubkey: ::prost::alloc::string::String,
334    #[prost(string, tag = "3")]
335    pub hash_of_loan_secret: ::prost::alloc::string::String,
336    #[prost(uint64, tag = "4")]
337    pub maturity_time: u64,
338    #[prost(uint64, tag = "5")]
339    pub final_timeout: u64,
340}
341impl ::prost::Name for QueryCollateralAddressRequest {
342    const NAME: &'static str = "QueryCollateralAddressRequest";
343    const PACKAGE: &'static str = "side.lending";
344    fn full_name() -> ::prost::alloc::string::String {
345        ::prost::alloc::format!("side.lending.{}", Self::NAME)
346    }
347}
348#[allow(clippy::derive_partial_eq_without_eq)]
349#[derive(Clone, PartialEq, ::prost::Message)]
350pub struct QueryCollateralAddressResponse {
351    #[prost(string, tag = "1")]
352    pub address: ::prost::alloc::string::String,
353}
354impl ::prost::Name for QueryCollateralAddressResponse {
355    const NAME: &'static str = "QueryCollateralAddressResponse";
356    const PACKAGE: &'static str = "side.lending";
357    fn full_name() -> ::prost::alloc::string::String {
358        ::prost::alloc::format!("side.lending.{}", Self::NAME)
359    }
360}
361/// QueryParamsRequest is request type for the Query/Params RPC method.
362#[allow(clippy::derive_partial_eq_without_eq)]
363#[derive(Clone, PartialEq, ::prost::Message)]
364pub struct QueryParamsRequest {}
365impl ::prost::Name for QueryParamsRequest {
366    const NAME: &'static str = "QueryParamsRequest";
367    const PACKAGE: &'static str = "side.lending";
368    fn full_name() -> ::prost::alloc::string::String {
369        ::prost::alloc::format!("side.lending.{}", Self::NAME)
370    }
371}
372/// QueryParamsResponse is response type for the Query/Params RPC method.
373#[allow(clippy::derive_partial_eq_without_eq)]
374#[derive(Clone, PartialEq, ::prost::Message)]
375pub struct QueryParamsResponse {
376    #[prost(message, optional, tag = "1")]
377    pub params: ::core::option::Option<Params>,
378}
379impl ::prost::Name for QueryParamsResponse {
380    const NAME: &'static str = "QueryParamsResponse";
381    const PACKAGE: &'static str = "side.lending";
382    fn full_name() -> ::prost::alloc::string::String {
383        ::prost::alloc::format!("side.lending.{}", Self::NAME)
384    }
385}
386/// QueryLoanRequest is request type for the Query/Loan RPC method.
387#[allow(clippy::derive_partial_eq_without_eq)]
388#[derive(Clone, PartialEq, ::prost::Message)]
389pub struct QueryLoanRequest {
390    #[prost(string, tag = "1")]
391    pub loan_id: ::prost::alloc::string::String,
392}
393impl ::prost::Name for QueryLoanRequest {
394    const NAME: &'static str = "QueryLoanRequest";
395    const PACKAGE: &'static str = "side.lending";
396    fn full_name() -> ::prost::alloc::string::String {
397        ::prost::alloc::format!("side.lending.{}", Self::NAME)
398    }
399}
400/// QueryLoanResponse is response type for the Query/Loan RPC method.
401#[allow(clippy::derive_partial_eq_without_eq)]
402#[derive(Clone, PartialEq, ::prost::Message)]
403pub struct QueryLoanResponse {
404    #[prost(message, optional, tag = "1")]
405    pub loan: ::core::option::Option<Loan>,
406}
407impl ::prost::Name for QueryLoanResponse {
408    const NAME: &'static str = "QueryLoanResponse";
409    const PACKAGE: &'static str = "side.lending";
410    fn full_name() -> ::prost::alloc::string::String {
411        ::prost::alloc::format!("side.lending.{}", Self::NAME)
412    }
413}
414/// QueryLoansRequest is request type for the Query/Loans RPC method.
415#[allow(clippy::derive_partial_eq_without_eq)]
416#[derive(Clone, PartialEq, ::prost::Message)]
417pub struct QueryLoansRequest {
418    #[prost(enumeration = "LoanStatus", tag = "1")]
419    pub status: i32,
420    #[prost(message, optional, tag = "2")]
421    pub pagination: ::core::option::Option<super::super::cosmos::base::query::v1beta1::PageRequest>,
422}
423impl ::prost::Name for QueryLoansRequest {
424    const NAME: &'static str = "QueryLoansRequest";
425    const PACKAGE: &'static str = "side.lending";
426    fn full_name() -> ::prost::alloc::string::String {
427        ::prost::alloc::format!("side.lending.{}", Self::NAME)
428    }
429}
430/// QueryLoansResponse is response type for the Query/Loans RPC method.
431#[allow(clippy::derive_partial_eq_without_eq)]
432#[derive(Clone, PartialEq, ::prost::Message)]
433pub struct QueryLoansResponse {
434    #[prost(message, repeated, tag = "1")]
435    pub loans: ::prost::alloc::vec::Vec<Loan>,
436    #[prost(message, optional, tag = "2")]
437    pub pagination:
438        ::core::option::Option<super::super::cosmos::base::query::v1beta1::PageResponse>,
439}
440impl ::prost::Name for QueryLoansResponse {
441    const NAME: &'static str = "QueryLoansResponse";
442    const PACKAGE: &'static str = "side.lending";
443    fn full_name() -> ::prost::alloc::string::String {
444        ::prost::alloc::format!("side.lending.{}", Self::NAME)
445    }
446}
447/// QueryLoanDlcMetaRequest is request type for the Query/LoanDlcMeta RPC method.
448#[allow(clippy::derive_partial_eq_without_eq)]
449#[derive(Clone, PartialEq, ::prost::Message)]
450pub struct QueryLoanDlcMetaRequest {
451    #[prost(string, tag = "1")]
452    pub loan_id: ::prost::alloc::string::String,
453}
454impl ::prost::Name for QueryLoanDlcMetaRequest {
455    const NAME: &'static str = "QueryLoanDlcMetaRequest";
456    const PACKAGE: &'static str = "side.lending";
457    fn full_name() -> ::prost::alloc::string::String {
458        ::prost::alloc::format!("side.lending.{}", Self::NAME)
459    }
460}
461/// QueryLoanDlcMetaResponse is response type for the Query/LoanDlcMeta RPC method.
462#[allow(clippy::derive_partial_eq_without_eq)]
463#[derive(Clone, PartialEq, ::prost::Message)]
464pub struct QueryLoanDlcMetaResponse {
465    #[prost(message, optional, tag = "1")]
466    pub dlc_meta: ::core::option::Option<DlcMeta>,
467}
468impl ::prost::Name for QueryLoanDlcMetaResponse {
469    const NAME: &'static str = "QueryLoanDlcMetaResponse";
470    const PACKAGE: &'static str = "side.lending";
471    fn full_name() -> ::prost::alloc::string::String {
472        ::prost::alloc::format!("side.lending.{}", Self::NAME)
473    }
474}
475#[allow(clippy::derive_partial_eq_without_eq)]
476#[derive(Clone, PartialEq, ::prost::Message)]
477pub struct QueryRepaymentRequest {
478    #[prost(string, tag = "1")]
479    pub loan_id: ::prost::alloc::string::String,
480}
481impl ::prost::Name for QueryRepaymentRequest {
482    const NAME: &'static str = "QueryRepaymentRequest";
483    const PACKAGE: &'static str = "side.lending";
484    fn full_name() -> ::prost::alloc::string::String {
485        ::prost::alloc::format!("side.lending.{}", Self::NAME)
486    }
487}
488#[allow(clippy::derive_partial_eq_without_eq)]
489#[derive(Clone, PartialEq, ::prost::Message)]
490pub struct QueryRepaymentResponse {
491    #[prost(message, optional, tag = "1")]
492    pub repayment: ::core::option::Option<Repayment>,
493}
494impl ::prost::Name for QueryRepaymentResponse {
495    const NAME: &'static str = "QueryRepaymentResponse";
496    const PACKAGE: &'static str = "side.lending";
497    fn full_name() -> ::prost::alloc::string::String {
498        ::prost::alloc::format!("side.lending.{}", Self::NAME)
499    }
500}
501#[allow(clippy::derive_partial_eq_without_eq)]
502#[derive(Clone, PartialEq, ::prost::Message)]
503pub struct MsgCreatePool {
504    #[prost(string, tag = "1")]
505    pub creator: ::prost::alloc::string::String,
506    #[prost(string, tag = "2")]
507    pub pool_id: ::prost::alloc::string::String,
508    #[prost(string, tag = "3")]
509    pub lending_asset: ::prost::alloc::string::String,
510}
511impl ::prost::Name for MsgCreatePool {
512    const NAME: &'static str = "MsgCreatePool";
513    const PACKAGE: &'static str = "side.lending";
514    fn full_name() -> ::prost::alloc::string::String {
515        ::prost::alloc::format!("side.lending.{}", Self::NAME)
516    }
517}
518#[allow(clippy::derive_partial_eq_without_eq)]
519#[derive(Clone, PartialEq, ::prost::Message)]
520pub struct MsgCreatePoolResponse {}
521impl ::prost::Name for MsgCreatePoolResponse {
522    const NAME: &'static str = "MsgCreatePoolResponse";
523    const PACKAGE: &'static str = "side.lending";
524    fn full_name() -> ::prost::alloc::string::String {
525        ::prost::alloc::format!("side.lending.{}", Self::NAME)
526    }
527}
528#[allow(clippy::derive_partial_eq_without_eq)]
529#[derive(Clone, PartialEq, ::prost::Message)]
530pub struct MsgRepay {
531    #[prost(string, tag = "1")]
532    pub borrower: ::prost::alloc::string::String,
533    #[prost(string, tag = "2")]
534    pub loan_id: ::prost::alloc::string::String,
535    #[prost(string, tag = "3")]
536    pub adaptor_point: ::prost::alloc::string::String,
537}
538impl ::prost::Name for MsgRepay {
539    const NAME: &'static str = "MsgRepay";
540    const PACKAGE: &'static str = "side.lending";
541    fn full_name() -> ::prost::alloc::string::String {
542        ::prost::alloc::format!("side.lending.{}", Self::NAME)
543    }
544}
545#[allow(clippy::derive_partial_eq_without_eq)]
546#[derive(Clone, PartialEq, ::prost::Message)]
547pub struct MsgRepayResponse {}
548impl ::prost::Name for MsgRepayResponse {
549    const NAME: &'static str = "MsgRepayResponse";
550    const PACKAGE: &'static str = "side.lending";
551    fn full_name() -> ::prost::alloc::string::String {
552        ::prost::alloc::format!("side.lending.{}", Self::NAME)
553    }
554}
555#[allow(clippy::derive_partial_eq_without_eq)]
556#[derive(Clone, PartialEq, ::prost::Message)]
557pub struct MsgRedeem {
558    #[prost(string, tag = "1")]
559    pub borrower: ::prost::alloc::string::String,
560    #[prost(string, tag = "2")]
561    pub loan_id: ::prost::alloc::string::String,
562    #[prost(string, tag = "3")]
563    pub loan_secret: ::prost::alloc::string::String,
564}
565impl ::prost::Name for MsgRedeem {
566    const NAME: &'static str = "MsgRedeem";
567    const PACKAGE: &'static str = "side.lending";
568    fn full_name() -> ::prost::alloc::string::String {
569        ::prost::alloc::format!("side.lending.{}", Self::NAME)
570    }
571}
572#[allow(clippy::derive_partial_eq_without_eq)]
573#[derive(Clone, PartialEq, ::prost::Message)]
574pub struct MsgRedeemResponse {}
575impl ::prost::Name for MsgRedeemResponse {
576    const NAME: &'static str = "MsgRedeemResponse";
577    const PACKAGE: &'static str = "side.lending";
578    fn full_name() -> ::prost::alloc::string::String {
579        ::prost::alloc::format!("side.lending.{}", Self::NAME)
580    }
581}
582#[allow(clippy::derive_partial_eq_without_eq)]
583#[derive(Clone, PartialEq, ::prost::Message)]
584pub struct MsgAddLiquidity {
585    #[prost(string, tag = "1")]
586    pub pool_id: ::prost::alloc::string::String,
587    #[prost(string, tag = "2")]
588    pub lender: ::prost::alloc::string::String,
589    #[prost(message, optional, tag = "3")]
590    pub amount: ::core::option::Option<super::super::cosmos::base::v1beta1::Coin>,
591}
592impl ::prost::Name for MsgAddLiquidity {
593    const NAME: &'static str = "MsgAddLiquidity";
594    const PACKAGE: &'static str = "side.lending";
595    fn full_name() -> ::prost::alloc::string::String {
596        ::prost::alloc::format!("side.lending.{}", Self::NAME)
597    }
598}
599#[allow(clippy::derive_partial_eq_without_eq)]
600#[derive(Clone, PartialEq, ::prost::Message)]
601pub struct MsgAddLiquidityResponse {
602    #[prost(message, optional, tag = "1")]
603    pub shares: ::core::option::Option<super::super::cosmos::base::v1beta1::Coin>,
604}
605impl ::prost::Name for MsgAddLiquidityResponse {
606    const NAME: &'static str = "MsgAddLiquidityResponse";
607    const PACKAGE: &'static str = "side.lending";
608    fn full_name() -> ::prost::alloc::string::String {
609        ::prost::alloc::format!("side.lending.{}", Self::NAME)
610    }
611}
612#[allow(clippy::derive_partial_eq_without_eq)]
613#[derive(Clone, PartialEq, ::prost::Message)]
614pub struct MsgRemoveLiquidity {
615    #[prost(string, tag = "1")]
616    pub lender: ::prost::alloc::string::String,
617    #[prost(message, optional, tag = "2")]
618    pub shares: ::core::option::Option<super::super::cosmos::base::v1beta1::Coin>,
619}
620impl ::prost::Name for MsgRemoveLiquidity {
621    const NAME: &'static str = "MsgRemoveLiquidity";
622    const PACKAGE: &'static str = "side.lending";
623    fn full_name() -> ::prost::alloc::string::String {
624        ::prost::alloc::format!("side.lending.{}", Self::NAME)
625    }
626}
627#[allow(clippy::derive_partial_eq_without_eq)]
628#[derive(Clone, PartialEq, ::prost::Message)]
629pub struct MsgRemoveLiquidityResponse {
630    #[prost(message, optional, tag = "1")]
631    pub amount: ::core::option::Option<super::super::cosmos::base::v1beta1::Coin>,
632}
633impl ::prost::Name for MsgRemoveLiquidityResponse {
634    const NAME: &'static str = "MsgRemoveLiquidityResponse";
635    const PACKAGE: &'static str = "side.lending";
636    fn full_name() -> ::prost::alloc::string::String {
637        ::prost::alloc::format!("side.lending.{}", Self::NAME)
638    }
639}
640#[allow(clippy::derive_partial_eq_without_eq)]
641#[derive(Clone, PartialEq, ::prost::Message)]
642pub struct MsgApply {
643    #[prost(string, tag = "1")]
644    pub borrower: ::prost::alloc::string::String,
645    #[prost(string, tag = "2")]
646    pub borrower_pubkey: ::prost::alloc::string::String,
647    #[prost(string, tag = "3")]
648    pub loan_secret_hash: ::prost::alloc::string::String,
649    #[prost(int64, tag = "4")]
650    pub maturity_time: i64,
651    #[prost(int64, tag = "5")]
652    pub final_timeout: i64,
653    #[prost(string, tag = "6")]
654    pub pool_id: ::prost::alloc::string::String,
655    #[prost(message, optional, tag = "7")]
656    pub borrow_amount: ::core::option::Option<super::super::cosmos::base::v1beta1::Coin>,
657    #[prost(uint64, tag = "8")]
658    pub event_id: u64,
659    #[prost(uint64, tag = "9")]
660    pub agency_id: u64,
661    #[prost(string, tag = "10")]
662    pub deposit_tx: ::prost::alloc::string::String,
663    #[prost(string, tag = "11")]
664    pub liquidation_cet: ::prost::alloc::string::String,
665    #[prost(string, tag = "12")]
666    pub liquidation_adaptor_signature: ::prost::alloc::string::String,
667}
668impl ::prost::Name for MsgApply {
669    const NAME: &'static str = "MsgApply";
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 MsgApplyResponse {
678    #[prost(string, tag = "1")]
679    pub vault_address: ::prost::alloc::string::String,
680}
681impl ::prost::Name for MsgApplyResponse {
682    const NAME: &'static str = "MsgApplyResponse";
683    const PACKAGE: &'static str = "side.lending";
684    fn full_name() -> ::prost::alloc::string::String {
685        ::prost::alloc::format!("side.lending.{}", Self::NAME)
686    }
687}
688#[allow(clippy::derive_partial_eq_without_eq)]
689#[derive(Clone, PartialEq, ::prost::Message)]
690pub struct MsgApprove {
691    #[prost(string, tag = "1")]
692    pub relayer: ::prost::alloc::string::String,
693    #[prost(string, tag = "2")]
694    pub deposit_tx_id: ::prost::alloc::string::String,
695    #[prost(string, tag = "3")]
696    pub block_hash: ::prost::alloc::string::String,
697    #[prost(string, repeated, tag = "4")]
698    pub proof: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
699}
700impl ::prost::Name for MsgApprove {
701    const NAME: &'static str = "MsgApprove";
702    const PACKAGE: &'static str = "side.lending";
703    fn full_name() -> ::prost::alloc::string::String {
704        ::prost::alloc::format!("side.lending.{}", Self::NAME)
705    }
706}
707#[allow(clippy::derive_partial_eq_without_eq)]
708#[derive(Clone, PartialEq, ::prost::Message)]
709pub struct MsgApproveResponse {}
710impl ::prost::Name for MsgApproveResponse {
711    const NAME: &'static str = "MsgApproveResponse";
712    const PACKAGE: &'static str = "side.lending";
713    fn full_name() -> ::prost::alloc::string::String {
714        ::prost::alloc::format!("side.lending.{}", Self::NAME)
715    }
716}
717#[allow(clippy::derive_partial_eq_without_eq)]
718#[derive(Clone, PartialEq, ::prost::Message)]
719pub struct MsgSubmitRepaymentAdaptorSignature {
720    #[prost(string, tag = "1")]
721    pub sender: ::prost::alloc::string::String,
722    #[prost(string, tag = "2")]
723    pub loan_id: ::prost::alloc::string::String,
724    #[prost(string, tag = "3")]
725    pub adaptor_signature: ::prost::alloc::string::String,
726}
727impl ::prost::Name for MsgSubmitRepaymentAdaptorSignature {
728    const NAME: &'static str = "MsgSubmitRepaymentAdaptorSignature";
729    const PACKAGE: &'static str = "side.lending";
730    fn full_name() -> ::prost::alloc::string::String {
731        ::prost::alloc::format!("side.lending.{}", Self::NAME)
732    }
733}
734#[allow(clippy::derive_partial_eq_without_eq)]
735#[derive(Clone, PartialEq, ::prost::Message)]
736pub struct MsgSubmitRepaymentAdaptorSignatureResponse {}
737impl ::prost::Name for MsgSubmitRepaymentAdaptorSignatureResponse {
738    const NAME: &'static str = "MsgSubmitRepaymentAdaptorSignatureResponse";
739    const PACKAGE: &'static str = "side.lending";
740    fn full_name() -> ::prost::alloc::string::String {
741        ::prost::alloc::format!("side.lending.{}", Self::NAME)
742    }
743}
744#[allow(clippy::derive_partial_eq_without_eq)]
745#[derive(Clone, PartialEq, ::prost::Message)]
746pub struct MsgSubmitLiquidationCetSignatures {
747    #[prost(string, tag = "1")]
748    pub sender: ::prost::alloc::string::String,
749    #[prost(string, tag = "2")]
750    pub loan_id: ::prost::alloc::string::String,
751    #[prost(string, repeated, tag = "3")]
752    pub signatures: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
753}
754impl ::prost::Name for MsgSubmitLiquidationCetSignatures {
755    const NAME: &'static str = "MsgSubmitLiquidationCetSignatures";
756    const PACKAGE: &'static str = "side.lending";
757    fn full_name() -> ::prost::alloc::string::String {
758        ::prost::alloc::format!("side.lending.{}", Self::NAME)
759    }
760}
761#[allow(clippy::derive_partial_eq_without_eq)]
762#[derive(Clone, PartialEq, ::prost::Message)]
763pub struct MsgSubmitLiquidationCetSignaturesResponse {}
764impl ::prost::Name for MsgSubmitLiquidationCetSignaturesResponse {
765    const NAME: &'static str = "MsgSubmitLiquidationCetSignaturesResponse";
766    const PACKAGE: &'static str = "side.lending";
767    fn full_name() -> ::prost::alloc::string::String {
768        ::prost::alloc::format!("side.lending.{}", Self::NAME)
769    }
770}
771#[allow(clippy::derive_partial_eq_without_eq)]
772#[derive(Clone, PartialEq, ::prost::Message)]
773pub struct MsgClose {
774    #[prost(string, tag = "1")]
775    pub relayer: ::prost::alloc::string::String,
776    #[prost(string, tag = "2")]
777    pub loan_id: ::prost::alloc::string::String,
778    #[prost(string, tag = "3")]
779    pub signature: ::prost::alloc::string::String,
780}
781impl ::prost::Name for MsgClose {
782    const NAME: &'static str = "MsgClose";
783    const PACKAGE: &'static str = "side.lending";
784    fn full_name() -> ::prost::alloc::string::String {
785        ::prost::alloc::format!("side.lending.{}", Self::NAME)
786    }
787}
788#[allow(clippy::derive_partial_eq_without_eq)]
789#[derive(Clone, PartialEq, ::prost::Message)]
790pub struct MsgCloseResponse {}
791impl ::prost::Name for MsgCloseResponse {
792    const NAME: &'static str = "MsgCloseResponse";
793    const PACKAGE: &'static str = "side.lending";
794    fn full_name() -> ::prost::alloc::string::String {
795        ::prost::alloc::format!("side.lending.{}", Self::NAME)
796    }
797}
798#[allow(clippy::derive_partial_eq_without_eq)]
799#[derive(Clone, PartialEq, ::prost::Message)]
800pub struct MsgSubmitPrice {
801    #[prost(string, tag = "1")]
802    pub sender: ::prost::alloc::string::String,
803    #[prost(string, tag = "2")]
804    pub price: ::prost::alloc::string::String,
805}
806impl ::prost::Name for MsgSubmitPrice {
807    const NAME: &'static str = "MsgSubmitPrice";
808    const PACKAGE: &'static str = "side.lending";
809    fn full_name() -> ::prost::alloc::string::String {
810        ::prost::alloc::format!("side.lending.{}", Self::NAME)
811    }
812}
813#[allow(clippy::derive_partial_eq_without_eq)]
814#[derive(Clone, PartialEq, ::prost::Message)]
815pub struct MsgSubmitPriceResponse {}
816impl ::prost::Name for MsgSubmitPriceResponse {
817    const NAME: &'static str = "MsgSubmitPriceResponse";
818    const PACKAGE: &'static str = "side.lending";
819    fn full_name() -> ::prost::alloc::string::String {
820        ::prost::alloc::format!("side.lending.{}", Self::NAME)
821    }
822}
823/// MsgUpdateParams is the Msg/UpdateParams request type.
824///
825/// Since: cosmos-sdk 0.47
826#[allow(clippy::derive_partial_eq_without_eq)]
827#[derive(Clone, PartialEq, ::prost::Message)]
828pub struct MsgUpdateParams {
829    /// authority is the address that controls the module (defaults to x/gov unless overwritten).
830    #[prost(string, tag = "1")]
831    pub authority: ::prost::alloc::string::String,
832    /// params defines the x/dlc parameters to be updated.
833    ///
834    /// NOTE: All parameters must be supplied.
835    #[prost(message, optional, tag = "2")]
836    pub params: ::core::option::Option<Params>,
837}
838impl ::prost::Name for MsgUpdateParams {
839    const NAME: &'static str = "MsgUpdateParams";
840    const PACKAGE: &'static str = "side.lending";
841    fn full_name() -> ::prost::alloc::string::String {
842        ::prost::alloc::format!("side.lending.{}", Self::NAME)
843    }
844}
845/// MsgUpdateParamsResponse defines the Msg/UpdateParams response type.
846///
847/// Since: cosmos-sdk 0.47
848#[allow(clippy::derive_partial_eq_without_eq)]
849#[derive(Clone, PartialEq, ::prost::Message)]
850pub struct MsgUpdateParamsResponse {}
851impl ::prost::Name for MsgUpdateParamsResponse {
852    const NAME: &'static str = "MsgUpdateParamsResponse";
853    const PACKAGE: &'static str = "side.lending";
854    fn full_name() -> ::prost::alloc::string::String {
855        ::prost::alloc::format!("side.lending.{}", Self::NAME)
856    }
857}
858include!("side.lending.serde.rs");
859include!("side.lending.tonic.rs");
860// @@protoc_insertion_point(module)