2019-09-13 21:00:36 +00:00
|
|
|
package types
|
|
|
|
|
|
|
|
import (
|
2019-12-19 20:13:17 +00:00
|
|
|
"github.com/filecoin-project/go-address"
|
2020-02-13 00:15:33 +00:00
|
|
|
"github.com/filecoin-project/go-fil-markets/storagemarket"
|
2019-09-13 21:00:36 +00:00
|
|
|
cbor "github.com/ipfs/go-ipld-cbor"
|
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
cbor.RegisterCborType(SignedStorageAsk{})
|
|
|
|
cbor.RegisterCborType(StorageAsk{})
|
|
|
|
}
|
|
|
|
|
2020-02-13 00:15:33 +00:00
|
|
|
type SignedStorageAsk = storagemarket.SignedStorageAsk
|
2019-09-13 21:00:36 +00:00
|
|
|
|
|
|
|
type StorageAsk struct {
|
2019-10-29 10:19:39 +00:00
|
|
|
// Price per GiB / Epoch
|
2019-10-29 12:02:24 +00:00
|
|
|
Price BigInt
|
2019-10-29 10:19:39 +00:00
|
|
|
|
2019-09-13 21:00:36 +00:00
|
|
|
MinPieceSize uint64
|
|
|
|
Miner address.Address
|
2019-10-22 10:20:43 +00:00
|
|
|
Timestamp uint64
|
|
|
|
Expiry uint64
|
2019-09-13 21:00:36 +00:00
|
|
|
SeqNo uint64
|
|
|
|
}
|