scalus.cardano.ledger.rules
Members list
Type members
Classlikes
Attributes
- Supertypes
- Self type
Attributes
- Supertypes
- Self type
-
CardanoMutator.type
Attributes
- Supertypes
- Self type
-
CertsMutator.type
Attributes
- Supertypes
- Self type
-
CertsValidator.type
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Explicit list of all default mutators for ledger rules validation.
Explicit list of all default mutators for ledger rules validation.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
DefaultMutators.type
Explicit list of all default validators for ledger rules validation.
Explicit list of all default validators for ledger rules validation.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
DefaultValidators.type
Attributes
- Supertypes
- Self type
-
EmptyInputsValidator.type
Attributes
- Supertypes
- Self type
Attributes
- Supertypes
- Self type
Attributes
- Supertypes
- Self type
-
FeesOkValidator.type
The Conway GOV rule of cardano-ledger (eras/conway/impl/src/Cardano/Ledger/Conway/Rules/ Gov.hs:456-643), spec [GV-1] to [GV-20]: checks the proposals and votes of a tx and stores them in govState.
The Conway GOV rule of cardano-ledger (eras/conway/impl/src/Cardano/Ledger/Conway/Rules/ Gov.hs:456-643), spec [GV-1] to [GV-20]: checks the proposals and votes of a tx and stores them in govState.
It runs after CertsMutator, so it sees the accounts, DReps, pools and committee hot keys after CERTS, spec [GV-2], [GV-2a]. It reads the committee, the guardrails hash and the roots from the gov state before the tx, which no earlier mutator writes, spec [GV-20]. The deposit check of GOV is ProposalDepositValidator, D30.
The ledger collects every failure of the rule. transit reports the first in the ledger's order, spec [GV-3a], [GV-10b], and transitAll all of them, spec [FL-1]. The PV 9 bootstrap failures are not emulated (spec section 5.8), but the PV 9 exemptions of the other checks are.
Attributes
- Supertypes
- Self type
-
GovMutator.type
Attributes
- Supertypes
- Self type
Attributes
- Supertypes
- Self type
-
MetadataValidator.type
Attributes
- Supertypes
- Self type
Attributes
- Supertypes
- Self type
Attributes
- Supertypes
- Self type
Attributes
- Supertypes
- Self type
Attributes
- Supertypes
- Self type
Attributes
- Supertypes
- Self type
Attributes
- Supertypes
- Self type
Alonzo/Babbage validateOutsideForecast in cardano-ledger.
Alonzo/Babbage validateOutsideForecast in cardano-ledger.
The Haskell rule rejects a transaction that carries redeemers and a validity-interval upper bound which epochInfoSlotToUTCTime cannot translate to wall-clock time. That translation only fails because the consensus layer provides an EpochInfo whose horizon is limited to the stability window past the current tip — beyond it, a hard fork could change slot lengths, so the slot-to-time mapping is not guaranteed. The horizon is consensus environment (Globals.epochInfo / stabilityWindow), not ledger state.
Scalus models the chain with a fixed-slot-length scalus.cardano.ledger.SlotConfig (a single, never-forking era), under which slot-to-time translation is total — so this rule cannot fire and always succeeds. This is the faithful semantics for the emulator and for replaying historical transactions (anything accepted on-chain already passed the node's horizon check); it intentionally does not reproduce the node's forecast-horizon rejection for far-future validity bounds.
Attributes
- Supertypes
- Self type
Attributes
- Supertypes
- Self type
Attributes
- Supertypes
- Self type
Attributes
- Supertypes
- Self type
Attributes
- Supertypes
- Self type
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait Mutatorobject CardanoMutatorobject CertsMutatorobject GovMutatortrait Validatorobject CertsValidatorobject EmptyInputsValidatorobject ExUnitsTooBigValidatorobject ExactSetOfRedeemersValidatorobject FeesOkValidatorobject MetadataValidatorobject MissingKeyHashesValidatorobject NativeScriptsValidatorobject OutsideForecastValidatorobject ProposalDepositValidatorobject ScriptsWellFormedValidatorobject StakeCertificatesValidatorobject TransactionSizeValidatorobject TxRefScriptsSizeValidatorobject WrongNetworkValidatorShow all
Attributes
- Supertypes
- Self type
Attributes
- Supertypes
- Self type
Attributes
- Supertypes
- Self type
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Supertypes
- Self type
Attributes
- Supertypes
- Self type
Attributes
- Supertypes
- Self type
Attributes
- Supertypes
- Self type
The environment a transaction is validated in.
The environment a transaction is validated in.
Value parameters
- treasury
-
the treasury as of the last epoch boundary, the
casTreasuryHaskell passes to LEDGER. A tx that states acurrentTreasuryValuemust state this value, spec [SC-6].
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
This is Shelley.validateValueNotConservedUTxO
This is Shelley.validateValueNotConservedUTxO
consumed pp utxo txb = produced pp poolParams txb
Both sides are summed and compared exactly, as the ledger's Integer does: a transaction can make a Long sum wrap around to the other side's total. The error reports amounts beyond the Long range as Long.MaxValue or Long.MinValue.
Attributes
- Supertypes
- Self type
Attributes
- Supertypes
- Self type
Attributes
- Supertypes
- Self type
Attributes
- Supertypes
- Self type
Attributes
- Supertypes
- Self type
Attributes
- Supertypes
- Self type