From 15f5241b3aa752c2b7bec081e3b357450871aa59 Mon Sep 17 00:00:00 2001 From: LexLuthr <88259624+LexLuthr@users.noreply.github.com> Date: Mon, 29 Jul 2024 17:13:01 +0400 Subject: [PATCH] fix missing types (#1945) --- api/docgen/docgen.go | 8 ++++++++ build/openrpc/boost.json.gz | Bin 3238 -> 3229 bytes documentation/en/api-v1-methods.md | 24 ++++++++++++------------ 3 files changed, 20 insertions(+), 12 deletions(-) diff --git a/api/docgen/docgen.go b/api/docgen/docgen.go index 33373bd92..8f60ba2e4 100644 --- a/api/docgen/docgen.go +++ b/api/docgen/docgen.go @@ -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" @@ -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) diff --git a/build/openrpc/boost.json.gz b/build/openrpc/boost.json.gz index ccd1210edb02f0c1475d07653e26b1a86e7d76c9..ba155d660c236bdf109eb97a5ab34dcce3787a36 100644 GIT binary patch delta 3113 zcmV+^4A%3e8J!uB7ZOa!g?6`@>4yMq$u4yB0^J*Bktr}01{;{N3CI0AEUB~s_whdG zopsox-eEs_Mihp4fpP6XO zL$89#&ZO{7xs8^FZnC8AR}8*IkhTr^_;6;QRh6+ zTW(w7w*7_8zp$@gzhVP>zT*%v!+m@{1p$Z%K#WT?1BnQmA(J}}FzKNQ7f4R2heD#Z zuz_77h!YaU7mB#!*^bLS8qhHMdWraMCqw9nOiP%k59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>gef&*iM%C8 z)Qb$MStC~x?M#0uk2=}qGTm30tr}w5@Zx!8v3@WU@pH}vB)>7`o$e9y+OJr6nI4&Y z^I%kDnS0kr8px)1i>x4&|ETZb?h{#i>)>PioXzDXN4S`6D< zZj<>RB&vC7{L#rd2R5?8Q=A7t>{vloWtA+10y~h(W3FYUEa1)gN{eiqlWgjvo~DL> fS{cnopB(LWckz6FIsab(00960zRi|tvycD)SKlx# diff --git a/documentation/en/api-v1-methods.md b/documentation/en/api-v1-methods.md index 287f0c8d5..859bfc871 100644 --- a/documentation/en/api-v1-methods.md +++ b/documentation/en/api-v1-methods.md @@ -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, @@ -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, @@ -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", @@ -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, @@ -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, @@ -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, @@ -661,7 +661,7 @@ Response: "VerifiedPrice": "0", "MinPieceSize": 1032, "MaxPieceSize": 1032, - "Miner": "\u003cempty\u003e", + "Miner": "f01234", "Timestamp": 10101, "Expiry": 10101, "SeqNo": 42