Add verified status to api.DealInfo
This commit is contained in:
parent
4631cee564
commit
8fe8da6f4c
@ -530,6 +530,7 @@ type DealInfo struct {
|
|||||||
DealID abi.DealID
|
DealID abi.DealID
|
||||||
|
|
||||||
CreationTime time.Time
|
CreationTime time.Time
|
||||||
|
Verified bool
|
||||||
}
|
}
|
||||||
|
|
||||||
type MsgLookup struct {
|
type MsgLookup struct {
|
||||||
|
@ -200,6 +200,7 @@ func (a *API) ClientListDeals(ctx context.Context) ([]api.DealInfo, error) {
|
|||||||
Duration: uint64(v.Proposal.Duration()),
|
Duration: uint64(v.Proposal.Duration()),
|
||||||
DealID: v.DealID,
|
DealID: v.DealID,
|
||||||
CreationTime: v.CreationTime.Time(),
|
CreationTime: v.CreationTime.Time(),
|
||||||
|
Verified: v.Proposal.VerifiedDeal,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -223,6 +224,7 @@ func (a *API) ClientGetDealInfo(ctx context.Context, d cid.Cid) (*api.DealInfo,
|
|||||||
Duration: uint64(v.Proposal.Duration()),
|
Duration: uint64(v.Proposal.Duration()),
|
||||||
DealID: v.DealID,
|
DealID: v.DealID,
|
||||||
CreationTime: v.CreationTime.Time(),
|
CreationTime: v.CreationTime.Time(),
|
||||||
|
Verified: v.Proposal.VerifiedDeal,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -848,6 +850,7 @@ func newDealInfo(v storagemarket.ClientDeal) api.DealInfo {
|
|||||||
Duration: uint64(v.Proposal.Duration()),
|
Duration: uint64(v.Proposal.Duration()),
|
||||||
DealID: v.DealID,
|
DealID: v.DealID,
|
||||||
CreationTime: v.CreationTime.Time(),
|
CreationTime: v.CreationTime.Time(),
|
||||||
|
Verified: v.Proposal.VerifiedDeal,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user