IntervalBound

scalus.cardano.onchain.plutus.v1.IntervalBound
See theIntervalBound companion class
object IntervalBound

Attributes

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

Members list

Type members

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

Create a finite exclusive interval bound

Create a finite exclusive interval bound

Attributes

Create a finite inclusive interval bound

Create a finite inclusive interval bound

Attributes

Returns the maximum of two interval bounds. If the bounds are equal, returns the left-hand side bound.

Returns the maximum of two interval bounds. If the bounds are equal, returns the left-hand side bound.

Attributes

Returns the minimum of two interval bounds. If the bounds are equal, returns the left-hand side bound.

Returns the minimum of two interval bounds. If the bounds are equal, returns the left-hand side bound.

Attributes

Concrete fields

Inclusive -∞ interval bound

Inclusive -∞ interval bound

Attributes

Inclusive +∞ interval bound

Inclusive +∞ interval bound

Attributes

lazy val sirDeps: List[SIRModuleWithDeps]
lazy val sirModule: Module

Extensions

Extensions

extension (self: IntervalBound)
inline def finite(default: PosixTime): PosixTime

The bound's time, or default if the bound is not finite.

The bound's time, or default if the bound is not finite.

Inventing a value for an unbounded side is a trap: validRange.from.finite(0) treats a transaction with NO lower bound as happening at the Unix epoch, and every "has the deadline passed?" comparison flips. Prefer finiteOrFail, or TxInfo.validFromOrFail / validToOrFail, which also state the ledger's inclusivity convention.

Attributes

inline def finiteOrFail(message: String): PosixTime