case class SignedDigitDecompositionEventDescriptor(base: UInt16, numDigits: UInt16, unit: NormalizedString, precision: Int32) extends DigitDecompositionEventDescriptorV0TLV with Product with Serializable
Represents a large range event that can be positive or negative
- Alphabetic
- By Inheritance
- SignedDigitDecompositionEventDescriptor
- Serializable
- Product
- Equals
- DigitDecompositionEventDescriptorV0TLV
- NumericEventDescriptorTLV
- EventDescriptorTLV
- DLCOracleTLV
- TLV
- TLVUtil
- NetworkElement
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new SignedDigitDecompositionEventDescriptor(base: UInt16, numDigits: UInt16, unit: NormalizedString, precision: Int32)
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
- val base: UInt16
The base in which the outcome value is represented
The base in which the outcome value is represented
- Definition Classes
- SignedDigitDecompositionEventDescriptor → NumericEventDescriptorTLV
- def bigSizePrefix(bytes: ByteVector): ByteVector
- Attributes
- protected
- Definition Classes
- TLVUtil
- def bigSizePrefixedList[T <: NetworkElement](vec: Vector[T]): ByteVector
- Attributes
- protected
- Definition Classes
- TLVUtil
- def bigSizePrefixedList[T](vec: Vector[T], serialize: (T) => ByteVector): ByteVector
- Attributes
- protected
- Definition Classes
- TLVUtil
- def boolBytes(bool: Boolean): ByteVector
- Attributes
- protected
- Definition Classes
- TLVUtil
- 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
- TLV → 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()
- def contains(outcome: BigInt): Boolean
- Definition Classes
- NumericEventDescriptorTLV
- def containsPreciseOutcome(outcome: BigDecimal): Boolean
Checks if a outcome is contained in the set of outcomes when adjusted for precision If you have precision=-1 and oracle outcomes [0,1,2,3...,10] This would return true if passed a value [0, 0.1, 0.2,...,1.0] If passed in the not precision adjusted outcomes [0,1,2,...10] it will return false
Checks if a outcome is contained in the set of outcomes when adjusted for precision If you have precision=-1 and oracle outcomes [0,1,2,3...,10] This would return true if passed a value [0, 0.1, 0.2,...,1.0] If passed in the not precision adjusted outcomes [0,1,2,...10] it will return false
- Definition Classes
- NumericEventDescriptorTLV
- 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 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
- val isSigned: Boolean
If the Descriptor contains negative values
If the Descriptor contains negative values
- Definition Classes
- SignedDigitDecompositionEventDescriptor → NumericEventDescriptorTLV
- def length: BigSizeUInt
- Definition Classes
- TLV
- lazy val max: Vector[NormalizedString]
The maximum valid value in the oracle can sign
The maximum valid value in the oracle can sign
- Definition Classes
- DigitDecompositionEventDescriptorV0TLV → NumericEventDescriptorTLV
- lazy val maxNum: BigInt
- Definition Classes
- DigitDecompositionEventDescriptorV0TLV → NumericEventDescriptorTLV
- def maxToPrecision: BigDecimal
- Definition Classes
- NumericEventDescriptorTLV
- lazy val min: Vector[NormalizedString]
The minimum valid value in the oracle can sign
The minimum valid value in the oracle can sign
- Definition Classes
- DigitDecompositionEventDescriptorV0TLV → NumericEventDescriptorTLV
- lazy val minNum: BigInt
- Definition Classes
- DigitDecompositionEventDescriptorV0TLV → NumericEventDescriptorTLV
- def minToPrecision: BigDecimal
- Definition Classes
- NumericEventDescriptorTLV
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def noncesNeeded: Int
- Definition Classes
- DigitDecompositionEventDescriptorV0TLV → EventDescriptorTLV
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val numDigits: UInt16
The number of digits that the oracle will sign
The number of digits that the oracle will sign
- Definition Classes
- SignedDigitDecompositionEventDescriptor → DigitDecompositionEventDescriptorV0TLV
- val precision: Int32
The precision of the outcome representing the base exponent by which to multiply the number represented by the composition of the digits to obtain the actual outcome value.
The precision of the outcome representing the base exponent by which to multiply the number represented by the composition of the digits to obtain the actual outcome value.
Modifies unit.
- Definition Classes
- SignedDigitDecompositionEventDescriptor → NumericEventDescriptorTLV
- lazy val precisionModifier: Double
- Definition Classes
- NumericEventDescriptorTLV
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def satBytes(sats: Satoshis): ByteVector
- Attributes
- protected
- Definition Classes
- TLVUtil
- def sha256: Sha256Digest
- Definition Classes
- TLV
- def signingVersion: SigningVersion
Event descriptors all use the same signing version as of now.
Event descriptors all use the same signing version as of now.
- Definition Classes
- EventDescriptorTLV
- See also
https://github.com/discreetlogcontracts/dlcspecs/pull/113
- lazy val step: UInt16
- Definition Classes
- DigitDecompositionEventDescriptorV0TLV → NumericEventDescriptorTLV
- def stepToPrecision: BigDecimal
- Definition Classes
- NumericEventDescriptorTLV
- def strBytes(str: NormalizedString): ByteVector
- Attributes
- protected
- Definition Classes
- TLVUtil
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- lazy val tpe: BigSizeUInt
- Definition Classes
- DigitDecompositionEventDescriptorV0TLV → TLV
- def typeName: String
- Definition Classes
- TLV
- def u16Prefix(bytes: ByteVector): ByteVector
- Attributes
- protected
- Definition Classes
- TLVUtil
- def u16PrefixedList[T <: NetworkElement](vec: Vector[T]): ByteVector
- Attributes
- protected
- Definition Classes
- TLVUtil
- def u16PrefixedList[T](vec: Vector[T], serialize: (T) => ByteVector): ByteVector
- Attributes
- protected
- Definition Classes
- TLVUtil
- val unit: NormalizedString
The unit of the outcome value
The unit of the outcome value
- Definition Classes
- SignedDigitDecompositionEventDescriptor → NumericEventDescriptorTLV
- lazy val value: ByteVector
- Definition Classes
- DigitDecompositionEventDescriptorV0TLV → TLV
- 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()