trait DLCOracleApi extends AnyRef

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DLCOracleApi
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def createAttestation(nonce: SchnorrNonce, outcome: DLCAttestationType): Future[EventDb]
  2. abstract def createNewAnnouncement(eventName: String, maturationTime: Instant, descriptor: EventDescriptorTLV, signingVersion: SigningVersion = SigningVersion.latest): Future[OracleAnnouncementTLV]
  3. abstract def createNewDigitDecompAnnouncement(eventName: String, maturationTime: Instant, base: UInt16, isSigned: Boolean, numDigits: Int, unit: String, precision: Int32): Future[OracleAnnouncementTLV]
  4. abstract def createNewEnumAnnouncement(eventName: String, maturationTime: Instant, outcomes: Vector[String]): Future[OracleAnnouncementTLV]
  5. abstract def deleteAnnouncement(announcementTLV: OracleAnnouncementTLV): Future[OracleAnnouncementTLV]

    Deletes an announcement with the given name WARNING: If this announcement has been published widely users will not be able to settle their DLCs.

    Deletes an announcement with the given name WARNING: If this announcement has been published widely users will not be able to settle their DLCs. You likely should only use this in testing scenarios

    returns

    the deleted announcement

  6. abstract def deleteAnnouncement(eventName: String): Future[OracleAnnouncementTLV]

    Deletes an announcement with the given name WARNING: If this announcement has been published widely users will not be able to settle their DLCs.

    Deletes an announcement with the given name WARNING: If this announcement has been published widely users will not be able to settle their DLCs. You likely should only use this in testing scenarios

    returns

    the deleted announcement

  7. abstract def deleteAttestation(oracleEventTLV: OracleEventTLV): Future[OracleEvent]

    Deletes attestations for the given event

    Deletes attestations for the given event

    WARNING: if previous signatures have been made public the oracle private key will be revealed.

  8. abstract def deleteAttestation(eventName: String): Future[OracleEvent]

    Deletes attestations for the given event

    Deletes attestations for the given event

    WARNING: if previous signatures have been made public the oracle private key will be revealed.

  9. abstract def exportSigningKeyWIF: String

    Returns the staking address private key in wallet import format so a user can take it an recover the funds in another wallet

  10. abstract def findEvent(eventName: String): Future[Option[OracleEvent]]
  11. abstract def findEvent(oracleEventTLV: OracleEventTLV): Future[Option[OracleEvent]]
  12. abstract def listCompletedEventDbs(): Future[Vector[EventDb]]
  13. abstract def listCompletedEvents(): Future[Vector[OracleEvent]]
  14. abstract def listEventDbs(): Future[Vector[EventDb]]
  15. abstract def listEvents(): Future[Vector[OracleEvent]]
  16. abstract def listPendingEventDbs(): Future[Vector[EventDb]]
  17. abstract def listPendingEvents(): Future[Vector[OracleEvent]]
  18. abstract def oracleName(): Future[Option[String]]
  19. abstract def publicKey(): SchnorrPublicKey
  20. abstract def setOracleName(name: String): Future[Unit]
  21. abstract def signDigits(oracleEventTLV: OracleEventTLV, num: Long): Future[OracleEvent]
  22. abstract def signDigits(eventName: String, num: Long): Future[OracleEvent]
  23. abstract def signEnum(oracleEventTLV: OracleEventTLV, outcome: EnumAttestation): Future[EventDb]

    Signs an enumerated announcement

    Signs an enumerated announcement

    oracleEventTLV

    the tlv of the oracle event

    outcome

    the outcome for the give announcement

  24. abstract def signEnum(eventName: String, outcome: EnumAttestation): Future[EventDb]

    Signs an enumerated announcement

    Signs an enumerated announcement

    eventName

    the event name of the announcement

    outcome

    the outcome for the give announcement

  25. abstract def signMessage(message: ByteVector): SchnorrDigitalSignature

    Signs the SHA256 hash of the given bytes using the oracle's signing key

  26. abstract def stakingAddress(network: BitcoinNetwork): Bech32Address

Concrete 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. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. def signMessage(message: String): SchnorrDigitalSignature

    Signs the SHA256 hash of the given string using the oracle's signing key

  16. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  17. def toString(): String
    Definition Classes
    AnyRef → Any
  18. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  19. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  20. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped