RewardAccount

scalus.cardano.ledger.RewardAccount
See theRewardAccount companion class
object RewardAccount

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

object given_Decoder_RewardAccount extends Decoder[RewardAccount]

CBOR decoder for Address

CBOR decoder for Address

Attributes

Supertypes
trait Decoder[RewardAccount]
class Object
trait Matchable
class Any
Self type
object given_Encoder_RewardAccount extends Encoder[RewardAccount]

Attributes

Supertypes
trait Encoder[RewardAccount]
class Object
trait Matchable
class Any
Self type
object given_Ordering_RewardAccount extends Ordering[RewardAccount]

Ordering matches the ledger's derived Ord AccountAddress, which is (Network, AccountId) where AccountId wraps a Credential (libs/cardano-ledger-core/src/Cardano/Ledger/Address.hs:183-190) and Ord (Credential kr) is derived on ScriptHashObj | KeyHashObj (Credential.hs:98-101), so script credentials sort before key credentials.

Ordering matches the ledger's derived Ord AccountAddress, which is (Network, AccountId) where AccountId wraps a Credential (libs/cardano-ledger-core/src/Cardano/Ledger/Address.hs:183-190) and Ord (Credential kr) is derived on ScriptHashObj | KeyHashObj (Credential.hs:98-101), so script credentials sort before key credentials.

This matters beyond serialisation: the ledger resolves a Withdrawing/Rewarding redeemer index with Map.elemAt over Map AccountAddress Coin (Conway/TxBody.hs:672-673), so this ordering decides which withdrawal an index names. The credential kind must be compared between the network and the hash.

Attributes

Supertypes
trait Ordering[RewardAccount]
trait PartialOrdering[RewardAccount]
trait Equiv[RewardAccount]
trait Serializable
trait Comparator[RewardAccount]
class Object
trait Matchable
class Any
Show all
Self type

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Givens

Givens

CBOR decoder for Address

CBOR decoder for Address

Attributes

Ordering matches the ledger's derived Ord AccountAddress, which is (Network, AccountId) where AccountId wraps a Credential (libs/cardano-ledger-core/src/Cardano/Ledger/Address.hs:183-190) and Ord (Credential kr) is derived on ScriptHashObj | KeyHashObj (Credential.hs:98-101), so script credentials sort before key credentials.

Ordering matches the ledger's derived Ord AccountAddress, which is (Network, AccountId) where AccountId wraps a Credential (libs/cardano-ledger-core/src/Cardano/Ledger/Address.hs:183-190) and Ord (Credential kr) is derived on ScriptHashObj | KeyHashObj (Credential.hs:98-101), so script credentials sort before key credentials.

This matters beyond serialisation: the ledger resolves a Withdrawing/Rewarding redeemer index with Map.elemAt over Map AccountAddress Coin (Conway/TxBody.hs:672-673), so this ordering decides which withdrawal an index names. The credential kind must be compared between the network and the hash.

Attributes