@node-dlc/messaging
Version:
DLC Messaging Protocol
102 lines (101 loc) • 2.69 kB
TypeScript
/**
* Defined in DLC Messaging Spec
* https://github.com/discreetlogcontracts/dlcspecs/blob/master/Messaging.md
*/
export declare const PROTOCOL_VERSION = 1;
export declare enum MessageType {
DlcOffer = 42778,
DlcAccept = 42780,
DlcSign = 42782,
ContractInfoV0 = 55342,
SingleContractInfo = 55342,
ContractInfoV1 = 55344,
DisjointContractInfo = 55344,
ContractDescriptorV0 = 42768,
ContractDescriptorV1 = 42784,
OracleInfoV0 = 42770,
SingleOracleInfo = 42770,
OracleInfoV1 = 42786,
MultiOracleInfo = 42786,
OracleInfoV2 = 55340,
OracleParamsV0 = 55338,
OracleAnnouncement = 55332,
OracleAnnouncementV0 = 55332,
OracleAttestation = 55400,
OracleAttestationV0 = 55400,
OracleEvent = 55330,
OracleEventV0 = 55330,
OracleEventContainer = 61632,
EnumEventDescriptor = 55302,
EnumEventDescriptorV0 = 55302,
DigitDecompositionEventDescriptor = 55306,
DigitDecompositionEventDescriptorV0 = 55306,
NegotiationFieldsV0 = 55334,
NegotiationFieldsV1 = 55336,
NegotiationFieldsV2 = 55346,
FundingInput = 42772,
FundingInputV0 = 42772,
DlcInput = 42773,
CetAdaptorSignatures = 42774,
CetAdaptorSignaturesV0 = 42774,
FundingSignatures = 42776,
FundingSignaturesV0 = 42776,
PayoutFunction = 42790,
PayoutFunctionV0 = 42790,
PolynomialPayoutCurvePiece = 42792,
HyperbolaPayoutCurvePiece = 42794,
OldHyperbolaPayoutCurvePiece = 42796,
RoundingIntervals = 42788,
RoundingIntervalsV0 = 42788,
DlcClose = 52170,
DlcCancel = 52172,
/**
* Dlc Storage Types
*/
DlcTransactions = 61230,
DlcTransactionsV0 = 61230,
DlcIds = 61232,
DlcIdsV0 = 61232,
DlcInfo = 61234,
DlcInfoV0 = 61234,
/**
* Oracle Identifier
*/
OracleIdentifier = 61472,
OracleIdentifierV0 = 61472,
/**
* Order Message Types
*/
OrderOffer = 62770,
OrderAccept = 62772,
OrderMetadataV0 = 62774,
OrderIrcInfoV0 = 62776,
OrderPositionInfo = 62778,
OrderNegotiationFieldsV0 = 65334,
OrderNegotiationFieldsV1 = 65336,
AddressCache = 65132,
BatchFundingGroup = 65430,
IrcMessageV0 = 59314,
NodeAnnouncement = 51394,
NodeAnnouncementAddress = 51396
}
export declare enum ContractInfoType {
Single = 0,
Disjoint = 1
}
export declare enum ContractDescriptorType {
Enumerated = 0,
NumericOutcome = 1
}
export declare enum OracleInfoType {
Single = 0,
Multi = 1
}
export declare enum NegotiationFieldsType {
Single = 0,
Disjoint = 1
}
export declare enum PayoutCurvePieceType {
Polynomial = 0,
Hyperbola = 1
}