NoConfidenceAction

class cometa.proposal_procedures.no_confidence_action.NoConfidenceAction(ptr)[source]

Bases: object

Represents a no-confidence governance action.

This action proposes a state of no-confidence in the current constitutional committee. It allows ADA holders to challenge the authority granted to the existing committee.

__init__(ptr)[source]
Return type:

None

__enter__()[source]
Return type:

NoConfidenceAction

__exit__(exc_type, exc_val, exc_tb)[source]
Return type:

None

__repr__()[source]

Return repr(self).

Return type:

str

classmethod new(governance_action_id=None)[source]

Creates a new no-confidence action.

Parameters:

governance_action_id (GovernanceActionId | None) – Optional ID of a previous governance action that this action depends on.

Returns:

A new NoConfidenceAction instance.

Raises:

CardanoError – If creation fails.

Return type:

NoConfidenceAction

classmethod from_cbor(reader)[source]

Deserializes a NoConfidenceAction from CBOR data.

Parameters:

reader (CborReader) – A CborReader positioned at the action data.

Returns:

A new NoConfidenceAction deserialized from the CBOR data.

Raises:

CardanoError – If deserialization fails.

Return type:

NoConfidenceAction

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 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