diff --git a/crates/core/app/src/genesis.rs b/crates/core/app/src/genesis.rs index 942cd80331..0768255fb2 100644 --- a/crates/core/app/src/genesis.rs +++ b/crates/core/app/src/genesis.rs @@ -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 { diff --git a/crates/proto/src/gen/penumbra.core.app.v1.rs b/crates/proto/src/gen/penumbra.core.app.v1.rs index 64efb6b654..0fea6965d8 100644 --- a/crates/proto/src/gen/penumbra.core.app.v1.rs +++ b/crates/proto/src/gen/penumbra.core.app.v1.rs @@ -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"; diff --git a/crates/proto/src/gen/penumbra.core.app.v1.serde.rs b/crates/proto/src/gen/penumbra.core.app.v1.serde.rs index 292fbb1f87..9b910dd7fe 100644 --- a/crates/proto/src/gen/penumbra.core.app.v1.serde.rs +++ b/crates/proto/src/gen/penumbra.core.app.v1.serde.rs @@ -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)?; @@ -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() } } @@ -682,6 +688,8 @@ impl<'de> serde::Deserialize<'de> for GenesisContent { "fundingContent", "dex_content", "dexContent", + "auction_content", + "auctionContent", ]; #[allow(clippy::enum_variant_names)] @@ -697,6 +705,7 @@ impl<'de> serde::Deserialize<'de> for GenesisContent { DistributionsContent, FundingContent, DexContent, + AuctionContent, __SkipField__, } impl<'de> serde::Deserialize<'de> for GeneratedField { @@ -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__), } } @@ -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 => { @@ -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::()?; } @@ -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__, }) } } diff --git a/crates/proto/src/gen/proto_descriptor.bin.no_lfs b/crates/proto/src/gen/proto_descriptor.bin.no_lfs index 458a9703d0..6ffdd0c103 100644 Binary files a/crates/proto/src/gen/proto_descriptor.bin.no_lfs and b/crates/proto/src/gen/proto_descriptor.bin.no_lfs differ