case class OutcomePayoutPolynomial(points: Vector[OutcomePayoutPoint]) extends DLCPolynomialPayoutCurvePiece with Product with Serializable
A polynomial interpolating points and defining a piece of a larger payout curve
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- OutcomePayoutPolynomial
- Serializable
- Product
- Equals
- DLCPolynomialPayoutCurvePiece
- DLCPayoutCurvePiece
- TLVSerializable
- NetworkElement
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new OutcomePayoutPolynomial(points: Vector[OutcomePayoutPoint])
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
- def apply(outcome: Long): Satoshis
- Definition Classes
- OutcomePayoutPolynomial → DLCPayoutCurvePiece
- def apply(outcome: Long, rounding: RoundingIntervals, totalCollateral: Satoshis): Satoshis
- Definition Classes
- DLCPayoutCurvePiece
- def apply(outcome: Long, rounding: RoundingIntervals): Satoshis
- Definition Classes
- DLCPayoutCurvePiece
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def bigDecimalSats(bd: BigDecimal): Satoshis
Returns the largest Long less than or equal to bd (floor function)
Returns the largest Long less than or equal to bd (floor function)
- Attributes
- protected
- Definition Classes
- DLCPayoutCurvePiece
- def byteSize: Long
The size of the NetworkElement in bytes.
The size of the NetworkElement in bytes.
- Definition Classes
- NetworkElement
- def bytes: ByteVector
The byte representation of the NetworkElement
The byte representation of the NetworkElement
- Definition Classes
- TLVSerializable → NetworkElement
- def bytesLE: ByteVector
The byte representation of the NetworkElement in little endian
The byte representation of the NetworkElement in little endian
- Definition Classes
- NetworkElement
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- lazy val coefficients: Vector[BigDecimal]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def flip(totalCollateral: Satoshis): DLCPolynomialPayoutCurvePiece
- Definition Classes
- DLCPolynomialPayoutCurvePiece → DLCPayoutCurvePiece
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hex: String
The hexadecimal representation of the NetworkElement
The hexadecimal representation of the NetworkElement
- Definition Classes
- NetworkElement
- def hexLE: String
The hexadecimal representation of the NetworkElement in little endian
The hexadecimal representation of the NetworkElement in little endian
- Definition Classes
- NetworkElement
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- lazy val leftEndpoint: OutcomePayoutPoint
- Definition Classes
- OutcomePayoutPolynomial → DLCPayoutCurvePiece
- lazy val midpoints: Vector[OutcomePayoutPoint]
- Definition Classes
- OutcomePayoutPolynomial → DLCPolynomialPayoutCurvePiece
- 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()
- val points: Vector[OutcomePayoutPoint]
- Definition Classes
- OutcomePayoutPolynomial → DLCPolynomialPayoutCurvePiece
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- lazy val rightEndpoint: OutcomePayoutPoint
- Definition Classes
- OutcomePayoutPolynomial → DLCPayoutCurvePiece
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toTLV: PolynomialPayoutCurvePieceTLV
- Definition Classes
- DLCPolynomialPayoutCurvePiece → TLVSerializable
- 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()