cml_chain/
cbor_encodings.rs1use cml_core::serialization::LenEncoding;
5
6#[derive(Clone, Debug, Default)]
7pub struct DRepVotingThresholdsEncoding {
8 pub len_encoding: LenEncoding,
9}
10
11#[derive(Clone, Debug, Default)]
12pub struct PoolVotingThresholdsEncoding {
13 pub len_encoding: LenEncoding,
14}
15
16#[derive(Clone, Debug, Default)]
17pub struct ProtocolParamUpdateEncoding {
18 pub len_encoding: LenEncoding,
19 pub orig_deser_order: Vec<usize>,
20 pub minfee_a_encoding: Option<cbor_event::Sz>,
21 pub minfee_a_key_encoding: Option<cbor_event::Sz>,
22 pub minfee_b_encoding: Option<cbor_event::Sz>,
23 pub minfee_b_key_encoding: Option<cbor_event::Sz>,
24 pub max_block_body_size_encoding: Option<cbor_event::Sz>,
25 pub max_block_body_size_key_encoding: Option<cbor_event::Sz>,
26 pub max_transaction_size_encoding: Option<cbor_event::Sz>,
27 pub max_transaction_size_key_encoding: Option<cbor_event::Sz>,
28 pub max_block_header_size_encoding: Option<cbor_event::Sz>,
29 pub max_block_header_size_key_encoding: Option<cbor_event::Sz>,
30 pub key_deposit_encoding: Option<cbor_event::Sz>,
31 pub key_deposit_key_encoding: Option<cbor_event::Sz>,
32 pub pool_deposit_encoding: Option<cbor_event::Sz>,
33 pub pool_deposit_key_encoding: Option<cbor_event::Sz>,
34 pub maximum_epoch_encoding: Option<cbor_event::Sz>,
35 pub maximum_epoch_key_encoding: Option<cbor_event::Sz>,
36 pub n_opt_encoding: Option<cbor_event::Sz>,
37 pub n_opt_key_encoding: Option<cbor_event::Sz>,
38 pub pool_pledge_influence_key_encoding: Option<cbor_event::Sz>,
39 pub expansion_rate_key_encoding: Option<cbor_event::Sz>,
40 pub treasury_growth_rate_key_encoding: Option<cbor_event::Sz>,
41 pub min_pool_cost_encoding: Option<cbor_event::Sz>,
42 pub min_pool_cost_key_encoding: Option<cbor_event::Sz>,
43 pub ada_per_utxo_byte_encoding: Option<cbor_event::Sz>,
44 pub ada_per_utxo_byte_key_encoding: Option<cbor_event::Sz>,
45 pub cost_models_for_script_languages_key_encoding: Option<cbor_event::Sz>,
46 pub execution_costs_key_encoding: Option<cbor_event::Sz>,
47 pub max_tx_ex_units_key_encoding: Option<cbor_event::Sz>,
48 pub max_block_ex_units_key_encoding: Option<cbor_event::Sz>,
49 pub max_value_size_encoding: Option<cbor_event::Sz>,
50 pub max_value_size_key_encoding: Option<cbor_event::Sz>,
51 pub collateral_percentage_encoding: Option<cbor_event::Sz>,
52 pub collateral_percentage_key_encoding: Option<cbor_event::Sz>,
53 pub max_collateral_inputs_encoding: Option<cbor_event::Sz>,
54 pub max_collateral_inputs_key_encoding: Option<cbor_event::Sz>,
55 pub pool_voting_thresholds_key_encoding: Option<cbor_event::Sz>,
56 pub d_rep_voting_thresholds_key_encoding: Option<cbor_event::Sz>,
57 pub min_committee_size_encoding: Option<cbor_event::Sz>,
58 pub min_committee_size_key_encoding: Option<cbor_event::Sz>,
59 pub committee_term_limit_encoding: Option<cbor_event::Sz>,
60 pub committee_term_limit_key_encoding: Option<cbor_event::Sz>,
61 pub governance_action_validity_period_encoding: Option<cbor_event::Sz>,
62 pub governance_action_validity_period_key_encoding: Option<cbor_event::Sz>,
63 pub governance_action_deposit_encoding: Option<cbor_event::Sz>,
64 pub governance_action_deposit_key_encoding: Option<cbor_event::Sz>,
65 pub d_rep_deposit_encoding: Option<cbor_event::Sz>,
66 pub d_rep_deposit_key_encoding: Option<cbor_event::Sz>,
67 pub d_rep_inactivity_period_encoding: Option<cbor_event::Sz>,
68 pub d_rep_inactivity_period_key_encoding: Option<cbor_event::Sz>,
69 pub min_fee_ref_script_cost_per_byte_key_encoding: Option<cbor_event::Sz>,
70}
71
72#[derive(Clone, Debug, Default)]
73pub struct RationalEncoding {
74 pub len_encoding: LenEncoding,
75 pub tag_encoding: Option<cbor_event::Sz>,
76 pub numerator_encoding: Option<cbor_event::Sz>,
77 pub denominator_encoding: Option<cbor_event::Sz>,
78}
79
80#[derive(Clone, Debug, Default)]
81pub struct UnitIntervalEncoding {
82 pub len_encoding: LenEncoding,
83 pub tag_encoding: Option<cbor_event::Sz>,
84 pub start_encoding: Option<cbor_event::Sz>,
85 pub end_encoding: Option<cbor_event::Sz>,
86}