mirror of
https://github.com/status-im/nim-codex.git
synced 2025-02-08 00:44:53 +00:00
e5df8c50d3
* style: nph setup * chore: formates codex/ and tests/ folder with nph 0.6.1
20 lines
379 B
Nim
20 lines
379 B
Nim
import ../utils/asyncstatemachine
|
|
import ../market
|
|
import ../clock
|
|
import ../errors
|
|
|
|
export market
|
|
export clock
|
|
export asyncstatemachine
|
|
|
|
type
|
|
Purchase* = ref object of Machine
|
|
future*: Future[void]
|
|
market*: Market
|
|
clock*: Clock
|
|
requestId*: RequestId
|
|
request*: ?StorageRequest
|
|
|
|
PurchaseState* = ref object of State
|
|
PurchaseError* = object of CodexError
|