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 23, 2024
1 parent bca0e99 commit b66a2c6
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/core/app/src/genesis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ pub struct Content {
pub stake_content: StakeContent,
/// Dex component genesis state.
pub dex_content: DexContent,
/// Auction component genesis state.
pub auction_content: AuctionContent,
}

impl DomainType for Content {
Expand Down
5 changes: 5 additions & 0 deletions crates/proto/src/gen/penumbra.core.app.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,11 @@ pub struct GenesisContent {
pub dex_content: ::core::option::Option<
super::super::component::dex::v1::GenesisContent,
>,
/// Auction component genesis state.
#[prost(message, optional, tag = "12")]
pub auction_content: ::core::option::Option<
super::super::component::auction::v1alpha1::GenesisContent,
>,
}
impl ::prost::Name for GenesisContent {
const NAME: &'static str = "GenesisContent";
Expand Down
18 changes: 18 additions & 0 deletions crates/proto/src/gen/penumbra.core.app.v1.serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,9 @@ impl serde::Serialize for GenesisContent {
if self.dex_content.is_some() {
len += 1;
}
if self.auction_content.is_some() {
len += 1;
}
let mut struct_ser = serializer.serialize_struct("penumbra.core.app.v1.GenesisContent", len)?;
if !self.chain_id.is_empty() {
struct_ser.serialize_field("chainId", &self.chain_id)?;
Expand Down Expand Up @@ -650,6 +653,9 @@ impl serde::Serialize for GenesisContent {
if let Some(v) = self.dex_content.as_ref() {
struct_ser.serialize_field("dexContent", v)?;
}
if let Some(v) = self.auction_content.as_ref() {
struct_ser.serialize_field("auctionContent", v)?;
}
struct_ser.end()
}
}
Expand Down Expand Up @@ -682,6 +688,8 @@ impl<'de> serde::Deserialize<'de> for GenesisContent {
"fundingContent",
"dex_content",
"dexContent",
"auction_content",
"auctionContent",
];

#[allow(clippy::enum_variant_names)]
Expand All @@ -697,6 +705,7 @@ impl<'de> serde::Deserialize<'de> for GenesisContent {
DistributionsContent,
FundingContent,
DexContent,
AuctionContent,
__SkipField__,
}
impl<'de> serde::Deserialize<'de> for GeneratedField {
Expand Down Expand Up @@ -730,6 +739,7 @@ impl<'de> serde::Deserialize<'de> for GenesisContent {
"distributionsContent" | "distributions_content" => Ok(GeneratedField::DistributionsContent),
"fundingContent" | "funding_content" => Ok(GeneratedField::FundingContent),
"dexContent" | "dex_content" => Ok(GeneratedField::DexContent),
"auctionContent" | "auction_content" => Ok(GeneratedField::AuctionContent),
_ => Ok(GeneratedField::__SkipField__),
}
}
Expand Down Expand Up @@ -760,6 +770,7 @@ impl<'de> serde::Deserialize<'de> for GenesisContent {
let mut distributions_content__ = None;
let mut funding_content__ = None;
let mut dex_content__ = None;
let mut auction_content__ = None;
while let Some(k) = map_.next_key()? {
match k {
GeneratedField::ChainId => {
Expand Down Expand Up @@ -828,6 +839,12 @@ impl<'de> serde::Deserialize<'de> for GenesisContent {
}
dex_content__ = map_.next_value()?;
}
GeneratedField::AuctionContent => {
if auction_content__.is_some() {
return Err(serde::de::Error::duplicate_field("auctionContent"));
}
auction_content__ = map_.next_value()?;
}
GeneratedField::__SkipField__ => {
let _ = map_.next_value::<serde::de::IgnoredAny>()?;
}
Expand All @@ -845,6 +862,7 @@ impl<'de> serde::Deserialize<'de> for GenesisContent {
distributions_content: distributions_content__,
funding_content: funding_content__,
dex_content: dex_content__,
auction_content: auction_content__,
})
}
}
Expand Down
Binary file modified crates/proto/src/gen/proto_descriptor.bin.no_lfs
Binary file not shown.

0 comments on commit b66a2c6

Please sign in to comment.