All files / lib MessageType.ts

100% Statements 47/47
100% Branches 2/2
100% Functions 1/1
100% Lines 47/47

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85        1x 1x 1x   1x 1x   1x 1x 1x   1x   1x 1x 1x   1x   1x 1x   1x 1x 1x   1x   1x   1x   1x   1x 1x 1x   1x   1x 1x 1x   1x 1x         1x 1x 1x         1x         1x 1x 1x 1x 1x   1x 1x   1x   1x   1x   1x 1x    
/**
 * Defined in DLC Messaging Spec
 * https://github.com/discreetlogcontracts/dlcspecs/blob/master/Messaging.md
 */
export enum MessageType {
  ContractInfoV0 = 55342,
  ContractInfoV1 = 55344,
 
  ContractDescriptorV0 = 42768,
  ContractDescriptorV1 = 42784,
 
  OracleInfoV0 = 42770,
  OracleInfoV1 = 42786,
  OracleInfoV2 = 55340,
 
  OracleParamsV0 = 55338,
 
  OracleAnnouncementV0 = 55332,
  OracleAttestationV0 = 55400,
  OracleEventV0 = 55330,
 
  OracleEventContainerV0 = 61632,
 
  EnumEventDescriptorV0 = 55302,
  DigitDecompositionEventDescriptorV0 = 55306,
 
  NegotiationFieldsV0 = 55334,
  NegotiationFieldsV1 = 55336,
  NegotiationFieldsV2 = 55346,
 
  FundingInputV0 = 42772,
 
  CetAdaptorSignaturesV0 = 42774,
 
  FundingSignaturesV0 = 42776,
 
  PayoutFunctionV0 = 42790,
 
  PolynomialPayoutCurvePiece = 42792, // TODO: Temporary type
  HyperbolaPayoutCurvePiece = 42794, // TODO: Temporary type
  OldHyperbolaPayoutCurvePiece = 42796, // TODO: Remove once all existing contracts have passed
 
  RoundingIntervalsV0 = 42788,
 
  DlcOfferV0 = 42778,
  DlcAcceptV0 = 42780,
  DlcSignV0 = 42782,
 
  DlcCloseV0 = 52170, // TODO: Temporary type
  DlcCancelV0 = 52172,
 
  /**
   * Dlc Storage Types
   */
  DlcTransactionsV0 = 61230,
  DlcIdsV0 = 61232,
  DlcInfoV0 = 61234,
 
  /**
   * Oracle Identifier
   */
  OracleIdentifierV0 = 61472,
 
  /**
   * Order Message Types
   */
  OrderOfferV0 = 62770,
  OrderAcceptV0 = 62772,
  OrderMetadataV0 = 62774,
  OrderIrcInfoV0 = 62776,
  OrderPositionInfoV0 = 62778,
 
  OrderNegotiationFieldsV0 = 65334,
  OrderNegotiationFieldsV1 = 65336,
 
  AddressCache = 65132,
 
  BatchFundingGroup = 65430,
 
  IrcMessageV0 = 59314,
 
  NodeAnnouncement = 51394,
  NodeAnnouncementAddress = 51396,
}