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
#![allow(unused_lifetimes)]
use super::TypesAndLimits;
crate::def_state_change! {
StateChange:
did::AddKeys,
did::AddControllers,
did::RemoveKeys,
did::RemoveControllers,
did::AddServiceEndpoint,
did::RemoveServiceEndpoint,
did::DidRemoval,
revoke::Revoke,
revoke::UnRevoke,
revoke::RemoveRegistry,
blob::AddBlob,
master::MasterVote,
attest::SetAttestationClaim,
offchain_signatures::AddOffchainSignatureParams,
offchain_signatures::AddOffchainSignaturePublicKey,
offchain_signatures::RemoveOffchainSignatureParams,
offchain_signatures::RemoveOffchainSignaturePublicKey,
accumulator::AddAccumulatorParams,
accumulator::AddAccumulatorPublicKey,
accumulator::RemoveAccumulatorParams,
accumulator::RemoveAccumulatorPublicKey,
accumulator::AddAccumulator,
accumulator::UpdateAccumulator,
accumulator::RemoveAccumulator,
status_list_credential::UpdateStatusListCredential,
status_list_credential::RemoveStatusListCredential,
trust_registry::InitOrUpdateTrustRegistry,
trust_registry::SetSchemasMetadata,
trust_registry::UpdateDelegatedIssuers,
trust_registry::SuspendIssuers,
trust_registry::UnsuspendIssuers,
trust_registry::ChangeParticipants,
trust_registry::SetParticipantInformation
}
pub trait ToStateChange<T: TypesAndLimits> {
fn to_state_change(&self) -> StateChange<'_, T>;
}