Skip to content

Commit

Permalink
fix missing types (#1945)
Browse files Browse the repository at this point in the history
  • Loading branch information
LexLuthr committed Jul 29, 2024
1 parent 06e3fa2 commit 15f5241
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 12 deletions.
8 changes: 8 additions & 0 deletions api/docgen/docgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
types2 "github.com/filecoin-project/boost/storagemarket/types"
"github.com/filecoin-project/boost/storagemarket/types/dealcheckpoints"
"github.com/filecoin-project/boost/storagemarket/types/legacytypes/filestore"
"github.com/filecoin-project/go-address"
"github.com/filecoin-project/go-jsonrpc/auth"
"github.com/filecoin-project/go-state-types/abi"
"github.com/filecoin-project/go-state-types/builtin/v9/verifreg"
Expand Down Expand Up @@ -44,6 +45,13 @@ func addExample(v interface{}) {
}

func init() {
addr, err := address.NewIDAddress(1234)
if err != nil {
panic(err)
}

ExampleValues[reflect.TypeOf(addr)] = addr

pid, err := peer.Decode("12D3KooWGzxzKZYveHXtpG6AsrUJBcWxHBFS2HsEoGTxrMLvKXtf")
if err != nil {
panic(err)
Expand Down
Binary file modified build/openrpc/boost.json.gz
Binary file not shown.
24 changes: 12 additions & 12 deletions documentation/en/api-v1-methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ Response:
"PieceCID": null,
"PieceSize": 1032,
"VerifiedDeal": true,
"Client": "\u003cempty\u003e",
"Provider": "\u003cempty\u003e",
"Client": "f01234",
"Provider": "f01234",
"Label": "",
"StartEpoch": 10101,
"EndEpoch": 10101,
Expand Down Expand Up @@ -251,8 +251,8 @@ Response:
"PieceCID": null,
"PieceSize": 1032,
"VerifiedDeal": true,
"Client": "\u003cempty\u003e",
"Provider": "\u003cempty\u003e",
"Client": "f01234",
"Provider": "f01234",
"Label": "",
"StartEpoch": 10101,
"EndEpoch": 10101,
Expand Down Expand Up @@ -303,7 +303,7 @@ Inputs:
"DealUUID": "07070707-0707-0707-0707-070707070707",
"AllocationID": 0,
"PieceCid": null,
"ClientAddr": "\u003cempty\u003e",
"ClientAddr": "f01234",
"StartEpoch": 10101,
"EndEpoch": 10101,
"FilePath": "string value",
Expand Down Expand Up @@ -338,8 +338,8 @@ Inputs:
"PieceCID": null,
"PieceSize": 1032,
"VerifiedDeal": true,
"Client": "\u003cempty\u003e",
"Provider": "\u003cempty\u003e",
"Client": "f01234",
"Provider": "f01234",
"Label": "",
"StartEpoch": 10101,
"EndEpoch": 10101,
Expand Down Expand Up @@ -398,8 +398,8 @@ Inputs:
"PieceCID": null,
"PieceSize": 1032,
"VerifiedDeal": true,
"Client": "\u003cempty\u003e",
"Provider": "\u003cempty\u003e",
"Client": "f01234",
"Provider": "f01234",
"Label": "",
"StartEpoch": 10101,
"EndEpoch": 10101,
Expand Down Expand Up @@ -532,8 +532,8 @@ Response:
"PieceCID": null,
"PieceSize": 1032,
"VerifiedDeal": true,
"Client": "\u003cempty\u003e",
"Provider": "\u003cempty\u003e",
"Client": "f01234",
"Provider": "f01234",
"Label": "",
"StartEpoch": 10101,
"EndEpoch": 10101,
Expand Down Expand Up @@ -661,7 +661,7 @@ Response:
"VerifiedPrice": "0",
"MinPieceSize": 1032,
"MaxPieceSize": 1032,
"Miner": "\u003cempty\u003e",
"Miner": "f01234",
"Timestamp": 10101,
"Expiry": 10101,
"SeqNo": 42
Expand Down

0 comments on commit 15f5241

Please sign in to comment.