Skip to content

Commit

Permalink
penumbra: regenerate protos
Browse files Browse the repository at this point in the history
  • Loading branch information
erwanor committed Apr 29, 2024
1 parent 796a7f5 commit 29d070a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
Binary file modified crates/cnidarium/src/gen/proto_descriptor.bin.no_lfs
Binary file not shown.
2 changes: 2 additions & 0 deletions crates/proto/src/gen/penumbra.core.component.dex.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1172,6 +1172,8 @@ impl ::prost::Name for LiquidityPositionsByPriceRequest {
pub struct LiquidityPositionsByPriceResponse {
#[prost(message, optional, tag = "1")]
pub data: ::core::option::Option<Position>,
#[prost(message, optional, tag = "2")]
pub id: ::core::option::Option<PositionId>,
}
impl ::prost::Name for LiquidityPositionsByPriceResponse {
const NAME: &'static str = "LiquidityPositionsByPriceResponse";
Expand Down
17 changes: 17 additions & 0 deletions crates/proto/src/gen/penumbra.core.component.dex.v1.serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3377,10 +3377,16 @@ impl serde::Serialize for LiquidityPositionsByPriceResponse {
if self.data.is_some() {
len += 1;
}
if self.id.is_some() {
len += 1;
}
let mut struct_ser = serializer.serialize_struct("penumbra.core.component.dex.v1.LiquidityPositionsByPriceResponse", len)?;
if let Some(v) = self.data.as_ref() {
struct_ser.serialize_field("data", v)?;
}
if let Some(v) = self.id.as_ref() {
struct_ser.serialize_field("id", v)?;
}
struct_ser.end()
}
}
Expand All @@ -3392,11 +3398,13 @@ impl<'de> serde::Deserialize<'de> for LiquidityPositionsByPriceResponse {
{
const FIELDS: &[&str] = &[
"data",
"id",
];

#[allow(clippy::enum_variant_names)]
enum GeneratedField {
Data,
Id,
__SkipField__,
}
impl<'de> serde::Deserialize<'de> for GeneratedField {
Expand All @@ -3420,6 +3428,7 @@ impl<'de> serde::Deserialize<'de> for LiquidityPositionsByPriceResponse {
{
match value {
"data" => Ok(GeneratedField::Data),
"id" => Ok(GeneratedField::Id),
_ => Ok(GeneratedField::__SkipField__),
}
}
Expand All @@ -3440,6 +3449,7 @@ impl<'de> serde::Deserialize<'de> for LiquidityPositionsByPriceResponse {
V: serde::de::MapAccess<'de>,
{
let mut data__ = None;
let mut id__ = None;
while let Some(k) = map_.next_key()? {
match k {
GeneratedField::Data => {
Expand All @@ -3448,13 +3458,20 @@ impl<'de> serde::Deserialize<'de> for LiquidityPositionsByPriceResponse {
}
data__ = map_.next_value()?;
}
GeneratedField::Id => {
if id__.is_some() {
return Err(serde::de::Error::duplicate_field("id"));
}
id__ = map_.next_value()?;
}
GeneratedField::__SkipField__ => {
let _ = map_.next_value::<serde::de::IgnoredAny>()?;
}
}
}
Ok(LiquidityPositionsByPriceResponse {
data: data__,
id: id__,
})
}
}
Expand Down
Binary file modified crates/proto/src/gen/proto_descriptor.bin.no_lfs
Binary file not shown.

0 comments on commit 29d070a

Please sign in to comment.