Merge pull request #1452 from jsign/jsign/testnet3/includedealid
Include DealID in DealInfo
This commit is contained in:
commit
6851b8d7bf
@ -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 {
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user