UpdateCommitteeAction
- class cometa.proposal_procedures.update_committee_action.UpdateCommitteeAction(ptr)[source]
Bases:
objectRepresents an update committee governance action.
This action modifies the composition of the constitutional committee, its signature threshold, or its terms of operation. It can add or remove members and update the quorum threshold.
- classmethod new(members_to_be_removed, members_to_be_added, new_quorum, governance_action_id=None)[source]
Creates a new update committee action.
- Parameters:
members_to_be_removed (CredentialSet | List[Credential]) – Credentials of committee members to remove. Can be a CredentialSet or a Python list of Credential objects.
members_to_be_added (CommitteeMembersMap) – Map of new committee member credentials to term epochs.
new_quorum (UnitInterval) – The new quorum threshold for the committee.
governance_action_id (GovernanceActionId | None) – Optional ID of a previous governance action that this action depends on.
- Returns:
A new UpdateCommitteeAction instance.
- Raises:
CardanoError – If creation fails.
- Return type:
- classmethod from_cbor(reader)[source]
Deserializes an UpdateCommitteeAction from CBOR data.
- Parameters:
reader (CborReader) – A CborReader positioned at the action data.
- Returns:
A new UpdateCommitteeAction deserialized from the CBOR data.
- Raises:
CardanoError – If deserialization fails.
- Return type:
- to_cbor(writer)[source]
Serializes the action to CBOR format.
- Parameters:
writer (CborWriter) – A CborWriter to write the serialized data to.
- Raises:
CardanoError – If serialization fails.
- Return type:
None
- property members_to_be_removed: CredentialSet
The set of committee members to be removed.
- Returns:
The CredentialSet of members to remove.
- property members_to_be_added: CommitteeMembersMap
The map of committee members to be added.
- Returns:
The CommitteeMembersMap of members to add.
- property quorum: UnitInterval
The quorum threshold for the committee.
- Returns:
The UnitInterval representing the quorum.
- property governance_action_id: GovernanceActionId | None
The optional governance action ID that this action depends on.
- Returns:
The GovernanceActionId if present, None otherwise.
- to_cip116_json(writer)[source]
Serializes this object to CIP-116 compliant JSON.
- Parameters:
writer (JsonWriter) – The JsonWriter to write the JSON to.
- Raises:
CardanoError – If serialization fails.
- Return type:
None