Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: market api: update deal payload size #6379

Merged
merged 1 commit into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions venus-shared/api/market/v1/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,5 +198,7 @@ type IMarket interface {
ListDirectDeals(ctx context.Context, queryParams market.DirectDealQueryParams) ([]*market.DirectDeal, error) //perm:read
UpdateDirectDealState(ctx context.Context, id uuid.UUID, state market.DirectDealState) error //perm:write

UpdateStorageDealPayloadSize(ctx context.Context, dealProposal cid.Cid, payloadSize uint64) error //perm:write

api.Version
}
18 changes: 18 additions & 0 deletions venus-shared/api/market/v1/method.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ curl http://<ip>:<port>/rpc/v1 -X POST -H "Content-Type: application/json" -H "
* [UpdateDealOnPacking](#updatedealonpacking)
* [UpdateDealStatus](#updatedealstatus)
* [UpdateDirectDealState](#updatedirectdealstate)
* [UpdateStorageDealPayloadSize](#updatestoragedealpayloadsize)
* [UpdateStorageDealStatus](#updatestoragedealstatus)
* [Version](#version)

Expand Down Expand Up @@ -2772,6 +2773,23 @@ Inputs:

Response: `{}`

### UpdateStorageDealPayloadSize


Perms: write

Inputs:
```json
[
{
"/": "bafy2bzacea3wsdh6y3a36tb3skempjoxqpuyompjbmfeyf34fi3uy6uue42v4"
},
42
]
```

Response: `{}`

### UpdateStorageDealStatus


Expand Down
14 changes: 14 additions & 0 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.

4 changes: 4 additions & 0 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.

Loading