include DealID in DealInfo

Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
This commit is contained in:
Ignacio Hagopian 2020-03-25 16:30:59 -03:00
parent 08ca60cfa8
commit 3896902d49
2 changed files with 4 additions and 0 deletions

View File

@ -187,6 +187,8 @@ type DealInfo struct {
PricePerEpoch types.BigInt
Duration uint64
DealID abi.DealID
}
type MsgLookup struct {

View File

@ -131,6 +131,7 @@ func (a *API) ClientListDeals(ctx context.Context) ([]api.DealInfo, error) {
PricePerEpoch: v.Proposal.StoragePricePerEpoch,
Duration: uint64(v.Proposal.Duration()),
DealID: v.DealID,
}
}
@ -151,6 +152,7 @@ func (a *API) ClientGetDealInfo(ctx context.Context, d cid.Cid) (*api.DealInfo,
Size: uint64(v.Proposal.PieceSize.Unpadded()),
PricePerEpoch: v.Proposal.StoragePricePerEpoch,
Duration: uint64(v.Proposal.Duration()),
DealID: v.DealID,
}, nil
}