Wire HAL drivers to state machine services #19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Connect
@lamassu/haldrivers to the XState state machine via theATMServicesinterface.Background
The state machine expects services like
dispenseCashbut currently uses mock implementations. Need to wire real HAL drivers.Tasks
Bill Validator (ID003)
billsRead→{ type: 'BILL_INSERTED', denomination }billsRejected→{ type: 'BILL_REJECTED', reason }stackerOpen→ handle error stateBill Dispenser (F56)
dispenseCashservice:waitForBillsRemovedintegrationInventory Management
getInventoryservice from dispenser stateAcceptance Criteria
References
packages/hal/src/validators/id003/- Validator driverpackages/hal/src/dispensers/f56/- Dispenser driverpackages/state-machine/src/types.ts- ATMServices interfaceapps/machine/src/stores/atm.ts- Current mock services