given_Ordering_Credential

scalus.cardano.ledger.Credential.given_Ordering_Credential
object given_Ordering_Credential extends Ordering[Credential]

Ordering matches the ledger's derived Ord (Credential kr), which is derived on ScriptHashObj | KeyHashObj (libs/cardano-ledger-core/.../Credential.hs:98-101), so script credentials sort before key credentials, then by hash.

This is the order the ledger's Set (Credential ColdCommitteeRole) iterates in, and hence the order a governance action's removed-committee-member list is serialised in.

Attributes

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

Members list

Type members

Inherited classlikes

class OrderingOps(lhs: T)

Attributes

Inherited from:
Ordering
Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

def compare(x: Credential, y: Credential): Int

Inherited methods

override def equiv(x: Credential, y: Credential): Boolean

Attributes

Definition Classes
Ordering -> PartialOrdering -> Equiv
Inherited from:
Ordering
override def gt(x: Credential, y: Credential): Boolean

Attributes

Definition Classes
Ordering -> PartialOrdering
Inherited from:
Ordering
override def gteq(x: Credential, y: Credential): Boolean

Attributes

Definition Classes
Ordering -> PartialOrdering
Inherited from:
Ordering
def isReverseOf(other: Ordering[_]): Boolean

Attributes

Inherited from:
Ordering
override def lt(x: Credential, y: Credential): Boolean

Attributes

Definition Classes
Ordering -> PartialOrdering
Inherited from:
Ordering
override def lteq(x: Credential, y: Credential): Boolean

Attributes

Definition Classes
Ordering -> PartialOrdering
Inherited from:
Ordering
def max[U <: Credential](x: U, y: U): U

Attributes

Inherited from:
Ordering
def min[U <: Credential](x: U, y: U): U

Attributes

Inherited from:
Ordering
def on[U](f: U => Credential): Ordering[U]

Attributes

Inherited from:
Ordering
def orElse(other: Ordering[Credential]): Ordering[Credential]

Attributes

Inherited from:
Ordering
def orElseBy[S](f: Credential => S)(implicit ord: Ordering[S]): Ordering[Credential]

Attributes

Inherited from:
Ordering
override def reverse: Ordering[Credential]

Attributes

Definition Classes
Ordering -> PartialOrdering
Inherited from:
Ordering
def reversed(): Comparator[Credential]

Attributes

Inherited from:
Comparator
def thenComparing[U <: Comparable[_ >: U <: <FromJavaObject>]](x$0: Function[_ >: Credential <: <FromJavaObject>, _ <: U]): Comparator[Credential]

Attributes

Inherited from:
Comparator
def thenComparing[U <: <FromJavaObject>](x$0: Function[_ >: Credential <: <FromJavaObject>, _ <: U], x$1: Comparator[_ >: U <: <FromJavaObject>]): Comparator[Credential]

Attributes

Inherited from:
Comparator
def thenComparing(x$0: Comparator[_ >: Credential <: <FromJavaObject>]): Comparator[Credential]

Attributes

Inherited from:
Comparator
def thenComparingDouble(x$0: ToDoubleFunction[_ >: Credential <: <FromJavaObject>]): Comparator[Credential]

Attributes

Inherited from:
Comparator
def thenComparingInt(x$0: ToIntFunction[_ >: Credential <: <FromJavaObject>]): Comparator[Credential]

Attributes

Inherited from:
Comparator
def thenComparingLong(x$0: ToLongFunction[_ >: Credential <: <FromJavaObject>]): Comparator[Credential]

Attributes

Inherited from:
Comparator
def tryCompare(x: Credential, y: Credential): Some[Int]

Attributes

Inherited from:
Ordering

Implicits

Inherited implicits

implicit def mkOrderingOps(lhs: Credential): OrderingOps

Attributes

Inherited from:
Ordering