Skip to content

Commit

Permalink
Merge pull request #6158 from filecoin-project/feat/market/add-id
Browse files Browse the repository at this point in the history
feat: add id to MinerDeal
  • Loading branch information
simlecode authored Sep 20, 2023
2 parents b78d8c6 + dd01c67 commit 3ff535a
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 2 deletions.
5 changes: 5 additions & 0 deletions venus-shared/api/market/v0/method.md
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,7 @@ Inputs:
[
[
{
"ID": "07070707-0707-0707-0707-070707070707",
"Proposal": {
"PieceCID": {
"/": "bafy2bzacea3wsdh6y3a36tb3skempjoxqpuyompjbmfeyf34fi3uy6uue42v4"
Expand Down Expand Up @@ -1287,6 +1288,7 @@ Inputs:
Response:
```json
{
"ID": "07070707-0707-0707-0707-070707070707",
"Proposal": {
"PieceCID": {
"/": "bafy2bzacea3wsdh6y3a36tb3skempjoxqpuyompjbmfeyf34fi3uy6uue42v4"
Expand Down Expand Up @@ -1363,6 +1365,7 @@ Inputs: `[]`
Response:
```json
{
"ID": "07070707-0707-0707-0707-070707070707",
"Proposal": {
"PieceCID": {
"/": "bafy2bzacea3wsdh6y3a36tb3skempjoxqpuyompjbmfeyf34fi3uy6uue42v4"
Expand Down Expand Up @@ -1542,6 +1545,7 @@ Inputs:
```json
[
{
"ID": "07070707-0707-0707-0707-070707070707",
"Proposal": {
"PieceCID": {
"/": "bafy2bzacea3wsdh6y3a36tb3skempjoxqpuyompjbmfeyf34fi3uy6uue42v4"
Expand Down Expand Up @@ -1721,6 +1725,7 @@ Response:
```json
[
{
"ID": "07070707-0707-0707-0707-070707070707",
"Proposal": {
"PieceCID": {
"/": "bafy2bzacea3wsdh6y3a36tb3skempjoxqpuyompjbmfeyf34fi3uy6uue42v4"
Expand Down
5 changes: 5 additions & 0 deletions venus-shared/api/market/v1/method.md
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,7 @@ Inputs:
[
[
{
"ID": "07070707-0707-0707-0707-070707070707",
"Proposal": {
"PieceCID": {
"/": "bafy2bzacea3wsdh6y3a36tb3skempjoxqpuyompjbmfeyf34fi3uy6uue42v4"
Expand Down Expand Up @@ -1288,6 +1289,7 @@ Inputs:
Response:
```json
{
"ID": "07070707-0707-0707-0707-070707070707",
"Proposal": {
"PieceCID": {
"/": "bafy2bzacea3wsdh6y3a36tb3skempjoxqpuyompjbmfeyf34fi3uy6uue42v4"
Expand Down Expand Up @@ -1364,6 +1366,7 @@ Inputs: `[]`
Response:
```json
{
"ID": "07070707-0707-0707-0707-070707070707",
"Proposal": {
"PieceCID": {
"/": "bafy2bzacea3wsdh6y3a36tb3skempjoxqpuyompjbmfeyf34fi3uy6uue42v4"
Expand Down Expand Up @@ -1543,6 +1546,7 @@ Inputs:
```json
[
{
"ID": "07070707-0707-0707-0707-070707070707",
"Proposal": {
"PieceCID": {
"/": "bafy2bzacea3wsdh6y3a36tb3skempjoxqpuyompjbmfeyf34fi3uy6uue42v4"
Expand Down Expand Up @@ -1722,6 +1726,7 @@ Response:
```json
[
{
"ID": "07070707-0707-0707-0707-070707070707",
"Proposal": {
"PieceCID": {
"/": "bafy2bzacea3wsdh6y3a36tb3skempjoxqpuyompjbmfeyf34fi3uy6uue42v4"
Expand Down
40 changes: 38 additions & 2 deletions venus-shared/types/market/cbor_gen.go

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

2 changes: 2 additions & 0 deletions venus-shared/types/market/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ import (
"github.com/filecoin-project/go-state-types/abi"
crypto "github.com/filecoin-project/go-state-types/crypto"
"github.com/filecoin-project/venus/venus-shared/types"
"github.com/google/uuid"
"github.com/ipfs/go-cid"
"github.com/libp2p/go-libp2p/core/peer"
cbg "github.com/whyrusleeping/cbor-gen"
)

type MinerDeal struct {
ID uuid.UUID
types.ClientDealProposal
ProposalCid cid.Cid
AddFundsCid *cid.Cid
Expand Down

0 comments on commit 3ff535a

Please sign in to comment.