From 055c03f6b7aac14f61f7a9af436f2ed1ecd994d3 Mon Sep 17 00:00:00 2001 From: Jesse Pinho Date: Sat, 30 Mar 2024 17:00:55 -0700 Subject: [PATCH] Run codegen --- crates/proto/src/gen/penumbra.view.v1.rs | 5 +++++ .../proto/src/gen/penumbra.view.v1.serde.rs | 18 ++++++++++++++++++ .../proto/src/gen/proto_descriptor.bin.no_lfs | Bin 382593 -> 382778 bytes 3 files changed, 23 insertions(+) diff --git a/crates/proto/src/gen/penumbra.view.v1.rs b/crates/proto/src/gen/penumbra.view.v1.rs index 6d931071f6..6ee1f98e77 100644 --- a/crates/proto/src/gen/penumbra.view.v1.rs +++ b/crates/proto/src/gen/penumbra.view.v1.rs @@ -1464,6 +1464,11 @@ pub struct UnbondingTokensByAddressIndexRequest { tag = "1" )] pub filter: i32, + /// The address index to fetch unbonding tokens for. + #[prost(message, optional, tag = "2")] + pub address_index: ::core::option::Option< + super::super::core::keys::v1::AddressIndex, + >, } /// Nested message and enum types in `UnbondingTokensByAddressIndexRequest`. pub mod unbonding_tokens_by_address_index_request { diff --git a/crates/proto/src/gen/penumbra.view.v1.serde.rs b/crates/proto/src/gen/penumbra.view.v1.serde.rs index 6d1dfd7ca3..7f4bce737c 100644 --- a/crates/proto/src/gen/penumbra.view.v1.serde.rs +++ b/crates/proto/src/gen/penumbra.view.v1.serde.rs @@ -7297,12 +7297,18 @@ impl serde::Serialize for UnbondingTokensByAddressIndexRequest { if self.filter != 0 { len += 1; } + if self.address_index.is_some() { + len += 1; + } let mut struct_ser = serializer.serialize_struct("penumbra.view.v1.UnbondingTokensByAddressIndexRequest", len)?; if self.filter != 0 { let v = unbonding_tokens_by_address_index_request::Filter::try_from(self.filter) .map_err(|_| serde::ser::Error::custom(format!("Invalid variant {}", self.filter)))?; struct_ser.serialize_field("filter", &v)?; } + if let Some(v) = self.address_index.as_ref() { + struct_ser.serialize_field("addressIndex", v)?; + } struct_ser.end() } } @@ -7314,11 +7320,14 @@ impl<'de> serde::Deserialize<'de> for UnbondingTokensByAddressIndexRequest { { const FIELDS: &[&str] = &[ "filter", + "address_index", + "addressIndex", ]; #[allow(clippy::enum_variant_names)] enum GeneratedField { Filter, + AddressIndex, __SkipField__, } impl<'de> serde::Deserialize<'de> for GeneratedField { @@ -7342,6 +7351,7 @@ impl<'de> serde::Deserialize<'de> for UnbondingTokensByAddressIndexRequest { { match value { "filter" => Ok(GeneratedField::Filter), + "addressIndex" | "address_index" => Ok(GeneratedField::AddressIndex), _ => Ok(GeneratedField::__SkipField__), } } @@ -7362,6 +7372,7 @@ impl<'de> serde::Deserialize<'de> for UnbondingTokensByAddressIndexRequest { V: serde::de::MapAccess<'de>, { let mut filter__ = None; + let mut address_index__ = None; while let Some(k) = map_.next_key()? { match k { GeneratedField::Filter => { @@ -7370,6 +7381,12 @@ impl<'de> serde::Deserialize<'de> for UnbondingTokensByAddressIndexRequest { } filter__ = Some(map_.next_value::()? as i32); } + GeneratedField::AddressIndex => { + if address_index__.is_some() { + return Err(serde::de::Error::duplicate_field("addressIndex")); + } + address_index__ = map_.next_value()?; + } GeneratedField::__SkipField__ => { let _ = map_.next_value::()?; } @@ -7377,6 +7394,7 @@ impl<'de> serde::Deserialize<'de> for UnbondingTokensByAddressIndexRequest { } Ok(UnbondingTokensByAddressIndexRequest { filter: filter__.unwrap_or_default(), + address_index: address_index__, }) } } diff --git a/crates/proto/src/gen/proto_descriptor.bin.no_lfs b/crates/proto/src/gen/proto_descriptor.bin.no_lfs index 1ac5a8dfa6fa8cb7df69cfd56789573d082473ef..d2be9305bfb238b8d714e9072848c7084214b0c8 100644 GIT binary patch delta 332 zcmZo%E52);ctZ*XXd4(R!A^SFZ5)!+Wt40Rhx%#ej=A|o?;dVsQPrq8;{x>sur fD-#=35hF;Hm0bYF1?pMDDlC%3R#22*l5Y$E-8M`l delta 219 zcmdnBPP}ogctZhW-&JHyDuF2u^fu!?p12Nf2P?Gp=F`4SoDZC`MaRgRgblaY&w#Y%{65i7&0 z>6TYnJNOr|a_DjebFr{kF);|SESY}cDr>0T5>_TjE?zEHkRT&alvPRv#$^U^)it3;