Module oracle_msgs

Module oracle_msgs 

Source
Expand description

Structs containing oracle information.

Structs§

DigitDecompositionEventDescriptor
Describes the outcomes of a numerical outcome event.
EnumEventDescriptor
Describes the outcomes of an event as an enumeration.
MultiOracleInfo
Information about oracles used in multi oracle based contracts.
OracleAnnouncement
An oracle announcement that describe an event and the way that an oracle will attest to it.
OracleAttestation
An attestation from an oracle providing signatures over an outcome value.
OracleEvent
Information about an event and the way that the oracle will attest to it.
OracleParams
Parameter describing allowed differences between oracles in numerical outcome contracts.
SingleOracleInfo
Structure containing information about an oracle to be used as external data source for a DLC contract.

Enums§

EventDescriptor
Description of an event.
OracleInfo
Information about an oracle used in a contract.

Constants§

ANNOUNCEMENT_TYPE
The type of the announcement struct.
ATTESTATION_TYPE
The type of the attestation struct.
ORACLE_ANNOUNCEMENT_TAG
The tag of the oracle announcement struct.
ORACLE_ATTESTATION_TAG
The tag of the oracle attestation struct.

Functions§

tagged_announcement_msg
Returns the message to be signed for an oracle announcement.
tagged_attestation_msg
Returns the message to be signed for an oracle attestation.