Skip to content

Commit 7293f6f

Browse files
committed
update proto
1 parent b45dce7 commit 7293f6f

4 files changed

Lines changed: 626 additions & 19 deletions

File tree

side-proto/src/prost/side/side.lending.rs

Lines changed: 65 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,65 @@ impl ::prost::Name for GenesisState {
260260
::prost::alloc::format!("side.lending.{}", Self::NAME)
261261
}
262262
}
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)]
266+
pub struct QueryPoolRequest {
267+
#[prost(string, tag = "1")]
268+
pub id: ::prost::alloc::string::String,
269+
}
270+
impl ::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)]
280+
pub struct QueryPoolResponse {
281+
#[prost(message, optional, tag = "1")]
282+
pub pool: ::core::option::Option<LendingPool>,
283+
}
284+
impl ::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)]
294+
pub struct QueryPoolsRequest {
295+
#[prost(message, optional, tag = "1")]
296+
pub pagination: ::core::option::Option<super::super::cosmos::base::query::v1beta1::PageRequest>,
297+
}
298+
impl ::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)]
308+
pub 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+
}
315+
impl ::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+
}
263322
#[allow(clippy::derive_partial_eq_without_eq)]
264323
#[derive(Clone, PartialEq, ::prost::Message)]
265324
pub struct QueryLiquidationEventRequest {
@@ -300,8 +359,10 @@ impl ::prost::Name for QueryLiquidationEventResponse {
300359
#[derive(Clone, PartialEq, ::prost::Message)]
301360
pub struct QueryLiquidationCetRequest {
302361
#[prost(string, tag = "1")]
303-
pub borrower_pubkey: ::prost::alloc::string::String,
362+
pub loan_id: ::prost::alloc::string::String,
304363
#[prost(string, tag = "2")]
364+
pub borrower_pubkey: ::prost::alloc::string::String,
365+
#[prost(string, tag = "3")]
305366
pub agency_pubkey: ::prost::alloc::string::String,
306367
}
307368
impl ::prost::Name for QueryLiquidationCetRequest {
@@ -315,7 +376,9 @@ impl ::prost::Name for QueryLiquidationCetRequest {
315376
#[derive(Clone, PartialEq, ::prost::Message)]
316377
pub struct QueryLiquidationCetResponse {
317378
#[prost(string, tag = "1")]
318-
pub liquidation_cet_script: ::prost::alloc::string::String,
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>,
319382
}
320383
impl ::prost::Name for QueryLiquidationCetResponse {
321384
const NAME: &'static str = "QueryLiquidationCetResponse";

0 commit comments

Comments
 (0)