Merge pull request #1452 from jsign/jsign/testnet3/includedealid

Include DealID in DealInfo
This commit is contained in:
Whyrusleeping 2020-03-25 12:50:24 -07:00 committed by GitHub
commit 6851b8d7bf
2 changed files with 4 additions and 0 deletions

View File

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

View File

@ -131,6 +131,7 @@ func (a *API) ClientListDeals(ctx context.Context) ([]api.DealInfo, error) {
PricePerEpoch: v.Proposal.StoragePricePerEpoch, PricePerEpoch: v.Proposal.StoragePricePerEpoch,
Duration: uint64(v.Proposal.Duration()), 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()), Size: uint64(v.Proposal.PieceSize.Unpadded()),
PricePerEpoch: v.Proposal.StoragePricePerEpoch, PricePerEpoch: v.Proposal.StoragePricePerEpoch,
Duration: uint64(v.Proposal.Duration()), Duration: uint64(v.Proposal.Duration()),
DealID: v.DealID,
}, nil }, nil
} }