Certificate

scalus.cardano.ledger.Certificate
See theCertificate companion enum
object Certificate

Attributes

Companion
enum
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

object given_Decoder_Certificate extends Decoder[Certificate]

Attributes

Supertypes
trait Decoder[Certificate]
class Object
trait Matchable
class Any
Self type
object given_Encoder_Certificate extends Encoder[Certificate]

Attributes

Supertypes
trait Encoder[Certificate]
class Object
trait Matchable
class Any
Self type

Pretty prints Certificate showing the certificate type

Pretty prints Certificate showing the certificate type

Attributes

Supertypes
class Object
trait Matchable
class Any
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

Value members

Concrete methods

def conwayDRepDeposits(params: ProtocolParams, certificates: Iterable[Certificate]): Coin

Calculate total deposits required for Conway-era DRep certificates

Calculate total deposits required for Conway-era DRep certificates

Value parameters

certificates

Certificates in the transaction

params

Protocol parameters containing DRep deposit amount

Attributes

Returns

Total DRep deposit amount

Throws
java.lang.ArithmeticException

when the total does not fit in a Long

def conwayDRepRefundsTxCerts(lookupDRepDeposit: Credential => Option[Coin], certificates: Iterable[Certificate]): Coin

Total DRep-deregistration refunds; throws ArithmeticException when the sum does not fit in a Long.

Total DRep-deregistration refunds; throws ArithmeticException when the sum does not fit in a Long.

Attributes

def shelleyTotalDeposits(params: ProtocolParams, certificates: Iterable[Certificate]): Coin

Calculate total deposits required for Shelley-era certificates (stake pool and delegation)

Calculate total deposits required for Shelley-era certificates (stake pool and delegation)

Value parameters

certificates

Certificates in the transaction

params

Protocol parameters containing deposit amounts

Attributes

Returns

Total deposit amount, with a pool deposit for every pool registration, as no pool is registered

def shelleyTotalDeposits(params: ProtocolParams, isRegisteredPool: PoolKeyHash => Boolean, certificates: Iterable[Certificate]): Coin

Calculate total deposits required for Shelley-era certificates (stake pool and delegation), as Haskell shelleyTotalDepositsTxCerts: a pool registration pays the pool deposit only if its pool is not registered and no earlier certificate of the tx registered it. A re-registration updates the pool's parameters and keeps its deposit.

Calculate total deposits required for Shelley-era certificates (stake pool and delegation), as Haskell shelleyTotalDepositsTxCerts: a pool registration pays the pool deposit only if its pool is not registered and no earlier certificate of the tx registered it. A re-registration updates the pool's parameters and keeps its deposit.

Value parameters

certificates

Certificates in the transaction

isRegisteredPool

whether a pool is registered before the transaction

params

Protocol parameters containing deposit amounts

Attributes

Returns

Total deposit amount

Throws
java.lang.ArithmeticException

when the total does not fit in a Long

def shelleyTotalRefundsTxCerts(lookupStakingDeposit: Credential => Option[Coin], params: ProtocolParams, certificates: Iterable[Certificate]): Coin

Total key-deregistration refunds; throws ArithmeticException when the sum does not fit in a Long.

Total key-deregistration refunds; throws ArithmeticException when the sum does not fit in a Long.

Attributes

Givens

Givens

Pretty prints Certificate showing the certificate type

Pretty prints Certificate showing the certificate type

Attributes