diff --git a/api/docgen/examples.go b/api/docgen/examples.go index ae65501ba6..b7f9b46a01 100644 --- a/api/docgen/examples.go +++ b/api/docgen/examples.go @@ -7,6 +7,7 @@ import ( "reflect" "cosmossdk.io/math" + "github.com/celestiaorg/nmt" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/filecoin-project/go-jsonrpc/auth" "github.com/libp2p/go-libp2p/core/network" @@ -20,6 +21,7 @@ import ( "github.com/celestiaorg/go-fraud" "github.com/celestiaorg/rsmt2d" + "github.com/celestiaorg/celestia-node/blob" "github.com/celestiaorg/celestia-node/das" "github.com/celestiaorg/celestia-node/header" "github.com/celestiaorg/celestia-node/nodebuilder/node" @@ -128,6 +130,11 @@ func init() { Addrs: []multiaddr.Multiaddr{ma}, } addToExampleValues(addrInfo) + + proof := nmt.NewInclusionProof(0, 4, [][]byte{[]byte("test")}, true) + blobProof := &blob.Proof{&proof} + addToExampleValues(blobProof) + } func addToExampleValues(v interface{}) {