Skip to content

cardano/governance/protocol_parameters

Types

ConstitutionalCommitteeThresholds

Constructors

ConstitutionalCommitteeThresholds {
  default: Rational,
  under_no_confidence: Rational,
}

DelegateRepresentativeVotingThresholds

Constructors

DelegateRepresentativeVotingThresholds {
  motion_of_no_confidence: Rational,
  constitutional_committee: ConstitutionalCommitteeThresholds,
  constitution: Rational,
  hard_fork: Rational,
  protocol_parameters: ProtocolParametersThresholds<
    Void,
    Rational,
    Rational,
    Rational,
    Rational,
  >,
  treasury_withdrawal: Rational,
}

ExecutionUnits

Constructors

ExecutionUnits { memory: Int, cpu: Int }

ProtocolParametersThresholds<security, network, economic, technical, governance>

Constructors

ProtocolParametersThresholds {
  security_group: security,
  network_group: network,
  economic_group: economic,
  technical_group: technical,
  governance_group: governance,
}

ProtocolParametersUpdate

ScriptExecutionPrices

Constructors

ScriptExecutionPrices { memory: Rational, cpu: Rational }

StakePoolOperatorVotingThresholds

Constructors

StakePoolOperatorVotingThresholds {
  motion_of_no_confidence: Rational,
  constitutional_committee: ConstitutionalCommitteeThresholds,
  hard_fork: Rational,
  protocol_parameters: ProtocolParametersThresholds<
    Rational,
    Void,
    Void,
    Void,
    Void,
  >,
}

Functions

min_fee_coefficient

min_fee_coefficient(self: ProtocolParametersUpdate) -> Option<Int>

The linear coefficient that intervenes in the transaction fee calculation. It is multiplied by the size of the transaction in bytes to obtain a Lovelace value.

min_fee_constant

min_fee_constant(self: ProtocolParametersUpdate) -> Option<Int>

The constant factor that intervenes in the transaction fee calculation. It is a flat cost of lovelace that is added to every fee calculation.

max_block_body_size

max_block_body_size(self: ProtocolParametersUpdate) -> Option<Int>

The maximum size of a serialized block body, expressed in bytes.

max_transaction_size

max_transaction_size(self: ProtocolParametersUpdate) -> Option<Int>

The maximum size of a serialized transaction (body + witnesses), expressed in bytes.

max_block_header_size

max_block_header_size(self: ProtocolParametersUpdate) -> Option<Int>

The maximum size of a serialized block header, expressed in bytes.

stake_credential_deposit

stake_credential_deposit(self: ProtocolParametersUpdate) -> Option<Lovelace>

The required deposit amount when registering stake credentials, expressed in Lovelace.

stake_pool_deposit

stake_pool_deposit(self: ProtocolParametersUpdate) -> Option<Lovelace>

The required deposit amount when registering a stake pool, expressed in Lovelace.

stake_pool_retirement_horizon

stake_pool_retirement_horizon(self: ProtocolParametersUpdate) -> Option<Int>

The maximum number of epoch in the future allowed for a stake pool retirement to be scheduled.

desired_number_of_stake_pools

desired_number_of_stake_pools(self: ProtocolParametersUpdate) -> Option<Int>

The desired/optimal number of fully saturated stake pools in the system. Also known as the ‘k-parameter’.

stake_pool_pledge_influence

stake_pool_pledge_influence(self: ProtocolParametersUpdate) -> Option<Rational>

A parameter controlling the influence of an pool owner’s pledge on the rewards. Also known as ‘a0’.

monetary_expansion

monetary_expansion(self: ProtocolParametersUpdate) -> Option<Rational>

The monetary expansion parameter, controlling the fraction of Ada put in circulation on every epoch through the incentivies model. Also known as ‘ρ’.

treasury_expansion

treasury_expansion(self: ProtocolParametersUpdate) -> Option<Rational>

The parameter controlling what fraction (%) of available rewards is sent to the treasury on every epoch. Also known as ‘τ’.

min_stake_pool_cost

min_stake_pool_cost(self: ProtocolParametersUpdate) -> Option<Lovelace>

Minimum authorized constant cost that stake pools can declare when registering, expressed in Lovelace.

min_utxo_deposit_coefficient

min_utxo_deposit_coefficient(self: ProtocolParametersUpdate) -> Option<Int>

The linear coefficient that intervenes in the calculation of the minimum Ada value that any UTxO must hold. It is expressed in Lovelace per Byte, and is also known as the ‘coins per utxo byte’ parameter.

cost_models

cost_models(self: ProtocolParametersUpdate) -> Option<Data>

The costs associated with the various operations of the Plutus Virtual Machine, which can be different for each Plutus version.

script_execution_prices

script_execution_prices(
  self: ProtocolParametersUpdate,
) -> Option<ScriptExecutionPrices>

The price, in Lovelace per unit, of the execution units corresponding to cpu and memory usage of on-chain scripts.

max_transaction_execution_units

max_transaction_execution_units(
  self: ProtocolParametersUpdate,
) -> Option<ExecutionUnits>

The maximum execution units allowed for a single transaction.

max_block_execution_units

max_block_execution_units(
  self: ProtocolParametersUpdate,
) -> Option<ExecutionUnits>

The maximum execution units allowed for a single block.

max_value_size

max_value_size(self: ProtocolParametersUpdate) -> Option<Int>

The maximum size of a serialized value in a transaction output. This effectively limits the maximum kinds of assets that can be sent in a single output. It is expressed in bytes.

collateral_percentage

collateral_percentage(self: ProtocolParametersUpdate) -> Option<Int>

The scaling factor applied to the transaction cost for defining the minimum collateral amount. It is expressed in percent points (so 100 = 100%).

max_collateral_inputs

max_collateral_inputs(self: ProtocolParametersUpdate) -> Option<Int>

The maximum number of collateral inputs allowed in the transaction.

stake_pool_operator_voting_thresholds

stake_pool_operator_voting_thresholds(
  self: ProtocolParametersUpdate,
) -> Option<StakePoolOperatorVotingThresholds>

The various governance voting thresholds pertaining to stake pool operators.

delegate_representative_voting_thresholds

delegate_representative_voting_thresholds(
  self: ProtocolParametersUpdate,
) -> Option<DelegateRepresentativeVotingThresholds>

The various governance voting thresholds pertaining to delegate representatives (a.k.a DReps).

min_constitutional_committee_size

min_constitutional_committee_size(self: ProtocolParametersUpdate) -> Option<Int>

The minimum number of members in the constitutional committee. Any updates of the committee must leave at least this number of members.

max_constitutional_committee_mandate

max_constitutional_committee_mandate(
  self: ProtocolParametersUpdate,
) -> Option<Int>

The maximum length of a constitutional committee member, expressed in number of epochs.

governance_proposal_lifetime

governance_proposal_lifetime(self: ProtocolParametersUpdate) -> Option<Int>

The lifetime of any governance proposal. An action that hasn’t been approved beyond that period is considered inactive and discarded. It is expressed in number of epochs.

governance_proposal_deposit

governance_proposal_deposit(self: ProtocolParametersUpdate) -> Option<Lovelace>

The required deposit amount for governance proposal procedures, expressed in Lovelace.

delegate_representative_deposit

delegate_representative_deposit(
  self: ProtocolParametersUpdate,
) -> Option<Lovelace>

The required deposit amount when registering as a delegate representative, expressed in Lovelace.

delegate_representative_max_idle_time

delegate_representative_max_idle_time(
  self: ProtocolParametersUpdate,
) -> Option<Int>

The maximum number of epochs that a delegate representative can stay inactive (i.e. no voting) without becoming inactive and removed from thresholds calculations.

reference_scripts_tier_fee_initial_factor

reference_scripts_tier_fee_initial_factor(
  self: ProtocolParametersUpdate,
) -> Option<Rational>

The base tier fee coefficient for reference scripts. Reference scripts gets increasingly more expensives every ~24KB, the base coefficient is a multiplicating factor which grows exponentially with each tier.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close