case class RoundingIntervals(intervalStarts: Vector[IntervalStart]) extends Product with Serializable
Specifies a list of intervals with corresponding rounding moduli. In particular, each element (outcome, roundingMod) of intervalStarts represents the beginning of a new interval at outcome with new modulus roundingMod.
- See also
https://github.com/discreetlogcontracts/dlcspecs/blob/8ee4bbe816c9881c832b1ce320b9f14c72e3506f/NumericOutcome.md#rounding-intervals
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- RoundingIntervals
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new RoundingIntervals(intervalStarts: Vector[IntervalStart])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def canonicalForm(): RoundingIntervals
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def intervalContaining(outcome: BigDecimal): Interval
Returns the rounding interval (start, end, mod) containing the given outcome
- val intervalStarts: Vector[IntervalStart]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def minRoundingWith(other: RoundingIntervals): RoundingIntervals
Returns a RoundingIntervals which does the maximum amount of rounding allowed by both this and other.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def round(outcome: BigDecimal, computedPayout: Satoshis): Satoshis
- def roundingModulusAt(outcome: BigDecimal): Long
Returns the rounding modulus which should be used at the given outcome
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toTLV: RoundingIntervalsV0TLV
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()