lotus/chain/types/ask.go

26 lines
453 B
Go
Raw Normal View History

2019-09-13 21:00:36 +00:00
package types
import (
"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
}