Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

view(proto): remove reserves from auction withdrawal TransactionPlannerRequest #4270

Merged
merged 5 commits into from
Apr 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified crates/cnidarium/src/gen/proto_descriptor.bin.no_lfs
Binary file not shown.
10 changes: 0 additions & 10 deletions crates/proto/src/gen/penumbra.view.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -548,16 +548,6 @@ pub mod transaction_planner_request {
/// The sequence number of the withdrawal.
#[prost(uint64, tag = "2")]
pub seq: u64,
/// The auction's reserves of input asset
#[prost(message, optional, tag = "3")]
pub input_reserves: ::core::option::Option<
super::super::super::core::num::v1::Amount,
>,
/// The auction's reserves of output asset.
#[prost(message, optional, tag = "4")]
pub output_reserves: ::core::option::Option<
super::super::super::core::num::v1::Amount,
>,
}
impl ::prost::Name for ActionDutchAuctionWithdraw {
const NAME: &'static str = "ActionDutchAuctionWithdraw";
Expand Down
36 changes: 0 additions & 36 deletions crates/proto/src/gen/penumbra.view.v1.serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6652,12 +6652,6 @@ impl serde::Serialize for transaction_planner_request::ActionDutchAuctionWithdra
if self.seq != 0 {
len += 1;
}
if self.input_reserves.is_some() {
len += 1;
}
if self.output_reserves.is_some() {
len += 1;
}
let mut struct_ser = serializer.serialize_struct("penumbra.view.v1.TransactionPlannerRequest.ActionDutchAuctionWithdraw", len)?;
if let Some(v) = self.auction_id.as_ref() {
struct_ser.serialize_field("auctionId", v)?;
Expand All @@ -6666,12 +6660,6 @@ impl serde::Serialize for transaction_planner_request::ActionDutchAuctionWithdra
#[allow(clippy::needless_borrow)]
struct_ser.serialize_field("seq", ToString::to_string(&self.seq).as_str())?;
}
if let Some(v) = self.input_reserves.as_ref() {
struct_ser.serialize_field("inputReserves", v)?;
}
if let Some(v) = self.output_reserves.as_ref() {
struct_ser.serialize_field("outputReserves", v)?;
}
struct_ser.end()
}
}
Expand All @@ -6685,18 +6673,12 @@ impl<'de> serde::Deserialize<'de> for transaction_planner_request::ActionDutchAu
"auction_id",
"auctionId",
"seq",
"input_reserves",
"inputReserves",
"output_reserves",
"outputReserves",
];

#[allow(clippy::enum_variant_names)]
enum GeneratedField {
AuctionId,
Seq,
InputReserves,
OutputReserves,
__SkipField__,
}
impl<'de> serde::Deserialize<'de> for GeneratedField {
Expand All @@ -6721,8 +6703,6 @@ impl<'de> serde::Deserialize<'de> for transaction_planner_request::ActionDutchAu
match value {
"auctionId" | "auction_id" => Ok(GeneratedField::AuctionId),
"seq" => Ok(GeneratedField::Seq),
"inputReserves" | "input_reserves" => Ok(GeneratedField::InputReserves),
"outputReserves" | "output_reserves" => Ok(GeneratedField::OutputReserves),
_ => Ok(GeneratedField::__SkipField__),
}
}
Expand All @@ -6744,8 +6724,6 @@ impl<'de> serde::Deserialize<'de> for transaction_planner_request::ActionDutchAu
{
let mut auction_id__ = None;
let mut seq__ = None;
let mut input_reserves__ = None;
let mut output_reserves__ = None;
while let Some(k) = map_.next_key()? {
match k {
GeneratedField::AuctionId => {
Expand All @@ -6762,18 +6740,6 @@ impl<'de> serde::Deserialize<'de> for transaction_planner_request::ActionDutchAu
Some(map_.next_value::<::pbjson::private::NumberDeserialize<_>>()?.0)
;
}
GeneratedField::InputReserves => {
if input_reserves__.is_some() {
return Err(serde::de::Error::duplicate_field("inputReserves"));
}
input_reserves__ = map_.next_value()?;
}
GeneratedField::OutputReserves => {
if output_reserves__.is_some() {
return Err(serde::de::Error::duplicate_field("outputReserves"));
}
output_reserves__ = map_.next_value()?;
}
GeneratedField::__SkipField__ => {
let _ = map_.next_value::<serde::de::IgnoredAny>()?;
}
Expand All @@ -6782,8 +6748,6 @@ impl<'de> serde::Deserialize<'de> for transaction_planner_request::ActionDutchAu
Ok(transaction_planner_request::ActionDutchAuctionWithdraw {
auction_id: auction_id__,
seq: seq__.unwrap_or_default(),
input_reserves: input_reserves__,
output_reserves: output_reserves__,
})
}
}
Expand Down
Binary file modified crates/proto/src/gen/proto_descriptor.bin.no_lfs
Binary file not shown.
4 changes: 0 additions & 4 deletions proto/penumbra/penumbra/view/v1/view.proto
Original file line number Diff line number Diff line change
Expand Up @@ -337,15 +337,11 @@
core.component.auction.v1alpha1.AuctionId auction_id = 1;
}

message ActionDutchAuctionWithdraw {

Check failure on line 340 in proto/penumbra/penumbra/view/v1/view.proto

View workflow job for this annotation

GitHub Actions / Lint protobuf

Previously present field "3" with name "input_reserves" on message "ActionDutchAuctionWithdraw" was deleted.

Check failure on line 340 in proto/penumbra/penumbra/view/v1/view.proto

View workflow job for this annotation

GitHub Actions / Lint protobuf

Previously present field "4" with name "output_reserves" on message "ActionDutchAuctionWithdraw" was deleted.
// The auction to withdraw funds from.
core.component.auction.v1alpha1.AuctionId auction_id = 1;
// The sequence number of the withdrawal.
uint64 seq = 2;
// The auction's reserves of input asset
core.num.v1.Amount input_reserves = 3;
// The auction's reserves of output asset.
core.num.v1.Amount output_reserves = 4;
}
}

Expand Down
Loading