pcli/command/tx/auction/dutch/
debug.rs

1use penumbra_sdk_auction::auction::dutch::DutchAuctionDescription;
2use serde::Serialize;
3
4#[derive(Debug, Clone, Serialize)]
5pub struct DebugDescription {
6    pub input: u128,
7    pub min_output: u128,
8    pub max_output: u128,
9    pub start_height: u64,
10    pub end_height: u64,
11    pub step_count: u64,
12}
13
14impl From<DutchAuctionDescription> for DebugDescription {
15    fn from(desc: DutchAuctionDescription) -> Self {
16        DebugDescription {
17            input: desc.input.amount.value(),
18            min_output: desc.min_output.value(),
19            max_output: desc.max_output.value(),
20            start_height: desc.start_height,
21            end_height: desc.end_height,
22            step_count: desc.step_count,
23        }
24    }
25}