trait DLCOracleApi extends AnyRef
- Alphabetic
- By Inheritance
- DLCOracleApi
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def createAttestation(nonce: SchnorrNonce, outcome: DLCAttestationType): Future[EventDb]
- abstract def createNewAnnouncement(eventName: String, maturationTime: Instant, descriptor: EventDescriptorTLV, signingVersion: SigningVersion = SigningVersion.latest): Future[OracleAnnouncementTLV]
- abstract def createNewDigitDecompAnnouncement(eventName: String, maturationTime: Instant, base: UInt16, isSigned: Boolean, numDigits: Int, unit: String, precision: Int32): Future[OracleAnnouncementTLV]
- abstract def createNewEnumAnnouncement(eventName: String, maturationTime: Instant, outcomes: Vector[String]): Future[OracleAnnouncementTLV]
- 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
- 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
- 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.
- 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.
- 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
- abstract def findEvent(eventName: String): Future[Option[OracleEvent]]
- abstract def findEvent(oracleEventTLV: OracleEventTLV): Future[Option[OracleEvent]]
- abstract def listCompletedEventDbs(): Future[Vector[EventDb]]
- abstract def listCompletedEvents(): Future[Vector[OracleEvent]]
- abstract def listEventDbs(): Future[Vector[EventDb]]
- abstract def listEvents(): Future[Vector[OracleEvent]]
- abstract def listPendingEventDbs(): Future[Vector[EventDb]]
- abstract def listPendingEvents(): Future[Vector[OracleEvent]]
- abstract def oracleName(): Future[Option[String]]
- abstract def publicKey(): SchnorrPublicKey
- abstract def setOracleName(name: String): Future[Unit]
- abstract def signDigits(oracleEventTLV: OracleEventTLV, num: Long): Future[OracleEvent]
- abstract def signDigits(eventName: String, num: Long): Future[OracleEvent]
- 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
- 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
- abstract def signMessage(message: ByteVector): SchnorrDigitalSignature
Signs the SHA256 hash of the given bytes using the oracle's signing key
- abstract def stakingAddress(network: BitcoinNetwork): Bech32Address
Concrete 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
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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 hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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()
- def signMessage(message: String): SchnorrDigitalSignature
Signs the SHA256 hash of the given string using the oracle's signing key
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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()