| Copyright | (c) 2025 Jared Tobin |
|---|---|
| License | MIT |
| Maintainer | Jared Tobin <jared@ppad.tech> |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Lightning.Protocol.BOLT7.Messages
Description
BOLT #7 gossip message type definitions.
Synopsis
- data MsgType
- msgTypeCode :: MsgType -> Word16
- data ChannelAnnouncement = ChannelAnnouncement {
- channelAnnNodeSig1 :: !Signature
- channelAnnNodeSig2 :: !Signature
- channelAnnBitcoinSig1 :: !Signature
- channelAnnBitcoinSig2 :: !Signature
- channelAnnFeatures :: !FeatureBits
- channelAnnChainHash :: !ChainHash
- channelAnnShortChanId :: !ShortChannelId
- channelAnnNodeId1 :: !NodeId
- channelAnnNodeId2 :: !NodeId
- channelAnnBitcoinKey1 :: !Point
- channelAnnBitcoinKey2 :: !Point
- data NodeAnnouncement = NodeAnnouncement {}
- data ChannelUpdate = ChannelUpdate {
- chanUpdateSignature :: !Signature
- chanUpdateChainHash :: !ChainHash
- chanUpdateShortChanId :: !ShortChannelId
- chanUpdateTimestamp :: !Timestamp
- chanUpdateMsgFlags :: !MessageFlags
- chanUpdateChanFlags :: !ChannelFlags
- chanUpdateCltvExpDelta :: !CltvExpiryDelta
- chanUpdateHtlcMinMsat :: !HtlcMinimumMsat
- chanUpdateFeeBaseMsat :: !FeeBaseMsat
- chanUpdateFeeProportional :: !FeeProportionalMillionths
- chanUpdateHtlcMaxMsat :: !(Maybe HtlcMaximumMsat)
- data AnnouncementSignatures = AnnouncementSignatures {}
- data QueryShortChannelIds = QueryShortChannelIds {}
- data ReplyShortChannelIdsEnd = ReplyShortChannelIdsEnd {}
- data QueryChannelRange = QueryChannelRange {}
- data ReplyChannelRange = ReplyChannelRange {}
- data GossipTimestampFilter = GossipTimestampFilter {}
- data Message
- = MsgChanAnn !ChannelAnnouncement
- | MsgNodeAnn !NodeAnnouncement
- | MsgChanUpd !ChannelUpdate
- | MsgAnnSig !AnnouncementSignatures
- | MsgQueryScids !QueryShortChannelIds
- | MsgReplyScids !ReplyShortChannelIdsEnd
- | MsgQueryRange !QueryChannelRange
- | MsgReplyRange !ReplyChannelRange
- | MsgGossipFilter !GossipTimestampFilter
Message types
BOLT #7 message type codes.
Constructors
Instances
| NFData MsgType Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages | |||||
| Generic MsgType Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages Associated Types
| |||||
| Show MsgType Source # | |||||
| Eq MsgType Source # | |||||
| type Rep MsgType Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages type Rep MsgType = D1 ('MetaData "MsgType" "Lightning.Protocol.BOLT7.Messages" "ppad-bolt7-0.0.1-9AmpjHUse7iEtxOkiaMheY" 'False) (((C1 ('MetaCons "MsgChannelAnnouncement" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MsgNodeAnnouncement" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "MsgChannelUpdate" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MsgAnnouncementSignatures" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "MsgQueryShortChannelIds" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MsgReplyShortChannelIdsEnd" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "MsgQueryChannelRange" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "MsgReplyChannelRange" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MsgGossipTimestampFilter" 'PrefixI 'False) (U1 :: Type -> Type))))) | |||||
msgTypeCode :: MsgType -> Word16 Source #
Get numeric code for message type.
Channel announcement
data ChannelAnnouncement Source #
channel_announcement message (type 256).
Announces a public channel to the network.
Constructors
| ChannelAnnouncement | |
Fields
| |
Instances
Node announcement
data NodeAnnouncement Source #
node_announcement message (type 257).
Advertises node metadata to the network.
Constructors
| NodeAnnouncement | |
Fields
| |
Instances
| NFData NodeAnnouncement Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages Methods rnf :: NodeAnnouncement -> () # | |||||
| Generic NodeAnnouncement Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages Associated Types
Methods from :: NodeAnnouncement -> Rep NodeAnnouncement x # to :: Rep NodeAnnouncement x -> NodeAnnouncement # | |||||
| Show NodeAnnouncement Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages Methods showsPrec :: Int -> NodeAnnouncement -> ShowS # show :: NodeAnnouncement -> String # showList :: [NodeAnnouncement] -> ShowS # | |||||
| Eq NodeAnnouncement Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages Methods (==) :: NodeAnnouncement -> NodeAnnouncement -> Bool # (/=) :: NodeAnnouncement -> NodeAnnouncement -> Bool # | |||||
| type Rep NodeAnnouncement Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages type Rep NodeAnnouncement = D1 ('MetaData "NodeAnnouncement" "Lightning.Protocol.BOLT7.Messages" "ppad-bolt7-0.0.1-9AmpjHUse7iEtxOkiaMheY" 'False) (C1 ('MetaCons "NodeAnnouncement" 'PrefixI 'True) ((S1 ('MetaSel ('Just "nodeAnnSignature") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Signature) :*: (S1 ('MetaSel ('Just "nodeAnnFeatures") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 FeatureBits) :*: S1 ('MetaSel ('Just "nodeAnnTimestamp") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Timestamp))) :*: ((S1 ('MetaSel ('Just "nodeAnnNodeId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 NodeId) :*: S1 ('MetaSel ('Just "nodeAnnRgbColor") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 RgbColor)) :*: (S1 ('MetaSel ('Just "nodeAnnAlias") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Alias) :*: S1 ('MetaSel ('Just "nodeAnnAddresses") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [Address]))))) | |||||
Channel update
data ChannelUpdate Source #
channel_update message (type 258).
Communicates per-direction routing parameters.
Constructors
| ChannelUpdate | |
Fields
| |
Instances
| NFData ChannelUpdate Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages Methods rnf :: ChannelUpdate -> () # | |||||
| Generic ChannelUpdate Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages Associated Types
| |||||
| Show ChannelUpdate Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages Methods showsPrec :: Int -> ChannelUpdate -> ShowS # show :: ChannelUpdate -> String # showList :: [ChannelUpdate] -> ShowS # | |||||
| Eq ChannelUpdate Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages Methods (==) :: ChannelUpdate -> ChannelUpdate -> Bool # (/=) :: ChannelUpdate -> ChannelUpdate -> Bool # | |||||
| type Rep ChannelUpdate Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages type Rep ChannelUpdate = D1 ('MetaData "ChannelUpdate" "Lightning.Protocol.BOLT7.Messages" "ppad-bolt7-0.0.1-9AmpjHUse7iEtxOkiaMheY" 'False) (C1 ('MetaCons "ChannelUpdate" 'PrefixI 'True) (((S1 ('MetaSel ('Just "chanUpdateSignature") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Signature) :*: S1 ('MetaSel ('Just "chanUpdateChainHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChainHash)) :*: (S1 ('MetaSel ('Just "chanUpdateShortChanId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ShortChannelId) :*: (S1 ('MetaSel ('Just "chanUpdateTimestamp") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Timestamp) :*: S1 ('MetaSel ('Just "chanUpdateMsgFlags") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 MessageFlags)))) :*: ((S1 ('MetaSel ('Just "chanUpdateChanFlags") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelFlags) :*: (S1 ('MetaSel ('Just "chanUpdateCltvExpDelta") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 CltvExpiryDelta) :*: S1 ('MetaSel ('Just "chanUpdateHtlcMinMsat") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 HtlcMinimumMsat))) :*: (S1 ('MetaSel ('Just "chanUpdateFeeBaseMsat") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 FeeBaseMsat) :*: (S1 ('MetaSel ('Just "chanUpdateFeeProportional") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 FeeProportionalMillionths) :*: S1 ('MetaSel ('Just "chanUpdateHtlcMaxMsat") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe HtlcMaximumMsat))))))) | |||||
Announcement signatures
data AnnouncementSignatures Source #
announcement_signatures message (type 259).
Sent between channel peers to enable channel announcement.
Constructors
| AnnouncementSignatures | |
Fields
| |
Instances
| NFData AnnouncementSignatures Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages Methods rnf :: AnnouncementSignatures -> () # | |||||
| Generic AnnouncementSignatures Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages Associated Types
Methods from :: AnnouncementSignatures -> Rep AnnouncementSignatures x # to :: Rep AnnouncementSignatures x -> AnnouncementSignatures # | |||||
| Show AnnouncementSignatures Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages Methods showsPrec :: Int -> AnnouncementSignatures -> ShowS # show :: AnnouncementSignatures -> String # showList :: [AnnouncementSignatures] -> ShowS # | |||||
| Eq AnnouncementSignatures Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages Methods (==) :: AnnouncementSignatures -> AnnouncementSignatures -> Bool # (/=) :: AnnouncementSignatures -> AnnouncementSignatures -> Bool # | |||||
| type Rep AnnouncementSignatures Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages type Rep AnnouncementSignatures = D1 ('MetaData "AnnouncementSignatures" "Lightning.Protocol.BOLT7.Messages" "ppad-bolt7-0.0.1-9AmpjHUse7iEtxOkiaMheY" 'False) (C1 ('MetaCons "AnnouncementSignatures" 'PrefixI 'True) ((S1 ('MetaSel ('Just "annSigChannelId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelId) :*: S1 ('MetaSel ('Just "annSigShortChanId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ShortChannelId)) :*: (S1 ('MetaSel ('Just "annSigNodeSig") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Signature) :*: S1 ('MetaSel ('Just "annSigBitcoinSig") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Signature)))) | |||||
Query messages
data QueryShortChannelIds Source #
query_short_channel_ids message (type 261).
Requests information about specific channels.
Constructors
| QueryShortChannelIds | |
Fields
| |
Instances
| NFData QueryShortChannelIds Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages Methods rnf :: QueryShortChannelIds -> () # | |||||
| Generic QueryShortChannelIds Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages Associated Types
Methods from :: QueryShortChannelIds -> Rep QueryShortChannelIds x # to :: Rep QueryShortChannelIds x -> QueryShortChannelIds # | |||||
| Show QueryShortChannelIds Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages Methods showsPrec :: Int -> QueryShortChannelIds -> ShowS # show :: QueryShortChannelIds -> String # showList :: [QueryShortChannelIds] -> ShowS # | |||||
| Eq QueryShortChannelIds Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages Methods (==) :: QueryShortChannelIds -> QueryShortChannelIds -> Bool # (/=) :: QueryShortChannelIds -> QueryShortChannelIds -> Bool # | |||||
| type Rep QueryShortChannelIds Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages type Rep QueryShortChannelIds = D1 ('MetaData "QueryShortChannelIds" "Lightning.Protocol.BOLT7.Messages" "ppad-bolt7-0.0.1-9AmpjHUse7iEtxOkiaMheY" 'False) (C1 ('MetaCons "QueryShortChannelIds" 'PrefixI 'True) (S1 ('MetaSel ('Just "queryScidsChainHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChainHash) :*: (S1 ('MetaSel ('Just "queryScidsData") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ByteString) :*: S1 ('MetaSel ('Just "queryScidsTlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream)))) | |||||
data ReplyShortChannelIdsEnd Source #
reply_short_channel_ids_end message (type 262).
Concludes response to query_short_channel_ids.
Constructors
| ReplyShortChannelIdsEnd | |
Fields
| |
Instances
| NFData ReplyShortChannelIdsEnd Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages Methods rnf :: ReplyShortChannelIdsEnd -> () # | |||||
| Generic ReplyShortChannelIdsEnd Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages Associated Types
Methods from :: ReplyShortChannelIdsEnd -> Rep ReplyShortChannelIdsEnd x # to :: Rep ReplyShortChannelIdsEnd x -> ReplyShortChannelIdsEnd # | |||||
| Show ReplyShortChannelIdsEnd Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages Methods showsPrec :: Int -> ReplyShortChannelIdsEnd -> ShowS # show :: ReplyShortChannelIdsEnd -> String # showList :: [ReplyShortChannelIdsEnd] -> ShowS # | |||||
| Eq ReplyShortChannelIdsEnd Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages Methods (==) :: ReplyShortChannelIdsEnd -> ReplyShortChannelIdsEnd -> Bool # (/=) :: ReplyShortChannelIdsEnd -> ReplyShortChannelIdsEnd -> Bool # | |||||
| type Rep ReplyShortChannelIdsEnd Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages type Rep ReplyShortChannelIdsEnd = D1 ('MetaData "ReplyShortChannelIdsEnd" "Lightning.Protocol.BOLT7.Messages" "ppad-bolt7-0.0.1-9AmpjHUse7iEtxOkiaMheY" 'False) (C1 ('MetaCons "ReplyShortChannelIdsEnd" 'PrefixI 'True) (S1 ('MetaSel ('Just "replyScidsChainHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChainHash) :*: S1 ('MetaSel ('Just "replyScidsFullInfo") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word8))) | |||||
data QueryChannelRange Source #
query_channel_range message (type 263).
Queries channels within a block range.
Constructors
| QueryChannelRange | |
Fields
| |
Instances
| NFData QueryChannelRange Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages Methods rnf :: QueryChannelRange -> () # | |||||
| Generic QueryChannelRange Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages Associated Types
Methods from :: QueryChannelRange -> Rep QueryChannelRange x # to :: Rep QueryChannelRange x -> QueryChannelRange # | |||||
| Show QueryChannelRange Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages Methods showsPrec :: Int -> QueryChannelRange -> ShowS # show :: QueryChannelRange -> String # showList :: [QueryChannelRange] -> ShowS # | |||||
| Eq QueryChannelRange Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages Methods (==) :: QueryChannelRange -> QueryChannelRange -> Bool # (/=) :: QueryChannelRange -> QueryChannelRange -> Bool # | |||||
| type Rep QueryChannelRange Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages type Rep QueryChannelRange = D1 ('MetaData "QueryChannelRange" "Lightning.Protocol.BOLT7.Messages" "ppad-bolt7-0.0.1-9AmpjHUse7iEtxOkiaMheY" 'False) (C1 ('MetaCons "QueryChannelRange" 'PrefixI 'True) ((S1 ('MetaSel ('Just "queryRangeChainHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChainHash) :*: S1 ('MetaSel ('Just "queryRangeFirstBlock") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32)) :*: (S1 ('MetaSel ('Just "queryRangeNumBlocks") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "queryRangeTlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream)))) | |||||
data ReplyChannelRange Source #
reply_channel_range message (type 264).
Responds to query_channel_range with channel IDs.
Constructors
| ReplyChannelRange | |
Fields
| |
Instances
| NFData ReplyChannelRange Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages Methods rnf :: ReplyChannelRange -> () # | |||||
| Generic ReplyChannelRange Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages Associated Types
Methods from :: ReplyChannelRange -> Rep ReplyChannelRange x # to :: Rep ReplyChannelRange x -> ReplyChannelRange # | |||||
| Show ReplyChannelRange Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages Methods showsPrec :: Int -> ReplyChannelRange -> ShowS # show :: ReplyChannelRange -> String # showList :: [ReplyChannelRange] -> ShowS # | |||||
| Eq ReplyChannelRange Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages Methods (==) :: ReplyChannelRange -> ReplyChannelRange -> Bool # (/=) :: ReplyChannelRange -> ReplyChannelRange -> Bool # | |||||
| type Rep ReplyChannelRange Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages type Rep ReplyChannelRange = D1 ('MetaData "ReplyChannelRange" "Lightning.Protocol.BOLT7.Messages" "ppad-bolt7-0.0.1-9AmpjHUse7iEtxOkiaMheY" 'False) (C1 ('MetaCons "ReplyChannelRange" 'PrefixI 'True) ((S1 ('MetaSel ('Just "replyRangeChainHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChainHash) :*: (S1 ('MetaSel ('Just "replyRangeFirstBlock") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "replyRangeNumBlocks") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32))) :*: (S1 ('MetaSel ('Just "replyRangeSyncComplete") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word8) :*: (S1 ('MetaSel ('Just "replyRangeData") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ByteString) :*: S1 ('MetaSel ('Just "replyRangeTlvs") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TlvStream))))) | |||||
data GossipTimestampFilter Source #
gossip_timestamp_filter message (type 265).
Constrains which gossip messages are relayed.
Constructors
| GossipTimestampFilter | |
Fields
| |
Instances
| NFData GossipTimestampFilter Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages Methods rnf :: GossipTimestampFilter -> () # | |||||
| Generic GossipTimestampFilter Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages Associated Types
Methods from :: GossipTimestampFilter -> Rep GossipTimestampFilter x # to :: Rep GossipTimestampFilter x -> GossipTimestampFilter # | |||||
| Show GossipTimestampFilter Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages Methods showsPrec :: Int -> GossipTimestampFilter -> ShowS # show :: GossipTimestampFilter -> String # showList :: [GossipTimestampFilter] -> ShowS # | |||||
| Eq GossipTimestampFilter Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages Methods (==) :: GossipTimestampFilter -> GossipTimestampFilter -> Bool # (/=) :: GossipTimestampFilter -> GossipTimestampFilter -> Bool # | |||||
| type Rep GossipTimestampFilter Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages type Rep GossipTimestampFilter = D1 ('MetaData "GossipTimestampFilter" "Lightning.Protocol.BOLT7.Messages" "ppad-bolt7-0.0.1-9AmpjHUse7iEtxOkiaMheY" 'False) (C1 ('MetaCons "GossipTimestampFilter" 'PrefixI 'True) (S1 ('MetaSel ('Just "gossipFilterChainHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChainHash) :*: (S1 ('MetaSel ('Just "gossipFilterFirstTimestamp") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32) :*: S1 ('MetaSel ('Just "gossipFilterTimestampRange") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word32)))) | |||||
Union type
Union of all BOLT #7 message types.
Constructors
| MsgChanAnn !ChannelAnnouncement | |
| MsgNodeAnn !NodeAnnouncement | |
| MsgChanUpd !ChannelUpdate | |
| MsgAnnSig !AnnouncementSignatures | |
| MsgQueryScids !QueryShortChannelIds | |
| MsgReplyScids !ReplyShortChannelIdsEnd | |
| MsgQueryRange !QueryChannelRange | |
| MsgReplyRange !ReplyChannelRange | |
| MsgGossipFilter !GossipTimestampFilter |
Instances
| NFData Message Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages | |||||
| Generic Message Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages Associated Types
| |||||
| Show Message Source # | |||||
| Eq Message Source # | |||||
| type Rep Message Source # | |||||
Defined in Lightning.Protocol.BOLT7.Messages type Rep Message = D1 ('MetaData "Message" "Lightning.Protocol.BOLT7.Messages" "ppad-bolt7-0.0.1-9AmpjHUse7iEtxOkiaMheY" 'False) (((C1 ('MetaCons "MsgChanAnn" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelAnnouncement)) :+: C1 ('MetaCons "MsgNodeAnn" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 NodeAnnouncement))) :+: (C1 ('MetaCons "MsgChanUpd" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ChannelUpdate)) :+: C1 ('MetaCons "MsgAnnSig" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 AnnouncementSignatures)))) :+: ((C1 ('MetaCons "MsgQueryScids" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 QueryShortChannelIds)) :+: C1 ('MetaCons "MsgReplyScids" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ReplyShortChannelIdsEnd))) :+: (C1 ('MetaCons "MsgQueryRange" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 QueryChannelRange)) :+: (C1 ('MetaCons "MsgReplyRange" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ReplyChannelRange)) :+: C1 ('MetaCons "MsgGossipFilter" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 GossipTimestampFilter)))))) | |||||