IntervalBound

scalus.cardano.onchain.plutus.v1.IntervalBound
See theIntervalBound companion object
case class IntervalBound(boundType: IntervalBoundType, isInclusive: Closure)

An interval bound, either inclusive or exclusive.

Value parameters

boundType

the type of the bound

isInclusive

whether the bound is inclusive or not

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

inline def finite(default: PosixTime): PosixTime
Extension method from IntervalBound

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
Extension method from IntervalBound

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product