16 lines
294 B
Nim
16 lines
294 B
Nim
|
import ../utils/statemachine
|
||
|
import ../market
|
||
|
import ../clock
|
||
|
|
||
|
export market
|
||
|
export clock
|
||
|
export statemachine
|
||
|
|
||
|
type
|
||
|
Purchase* = ref object of StateMachine
|
||
|
future*: Future[void]
|
||
|
market*: Market
|
||
|
clock*: Clock
|
||
|
request*: StorageRequest
|
||
|
PurchaseState* = ref object of AsyncState
|