Merge pull request #3122 from filecoin-project/feat/cmd-improvements

sorted deal listings
This commit is contained in:
Whyrusleeping
2020-08-20 13:29:01 -07:00
committed by GitHub
6 changed files with 26 additions and 7 deletions
+2
View File
@@ -196,6 +196,7 @@ func (a *API) ClientListDeals(ctx context.Context) ([]api.DealInfo, error) {
PricePerEpoch: v.Proposal.StoragePricePerEpoch,
Duration: uint64(v.Proposal.Duration()),
DealID: v.DealID,
CreationTime: v.CreationTime.Time(),
}
}
@@ -218,6 +219,7 @@ func (a *API) ClientGetDealInfo(ctx context.Context, d cid.Cid) (*api.DealInfo,
PricePerEpoch: v.Proposal.StoragePricePerEpoch,
Duration: uint64(v.Proposal.Duration()),
DealID: v.DealID,
CreationTime: v.CreationTime.Time(),
}, nil
}