Skip to content

Commit

Permalink
docgen: update examples with proof type
Browse files Browse the repository at this point in the history
  • Loading branch information
vgonkivs committed May 31, 2023
1 parent 64c18a5 commit a96ed79
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions api/docgen/examples.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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{}) {
Expand Down

0 comments on commit a96ed79

Please sign in to comment.