sealed abstract class MilliSatoshis extends NetworkElement with Ordered[MilliSatoshis] with BasicArithmetic[MilliSatoshis]

The common currency unit used in the LN protocol for updating HTLCs.

See also

BOLT2

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MilliSatoshis
  2. BasicArithmetic
  3. Ordered
  4. Comparable
  5. NetworkElement
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def underlying: BigInt
    Attributes
    protected

Concrete Value Members

  1. def !=(ms: MilliSatoshis): Boolean
  2. def !=(lnCurrencyUnit: LnCurrencyUnit): Boolean
  3. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def ##: Int
    Definition Classes
    AnyRef → Any
  5. def *(factor: MilliSatoshis): MilliSatoshis
    Definition Classes
    MilliSatoshisBasicArithmetic
  6. def *(factor: BigInt): MilliSatoshis
    Definition Classes
    MilliSatoshisBasicArithmetic
  7. def +(ms: MilliSatoshis): MilliSatoshis
    Definition Classes
    MilliSatoshisBasicArithmetic
  8. def -(ms: MilliSatoshis): MilliSatoshis
    Definition Classes
    MilliSatoshisBasicArithmetic
  9. def <(ln: LnCurrencyUnit): Boolean
  10. def <(that: MilliSatoshis): Boolean
    Definition Classes
    Ordered
  11. def <=(ln: LnCurrencyUnit): Boolean
  12. def <=(that: MilliSatoshis): Boolean
    Definition Classes
    Ordered
  13. def ==(ms: MilliSatoshis): Boolean
  14. def ==(lnCurrencyUnit: LnCurrencyUnit): Boolean
  15. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  16. def >(ln: LnCurrencyUnit): Boolean
  17. def >(that: MilliSatoshis): Boolean
    Definition Classes
    Ordered
  18. def >=(ln: LnCurrencyUnit): Boolean
  19. def >=(that: MilliSatoshis): Boolean
    Definition Classes
    Ordered
  20. def addSafe(n: MilliSatoshis): Try[MilliSatoshis]

    Some classes have restrictions on upper bounds for it's underlying value.

    Some classes have restrictions on upper bounds for it's underlying value. This might cause the + operator to throw. This method wraps it in a Try block.

    Definition Classes
    BasicArithmetic
  21. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  22. def byteSize: Long

    The size of the NetworkElement in bytes.

    The size of the NetworkElement in bytes.

    Definition Classes
    NetworkElement
  23. def bytes: ByteVector

    The byte representation of the NetworkElement

    The byte representation of the NetworkElement

    Definition Classes
    MilliSatoshisNetworkElement
  24. def bytesLE: ByteVector

    The byte representation of the NetworkElement in little endian

    The byte representation of the NetworkElement in little endian

    Definition Classes
    NetworkElement
  25. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  26. def compare(ms: MilliSatoshis): Int
    Definition Classes
    MilliSatoshis → Ordered
  27. def compareTo(that: MilliSatoshis): Int
    Definition Classes
    Ordered → Comparable
  28. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. def equals(obj: Any): Boolean
    Definition Classes
    MilliSatoshis → AnyRef → Any
  30. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  31. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  32. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  33. def hex: String

    The hexadecimal representation of the NetworkElement

    The hexadecimal representation of the NetworkElement

    Definition Classes
    NetworkElement
  34. def hexLE: String

    The hexadecimal representation of the NetworkElement in little endian

    The hexadecimal representation of the NetworkElement in little endian

    Definition Classes
    NetworkElement
  35. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  36. def multiplySafe(factor: MilliSatoshis): Try[MilliSatoshis]

    Some classes have restrictions on upper bounds for it's underlying value.

    Some classes have restrictions on upper bounds for it's underlying value. This might cause the * operator to throw. This method wraps it in a Try block.

    Definition Classes
    BasicArithmetic
  37. def multiplySafe(factor: BigInt): Try[MilliSatoshis]

    Some classes have restrictions on upper bounds for it's underlying value.

    Some classes have restrictions on upper bounds for it's underlying value. This might cause the * operator to throw. This method wraps it in a Try block.

    Definition Classes
    BasicArithmetic
  38. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  39. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  40. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  41. def subtractSafe(n: MilliSatoshis): Try[MilliSatoshis]

    Some classes have restrictions on lower bounds for it's underlying value.

    Some classes have restrictions on lower bounds for it's underlying value. This might cause the - operator to throw. This method wraps it in a Try block.

    Definition Classes
    BasicArithmetic
  42. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  43. def toBigDecimal: BigDecimal
  44. def toBigInt: BigInt
  45. def toLnCurrencyUnit: LnCurrencyUnit
  46. def toLong: Long
  47. def toSatoshis: Satoshis
  48. def toString(): String

    Output example:

    Output example:

    > MilliSatoshis(10)
    10 msat
    Definition Classes
    MilliSatoshis → AnyRef → Any
  49. def toUInt64: UInt64
  50. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  51. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  52. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Ordered[MilliSatoshis]

Inherited from Comparable[MilliSatoshis]

Inherited from NetworkElement

Inherited from AnyRef

Inherited from Any

Ungrouped