Skip to content

Commit 15f5241

Browse files
authored
fix missing types (#1945)
1 parent 06e3fa2 commit 15f5241

File tree

3 files changed

+20
-12
lines changed

3 files changed

+20
-12
lines changed

Diff for: api/docgen/docgen.go

+8
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import (
1616
types2 "github.com/filecoin-project/boost/storagemarket/types"
1717
"github.com/filecoin-project/boost/storagemarket/types/dealcheckpoints"
1818
"github.com/filecoin-project/boost/storagemarket/types/legacytypes/filestore"
19+
"github.com/filecoin-project/go-address"
1920
"github.com/filecoin-project/go-jsonrpc/auth"
2021
"github.com/filecoin-project/go-state-types/abi"
2122
"github.com/filecoin-project/go-state-types/builtin/v9/verifreg"
@@ -44,6 +45,13 @@ func addExample(v interface{}) {
4445
}
4546

4647
func init() {
48+
addr, err := address.NewIDAddress(1234)
49+
if err != nil {
50+
panic(err)
51+
}
52+
53+
ExampleValues[reflect.TypeOf(addr)] = addr
54+
4755
pid, err := peer.Decode("12D3KooWGzxzKZYveHXtpG6AsrUJBcWxHBFS2HsEoGTxrMLvKXtf")
4856
if err != nil {
4957
panic(err)

Diff for: build/openrpc/boost.json.gz

-9 Bytes
Binary file not shown.

Diff for: documentation/en/api-v1-methods.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ Response:
189189
"PieceCID": null,
190190
"PieceSize": 1032,
191191
"VerifiedDeal": true,
192-
"Client": "\u003cempty\u003e",
193-
"Provider": "\u003cempty\u003e",
192+
"Client": "f01234",
193+
"Provider": "f01234",
194194
"Label": "",
195195
"StartEpoch": 10101,
196196
"EndEpoch": 10101,
@@ -251,8 +251,8 @@ Response:
251251
"PieceCID": null,
252252
"PieceSize": 1032,
253253
"VerifiedDeal": true,
254-
"Client": "\u003cempty\u003e",
255-
"Provider": "\u003cempty\u003e",
254+
"Client": "f01234",
255+
"Provider": "f01234",
256256
"Label": "",
257257
"StartEpoch": 10101,
258258
"EndEpoch": 10101,
@@ -303,7 +303,7 @@ Inputs:
303303
"DealUUID": "07070707-0707-0707-0707-070707070707",
304304
"AllocationID": 0,
305305
"PieceCid": null,
306-
"ClientAddr": "\u003cempty\u003e",
306+
"ClientAddr": "f01234",
307307
"StartEpoch": 10101,
308308
"EndEpoch": 10101,
309309
"FilePath": "string value",
@@ -338,8 +338,8 @@ Inputs:
338338
"PieceCID": null,
339339
"PieceSize": 1032,
340340
"VerifiedDeal": true,
341-
"Client": "\u003cempty\u003e",
342-
"Provider": "\u003cempty\u003e",
341+
"Client": "f01234",
342+
"Provider": "f01234",
343343
"Label": "",
344344
"StartEpoch": 10101,
345345
"EndEpoch": 10101,
@@ -398,8 +398,8 @@ Inputs:
398398
"PieceCID": null,
399399
"PieceSize": 1032,
400400
"VerifiedDeal": true,
401-
"Client": "\u003cempty\u003e",
402-
"Provider": "\u003cempty\u003e",
401+
"Client": "f01234",
402+
"Provider": "f01234",
403403
"Label": "",
404404
"StartEpoch": 10101,
405405
"EndEpoch": 10101,
@@ -532,8 +532,8 @@ Response:
532532
"PieceCID": null,
533533
"PieceSize": 1032,
534534
"VerifiedDeal": true,
535-
"Client": "\u003cempty\u003e",
536-
"Provider": "\u003cempty\u003e",
535+
"Client": "f01234",
536+
"Provider": "f01234",
537537
"Label": "",
538538
"StartEpoch": 10101,
539539
"EndEpoch": 10101,
@@ -661,7 +661,7 @@ Response:
661661
"VerifiedPrice": "0",
662662
"MinPieceSize": 1032,
663663
"MaxPieceSize": 1032,
664-
"Miner": "\u003cempty\u003e",
664+
"Miner": "f01234",
665665
"Timestamp": 10101,
666666
"Expiry": 10101,
667667
"SeqNo": 42

0 commit comments

Comments
 (0)