feat(markets): update to markets 0.5.1

update to markets 0.5.1, pass on params v1 correctly for retrieval
This commit is contained in:
hannahhoward
2020-07-23 14:01:34 -07:00
parent 7e760f956a
commit 5b8d3068f7
4 changed files with 26 additions and 16 deletions
+3
View File
@@ -507,6 +507,7 @@ type QueryOffer struct {
Size uint64
MinPrice types.BigInt
UnsealPrice types.BigInt
PaymentInterval uint64
PaymentIntervalIncrease uint64
Miner address.Address
@@ -519,6 +520,7 @@ func (o *QueryOffer) Order(client address.Address) RetrievalOrder {
Piece: o.Piece,
Size: o.Size,
Total: o.MinPrice,
UnsealPrice: o.UnsealPrice,
PaymentInterval: o.PaymentInterval,
PaymentIntervalIncrease: o.PaymentIntervalIncrease,
Client: client,
@@ -545,6 +547,7 @@ type RetrievalOrder struct {
Size uint64
// TODO: support offset
Total types.BigInt
UnsealPrice types.BigInt
PaymentInterval uint64
PaymentIntervalIncrease uint64
Client address.Address