package mocks
import "github.com/centrifuge/go-substrate-rpc-client/v4/rpc/mmr/mocks"
Index ¶
- type MMR
- func NewMMR(t NewMMRT) *MMR
- func (_m *MMR) GenerateProof(leafIndex uint64, blockHash types.Hash) (types.GenerateMMRProofResponse, error)
- func (_m *MMR) GenerateProofLatest(leafIndex uint64) (types.GenerateMMRProofResponse, error)
- type NewMMRT
Types ¶
type MMR ¶
MMR is an autogenerated mock type for the MMR type
func NewMMR ¶
NewMMR creates a new instance of MMR. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MMR) GenerateProof ¶
func (_m *MMR) GenerateProof(leafIndex uint64, blockHash types.Hash) (types.GenerateMMRProofResponse, error)
GenerateProof provides a mock function with given fields: leafIndex, blockHash
func (*MMR) GenerateProofLatest ¶
func (_m *MMR) GenerateProofLatest(leafIndex uint64) (types.GenerateMMRProofResponse, error)
GenerateProofLatest provides a mock function with given fields: leafIndex
type NewMMRT ¶
Source Files ¶
- Version
- v4.2.1 (latest)
- Published
- Dec 5, 2023
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 1 week ago –
Tools for package owners.