2019-08-26 08:02:26 +00:00
|
|
|
package retrieval
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/ipfs/go-cid"
|
|
|
|
|
|
|
|
"github.com/filecoin-project/go-lotus/chain/types"
|
|
|
|
)
|
|
|
|
|
|
|
|
type QueryResponse int
|
2019-08-26 09:08:39 +00:00
|
|
|
|
2019-08-26 08:02:26 +00:00
|
|
|
const (
|
|
|
|
Available QueryResponse = iota
|
|
|
|
Unavailable
|
|
|
|
)
|
|
|
|
|
|
|
|
type RetDealProposal struct {
|
2019-08-26 09:08:39 +00:00
|
|
|
Piece cid.Cid
|
|
|
|
Price types.BigInt
|
2019-08-26 08:02:26 +00:00
|
|
|
Payment types.SignedVoucher
|
|
|
|
}
|
|
|
|
|
|
|
|
type RetQuery struct {
|
|
|
|
Piece cid.Cid
|
|
|
|
}
|
|
|
|
|
|
|
|
type RetQueryResponse struct {
|
|
|
|
Status QueryResponse
|
|
|
|
|
|
|
|
MinPricePerMiB types.BigInt // TODO: check units used for sector size
|
|
|
|
}
|