GovFailure

scalus.cardano.ledger.GovFailure
enum GovFailure

A failure of the Conway GOV rule, one case per constructor of the ledger's ConwayGovPredFailure (eras/conway/impl/src/Cardano/Ledger/Conway/Rules/Gov.hs:180-221), spec [GV-19], D31. The case name is the ledger name. ProposalDepositIncorrect keeps its own exception, and the two PV 9 bootstrap failures are not emulated.

Attributes

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 ConflictingCommitteeUpdate(credentials: Set[Credential])

An UpdateCommittee that adds and removes the same cold credentials, spec [GV-18].

An UpdateCommittee that adds and removes the same cold credentials, spec [GV-18].

Attributes

final case class DisallowedVoters(votes: List[(Voter, GovActionId)])

Votes by voters that may not vote on the action, spec [GV-11].

Votes by voters that may not vote on the action, spec [GV-11].

Attributes

final case class ExpirationEpochTooSmall(members: Map[Credential, EpochNo])

An UpdateCommittee that adds members whose term ends no later than the current epoch, spec [GV-18].

An UpdateCommittee that adds members whose term ends no later than the current epoch, spec [GV-18].

Attributes

final case class GovActionsDoNotExist(actionIds: List[GovActionId])

Votes on actions that are not active.

Votes on actions that are not active.

Attributes

final case class InvalidGuardrailsScriptHash(supplied: Option[ScriptHash], expected: Option[ScriptHash])

A guardrails script hash that differs from the constitution's, spec [GV-8].

A guardrails script hash that differs from the constitution's, spec [GV-8].

Attributes

final case class InvalidPrevGovActionId(proposal: ProposalProcedure)

A proposal whose parent is not the root of its purpose or an active proposal of it, spec [GV-6].

A proposal whose parent is not the root of its purpose or an active proposal of it, spec [GV-6].

Attributes

final case class MalformedProposal(action: GovAction)

A ParameterChange whose update is not well formed, spec [GV-7].

A ParameterChange whose update is not well formed, spec [GV-7].

Attributes

final case class ProposalCantFollow(prevActionId: Option[GovActionId], supplied: ProtocolVersion, expected: ProtocolVersion)

A HardForkInitiation whose version cannot follow expected, spec [GV-17].

A HardForkInitiation whose version cannot follow expected, spec [GV-17].

Attributes

final case class ProposalProcedureNetworkIdMismatch(account: RewardAccount, network: Network)

A deposit return account on another network.

A deposit return account on another network.

Attributes

A deposit return account that is not registered, spec [GV-3b].

A deposit return account that is not registered, spec [GV-3b].

Attributes

final case class TreasuryWithdrawalReturnAccountsDoNotExist(accounts: List[RewardAccount])

Treasury withdrawals to accounts that are not registered, spec [GV-3b].

Treasury withdrawals to accounts that are not registered, spec [GV-3b].

Attributes

final case class TreasuryWithdrawalsNetworkIdMismatch(accounts: Set[RewardAccount], network: Network)

Treasury withdrawals to accounts on another network.

Treasury withdrawals to accounts on another network.

Attributes

final case class UnelectedCommitteeVoters(credentials: Set[Credential])

At PV >= 11, committee votes by hot credentials that no member of the elected committee authorized, spec [GV-12].

At PV >= 11, committee votes by hot credentials that no member of the elected committee authorized, spec [GV-12].

Attributes

final case class VotersDoNotExist(voters: List[Voter])

Voters that are not registered, spec [GV-10a].

Voters that are not registered, spec [GV-10a].

Attributes

final case class VotingOnExpiredGovAction(votes: List[(Voter, GovActionId)])

Votes on actions that expired before the current epoch.

Votes on actions that expired before the current epoch.

Attributes

final case class ZeroTreasuryWithdrawals(action: GovAction)

A TreasuryWithdrawals whose withdrawals sum to zero.

A TreasuryWithdrawals whose withdrawals sum to zero.

Attributes