cardano/governance

Types

Constructors

  • Constitution { guardrails: Option<ScriptHash> }

Constructors

  • ProtocolParameters {
      ancestor: Option<GovernanceActionId>,
      new_parameters: ProtocolParametersUpdate,
      guardrails: Option<ScriptHash>,
    }

    .ancestor

    The last governance action of type ‘ProtocolParameters’. They must all form a chain.


    .new_parameters

    The new proposed protocol parameters. Only values set to Some are relevant.


    .guardrails

    The optional guardrails script defined in the constitution. The script is executed by the ledger in addition to the hard-coded ledger rules.

    It must pass for the new protocol parameters to be deemed valid.


  • HardFork { ancestor: Option<GovernanceActionId>, new_version: ProtocolVersion }

    .ancestor

    The last governance action of type HardFork. They must all form a chain.


    .new_version

    The new proposed version. Few rules apply to proposing new versions:

    • The major component, if incremented, must be exactly one more than the current.
    • The minor component, if incremented, must be exactly one more than the current.
    • If the major component is incremented, minor must be set to 0.
    • Neither minor nor major can be decremented.

  • TreasuryWithdrawal {
      beneficiaries: Pairs<Credential, Lovelace>,
      guardrails: Option<ScriptHash>,
    }

    .beneficiaries

    A collection of beneficiaries, which can be plain verification key hashes or script hashes (e.g. DAO).


    .guardrails

    The optional guardrails script defined in the constitution. The script is executed by the ledger in addition to the hard-coded ledger rules.

    It must pass for the withdrawals to be authorized.


  • NoConfidence { ancestor: Option<GovernanceActionId> }

    .ancestor

    The last governance action of type NoConfidence or ConstitutionalCommittee. They must all / form a chain.


  • ConstitutionalCommittee {
      ancestor: Option<GovernanceActionId>,
      evicted_members: List<Credential>,
      added_members: Pairs<Credential, Mandate>,
      quorum: Rational,
    }

    .ancestor

    The last governance action of type NoConfidence or ConstitutionalCommittee. They must all / form a chain.


    .evicted_members

    Constitutional members to be removed.


    .added_members

    Constitutional members to be added.


    .quorum

    The new quorum value, as a ratio of a numerator and a denominator. The quorum specifies the threshold of ‘Yes’ votes necessary for the constitutional committee to accept a proposal procedure.


  • NewConstitution {
      ancestor: Option<GovernanceActionId>,
      constitution: Constitution,
    }

    .ancestor

    The last governance action of type Constitution or ConstitutionalCommittee. They must all / form a chain.


    .constitution

    The new proposed constitution.


  • NicePoll

Constructors

  • GovernanceActionId { transaction: TransactionId, proposal_procedure: Index }

An epoch number after which constitutional committee member mandate expires.

Alias

Mandate = Int

Constructors

  • ProposalProcedure {
      deposit: Lovelace,
      return_address: Credential,
      governance_action: GovernanceAction,
    }

Constructors

  • ProtocolVersion { major: Int, minor: Int }

Alias

TransactionId = Hash<Blake2b_256, ByteArray>

Constructors

  • No
  • Yes
  • Abstain

Constructors

  • ConstitutionalCommitteeMember(Credential)
  • DelegateRepresentative(Credential)
  • StakePool(VerificationKeyHash)
Search Document