transmute-industries / transmute-framework

TypeScript dApp Framework
https://framework.transmute.industries/
42 stars 8 forks source link

Redux Sagas for Event Stream #77

Open OR13 opened 7 years ago

OR13 commented 7 years ago

We want to show how the event stream can be used to build state machines... we want to expose simple state machine api as a wrapper around the event stream.... Inspiration:

https://github.com/jakesgordon/javascript-state-machine

https://github.com/ifandelse/machina.js

https://lostechies.com/chrispatterson/2015/09/11/sagas-state-machines-and-abandoned-carts/

OR13 commented 7 years ago

Another reason we may want to do this is to provide an alternative to oraclize, which I find very difficult to understand.

You can think of a network request as a state machine, where you have a request and a response event, which together can be viewed as a successful transaction....