ParameterChangeAction

class cometa.proposal_procedures.parameter_change_action.ParameterChangeAction(ptr)[source]

Bases: object

Represents a parameter change governance action.

This action proposes updates to one or more updatable protocol parameters, excluding changes to major protocol versions (i.e., “hard forks”).

__init__(ptr)[source]
Return type:

None

__enter__()[source]
Return type:

ParameterChangeAction

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

None

__repr__()[source]

Return repr(self).

Return type:

str

classmethod new(protocol_param_update, governance_action_id=None, policy_hash=None)[source]

Creates a new parameter change action.

Parameters:
  • protocol_param_update (ProtocolParamUpdate) – The proposed protocol parameter updates.

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

  • policy_hash (Blake2bHash | None) – Optional guardrails policy hash.

Returns:

A new ParameterChangeAction instance.

Raises:

CardanoError – If creation fails.

Return type:

ParameterChangeAction

classmethod from_cbor(reader)[source]

Deserializes a ParameterChangeAction from CBOR data.

Parameters:

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

Returns:

A new ParameterChangeAction deserialized from the CBOR data.

Raises:

CardanoError – If deserialization fails.

Return type:

ParameterChangeAction

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 protocol_param_update: ProtocolParamUpdate

The proposed protocol parameter updates.

Returns:

The ProtocolParamUpdate.

property policy_hash: Blake2bHash | None

The optional guardrails policy hash.

Returns:

The Blake2bHash if present, None otherwise.

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