1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
// This file was code-generated using an experimental CDDL to rust tool:
// https://github.com/dcSpark/cddl-codegen

use crate::address::RewardAccount;
use crate::certs::Credential;
use cml_core::serialization::{LenEncoding, StringEncoding};
use std::collections::BTreeMap;

#[derive(Clone, Debug, Default)]
pub struct AnchorEncoding {
    pub len_encoding: LenEncoding,
    pub anchor_doc_hash_encoding: StringEncoding,
}

#[derive(Clone, Debug, Default)]
pub struct CommitteeEncoding {
    pub len_encoding: LenEncoding,
    pub credentials_encoding: LenEncoding,
    pub credentials_value_encodings: BTreeMap<Credential, Option<cbor_event::Sz>>,
}

#[derive(Clone, Debug, Default)]
pub struct ConstitutionEncoding {
    pub len_encoding: LenEncoding,
    pub script_hash_encoding: StringEncoding,
}

#[derive(Clone, Debug, Default)]
pub struct GovActionIdEncoding {
    pub len_encoding: LenEncoding,
    pub transaction_id_encoding: StringEncoding,
    pub gov_action_index_encoding: Option<cbor_event::Sz>,
}

#[derive(Clone, Debug, Default)]
pub struct HardForkInitiationActionEncoding {
    pub len_encoding: LenEncoding,
    pub tag_encoding: Option<cbor_event::Sz>,
}

#[derive(Clone, Debug, Default)]
pub struct NewCommitteeEncoding {
    pub len_encoding: LenEncoding,
    pub tag_encoding: Option<cbor_event::Sz>,
    pub cold_credentials_encoding: LenEncoding,
}

#[derive(Clone, Debug, Default)]
pub struct NewConstitutionEncoding {
    pub len_encoding: LenEncoding,
    pub tag_encoding: Option<cbor_event::Sz>,
}

#[derive(Clone, Debug, Default)]
pub struct NoConfidenceEncoding {
    pub len_encoding: LenEncoding,
    pub tag_encoding: Option<cbor_event::Sz>,
}

#[derive(Clone, Debug, Default)]
pub struct ParameterChangeActionEncoding {
    pub len_encoding: LenEncoding,
    pub tag_encoding: Option<cbor_event::Sz>,
}

#[derive(Clone, Debug, Default)]
pub struct ProposalProcedureEncoding {
    pub len_encoding: LenEncoding,
    pub deposit_encoding: Option<cbor_event::Sz>,
}

#[derive(Clone, Debug, Default)]
pub struct TreasuryWithdrawalsActionEncoding {
    pub len_encoding: LenEncoding,
    pub tag_encoding: Option<cbor_event::Sz>,
    pub withdrawal_encoding: LenEncoding,
    pub withdrawal_value_encodings: BTreeMap<RewardAccount, Option<cbor_event::Sz>>,
}

#[derive(Clone, Debug, Default)]
pub struct VotingProcedureEncoding {
    pub len_encoding: LenEncoding,
    pub vote_encoding: Option<cbor_event::Sz>,
}