Packages

c

org.bitcoins.core.protocol.tlv

SignedDigitDecompositionEventDescriptor

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

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SignedDigitDecompositionEventDescriptor
  2. Serializable
  3. Product
  4. Equals
  5. DigitDecompositionEventDescriptorV0TLV
  6. NumericEventDescriptorTLV
  7. EventDescriptorTLV
  8. DLCOracleTLV
  9. TLV
  10. TLVUtil
  11. NetworkElement
  12. AnyRef
  13. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new SignedDigitDecompositionEventDescriptor(base: UInt16, numDigits: UInt16, unit: NormalizedString, precision: Int32)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val base: UInt16

    The base in which the outcome value is represented

    The base in which the outcome value is represented

    Definition Classes
    SignedDigitDecompositionEventDescriptorNumericEventDescriptorTLV
  6. def bigSizePrefix(bytes: ByteVector): ByteVector
    Attributes
    protected
    Definition Classes
    TLVUtil
  7. def bigSizePrefixedList[T <: NetworkElement](vec: Vector[T]): ByteVector
    Attributes
    protected
    Definition Classes
    TLVUtil
  8. def bigSizePrefixedList[T](vec: Vector[T], serialize: (T) => ByteVector): ByteVector
    Attributes
    protected
    Definition Classes
    TLVUtil
  9. def boolBytes(bool: Boolean): ByteVector
    Attributes
    protected
    Definition Classes
    TLVUtil
  10. def byteSize: Long

    The size of the NetworkElement in bytes.

    The size of the NetworkElement in bytes.

    Definition Classes
    NetworkElement
  11. def bytes: ByteVector

    The byte representation of the NetworkElement

    The byte representation of the NetworkElement

    Definition Classes
    TLVNetworkElement
  12. def bytesLE: ByteVector

    The byte representation of the NetworkElement in little endian

    The byte representation of the NetworkElement in little endian

    Definition Classes
    NetworkElement
  13. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  14. def contains(outcome: BigInt): Boolean
    Definition Classes
    NumericEventDescriptorTLV
  15. 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
  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  18. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. def hex: String

    The hexadecimal representation of the NetworkElement

    The hexadecimal representation of the NetworkElement

    Definition Classes
    NetworkElement
  20. def hexLE: String

    The hexadecimal representation of the NetworkElement in little endian

    The hexadecimal representation of the NetworkElement in little endian

    Definition Classes
    NetworkElement
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. val isSigned: Boolean

    If the Descriptor contains negative values

    If the Descriptor contains negative values

    Definition Classes
    SignedDigitDecompositionEventDescriptorNumericEventDescriptorTLV
  23. def length: BigSizeUInt
    Definition Classes
    TLV
  24. 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
    DigitDecompositionEventDescriptorV0TLVNumericEventDescriptorTLV
  25. lazy val maxNum: BigInt
  26. def maxToPrecision: BigDecimal
    Definition Classes
    NumericEventDescriptorTLV
  27. 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
    DigitDecompositionEventDescriptorV0TLVNumericEventDescriptorTLV
  28. lazy val minNum: BigInt
  29. def minToPrecision: BigDecimal
    Definition Classes
    NumericEventDescriptorTLV
  30. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  31. def noncesNeeded: Int
  32. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  33. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  34. val numDigits: UInt16

    The number of digits that the oracle will sign

    The number of digits that the oracle will sign

    Definition Classes
    SignedDigitDecompositionEventDescriptorDigitDecompositionEventDescriptorV0TLV
  35. 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
    SignedDigitDecompositionEventDescriptorNumericEventDescriptorTLV
  36. lazy val precisionModifier: Double
    Definition Classes
    NumericEventDescriptorTLV
  37. def productElementNames: Iterator[String]
    Definition Classes
    Product
  38. def satBytes(sats: Satoshis): ByteVector
    Attributes
    protected
    Definition Classes
    TLVUtil
  39. def sha256: Sha256Digest
    Definition Classes
    TLV
  40. 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

  41. lazy val step: UInt16
  42. def stepToPrecision: BigDecimal
    Definition Classes
    NumericEventDescriptorTLV
  43. def strBytes(str: NormalizedString): ByteVector
    Attributes
    protected
    Definition Classes
    TLVUtil
  44. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  45. lazy val tpe: BigSizeUInt
  46. def typeName: String
    Definition Classes
    TLV
  47. def u16Prefix(bytes: ByteVector): ByteVector
    Attributes
    protected
    Definition Classes
    TLVUtil
  48. def u16PrefixedList[T <: NetworkElement](vec: Vector[T]): ByteVector
    Attributes
    protected
    Definition Classes
    TLVUtil
  49. def u16PrefixedList[T](vec: Vector[T], serialize: (T) => ByteVector): ByteVector
    Attributes
    protected
    Definition Classes
    TLVUtil
  50. val unit: NormalizedString

    The unit of the outcome value

    The unit of the outcome value

    Definition Classes
    SignedDigitDecompositionEventDescriptorNumericEventDescriptorTLV
  51. lazy val value: ByteVector
  52. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  53. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  54. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from EventDescriptorTLV

Inherited from DLCOracleTLV

Inherited from TLV

Inherited from TLVUtil

Inherited from NetworkElement

Inherited from AnyRef

Inherited from Any

Ungrouped