TBD54566975 / tbdex

56 stars 25 forks source link

Implement Protocol validation (which messages can be sent when) #131

Closed phoebe-lew closed 1 year ago

phoebe-lew commented 1 year ago
const threadValidationMap = {
  'RFQ': ['Quote', 'Close'],
  'Quote': ['Order', 'Close'],
  'Order': ['OrderStatus'],
  'Close': [],
  'OrderStatus': []
}
mistermoe commented 1 year ago

each MessageKind class has a list of valid message kinds that can come immediately after