given_Ordering_RewardAccount
scalus.cardano.ledger.RewardAccount.given_Ordering_RewardAccount
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.
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
- Graph
-
- Supertypes
-
trait Ordering[RewardAccount]trait PartialOrdering[RewardAccount]trait Equiv[RewardAccount]trait Serializabletrait Comparator[RewardAccount]class Objecttrait Matchableclass AnyShow all
- Self type
Members list
Type members
Inherited classlikes
Attributes
- Inherited from:
- Ordering
- Supertypes
-
class Objecttrait Matchableclass Any
Value members
Concrete methods
Inherited methods
Attributes
- Definition Classes
-
Ordering -> PartialOrdering -> Equiv
- Inherited from:
- Ordering
Attributes
- Definition Classes
-
Ordering -> PartialOrdering
- Inherited from:
- Ordering
Attributes
- Definition Classes
-
Ordering -> PartialOrdering
- Inherited from:
- Ordering
Attributes
- Inherited from:
- Ordering
Attributes
- Definition Classes
-
Ordering -> PartialOrdering
- Inherited from:
- Ordering
Attributes
- Definition Classes
-
Ordering -> PartialOrdering
- Inherited from:
- Ordering
Attributes
- Inherited from:
- Ordering
Attributes
- Inherited from:
- Ordering
Attributes
- Inherited from:
- Ordering
Attributes
- Inherited from:
- Ordering
Attributes
- Inherited from:
- Ordering
Attributes
- Definition Classes
-
Ordering -> PartialOrdering
- Inherited from:
- Ordering
Attributes
- Inherited from:
- Comparator
def thenComparing[U <: Comparable[_ >: U <: <FromJavaObject>]](x$0: Function[_ >: RewardAccount <: <FromJavaObject>, _ <: U]): Comparator[RewardAccount]
Attributes
- Inherited from:
- Comparator
def thenComparing[U <: <FromJavaObject>](x$0: Function[_ >: RewardAccount <: <FromJavaObject>, _ <: U], x$1: Comparator[_ >: U <: <FromJavaObject>]): Comparator[RewardAccount]
Attributes
- Inherited from:
- Comparator
def thenComparing(x$0: Comparator[_ >: RewardAccount <: <FromJavaObject>]): Comparator[RewardAccount]
Attributes
- Inherited from:
- Comparator
def thenComparingDouble(x$0: ToDoubleFunction[_ >: RewardAccount <: <FromJavaObject>]): Comparator[RewardAccount]
Attributes
- Inherited from:
- Comparator
def thenComparingInt(x$0: ToIntFunction[_ >: RewardAccount <: <FromJavaObject>]): Comparator[RewardAccount]
Attributes
- Inherited from:
- Comparator
def thenComparingLong(x$0: ToLongFunction[_ >: RewardAccount <: <FromJavaObject>]): Comparator[RewardAccount]
Attributes
- Inherited from:
- Comparator
Attributes
- Inherited from:
- Ordering
Implicits
Inherited implicits
Attributes
- Inherited from:
- Ordering
In this article