Skip to content

Commit

Permalink
feat: add market api GetDirectDealByAllocationID
Browse files Browse the repository at this point in the history
  • Loading branch information
simlecode committed Mar 8, 2024
1 parent a3e8325 commit c207c77
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions venus-shared/api/market/v1/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ type IMarket interface {
ReleaseDeals(ctx context.Context, miner address.Address, deals []abi.DealID) error //perm:write
GetUnPackedDeals(ctx context.Context, miner address.Address, spec *market.GetDealSpec) ([]*market.DealInfoIncludePath, error) //perm:read
UpdateStorageDealStatus(ctx context.Context, dealProposalCid cid.Cid, state storagemarket.StorageDealStatus, pieceState market.PieceStatus) error //perm:write
AssignDeals(ctx context.Context, sid abi.SectorID, ssize abi.SectorSize, spec *market.GetDealSpec) ([]*market.DealInfoV2, error) //perm:read
AssignDeals(ctx context.Context, sid abi.SectorID, ssize abi.SectorSize, spec *market.GetDealSpec) ([]*market.DealInfoV2, error) //perm:write
ReleaseDirectDeals(ctx context.Context, miner address.Address, allocationIDs []types.AllocationId) error //perm:write
// market event
ResponseMarketEvent(ctx context.Context, resp *gateway.ResponseEvent) error //perm:read
Expand Down Expand Up @@ -194,8 +194,8 @@ type IMarket interface {
// ImportDirectDeal import direct deals
ImportDirectDeal(ctx context.Context, deal *market.DirectDealParams) error //perm:write
GetDirectDeal(ctx context.Context, id uuid.UUID) (*market.DirectDeal, error) //perm:read
GetDirectDealByAllocationID(ctx context.Context, id types.AllocationId) (*market.DirectDeal, error) //perm:read
ListDirectDeals(ctx context.Context, queryParams market.DirectDealQueryParams) ([]*market.DirectDeal, error) //perm:read
GetDirectDealByAllocatinoID(ctx context.Context, id uint64) (*market.DirectDeal, error) //perm:read

api.Version
}
8 changes: 4 additions & 4 deletions venus-shared/api/market/v1/method.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ curl http://<ip>:<port>/rpc/v1 -X POST -H "Content-Type: application/json" -H "
* [DealsSetPublishMsgPeriod](#dealssetpublishmsgperiod)
* [GetDeals](#getdeals)
* [GetDirectDeal](#getdirectdeal)
* [GetDirectDealByAllocatinoID](#getdirectdealbyallocatinoid)
* [GetDirectDealByAllocationID](#getdirectdealbyallocationid)
* [GetRetrievalDealStatistic](#getretrievaldealstatistic)
* [GetStorageDealStatistic](#getstoragedealstatistic)
* [GetUnPackedDeals](#getunpackeddeals)
Expand Down Expand Up @@ -229,7 +229,7 @@ Response: `{}`
### AssignDeals


Perms: read
Perms: write

Inputs:
```json
Expand Down Expand Up @@ -1055,15 +1055,15 @@ Response:
}
```

### GetDirectDealByAllocatinoID
### GetDirectDealByAllocationID


Perms: read

Inputs:
```json
[
42
0
]
```

Expand Down
12 changes: 6 additions & 6 deletions venus-shared/api/market/v1/mock/mock_imarket.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions venus-shared/api/market/v1/proxy_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c207c77

Please sign in to comment.