GovAction

scalus.cardano.ledger.GovAction
See theGovAction companion object
enum GovAction

Represents a governance action in the Cardano blockchain.

Governance actions are proposals submitted to the blockchain for voting. Different types of actions exist for different governance activities.

Attributes

Companion
object
Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Type members

Enum entries

final case class HardForkInitiation(prevActionId: Option[GovActionId], protocolVersion: ProtocolVersion)

An action to initiate a hard fork.

An action to initiate a hard fork.

Value parameters

prevActionId

Optional ID of a previous action this one depends on

protocolVersion

The new protocol version to fork to

Attributes

case InfoAction extends GovAction

An informational action. This can be used for non-binding votes or information sharing.

An informational action. This can be used for non-binding votes or information sharing.

Attributes

final case class NewConstitution(prevActionId: Option[GovActionId], constitution: Constitution)

An action to establish a new constitution.

An action to establish a new constitution.

Value parameters

constitution

The new constitution

prevActionId

Optional ID of a previous action this one depends on

Attributes

final case class NoConfidence(prevActionId: Option[GovActionId])

An action to express no confidence in the current constitutional committee.

An action to express no confidence in the current constitutional committee.

Value parameters

prevActionId

Optional ID of a previous action this one depends on

Attributes

final case class ParameterChange(prevActionId: Option[GovActionId], protocolParamUpdate: ProtocolParamUpdate, policyHash: Option[PolicyHash])

An action to change protocol parameters.

An action to change protocol parameters.

Value parameters

policyHash

Optional policy hash for a constitution script

prevActionId

Optional ID of a previous action this one depends on

protocolParamUpdate

The proposed parameter updates

Attributes

final case class TreasuryWithdrawals(withdrawals: Map[RewardAccount, Coin], policyHash: Option[PolicyHash])

An action to withdraw funds from the treasury.

An action to withdraw funds from the treasury.

Value parameters

policyHash

Optional policy hash for a treasury withdrawal policy

prevActionId

Optional ID of a previous action this one depends on

withdrawals

Map of reward accounts to withdrawal amounts

Attributes

final case class UpdateCommittee(prevActionId: Option[GovActionId], removedMembers: Set[Credential], addedMembers: Map[Credential, Long], threshold: UnitInterval)

An action to update the constitutional committee.

An action to update the constitutional committee.

Value parameters

addedMembers

Map of new committee members to their terms (epoch numbers)

prevActionId

Optional ID of a previous action this one depends on

removedMembers

Set of committee members to remove

threshold

Voting threshold for the committee

Attributes