# Functions
No description provided by the author
No description provided by the author
DecodeAssetBalance deserializes a AssetBalance from the given blob.
DecodeHtlc deserializes a Htlc from the given blob.
HtlcFromCustomRecords creates a new Htlc record from the given custom records.
No description provided by the author
No description provided by the author
NewAssetBalance creates a new AssetBalance record with the given asset ID and amount.
NewBuyAcceptFromRequest creates a new instance of a quote accept message given a quote request message.
NewBuyRequest creates a new asset buy quote request.
NewBuyRequestMsgFromWire instantiates a new instance from a wire message.
NewHtlc creates a new Htlc record with the given funded assets.
NewIncomingAcceptFromWire creates a new quote accept message from an incoming wire message.
NewIncomingMsgFromWire creates a new RFQ message from a wire message.
NewIncomingRequestFromWire creates a new request message from an incoming wire message.
NewQuoteRejectFromWireMsg instantiates a new instance from a wire message.
NewReject creates a new instance of a quote reject message.
NewSellAcceptFromRequest creates a new instance of an asset sell quote accept message given an asset sell quote request message.
NewSellRequest creates a new asset sell quote request.
NewSellRequestMsgFromWire instantiates a new instance from a wire message.
SomeRfqIDRecord creates an optional record that represents an RFQ ID.
Sum returns the sum of the amounts of all the asset Balances in the list.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
WireMsgDataVersionDecoder is a function that can be used to decode a WireMsgDataVersion from a reader.
WireMsgDataVersionEncoder is a function that can be used to encode a WireMsgDataVersion to a writer.
# Constants
MaxMessageType is the maximum supported message type value.
MaxNumOutputs is the maximum number of asset outputs that are allowed in a single record.
MsgTypeAccept is the message type identifier for a quote accept message.
MsgTypeReject is the message type identifier for a quote reject message.
MsgTypeRequest is the message type identifier for a quote request message.
TapMessageTypeBaseOffset is the taproot-assets specific message type identifier base offset.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
V0 represents version 0 of the contents in a wire message data field.
# Variables
ErrListInvalid is the error that's returned when a list of encoded entries is invalid.
ErrNoSuitableBuyOffer is the error code for when there is no suitable buy offer available.
ErrNoSuitableSellOffer is the error code for when there is no suitable sell offer available.
ErrPriceOracleUnavailable is the error code for when the price oracle is unavailable.
ErrUnknownMessageType is an error that is returned when an unknown message type is encountered.
ErrUnknownReject is the error code for when the quote is rejected for an unspecified reason.
# Structs
AssetBalance is a record that represents the amount of an asset that is being transferred or is available to be spent.
AssetBalanceListRecord is a record that represents a list of asset Balances.
BuyAccept is a struct that represents a buy quote request accept message.
BuyRequest is a struct that represents an asset buy quote request.
Htlc is a record that represents the capacity change related to an in-flight HTLC.
JsonAssetBalance is a struct that represents the balance of a single asset ID within a channel.
JsonAssetChanInfo is a struct that represents the channel information of a single asset within a channel.
JsonAssetChannel is a struct that represents the channel information of all assets within a channel.
JsonAssetChannelBalances is a struct that represents the balance information of all assets within open and pending channels.
JsonAssetGenesis is a struct that represents the genesis information of an asset.
JsonAssetUtxo is a struct that represents the UTXO information of an asset within a channel.
JsonCloseOutput is a struct that represents the additional co-op close output information of asset channels.
Reject is a struct that represents a quote reject message.
RejectErr is a struct that represents the error code and message of a quote reject message.
SellAccept is a struct that represents a sell quote request accept message.
SellRequest is a struct that represents a asset sell quote request.
WireMessage is a struct that represents a general wire message.
# Interfaces
IncomingMsg is an interface that represents an inbound wire message that has been received from a peer.
OutgoingMsg is an interface that represents an outbound wire message that can be sent to a peer.
QuoteResponse defines an interface for handling incoming peer messages that serve as responses to quote requests.
# Type aliases
No description provided by the author
No description provided by the author
ID is the identifier for a RFQ message.
SerialisedScid is a serialised short channel id (SCID).
WireMsgDataVersion specifies the version of the contents within a wire message data field.