ProtocolParamUpdate
- class cometa.protocol_params.protocol_param_update.ProtocolParamUpdate(ptr)[source]
Bases:
objectRepresents a proposed update to the protocol parameters.
Unlike ProtocolParameters, this class allows optional values since an update proposal may only change specific parameters while leaving others unchanged.
- classmethod new()[source]
Creates a new empty ProtocolParamUpdate instance.
- Returns:
A new ProtocolParamUpdate instance.
- Raises:
CardanoError – If creation fails.
- Return type:
- classmethod from_cbor(reader)[source]
Deserializes ProtocolParamUpdate from CBOR data.
- Parameters:
reader (CborReader) – A CborReader positioned at the update data.
- Returns:
A new ProtocolParamUpdate deserialized from the CBOR data.
- Raises:
CardanoError – If deserialization fails.
- Return type:
- to_cbor(writer)[source]
Serializes the protocol param update to CBOR format.
- Parameters:
writer (CborWriter) – A CborWriter to write the serialized data to.
- Raises:
CardanoError – If serialization fails.
- Return type:
None
- property min_fee_a: int | None
Linear fee coefficient (a) for transaction fees.
- property min_fee_b: int | None
Constant fee coefficient (b) for transaction fees.
- property max_block_body_size: int | None
Maximum block body size in bytes.
- property max_tx_size: int | None
Maximum transaction size in bytes.
- property max_block_header_size: int | None
Maximum block header size in bytes.
- property key_deposit: int | None
Staking key registration deposit in lovelaces.
- property pool_deposit: int | None
Stake pool registration deposit in lovelaces.
- property max_epoch: int | None
Maximum pool retirement epoch bounds.
- property n_opt: int | None
Desired number of stake pools (k parameter).
- property pool_pledge_influence: UnitInterval | None
Pool pledge influence factor (a0).
- property expansion_rate: UnitInterval | None
Monetary expansion rate (rho).
- property treasury_growth_rate: UnitInterval | None
Treasury growth rate (tau).
- property d: UnitInterval | None
Decentralization parameter (deprecated in Babbage).
- property protocol_version: ProtocolVersion | None
Current protocol version.
- property min_pool_cost: int | None
Minimum pool cost in lovelaces.
- property ada_per_utxo_byte: int | None
Lovelaces per UTXO byte (coins per UTxO word).
- property execution_costs: ExUnitPrices | None
Execution unit prices for Plutus scripts.
- property max_value_size: int | None
Maximum value size in bytes.
- property collateral_percentage: int | None
Collateral percentage required for Plutus scripts.
- property max_collateral_inputs: int | None
Maximum number of collateral inputs.
- property pool_voting_thresholds: PoolVotingThresholds | None
Voting thresholds for stake pool operators.
- property drep_voting_thresholds: DRepVotingThresholds | None
Voting thresholds for DReps.
- property min_committee_size: int | None
Minimum constitutional committee size.
- property committee_term_limit: int | None
Committee member term limit in epochs.
- property governance_action_validity_period: int | None
Governance action validity period in epochs.
- property governance_action_deposit: int | None
Governance action deposit in lovelaces.
- property drep_deposit: int | None
DRep registration deposit in lovelaces.
- property drep_inactivity_period: int | None
DRep inactivity period in epochs.
- property ref_script_cost_per_byte: UnitInterval | None
Reference script cost per byte.
- 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