lotus/chain/types/ask.go

28 lines
464 B
Go
Raw Normal View History

2019-09-13 21:00:36 +00:00
package types
import (
"github.com/filecoin-project/go-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 {
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
}