[sales] Add documentation
This commit is contained in:
parent
571aa6f694
commit
97a5237d44
|
@ -7,6 +7,24 @@ import pkg/chronicles
|
||||||
import ./market
|
import ./market
|
||||||
import ./clock
|
import ./clock
|
||||||
|
|
||||||
|
## Sales holds a list of available storage that it may sell.
|
||||||
|
##
|
||||||
|
## When storage is requested on the market that matches availability, the Sales
|
||||||
|
## object will instruct the Codex node to persist the requested data. Once the
|
||||||
|
## data has been persisted, it uploads a proof of storage to the market in an
|
||||||
|
## attempt to win a storage contract.
|
||||||
|
##
|
||||||
|
## Node Sales Market
|
||||||
|
## | | |
|
||||||
|
## | -- add availability --> | |
|
||||||
|
## | | <-- storage request --- |
|
||||||
|
## | <----- store data ------ | |
|
||||||
|
## | -----------------------> | |
|
||||||
|
## | | |
|
||||||
|
## | <----- prove data ---- | |
|
||||||
|
## | -----------------------> | |
|
||||||
|
## | | ---- storage proof ---> |
|
||||||
|
|
||||||
export stint
|
export stint
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
Loading…
Reference in New Issue