2019-09-13 21:00:36 +00:00
|
|
|
package types
|
|
|
|
|
|
|
|
import (
|
2019-10-18 04:47:41 +00:00
|
|
|
"github.com/filecoin-project/lotus/chain/address"
|
2019-09-13 21:00:36 +00:00
|
|
|
cbor "github.com/ipfs/go-ipld-cbor"
|
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
cbor.RegisterCborType(SignedStorageAsk{})
|
|
|
|
cbor.RegisterCborType(StorageAsk{})
|
|
|
|
}
|
|
|
|
|
|
|
|
type SignedStorageAsk struct {
|
|
|
|
Ask *StorageAsk
|
|
|
|
Signature *Signature
|
|
|
|
}
|
|
|
|
|
|
|
|
type StorageAsk struct {
|
|
|
|
Price BigInt
|
|
|
|
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
|
|
|
|
}
|