Beta
Message sent by Alice to indicate that she does not wish to further propagate the exchange, and get a refund if applicable
Message sent by the PFI to terminate an exchange
Message sent by Alice to the PFI to accept a quote
Message sent by the PFI to Alice to give payin and payout instructions
Message sent by the PFI to Alice to convey the current status of the order
Message sent by the PFI in response to an RFQ
Message sent by Alice to PFI to request a quote
The exchangeId of all messages in the Exchange
The protocol version of all messages in the Exchange
Add a list of unsorted messages to an exchange.
An unsorted array of Tbdex messages in a given exchange
Add the next message in the exchange
The next allowed message in the exchange
if message's protocol version does not match protocol version of other messages in the exchange
if message is not a valid next message. See Exchange.isValidNext
if message's exchangeId does not match id of the exchange
Determines if the message kind is a valid next message in the current exchange
the kind of TBDex message
true if the next message in the exchange may have kind messageKind, false otherwise
State-machine for validating the order and metadata of Tbdex messages in an exchange.
This state-machine does not validate the Message.signature or Message.data of messages in the exchange.
Either add messages in order one at a time using Exchange.addNextMessage, or add a list of unsorted messages in an exchange using Exchange.addMessages