cml_multi_era/mary/
cbor_encodings.rs

1// This file was code-generated using an experimental CDDL to rust tool:
2// https://github.com/dcSpark/cddl-codegen
3
4use cml_chain::{address::RewardAccount, assets::AssetName, PolicyId};
5use cml_core::serialization::{LenEncoding, StringEncoding};
6use std::collections::BTreeMap;
7
8#[derive(Clone, Debug, Default)]
9pub struct MaryBlockEncoding {
10    pub len_encoding: LenEncoding,
11    pub transaction_bodies_encoding: LenEncoding,
12    pub transaction_witness_sets_encoding: LenEncoding,
13    pub auxiliary_data_set_encoding: LenEncoding,
14    pub auxiliary_data_set_key_encodings: BTreeMap<u16, Option<cbor_event::Sz>>,
15}
16
17#[derive(Clone, Debug, Default)]
18pub struct MaryTransactionBodyEncoding {
19    pub len_encoding: LenEncoding,
20    pub orig_deser_order: Vec<usize>,
21    pub inputs_encoding: LenEncoding,
22    pub inputs_key_encoding: Option<cbor_event::Sz>,
23    pub outputs_encoding: LenEncoding,
24    pub outputs_key_encoding: Option<cbor_event::Sz>,
25    pub fee_encoding: Option<cbor_event::Sz>,
26    pub fee_key_encoding: Option<cbor_event::Sz>,
27    pub ttl_encoding: Option<cbor_event::Sz>,
28    pub ttl_key_encoding: Option<cbor_event::Sz>,
29    pub certs_encoding: LenEncoding,
30    pub certs_key_encoding: Option<cbor_event::Sz>,
31    pub withdrawals_encoding: LenEncoding,
32    pub withdrawals_value_encodings: BTreeMap<RewardAccount, Option<cbor_event::Sz>>,
33    pub withdrawals_key_encoding: Option<cbor_event::Sz>,
34    pub update_key_encoding: Option<cbor_event::Sz>,
35    pub auxiliary_data_hash_encoding: StringEncoding,
36    pub auxiliary_data_hash_key_encoding: Option<cbor_event::Sz>,
37    pub validity_interval_start_encoding: Option<cbor_event::Sz>,
38    pub validity_interval_start_key_encoding: Option<cbor_event::Sz>,
39    pub mint_encoding: LenEncoding,
40    pub mint_key_encodings: BTreeMap<PolicyId, StringEncoding>,
41    pub mint_value_encodings:
42        BTreeMap<PolicyId, (LenEncoding, BTreeMap<AssetName, Option<cbor_event::Sz>>)>,
43    pub mint_key_encoding: Option<cbor_event::Sz>,
44}
45
46#[derive(Clone, Debug, Default)]
47pub struct MaryTransactionEncoding {
48    pub len_encoding: LenEncoding,
49}
50
51#[derive(Clone, Debug, Default)]
52pub struct MaryTransactionOutputEncoding {
53    pub len_encoding: LenEncoding,
54}